Example usage for com.google.common.collect Ordering subclass-usage

List of usage examples for com.google.common.collect Ordering subclass-usage

Introduction

In this page you can find the example usage for com.google.common.collect Ordering subclass-usage.

Usage

From source file org.geogit.storage.NodeStorageOrder.java

/**
 * Implements storage order of {@link Node} based on its {@link #pathHash(Node) hashed path}
 */
public final class NodeStorageOrder extends Ordering<Node> {

    private final NodePathStorageOrder pathOrder = new NodePathStorageOrder();

From source file org.locationtech.geogig.model.CanonicalNodeOrder.java

/**
 * Implements storage order of {@link Node} based on its name using a {@link CanonicalNodeNameOrder}
 * comparator.
 * 
 * @see CanonicalNodeNameOrder
 * 

From source file org.locationtech.geogig.storage.NodeStorageOrder.java

/**
 * Implements storage order of {@link Node} based on its name using a {@link NodePathStorageOrder}
 * comparator.
 * 
 * @see NodePathStorageOrder
 */

From source file org.geogit.storage.NodePathStorageOrder.java

/**
 * Implements storage order of {@link Node} based on its {@link #pathHash(Node) hashed path}
 */
public final class NodePathStorageOrder extends Ordering<String> {

    private final MessageDigest hasher;

From source file com.b2international.snowowl.snomed.reasoner.server.diff.OntologyChangeOrdering.java

/**
 * Ordering implementation for ontology changes of arbitrary subjects; orders additions in front of removals, placing
 * null values at the end.
 * 
 */
public final class OntologyChangeOrdering extends Ordering<OntologyChange<?>> {

From source file de.cosmocode.palava.util.enums.EuropeanWeekdayComparator.java

final class EuropeanWeekdayComparator extends Ordering<Weekday> {

    private final List<Weekday> inOrder = ImmutableList.of(Weekday.MONDAY, Weekday.TUESDAY, Weekday.WEDNESDAY,
            Weekday.THURSDAY, Weekday.FRIDAY, Weekday.SATURDAY, Weekday.SUNDAY);

    private final Ordering<Weekday> ordering = Ordering.explicit(inOrder);

From source file com.wealdtech.utils.IntervalOrdering.java

/**
 * Allow ordering of Joda Intervals.  Access to this should be through
 * the static INSTANCE value.
 */
public class IntervalOrdering extends Ordering<Interval> {
    public static final IntervalOrdering INSTANCE = new IntervalOrdering();

From source file info.piwai.funkyjfunctional.guava.ClassOrdering.java

/**
 * <p>
 * {@link ClassOrdering}
 *
 * @author Nicolas Francois (nicolas.franc at gmail.com)
 */

From source file com.wealdtech.utils.PeriodOrdering.java

/**
 * Allow ordering of Joda Periods by comparing them against a common base date.
 * Access to this should be through the static INSTANCE value.
 * <p/>Note that as the date chosen as a comparison base is arbitrary there are some
 * situations where the results are open to debate as to their accuracy when considering
 * periods of differing types (<em>e.g.</em> comparing 31 days to 1 month).  The results

From source file com.minlia.cloud.framework.common.util.order.OrderById.java

public final class OrderById<T extends IWithId> extends Ordering<T> {

    public OrderById() {
        super();
    }