Class UserID

java.lang.Object
org.deltava.util.UserID

public class UserID extends Object
A bean to parse user IDs.
Since:
1.0
Version:
7.0
Author:
Luke
  • Constructor Details

    • UserID

      public UserID(CharSequence code)
      Parses a pilot code to determine the user ID.
      Parameters:
      code - the pilot code
  • Method Details

    • getAirlineCode

      public String getAirlineCode()
      Returns the airline code for this user.
      Returns:
      the airline code
    • hasAirlineCode

      public boolean hasAirlineCode()
      Returns whether an airline code was submitted.
      Returns:
      TRUE if a letter was in the ID, otherwise FALSE
    • getUserID

      public int getUserID()
      Returns the seniority number for this user.
      Returns:
      the pilot code
    • toString

      public String toString()
      Returns the Pilot code.
      Overrides:
      toString in class Object