Package org.ojalgo.structure
Class Access1D.ElementView<N extends Comparable<N>>
java.lang.Object
org.ojalgo.structure.Access1D.ElementView<N>
- All Implemented Interfaces:
Comparable<Access1D.ElementView<N>>
,Iterable<Access1D.ElementView<N>>
,Iterator<Access1D.ElementView<N>>
,Spliterator<Access1D.ElementView<N>>
,AccessScalar<N>
,ElementView1D<N,
,Access1D.ElementView<N>> NumberDefinition
- Enclosing interface:
Access1D<N extends Comparable<N>>
public static final class Access1D.ElementView<N extends Comparable<N>>
extends Object
implements ElementView1D<N,Access1D.ElementView<N>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,
T_CONS, T_SPLITR extends Spliterator.OfPrimitive<T, T_CONS, T_SPLITR>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
private long
Fields inherited from interface org.ojalgo.structure.ElementView1D
CHARACTERISTICS
Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
Constructor Summary
ConstructorsModifierConstructorDescription(package private)
ElementView
(Access1D<N> values) private
ElementView
(Access1D<N> values, long initial, long last) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ojalgo.structure.ElementView1D
characteristics, compareTo, forEachRemaining, getComparator, nextIndex, previousIndex, remove, step, stream, tryAdvance
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.ojalgo.type.NumberDefinition
booleanValue, byteValue, floatValue, intValue, longValue, shortValue
Methods inherited from interface java.util.Spliterator
getExactSizeIfKnown, hasCharacteristics
-
Field Details
-
myCursor
private long myCursor -
myLastCursor
private long myLastCursor -
myValues
-
-
Constructor Details
-
ElementView
-
ElementView
-
-
Method Details
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in interfaceNumberDefinition
-
estimateSize
public long estimateSize()- Specified by:
estimateSize
in interfaceSpliterator<N extends Comparable<N>>
-
get
- Specified by:
get
in interfaceAccessScalar<N extends Comparable<N>>
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<N extends Comparable<N>>
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceElementView1D<N extends Comparable<N>,
Access1D.ElementView<N extends Comparable<N>>>
-
index
public long index()- Specified by:
index
in interfaceElementView1D<N extends Comparable<N>,
Access1D.ElementView<N extends Comparable<N>>>
-
iterator
- Specified by:
iterator
in interfaceElementView1D<N extends Comparable<N>,
Access1D.ElementView<N extends Comparable<N>>> - Specified by:
iterator
in interfaceIterable<N extends Comparable<N>>
-
next
- Specified by:
next
in interfaceIterator<N extends Comparable<N>>
-
previous
- Specified by:
previous
in interfaceElementView1D<N extends Comparable<N>,
Access1D.ElementView<N extends Comparable<N>>>
-
toString
-
trySplit
- Specified by:
trySplit
in interfaceElementView1D<N extends Comparable<N>,
Access1D.ElementView<N extends Comparable<N>>> - Specified by:
trySplit
in interfaceSpliterator<N extends Comparable<N>>
-