Class ClasspathEntry

java.lang.Object
com.iizix.prop.ClasspathEntry

public class ClasspathEntry extends Object
Classpath entry specification for the classpath. This information comes from Eclipse and is simplified in order not to use Inclusion and Exclusion patterns, Access rules or Extra attributes. This could be added later.
Author:
Christopher Mindus
  • Field Details

  • Constructor Details

  • Method Details

    • fromString

      public static ClasspathEntry fromString(String string)
      Creates a new instance of ClasspathEntry from a string that came from toString().
      Parameters:
      string - The string.
      Returns:
      A new ClasspathEntry instance.
      Throws:
      IllegalArgumentException - If the string format is invalid.
    • toString

      public String toString()
      Creates a string out of the entry that later can be used to create a new instance of the ClasspathEntry using fromString(String).
      Overrides:
      toString in class Object
      Returns:
      A string as TYPE=path.
    • equals

      public boolean equals(Object o)
      Checks for two equals.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Gets the hash code.
      Overrides:
      hashCode in class Object