Class DateMatch

java.lang.Object
me.gosimple.nbvcxz.matching.match.BaseMatch
me.gosimple.nbvcxz.matching.match.DateMatch
All Implemented Interfaces:
Match

public final class DateMatch
extends BaseMatch
Author:
Adam Brusselback
  • Constructor Details

    • DateMatch

      public DateMatch​(java.lang.String match, Configuration configuration, int day, int month, int year, java.lang.String separator, int start_index, int end_index)
      Create a new DateMatch
      Parameters:
      match - the String we are creating the DateMatch from.
      configuration - the Configuration object.
      day - the day of month
      month - the month
      year - the year
      separator - separator used
      start_index - the start index in the password for this match.
      end_index - the end index in the password for this match.
  • Method Details

    • getDay

      public int getDay()
      Returns:
      the int day of the match.
    • getMonth

      public int getMonth()
      Returns:
      the int month of the match.
    • getYear

      public int getYear()
      Returns:
      the int year of the match.
    • getSeparator

      public java.lang.String getSeparator()
      Returns:
      the String character between each date component
    • getDetails

      public java.lang.String getDetails()
      Description copied from interface: Match
      Returns details about this match in the form of a String to be printed directly
      Specified by:
      getDetails in interface Match
      Overrides:
      getDetails in class BaseMatch
      Returns:
      all specific details about this Match in printable String format.