Class Countable<T>

java.lang.Object
com.sk89q.worldedit.util.Countable<T>
All Implemented Interfaces:
Comparable<Countable<T>>

public class Countable<T> extends Object implements Comparable<Countable<T>>
  • Constructor Details

    • Countable

      public Countable(T id, int amount)
      Construct the object.
      Parameters:
      id - the ID
      amount - the count of
  • Method Details

    • getID

      public T getID()
    • setID

      public void setID(T id)
    • getAmount

      public int getAmount()
    • setAmount

      public void setAmount(int amount)
    • decrement

      public void decrement()
      Decrement the amount.
    • increment

      public void increment()
      Increment the amount.
    • compareTo

      public int compareTo(Countable<T> other)
      Specified by:
      compareTo in interface Comparable<T>