Class Substring

java.lang.Object
com.sk89q.worldedit.internal.util.Substring

public final class Substring extends Object
An explicit substring. Provides the range from which it was taken.
  • Method Details

    • from

      public static Substring from(String original, int start)
      Take a substring from original, and wrap(String, int, int) it into a Substring.
    • from

      public static Substring from(String original, int start, int end)
      Take a substring from original, and wrap(String, int, int) it into a Substring.
    • wrap

      public static Substring wrap(String substring, int start, int end)
      Wrap the given parameters into a Substring instance.
    • getSubstring

      public String getSubstring()
    • getStart

      public int getStart()
    • getEnd

      public int getEnd()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object