Skip to content

coerceTo with enum (or at least String constant) argument in java driver #6002

@Suvitruf

Description

@Suvitruf

https://www.rethinkdb.com/api/java/coerce_to/

We should write:

sequence.coerceTo('array') → array
value.coerceTo('string') → string
string.coerceTo('number') → number
array.coerceTo('object') → object
sequence.coerceTo('object') → object
object.coerceTo('array') → array
binary.coerceTo('string') → string
string.coerceTo('binary') → binary

Mb pass argument to coerceTo as enum? Something like:

enum CoerceType{
  ARRAY,
  STRING,
  ...
}

And using sequence.coerceTo(CoerceType.ARRAY). Or, at least, make them as String constants.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions