public long getFilterValue() {
		String text = getText();
		long longVal;

		if (StringUtils.isBlank(text)) {
			return maxValue;
		}

		try {
			if (text.startsWith("0x")) {
				text = text.substring("0x".length());
				longVal = Long.parseUnsignedLong(text, 16);
			}

			else {
				longVal = Long.parseLong(text);
			}
		}

		catch (NumberFormatException e) {
			// This situation is not expected because the user is 
			// restricted to only entering digits.
			return maxValue;
		}

		return longVal;
	}
Extends {@link IntegerTextField} to allow use as a range filter in the {@link ScalarSearchPlugin}. 
<p>
Specifically this provides the following:
<ul>
<li>Ability to specify if this is a min/max range field</li>
<li>Allows hex input of the form "0x...." for hex values</li>
</ul>
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/scalartable/RangeFilterTextField.java