library/src/main/java/com/fbacalculator/library/FBA.java
/**
     * check item type (standard or oversize)
     *
     * @param dimensions package dimens (length, width, height) in inches
     * @param weight     package weight in pounds
     * @return item type
     */
check item type (standard or oversize)
@param dimensions package dimens (length, width, height) in inches
@param weight     package weight in pounds
@return item type
check item type ( standard or oversize ) @param dimensions package dimens ( length width height ) in inches @param weight package weight in pounds @return item type
private String standard_or_oversize(double[] dimensions, double weight) {
        double length = dimensions[0];
        double width = dimensions[1];
        double height = dimensions[2];
        if (weight > Constants.OversizeDimens.WEIGHT
                || Max(length, width, height) > Constants.OversizeDimens.MAX
                || Min(length, width, height) > Constants.OversizeDimens.MIN
                || Median(dimensions) > Constants.OversizeDimens.MEDIAN) {
            return Constants.OVERSIZE;
        }
        return Constants.STANDARD;
    }
private String standard_or_oversize ( double [ ] dimensions , double weight ) { double length = dimensions [ 0 ] ; double width = dimensions [ 1 ] ; double height = dimensions [ 2 ] ; if ( weight > Constants . OversizeDimens . WEIGHT || Max ( length , width , height ) > Constants . OversizeDimens . MAX || Min ( length , width , height ) > Constants . OversizeDimens . MIN || Median ( dimensions ) > Constants . OversizeDimens . MEDIAN ) { return Constants . OVERSIZE ; } return Constants . STANDARD ; }
check item type (standard or oversize)
 @param dimensions package dimens (length, width, height) in inches
 @param weight     package weight in pounds
 @return item type
check item type ( standard or oversize ) @param dimensions package dimens ( length width height ) in inches @param weight package weight in pounds @return item type
// Determine if object is standard size or oversize