Package dev.enola.thing.impl
Class ImmutablePredicatesObjects
java.lang.Object
dev.enola.thing.impl.ImmutablePredicatesObjects
- All Implemented Interfaces:
IImmutablePredicatesObjects,PredicatesObjects
- Direct Known Subclasses:
ImmutableThing
@Immutable
@ThreadSafe
public class ImmutablePredicatesObjects
extends Object
implements IImmutablePredicatesObjects
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.enola.thing.PredicatesObjects
PredicatesObjects.Builder<B extends PredicatesObjects> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ImmutableMap<String, String> protected final ImmutableMap<String, Object> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedImmutablePredicatesObjects(ImmutableMap<String, Object> properties, ImmutableMap<String, String> datatypes) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends IImmutablePredicatesObjects>
PredicatesObjects.Builder<T> builder()static PredicatesObjects.Builder<? extends IImmutablePredicatesObjects> builderWithExpectedSize(int expectedSize) copy()@Nullable StringIRI of datatype of predicate, if any (else null).boolean<T> @Nullable TObject of predicate.inthashCode()IRIs of the Predicates of this Thing.The Map's key is the IRI of a predicate, and the value is as would be returned byPredicatesObjects.get(String).toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.enola.thing.PredicatesObjects
datatype, get, get, get, getLinks, getOptional, getString, getString, getThing, getThing, getThingOrThrow, getThings, getThings, getThings, getThings, hasLink, isIterable, isLinkObject, isOrdered, isStruct
-
Field Details
-
properties
-
datatypes
-
-
Constructor Details
-
ImmutablePredicatesObjects
protected ImmutablePredicatesObjects(ImmutableMap<String, Object> properties, ImmutableMap<String, String> datatypes)
-
-
Method Details
-
builder
-
builderWithExpectedSize
public static PredicatesObjects.Builder<? extends IImmutablePredicatesObjects> builderWithExpectedSize(int expectedSize) -
properties
Description copied from interface:PredicatesObjectsThe Map's key is the IRI of a predicate, and the value is as would be returned byPredicatesObjects.get(String).- Specified by:
propertiesin interfaceIImmutablePredicatesObjects- Specified by:
propertiesin interfacePredicatesObjects
-
predicateIRIs
Description copied from interface:PredicatesObjectsIRIs of the Predicates of this Thing.- Specified by:
predicateIRIsin interfaceIImmutablePredicatesObjects- Specified by:
predicateIRIsin interfacePredicatesObjects
-
get
Description copied from interface:PredicatesObjectsObject of predicate. The type is e.g. directly a String, Integer etc. Alternatively, it may be aLink(orURI) with an IRI or another PredicatesObjects (for an "inline embedded/expanded blank node") or aListof such items. The object is immutable. May be null if Thing has no such predicate.- Specified by:
getin interfacePredicatesObjects
-
datatypes
- Specified by:
datatypesin interfaceIImmutablePredicatesObjects- Specified by:
datatypesin interfacePredicatesObjects
-
datatype
Description copied from interface:PredicatesObjectsIRI of datatype of predicate, if any (else null). Not all predicates will have a datatype set. This is required because the predicate's Object Java class is not necessarily unique; e.g. both dev.enola.model.schema.Datatypes.DATE as well as dev.enola.model.xsd.DATE are java.time.LocalDate instances.- Specified by:
datatypein interfacePredicatesObjects
-
equals
-
hashCode
-
toString
-
copy
- Specified by:
copyin interfacePredicatesObjects
-