Record Class Availability
java.lang.Object
java.lang.Record
org.aksw.vshell.registry.Availability
-
Constructor Summary
ConstructorsConstructorDescriptionAvailability(boolean available, Throwable throwable, Instant timeStamp) Creates an instance of aAvailabilityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theavailablerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thethrowablerecord component.Returns the value of thetimeStamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Availability
Creates an instance of aAvailabilityrecord class.- Parameters:
available- the value for theavailablerecord componentthrowable- the value for thethrowablerecord componenttimeStamp- the value for thetimeStamprecord component
-
-
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. -
available
public boolean available()Returns the value of theavailablerecord component.- Returns:
- the value of the
availablerecord component
-
throwable
Returns the value of thethrowablerecord component.- Returns:
- the value of the
throwablerecord component
-
timeStamp
Returns the value of thetimeStamprecord component.- Returns:
- the value of the
timeStamprecord component
-