Class OrderedProperties.OrderedPropertiesBuilder
java.lang.Object
com.jsql.view.swing.dialog.translate.OrderedProperties.OrderedPropertiesBuilder
- Enclosing class:
OrderedProperties
Builder for
OrderedProperties
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newOrderedProperties
instance.withOrdering
(Comparator<? super String> comparator) Use a custom ordering of the keys.withSuppressDateInComment
(boolean suppressDate) Suppress the comment that contains the current date when storing the properties.
-
Constructor Details
-
OrderedPropertiesBuilder
public OrderedPropertiesBuilder()
-
-
Method Details
-
withOrdering
public OrderedProperties.OrderedPropertiesBuilder withOrdering(Comparator<? super String> comparator) Use a custom ordering of the keys.- Parameters:
comparator
- the ordering to apply on the keys- Returns:
- the builder
-
withSuppressDateInComment
Suppress the comment that contains the current date when storing the properties.- Parameters:
suppressDate
- whether to suppress the comment that contains the current date- Returns:
- the builder
-
build
Builds a newOrderedProperties
instance.- Returns:
- the new instance
-