Package com.iizix.prop
Class ClasspathEntry
java.lang.Object
com.iizix.prop.ClasspathEntry
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
Modifier and TypeClassDescriptionstatic enum
The enumeration for the ClasspathEntry type.Field Summary
Modifier and TypeFieldDescriptionfinal String
The path entry.final ClasspathEntry.Type
The type of entry.Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks for two equals.static ClasspathEntry
fromString
(String string) Creates a new instance of ClasspathEntry from a string that came fromtoString()
.int
hashCode()
Gets the hash code.toString()
Creates a string out of the entry that later can be used to create a new instance of the ClasspathEntry usingfromString(String)
.
Field Details
type
The type of entry.path
The path entry.
Constructor Details
ClasspathEntry
Constructor.- Parameters:
type
- Type of entry.path
- The path entry.- Throws:
NullPointerException
- if type or path is null.
Method Details
fromString
Creates a new instance of ClasspathEntry from a string that came fromtoString()
.- Parameters:
string
- The string.- Returns:
- A new ClasspathEntry instance.
- Throws:
IllegalArgumentException
- If the string format is invalid.
toString
Creates a string out of the entry that later can be used to create a new instance of the ClasspathEntry usingfromString(String)
.equals
Checks for two equals.hashCode
public int hashCode()Gets the hash code.