com.xdev.jadoth.identity.Identity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xapi Show documentation
Show all versions of xapi Show documentation
XDEV Application Framework
/**
*
*/
package com.xdev.jadoth.identity;
/*-
* #%L
* XDEV Application Framework
* %%
* Copyright (C) 2003 - 2020 XDEV Software
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* #L%
*/
/**
* Objects of this type specify the data-defined identity of an object of type I
.
* The values that define the identified object are called identity values. They should, but don't have to,
* have "primitive" data types like primitives, primitive Wrappers and String.
*
* It is strongly recommended that any datatype used as an identity value is immutable.
* And of cource that an implementation of this type is immutable as well.
*
* A good examples for a concrete "Identity" is a Primary Key in a database table.
* Subtypes of this interface can be used to abstract (prescind) Primary Key values in application code.
*
* It is recommended that implementations of this type properly override equals(), hashCode() and toString() in close
* relation to the identity values they handle.
*
* @author Thomas Muenz
*
*/
public interface Identity
{
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy