21 Java interoperability

 

The functions and macros in this chapter are predominantly related to Java interoperability (or simply "interop"), the part of the standard library that sits closer to the Java runtime. Despite dealing with a state-oriented world, Clojure offers a functional syntax that is concise and readable. The following is a summary of what is described in the chapter:

21.1 ".", ".." and doto

21.2 new

21.3 try, catch, finally and throw

21.4 ex-info and ex-data

21.5 bean

21.6 reflect and type-reflect

21.7 Java Arrays

21.7.1 make-array

21.7.2 object-array and other typed initializers

21.7.3 to-array, into-array, to-array-2d

21.7.4 aget, aset, alength and aclone

21.7.5 amap and areduce

21.7.6 aset-int and other types setters

21.7.7 ints and other typed array casting