タイトルがルー語みたい(´・ω・`)
今後もハマりそうなのでメモ
使用したいのはこいつ↓
http://docs.oracle.com/javase/jp/7/api/java/nio/channels/FileChannel.MapMode.html
FileChannel.MapMode.PRIVATE
前提
xxx.clj
(ns xxx-clj.core
(:import [java.nio.channels FileChannel]))
ダメパティーン
FileChannel/MapMode/PRIVATE
. (FileChannel/MapMode) PRIVATE`
イケるパティーン
java.nio.channels.FileChannel$MapMode/PRIVATE
こうすれば短く書ける
xxx.clj
(ns xxx-clj.core
(:import [java.nio.channels FileChannel$MapMode]))
(FileChannel$MapMode/PRIVATE)
終わりに
クラスファイルが「親クラス$子クラス.class」になっていることを知っていれば
躓かないんでしょうね。