Package edu.jas.poly
Class PolySpliterator<C extends RingElem<C>>
- java.lang.Object
-
- edu.jas.poly.PolySpliterator<C>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.Spliterator
java.util.Spliterator.OfDouble, java.util.Spliterator.OfInt, java.util.Spliterator.OfLong, java.util.Spliterator.OfPrimitive<T extends java.lang.Object,T_CONS extends java.lang.Object,T_SPLITR extends java.util.Spliterator.OfPrimitive<T,T_CONS,T_SPLITR>>
-
-
Constructor Summary
Constructors Modifier Constructor Description PolySpliterator(java.util.SortedMap<ExpVector,C> m)
Constructor of polynomial spliterator.protected
PolySpliterator(java.util.Spliterator<java.util.Map.Entry<ExpVector,C>> mse, java.util.SortedMap<ExpVector,C> m)
Constructor of polynomial spliterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
characteristics()
Returns a set of characteristics of this Spliterator and its elements.long
estimateSize()
Returns an estimate of the number of elements of this Spliterator.java.util.Comparator<Monomial<C>>
getComparator()
Get the monomial comparator.java.lang.String
toString()
String representation of PolySpliterator.boolean
tryAdvance(java.util.function.Consumer<? super Monomial<C>> action)
If a remaining element exists perform the action on it.PolySpliterator<C>
trySplit()
Try to split this spliterator.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
String representation of PolySpliterator.- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
characteristics
public int characteristics()
Returns a set of characteristics of this Spliterator and its elements.
-
estimateSize
public long estimateSize()
Returns an estimate of the number of elements of this Spliterator.
-
trySplit
public PolySpliterator<C> trySplit()
Try to split this spliterator.
-
-