Record Class Messages.ManifestWant
java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.content.Messages.ManifestWant
- Enclosing class:
Messages
-
Constructor Summary
ConstructorsConstructorDescriptionManifestWant(int t, String root) Creates an instance of aManifestWantrecord class.ManifestWant(String root) -
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.root()Returns the value of therootrecord component.intt()Returns the value of thetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ManifestWant
-
ManifestWant
Creates an instance of aManifestWantrecord class.- Parameters:
t- the value for thetrecord componentroot- the value for therootrecord 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. -
t
public int t()Returns the value of thetrecord component.- Returns:
- the value of the
trecord component
-
root
Returns the value of therootrecord component.- Returns:
- the value of the
rootrecord component
-