Class Access2D.RowView<N extends java.lang.Comparable<N>>

    • Field Detail

      • myDelegate2D

        private final Access2D<N extends java.lang.Comparable<N>> myDelegate2D
      • myLastRow

        private final long myLastRow
      • myRow

        private long myRow
    • Constructor Detail

      • RowView

        private RowView​(Access2D<N> access,
                        long row,
                        long lastRow)
      • RowView

        protected RowView​(Access2D<N> access)
      • RowView

        RowView​(Access2D<N> access,
                long row)
    • Method Detail

      • characteristics

        public int characteristics()
        Specified by:
        characteristics in interface java.util.Spliterator<N extends java.lang.Comparable<N>>
      • compareTo

        public int compareTo​(Access2D.RowView<N> other)
        Specified by:
        compareTo in interface java.lang.Comparable<N extends java.lang.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 interface Structure1D
      • doubleValue

        public double doubleValue​(int index)
        Specified by:
        doubleValue in interface Access1D<N extends java.lang.Comparable<N>>
      • estimateSize

        public long estimateSize()
        Specified by:
        estimateSize in interface java.util.Spliterator<N extends java.lang.Comparable<N>>
      • forEachRemaining

        public void forEachRemaining​(java.util.function.Consumer<? super Access2D.RowView<N>> action)
        Specified by:
        forEachRemaining in interface java.util.Iterator<N extends java.lang.Comparable<N>>
        Specified by:
        forEachRemaining in interface java.util.Spliterator<N extends java.lang.Comparable<N>>
      • get

        public N get​(long index)
        Specified by:
        get in interface Access1D<N extends java.lang.Comparable<N>>
      • goToRow

        public void goToRow​(long row)
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<N extends java.lang.Comparable<N>>
      • hasPrevious

        public boolean hasPrevious()
      • iterator

        public Access2D.RowView<N> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<N extends java.lang.Comparable<N>>
      • next

        public Access2D.RowView<N> next()
        Specified by:
        next in interface java.util.Iterator<N extends java.lang.Comparable<N>>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<N extends java.lang.Comparable<N>>
      • row

        public long row()
      • size

        public int size()
        Description copied from interface: Structure1D
        The total number of elements in this structure.
        Specified by:
        size in interface Structure1D
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • tryAdvance

        public boolean tryAdvance​(java.util.function.Consumer<? super Access2D.RowView<N>> action)
        Specified by:
        tryAdvance in interface java.util.Spliterator<N extends java.lang.Comparable<N>>
      • trySplit

        public java.util.Spliterator<Access2D.RowView<N>> trySplit()
        Specified by:
        trySplit in interface java.util.Spliterator<N extends java.lang.Comparable<N>>