检查状态是否对应输出

@param state 双数组下标
@return 对应的值，null表示不输出
555353
public V output(int state)
    {
        if (state < 0) return null;
        int n = base[state];
        if (state == check[state] && n < 0)
        {
            return v[-n - 1];
        }
        return null;
    }
419184
@Nullable public <VS> VS getViewState(@NonNull String viewId) {
    PresenterHolder holder = presenterMap.get(viewId);
    return holder == null ? null : (VS) holder.viewState;
  }
248743
public void queueStateChange(IState state)
    {
        synchronized(this.stateQueue)
        {
            if (this.stateQueue.size() != 0)
            {
                // The queue is only a method for ensuring the transition is carried out on the correct thread - transitions should
                // never happen so quickly that we end up with more than one state in the queue.
                System.out.println("STATE ERROR - multiple states in the queue.");
            }
            this.stateQueue.add(state);
            System.out.println(getName() + " request state: " + state);
            TCPUtils.Log(Level.INFO, "-------- " + getName() + " request state: " + state + " --------");
        }
    }
1038823
protected function getState($state = null)
	{
		if(null === $state)
		{
			if(null === $this->state)
			{
				$this->state = md5(\uniqid('', true));
			}
		}
		else
		{
			$this->state = $state;
		}
		return $this->state;
	}
1025523
public Object getFieldState()
    {
        if (this.getScreenField().getConverter() == null)
            return null;
        String string = this.getScreenField().getConverter().getString();
        if (string == null)
            string = Constants.BLANK;
        return string;
    }
811551
public TransitionableState getTransitionableState(final Flow flow, final String stateId) {
        if (containsFlowState(flow, stateId)) {
            return (TransitionableState) flow.getTransitionableState(stateId);
        }
        return null;
    }
668084
@Override
    public MessageBriefInfo[] getStates(String corpNum, String[] receiptNumList, String userID)
            throws PopbillException {
        if (receiptNumList == null || receiptNumList.length == 0)
            throw new PopbillException(-99999999, "접수번호 목록이 입력되지 않았습니다.");

        String PostData = toJsonString(receiptNumList);

        return httppost("/Message/States", corpNum, PostData, userID, MessageBriefInfo[].class);
    }
1159712
public String getState() throws SIMPException
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getState");

    String state = getState(getTickRange());

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getState", state);

    return state;
  }
571646
public static String getStateName(CmsResourceState state) {

        if (state.equals(CmsResourceState.STATE_NEW)) {
            return Messages.get().key(Messages.GUI_RESOURCE_STATE_NEW_0);
        } else if (state.equals(CmsResourceState.STATE_DELETED)) {
            return Messages.get().key(Messages.GUI_RESOURCE_STATE_DELETED_0);
        } else if (state.equals(CmsResourceState.STATE_CHANGED)) {
            return Messages.get().key(Messages.GUI_RESOURCE_STATE_CHANGED_0);
        } else if (state.equals(CmsResourceState.STATE_UNCHANGED)) {
            return Messages.get().key(Messages.GUI_RESOURCE_STATE_UNCHANGED_0);
        }
        return "";
    }
698983
public function getState()
    {
        return (isset($this->raw['state']) && ! empty($this->raw['state']))
            ? (string) $this->raw['state']
            : null;
    }
561068
public static State getStateImpl() {
        State s = null;
        try {
             DiscoverClass dc = new DiscoverClass();
             s = (State) dc.newInstance(
             State.class,
             State.DEFAULT_STATE_IMPL);
        } catch (Exception ex) {
             // ignore as default implementation will be used.
        }
        return s;
    }
210829
private static String[] getRegions(final String state) {
		if ("ACT".equals(state)) {
			return ACT_REGIONS;

		} else if ("VIC".equals(state)) {
			return VIC_REGIONS;
		} else {
			return null;
		}

	}
48
public static String getParamFromState(String state, String paramName) {

        String prefix = PARAM_SEPARATOR + paramName + PARAM_ASSIGN;
        if (state.contains(prefix)) {
            String result = state.substring(state.indexOf(prefix) + prefix.length());
            if (result.contains(PARAM_SEPARATOR)) {
                result = result.substring(0, result.indexOf(PARAM_SEPARATOR));
            }
            return CmsEncoder.decode(result, CmsEncoder.ENCODING_UTF_8);
        }
        return null;
    }
1016421
public static WindowState getWindowState(String state) {
        if (state == null) {
            return null;
        }

        final WindowState windowState = WINDOW_STATES.get(state);
        if (windowState != null) {
            return windowState;
        }

        return new WindowState(state);
    }
142629
public boolean getState()
    {
        if (this.getData() == null)
            return m_bTrueIfNull;
        int fieldValue = (int)this.getValue();
        boolean returnValue = false;
        if ((fieldValue & (1 << m_iBitNumber)) != 0)
            returnValue = true;
        if (m_bTrueIfMatch)
            return returnValue;
        else
            return !returnValue;
    }
1293316
public static String from(int state) {
        switch (state) {
            case Bundle.ACTIVE:
                return ACTIVE;
            case Bundle.INSTALLED:
                return INSTALLED;
            case Bundle.RESOLVED:
                return RESOLVED;
            case Bundle.STARTING:
                return STARTING;
            case Bundle.STOPPING:
                return STOPPING;
            case Bundle.UNINSTALLED:
                return UNINSTALLED;
            default:
                return "UNKNOWN (" + Integer.toString(state) + ")";
        }
    }
74717
@Nullable
    public String getState() {
        lifecycleLock.readLock().lock();
        try {
            return state == null ? null : state.toString();
        } finally {
            lifecycleLock.readLock().unlock();
        }
    }