toInt method

int toInt()

Converts the enum to its integer representation

Returns:

  • 0 for SessionHash.disabled
  • 1 for SessionHash.enabled
  • 2 for SessionHash.notSet

Implementation

int toInt() {
  switch (this) {
    case SessionHash.disabled:
      return 0;
    case SessionHash.enabled:
      return 1;
    case SessionHash.notSet:
      return 2;
  }
}