Record Class DesignStore.Lookup<T>
java.lang.Object
java.lang.Record
com.eqixiac.equinix.mcp.server.DesignStore.Lookup<T>
- Type Parameters:
T- the value type- Record Components:
status- how it resolvedentry- the entry whenDesignStore.Status.FOUND, elsenull
- Enclosing class:
DesignStore
public static record DesignStore.Lookup<T>(DesignStore.Status status, DesignStore.Entry<T> entry)
extends Record
The outcome of a lookup.
-
Constructor Summary
ConstructorsConstructorDescriptionLookup(DesignStore.Status status, DesignStore.Entry<T> entry) Creates an instance of aLookuprecord class. -
Method Summary
Modifier and TypeMethodDescriptionentry()Returns the value of theentryrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfound()final inthashCode()Returns a hash code value for this object.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
found
public boolean found()- Returns:
truewhen the entry is live
-
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). -
status
-
entry
-