[all packages] [package net.sf.pizzacompiler.util] [class hierarchy] [index]

public class net.sf.pizzacompiler.util.Option<A>

(source file: /home/enno/source/tmp/pizza/main/src/net/sf/pizzacompiler/util/Option.pizza)
java.lang.Object
   |
   +----net.sf.pizzacompiler.util.Option<A>

The pure class interface.
public class Option<A>
  implements java.io.Serializable
Copyright (C) 1996-2001 Martin Odersky, Erno Runne This software is distributed under the Artistic License. See artistic.html or artistic.txt which came with this distribution.


Constuctor Index

O None
O Some(A)

Methods

O hasValue()
Is a value stored?
O value()
Return the stored value.

Constructors

O None
public case None;

O Some

public case Some(A value);

Methods

O value
public A value();
Return the stored value.

O hasValue

public boolean hasValue();
Is a value stored?


[all packages] [package net.sf.pizzacompiler.util] [class hierarchy] [index]
net.sf.pizzacompiler.util.Option.html