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 intprivate longprivate final longFields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedColumnView(Access2D<N> access) (package private)ColumnView(Access2D<N> access, long column) privateColumnView(Access2D<N> access, long column, long lastColumn) -
Method Summary
Modifier and TypeMethodDescriptionintlongcolumn()intcompareTo(Access2D.ColumnView<N> other) longcount()The total number of elements in this structure.doubledoubleValue(int index) longvoidforEachRemaining(Consumer<? super Access2D.ColumnView<N>> action) get(long index) voidgoToColumn(long column) booleanhasNext()booleaniterator()next()previous()voidremove()intsize()The total number of elements in this structure.stream()voidtoString()booleantryAdvance(Consumer<? super Access2D.ColumnView<N>> action) trySplit()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ojalgo.structure.Access1D
asCollectable1D, asKeyed1D, asList, axpy, byteValue, byteValue, dot, doubleValue, elements, floatValue, floatValue, intValue, intValue, longValue, longValue, nonzeros, select, shortValue, shortValue, supplyTo, toList, toRawCopy1DMethods inherited from interface org.ojalgo.structure.Access1D.Collectable
collectMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods 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:
characteristicsin interfaceSpliterator<N extends Comparable<N>>
-
column
public long column() -
compareTo
- Specified by:
compareToin interfaceComparable<N extends Comparable<N>>
-
count
public long count()Description copied from interface:Structure1DThe 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:
countin interfaceStructure1D
-
doubleValue
public double doubleValue(int index) - Specified by:
doubleValuein interfaceAccess1D<N extends Comparable<N>>
-
estimateSize
public long estimateSize()- Specified by:
estimateSizein interfaceSpliterator<N extends Comparable<N>>
-
forEachRemaining
- Specified by:
forEachRemainingin interfaceIterator<N extends Comparable<N>>- Specified by:
forEachRemainingin interfaceSpliterator<N extends Comparable<N>>
-
get
- Specified by:
getin interfaceAccess1D<N extends Comparable<N>>
-
goToColumn
public void goToColumn(long column) -
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<N extends Comparable<N>>
-
hasPrevious
public boolean hasPrevious() -
iterator
- Specified by:
iteratorin interfaceIterable<N extends Comparable<N>>
-
next
- Specified by:
nextin interfaceIterator<N extends Comparable<N>>
-
previous
-
remove
public void remove()- Specified by:
removein interfaceIterator<N extends Comparable<N>>
-
size
public int size()Description copied from interface:Structure1DThe total number of elements in this structure.- Specified by:
sizein interfaceStructure1D
-
stream
-
supplyTo
- Specified by:
supplyToin interfaceAccess1D.Collectable<N extends Comparable<N>,Mutate1D>
-
toString
-
tryAdvance
- Specified by:
tryAdvancein interfaceSpliterator<N extends Comparable<N>>
-
trySplit
- Specified by:
trySplitin interfaceSpliterator<N extends Comparable<N>>
-