getLocation method

int getLocation()

Implementation

int getLocation() {
  switch (this) {
    case Location.noLocation:
      return 0;
    case Location.skip:
      return 1;
  }
}