Package io.getstream.core.models
Class Data
- java.lang.Object
-
- io.getstream.core.models.Data
-
public final class Data extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> Data
buildFrom(T data)
boolean
equals(java.lang.Object o)
Data
from(java.util.Map<java.lang.String,java.lang.Object> map)
<T> Data
from(T data)
<T> T
get(java.lang.String key)
java.util.Map<java.lang.String,java.lang.Object>
getData()
java.lang.String
getID()
int
hashCode()
<T> Data
set(java.lang.String key, T value)
java.lang.String
toString()
-
-
-
Method Detail
-
buildFrom
public static <T> Data buildFrom(T data)
-
getID
public java.lang.String getID()
-
getData
public java.util.Map<java.lang.String,java.lang.Object> getData()
-
set
public <T> Data set(java.lang.String key, T value)
-
from
public <T> Data from(T data)
-
from
public Data from(java.util.Map<java.lang.String,java.lang.Object> map)
-
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
-
-