com.jstatcom.engine
Class LoadTypes
- java.lang.Object
-
- com.jstatcom.engine.LoadTypes
-
- Direct Known Subclasses:
- GaussLoadTypes, GRTELoadTypes, MatlabLoadTypes, MLabLoadTypes, OxLoadTypes, StubLoadTypes, StubMlabLoadTypes
public abstract class LoadTypes extends java.lang.ObjectThis class contains an enumeration of constants that define different types of modules that can be loaded by a certain engine, for example dynamic link libraries (.dll) or special engine executables (.lib). This class needs to be subclassed to define the necessary constants for a certain engine.It implements the typesave enum pattern (Joshua Bloch, "Effective Java", Item 21). If you compare
LoadTypes, always use the==operator.
-
-
Constructor Summary
Constructors Constructor and Description LoadTypes(java.lang.String name)Creates a new config key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)Override prevention method to enforcea.equals(b)if and onlyif a==b.inthashCode()Override prevention method invokes super method.java.lang.Stringname()Gets the name of this load type.java.lang.StringtoString()Gets a string representation.
-
-
-
Constructor Detail
-
LoadTypes
public LoadTypes(java.lang.String name)
Creates a new config key.- Parameters:
name- the identifier of the new key- Throws:
java.lang.IllegalArgumentException-if (name == null)
-
-
Method Detail
-
equals
public final boolean equals(java.lang.Object o)
Override prevention method to enforcea.equals(b)if and onlyif a==b.- Overrides:
equalsin classjava.lang.Object- Parameters:
o- object to compare with- Returns:
trueif equal,falseotherwise
-
hashCode
public final int hashCode()
Override prevention method invokes super method.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hash code
-
name
public final java.lang.String name()
Gets the name of this load type.- Returns:
- the name of this type
-
toString
public final java.lang.String toString()
Gets a string representation.- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of
this
-
-
DMelt 3.0 © DataMelt by jWork.ORG