Class SimpleKeyType<S>

java.lang.Object
csw.params.core.generics.KeyType<S>
csw.params.core.generics.SimpleKeyType<S>
Type Parameters:
S - the type of values that will sit against the key in Parameter
All Implemented Interfaces:
enumeratum.EnumEntry, Serializable
Direct Known Subclasses:
ArrayKeyType, JSimpleKeyType.ByteKey$, JSimpleKeyType.CharKey$, JSimpleKeyType.DoubleKey$, JSimpleKeyType.FloatKey$, JSimpleKeyType.IntKey$, JSimpleKeyType.LongKey$, JSimpleKeyType.ShortKey$, KeyType.AltAzCoordKey$, KeyType.ByteKey$, KeyType.CharKey$, KeyType.CometCoordKey$, KeyType.CoordKey$, KeyType.DoubleKey$, KeyType.EqCoordKey$, KeyType.FloatKey$, KeyType.IntKey$, KeyType.LongKey$, KeyType.MinorPlanetCoordKey$, KeyType.ShortKey$, KeyType.SolarSystemCoordKey$, KeyType.StringKey$, MatrixKeyType

public class SimpleKeyType<S> extends KeyType<S>
SimpleKeyType with a name. Holds instances of primitives such as char, int, String etc.

See Also:
  • Constructor Details

    • SimpleKeyType

      public SimpleKeyType(scala.reflect.ClassTag<S> evidence$3, io.bullet.borer.Encoder<Object> evidence$4, io.bullet.borer.Decoder<Object> evidence$5)
  • Method Details

    • make

      public Key<S> make(String name)
      Make a Key from provided name

      Parameters:
      name - represents keyName in Key
      Returns:
      a Key[S] with NoUnits where S is the type of values that will sit against the key in Parameter
    • make

      public Key<S> make(String name, Units units)
      Make a Key from provided name and units

      Parameters:
      name - represents keyName in Key
      units - represents the units of the values
      Returns:
      a Key[S] with units where S is the type of values that will sit against the key in Parameter