类it.unimi.dsi.fastutil.ints.Int2BooleanMap源码实例Demo

下面列出了怎么用it.unimi.dsi.fastutil.ints.Int2BooleanMap的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: tutorials   文件: PrimitiveMaps.java
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;
}
 
源代码2 项目: Geyser   文件: BlockStateValues.java
/**
 * 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;
}
 
 类方法
 同包方法