enum Class がProperty
あり、プログラムの一部で、String
またはのSerializable
値を置き換えたいと考えていProperty
ます。どうやってやるの?
public enum Property {
Autofocus,
Bluetooth,
Brand,...}
値またはをProperty
使用して値を割り当てるにはどうすればよいですか:Serializable
String
Property property;
this.property = (Serializable) value;
また
this.property = "value";
それ以外の
this.property = Property.Autofocus;
this.property = Property.Brand; // ...