Documentation of 'org.jdesktop.swingx.util.Separator' Java class
Separator
org.jdesktop.swingx.util

Class Separator<T>

  • Type Parameters:
    T - the type of separator


    public class Separator<T>
    extends java.lang.Object
    A simple separator for adding in between each element in a list.

     for (String s : strings) {
       stringBuilder.append(separator.get().append(s);
     }
     
    • Constructor Summary

      Constructors 
      Constructor and Description
      Separator(T initial, T separator)
      Constructs a separator with the specified initial value and remaining separator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      T get()
      Returns the current value of the separator.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Separator

        public Separator(T initial,
                         T separator)
        Constructs a separator with the specified initial value and remaining separator.
        Parameters:
        initial - the value to use for the first call
        separator - the value to use after the first call
    • Method Detail

      • get

        public T get()
        Returns the current value of the separator.
        Returns:
        the separator value

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.