Record Class ConfigurationSource.Snapshot
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.ConfigurationSource.Snapshot
- Record Components:
version- nonnegative source version, stable across reconnectsvalues- immutable string configuration, validated by the consuming host
- Enclosing interface:
ConfigurationSource
-
Constructor Summary
Constructors -
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 only version information; values are never formatted.values()Returns the value of thevaluesrecord component.longversion()Returns the value of theversionrecord component.
-
Constructor Details
-
Snapshot
Copies the source snapshot.- Throws:
IllegalArgumentException- if the version is negativeNullPointerException- if the map or an entry is null
-
-
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
-
values
-