public class ModListing extends Record implements java.lang.Comparable
Constructor and Description |
---|
ModListing(java.lang.String nameWithSuffix) |
ModListing(java.lang.String name,
java.lang.Boolean master)
ModListing objects are used to uniquely identify mods via name and master
tag.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Compare funtion is as follows:
1) A master always is less than a non-master plugin 2) The global patch always is greater 3) A plugin that is on the active plugins list via importActivePlugins() comes before a plugin that was created manually. |
boolean |
equals(java.lang.Object obj)
Checks if the modname's are equal (case ignored), and the master tags are
the same.
|
int |
hashCode() |
java.lang.String |
print()
Prints the mod name and appropriate suffix (.esp or .esm)
|
java.lang.String |
printNoSuffix() |
java.lang.String |
toString()
Returns a short summary/title of the record.
|
getRecordLength, getType
public ModListing(java.lang.String name, java.lang.Boolean master)
name
- The name to give to a mod. Eg. "Skyrim" (with no suffix)master
- The master tag. (.esp or .esm)public ModListing(java.lang.String nameWithSuffix)
nameWithSuffix
- String containing the modname AND suffix. Eg
"Skyrim.esm"public java.lang.String print()
public java.lang.String printNoSuffix()
public java.lang.String toString()
Record
public boolean equals(java.lang.Object obj)
obj
- Another ModListingpublic int hashCode()
hashCode
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- Another ModListing.