[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.
- None
-
- Some(A)
-
- hasValue()
- Is a value stored?
- value()
- Return the stored value.
None
public case None;
Some
public case Some(A value);
value
public A value();
- Return the stored value.
hasValue
public boolean hasValue();
- Is a value stored?
[all packages]
[package net.sf.pizzacompiler.util]
[class hierarchy]
[index]
net.sf.pizzacompiler.util.Option.html