Tabnine Logo
GenericJsonArrayParser.create
Code IndexAdd Tabnine to your IDE (free)

How to use
create
method
in
com.atlassian.jira.rest.client.internal.json.GenericJsonArrayParser

Best Java code snippets using com.atlassian.jira.rest.client.internal.json.GenericJsonArrayParser.create (Showing top 9 results out of 315)

origin: org.jboss.set/jboss-aphrodite-jira

public PageParser(final JsonObjectParser<V> valueParser) {
  this.valueParser = valueParser;
  this.valuesParser = GenericJsonArrayParser.create(valueParser);
}
origin: org.openengsb.wrapped/jira-rest-java-client-core

  public static JsonArrayParser<Iterable<Field>> createFieldsArrayParser() {
    return GenericJsonArrayParser.create(new FieldJsonParser());
  }
}
origin: com.atlassian.jira/jira-rest-java-client-core

  public static JsonArrayParser<Iterable<Field>> createFieldsArrayParser() {
    return GenericJsonArrayParser.create(new FieldJsonParser());
  }
}
origin: com.atlassian.jira/jira-rest-java-client

  valuesToParse = allowedValues;
return GenericJsonArrayParser.create(allowedValuesJsonParser).parse(valuesToParse);
origin: com.atlassian.jira/jira-rest-java-client-core

    valuesToParse = allowedValues;
  return GenericJsonArrayParser.create(allowedValuesJsonParser).parse(valuesToParse);
} else {
origin: org.openengsb.wrapped/jira-rest-java-client-core

    valuesToParse = allowedValues;
  return GenericJsonArrayParser.create(allowedValuesJsonParser).parse(valuesToParse);
} else {
origin: com.atlassian.jira/jira-rest-java-client-p3

  valuesToParse = allowedValues;
return GenericJsonArrayParser.create(allowedValuesJsonParser).parse(valuesToParse);
origin: com.atlassian.jira/jira-rest-java-client-core

  @Override
  public SearchResult parse(JSONObject json) throws JSONException {
    final int startAt = json.getInt("startAt");
    final int maxResults = json.getInt("maxResults");
    final int total = json.getInt("total");
    final JSONArray issuesJsonArray = json.getJSONArray("issues");

    final Iterable<Issue> issues;
    if (issuesJsonArray.length() > 0) {
      final IssueJsonParser issueParser = new IssueJsonParser(json.getJSONObject("names"), json.getJSONObject("schema"));
      final GenericJsonArrayParser<Issue> issuesParser = GenericJsonArrayParser.create(issueParser);
      issues = issuesParser.parse(issuesJsonArray);
    } else {
      issues = Collections.emptyList();
    }
    return new SearchResult(startAt, maxResults, total, issues);
  }
}
origin: org.openengsb.wrapped/jira-rest-java-client-core

  @Override
  public SearchResult parse(JSONObject json) throws JSONException {
    final int startAt = json.getInt("startAt");
    final int maxResults = json.getInt("maxResults");
    final int total = json.getInt("total");
    final JSONArray issuesJsonArray = json.getJSONArray("issues");

    final Iterable<Issue> issues;
    if (issuesJsonArray.length() > 0) {
      final IssueJsonParser issueParser = new IssueJsonParser(json.getJSONObject("names"), json.getJSONObject("schema"));
      final GenericJsonArrayParser<Issue> issuesParser = GenericJsonArrayParser.create(issueParser);
      issues = issuesParser.parse(issuesJsonArray);
    } else {
      issues = Collections.emptyList();
    }
    return new SearchResult(startAt, maxResults, total, issues);
  }
}
com.atlassian.jira.rest.client.internal.jsonGenericJsonArrayParsercreate

Popular methods of GenericJsonArrayParser

  • parse
  • <init>

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (Timer)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Runner (org.openjdk.jmh.runner)
  • Top 12 Jupyter Notebook extensions
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