View Javadoc

1   package cz.cuni.amis.utils;
2   
3   public class SafeEquals {
4   	
5   	public static boolean equals(Object o1, Object o2) {		
6   		if (o1 == null) {
7   			return o2 == null;
8   		} else {
9   			return o1.equals(o2);
10  		}		
11  	}
12  
13  }