Package org.eclipse.aether.named
Class NamedLockKey
java.lang.Object
org.eclipse.aether.named.NamedLockKey
A named lock key.
Instances of this class are immutable, implement hash/equals and toString method (for easier debug).
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
name()
Returns this key name, nevernull
.static NamedLockKey
static NamedLockKey
of
(String name, Collection<String> resources) Auxiliary information, not used by Resolver.toString()
-
Method Details
-
name
Returns this key name, nevernull
. This is the identity of this lock key instance and is the only thing that is used in implementations of hash/equals, etc. -
resources
Auxiliary information, not used by Resolver. Meant to return resource name(s) or any kind of identifiers protected by this key, nevernull
.Contents on this field is consumer project specific, and should be used only as "extra information": resolver itself uses these only for logging purposes.
-
equals
-
hashCode
-
toString
-
of
-
of
-