Class CharacterHead

java.lang.Object
org.eclipse.jgit.fnmatch.AbstractHead
org.eclipse.jgit.fnmatch.CharacterHead
All Implemented Interfaces:
Head

final class CharacterHead extends AbstractHead
  • Field Details

    • expectedCharacter

      private final char expectedCharacter
  • Constructor Details

    • CharacterHead

      CharacterHead(char expectedCharacter)
      Constructor for CharacterHead
      Parameters:
      expectedCharacter - expected char
  • Method Details

    • matches

      protected final boolean matches(char c)
      Whether the char matches
      Specified by:
      matches in class AbstractHead
      Parameters:
      c - a char.
      Returns:
      whether the char matches
    • toString

      public String toString()
      Overrides:
      toString in class Object