Class ResourceSeed


  • public class ResourceSeed
    extends Object
    Encapsulates the minimal information required to build a tracked resource URL.
    Since:
    1.10.0
    • Method Detail

      • of

        public static ResourceSeed of​(String id,
                                      int type)
        Constructs an instance from a resource id and type.
        Parameters:
        id - underlying resource id.
        type - underlying resource type (id).
        Returns:
        corresponding instance.
      • getId

        public String getId()
        Gets the underlying id of the resource this seed represents.
        Returns:
        the underlying id of the resource this seed represents.
      • getType

        public int getType()
        Gets the resource type this seed represents.
        Returns:
        the resource type this seed represents.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object