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