Promotion background
Easter Season IS HERE!
10% off limited time offer!
Ends in
00
H
00
M
00
S
limited time offer SAVE 10% NOW →
Packages com.phoenixplugins.sdk.api text
com.phoenixplugins.sdk.api.text

Class TextCompound

  • java.lang.Object
    • java.util.AbstractCollection<E>
      • java.util.AbstractList<E>
        • java.util.ArrayList<Text>
          • com.phoenixplugins.sdk.api.text.TextCompound
  • All Implemented Interfaces:
    Text, Serializable, Cloneable, Iterable<Text>, Collection<Text>, List<Text>, RandomAccess


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

      • Fields inherited from class java.util.AbstractList

        modCount
    • Constructor Summary

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

      Modifier and Type Method and Description
      boolean add(String text) 
      static TextCompound of(Text... text) 
      TextCompound replaceText(String regex, Object text) 
      TextCompound replaceText(String regex, Text component)
      Replaces all substrings of this component's text that match the given regular expression with the specified replacement component.
      String toPlainText() 
      • Methods inherited from class java.util.ArrayList

        add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • Methods inherited from class java.util.AbstractList

        equals, hashCode
      • 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.List

        containsAll, equals, hashCode
      • Methods inherited from interface java.util.Collection

        parallelStream, stream
    • Constructor Detail

      • TextCompound

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

      • 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
      • toPlainText

        public String toPlainText()
        Specified by:
        toPlainText in interface Text
Last updated about 4 hours ago
My Cart (0 items)

Oops... looks like the spiders padded through here

Add products to your cart and remove them from here Lets buy
This site uses cookies to personalize content, enhance your experience. By continuing, you agree to our cookie use. Learn more