Package es.situm.sdk.model
Class Resource
- java.lang.Object
-
- es.situm.sdk.model.Resource
-
- All Implemented Interfaces:
Filterable
- Direct Known Subclasses:
Building
,Floor
,Geofence
,OrganizationTheme
,Poi
,PoiCategory
,RemoteCalibration
public abstract class Resource extends Object implements Filterable
Abstract base class with common properties across Resources
-
-
Field Summary
Fields Modifier and Type Field Description static String
EMPTY_IDENTIFIER
static int
EMPTY_IDENTIFIER_BACKWARDS
-
Constructor Summary
Constructors Constructor Description Resource(es.situm.sdk.model.Resource.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Date
getCreatedAt()
Returns a date containing the time when a resource was first created.Map<String,String>
getCustomFields()
Returns map of custom fields, indexed by their name.String
getIdentifier()
Returns the unique identifier of the resourceDate
getUpdatedAt()
Returns a date containing the time when a resource was last updated.int
hashCode()
String
toString()
-
-
-
Field Detail
-
EMPTY_IDENTIFIER
public static final String EMPTY_IDENTIFIER
- See Also:
- Constant Field Values
-
EMPTY_IDENTIFIER_BACKWARDS
public static final int EMPTY_IDENTIFIER_BACKWARDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getIdentifier
@NonNull public final String getIdentifier()
Returns the unique identifier of the resource- Returns:
String
-
getUpdatedAt
@NonNull public final Date getUpdatedAt()
Returns a date containing the time when a resource was last updated.- Returns:
- Date copy. If there is no value, returns new Date(0).
-
getCreatedAt
@NonNull public final Date getCreatedAt()
Returns a date containing the time when a resource was first created.- Returns:
- Date copy. If there is no value, returns new Date(0).
-
getCustomFields
@NonNull public final Map<String,String> getCustomFields()
Returns map of custom fields, indexed by their name.- Specified by:
getCustomFields
in interfaceFilterable
- Returns:
- Unmodifiable
Map
<String
,String
>
-
-