it.unimi.dsi.fastutil.ints.Int2BooleanMap Java Examples
The following examples show how to use
it.unimi.dsi.fastutil.ints.Int2BooleanMap.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PrimitiveMaps.java From tutorials with MIT License | 5 votes |
private static void fastutilMap() { Int2BooleanMap int2BooleanMap = new Int2BooleanOpenHashMap(); int2BooleanMap.put(1, true); int2BooleanMap.put(7, false); int2BooleanMap.put(4, true); boolean value = int2BooleanMap.get(1); Int2BooleanSortedMap int2BooleanSorted = Int2BooleanSortedMaps.EMPTY_MAP; }
Example #2
Source File: BlockStateValues.java From Geyser with MIT License | 2 votes |
/** * Get the Int2BooleanMap showing if a piston block state is extended or not. * @return the Int2BooleanMap of piston extensions. */ public static Int2BooleanMap getPistonValues() { return PISTON_VALUES; }