/*
 *  The MIT License (MIT)
 *
 *  View the full license at:
 *  https://github.com/hendrixjoseph/FamilyTree/blob/master/LICENSE.md
 *
 *  Copyright (c) 2015 Joseph Hendrix
 *
 *  Hosted on GitHub at https://github.com/hendrixjoseph/FamilyTree
 *
 */

package edu.wright.hendrix11.svg.number;

/**
 * @author Joe Hendrix
 */
public class Em<N extends Number & Comparable> extends Unit<N>
{
    public static final Em<Double> HALF = new Em<>(0.5);
    public static final Em<Integer> ONE = new Em<>(1);

    public Em(N number)
    {
        super(number, "em");
    }

    @Override
    public Em<Double> add(double d)
    {
        return new Em<Double>(number.doubleValue() + d);
    }

    @Override
    public Em<Integer> add(int i)
    {
        return new Em<Integer>(number.intValue() + i);
    }

    @Override
    public Em<Double> divide(double d)
    {
        return new Em<Double>(number.doubleValue() / d);
    }

    @Override
    public Em<Integer> divide(int i)
    {
        return new Em<Integer>(number.intValue() / i);
    }
}

@@ -1040,10 +1040,263 @@
 ;%0A    %7D%0A
+    %0A    @Override    %0A    public Em%3CDouble%3E multiply(double d)%0A    %7B%0A        return new Em%3CDouble%3E(number.doubleValue() * d;%0A    %7D%0A%0A    @Override%0A    public Em%3CInteger%3E multiply(int i)%0A    %7B%0A        return new Em%3CInteger%3E(number.intValue() * i);%0A    %7D%0A
 %7D%0A

Update Em.java