Class ImmutableAnalyzedBasePair.Builder

  • Enclosing class:
    ImmutableAnalyzedBasePair

    @NotThreadSafe
    public static final class ImmutableAnalyzedBasePair.Builder
    extends Object
    Builds instances of type ImmutableAnalyzedBasePair. 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 ImmutableAnalyzedBasePair.Builder from​(ClassifiedBasePair instance)
        Fill a builder with attribute values from the provided pl.poznan.put.structure.ClassifiedBasePair instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        public final ImmutableAnalyzedBasePair.Builder from​(AnalyzedBasePair instance)
        Fill a builder with attribute values from the provided pl.poznan.put.structure.AnalyzedBasePair instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • interactionType

        public final ImmutableAnalyzedBasePair.Builder interactionType​(InteractionType interactionType)
        Initializes the value for the interactionType attribute.

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

        Parameters:
        interactionType - The value for interactionType
        Returns:
        this builder for use in a chained invocation
      • saenger

        public final ImmutableAnalyzedBasePair.Builder saenger​(Saenger saenger)
        Initializes the value for the saenger attribute.

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

        Parameters:
        saenger - The value for saenger
        Returns:
        this builder for use in a chained invocation
      • leontisWesthof

        public final ImmutableAnalyzedBasePair.Builder leontisWesthof​(LeontisWesthof leontisWesthof)
        Initializes the value for the leontisWesthof attribute.

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

        Parameters:
        leontisWesthof - The value for leontisWesthof
        Returns:
        this builder for use in a chained invocation
      • bph

        public final ImmutableAnalyzedBasePair.Builder bph​(BPh bph)
        Initializes the value for the bph attribute.

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

        Parameters:
        bph - The value for bph
        Returns:
        this builder for use in a chained invocation
      • br

        public final ImmutableAnalyzedBasePair.Builder br​(BR br)
        Initializes the value for the br attribute.

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

        Parameters:
        br - The value for br
        Returns:
        this builder for use in a chained invocation
      • isRepresented

        public final ImmutableAnalyzedBasePair.Builder isRepresented​(boolean isRepresented)
        Initializes the value for the isRepresented attribute.

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

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