Class Timeperiod

java.lang.Object
ch.njol.skript.util.Timeperiod
All Implemented Interfaces:
YggdrasilSerializable

public class Timeperiod extends Object implements YggdrasilSerializable
  • Field Details

    • start

      public final int start
    • end

      public final int end
  • Constructor Details

    • Timeperiod

      public Timeperiod()
    • Timeperiod

      public Timeperiod(int start, int end)
    • Timeperiod

      public Timeperiod(int time)
  • Method Details

    • contains

      public boolean contains(int time)
    • contains

      public boolean contains(Time t)
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      "start-end" or "start" if start == end
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object