Examples of FloatIterator


Examples of com.gs.collections.api.iterator.FloatIterator

            return max;
        }

        public float min()
        {
            FloatIterator floatIterator = this.floatIterator();
            float min = floatIterator.next();
            while (floatIterator.hasNext())
            {
                min = (float) Math.min(min, floatIterator.next());
            }
            return min;
        }
View Full Code Here

Examples of it.unimi.dsi.fastutil.floats.FloatIterator

    @Override
    public DictionaryPage createDictionaryPage() {
      if (lastUsedDictionarySize > 0) {
        // return a dictionary only if we actually used it
        PlainValuesWriter dictionaryEncoder = new PlainValuesWriter(lastUsedDictionaryByteSize);
        FloatIterator floatIterator = floatDictionaryContent.keySet().iterator();
        // write only the part of the dict that we used
        for (int i = 0; i < lastUsedDictionarySize; i++) {
          dictionaryEncoder.writeFloat(floatIterator.nextFloat());
        }
        return new DictionaryPage(dictionaryEncoder.getBytes(), lastUsedDictionarySize, PLAIN_DICTIONARY);
      }
      return plainValuesWriter.createDictionaryPage();
    }
View Full Code Here

Examples of org.apache.commons.collections.primitives.FloatIterator

            if(this == that) {
                return true;
            } else if(this.size() != that.size()) {
                return false;           
            } else {
                FloatIterator thisiter = iterator();
                FloatIterator thatiter = that.iterator();
                while(thisiter.hasNext()) {
                    if(thisiter.next() != thatiter.next()) {
                        return false;
                    }
                }
                return true;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.