/** * By default we create a strict pair of non-null values. * * @param first first value * @param second second value * @param <U> type of first value * @param <V> type of second value * @return new pair * @see #strictPairOf(Object, Object) */ public static <U,V> Pair<U,V> of(U first, V second) { return strictPairOf(first, second); }
private Pair<String,String> extractWorkflowNameAndMode(HttpServletRequest request) throws Exception { String wfName = request.getParameter(WF_NAME_FIELD_NAME); String wfMode = request.getParameter(WF_MODE_FIELD_NAME); if(StringUtils.isBlank(wfName)) { return null; } if(StringUtils.isBlank(wfMode)) { wfMode = "active";//NON-NLS } return Pair.strictPairOf(wfName, wfMode); }