Packages com.phoenixplugins.sdk.api text

Class TextCompound

All Implemented Interfaces:
Text, Serializable, Cloneable, Iterable<Text>, Collection<Text>, List<Text>, RandomAccess, SequencedCollection<Text>

public class TextCompound extends ArrayList<Text> implements Text
See Also:
  • Field Summary

    Fields inherited from class java.util.AbstractList

    modCount
  • Constructor Summary

    Constructors
    Constructor
    Description
    TextCompound(Collection<? extends Text> c)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    add(String text)
     
    of(Text... text)
     
    replaceText(String regex, Text component)
    Replaces all substrings of this component's text that match the given regular expression with the specified replacement component.
    replaceText(String regex, Object text)
     
    String
     

    Methods inherited from class java.util.ArrayList

    add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize

    Methods inherited from class java.util.AbstractCollection

    containsAll, toString

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Collection

    parallelStream, stream, toArray

    Methods inherited from interface java.util.List

    containsAll, reversed

    Methods inherited from interface com.phoenixplugins.sdk.api.text.Text

    append, append
  • Constructor Details

    • TextCompound

      public TextCompound(Collection<? extends Text> c)
  • Method Details

    • of

      public static TextCompound of(Text... text)
    • add

      public boolean add(String text)
    • replaceText

      public TextCompound replaceText(String regex, Text component)
      Description copied from interface: Text
      Replaces all substrings of this component's text that match the given regular expression with the specified replacement component.
      Specified by:
      replaceText in interface Text
      Parameters:
      regex - the regular expression to match
      component - the component to replace matches with
      Returns:
      a new Text instance with the replacements applied
    • replaceText

      public TextCompound replaceText(String regex, Object text)
      Specified by:
      replaceText in interface Text
    • toPlainText

      public String toPlainText()
      Specified by:
      toPlainText in interface Text
Last updated 22 days ago
My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping