001    // GraphLab Project: http://graphlab.sharif.edu
002    // Copyright (C) 2008 Mathematical Science Department of Sharif University of Technology
003    // Distributed under the terms of the GNU General Public License (GPL): http://www.gnu.org/licenses/
004    package graphlab.platform.lang;
005    
006    /**
007     * The basic validator, used in attributes that needs to be validated every time they set.
008     *
009     * @see graphlab.platform.lang.BoundedInteger
010     * @see graphlab.platform.lang.ArrayX
011     * @author azin azadi
012     */
013    public interface Validator<T> {
014        public boolean isValid(T x);
015    }