public final class ModuleInfoBuilder extends Object
ModuleInfo
as ModuleInfo has hidden constructors, this builder class has been
added as a way to make custom ModuleInfo objects when needed.Modifier and Type | Method | Description |
---|---|---|
ModuleInfo |
build() |
Returns a
ModuleInfo with the data that was given. |
static ModuleInfoBuilder |
newBuilder() |
Start building a new ModuleInfo
|
ModuleInfoBuilder |
setHidden(boolean hidden) |
Sets whether or not the module is hidden
|
ModuleInfoBuilder |
setName(CharSequence name) |
Sets the public name of the module
|
ModuleInfoBuilder |
setPackageName(String packageName) |
Sets the package name of the module
|
public static ModuleInfoBuilder newBuilder()
ModuleInfoBuilder
.public ModuleInfoBuilder setName(CharSequence name)
public ModuleInfoBuilder setPackageName(String packageName)
public ModuleInfoBuilder setHidden(boolean hidden)
public ModuleInfo build()
ModuleInfo
with the data that was given. Both name and packageName are
mandatory to build, but hidden is optional, if no value was given will default to false