root / middleware / src / com / gonnatrak / middleware / util / BooleanHelper.java @ 1

View | Annotate | Download

1
/**
2
 * Created by Andrey Khalzov
3
 * 12.07.2008 14:41:38
4
 */
5
package com.gonnatrak.middleware.util;
6
7
public class BooleanHelper {
8
    public static boolean valueOf(Boolean value) {
9
        return value != null && value;
10
    }
11
12
    public static boolean valueOf(String value) {
13
        return StringHelper.isAlmostEmpty(value) ? false : Boolean.valueOf(value);
14
    }
15
}