Tabnine Logo
Pair.strictPairOf
Code IndexAdd Tabnine to your IDE (free)

How to use
strictPairOf
method
in
com.atlassian.jira.util.lang.Pair

Best Java code snippets using com.atlassian.jira.util.lang.Pair.strictPairOf (Showing top 2 results out of 315)

origin: com.atlassian.jira/jira-api

/**
 * 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);
}
origin: com.atlassian.jira.plugins/jira-workflow-sharing-plugin

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);
}
com.atlassian.jira.util.langPairstrictPairOf

Javadoc

A pair that doesn't allow null values.

Popular methods of Pair

  • first
  • second
  • nicePairOf
    A pair that does allows null values.
  • of
    By default we create a strict pair of non-null values.
  • <init>

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • setRequestProperty (URLConnection)
  • compareTo (BigDecimal)
  • Kernel (java.awt.image)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • JButton (javax.swing)
  • Join (org.hibernate.mapping)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now