edu.neu.ccs.demeterf.lib
Class Some<X>
java.lang.Object
   edu.neu.ccs.demeterf.lib.Option<X>
edu.neu.ccs.demeterf.lib.Option<X>
       edu.neu.ccs.demeterf.lib.Some<X>
edu.neu.ccs.demeterf.lib.Some<X>
- public class Some<X> 
- extends Option<X>
Represents an Optional instance that exists.
 
| Constructor Summary | 
| Some(X just)
 | 
 
| Method Summary | 
| 
 | apply(List.Map<X,Y> m)Apply a function to the contained object in this Option if it exists
 | 
|  boolean | equals(java.lang.Object o)
 | 
|  X | getJust()
 | 
|  X | inner()Get the inner instance that this Option contains
 | 
|  boolean | isSome()Does this Option exist?
 | 
|  java.lang.String | toString()
 | 
 
| Methods inherited from class edu.neu.ccs.demeterf.lib.Option | 
| none, some | 
 
| Methods inherited from class java.lang.Object | 
| getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
Some
public Some(X just)
isSome
public boolean isSome()
- Description copied from class: Option
- Does this Option exist?
 
- 
- Specified by:
- isSomein class- Option<X>
 
- 
 
inner
public X inner()
- Description copied from class: Option
- Get the inner instance that this Option contains
 
- 
- Specified by:
- innerin class- Option<X>
 
- 
 
apply
public <Y> Option<Y> apply(List.Map<X,Y> m)
- Description copied from class: Option
- Apply a function to the contained object in this Option if it exists
 
- 
- Specified by:
- applyin class- Option<X>
 
- 
 
equals
public boolean equals(java.lang.Object o)
- 
- Overrides:
- equalsin class- java.lang.Object
 
- 
 
toString
public java.lang.String toString()
- 
- Overrides:
- toStringin class- java.lang.Object
 
- 
 
getJust
public X getJust()
-