
gov.nasa.pds.registry.common.es.dao.dd.LddInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of registry-common Show documentation
Show all versions of registry-common Show documentation
Common code used by Harvest and Registry Manager.
The newest version!
package gov.nasa.pds.registry.common.es.dao.dd;
import java.time.Instant;
/**
* LDD information
* @author karpenko
*/
public class LddInfo implements Comparable
{
public String namespace;
public String file;
public String imVersion;
public Instant date;
@Override
public int compareTo(LddInfo o)
{
if(namespace.equals(o.namespace))
{
if(date == null) return -1;
if(o.date == null) return 1;
return date.compareTo(o.date);
}
else
{
return namespace.compareTo(o.namespace);
}
}
@Override
public boolean equals(Object o)
{
if(o instanceof LddInfo)
{
return file.equals(((LddInfo) o).file);
}
else
{
return false;
}
}
@Override
public int hashCode()
{
return file.hashCode();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy