Class Type


  • public class Type
    extends java.lang.Object
    Class to manage a "Type" object
    • Constructor Summary

      Constructors 
      Constructor Description
      Type()
      Constructor for a null object
      Type​(int numberOfOccurences, java.lang.String typeDescription)
      Constructor to create a type object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getNumberOfOccurences()
      Get number of occurences of a type
      java.lang.String getTypeDescription()
      Return type description
      static javafx.collections.ObservableList<java.lang.String> returnTypes()
      Return a list of types
      void setNumberOfOccurences​(int numberOfOccurences)
      Set number of occurences of a type
      void setTypeDescription​(java.lang.String typeDescription)
      Set type description
      java.lang.String toString()
      Overriding .toString() to return the String representing the type
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • typeDescription

        private java.lang.String typeDescription
      • numberOfOccurences

        private int numberOfOccurences
      • AppointmentTypes

        private static javafx.collections.ObservableList<java.lang.String> AppointmentTypes
    • Constructor Detail

      • Type

        public Type()
        Constructor for a null object
      • Type

        public Type​(int numberOfOccurences,
                    java.lang.String typeDescription)
        Constructor to create a type object
        Parameters:
        numberOfOccurences - Number of occurences of the "type" of appointment
        typeDescription - A String of the types description
    • Method Detail

      • toString

        public java.lang.String toString()
        Overriding .toString() to return the String representing the type
        Overrides:
        toString in class java.lang.Object
        Returns:
        the type as a human readable string
      • getTypeDescription

        public java.lang.String getTypeDescription()
        Return type description
        Returns:
      • setTypeDescription

        public void setTypeDescription​(java.lang.String typeDescription)
        Set type description
        Parameters:
        typeDescription -
      • getNumberOfOccurences

        public int getNumberOfOccurences()
        Get number of occurences of a type
        Returns:
      • setNumberOfOccurences

        public void setNumberOfOccurences​(int numberOfOccurences)
        Set number of occurences of a type
        Parameters:
        numberOfOccurences -
      • returnTypes

        public static javafx.collections.ObservableList<java.lang.String> returnTypes()
        Return a list of types
        Returns:
        Observable list of Types - Strings.