Code example for Ordering

Methods: compare

0
	 
	private static final Ordering<Date> ORDERING = Ordering.<Date>natural().nullsFirst();
 
	@Override 
	protected int compareNotNullObjects(ArtifactVersion left, ArtifactVersion right) {
		return ORDERING.compare(left.getLastUpdateDate(), right.getLastUpdateDate());
	} 
	 
	public static ArtifactVersionLastUpdateDateComparator get() { 
		return INSTANCE;
	} 
 
} 
Connect your IDE to all the code out there  Get Codota for Java