Package net.starype.quiz.api.parser
Class DBTable
- java.lang.Object
-
- net.starype.quiz.api.parser.DBTable
-
public class DBTable extends java.lang.ObjectAnDBTableis an object that contains a list of argument and a sublist of indexedArguments
It is used to defines an generic entry for any DataBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDBTable.Builder
-
Method Summary
Modifier and Type Method Description booleancontainsArgument(java.lang.String argument)Check if the table contains a given argumentjava.util.Set<? extends java.lang.String>getArguments()Get the list of all the arguments of the tablejava.util.Set<? extends java.lang.String>getIndexedArguments()Get the list of all the indexed arguments of the table.
-
-
-
Method Detail
-
getArguments
public java.util.Set<? extends java.lang.String> getArguments()
Get the list of all the arguments of the table- Returns:
SetofStrings representing the argument of the DB
-
getIndexedArguments
public java.util.Set<? extends java.lang.String> getIndexedArguments()
Get the list of all the indexed arguments of the table. This list is necessary as a subset of the arguments list.- Returns:
SetofStrings that hold all the arguments
-
containsArgument
public boolean containsArgument(java.lang.String argument)
Check if the table contains a given argument- Parameters:
argument-Stringthat hold the argument we are checking the existence- Returns:
- An
Booleanthat hold whether or not the given argument is contained in the table
-
-