@Override public boolean containsAll(Collection<?> collection) { if (collection instanceof ImmutableEnumSet<?>) { collection = ((ImmutableEnumSet<?>) collection).delegate; } return delegate.containsAll(collection); }
@Override public boolean containsAll(Collection<?> collection) { if (collection instanceof ImmutableEnumSet<?>) { collection = ((ImmutableEnumSet<?>) collection).delegate; } return delegate.containsAll(collection); }
@Override public boolean containsAll(Collection<?> collection) { if (collection instanceof ImmutableEnumSet<?>) { collection = ((ImmutableEnumSet<?>) collection).delegate; } return delegate.containsAll(collection); }
@Override public boolean containsAll(Collection<?> collection) { if (collection instanceof ImmutableEnumSet<?>) { collection = ((ImmutableEnumSet<?>) collection).delegate; } return delegate.containsAll(collection); }
@Override public boolean equals(Object obj) { if (!(obj instanceof Permission)) { return false; } Permission other = (Permission) obj; if (actions.isEmpty() && other.actions.isEmpty()) { return true; } else if (!actions.isEmpty() && !other.actions.isEmpty()) { if (actions.size() != other.actions.size()) { return false; } return actions.containsAll(other.actions); } return false; }
@Override public boolean containsAll(Collection<?> collection) { if (collection.isEmpty()) { return true; } if (collection instanceof MiniEnumSet) { MiniEnumSet<?> set = (MiniEnumSet<?>) collection; long setBits = set.bits; return isValidType(set.elementClass) && ((bits & setBits) == setBits); } return !(collection instanceof EnumSet) && super.containsAll(collection); }
@Override public boolean containsAll(Collection<?> collection) { if (collection.isEmpty()) { return true; } if (collection instanceof HugeEnumSet) { HugeEnumSet<?> set = (HugeEnumSet<?>) collection; if (isValidType(set.elementClass)) { for (int i = 0; i < bits.length; i++) { long setBits = set.bits[i]; if ((bits[i] & setBits) != setBits) { return false; } } return true; } } return !(collection instanceof EnumSet) && super.containsAll(collection); }
private void firstRunChecks() throws InterruptedException { if (!statesCompleted.containsAll(EnumSet.of(EthereumListener.SyncState.UNSECURE, EthereumListener.SyncState.SECURE))) return; sleep(60000); stopSync(); testLogger.info("Validating nodes: Start"); BlockchainValidation.checkNodes(ethereum, commonConfig, fatalErrors); testLogger.info("Validating nodes: End"); testLogger.info("Validating block headers: Start"); BlockchainValidation.checkFastHeaders(ethereum, commonConfig, fatalErrors); testLogger.info("Validating block headers: End"); firstRun.set(false); }
float weight = 0; for (TechniqueDef techDef : techDefs) { if (rendererCaps.containsAll(techDef.getRequiredCaps())) { float techWeight = techDef.getWeight() + (techDef.getLightMode() == renderManager.getPreferredLightMode() ? 10f : 0); if (techWeight > weight) {
if (!visited.containsAll(required)) { throw SecurityLogger.ROOT_LOGGER.xmlStreamExceptionMissingAttribute(Attribute.KEYSTORE_PASSWORD.getLocalName(), Attribute.TRUSTSTORE_PASSWORD.getLocalName(), reader.getLocation());
public boolean areFeaturesEnabled( Collection<AEFeature> features ) { return this.featureFlags.containsAll( features ); }
@Override public boolean containsAll(Collection<?> collection) { if (collection instanceof ImmutableEnumSet<?>) { collection = ((ImmutableEnumSet<?>) collection).delegate; } return delegate.containsAll(collection); }
@Override public boolean containsAll(Collection<?> collection) { if (collection instanceof ImmutableEnumSet<?>) { collection = ((ImmutableEnumSet<?>) collection).delegate; } return delegate.containsAll(collection); }
/** * @param constructs constructs to compare * @return true if all constructs appear in the components */ public boolean hasAllConstructs(Construct... constructs) { return components.containsAll(Arrays.asList(constructs)); }
Languages(String s, Construct c, Construct... components) { this.s = s; this.components = EnumSet.of(c, components); if (this.components.containsAll(Construct.incompatibleRoleFetures)) { throw new IllegalArgumentException("Incompatible constructs: [" + Construct.incompatibleRoleFetures + "] cannot appear together."); } }
Languages(String s, Construct c, Construct... components) { this.s = s; this.components = EnumSet.of(c, components); if (this.components.containsAll(Construct.incompatibleRoleFetures)) { throw new IllegalArgumentException("Incompatible constructs: [" + Construct.incompatibleRoleFetures + "] cannot appear together."); } }
/** * Returns whether the user has set of portal authorities granted. * @param id Portal Id. * @param pas Portal authorities to check. * @return True if the user has the authorities granted. */ public boolean hasPortal(UUID id, Collection<PortalAuthority> pas) { return portal.containsKey(id) && portal.get(id).containsAll(pas); }
/** * Determines if the given user has all of the required permissions. * This method takes into account if the user is the owner of the guild. * * @param guild The guild the user belongs to. * @param user The user who must have all of the required permissions. * @param required The permissions the user must have. * @return True if the user has all of the required permissions. */ public static boolean hasPermissions(IGuild guild, IUser user, EnumSet<Permissions> required) { return user.getPermissionsForGuild(guild).containsAll(required); }
@Override public boolean containsAll(Collection<?> collection) { if (collection.isEmpty()) { return true; } if (collection instanceof MiniEnumSet) { MiniEnumSet<?> set = (MiniEnumSet<?>) collection; long setBits = set.bits; return isValidType(set.elementClass) && ((bits & setBits) == setBits); } return !(collection instanceof EnumSet) && super.containsAll(collection); }
/** * @param l language to check * @return true if l is sufficient to express the ontology, i.e., if all constructs found in the * ontology are included in the language */ public boolean isWithin(Languages l) { return l.components.containsAll(getOrderedConstructs()); }