Project

General

Profile

« Previous | Next » 

Revision 5e9f6d0d

Added by Andreas Müller almost 16 years ago

View differences:

cdmlib-commons/src/main/java/eu/etaxonomy/cdm/common/CdmUtils.java
166 166
		return false;
167 167
	}
168 168
	
169
	static public boolean isNumeric(String string){
170
		if (string == null){
171
			return false;
172
		}
173
		try {
174
			Double.valueOf(string);
175
			return true;
176
		} catch (NumberFormatException e) {
177
			return false;
178
		}
179
		
180
	}
169 181
	
170 182
}

Also available in: Unified diff