public List<SearchParameter.Include> getIncludes() { Collections.sort(myIncludes); return myIncludes; }
@Override public List<Class> getMessageClassToIntercept() { return Collections.emptyList(); }
final Comparator reverseComparator() { if (reverseComparator == null) { reverseComparator = Collections.reverseOrder(comparator); } return reverseComparator; }
private List<Container> getContainersToStop(QueryService queryService, ImageConfiguration image) throws DockerAccessException { List<Container> containers; RunImageConfiguration.NamingStrategy strategy = image.getRunConfiguration().getNamingStrategy(); if (strategy == RunImageConfiguration.NamingStrategy.alias) { Container container = queryService.getContainerByName(image.getAlias()); containers = container != null ? Collections.singletonList(container) : Collections.emptyList(); } else { containers = queryService.getContainersForImage(image.getName()); } return containers; }
public Map<String, String> getHeaders() { return Collections.unmodifiableMap(headers); }
public AttributeStatementBuilder withSingleAttribute(AttributeBean attribute){ attributeStatement.setSamlAttributes(Collections.singletonList(attribute)); return this; }
public Set keySet() { if (keySet == null) keySet = singleton(this.key); return keySet; } public Set entrySet() {
@Override public List<Catalog> getCatalogs() { return Collections.unmodifiableList(catalogList); }
public Map<String, String> getHeaders() { return Collections.unmodifiableMap(headers); }
public AttributeBuilder withSingleValue(String value){ attribute.setAttributeValues(Collections.singletonList(value)); attribute.setQualifiedName("http://www.w3.org/2001/XMLSchema"); return this; }
public Collection values() { if (values == null) values = singleton(this.value); return values; } }
public List<Split> getSplits() { return Collections.unmodifiableList(splits); }
private void sortRelations(ArrayList<Relation> relations) { Collections.sort(relations, new Comparator<Relation>() { @Override public int compare(Relation o1, Relation o2) { int result = o1.getClass().equals(o2.getClass()) ? o1.getFromType().getName().compareTo(o1.getFromType().getName()) : o1.getClass().getName().compareTo(o2.getClass().getName()); return result; } }); }
@Override @SuppressWarnings("unchecked") public Collection<RioSetting<?>> getSupportedSettings() { return Collections.emptyList(); }
final Comparator reverseComparator() { if (reverseComparator == null) { reverseComparator = Collections.reverseOrder(comparator); } return reverseComparator; }
public DefaultCacheKey(String uri, String serverName, String locale, String channel, String method, Map<String, String> params, Boolean isSecure) { this.uri = uri; this.serverName = serverName; this.channel = channel; this.locale = locale; this.params = params == null ? null : Collections.unmodifiableMap(params); this.isSecure = isSecure; this.method = method == null ? null : method.toLowerCase(); }
+ ". Make sure to enable route coverage in your unit tests and assign unique route ids to your routes. Also remember to run unit tests first."); } else { List<RouteCoverageNode> coverage = gatherRouteCoverageSummary(Collections.singletonList(t), coverageData); String out = templateCoverageData(fileName, routeId, coverage, notCovered); getLog().info("Route coverage summary:\n\n" + out);
public Set entrySet() { if (entrySet == null) entrySet = singleton(new SimpleImmutableEntry(this.key, this.value)); return entrySet; } public Collection values() {
@Override public synchronized Enumeration<Object> keys() { Enumeration<Object> keys = super.keys(); Vector<Object> v = new Vector<Object>(); while (keys.hasMoreElements()) { v.add(keys.nextElement()); } Collections.sort(v); return v.elements(); } }
@Override @SuppressWarnings("unchecked") public Collection<RioSetting<?>> getSupportedSettings() { return Collections.emptyList(); }