Package s2.types
Record Class BasinInfo
java.lang.Object
java.lang.Record
s2.types.BasinInfo
-
Constructor Summary
ConstructorsConstructorDescriptionBasinInfo
(String name, String scope, String cell, BasinState state) Creates an instance of aBasinInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptioncell()
Returns the value of thecell
record component.final boolean
Indicates whether some other object is "equal to" this one.static BasinInfo
fromProto
(s2.v1alpha.BasinInfo basinInfo) final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.scope()
Returns the value of thescope
record component.state()
Returns the value of thestate
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
BasinInfo
Creates an instance of aBasinInfo
record class.- Parameters:
name
- the value for thename
record componentscope
- the value for thescope
record componentcell
- the value for thecell
record componentstate
- the value for thestate
record component
-
-
Method Details
-
fromProto
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
scope
Returns the value of thescope
record component.- Returns:
- the value of the
scope
record component
-
cell
Returns the value of thecell
record component.- Returns:
- the value of the
cell
record component
-
state
Returns the value of thestate
record component.- Returns:
- the value of the
state
record component
-