com.aelitis.azureus.core.subs.impl
Class SubscriptionResultFilterImpl

java.lang.Object
  extended by com.aelitis.azureus.core.subs.impl.SubscriptionResultFilterImpl
All Implemented Interfaces:
SubscriptionResultFilter

public class SubscriptionResultFilterImpl
extends Object
implements SubscriptionResultFilter

Copyright (C) Azureus Software, Inc, All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


Constructor Summary
SubscriptionResultFilterImpl(SubscriptionImpl _subs, Map filters)
           
 
Method Summary
 Result[] filter(Result[] results)
           
 long getMaxSize()
           
 long getMinSze()
           
 String getString()
           
 String[] getWithoutWords()
           
 String[] getWithWords()
           
 void update(String[] with_words, String[] without_words, long min_size, long max_size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionResultFilterImpl

public SubscriptionResultFilterImpl(SubscriptionImpl _subs,
                                    Map filters)
Method Detail

getMinSze

public long getMinSze()
Specified by:
getMinSze in interface SubscriptionResultFilter

getMaxSize

public long getMaxSize()
Specified by:
getMaxSize in interface SubscriptionResultFilter

getWithWords

public String[] getWithWords()
Specified by:
getWithWords in interface SubscriptionResultFilter

getWithoutWords

public String[] getWithoutWords()
Specified by:
getWithoutWords in interface SubscriptionResultFilter

update

public void update(String[] with_words,
                   String[] without_words,
                   long min_size,
                   long max_size)
            throws SubscriptionException
Specified by:
update in interface SubscriptionResultFilter
Throws:
SubscriptionException

getString

public String getString()

filter

public Result[] filter(Result[] results)