Package org.ojalgo.structure
Class Access2D.ColumnView<N extends Comparable<N>>
java.lang.Object
org.ojalgo.structure.Access2D.ColumnView<N>
- All Implemented Interfaces:
Comparable<Access2D.ColumnView<N>>
,Iterable<Access2D.ColumnView<N>>
,Iterator<Access2D.ColumnView<N>>
,Spliterator<Access2D.ColumnView<N>>
,Access1D<N>
,Access1D.Collectable<N,
,Mutate1D> Structure1D
- Direct Known Subclasses:
ColumnsSupplier.SingleView
,HouseholderColumn
- Enclosing interface:
Access2D<N extends Comparable<N>>
public static class Access2D.ColumnView<N extends Comparable<N>>
extends Object
implements Access1D<N>, Iterable<Access2D.ColumnView<N>>, Iterator<Access2D.ColumnView<N>>, Spliterator<Access2D.ColumnView<N>>, Comparable<Access2D.ColumnView<N>>, Access1D.Collectable<N,Mutate1D>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ojalgo.structure.Access1D
Access1D.Aggregatable<N extends Comparable<N>>, Access1D.Collectable<N extends Comparable<N>,
R extends Mutate1D>, Access1D.ElementView<N extends Comparable<N>>, Access1D.SelectionView<N extends Comparable<N>>, Access1D.Sliceable<N extends Comparable<N>>, Access1D.Visitable<N extends Comparable<N>> 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>> Nested classes/interfaces inherited from interface org.ojalgo.structure.Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S extends Structure1D,
B extends Structure1D.Logical<S, B>>, Structure1D.LongIndex, Structure1D.LoopCallback -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int
private long
private final long
Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ColumnView
(Access2D<N> access) (package private)
ColumnView
(Access2D<N> access, long column) private
ColumnView
(Access2D<N> access, long column, long lastColumn) -
Method Summary
Modifier and TypeMethodDescriptionint
long
column()
int
compareTo
(Access2D.ColumnView<N> other) long
count()
The total number of elements in this structure.double
doubleValue
(int index) long
void
forEachRemaining
(Consumer<? super Access2D.ColumnView<N>> action) get
(long index) void
goToColumn
(long column) boolean
hasNext()
boolean
iterator()
next()
previous()
void
remove()
int
size()
The total number of elements in this structure.stream()
void
toString()
boolean
tryAdvance
(Consumer<? super Access2D.ColumnView<N>> action) trySplit()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ojalgo.structure.Access1D
asCollectable1D, asKeyed1D, axpy, byteValue, byteValue, dot, doubleValue, elements, floatValue, floatValue, intValue, intValue, longValue, longValue, nonzeros, select, shortValue, shortValue, supplyTo, toRawCopy1D
Methods inherited from interface org.ojalgo.structure.Access1D.Collectable
collect
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface java.util.Spliterator
getComparator, getExactSizeIfKnown, hasCharacteristics
-
Field Details
-
CHARACTERISTICS
static final int CHARACTERISTICS- See Also:
-
myColumn
private long myColumn -
myDelegate2D
-
myLastColumn
private final long myLastColumn
-
-
Constructor Details
-
ColumnView
-
ColumnView
-
ColumnView
-
-
Method Details
-
characteristics
public int characteristics()- Specified by:
characteristics
in interfaceSpliterator<N extends Comparable<N>>
-
column
public long column() -
compareTo
- Specified by:
compareTo
in interfaceComparable<N extends Comparable<N>>
-
count
public long count()Description copied from interface:Structure1D
The total number of elements in this structure.You only need to implement this method if the structure can contain more than Integer.MAX_VALUE elements.
- Specified by:
count
in interfaceStructure1D
-
doubleValue
public double doubleValue(int index) - Specified by:
doubleValue
in interfaceAccess1D<N extends Comparable<N>>
-
estimateSize
public long estimateSize()- Specified by:
estimateSize
in interfaceSpliterator<N extends Comparable<N>>
-
forEachRemaining
- Specified by:
forEachRemaining
in interfaceIterator<N extends Comparable<N>>
- Specified by:
forEachRemaining
in interfaceSpliterator<N extends Comparable<N>>
-
get
- Specified by:
get
in interfaceAccess1D<N extends Comparable<N>>
-
goToColumn
public void goToColumn(long column) -
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<N extends Comparable<N>>
-
hasPrevious
public boolean hasPrevious() -
iterator
- Specified by:
iterator
in interfaceIterable<N extends Comparable<N>>
-
next
- Specified by:
next
in interfaceIterator<N extends Comparable<N>>
-
previous
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<N extends Comparable<N>>
-
size
public int size()Description copied from interface:Structure1D
The total number of elements in this structure.- Specified by:
size
in interfaceStructure1D
-
stream
-
supplyTo
- Specified by:
supplyTo
in interfaceAccess1D.Collectable<N extends Comparable<N>,
Mutate1D>
-
toString
-
tryAdvance
- Specified by:
tryAdvance
in interfaceSpliterator<N extends Comparable<N>>
-
trySplit
- Specified by:
trySplit
in interfaceSpliterator<N extends Comparable<N>>
-