public class PackedDataSourceBuilder extends Object implements org.apache.commons.lang3.builder.Builder<PackedDataSource>
PackedDataSource
s.Constructor and Description |
---|
PackedDataSourceBuilder() |
PackedDataSourceBuilder(File f) |
PackedDataSourceBuilder(String name) |
Modifier and Type | Method and Description |
---|---|
PackedDataSource |
build() |
PreferenceDomain |
getDomain() |
File |
getFile()
Get the input file.
|
String |
getName() |
PackedDataSourceBuilder |
setDomain(PreferenceDomain dom)
Set the preference domain for the data source.
|
PackedDataSourceBuilder |
setFile(File f)
Set the input file.
|
PackedDataSourceBuilder |
setFile(String fn)
Set the input file by name.
|
PackedDataSourceBuilder |
setName(String n)
Set the data source name.
|
public PackedDataSourceBuilder()
public PackedDataSourceBuilder(String name)
public PackedDataSourceBuilder(File f)
public PackedDataSourceBuilder setName(String n)
n
- The name of the data source.setFile(File)
public File getFile()
public PackedDataSourceBuilder setFile(File f)
setName(String)
) is used
as the file name.f
- The file to read ratings from.public PackedDataSourceBuilder setFile(String fn)
fn
- The input file name.public PreferenceDomain getDomain()
public PackedDataSourceBuilder setDomain(PreferenceDomain dom)
dom
- The preference domain.public PackedDataSource build()
build
in interface org.apache.commons.lang3.builder.Builder<PackedDataSource>