Class SingularPendingReference
java.lang.Object
cz.cvut.kbss.jsonld.deserialization.reference.SingularPendingReference
- All Implemented Interfaces:
PendingReference
Represents a singular pending reference.
That is, a singular attribute referencing an object.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SingularPendingReference
-
-
Method Details
-
apply
Description copied from interface:PendingReference
Applies the specified referenced object to this pending reference, resolving it.Resolving the reference basically means inserting the referenced object into the place represented by this instance (e.g., field value, collection).
- Specified by:
apply
in interfacePendingReference
- Parameters:
referencedObject
- The object referenced by this pending reference
-
getTargetType
Description copied from interface:PendingReference
Gets the target type of the pending reference.If the target type cannot be reliably determined (for instance, because it is a collection), this method should return
Optional.empty()
.- Specified by:
getTargetType
in interfacePendingReference
- Returns:
- The target type
-
equals
-
hashCode
public int hashCode()
-