The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

equals

  Usage    - $map->equals($another_subset_def_map)
  Returns  - true or false
  Args     - the set (OBO::Util::SubsetDefMap) to compare with
  Function - tells whether this set is equal to the given one
  

NAME

OBO::Util::SubsetDefMap - A Map implementation of a subset definition.

SYNOPSIS

use OBO::Core::SubsetDef;

use OBO::Util::SubsetDefMap;

use strict;

my $my_set = OBO::Util::SubsetDefMap->new();

my @arr = $my_set->get_set();

my $n1 = OBO::Core::SubsetDef->new();

my $n2 = OBO::Core::SubsetDef->new();

my $n3 = OBO::Core::SubsetDef->new();

$n1->name("GO_SLIM");

$n2->name("APO_SLIM");

$n3->name("SO_SLIM");

$n1->description("GO terms");

$n2->description("APO terms");

$n3->description("SO terms");

$my_set->add($n1);

$my_set->add($n2);

$my_set->add($n3);

$my_set->remove($n1);

$my_set->add($n1);

$my_set->remove($n1);

DESCRIPTION

A map (OBO::Util::Map) of subset definitions (OBO::Core::SubsetDef) where:

 key   = subset name

 value = subset definition itself 

AUTHOR

Erick Antezana, <erick.antezana -@- gmail.com>

COPYRIGHT AND LICENSE

Copyright (c) 2006-2015 by Erick Antezana. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.