class BitmaskMeasurementElement implements MeasurementElement, Serializable {

    public Set<BitmaskFlag> asEnumSet() {
        final Set<BitmaskFlag> bitmaskFlags = EnumSet.noneOf(BitmaskFlag.class);
        for (final BitmaskFlag flag : BitmaskFlag.values()) {
            if ((this.value & flag.value) > 0) {
                bitmaskFlags.add(flag);
            }
        }
        return bitmaskFlags;
    }

    public  BitmaskMeasurementElement(final Byte value);

}