meshi.symmetryComplex.utils
Class GJFilters.ResidueRangeFilter

java.lang.Object
  extended by meshi.symmetryComplex.utils.GJFilters.ResidueRangeFilter
All Implemented Interfaces:
Filter
Enclosing class:
GJFilters

public static class GJFilters.ResidueRangeFilter
extends java.lang.Object
implements Filter

Accepts residues and atoms whose residue numbers are within the ranges given in the constructor. Passing valid arguments to the constructors is not checked and is within the user's responsibility. throws ClassCastException if an object of a different type is checked for acception.


Field Summary
 int[][] ranges
           
 
Constructor Summary
GJFilters.ResidueRangeFilter(int[] flatRanges)
           
GJFilters.ResidueRangeFilter(int[][] ranges)
           
GJFilters.ResidueRangeFilter(int from, int to)
           
 
Method Summary
 boolean accept(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ranges

public final int[][] ranges
Constructor Detail

GJFilters.ResidueRangeFilter

public GJFilters.ResidueRangeFilter(int[][] ranges)

GJFilters.ResidueRangeFilter

public GJFilters.ResidueRangeFilter(int[] flatRanges)

GJFilters.ResidueRangeFilter

public GJFilters.ResidueRangeFilter(int from,
                                    int to)
Method Detail

accept

public boolean accept(java.lang.Object obj)
Specified by:
accept in interface Filter