Package app.ductape.sdk.graph.types
Record Class GraphTypes.GraphIndex
java.lang.Object
java.lang.Record
app.ductape.sdk.graph.types.GraphTypes.GraphIndex
- Enclosing class:
- GraphTypes
-
Constructor Summary
Constructors -
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.Returns the value of thelabelOrTyperecord component.name()Returns the value of thenamerecord component.Returns the value of thepropertiesrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.booleanunique()Returns the value of theuniquerecord component.
-
Constructor Details
-
GraphIndex
public GraphIndex(String name, String labelOrType, List<String> properties, boolean unique, String type, String state) Creates an instance of aGraphIndexrecord class.- Parameters:
name- the value for thenamerecord componentlabelOrType- the value for thelabelOrTyperecord componentproperties- the value for thepropertiesrecord componentunique- the value for theuniquerecord componenttype- the value for thetyperecord componentstate- the value for thestaterecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
labelOrType
Returns the value of thelabelOrTyperecord component.- Returns:
- the value of the
labelOrTyperecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
unique
public boolean unique()Returns the value of theuniquerecord component.- Returns:
- the value of the
uniquerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-