Module org.neo4j.cypherdsl.core
Package org.neo4j.cypherdsl.core
Record Class StatementCatalog.Property
java.lang.Object
java.lang.Record
org.neo4j.cypherdsl.core.StatementCatalog.Property
- Record Components:
owningToken
- Zero or many owning tokens for a propertyname
- The name of the resolved property
- Enclosing interface:
StatementCatalog
public static record StatementCatalog.Property(Set<StatementCatalog.Token> owningToken, String name)
extends Record
A property that has been resolved. In case this property has been resolved for an entity, the entity itself will
be defined by its set of tokens. Tokens are guaranteed to be sorted and will be of the same type.
-
Constructor Summary
ConstructorDescriptionCreates a new property without an owner.Property
(Set<StatementCatalog.Token> owningToken, String name) The constructor enforces the use of unmodifiable sets and unique types accross tokens.Property
(StatementCatalog.Token owningToken, String name) Creates a new property with a single owning token. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.Returns the value of theowningToken
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Property
Creates a new property without an owner.- Parameters:
name
- The name of the resolved property
-
Property
Creates a new property with a single owning token.- Parameters:
owningToken
- The owning tokenname
- The name of the resolved property
-
Property
The constructor enforces the use of unmodifiable sets and unique types accross tokens.- Parameters:
owningToken
- Zero or many owning tokens for a propertyname
- The name of the resolved property
-
-
Method Details
-
owningType
- Returns:
- An optional, owning type.
-
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)
. -
owningToken
Returns the value of theowningToken
record component.- Returns:
- the value of the
owningToken
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-