Package com.diffplug.spotless
Class FormatterProperties
java.lang.Object
com.diffplug.spotless.FormatterProperties
Utility manages settings of formatter configured by properties.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FormatterProperties
Import settings from a sequence of files (file import is the given order)static FormatterProperties
Import settings from a sequence of files (file import is the given order)static FormatterProperties
fromPropertiesContent
(Iterable<String> content) static FormatterProperties
fromXmlContent
(Iterable<String> content) Returns the accumulatedProperties
static FormatterProperties
merge
(Properties... properties)
-
Method Details
-
from
Import settings from a sequence of files (file import is the given order)- Parameters:
files
- Sequence of files- Throws:
IllegalArgumentException
- In case the import of a file fails
-
from
Import settings from a sequence of files (file import is the given order)- Parameters:
files
- Sequence of files- Throws:
IllegalArgumentException
- In case the import of a file fails
-
fromPropertiesContent
public static FormatterProperties fromPropertiesContent(Iterable<String> content) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
fromXmlContent
public static FormatterProperties fromXmlContent(Iterable<String> content) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
merge
-
getProperties
Returns the accumulatedProperties
-