001 // Copyright 2007 Regents of the University of California. May be used 002 // under the terms of the revised BSD license. See LICENSING for details. 003 /** 004 * @author Adrian Mettler 005 */ 006 package org.joe_e; 007 008 /** 009 * Marker interface for annotating classes whose instances are permitted 010 * to be compared using the <code>==</code> and <code>!=</code> operators. 011 * These operators compare using the address of the object and thus expose 012 * object identity. Objects that do not implement Equatable are prohibited 013 * (by Joe-E) from being compared using these comparison operators. 014 * <p> 015 * A class that implements Equatable must not implement Selfless. 016 * <p> 017 * This interface has no members. 018 * 019 * @see Selfless 020 */ 021 public interface Equatable { 022 023 }