Class GlobalId

    • Constructor Detail

      • GlobalId

        public GlobalId​(String id)
        Creates a new GlobalId
        Parameters:
        id - string representation of the global id. Must be of the form domain:localId
        Throws:
        IllegalArgumentException - if the id does not have the expected form
    • Method Detail

      • isValid

        public static boolean isValid​(String id)
      • getDomain

        public String getDomain()
      • getLocalId

        public String getLocalId()
      • create

        public static GlobalId create​(String providerId,
                                      String remoteId)
        creates a global id based on provider and remote id
        Parameters:
        providerId -
        remoteId -
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object