Record Class CBList<T extends CBSerializableType>
java.lang.Object
java.lang.Record
com.io7m.cedarbridge.runtime.api.CBList<T>
- Type Parameters:
T- The type of list elements- Record Components:
values- The values
- All Implemented Interfaces:
CBSerializableType, Formattable
public record CBList<T extends CBSerializableType>(List<T extends CBSerializableType> values)
extends Record
implements Formattable, CBSerializableType
The type of lists.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends CBSerializableType>
CBList<T> deserialize(CBSerializationContextType context, CBDeserializeType<T> ft) Deserialize a list value.final booleanIndicates whether some other object is "equal to" this one.voidfinal inthashCode()Returns a hash code value for this object.static <T extends CBSerializableType>
voidserialize(CBSerializationContextType context, CBList<T> x, CBSerializeType<T> ft) Serialize the given value.final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.
-
Constructor Details
-
CBList
-
-
Method Details
-
formatTo
- Specified by:
formatToin interfaceFormattable
-
serialize
public static <T extends CBSerializableType> void serialize(CBSerializationContextType context, CBList<T> x, CBSerializeType<T> ft) throws IOException Serialize the given value.- Type Parameters:
T- The type of list values- Parameters:
context- The serialization contextx- The valueft- A serializer forT- Throws:
IOException- On errors
-
deserialize
public static <T extends CBSerializableType> CBList<T> deserialize(CBSerializationContextType context, CBDeserializeType<T> ft) throws IOException Deserialize a list value.- Type Parameters:
T- The type of list values- Parameters:
context- The serialization contextft- A deserializer forT- Returns:
- A list of values of type
T - Throws:
IOException- On errors
-
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). -
values
-