Clover icon

sunshower-sdk

  1. Project Clover database Wed Apr 4 2018 21:39:43 UTC
  2. Package io.sunshower.sdk.lang

File BooleanElement.java

 

Coverage histogram

../../../../img/srcFileCovDistChart0.png
34% of files have more coverage

Code metrics

2
2
3
1
24
16
4
2
0.67
3
1.33

Classes

Class Line # Actions
BooleanElement 9 2 4
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    package io.sunshower.sdk.lang;
2   
3    import io.sunshower.sdk.v1.model.core.element.Value;
4   
5    import javax.xml.bind.annotation.XmlRootElement;
6    import javax.xml.bind.annotation.XmlTransient;
7   
8    @XmlRootElement(name = "boolean")
 
9    public class BooleanElement extends Value<BooleanElement, Boolean> {
10   
11    @XmlTransient public static final transient BooleanElement True = new BooleanElement(true);
12   
13    @XmlTransient public static final transient BooleanElement False = new BooleanElement(false);
14   
 
15  0 toggle protected BooleanElement() {}
16   
 
17  0 toggle public BooleanElement(Boolean b) {
18  0 super(BooleanElement.class, b);
19    }
20   
 
21  0 toggle public static BooleanElement valueOf(boolean v) {
22  0 return v ? True : False;
23    }
24    }