public abstract class PrefBase extends Object implements Preference
Constructor and Description |
---|
PrefBase(int priority)
Create preference.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Preference other) |
Integer |
getPrority()
Get the preference priority.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public PrefBase(int priority)
priority
- The priority value (must be superior or equal to 0).public Integer getPrority()
Preference
Priority is used to apply preferences in the right order. A low value means a high priority, starting at 0.
If there is many preferences with the same priority, they are applied in the order they where added.
getPrority
in interface Preference
public int compareTo(Preference other)
compareTo
in interface Comparable<Preference>
Copyright © 2017 Byron 3D Games Studio. All rights reserved.