Package io.getstream.core.models
Class CollectionData
- java.lang.Object
-
- io.getstream.core.models.CollectionData
-
public final class CollectionData extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CollectionData()
CollectionData(java.lang.String id)
CollectionData(java.lang.String collection, java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> data)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> CollectionData
buildFrom(T data)
boolean
equals(java.lang.Object o)
<T> CollectionData
from(T data)
<T> T
get(java.lang.String key)
java.lang.String
getCollection()
java.util.Map<java.lang.String,java.lang.Object>
getData()
java.lang.String
getID()
int
hashCode()
<T> CollectionData
set(java.lang.String key, T value)
java.lang.String
toString()
-
-
-
Method Detail
-
buildFrom
public static <T> CollectionData buildFrom(T data)
-
getID
public java.lang.String getID()
-
getCollection
public java.lang.String getCollection()
-
getData
public java.util.Map<java.lang.String,java.lang.Object> getData()
-
set
public <T> CollectionData set(java.lang.String key, T value)
-
from
public <T> CollectionData from(T data)
-
get
public <T> T get(java.lang.String key)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-