Returns true if code is supported, otherwise false.
code
static bool hasCode(final int code) { for (final codec in values) { if (codec.code == code) { return true; } } return false; }