Package com.diffplug.spotless
Class DirtyState
java.lang.Object
com.diffplug.spotless.DirtyState
The clean/dirty state of a single file. Intended use:
-
isClean() means that the file is is clean, and there's nothing else to say
- didNotConverge() means that we were unable to determine a clean state
- once you've tested the above conditions and you know that it's a dirty file with a converged state,
then you can call writeCanonicalTo(OutputStream) to get the canonical form of the given file.-
Method Summary
Modifier and TypeMethodDescriptionstatic DirtyStateclean()Returns the DirtyState which corresponds toisClean().booleanbooleanisClean()static DirtyStatestatic DirtyStatestatic DirtyStatevoidwriteCanonicalTo(File file) void
-
Method Details
-
isClean
public boolean isClean() -
didNotConverge
public boolean didNotConverge() -
writeCanonicalTo
- Throws:
IOException
-
writeCanonicalTo
- Throws:
IOException
-
clean
Returns the DirtyState which corresponds toisClean(). -
of
- Throws:
IOException
-
of
-
of
-