|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
N
- public interface NumberCollection<N extends java.lang.Number>
Common interface for NumberSet
, NumberList
and NumberContinuum
.
Method Summary | |
---|---|
boolean |
contains(Extent<N> extent)
Deprecated. use containsAll(Extent) instead |
boolean |
contains(N number)
Returns true if this set contains the given number. |
boolean |
contains(N start,
N end)
Deprecated. use containsAll(Number, Number) instead |
boolean |
containsAll(Extent<N> extent)
Returns true if this set contains all the numbers from the given range inclusively. |
boolean |
containsAll(N start,
N end)
Returns true if this set contains all the numbers from the given range inclusively. |
boolean |
containsAll(NumberCollection<N> set)
Returns true if this set contains all the numbers from the given set. |
boolean |
containsAny(Extent<N> extent)
Returns true if this set contains any the numbers from the given range inclusively. |
boolean |
containsAny(N start,
N end)
|
boolean |
containsAny(NumberCollection<N> set)
|
NumberCollection<N> |
copyNumberCollection()
Returns a copy of this collection. |
N |
getCount()
Returns the number of items in the receiver. |
N |
getCount(N start,
N end)
Returns the number of items in the receiver between the values start and end inclusively. |
boolean |
isEmpty()
Returns true if the receiver contains no items. |
ExtentSeq<N> |
seq()
Experimental! Returns a sequence of number extents from this set. |
ExtentSeq<N> |
seq(int direction,
N from,
N to)
Experimental! |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
boolean isEmpty()
false
is returned.
N getCount()
N getCount(N start, N end)
start
and end
inclusively.
start
and end
boolean contains(N number)
true
if this set contains the given number.
number
- number whose presence in this set is to be tested
true
if this set contains the given number@Deprecated boolean contains(N start, N end)
containsAll(Number, Number)
instead
true
if this set contains all the numbers from the given range inclusively.
start
- first index of the range of itemsend
- last index of the range of items
true
if this set contains the given range of numbers@Deprecated boolean contains(Extent<N> extent)
containsAll(Extent)
instead
true
if this set contains all the numbers from the given range inclusively.
extent
- extent of numbers whose presence in this set is to be tested
true
if this set contains the given range of numbersboolean containsAll(N start, N end)
true
if this set contains all the numbers from the given range inclusively.
start
- first index of the range of itemsend
- last index of the range of items
true
if this set contains the given range of numbersboolean containsAny(N start, N end)
boolean containsAll(Extent<N> extent)
true
if this set contains all the numbers from the given range inclusively.
extent
- extent of numbers whose presence in this set is to be tested
true
if this set contains all the given range of numbersboolean containsAny(Extent<N> extent)
true
if this set contains any the numbers from the given range inclusively.
extent
- extent of numbers whose presence in this set is to be tested
true
if this set contains any of the given range of numbersboolean containsAll(NumberCollection<N> set)
true
if this set contains all the numbers from the given set.
set
- set of numbers whose presence in the receiver should be tested
true
if this set contains the given range of numbersboolean containsAny(NumberCollection<N> set)
ExtentSeq<N> seq()
ExtentSeq<N> seq(int direction, N from, N to)
NumberCollection<N> copyNumberCollection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |