public final class FinalList extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ALL
The #all value
|
static String |
EXTENSION
The extension value
|
static String |
RESTRICTION
The restriction value
|
Constructor and Description |
---|
FinalList()
Creates a new default FinalList.
|
FinalList(String listOfValues)
Creates a new FinalList using the given list of values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasAll()
Returns true if the FinalList contains "#all".
|
boolean |
hasExtension()
Returns true if extension is contained within this FinalList.
|
boolean |
hasRestriction()
Returns true if restriction is contained within this FinalList.
|
String |
toString()
Returns the String representation of this FinalList.
|
public static final String ALL
public static final String EXTENSION
public static final String RESTRICTION
public FinalList()
public FinalList(String listOfValues)
listOfValues
- the list of final valuesIllegalArgumentException
- if the list of values contains
something other than "#all", "extension", "restriction".public boolean hasAll()
public boolean hasExtension()
public boolean hasRestriction()
Copyright © 2017. All rights reserved.