Package dev.enola.thing
Record Class Literal
java.lang.Object
java.lang.Record
dev.enola.thing.Literal
- Record Components:
value- the string value of the literaldatatypeIRI- the IRI of the datatype of the literal
Deprecated.
Literal is a value with datatype (IRI) which can appear in the
PredicatesObjects.properties() Map
values.
Normally, values are some other native Java object; this is only for cases which could not be
decoded to a more suitable Java type, because no Datatype for this literal's datatype IRI
was registered.
This is a LEGACY type which (now) overlaps with PredicatesObjects.datatype(String predicateIRI)
(and a String value property). Prefer using that than this, which will eventually be removed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the value of thedatatypeIRIrecord component.final booleanDeprecated.Indicates whether some other object is "equal to" this one.final inthashCode()Deprecated.Returns a hash code value for this object.final StringtoString()Deprecated.Returns a string representation of this record class.value()Deprecated.Returns the value of thevaluerecord component.
-
Constructor Details
-
Literal
Deprecated.Creates an instance of aLiteralrecord class.- Parameters:
value- the value for thevaluerecord componentdatatypeIRI- the value for thedatatypeIRIrecord component
-
-
Method Details
-
toString
Deprecated.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
Deprecated.Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Deprecated.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. All components in this record class are compared withObjects::equals(Object,Object). -
value
Deprecated.Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
datatypeIRI
Deprecated.Returns the value of thedatatypeIRIrecord component.- Returns:
- the value of the
datatypeIRIrecord component
-