pl.netanel.swt.matrix
Interface ExtentSeq<N extends java.lang.Number>

All Superinterfaces:
java.lang.Iterable<Extent<N>>

public interface ExtentSeq<N extends java.lang.Number>
extends java.lang.Iterable<Extent<N>>

Experimental!


Method Summary
 boolean contains(N number)
          Returns true if this set contains the given number.
 boolean containsAll(ExtentSeq<N> seq)
          Returns true if this set contains all the numbers from the given set.
 boolean containsAll(N start, N end)
          Returns true if this set contains all the numbers from the given range inclusively.
 boolean containsAny(ExtentSeq<N> seq)
           
 boolean containsAny(N start, N end)
           
 N count()
           
 ExtentSeq<N> count(N count)
           
 N end()
           
 N first()
           
 void init()
          Initiates the iteration.
 boolean isEmpty()
          Returns true if the receiver contains no items.
 boolean isExploited()
          Returns true if this sequence has reached the number of elements specified by #count(N)
 boolean iter()
          Performs next iteration step and returns true if that's been possible, or false otherwise.
 N last()
           
 N level()
           
 NumberSeq<N> numbers()
           
 N start()
           
 NumberList<N> toList()
           
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

start

N start()

end

N end()

level

N level()

first

N first()

last

N last()

count

N count()

count

ExtentSeq<N> count(N count)

isExploited

boolean isExploited()
Returns true if this sequence has reached the number of elements specified by #count(N)


numbers

NumberSeq<N> numbers()

isEmpty

boolean isEmpty()
Returns true if the receiver contains no items. Otherwise false is returned.

Returns:
true if the receiver contains no items

contains

boolean contains(N number)
Returns true if this set contains the given number.

Parameters:
number - number whose presence in this set is to be tested
Returns:
true if this set contains the given number

containsAll

boolean containsAll(N start,
                    N end)
Returns true if this set contains all the numbers from the given range inclusively.

Parameters:
start - first index of the range of items
end - last index of the range of items
Returns:
true if this set contains the given range of numbers

containsAny

boolean containsAny(N start,
                    N end)

containsAll

boolean containsAll(ExtentSeq<N> seq)
Returns true if this set contains all the numbers from the given set.

Parameters:
seq - sequence of extents whose presence in the receiver should be tested
Returns:
true if this set contains the given range of numbers

containsAny

boolean containsAny(ExtentSeq<N> seq)

toList

NumberList<N> toList()

init

void init()
Initiates the iteration. Can be used to restart the iteration and thus to reuse the instance of Sequence without creating a new one.


iter

boolean iter()
Performs next iteration step and returns true if that's been possible, or false otherwise. Another words false return value indicates the end of iteration.

Returns:
success state of last iteration


Copyright © 2011 netanel.pl. All Rights Reserved.