Record Class RaftInvariantChecker.InvariantResult
java.lang.Object
java.lang.Record
com.loomcache.server.consensus.RaftInvariantChecker.InvariantResult
- Record Components:
valid- whether the invariant holdsviolation- description of the violation (null if valid)
- Enclosing class:
RaftInvariantChecker
-
Constructor Summary
ConstructorsConstructorDescriptionInvariantResult(boolean valid, @Nullable String violation) Creates an instance of aInvariantResultrecord class. -
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.ok()final StringtoString()Returns a string representation of this record class.booleanvalid()Returns the value of thevalidrecord component.@Nullable StringReturns the value of theviolationrecord component.
-
Constructor Details
-
InvariantResult
-
-
Method Details
-
ok
-
violation
-
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. -
valid
-
violation
-