All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softicar.platform.common.core.item.IBasicItem Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
package com.softicar.platform.common.core.item;

/**
 * A basic item is an entity with a unique ID.
 *
 * @author Oliver Richers
 */
public interface IBasicItem extends Comparable {

	/**
	 * Returns the ID of this item.
	 *
	 * @return the item ID or null
	 */
	Integer getId();

	/**
	 * Return the ID of this item.
	 *
	 * @return the item ID or null
	 */
	default ItemId getItemId() {

		Integer id = getId();
		return id != null? new ItemId(id) : null;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy