Class ImmutableExtendedEntry.Builder

  • Enclosing class:
    ImmutableExtendedEntry

    @NotThreadSafe
    public static final class ImmutableExtendedEntry.Builder
    extends Object
    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 Detail

      • from

        public final ImmutableExtendedEntry.Builder from​(Ct.ExtendedEntry instance)
        Fill a builder with attribute values from the provided ExtendedEntry instance. 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:
        this builder for use in a chained invocation
      • index

        public final ImmutableExtendedEntry.Builder index​(int index)
        Initializes the value for the index attribute.
        Parameters:
        index - The value for index
        Returns:
        this builder for use in a chained invocation
      • seq

        public final ImmutableExtendedEntry.Builder seq​(char seq)
        Initializes the value for the seq attribute.
        Parameters:
        seq - The value for seq
        Returns:
        this builder for use in a chained invocation
      • before

        public final ImmutableExtendedEntry.Builder before​(int before)
        Initializes the value for the before attribute.
        Parameters:
        before - The value for before
        Returns:
        this builder for use in a chained invocation
      • after

        public final ImmutableExtendedEntry.Builder after​(int after)
        Initializes the value for the after attribute.
        Parameters:
        after - The value for after
        Returns:
        this builder for use in a chained invocation
      • pair

        public final ImmutableExtendedEntry.Builder pair​(int pair)
        Initializes the value for the pair attribute.
        Parameters:
        pair - The value for pair
        Returns:
        this builder for use in a chained invocation
      • original

        public final ImmutableExtendedEntry.Builder original​(int original)
        Initializes the value for the original attribute.
        Parameters:
        original - The value for original
        Returns:
        this builder for use in a chained invocation
      • comment

        public final ImmutableExtendedEntry.Builder comment​(String comment)
        Initializes the value for the comment attribute.

        If not set, this attribute will have a default value as returned by the initializer of comment.

        Parameters:
        comment - The value for comment
        Returns:
        this builder for use in a chained invocation