Package 

Class DonutSection


  • 
    public final class DonutSection
    
                        

    Data class representing the single section of the donut containing amount and color.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Float amount
      private final Color color
    • Constructor Summary

      Constructors 
      Constructor Description
      DonutSection(Float amount, Color color)
    • Method Summary

      Modifier and Type Method Description
      final Float getAmount()
      final Color getColor()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DonutSection

        DonutSection(Float amount, Color color)
        Parameters:
        amount - value of this single section.
        color - color of this single section