Class SimpleKeyTypeWithUnits<S>

java.lang.Object
csw.params.core.generics.KeyType<S>
csw.params.core.generics.SimpleKeyTypeWithUnits<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:
JSimpleKeyType.BooleanKey$, KeyType.BooleanKey$, KeyType.TAITimeKey$, KeyType.UTCTimeKey$

public class SimpleKeyTypeWithUnits<S> extends KeyType<S>
A KeyType that allows name and unit to be specified during creation. Holds instances of primitives such as char, int, String etc.

param: defaultUnits applicable units

See Also:
  • Constructor Details

    • SimpleKeyTypeWithUnits

      public SimpleKeyTypeWithUnits(Units defaultUnits, scala.reflect.ClassTag<S> evidence$6, io.bullet.borer.Encoder<Object> evidence$7, io.bullet.borer.Decoder<Object> evidence$8)
  • 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 defaultUnits where S is the type of values that will sit against the key in Parameter