Class UserID
java.lang.Object
org.deltava.util.UserID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the airline code for this user.intReturns the seniority number for this user.booleanReturns whether an airline code was submitted.toString()Returns the Pilot code.
-
Constructor Details
-
UserID
Parses a pilot code to determine the user ID.- Parameters:
code- the pilot code
-
-
Method Details
-
getAirlineCode
-
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
-