org.vizzini.ui.ai.logic
Class FilterWrapper

java.lang.Object
  extended by org.vizzini.ui.ai.logic.FilterWrapper
All Implemented Interfaces:
Comparable

public class FilterWrapper
extends Object
implements Comparable

Provides a wrapper for properties in the logic system. Wrappers are used to provide a proper display string to the user interface.

Since:
v0.2
Version:
v0.2
Author:
Jeffrey M. Thompson

Constructor Summary
protected FilterWrapper(IFilter filter)
          Construct this object with the given parameter.
 
Method Summary
 int compareTo(Object object)
          Return -1, 0, or 1 if this is less than, equal to, or greater than the given object.
 boolean equals(Object object)
          Return true if this equals the given object.
 IFilter getFilter()
          Return the wrapped property name.
 String toString()
          Return a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilterWrapper

protected FilterWrapper(IFilter filter)
Construct this object with the given parameter.

Parameters:
filter - Filter. (required)
Since:
v0.2
Method Detail

compareTo

public int compareTo(Object object)
Return -1, 0, or 1 if this is less than, equal to, or greater than the given object.

Specified by:
compareTo in interface Comparable
Parameters:
object - Object to compare.
Since:
v0.2

equals

public boolean equals(Object object)
Return true if this equals the given object.

Overrides:
equals in class Object
Parameters:
object - Object to compare.
Since:
v0.2

getFilter

public IFilter getFilter()
Return the wrapped property name.

Since:
v0.2

toString

public String toString()
Return a string representation of this object.

Overrides:
toString in class Object
Since:
v0.2


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02