Class DefaultCqlDataSet
- java.lang.Object
-
- com.github.nosan.embedded.cassandra.cql.DefaultCqlDataSet
-
- All Implemented Interfaces:
CqlDataSet,CqlScript
public class DefaultCqlDataSet extends Object implements CqlDataSet
Default implementation of theCqlDataSetinterface.- Since:
- 4.0.1
- Author:
- Dmytro Nosan
- See Also:
CqlDataSet,DefaultCqlDataSet.Builder
-
-
Constructor Summary
Constructors Constructor Description DefaultCqlDataSet(Collection<? extends CqlScript> scripts)Creates a new immutableDefaultCqlDataSetwith the specified CQL scripts.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)List<CqlScript>getScripts()Gets the list ofCqlScriptinstances contained within this dataset.inthashCode()StringtoString()-
Methods inherited from interface com.github.nosan.embedded.cassandra.cql.CqlDataSet
forEachScript, getStatements
-
Methods inherited from interface com.github.nosan.embedded.cassandra.cql.CqlScript
forEachStatement
-
-
-
-
Constructor Detail
-
DefaultCqlDataSet
public DefaultCqlDataSet(Collection<? extends CqlScript> scripts)
Creates a new immutableDefaultCqlDataSetwith the specified CQL scripts.- Parameters:
scripts- the collection ofCqlScriptinstances to include in this dataset (must not benull)- Throws:
NullPointerException- ifscriptsisnull
-
-
Method Detail
-
getScripts
public List<CqlScript> getScripts()
Gets the list ofCqlScriptinstances contained within this dataset.The returned list is unmodifiable to preserve the immutability of the dataset.
- Specified by:
getScriptsin interfaceCqlDataSet- Returns:
- an unmodifiable list of
CqlScriptinstances (nevernull)
-
-