public final class Variant extends Value
Constructor and Description |
---|
Variant(@NonNull Identifier variantId,
@NonNull java.lang.String constructor,
@NonNull Value value) |
Variant(@NonNull java.lang.String constructor,
@NonNull Value value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static Variant |
fromProto(ValueOuterClass.Variant variant) |
@NonNull java.lang.String |
getConstructor() |
@NonNull Value |
getValue() |
@NonNull java.util.Optional<Identifier> |
getVariantId() |
int |
hashCode() |
ValueOuterClass.Value |
toProto() |
ValueOuterClass.Variant |
toProtoVariant() |
java.lang.String |
toString() |
public Variant(@NonNull Identifier variantId, @NonNull java.lang.String constructor, @NonNull Value value)
public Variant(@NonNull java.lang.String constructor, @NonNull Value value)
public static Variant fromProto(ValueOuterClass.Variant variant)
public @NonNull java.util.Optional<Identifier> getVariantId()
public @NonNull java.lang.String getConstructor()
public @NonNull Value getValue()
public ValueOuterClass.Value toProto()
public ValueOuterClass.Variant toProtoVariant()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object