Class OneIndex


  • public class OneIndex
    extends Index
    An Index that supports only one size (a single dimension).
    Author:
    Matteo Di Giovinazzo
    • Constructor Detail

      • OneIndex

        public OneIndex​(long size)
        Constructor to set the Index.sizes.
    • Method Detail

      • index

        public long index​(long i)
        Returns i.
        Overrides:
        index in class Index
      • index

        public long index​(long i,
                          long j)
        Throws new UnsupportedOperationException().
        Overrides:
        index in class Index
      • index

        public long index​(long i,
                          long j,
                          long k)
        Throws new UnsupportedOperationException().
        Overrides:
        index in class Index
      • index

        public long index​(long... indices)
        Returns indices[0] if indices.length == 1 or throws new UnsupportedOperationException().
        Specified by:
        index in class Index
        Parameters:
        indices - of each dimension
        Returns:
        index to access array or buffer