Codota Logo
Either$LeftProjection.map
Code IndexAdd Codota to your IDE (free)

How to use
map
method
in
com.atlassian.fugue.Either$LeftProjection

Best Java code snippets using com.atlassian.fugue.Either$LeftProjection.map (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: com.atlassian.jira/jira-rest-plugin

@VisibleForTesting
Iterable<ApplicationUser> findUsersWithPermission(final Iterable<Integer> permissions, final String name,
    Either<Project, Issue> projectOrIssue, boolean allowEmptyQuery, Integer maxResults)
{
  final Predicate<User> permissionPredicate = Either.merge(projectOrIssue.left().map(new Function<Project, Predicate<User>>()
  {
    @Override
    public Predicate<User> apply(Project project)
    {
      return createProjectPredicate(permissions, project);
    }
  }).right().map(new Function<Issue, Predicate<User>>()
  {
    @Override
    public Predicate<User> apply(Issue issue)
    {
      return createIssuePredicate(permissions, issue);
    }
  }));
  return userPickerHelper.findUsers(name, true, false, allowEmptyQuery, permissionPredicate, maxResults);
}
origin: com.atlassian.jira/jira-core

private <T> T raiseExceptionOnError(final Either<AttachmentError, T> result) throws AttachmentException
{
  return Eithers.getOrThrow(result.left().map(new Function<AttachmentError, AttachmentException>()
  {
    @Override
    public AttachmentException apply(final AttachmentError attachmentError)
    {
      return new AttachmentException(String.format("Got error while saving attachment %s: %s",
          attachmentError.getFilename(), attachmentError.getLogMessage()),
          attachmentError.getException().getOrNull());
    }
  }));
}
com.atlassian.fugueEither$LeftProjectionmap

Popular methods of Either$LeftProjection

  • get
  • getOrNull
  • on

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • JComboBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now