Package jadex.bridge.service.search
Class ServiceIdFilter
- java.lang.Object
-
- jadex.bridge.service.search.ServiceIdFilter
-
- All Implemented Interfaces:
IAsyncFilter
public class ServiceIdFilter extends java.lang.Object implements IAsyncFilter
Filter for service ids.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jadex.commons.IAsyncFilter
IAsyncFilter.AlwaysFilter<E>, IAsyncFilter.NeverFilter<E>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ObjectsidThe service id.-
Fields inherited from interface jadex.commons.IAsyncFilter
ALWAYS, NEVER
-
-
Constructor Summary
Constructors Constructor Description ServiceIdFilter()Create a new filter.ServiceIdFilter(java.lang.Object sid)Create a new filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Test if an object is equal to this.IFuture<java.lang.Boolean>filter(java.lang.Object obj)Test if service is a proxy.java.lang.ObjectgetId()Get the id.inthashCode()Get the hashcode.voidsetId(java.lang.Object sid)Set the id.
-
-
-
Method Detail
-
getId
public java.lang.Object getId()
Get the id.- Returns:
- the id.
-
setId
public void setId(java.lang.Object sid)
Set the id.- Parameters:
id- The id to set.
-
filter
public IFuture<java.lang.Boolean> filter(java.lang.Object obj)
Test if service is a proxy.- Specified by:
filterin interfaceIAsyncFilter- Returns:
- True, if passes the filter.
-
hashCode
public int hashCode()
Get the hashcode.- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Test if an object is equal to this.- Overrides:
equalsin classjava.lang.Object
-
-