Package org.jdesktop.swingx.util
Class Separator<T>
java.lang.Object
org.jdesktop.swingx.util.Separator<T>
- Type Parameters:
T
- the type of separator
A simple separator for adding in between each element in a list.
for (String s : strings) { stringBuilder.append(separator.get().append(s); }
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
next
-
separator
-
-
Constructor Details
-
Separator
Constructs a separator with the specified initial value and remaining separator.- Parameters:
initial
- the value to use for the first callseparator
- the value to use after the first call
-
-
Method Details
-
get
Returns the current value of the separator.- Returns:
- the separator value
-