com.tokenopoly.util.CompareUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coinbase-commerce-core Show documentation
Show all versions of coinbase-commerce-core Show documentation
A Java domain model for Coinbase Commerce (https://commerce.coinbase.com/.
/*
* 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());
}