Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2005-2008 Whirlwind Match Limited. All rights reserved. This is open source software; you can use, redistribute and/or modify it under the terms of the Open Software Licence v 3.0 as published by the Open Source Initiative. You should have received a copy of the Open Software Licence along with this application. if not, contact the Open Source Initiative ( /
package org.fuzzydb.attrs.layout;
	public static synchronized FloatRangePreferenceCodec getInstance() {
		if ( == null) {
		return ;
	public IAttribute getDecoded(LayoutAttrMap<IAttributemapint attrId) {
		// FIXME: Need a way to deal with missing attribute - probably something like
		int index = map.getIndexQuick(attrId);
		if (!map.hasAttribute(attrId)){
			return null;
		FloatRangePreference attr = new FloatRangePreferenceattrId, 0f, 0f, 0f );
		return attr;
	public static EcefVector getValue(ByteArray bytesint index) {
		throw new UnsupportedOperationException(); // Need to work out what we need
		// might be able to do same for all IDimensions
//		return bytes.getFloat(index + FRP_VALUE_OFFSET);
New to GrepCode? Check out our FAQ X