Class JoinedStringProperty
java.lang.Object
dev.prozilla.pine.common.property.JoinedStringProperty
- All Implemented Interfaces:
CollectionContext<StringProperty>,CollectionProvider<StringProperty>,Destructible,Property<String>,StringProperty,Functor<String>,Iterable<StringProperty>
public class JoinedStringProperty
extends Object
implements StringProperty, CollectionProvider<StringProperty>
A decorator for string properties which joins strings.
-
Constructor Summary
ConstructorsConstructorDescriptionJoinedStringProperty(StringProperty... stringProperties) JoinedStringProperty(String separator) JoinedStringProperty(String separator, StringProperty... stringProperties) -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(StringProperty item) append(StringProperty item) Returns a string property whose value is the value of this property, followed by the value ofstringProperty.getValue()Returns the value of this property.items()prepend(StringProperty item) Returns a string property whose value is the value ofstringProperty, followed by the value of this property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.prozilla.pine.common.CollectionContext
addAll, addAll, destroy, filter, removeAll, removeAllMethods inherited from interface dev.prozilla.pine.common.CollectionProvider
clear, iterator, remove, sizeMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface dev.prozilla.pine.common.property.Property
getValueOr, hasValue, hasValueProperty, isNotNull, isNotNullProperty, isNull, map, requireValue, snapshotMethods inherited from interface dev.prozilla.pine.common.property.StringProperty
append, lengthProperty, parse, prepend, replaceNull, toLowerCaseProperty, toStringProperty, toUpperCaseProperty
-
Constructor Details
-
JoinedStringProperty
-
JoinedStringProperty
-
JoinedStringProperty
-
-
Method Details
-
append
Description copied from interface:StringPropertyReturns a string property whose value is the value of this property, followed by the value ofstringProperty.- Specified by:
appendin interfaceStringProperty- Parameters:
item- The string property to append to this property- Returns:
- A joined string property that combines both string properties.
-
prepend
Description copied from interface:StringPropertyReturns a string property whose value is the value ofstringProperty, followed by the value of this property.- Specified by:
prependin interfaceStringProperty- Parameters:
item- The string property to prepend to this property- Returns:
- A joined string property that combines both string properties.
-
add
- Specified by:
addin interfaceCollectionContext<StringProperty>- Specified by:
addin interfaceCollectionProvider<StringProperty>
-
items
- Specified by:
itemsin interfaceCollectionProvider<StringProperty>
-
getValue
Description copied from interface:PropertyReturns the value of this property.
-