Package cn.xuanyuanli.core.util
Record Class Pojos.QuadKey
java.lang.Object
java.lang.Record
cn.xuanyuanli.core.util.Pojos.QuadKey
- Enclosing class:
Pojos
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thecoverrecord component.private final Class<?> The field for thedestClassrecord component.private final TreeSet<?> The field for themapKeysrecord component.private final Class<?> The field for thesourceClassrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancover()Returns the value of thecoverrecord component.Class<?> Returns the value of thedestClassrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.TreeSet<?> mapKeys()Returns the value of themapKeysrecord component.Class<?> Returns the value of thesourceClassrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sourceClass
The field for thesourceClassrecord component. -
destClass
The field for thedestClassrecord component. -
mapKeys
The field for themapKeysrecord component. -
cover
private final boolean coverThe field for thecoverrecord component.
-
-
Constructor Details
-
QuadKey
Creates an instance of aQuadKeyrecord class.- Parameters:
sourceClass- the value for thesourceClassrecord componentdestClass- the value for thedestClassrecord componentmapKeys- the value for themapKeysrecord componentcover- the value for thecoverrecord component
-
-
Method Details
-
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 '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
sourceClass
Returns the value of thesourceClassrecord component.- Returns:
- the value of the
sourceClassrecord component
-
destClass
Returns the value of thedestClassrecord component.- Returns:
- the value of the
destClassrecord component
-
mapKeys
Returns the value of themapKeysrecord component.- Returns:
- the value of the
mapKeysrecord component
-
cover
public boolean cover()Returns the value of thecoverrecord component.- Returns:
- the value of the
coverrecord component
-