Package net.starype.quiz.api.parser
Class DBTable
- java.lang.Object
-
- net.starype.quiz.api.parser.DBTable
-
public class DBTable extends java.lang.Object
AnDBTable
is 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 class
DBTable.Builder
-
Method Summary
Modifier and Type Method Description boolean
containsArgument(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:
Set
ofString
s 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:
Set
ofString
s that hold all the arguments
-
containsArgument
public boolean containsArgument(java.lang.String argument)
Check if the table contains a given argument- Parameters:
argument
-String
that hold the argument we are checking the existence- Returns:
- An
Boolean
that hold whether or not the given argument is contained in the table
-
-