Class IdCredentials.Helpers
- java.lang.Object
-
- com.cloudbees.plugins.credentials.common.IdCredentials.Helpers
-
- Enclosing interface:
- IdCredentials
public static final class IdCredentials.Helpers extends Object
The contract implementations ofObject.equals(Object)
andObject.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 Constructor Description Helpers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.
-
-
-
Method Detail
-
equals
public static boolean equals(IdCredentials self, Object o)
StandardObject.equals(Object)
implementation.- Parameters:
self
- thethis
reference.o
- the other object.- Returns:
- true if equal.
-
hashCode
public static int hashCode(IdCredentials self)
The standardObject.hashCode()
implementation.- Parameters:
self
- thethis
reference.- Returns:
- the hash code.
-
-