Package pl.poznan.put.structure.formats
Class ImmutableExtendedEntry.Builder
java.lang.Object
pl.poznan.put.structure.formats.ImmutableExtendedEntry.Builder
- Enclosing class:
- ImmutableExtendedEntry
Builds instances of type 
ImmutableExtendedEntry.
 Initialize attributes and then invoke the build() method to create an
 immutable instance.
 Builder is not thread-safe and generally should not be stored in a field or collection,
 but instead used immediately to create instances.
- 
Method SummaryModifier and TypeMethodDescriptionafter(int after) Initializes the value for theafterattribute.before(int before) Initializes the value for thebeforeattribute.build()Builds a newImmutableExtendedEntry.Initializes the value for thecommentattribute.from(Ct.ExtendedEntry instance) Fill a builder with attribute values from the providedExtendedEntryinstance.index(int index) Initializes the value for theindexattribute.original(int original) Initializes the value for theoriginalattribute.pair(int pair) Initializes the value for thepairattribute.seq(char seq) Initializes the value for theseqattribute.
- 
Method Details- 
fromFill a builder with attribute values from the providedExtendedEntryinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
- instance- The instance from which to copy values
- Returns:
- thisbuilder for use in a chained invocation
 
- 
indexInitializes the value for theindexattribute.- Parameters:
- index- The value for index
- Returns:
- thisbuilder for use in a chained invocation
 
- 
seqInitializes the value for theseqattribute.- Parameters:
- seq- The value for seq
- Returns:
- thisbuilder for use in a chained invocation
 
- 
beforeInitializes the value for thebeforeattribute.- Parameters:
- before- The value for before
- Returns:
- thisbuilder for use in a chained invocation
 
- 
afterInitializes the value for theafterattribute.- Parameters:
- after- The value for after
- Returns:
- thisbuilder for use in a chained invocation
 
- 
pairInitializes the value for thepairattribute.- Parameters:
- pair- The value for pair
- Returns:
- thisbuilder for use in a chained invocation
 
- 
originalInitializes the value for theoriginalattribute.- Parameters:
- original- The value for original
- Returns:
- thisbuilder for use in a chained invocation
 
- 
commentInitializes the value for thecommentattribute.If not set, this attribute will have a default value as returned by the initializer of comment.- Parameters:
- comment- The value for comment
- Returns:
- thisbuilder for use in a chained invocation
 
- 
buildBuilds a newImmutableExtendedEntry.- Returns:
- An immutable instance of ExtendedEntry
- Throws:
- IllegalStateException- if any required attributes are missing
 
 
-