Skip to content

ImmutableDoubleValueImpl needs as* methods #296

Open
@jandk

Description

@jandk

When trying to extract floating point numbers from values, I get an MessageTypeCastException.

This because the ImmutableDoubleValueImpl as no as* methods, which makes it hard to get the values out.

switch (value.getValueType())
{
    case FLOAT:
        return value.asNumberValue().toFloat();
    default: throw new Exception();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions