Class IdCredentials.Helpers
java.lang.Object
com.cloudbees.plugins.credentials.common.IdCredentials.Helpers
- Enclosing interface:
- IdCredentials
The contract implementations of
Object.equals(Object) and Object.hashCode() that implementations of
this class must use as the basis for equality tests and as the hash code.- Since:
- 1.6
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanequals(IdCredentials self, Object o) StandardObject.equals(Object)implementation.static StringfixEmptyId(String id) Returns either the id or a generated new id if the supplied id is missing.static inthashCode(IdCredentials self) The standardObject.hashCode()implementation.
-
Constructor Details
-
Helpers
public Helpers()
-
-
Method Details
-
equals
StandardObject.equals(Object)implementation.- Parameters:
self- thethisreference.o- the other object.- Returns:
- true if equal.
-
hashCode
The standardObject.hashCode()implementation.- Parameters:
self- thethisreference.- Returns:
- the hash code.
-
fixEmptyId
Returns either the id or a generated new id if the supplied id is missing.- Parameters:
id- the supplied id.- Returns:
- either the id or a generated new id if the supplied id is missing.
-