Record Class ConfigBindingSnapshot<T>
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.ConfigBindingSnapshot<T>
- Type Parameters:
T- immutable scalar or record type- Record Components:
version- nonnegative source versionvalue- typed value, possibly null for an absent optional scalar
-
Constructor Summary
ConstructorsConstructorDescriptionConfigBindingSnapshot(long version, T value) Rejects negative source versions. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()Returns version information without exposing configuration values.value()Returns the value of thevaluerecord component.longversion()Returns the value of theversionrecord component.
-
Constructor Details
-
ConfigBindingSnapshot
Rejects negative source versions.- Throws:
IllegalArgumentException- if the version is negative
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
version
-
value
-