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>, 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>, Mutate1D
-
Nested Class Summary
Nested classes/interfaces inherited from interface Access1D
Access1D.Aggregatable<N>, Access1D.Collectable<N,R>, Access1D.ElementView<N>, Access1D.SelectionView<N>, Access1D.Sliceable<N>, Access1D.Visitable<N> Nested classes/interfaces inherited from interface Mutate1D
Mutate1D.Fillable<N>, Mutate1D.Mixable<N>, Mutate1D.Modifiable<N>, Mutate1D.ModifiableReceiver<N>, Mutate1D.Receiver<N>, Mutate1D.SortableNested classes/interfaces inherited from interface Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS, T_SPLITR> Nested classes/interfaces inherited from interface Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S,B>, Structure1D.LongIndex, Structure1D.LoopCallback -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final intprivate longprivate final longprivate final Mutate2DFields inherited from interface 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()voidset(int index, double value) voidset(long index, Comparable<?> value) Optional operation.intsize()The total number of elements in this structure.stream()voidtoString()booleantryAdvance(Consumer<? super Access2D.ColumnView<N>> action) trySplit()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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 Access1D.Collectable
collectMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Mutate1D
reset, set, set, set, set, set, set, set, set, set, set, setMethods inherited from interface Spliterator
getComparator, getExactSizeIfKnown, hasCharacteristics
-
Field Details
-
CHARACTERISTICS
static final int CHARACTERISTICS- See Also:
-
myAccess2D
-
myColumn
private long myColumn -
myLastColumn
private final long myLastColumn -
myMutate2D
-
-
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
-
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>>
-
set
-
set
Optional operation.- Specified by:
setin interfaceMutate1D- Throws:
UnsupportedOperationException- if the underlyingAccess2Dis not also aMutate2D.
-
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>>
-