Class Package


  • public class Package
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Integer depth  
      java.lang.Integer height  
      java.lang.Double weight  
      java.lang.Integer width  
    • Constructor Summary

      Constructors 
      Constructor Description
      Package()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer calculateVolume()  
      • Methods inherited from class java.lang.Object

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

      • weight

        @Option(name={"-w","--weight"},
                title="WeightInKg",
                description="Specifies the packages weight in kilograms")
        public java.lang.Double weight
      • width

        @Option(name="--width",
                title="Width",
                description="Specifies the packages width in millimeteres, if one dimension is specified all must be specified")
        public java.lang.Integer width
      • height

        @Option(name="--height",
                title="Height",
                description="Specifies the packages height in millimeteres, if one dimension is specified all must be specified")
        public java.lang.Integer height
      • depth

        @Option(name="--depth",
                title="Depth",
                description="Specifies the packages depth in millimeteres, if one dimension is specified all must be specified")
        public java.lang.Integer depth
    • Constructor Detail

      • Package

        public Package()
    • Method Detail

      • calculateVolume

        public java.lang.Integer calculateVolume()