001 /* 002 * Created on Dec 10, 2004 003 * 004 */ 005 package aima.logic.propositional.parsing.ast; 006 007 import java.util.Comparator; 008 009 /** 010 * @author Ravi Mohan 011 * 012 */ 013 014 public class SymbolComparator implements Comparator { 015 016 public int compare(Object symbol1, Object symbol2) { 017 Symbol one = (Symbol) symbol1; 018 Symbol two = (Symbol) symbol2; 019 return one.getValue().compareTo(two.getValue()); 020 } 021 022 }