Get a list of all top-level rules that are media rules (implementing
{@link CSSMediaRule}).

@return A copy of all contained <code>@media</code> rules. Never
<code>null</code>.
172853
@Nonnull
  @ReturnsMutableCopy
  public ICommonsList <CSSMediaRule> getAllMediaRules ()
  {
    return m_aRules.getAllMapped (r -> r instanceof CSSMediaRule, r -> (CSSMediaRule) r);
  }
1184900
public List<Class<? extends RulePhase>> getAvailablePhases() {
        ArrayList<Class<? extends RulePhase>> phases = new ArrayList<>(this.cachedPhases.values());
        // It could be sorted by the real order.
        phases.sort(new Comparator()
        {
            @Override
            public int compare(Object phaseClass1, Object phaseClass2)
            {
                if (phaseClass1 == null || !(phaseClass1 instanceof Class))
                    return -1;
                if (phaseClass2 == null || !(phaseClass2 instanceof Class))
                    return 1;

                String name1 = ((Class<? extends RulePhase>)phaseClass1).getSimpleName();
                String name2 = ((Class<? extends RulePhase>)phaseClass2).getSimpleName();
                return name1.compareToIgnoreCase(name2);
            }
        });
        return phases;
    }
1179458
@Nonnull
  @ReturnsMutableCopy
  public ICommonsList <CSSUnknownRule> getAllUnknownRules ()
  {
    return m_aRules.getAllMapped (r -> r instanceof CSSUnknownRule, r -> (CSSUnknownRule) r);
  }
1137917
@Nonnull
  @ReturnsMutableCopy
  public ICommonsList <CSSFontFaceRule> getAllFontFaceRules ()
  {
    return m_aRules.getAllMapped (r -> r instanceof CSSFontFaceRule, r -> (CSSFontFaceRule) r);
  }
1049050
List<Rule> getRules() {
        List<Rule> rulesToReturn = new ArrayList<>(this.rules);
        new DeletedProposition().toRules(rulesToReturn);
        return rulesToReturn;
    }
555316
static Rule[] getOrderedRules(final Rule[] rules) {

        final Comparator<Rule> c = Comparator.comparing(Rule::getSize).reversed().thenComparing(Rule::getPattern);

        final Rule[] result = Arrays.copyOf(rules, rules.length);
        parallelSort(result, c);
        return result;
    }
952788
public Map<CategoryId, Category> getCategories() {
    Map<CategoryId, Category> map = new HashMap<>();
    for (Rule rule : getAllRules()) {
      map.put(rule.getCategory().getId(), rule.getCategory());
    }
    return map;
  }
1129143
public List<MediaType> getAccept() {
        if (isNull(accept)) {
            List<MediaType> accepts = getHeader(HeaderName.ACCEPT)
                .map(MediaType::list)
                .get();

            this.accept = nonEmpty(accepts) ? accepts : singletonList(WILDCARD);
        }
        return accept;
    }
964359
@Override
    protected List<TestRule> classRules() {
        List<JUnitClassRulesFilter> junitClassRulesFilters =
            new JavaSPILoader().all(Arquillian.class.getClassLoader(), JUnitClassRulesFilter.class);
        List<TestRule> result = super.classRules();

        if (!junitClassRulesFilters.isEmpty()) {
            for (final JUnitClassRulesFilter junitClassRulesFilter : junitClassRulesFilters) {
                result = junitClassRulesFilter.filter(result);
            }
        }
        return result;
    }
1037450
public Map<String,Transformer> getJavaSuffixRule() {
        Map<String,Transformer> sr = new HashMap<>();
        sr.put(".java", compileJavaPackages);
        return sr;
    }
995538
@Override
	public List<CommerceDiscountRule> findAll() {
		return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
303030
protected ArrayList<SAXMotif> getAllMotifs(GrammarRules grammarRules) {

    // result
    ArrayList<SAXMotif> allMotifs = new ArrayList<SAXMotif>();

    int ruleNumber = grammarRules.size();

    // iterate over all rules
    for (int i = 0; i < ruleNumber; i++) {

      // iterate over all segments/motifs/sub-sequences which correspond
      // to the rule
      ArrayList<RuleInterval> arrPos = grammarRules.getRuleRecord(i).getRuleIntervals();
      for (RuleInterval saxPos : arrPos) {
        SAXMotif motif = new SAXMotif();
        motif.setPos(saxPos);
        motif.setRuleIndex(i);
        motif.setClassified(false);
        allMotifs.add(motif);
      }

    }

    // ascending order
    Collections.sort(allMotifs);
    return allMotifs;
  }
213438
public List<CmsListItem> getAllContent() {

        if (m_metadata.isSelfManaged()) {
            if (m_filteredItems != null) {
                return Collections.unmodifiableList(m_filteredItems);
            } else {
                return Collections.emptyList();
            }
        } else {
            if (m_originalItems != null) {
                return Collections.unmodifiableList(m_originalItems);
            } else {
                return Collections.emptyList();
            }
        }
    }
76004
public List<NaaccrValidationError> getAllValidationErrors() {
        List<NaaccrValidationError> results = new ArrayList<>(getValidationErrors());
        results.addAll(getItems().stream().filter(item -> item.getValidationError() != null).map(Item::getValidationError).collect(Collectors.toList()));
        for (Tumor tumor : getTumors())
            results.addAll(tumor.getAllValidationErrors());
        return results;
    }
410560
public java.util.List<AuthorizationRule> getAuthorizationRules() {
        if (authorizationRules == null) {
            authorizationRules = new com.amazonaws.internal.SdkInternalList<AuthorizationRule>();
        }
        return authorizationRules;
    }
758882
public List<RuleProxyField> clearDerived()
	{
        List<RuleProxyField> ret = new ArrayList<RuleProxyField>();
        List<ProxyObject> proxyObjects = m_session.getProxyObjects();
        for (ProxyObject proxyObject: proxyObjects)
        {
            for (Map.Entry<String,ProxyField> entry: proxyObject.getFieldMap().entrySet())
            {
                ProxyField proxyField = entry.getValue();
                if (proxyField.isDerived())
                {
                    RuleProxyField ruleProxyField = m_ruleProxyFields.get(proxyField);
                    ret.add(ruleProxyField);
                    ruleProxyField.reset();
                }
            }
        }
        return ret;
	}
595269
public List<MimeMappingType<WebFragmentType<T>>> getAllMimeMapping()
   {
      List<MimeMappingType<WebFragmentType<T>>> list = new ArrayList<MimeMappingType<WebFragmentType<T>>>();
      List<Node> nodeList = childNode.get("mime-mapping");
      for(Node node: nodeList)
      {
         MimeMappingType<WebFragmentType<T>>  type = new MimeMappingTypeImpl<WebFragmentType<T>>(this, "mime-mapping", childNode, node);
         list.add(type);
      }
      return list;
   }