Tabnine Logo
Suppliers.alwaysFalse
Code IndexAdd Tabnine to your IDE (free)

How to use
alwaysFalse
method
in
com.atlassian.fugue.Suppliers

Best Java code snippets using com.atlassian.fugue.Suppliers.alwaysFalse (Showing top 6 results out of 315)

origin: com.atlassian.jira/jira-postsetup-announcements-plugin

  private Boolean isAdmin(final Option<ApplicationUser> userOption)
  {
    return userOption.fold(Suppliers.alwaysFalse(), new Function<ApplicationUser, Boolean>()
    {
      @Override
      public Boolean apply(final ApplicationUser user)
      {
        final boolean isAdmin = permissionManager.hasPermission(GlobalPermissionKey.ADMINISTER, user);
        return isAdmin;
      }
    });
  }
}
origin: com.atlassian.jira/jira-postsetup-announcements-plugin

  @Override
  public Boolean apply(final ApplicationUser user)
  {
    return instantSetupUser.fold(Suppliers.alwaysFalse(), new Function<String, Boolean>()
    {
      @Override
      public Boolean apply(final String input)
      {
        return user.getKey().equals(input);
      }
    });
  }
});
origin: com.atlassian.jira/jira-postsetup-announcements-plugin

  @Override
  public boolean canUserSeeAnnouncement(final Option<ApplicationUser> applicationUsers, final String announcedActivity)
  {
    final Option<String> instantSetupUser = instantSetupUserSupplier.get();

    if (announcedActivity.equals(PostSetupAnnouncementProvider.ADMIN_ACCOUNT_SETUP))
    {
      return applicationUsers.fold(Suppliers.alwaysFalse(), new Function<ApplicationUser, Boolean>()
      {
        @Override
        public Boolean apply(final ApplicationUser user)
        {
          return instantSetupUser.fold(Suppliers.alwaysFalse(), new Function<String, Boolean>()
          {
            @Override
            public Boolean apply(final String input)
            {
              return user.getKey().equals(input);
            }
          });
        }
      });
    }
    else
    {
      return true;
    }
  }
}
origin: com.atlassian.jira/jira-postsetup-announcements-plugin

public boolean isEvaluationLicenseOld(final Period period)
{
  final Iterable<LicenseDetails> allLicenses = ImmutableList.copyOf(licenses);
  final boolean evaluation = isEvaluation(allLicenses);
  Option<LicenseDetails> evaluationLicense = evaluation ?
      com.atlassian.fugue.Iterables.first(allLicenses) : Option.<LicenseDetails>none();
  final Boolean isEvaluatingEnough = evaluationLicense.fold(Suppliers.alwaysFalse(), new Function<LicenseDetails, Boolean>()
  {
    @Override
    public Boolean apply(final LicenseDetails input)
    {
      return isLicenseThisOld(input, period);
    }
  });
  return isEvaluatingEnough;
}
origin: com.atlassian.plugins/base-hipchat-integration-plugin

@Override
public boolean removeOauth2Configuration(@Nonnull final UserKey userKey) {
  return userKeyHipChatUserMapper.findHipChatUser(userKey).fold(
      Suppliers.alwaysFalse(),
      new Function<HipChatUserId, Boolean>() {
        @Override
origin: com.atlassian.jira/jira-core

public boolean shouldDisplay(final ApplicationUser user, final JiraHelper jiraHelper)
{
  Optional<Long> entityId = getEntityId(jiraHelper.getContextParams());
  if (!entityId.isPresent())
  {
    return false;
  }
  EntityPropertyService.PropertyResult propertyResult = service.getProperty(user, entityId.get(), propertyKey);
  if (!propertyResult.isValid())
  {
    return false;
  }
  Option<EntityProperty> entityProperty = propertyResult.getEntityProperty();
  return entityProperty.fold(Suppliers.alwaysFalse(), new Function<EntityProperty, Boolean>()
  {
    @Override
    public Boolean apply(final EntityProperty entityProperty)
    {
      JsonElement jsonElement = jsonParser.parse(entityProperty.getValue());
      return jsonElement.isJsonPrimitive() && jsonElement.getAsString().equals(value);
    }
  });
}
com.atlassian.fugueSuppliersalwaysFalse

Popular methods of Suppliers

  • ofInstance

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • requestLocationUpdates (LocationManager)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JList (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Best IntelliJ plugins
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