Class Concat2Encoding<T,V1,V2>

Type Parameters:
T - this encoding's value type
V1 - first tuple value type
V2 - second tuple value type
All Implemented Interfaces:
Encoding<T>, NaturalSortAware, Serializable, Comparator<T>
Direct Known Subclasses:
OffsetDateTimeEncoding, OffsetTimeEncoding, ZonedDateTimeEncoding

public abstract class Concat2Encoding<T,V1,V2> extends ConvertedEncoding<T,Tuple2<V1,V2>>
Support superclass for non-null Encodings of values that can be decomposed into two component values.

Null values are not supported by this class and there is no default value.

See Also:
  • Constructor Details

    • Concat2Encoding

      protected Concat2Encoding(Class<T> type, Encoding<V1> encoding1, Encoding<V2> encoding2, Function<? super T,? extends V1> splitter1, Function<? super T,? extends V2> splitter2, BiFunction<? super V1,? super V2,? extends T> joiner)
      Constructor.
      Parameters:
      type - Java type for this encoding's values
      encoding1 - first value encoding
      encoding2 - second value encoding
      splitter1 - first value splitter
      splitter2 - second value splitter
      joiner - value joiner from tuple
      Throws:
      IllegalArgumentException - if any parameter is null
  • Method Details