Clownfish::Boolean - Boolean type.
use Clownfish::Boolean qw( $true_singleton $false_singleton );
my $bool = Clownfish::Boolean->singleton($truth_value);
my $truth_value = $bool->get_value;
if ($bool->equals($true_singleton)) {
print "true\n";
}
There are only two singleton instances of this class: $true_singleton and $false_singleton which are exported on demand.
my $bool = Clownfish::Boolean->singleton($truth_value);
Return either $true_singleton or $false_singleton depending on the supplied value.
my $bool = $boolean->get_value();
Return the value of the Boolean.
my $result = $boolean->clone();
Return a clone of the object.
Clownfish::Boolean isa Clownfish::Obj.
Copyright © 2010-2015 The Apache Software Foundation, Licensed under the
Apache License, Version 2.0.
Apache Lucy, Lucy, Apache, the Apache feather logo, and the Apache Lucy project logo are trademarks of The
Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their
respective owners.