java.lang.Object
java.lang.Record
dev.argon.esexpr.KeywordMapping<T>
-
Constructor Summary
ConstructorsConstructorDescriptionKeywordMapping(Map<String, T> map) Creates an instance of aKeywordMappingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ESExprCodec<KeywordMapping<T>> codec(ESExprCodec<T> tCodec) Get a codec for the keyword mapping.static <T> DictCodec<KeywordMapping<T>, T> dictCodec(ESExprCodec<T> tCodec) Creates a DictCodec for KeywordMapping values.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.map()Returns the value of themaprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KeywordMapping
-
-
Method Details
-
codec
Get a codec for the keyword mapping.- Type Parameters:
T- The element type.- Parameters:
tCodec- The element codec.- Returns:
- The codec.
-
dictCodec
Creates a DictCodec for KeywordMapping values.- Type Parameters:
T- The element type.- Parameters:
tCodec- A value codec for the element type.- Returns:
- The DictCodec.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
map
-