Query: class::trait::lib::tequality
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Class::Trait::Lib::TEquality(3pm) User Contributed Perl Documentation Class::Trait::Lib::TEquality(3pm)NAMETEquality - Trait for adding equality testing to your objectDESCRIPTIONTEquality adds a number of equality testing features, including type-equality as well as object instance equality.REQUIRESequalTo ($left, $right) The "equalTo" method is expected to return either true if its two arguments are equal (by whatever standards your devise), or false if they are not.OVERLOADS== !=PROVIDESnotEqualTo ($left, $right) This is the inverse of "equalTo". isSameTypeAs ($left, $right) This will determine type equality, meaning it will determine if both arguements are derived from the same type. isExactly ($left, $right) This will attempt to discern whether or not the two arguments given are the same object. It even takes into account the possibility that the objects might also have utilized the TPrintable trait, and so works around that automatic stringification.AUTHORStevan Little <stevan@iinteractive.com>COPYRIGHT AND LICENSECopyright 2004, 2005 by Infinity Interactive, Inc. <http://www.iinteractive.com> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.0 2010-04-25 Class::Trait::Lib::TEquality(3pm)
Similar Topics in the Unix Linux Community |
---|
Missing functions HELP! |
Help with shell script |