java.lang.Object
org.codehaus.plexus.classworlds.realm.Entry
All Implemented Interfaces:
Comparable<Entry>

class Entry extends Object implements Comparable<Entry>
Import description entry.
  • Field Details

  • Constructor Details

  • Method Details

    • getClassLoader

      ClassLoader getClassLoader()
      Retrieve the class loader.
      Returns:
      The class loader.
    • getPackageName

      String getPackageName()
      Retrieve the package name.
      Returns:
      The package name.
    • matches

      boolean matches(String name)
      Determine if the class/resource name matches the package described by this entry.
      Parameters:
      name - The class or resource name to test, must not be null.
      Returns:
      true if this entry matches the classname, otherwise false.
    • compareTo

      public int compareTo(Entry that)
      Compare this entry to another for relative ordering.

      The natural ordering of Entry objects is reverse-alphabetical based upon package name.

      Specified by:
      compareTo in interface Comparable<Entry>
      Parameters:
      that - The object to compare.
      Returns:
      -1 if this object sorts before that object, 0 if they are equal, or 1 if this object sorts after that object.
    • equals

      public boolean equals(Object thatObj)
      Test this entry for equality to another.

      Consistent with compareTo(org.codehaus.plexus.classworlds.realm.Entry), this method tests for equality purely on the package name.

      Overrides:
      equals in class Object
      Parameters:
      thatObj - The object to compare
      Returns:
      true if the two objects are semantically equivalent, otherwise false.
    • hashCode

      public int hashCode()

      Consistent with equals(java.lang.Object), this method creates a hashCode based on the packagename.

      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object