Package krati.core.array.entry

Examples of krati.core.array.entry.EntryValueInt


        for(int run = 1; run <= 10; run++) {
            File file = new File(TEST_OUTPUT_DIR, "entry_test" + run + ".dat");
            Entry<EntryValueInt> entry = new SimpleEntry<EntryValueInt>(new EntryValueIntFactory(), 1000);
           
            for(int i = 0; i < 1000; i++) {
                entry.add(new EntryValueInt(i, random.nextInt(50000), i));
            }
            entry.save(file);
           
            Entry<EntryValueInt> entryRead = new SimpleEntry<EntryValueInt>(new EntryValueIntFactory(), 1000);
            entryRead.load(file);
View Full Code Here


        EntryValueIntFactory valFactory = new EntryValueIntFactory();
       
        c = 0;
        Entry<EntryValueInt> e1 = new SimpleEntry<EntryValueInt>(valFactory, 10);
        for (int i = 9; i >= 0; i--) {
            e1.add(new EntryValueInt(i, c, c++));
        }
       
        c = 0;
        Entry<EntryValueInt> e2 = new SimpleEntry<EntryValueInt>(valFactory, 10);
        for (int i = 19; i >= 10; i--) {
            e2.add(new EntryValueInt(i, c, c++));
        }
       
        @SuppressWarnings("unchecked")
        Entry<EntryValueInt>[] entries = new Entry[] {e1, e2};
        EntryValueInt[] values = EntryUtility.sortEntriesToValues(entries);
View Full Code Here

TOP

Related Classes of krati.core.array.entry.EntryValueInt

Copyright © 2018 www.massapicom. 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.