@ExportedBean(defaultVisibility=4) public static final class Fingerprint.Range extends Object
Constructor and Description |
---|
Range(int start,
int end) |
Modifier and Type | Method and Description |
---|---|
Fingerprint.Range |
combine(Fingerprint.Range that)
Returns the
Fingerprint.Range that combines two ranges. |
boolean |
contains(Fingerprint.Range that)
If this range contains every int that's in the other range, return true
|
boolean |
equals(Object o) |
Fingerprint.Range |
expandLeft() |
Fingerprint.Range |
expandRight() |
int |
getEnd() |
int |
getStart() |
int |
hashCode() |
boolean |
includes(int i) |
Fingerprint.Range |
intersect(Fingerprint.Range that)
Returns the
Fingerprint.Range that represents the intersection of the two. |
boolean |
isAdjacentTo(Fingerprint.Range that) |
boolean |
isBiggerThan(int i) |
boolean |
isDisjoint(Fingerprint.Range that)
Returns true if two
Fingerprint.Range s do not share any common integer. |
boolean |
isIndependent(Fingerprint.Range that)
Returns true if two
Fingerprint.Range s can't be combined into a single range. |
boolean |
isSingle()
Returns true if this range only represents a single number.
|
boolean |
isSmallerThan(int i) |
String |
toString() |
@Exported public int getStart()
@Exported public int getEnd()
public boolean isSmallerThan(int i)
public boolean isBiggerThan(int i)
public boolean includes(int i)
public Fingerprint.Range expandRight()
public Fingerprint.Range expandLeft()
public boolean isAdjacentTo(Fingerprint.Range that)
public boolean isIndependent(Fingerprint.Range that)
Fingerprint.Range
s can't be combined into a single range.public boolean isDisjoint(Fingerprint.Range that)
Fingerprint.Range
s do not share any common integer.public boolean isSingle()
public boolean contains(Fingerprint.Range that)
public Fingerprint.Range combine(Fingerprint.Range that)
Fingerprint.Range
that combines two ranges.public Fingerprint.Range intersect(Fingerprint.Range that)
Fingerprint.Range
that represents the intersection of the two.Copyright © 2016. All rights reserved.