Class IndexedMap.MappedPrimitives<K>

All Implemented Interfaces:
Map<K,PrimitiveNumber>, Access1D<PrimitiveNumber>, Mutate1D, Structure1D, Paired<K,PrimitiveNumber>
Enclosing class:
IndexedMap<K,V>

public static final class IndexedMap.MappedPrimitives<K> extends IndexedMap<K,PrimitiveNumber> implements Access1D<PrimitiveNumber>, Mutate1D
  • Field Details

  • Constructor Details

  • Method Details

    • byteValue

      public byte byteValue(int index)
      Specified by:
      byteValue in interface Access1D<K>
    • 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<K>
    • floatValue

      public float floatValue(int index)
      Specified by:
      floatValue in interface Access1D<K>
    • get

      public PrimitiveNumber get(long index)
      Specified by:
      get in interface Access1D<K>
    • intValue

      public int intValue(int index)
      Specified by:
      intValue in interface Access1D<K>
    • longValue

      public long longValue(int index)
      Specified by:
      longValue in interface Access1D<K>
    • set

      public void set(int index, double value)
      Specified by:
      set in interface Mutate1D
    • set

      public void set(int index, float value)
      Specified by:
      set in interface Mutate1D
    • set

      public void set(long index, Comparable<?> value)
      Specified by:
      set in interface Mutate1D
    • shortValue

      public short shortValue(int index)
      Specified by:
      shortValue in interface Access1D<K>