public class AttributeListUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
diffArchTextKeys(BaseObject<?,?,?,?> gameObject,
BaseObject<?,?,?,?> archetype)
Returns all attributes from the given game object that don't exist in an
archetype.
|
static java.lang.String |
diffArchTextValues(BaseObject<?,?,?,?> archetype,
java.lang.CharSequence attributes)
Returns all entries from the given attributes that don't exist in an
archetype.
|
static java.lang.String |
removeAttribute(java.lang.String attributeList,
java.lang.String key)
Removes an attribute from an attribute list.
|
public static java.lang.String removeAttribute(@NotNull java.lang.String attributeList, @NotNull java.lang.String key)
attributeList
- the attribute list to modifykey
- the attribute key to remove@NotNull public static java.lang.String diffArchTextKeys(@NotNull BaseObject<?,?,?,?> gameObject, @NotNull BaseObject<?,?,?,?> archetype)
gameObject
- the game objectarchetype
- the archetype@NotNull public static java.lang.String diffArchTextValues(@NotNull BaseObject<?,?,?,?> archetype, @NotNull java.lang.CharSequence attributes)
attributes
- the attributesarchetype
- the game objectattributes
that don't occur in this game
object