EMMA Coverage Report (generated Sun Aug 17 11:20:34 PDT 2014)
[all classes][net.digitaltsunami.tmeter]

COVERAGE SUMMARY FOR SOURCE FILE [TimerLogType.java]

nameclass, %method, %block, %line, %
TimerLogType.java100% (1/1)80%  (4/5)91%  (53/58)98%  (4.9/5)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class TimerLogType100% (1/1)80%  (4/5)91%  (53/58)98%  (4.9/5)
valueOf (String): TimerLogType 0%   (0/1)0%   (0/5)0%   (0/1)
<static initializer> 100% (1/1)100% (34/34)100% (4/4)
TimerLogType (String, int): void 100% (1/1)100% (5/5)100% (1/1)
isLoggingEnabled (): boolean 100% (1/1)100% (10/10)100% (1/1)
values (): TimerLogType [] 100% (1/1)100% (4/4)100% (1/1)

1/* __copyright_begin__
2   Copyright 2011 Dan Hagberg
3 
4   Licensed under the Apache License, Version 2.0 (the "License");
5   you may not use this file except in compliance with the License.
6   You may obtain a copy of the License at
7 
8       http://www.apache.org/licenses/LICENSE-2.0
9 
10   Unless required by applicable law or agreed to in writing, software
11   distributed under the License is distributed on an "AS IS" BASIS,
12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   See the License for the specific language governing permissions and
14   limitations under the License.
15__copyright_end__ */
16package net.digitaltsunami.tmeter;
17 
18/**
19 * Used to indicate to {@link Timer} what processing should be completed upon
20 * the timer being stopped.
21 * 
22 * @author dhagberg
23 * 
24 */
25public enum TimerLogType {
26    /**
27     * Do not log
28     */
29    NONE,
30    /**
31     * Log in readable text format
32     */
33    TEXT,
34    /**
35     * Log as comma separated values.
36     */
37    CSV;
38 
39    public boolean isLoggingEnabled() {
40        return this == TEXT || this == CSV;
41    }
42}

[all classes][net.digitaltsunami.tmeter]
EMMA 2.1.5320 (stable) (C) Vladimir Roubtsov