Gets the {@link PresenceState} for which an entity wants to receive
notifications.

@return the list of states
194241
public List<PresenceState> getShowValues() {
        ArrayList<PresenceState> result = new ArrayList<>(5);

        for (String state : getFieldValues(SubscribeOptionFields.show_values)) {
            result.add(PresenceState.valueOf(state));
        }
        return result;
    }
1044810
public ArrayList<Integer> getVisited() {
    if (0 == (this.registry.length - this.unvisitedCount)) {
      return new ArrayList<Integer>();
    }
    ArrayList<Integer> res = new ArrayList<Integer>(this.registry.length - this.unvisitedCount);
    for (int i = 0; i < this.registry.length; i++) {
      if (ONE == this.registry[i]) {
        res.add(i);
      }
    }
    return res;
  }
314064
public Object getPersistentState() {
    Map<String, Object> persistentState = new HashMap<String, Object>();
    persistentState.put("name", name);
    persistentState.put("owner", owner);
    persistentState.put("assignee", assignee);
    persistentState.put("endTime", endTime);
    persistentState.put("durationInMillis", durationInMillis);
    persistentState.put("description", description);
    persistentState.put("deleteReason", deleteReason);
    persistentState.put("taskDefinitionKey", taskDefinitionKey);
    persistentState.put("formKey", formKey);
    persistentState.put("priority", priority);
    persistentState.put("category", category);
    persistentState.put("processDefinitionId", processDefinitionId);
    if (parentTaskId != null) {
      persistentState.put("parentTaskId", parentTaskId);
    }
    if (dueDate != null) {
      persistentState.put("dueDate", dueDate);
    }
    if (claimTime != null) {
      persistentState.put("claimTime", claimTime);
    }
    return persistentState;
  }
491270
public String[] getDeviceStateArray() {
	final String[] array = new String[deviceStateMap.size()];
	int i = 0;
	for (final Map.Entry<String, DevState> deviceStateEntry : deviceStateMap.entrySet()) {

	    final String deviceName = deviceStateEntry.getKey();
	    final DevState deviceState = deviceStateEntry.getValue();
	    array[i++] = deviceName + " - " + StateUtilities.getNameForState(deviceState);
	}
	return array;
    }
1260543
function getNotificationState () {
  if (process.platform !== 'win32') {
    throw new Error('windows-notification-state only works on windows')
  }

  const QUERY_USER_NOTIFICATION_STATE = [
    '',
    'QUNS_NOT_PRESENT',
    'QUNS_BUSY',
    'QUNS_RUNNING_D3D_FULL_SCREEN',
    'QUNS_PRESENTATION_MODE',
    'QUNS_ACCEPTS_NOTIFICATIONS',
    'QUNS_QUIET_TIME',
    'QUNS_APP'
  ]

  const result = addon.getNotificationState()

  if (QUERY_USER_NOTIFICATION_STATE[result]) {
    return QUERY_USER_NOTIFICATION_STATE[result]
  } else {
    return 'UNKNOWN_ERROR'
  }
}
911717
public WorkingState getWorkingState() {
    return WorkingState
        .valueOf(getProp(ConfigurationKeys.WORK_UNIT_WORKING_STATE_KEY, WorkingState.PENDING.toString()));
  }
605567
protected WidgetState.State getState() {
        final WidgetState.State state;
        if (mIsPressed) {
            state = WidgetState.State.PRESSED;
        } else if (mIsSelected) {
            state = WidgetState.State.SELECTED;
        } else if (mIsFocused) {
            state = WidgetState.State.FOCUSED;
        } else {
            state = WidgetState.State.NORMAL;
        }
        return state;
    }
689616
private State computeState(List<Object> nodes)
    {
        Set<State> set = new LinkedHashSet<State>();
        for (Object node : nodes)
        {
            set.add(getSelectionState(node));
        }
        // Should never happen
        while (set.contains(null))
        {
            logger.warning("null found in selection states");
            set.remove(null);
        }
        if (set.size() == 0)
        {
            // Should never happen
            logger.warning("Empty selection states");
            return State.SELECTED;
        }
        if (set.size() > 1)
        {
            return State.MIXED;
        }
        return set.iterator().next();
    }
851425
public Set<T> getTransitions(S state) {
		getStateId(state);
		return validTransitions.get(state);
	}
1114129
public State state() {
    if (selectionsIterator == null) {
      return State.RESET;
    } else if (hasNext()) {
      return State.ITERATE;
    } else {
      return State.COMPLETE;
    }
  }
538796
public Integer getFirstStateId(){
		Set<Integer> ids = states.inverse().keySet();
		if (ids.size() < 1 ){
			throw new IllegalStateException("There is no state defined.");
		}
		Integer[] idsArray = new Integer[ids.size()];
		Arrays.sort(ids.toArray(idsArray));
		return idsArray[0];
	}
1073122
public java.util.List<ModificationState> getModificationStates() {
        if (modificationStates == null) {
            modificationStates = new com.amazonaws.internal.SdkInternalList<ModificationState>();
        }
        return modificationStates;
    }
970891
public StatusGroup getStatusGroup()
    {
        StatusGroup ret;
        try {
            ret = Status.get(statusGroupUUID);
        } catch (final CacheReloadException e) {
            LOG.error("Catched CacheReloadException", e);
            ret = null;
        }
        return ret;
    }
1073223
public PushedNotifications getSuccessfulNotifications() {
		PushedNotifications filteredList = new PushedNotifications(this);
		for (PushedNotification notification : this) {
			if (notification.isSuccessful()) filteredList.add(notification);
		}
		return filteredList;
	}
1149755
@Override
    public DevState state() {
        MDC.setContextMap(contextMap);
        xlogger.entry();
        try {
            state = getState();
        } catch (final DevFailed e) {
            try {
                stateImpl.stateMachine(DeviceState.UNKNOWN);
                statusImpl.statusMachine(DevFailedUtils.toString(e), DeviceState.UNKNOWN);
                state = DevState.UNKNOWN;
            } catch (final DevFailed e1) {
                logger.debug(NOT_IMPORTANT_ERROR, e1);
            }
            logger.debug(NOT_IMPORTANT_ERROR, e);
        }
        return state;
    }
884434
List<AddOnInstallationStatusListener> getAddOnInstallationStatusListeners() {
        if (addOnInstallationStatusListeners == null) {
            return Collections.emptyList();
        }
        return Collections.unmodifiableList(addOnInstallationStatusListeners);
    }
760234
public function getStates()
    {
        $appID = App::getCurrentID();
        $complementID = self::getCurrentID();
        $states = $this->getStatesFromFile();

        if (isset($states[$appID][$complementID])) {
            return $this->states = $states[$appID][$complementID];
        }

        return $this->states = [];
    }