Class NamedLockKey

java.lang.Object
org.eclipse.aether.named.NamedLockKey

public final class NamedLockKey extends Object
A named lock key.

Instances of this class are immutable, implement hash/equals and toString method (for easier debug).

Since:
2.0.0
  • Method Details

    • name

      public String name()
      Returns this key name, never null. 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, never null.

      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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • of

      public static NamedLockKey of(String name, String... resources)
    • of

      public static NamedLockKey of(String name, Collection<String> resources)