I
- the type of entity identifiers used by the storagepublic final class StorageSpec<I>
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
io.spine.core.BoundedContextName |
context()
Obtains the name of the context served by the storage.
|
io.spine.type.TypeUrl |
entityStateUrl()
Obtains the URL of the entity state type.
|
boolean |
equals(java.lang.Object obj) |
io.spine.core.BoundedContextName |
getBoundedContextName()
Deprecated.
please use
StorageSpec.context() |
io.spine.type.TypeUrl |
getEntityStateUrl()
Deprecated.
please use
StorageSpec.entityStateUrl() |
java.lang.Class<I> |
getIdClass()
Deprecated.
please use
StorageSpec.idClass() |
int |
hashCode() |
java.lang.Class<I> |
idClass()
Obtains the class of identifiers used by the storage.
|
static <I> StorageSpec<I> |
of(io.spine.core.BoundedContextName context,
io.spine.type.TypeUrl entityStateUrl,
java.lang.Class<I> idClass) |
java.lang.String |
toString() |
public static <I> StorageSpec<I> of(io.spine.core.BoundedContextName context, io.spine.type.TypeUrl entityStateUrl, java.lang.Class<I> idClass)
@Deprecated public io.spine.core.BoundedContextName getBoundedContextName()
StorageSpec.context()
public io.spine.core.BoundedContextName context()
@Deprecated public io.spine.type.TypeUrl getEntityStateUrl()
StorageSpec.entityStateUrl()
public io.spine.type.TypeUrl entityStateUrl()
@Deprecated public java.lang.Class<I> getIdClass()
StorageSpec.idClass()
public java.lang.Class<I> idClass()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object