org.grinvin.invariants.values

Class BooleanValue

Implemented Interfaces:
InvariantValue

public class BooleanValue
extends AbstractInvariantValue

Invariant type which allows boolean values. Identified by the string boolean.

Constructor Summary

BooleanValue(boolean value, InvariantComputer computer)
Create an object of this type with the given boolean value.

Method Summary

boolean
getValue()
String
toText()

Methods inherited from class org.grinvin.invariants.values.AbstractInvariantValue

String toString, getComputerId, getComputerVersion, getInvariant, getType, toText

Constructor Details

BooleanValue

public BooleanValue(boolean value,
                    InvariantComputer computer)
Create an object of this type with the given boolean value.

Method Details

getValue

public boolean getValue()

toText

public String toText()
Specified by:
toText in interface InvariantValue
Overrides:
toText in interface AbstractInvariantValue