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 boolean
equals
(IdCredentials self, Object o) StandardObject.equals(Object)
implementation.static String
fixEmptyId
(String id) Returns either the id or a generated new id if the supplied id is missing.static int
hashCode
(IdCredentials self) The standardObject.hashCode()
implementation.
-
Constructor Details
-
Helpers
public Helpers()
-
-
Method Details
-
equals
StandardObject.equals(Object)
implementation.- Parameters:
self
- thethis
reference.o
- the other object.- Returns:
- true if equal.
-
hashCode
The standardObject.hashCode()
implementation.- Parameters:
self
- thethis
reference.- 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.
-