C# Class Anagrams.Bag

Inheritance: IComparable
Show file Open project: offby1/anagrams Class Usage Examples

Public Methods

Method Description
AsString ( ) : string
Bag ( string s ) : System
CompareTo ( object obj ) : int
Equals ( object obj ) : bool
GetHashCode ( ) : int
empty ( ) : bool
subtract ( Bag subtrahend ) : Bag
test ( ) : void

Private Methods

Method Description
subtract_strings ( string minuend, string subtrahend ) : string
test_subtraction ( string minuend, string subtrahend, string expected_difference ) : void

Method Details

AsString() public method

public AsString ( ) : string
return string

Bag() public method

public Bag ( string s ) : System
s string
return System

CompareTo() public method

public CompareTo ( object obj ) : int
obj object
return int

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

empty() public method

public empty ( ) : bool
return bool

subtract() public method

public subtract ( Bag subtrahend ) : Bag
subtrahend Bag
return Bag

test() public static method

public static test ( ) : void
return void