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
Abstract base class with common properties across Resources
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal DateDeprecated.This method has been deprecated, do not use it as it may not return the expected information.Returns map of custom fields, indexed by their name.final StringReturns the unique identifier of the resourcefinal DateDeprecated.This method has been deprecated, do not use it as it may not return the expected information.inthashCode()toString()
-
Field Details
-
EMPTY_IDENTIFIER
- See Also:
-
EMPTY_IDENTIFIER_BACKWARDS
public static final int EMPTY_IDENTIFIER_BACKWARDS- See Also:
-
-
Constructor Details
-
Resource
public Resource(es.situm.sdk.model.Resource.Builder builder)
-
-
Method Details
-
getIdentifier
Returns the unique identifier of the resource- Returns:
String
-
getUpdatedAt
Deprecated.This method has been deprecated, do not use it as it may not return the expected information.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
Deprecated.This method has been deprecated, do not use it as it may not return the expected information.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
Returns map of custom fields, indexed by their name.- Specified by:
getCustomFieldsin interfaceFilterable- Returns:
- Unmodifiable
Map<String,String>
-
equals
-
hashCode
public int hashCode() -
toString
-