org.ow2.util.pool.impl.enhanced.impl.clue.basiccluemanager
Class BasicClueManager<E,C>
java.lang.Object
org.ow2.util.pool.impl.enhanced.impl.clue.basiccluemanager.BasicClueManager<E,C>
- Type Parameters:
E - pool item typeC - clue type
- All Implemented Interfaces:
- IClueManager<E,C>
public class BasicClueManager<E,C>
- extends java.lang.Object
- implements IClueManager<E,C>
- Author:
- Gael Lalire
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicClueManager
public BasicClueManager(IClueAccessor<E,C> clueAccessor)
- Less restriction constructor.
Allow both reset and share of clue.
BasicClueManager
public BasicClueManager(IClueAccessor<E,C> clueAccessor,
boolean clueShareable,
boolean clueResetable)
tryMatch
public boolean tryMatch(E item,
C clue)
- Specified by:
tryMatch in interface IClueManager<E,C>
- Parameters:
item - the itemclue - the clue
- Returns:
- true if item clue matches clue
unMatch
public void unMatch(E item)
- Description copied from interface:
IClueManager
- Undo match.
- Specified by:
unMatch in interface IClueManager<E,C>
- Parameters:
item - the item
Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.