org.zedlib
Class Maplet

java.lang.Object
  extended byorg.zedlib.Maplet
Direct Known Subclasses:
Baglet, OrderedPair, Seqlet

public class Maplet
extends Object

If X and Y are sets, then X ↔ Y is the set of binary relations between X and Y. Each such relation is a subset of X x Y . The 'maplet' notation from x to y is another way of expressing the ordered pair (x, y).

Author:
Brad Long

Field Summary
protected  Object x
           
protected  Object y
           
 
Constructor Summary
protected Maplet()
           
  Maplet(Object x, Object y)
           
 
Method Summary
 boolean equals(Object o)
           
 Object first()
          Returns x in (x,y).
 int hashCode()
           
 Object second()
          Returns y in (x,y).
 Object x()
          Returns x in (x,y).
 Object y()
          Returns y in (x,y).
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

protected Object x

y

protected Object y
Constructor Detail

Maplet

protected Maplet()

Maplet

public Maplet(Object x,
              Object y)
Method Detail

first

public Object first()
Returns x in (x,y).


second

public Object second()
Returns y in (x,y).


x

public Object x()
Returns x in (x,y).


y

public Object y()
Returns y in (x,y).


equals

public boolean equals(Object o)

hashCode

public int hashCode()


Copyright © 2006 Brad Long. All Rights Reserved.