Class FibonacciNumber


  • public class FibonacciNumber
    extends java.lang.Object
    The fibonacci number java representation.
    • Field Detail

      • sequence

        protected int sequence
        The sequence number.
      • value

        protected long value
        The value.
    • Constructor Detail

      • FibonacciNumber

        public FibonacciNumber​(int sequence)
        Create a new FibonacciNumber.
        Parameters:
        sequence - The
    • Method Detail

      • getSequence

        public int getSequence()
        Get the sequence number.
        Returns:
        The sequence number.
      • setValue

        public void setValue​(long value)
        Set the value.
        Parameters:
        value - The value.
      • getValue

        public long getValue()
        Get the value.
        Returns:
        The value.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation.
      • addPropertyChangeListener

        public void addPropertyChangeListener​(PropertyChangeListener listener)
        Add a PropertyChangeListener to the listener list. The listener is registered for all properties.
        Parameters:
        listener - The PropertyChangeListener to be added.
      • removePropertyChangeListener

        public void removePropertyChangeListener​(PropertyChangeListener listener)
        Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.
        Parameters:
        listener - The PropertyChangeListener to be removed.