Package cz.cvut.kbss.jopa.sessions.util
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 classdescriptor- Entity descriptorbypassCache- Whether to bypass cacheaxioms- 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 Summary
ConstructorsConstructorDescriptionAxiomBasedLoadingParameters(Class<T> cls, Descriptor descriptor, boolean bypassCache, Collection<Axiom<?>> axioms) Creates an instance of aAxiomBasedLoadingParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionCollection<Axiom<?>>axioms()Returns the value of theaxiomsrecord component.booleanReturns the value of thebypassCacherecord component.cls()Returns the value of theclsrecord component.Returns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AxiomBasedLoadingParameters
public AxiomBasedLoadingParameters(Class<T> cls, Descriptor descriptor, boolean bypassCache, Collection<Axiom<?>> axioms) Creates an instance of aAxiomBasedLoadingParametersrecord class.- Parameters:
cls- the value for theclsrecord componentdescriptor- the value for thedescriptorrecord componentbypassCache- the value for thebypassCacherecord componentaxioms- the value for theaxiomsrecord 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 '=='. -
cls
Returns the value of theclsrecord component.- Returns:
- the value of the
clsrecord component
-
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
bypassCache
public boolean bypassCache()Returns the value of thebypassCacherecord component.- Returns:
- the value of the
bypassCacherecord component
-
axioms
Returns the value of theaxiomsrecord component.- Returns:
- the value of the
axiomsrecord component
-