org.hd.d.pg2k.webSvr.exhibit
Class BuiltInFilters.filtByEstdLocationCentre

java.lang.Object
  extended by org.hd.d.pg2k.webSvr.exhibit.BuiltInFilters.filtByEstdLocationCentre
All Implemented Interfaces:
java.io.Serializable, AllExhibitProperties.AEPFilter, ExprIF, FilterIF
Enclosing class:
BuiltInFilters

public static final class BuiltInFilters.filtByEstdLocationCentre
extends java.lang.Object
implements FilterIF

Accepts an that has an Estd location within the target area; possibly within the specified area.

See Also:
Serialized Form

Field Summary
private  Location.Estd area
          Particular location to filter by.
private static long serialVersionUID
          Unique serial ID.
 
Constructor Summary
BuiltInFilters.filtByEstdLocationCentre(Location.Estd filterArea)
          Takes area and bounds to filter for; if null any Estd location is acceptable.
BuiltInFilters.filtByEstdLocationCentre(java.lang.String[] args)
          Takes zero or one arguments; the (optional) area and bounds to filter else any Estd location is acceptable.
 
Method Summary
 boolean accept(AllExhibitProperties aep, Name.ExhibitFull exhibitName)
          Returns true if the exhibit (specified by full name) should be accepted.
 boolean equals(java.lang.Object obj)
          Filters are equal if area objects are (or are both null).
 int hashCode()
          Filter has hashcode of its area; 0 if none.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Unique serial ID.

See Also:
Constant Field Values

area

private final Location.Estd area
Particular location to filter by. If non-null, item must fall within the area delimited by this location to be considered.

Constructor Detail

BuiltInFilters.filtByEstdLocationCentre

public BuiltInFilters.filtByEstdLocationCentre(java.lang.String[] args)
Takes zero or one arguments; the (optional) area and bounds to filter else any Estd location is acceptable.


BuiltInFilters.filtByEstdLocationCentre

public BuiltInFilters.filtByEstdLocationCentre(Location.Estd filterArea)
Takes area and bounds to filter for; if null any Estd location is acceptable.

Method Detail

accept

public boolean accept(AllExhibitProperties aep,
                      Name.ExhibitFull exhibitName)
Description copied from interface: FilterIF
Returns true if the exhibit (specified by full name) should be accepted.

Specified by:
accept in interface AllExhibitProperties.AEPFilter
Specified by:
accept in interface FilterIF

equals

public boolean equals(java.lang.Object obj)
Filters are equal if area objects are (or are both null).

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Filter has hashcode of its area; 0 if none.

Overrides:
hashCode in class java.lang.Object

DHD Multimedia Gallery V1.60.69

Copyright (c) 1996-2012, Damon Hart-Davis. All rights reserved.