Package dev.enola.web
Class ProtoToThingRepository
java.lang.Object
dev.enola.web.ProtoToThingRepository
- All Implemented Interfaces:
Provider<String,,Thing> ProviderFromIRI<Thing>,Repository<Thing>,ThingProvider,ThingRepository
-
Field Summary
Fields inherited from interface dev.enola.thing.repo.ThingProvider
CTX -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.enola.data.Repository
streamMethods inherited from interface dev.enola.thing.repo.ThingProvider
get, get, get, get, getBuilder, getBuilder, getBuilder, getOptional
-
Constructor Details
-
ProtoToThingRepository
-
-
Method Details
-
get
Description copied from interface:ProviderGet.- Specified by:
getin interfaceProvider<String,Thing> - Specified by:
getin interfaceProviderFromIRI<Thing>- Specified by:
getin interfaceThingProvider- Parameters:
iri- Key, never null- Returns:
- value, or null if there is no Value for the given key
-
listIRI
- Specified by:
listIRIin interfaceRepository<Thing>
-
list
Description copied from interface:Repositorylist() returns Ts directly (not just the IRIs, likeRepository.listIRI()).This default implementation here just combines
Repository.listIRI()andProviderFromIRI.get(String). Your subclass may be able to provide a more efficient and more "direct" implementation?- Specified by:
listin interfaceRepository<Thing>
-