Java Code Examples for com.google.ipc.invalidation.external.client.InvalidationListener.RegistrationState#values()

The following examples show how to use com.google.ipc.invalidation.external.client.InvalidationListener.RegistrationState#values() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Event.java    From android-chromium with BSD 2-Clause "Simplified" License 4 votes vote down vote up
/**
 * Returns the registration state from an event message, or {@code null} if not present.
 */
public RegistrationState getRegistrationState() {
  int ordinal = parameters.getInt(Parameter.REGISTRATION_STATE, -1);
  return ordinal < 0 ? null : RegistrationState.values()[ordinal];
}
 
Example 2
Source File: Event.java    From android-chromium with BSD 2-Clause "Simplified" License 4 votes vote down vote up
/**
 * Returns the registration state from an event message, or {@code null} if not present.
 */
public RegistrationState getRegistrationState() {
  int ordinal = parameters.getInt(Parameter.REGISTRATION_STATE, -1);
  return ordinal < 0 ? null : RegistrationState.values()[ordinal];
}