Class FeatureList

java.lang.Object
games.stendhal.common.FeatureList
All Implemented Interfaces:
Iterable<String>

public class FeatureList extends Object implements Iterable<String>
A list of [enabled] features.
  • Constructor Details

    • FeatureList

      public FeatureList()
      Create a list of [enabled] features.
  • Method Details

    • clear

      public void clear()
      Clear the list of features.
    • decode

      public void decode(String encoded)
      Read an encoded features list. Encoded features are in the form of:
      name[=value][:name[=value]...]
      Parameters:
      encoded - encoded string to decode
    • get

      public String get(String name)
      Get a feature value.
      Parameters:
      name - key
      Returns:
      A feature value, or null if not-enabled.
    • iterator

      public Iterator<String> iterator()
      Specified by:
      iterator in interface Iterable<String>