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

com.vaadin.ui.UniqueSerializable Maven / Gradle / Ivy

There is a newer version: 8.27.3
Show newest version
/*
 * Vaadin Framework 7
 *
 * Copyright (C) 2000-2024 Vaadin Ltd
 *
 * This program is available under Vaadin Commercial License and Service Terms.
 *
 * See  for the full
 * license.
 */
package com.vaadin.ui;

import java.io.Serializable;

/**
 * A base class for generating an unique object that is serializable.
 * 

* This class is abstract but has no abstract methods to force users to create * an anonymous inner class. Otherwise each instance will not be unique. * * @author Vaadin Ltd * @since 6.8.0 * */ public abstract class UniqueSerializable implements Serializable { @Override public int hashCode() { return getClass().hashCode(); } @Override public boolean equals(Object obj) { return getClass() == obj.getClass(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy