@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TileSources other = (TileSources) obj;
		if(other.sources == null && sources == null){
			return true;
		}
		if(other.sources == null || sources == null){
			return false;
		}
		Arrays.sort(other.sources);
		Arrays.sort(sources);
		for(int i=0; i< sources.length; i++){
			if(sources[i] != other.sources[i]){
				return false;
			}
		}
		return true;
	}