|
Simian - Similarity Analyser v2.2.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectau.com.redhillconsulting.simian.Options
public final class Options
Encapsulates all checking options.
| Field Summary | |
|---|---|
static int |
DEFAULT_THRESHOLD
The default minimum number of lines that are considered significant. |
static int |
MINIMUM_THRESHOLD
The smallest legal value for threshold. |
| Constructor Summary | |
|---|---|
Options()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears the options. |
boolean |
equals(java.lang.Object object)
|
java.lang.Object |
getOption(Option option)
Obtains the value of a specified option. |
java.util.Map |
getOptions()
Obtains the value of all options that have been set/enabled. |
int |
getThreshold()
Obtain the value of the Option.THRESHOLD option. |
int |
hashCode()
|
boolean |
hasOption(Option option)
Determines if an option has been set or enabled. |
void |
setOption(Option option,
boolean enable)
Enables/disables an option. |
void |
setOption(Option option,
java.lang.Object value)
Sets the value of a specified option. |
void |
setThreshold(int threshold)
Sets the value of the Option.THRESHOLD option. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MINIMUM_THRESHOLD
public static final int DEFAULT_THRESHOLD
| Constructor Detail |
|---|
public Options()
| Method Detail |
|---|
public void clear()
public int getThreshold()
Option.THRESHOLD option.
public void setThreshold(int threshold)
Option.THRESHOLD option.
threshold - The minimum number of lines considered a match.public java.lang.Object getOption(Option option)
option - The option to get.
null if the option should be cleared.
public void setOption(Option option,
java.lang.Object value)
option - The option to set.value - The value; or null if the option should be cleared.
public void setOption(Option option,
boolean enable)
option - The option to set.enable - true if the option should be enabled; otherwise false.public boolean hasOption(Option option)
option - The option to check for.
public java.util.Map getOptions()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
Simian - Similarity Analyser v2.2.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||