Interface LineEnding.Policy

All Superinterfaces:
NoLambda, Serializable
Enclosing class:
LineEnding

public static interface LineEnding.Policy extends Serializable, NoLambda
A policy for line endings which can vary based on the specific file being requested.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.diffplug.spotless.NoLambda

    NoLambda.EqualityBasedOnSerialization
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the line ending appropriate for the given file.
    default boolean
    isUnix(File file)
    Returns true iff this file has unix line endings.

    Methods inherited from interface com.diffplug.spotless.NoLambda

    toBytes
  • Method Details

    • getEndingFor

      String getEndingFor(File file)
      Returns the line ending appropriate for the given file.
    • isUnix

      default boolean isUnix(File file)
      Returns true iff this file has unix line endings.