Package com.iizix.prop
Class ClasspathEntry
- java.lang.Object
- com.iizix.prop.ClasspathEntry
public class ClasspathEntry extends java.lang.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
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClasspathEntry.Type
The enumeration for the ClasspathEntry type.
Field Summary
Fields Modifier and Type Field Description java.lang.String
path
The path entry.ClasspathEntry.Type
type
The type of entry.
Constructor Summary
Constructors Constructor Description ClasspathEntry(ClasspathEntry.Type type, java.lang.String path)
Constructor.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Checks for two equals.static ClasspathEntry
fromString(java.lang.String string)
Creates a new instance of ClasspathEntry from a string that came fromtoString()
.int
hashCode()
Gets the hash code.java.lang.String
toString()
Creates a string out of the entry that later can be used to create a new instance of the ClasspathEntry usingfromString(String)
.
Field Detail
type
public final ClasspathEntry.Type type
The type of entry.
path
public final java.lang.String path
The path entry.
Constructor Detail
ClasspathEntry
public ClasspathEntry(ClasspathEntry.Type type, java.lang.String path)
Constructor.- Parameters:
type
- Type of entry.path
- The path entry.- Throws:
java.lang.NullPointerException
- if type or path is null.
Method Detail
fromString
public static ClasspathEntry fromString(java.lang.String string)
Creates a new instance of ClasspathEntry from a string that came fromtoString()
.- Parameters:
string
- The string.- Returns:
- A new ClasspathEntry instance.
- Throws:
java.lang.IllegalArgumentException
- If the string format is invalid.
toString
public java.lang.String toString()
Creates a string out of the entry that later can be used to create a new instance of the ClasspathEntry usingfromString(String)
.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string as TYPE=path.
equals
public boolean equals(java.lang.Object o)
Checks for two equals.- Overrides:
equals
in classjava.lang.Object
hashCode
public int hashCode()
Gets the hash code.- Overrides:
hashCode
in classjava.lang.Object