Package org.aspectj.weaver
Klasse Iterators
java.lang.Object
org.aspectj.weaver.Iterators
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic interface
A filter represents a mapping function from Iterator to Iteratorstatic interface
A getter represents a mapping function from Object to Iteratorstatic class
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic <T> Iterator<T>
creates an iterator I based on base iterators A and B.static <T> Iterator<T>
creates an iterator I based on base iterators A and B.static Iterator<ResolvedType>
array
(ResolvedType[] o, boolean genericsAware) static <T> Iterator<T>
array
(T[] o) Creates an iterator that will return the elements of a specified array, in order.static <T> Iterators.Filter<T>
Create a new filter F that, when wrapped around another iterator I, creates a new iterator I' that will return only those values of I that have not yet been returned by I', discarding duplicates.static <A,
B> Iterator<B> mapOver
(Iterator<A> a, Iterators.Getter<A, B> g) creates an iterator I based on a base iterator A and a getter G.static <T> Iterator<T>
one
(T it) creates an iterator I based on an object O.static <A> Iterator<A>
recur
(A a, Iterators.Getter<A, A> g) creates an iterator I based on a base iterator A and a getter G.static <T> Iterator<T>
creates an iterator I based on a base iterator A and an object O.
-
Methodendetails
-
dupFilter
Create a new filter F that, when wrapped around another iterator I, creates a new iterator I' that will return only those values of I that have not yet been returned by I', discarding duplicates. -
array
Creates an iterator that will return the elements of a specified array, in order. Like Arrays.asList(o).iterator(), without all that pesky safety. -
array
-
mapOver
creates an iterator I based on a base iterator A and a getter G. I returns, in order, forall (i in A), G(i). -
recur
creates an iterator I based on a base iterator A and a getter G. I returns, in order, forall (i in I) i :: forall (i' in g(i)) recur(i', g) -
append
creates an iterator I based on base iterators A and B. Returns the elements returned by A followed by those returned by B. If B is empty, simply returns A, and if A is empty, simply returns B. Do NOT USE if b.hasNext() is not idempotent. -
append1
creates an iterator I based on base iterators A and B. Returns the elements returned by A followed by those returned by B. If A is empty, simply returns B. Guaranteed not to call B.hasNext() until A is empty. -
snoc
creates an iterator I based on a base iterator A and an object O. Returns the elements returned by A, followed by O. -
one
creates an iterator I based on an object O. Returns O, once.
-