Class ImmutableConflictClique


  • @ParametersAreNonnullByDefault
    @Generated("org.immutables.processor.ProxyProcessor")
    @Immutable
    public final class ImmutableConflictClique
    extends ConflictClique
    Immutable implementation of ConflictClique.

    Use the builder to create immutable instances: ImmutableConflictClique.builder(). Use the static factory method to create immutable instances: ImmutableConflictClique.of().

    • Method Detail

      • withRegions

        public final ImmutableConflictClique withRegions​(Region... elements)
        Copy the current immutable object with elements that replace the content of regions.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withRegions

        public final ImmutableConflictClique withRegions​(Iterable<? extends Region> elements)
        Copy the current immutable object with elements that replace the content of regions. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of regions elements to set
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableConflictClique that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: regions.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value ConflictClique with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • sortedEndpoints

        protected List<Integer> sortedEndpoints()

        Returns a lazily initialized value of the sortedEndpoints attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

        Overrides:
        sortedEndpoints in class ConflictClique
        Returns:
        A lazily initialized value of the sortedEndpoints attribute
      • of

        public static ImmutableConflictClique of​(Set<Region> regions)
        Construct a new immutable ConflictClique instance.
        Parameters:
        regions - The value for the regions attribute
        Returns:
        An immutable ConflictClique instance
      • of

        public static ImmutableConflictClique of​(Iterable<? extends Region> regions)
        Construct a new immutable ConflictClique instance.
        Parameters:
        regions - The value for the regions attribute
        Returns:
        An immutable ConflictClique instance
      • copyOf

        public static ImmutableConflictClique copyOf​(ConflictClique instance)
        Creates an immutable copy of a ConflictClique value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable ConflictClique instance