Class Resource

    • Constructor Summary

      Constructors 
      Constructor Description
      Resource​(es.situm.sdk.model.Resource.Builder builder)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.util.Date getCreatedAt()
      Deprecated.
      This method has been deprecated, do not use it as it may not return the expected information.
      java.util.Map<java.lang.String,​java.lang.String> getCustomFields()
      Returns map of custom fields, indexed by their name.
      java.lang.String getIdentifier()
      Returns the unique identifier of the resource
      java.util.Date getUpdatedAt()
      Deprecated.
      This method has been deprecated, do not use it as it may not return the expected information.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • EMPTY_IDENTIFIER

        public static final java.lang.String EMPTY_IDENTIFIER
        See Also:
        Constant Field Values
      • EMPTY_IDENTIFIER_BACKWARDS

        public static final int EMPTY_IDENTIFIER_BACKWARDS
        See Also:
        Constant Field Values
    • Constructor Detail

      • Resource

        public Resource​(es.situm.sdk.model.Resource.Builder builder)
    • Method Detail

      • getIdentifier

        @NonNull
        public final java.lang.String getIdentifier()
        Returns the unique identifier of the resource
        Returns:
        String
      • getUpdatedAt

        @NonNull
        @Deprecated
        public final java.util.Date 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

        @NonNull
        @Deprecated
        public final java.util.Date 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

        @NonNull
        public final java.util.Map<java.lang.String,​java.lang.String> getCustomFields()
        Returns map of custom fields, indexed by their name.
        Specified by:
        getCustomFields in interface Filterable
        Returns:
        Unmodifiable Map<String, String>
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object