EMMA Coverage Report (generated Sat Dec 08 18:09:21 GMT 2007)
[all classes][uk.co.zonetora.fj.util]

COVERAGE SUMMARY FOR SOURCE FILE [Nothing.java]

nameclass, %method, %block, %line, %
Nothing.java100% (1/1)33%  (2/6)38%  (5/13)33%  (2/6)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class Nothing100% (1/1)33%  (2/6)38%  (5/13)33%  (2/6)
fromJust (): Object 0%   (0/1)0%   (0/2)0%   (0/1)
fromMaybe (Object): Object 0%   (0/1)0%   (0/2)0%   (0/1)
isJust (): boolean 0%   (0/1)0%   (0/2)0%   (0/1)
isNothing (): boolean 0%   (0/1)0%   (0/2)0%   (0/1)
Nothing (): void 100% (1/1)100% (3/3)100% (1/1)
maybe (Object, Arrow): Object 100% (1/1)100% (2/2)100% (1/1)

1/*
2 * Created on 23 Oct 2007
3 */
4package uk.co.zonetora.fj.util;
5 
6public class Nothing<T> implements Maybe<T> {
7 
8    public T fromJust() {
9        return null;
10    }
11 
12    public boolean isJust() {
13        return false;
14    }
15 
16    public boolean isNothing() {
17        return true;
18    }
19 
20    public T fromMaybe(T defaultValue) {
21        return defaultValue;
22    }
23 
24    public <S> S maybe(S defaultValue, Arrow<T, S> code) {
25        return defaultValue;
26    }
27 
28}

[all classes][uk.co.zonetora.fj.util]
EMMA 2.0.5312 (C) Vladimir Roubtsov