Skip to content

Instantly share code, notes, and snippets.

@skabbes
Last active August 29, 2015 14:07
Show Gist options
  • Save skabbes/538e6b0e17492d6ec992 to your computer and use it in GitHub Desktop.
Save skabbes/538e6b0e17492d6ec992 to your computer and use it in GitHub Desktop.
no constructor :(
@interface MBBlob : NSObject

@property (nonatomic, readonly) NSNumber *numberValue;

@property (nonatomic, readonly) NSString *stringValue;

@end
public final class Blob {


    /*package*/ final Double mNumberValue;

    /*package*/ final String mStringValue;

    public Blob(
            Double numberValue,
            String stringValue) {
        this.mNumberValue = numberValue;
        this.mStringValue = stringValue;
    }

    public Double getNumberValue() {
        return mNumberValue;
    }

    public String getStringValue() {
        return mStringValue;
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment