public static class ResourceCode.Builder extends Object
Constructor and Description |
---|
Builder(UniqueIdObjectSequenceProvider sequenceProvider)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ResourceCode |
build()
Build an ResourceCode instance.
|
ResourceCode.Builder |
from(ResourceCode value)
Initialise the builder from an existing ResourceCode instance.
|
ResourceCode.Builder |
maxLength(Integer value)
Add max length.
|
ResourceCode.Builder |
name(String value)
Add name.
|
ResourceCode.Builder |
secure(boolean value)
Add secure flag.
|
ResourceCode.Builder |
sequenceNumber(Integer value)
Add sequence number.
|
ResourceCode.Builder |
uniqueID(Integer value)
Add unique ID.
|
public Builder(UniqueIdObjectSequenceProvider sequenceProvider)
sequenceProvider
- parent filepublic ResourceCode.Builder from(ResourceCode value)
value
- ResourceCode instancepublic ResourceCode.Builder uniqueID(Integer value)
value
- unique IDpublic ResourceCode.Builder sequenceNumber(Integer value)
value
- sequence numberpublic ResourceCode.Builder name(String value)
value
- namepublic ResourceCode.Builder secure(boolean value)
value
- secure flagpublic ResourceCode.Builder maxLength(Integer value)
value
- max lengthpublic ResourceCode build()
Copyright © 2000–2024 Packwood Software. All rights reserved.