All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tokenopoly.util.CompareUtils Maven / Gradle / Ivy

There is a newer version: 0.2.5-beta
Show newest version
/*
 * Copyright (c) 2018  Tokenopoly Financial Technology Inc.
 * All rights not explicitly granted in the LICENSE attached to this project are hereby reserved.
 */

package com.tokenopoly.util;

import java.util.Comparator;
import java.util.Date;

/**
 * Helper methods and objects.
 * 

Declared abstract since there's no need to instantiate this.

*/ @SuppressWarnings("unused") public abstract class CompareUtils { /** * Helper instance that defaults to ordering nulls last when ordering Strings by their natural ordering. */ public static final Comparator StringNaturalNullsLast = Comparator.nullsLast(Comparator.naturalOrder()); /** * Helper instance that defaults to ordering nulls last when ordering Dates by their natural ordering. */ public static final Comparator DateNaturalNullsLast = Comparator.nullsLast(Comparator.naturalOrder()); /** * Helper instance that defaults to ordering nulls last when ordering Longs by their natural ordering. */ public static final Comparator LongNaturalNullsLast = Comparator.nullsLast(Comparator.naturalOrder()); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy