Record Class AxiomBasedLoadingParameters<T>

java.lang.Object
java.lang.Record
cz.cvut.kbss.jopa.sessions.util.AxiomBasedLoadingParameters<T>
Type Parameters:
T - Entity type
Record Components:
cls - Entity class
descriptor - Entity descriptor
bypassCache - Whether to bypass cache
axioms - Axioms to load the entity from

public record AxiomBasedLoadingParameters<T>(Class<T> cls, Descriptor descriptor, boolean bypassCache, Collection<Axiom<?>> axioms) extends Record
Loading parameters for loading an entity from axioms.
  • Constructor Details

    • AxiomBasedLoadingParameters

      public AxiomBasedLoadingParameters(Class<T> cls, Descriptor descriptor, boolean bypassCache, Collection<Axiom<?>> axioms)
      Creates an instance of a AxiomBasedLoadingParameters record class.
      Parameters:
      cls - the value for the cls record component
      descriptor - the value for the descriptor record component
      bypassCache - the value for the bypassCache record component
      axioms - the value for the axioms record component
  • Method Details

    • 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
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final 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.
    • cls

      public Class<T> cls()
      Returns the value of the cls record component.
      Returns:
      the value of the cls record component
    • descriptor

      public Descriptor descriptor()
      Returns the value of the descriptor record component.
      Returns:
      the value of the descriptor record component
    • bypassCache

      public boolean bypassCache()
      Returns the value of the bypassCache record component.
      Returns:
      the value of the bypassCache record component
    • axioms

      public Collection<Axiom<?>> axioms()
      Returns the value of the axioms record component.
      Returns:
      the value of the axioms record component