Class JobSortSetting
java.lang.Object
gg.xp.xivsupport.persistence.settings.JobSortSetting
- Direct Known Subclasses:
JobSortOverrideSetting
Setting to hold an ordered list of jobs, typically used for job priority kind of stuff.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.protected Comparator<Job>
Deprecated.boolean
isSet()
void
Deprecated.void
Reset the job order to the defaultvoid
setJailSort
(List<Job> newSort) Deprecated.void
setJobOrder
(List<Job> newSort) Set a new job ordervoid
setJobOrderPartial
(List<Job> partial) LikesetJobOrder(List)
, but does not require you to have every single combat job in your list.void
validateJobSortOrder
(List<Job> newSort)
-
Constructor Details
-
JobSortSetting
-
-
Method Details
-
getComparator
- Returns:
- A comparator which can be used to sort a list of players according to their jobs
-
getPlayerJailSortComparator
Deprecated.Deprecated, usegetComparator()
- Returns:
- A comparator which can be used to sort a list of players according to their jobs
-
getJobOrder
- Returns:
- The current job sort order
-
getCurrentJailSort
Deprecated.Deprecated, usegetJobOrder()
- Returns:
- The current job sort order
-
resetJobOrder
public void resetJobOrder()Reset the job order to the default -
getDefaultSort
-
resetJailSort
Deprecated.Deprecated, seeresetJobOrder()
-
isSet
public boolean isSet()- Returns:
- Whether or not this setting has actually been set by the user, or if it is using default values.
-
validateJobSortOrder
-
setJobOrder
Set a new job order- Parameters:
newSort
- The new job order. MUST contain EVERY JOB. If you wish to only supply some jobs, seesetJobOrderPartial(List)
-
setJailSort
Deprecated.Deprecated, usesetJobOrder(List)
- Parameters:
newSort
- The new job order. MUST contain EVERY JOB. If you wish to only supply some jobs, seesetJobOrderPartial(List)
-
setJobOrderPartial
LikesetJobOrder(List)
, but does not require you to have every single combat job in your list.In the event that you do not specify all jobs, they will be appended to the end of the list in whatever order they currently appear.
- Parameters:
partial
- The list of jobs. May be non-exhaustive.
-
partyOrderPreview
- Returns:
- The current party list, sorted by this job priority.
-