![JAR search and dependency download from the Maven repository](/logo.png)
com.plenigo.sdk.internal.util.DateUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk-commons Show documentation
Show all versions of java-sdk-commons Show documentation
Commons library used by the plenigo Java SDK and the plenigo Android SDK.
package com.plenigo.sdk.internal.util;
import java.util.Date;
/**
*
* Utils for working with dates.
*
*
* Thread safety: This class is thread safe and can be injected.
*
*/
public final class DateUtils {
/**
* Private constructor because it is a utility class.
*/
private DateUtils() {
}
/**
* Create a deep copy of a given date.
*
* @param date date to get deep copy for
*
* @return deep copy
*/
public static Date copy(Date date) {
if (date == null) {
return null;
}
return (Date) date.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy