Package com.perforce.p4java.server
Class Fingerprint
- java.lang.Object
-
- com.perforce.p4java.server.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 fingerprintFingerprint(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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getFingerprintValue()
java.lang.String
getServerAddress()
java.lang.String
getUserName()
int
hashCode()
void
setFingerprintValue(java.lang.String fingerprintValue)
void
setServerAddress(java.lang.String serverAddress)
void
setUserName(java.lang.String userName)
java.lang.String
toString()
-
-
-
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
- serverAddressuserName
- userNamefingerprintValue
- 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 classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-