Class Fingerprint


  • public class Fingerprint
    extends java.lang.Object
    Object representing the three parts of a Perforce fingerprint, the server address, the user name, and the ticket token value.

    Note: currently the user portion should be "******" as it is not used.

    • Constructor Summary

      Constructors 
      Constructor Description
      Fingerprint()
      Creates an empty fingerprint
      Fingerprint​(java.lang.String serverAddress, java.lang.String userName, java.lang.String fingerprintValue)
      Create a fingerprint with the specified server address, user name, and fingerprint value.
    • Constructor Detail

      • Fingerprint

        public Fingerprint()
        Creates an empty fingerprint
      • Fingerprint

        public Fingerprint​(java.lang.String serverAddress,
                           java.lang.String userName,
                           java.lang.String fingerprintValue)
        Create a fingerprint with the specified server address, user name, and fingerprint value.
        Parameters:
        serverAddress - serverAddress
        userName - userName
        fingerprintValue - fingerprintValue
    • Method Detail

      • getServerAddress

        public java.lang.String getServerAddress()
        Returns:
        the serverAddress
      • setServerAddress

        public void setServerAddress​(java.lang.String serverAddress)
        Parameters:
        serverAddress - the serverAddress to set
      • getUserName

        public java.lang.String getUserName()
        Returns:
        the userName
      • setUserName

        public void setUserName​(java.lang.String userName)
        Parameters:
        userName - the userName to set
      • getFingerprintValue

        public java.lang.String getFingerprintValue()
        Returns:
        the fingerprintValue
      • setFingerprintValue

        public void setFingerprintValue​(java.lang.String fingerprintValue)
        Parameters:
        fingerprintValue - the fingerprintValue to set
      • equals

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

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

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