package sodium;

public class Unit {
    public static final Unit unit = new Unit();
    Unit() {}

    @Override
    public boolean equals(Object other_) {
        return other_ instanceof Unit;
    }
};

@@ -21,185 +21,24 @@
 lic 
-class Unit %7B%0A    public static final Unit unit = new Unit();%0A    Unit() %7B%7D%0A%0A    @Override%0A    public boolean equals(Object other_) %7B%0A        return other_ instanceof Unit;%0A    %7D%0A
+enum Unit %7B UNIT 
 %7D;%0A

Use Java 8 enum for the Unit type.