Interface ImmutablePreference

    • Method Detail

      • asGraph

        ImmutableGraph<Alternative> asGraph()
        In the graph : a relation from a to b means "a is at least as good as b". This graph can’t be modified, but is not necessarily immutable. Reflexive and transitive. This graph is immutable.
        Specified by:
        asGraph in interface Preference
        Returns:
        the Graph corresponding to the Preference.
      • getAlternatives

        ImmutableSet<Alternative> getAlternatives()
        The returned set reads through this object: if this object is mutable, any modification to this object modifies the returned set, and conversely. This set is immutable.
        Specified by:
        getAlternatives in interface Preference
        Returns:
        alternatives's set