public final class Options
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
Options()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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<Option,java.lang.Object> |
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,
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() |
public static final int MINIMUM_THRESHOLD
public static final int DEFAULT_THRESHOLD
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 boolean hasOption(Option option)
option
- The option to check for.public java.util.Map<Option,java.lang.Object> getOptions()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2003-2018 Simon Harris. All rights reserved.