Record Class Pojos.QuadKey

java.lang.Object
java.lang.Record
cn.xuanyuanli.core.util.Pojos.QuadKey
Enclosing class:
Pojos

public static record Pojos.QuadKey(Class<?> sourceClass, Class<?> destClass, TreeSet<?> mapKeys, boolean cover) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
    The field for the cover record component.
    private final Class<?>
    The field for the destClass record component.
    private final TreeSet<?>
    The field for the mapKeys record component.
    private final Class<?>
    The field for the sourceClass record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    QuadKey(Class<?> sourceClass, Class<?> destClass, TreeSet<?> mapKeys, boolean cover)
    Creates an instance of a QuadKey record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the cover record component.
    Returns the value of the destClass record component.
    boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns a hash code value for this object.
    Returns the value of the mapKeys record component.
    Returns the value of the sourceClass record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • sourceClass

      private final Class<?> sourceClass
      The field for the sourceClass record component.
    • destClass

      private final Class<?> destClass
      The field for the destClass record component.
    • mapKeys

      private final TreeSet<?> mapKeys
      The field for the mapKeys record component.
    • cover

      private final boolean cover
      The field for the cover record component.
  • Constructor Details

    • QuadKey

      public QuadKey(Class<?> sourceClass, Class<?> destClass, TreeSet<?> mapKeys, boolean cover)
      Creates an instance of a QuadKey record class.
      Parameters:
      sourceClass - the value for the sourceClass record component
      destClass - the value for the destClass record component
      mapKeys - the value for the mapKeys record component
      cover - the value for the cover record component
  • Method Details

    • equals

      public boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • sourceClass

      public Class<?> sourceClass()
      Returns the value of the sourceClass record component.
      Returns:
      the value of the sourceClass record component
    • destClass

      public Class<?> destClass()
      Returns the value of the destClass record component.
      Returns:
      the value of the destClass record component
    • mapKeys

      public TreeSet<?> mapKeys()
      Returns the value of the mapKeys record component.
      Returns:
      the value of the mapKeys record component
    • cover

      public boolean cover()
      Returns the value of the cover record component.
      Returns:
      the value of the cover record component