Interface ImmutableLinearPreference
-
- All Superinterfaces:
ImmutableCompletePreference
,ImmutablePreference
,Preference
- All Known Implementing Classes:
ImmutableLinearPreferenceImpl
public interface ImmutableLinearPreference extends ImmutableCompletePreference
A linear preference is an antisymmetric complete preference. A linear preference represents a linear order, or equivalently an antisymmetric complete order, or equivalently, the reduction of a weak-order.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImmutableList<Alternative>
asList()
Best alternatives coming first in the list.-
Methods inherited from interface io.github.oliviercailloux.j_voting.preferences.ImmutableCompletePreference
asEquivalenceClasses, getAlternatives, getRank
-
Methods inherited from interface io.github.oliviercailloux.j_voting.preferences.ImmutablePreference
asGraph, getAlternatives
-
Methods inherited from interface io.github.oliviercailloux.j_voting.preferences.Preference
getVoter
-
-
-
-
Method Detail
-
asList
ImmutableList<Alternative> asList()
Best alternatives coming first in the list.- Returns:
- a sorted list of alternatives corresponding to the preference.
-
-