Feeds:
Posts
Comments

New Java 8 APIs

eightThese are the new Java 8 (1.8.0) classes and methods based on their Javadocs.

  1. com.sun.javadoc.AnnotatedType
  2. com.sun.javadoc.ExecutableMemberDoc.receiverType()
  3. com.sun.javadoc.Type.asAnnotatedType()
  4. com.sun.javadoc.Type.getElementType()
  5. com.sun.security.jgss.ExtendedGSSCredential
  6. com.sun.source.doctree.AttributeTree
  7. com.sun.source.doctree.AuthorTree
  8. com.sun.source.doctree.BlockTagTree
  9. com.sun.source.doctree.CommentTree
  10. com.sun.source.doctree.DeprecatedTree
  11. com.sun.source.doctree.DocCommentTree
  12. com.sun.source.doctree.DocRootTree
  13. com.sun.source.doctree.DocTree
  14. com.sun.source.doctree.DocTreeVisitor
  15. com.sun.source.doctree.EndElementTree
  16. com.sun.source.doctree.EntityTree
  17. com.sun.source.doctree.ErroneousTree
  18. com.sun.source.doctree.IdentifierTree
  19. com.sun.source.doctree.InheritDocTree
  20. com.sun.source.doctree.InlineTagTree
  21. com.sun.source.doctree.LinkTree
  22. com.sun.source.doctree.LiteralTree
  23. com.sun.source.doctree.ParamTree
  24. com.sun.source.doctree.ReferenceTree
  25. com.sun.source.doctree.ReturnTree
  26. com.sun.source.doctree.SeeTree
  27. com.sun.source.doctree.SerialDataTree
  28. com.sun.source.doctree.SerialFieldTree
  29. com.sun.source.doctree.SerialTree
  30. com.sun.source.doctree.SinceTree
  31. com.sun.source.doctree.StartElementTree
  32. com.sun.source.doctree.TextTree
  33. com.sun.source.doctree.ThrowsTree
  34. com.sun.source.doctree.UnknownBlockTagTree
  35. com.sun.source.doctree.UnknownInlineTagTree
  36. com.sun.source.doctree.ValueTree
  37. com.sun.source.doctree.VersionTree
  38. com.sun.source.tree.AnnotatedTypeTree
  39. com.sun.source.tree.IntersectionTypeTree
  40. com.sun.source.tree.MemberReferenceTree
  41. com.sun.source.tree.MethodTree.getReceiverParameter()
  42. com.sun.source.tree.TypeParameterTree.getAnnotations()
  43. com.sun.source.util.DocSourcePositions
  44. com.sun.source.util.DocTreePath
  45. com.sun.source.util.DocTreePathScanner
  46. com.sun.source.util.DocTrees
  47. com.sun.source.util.DocTreeScanner
  48. com.sun.source.util.JavacTask.instance(javax.annotation.processing.ProcessingEnvironment)
  49. com.sun.source.util.JavacTask.addTaskListener(com.sun.source.util.TaskListener)
  50. com.sun.source.util.JavacTask.removeTaskListener(com.sun.source.util.TaskListener)
  51. com.sun.source.util.Plugin
  52. com.sun.source.util.SimpleDocTreeVisitor
  53. java.awt.KeyboardFocusManager.clearFocusOwner()
  54. java.io.BufferedReader.lines()
  55. java.io.UncheckedIOException
  56. java.lang.Boolean.hashCode(boolean)
  57. java.lang.Boolean.logicalAnd(boolean, boolean)
  58. java.lang.Boolean.logicalOr(boolean, boolean)
  59. java.lang.Boolean.logicalXor(boolean, boolean)
  60. java.lang.Byte.hashCode(byte)
  61. java.lang.Byte.toUnsignedInt(byte)
  62. java.lang.Byte.toUnsignedLong(byte)
  63. java.lang.Character.hashCode(char)
  64. java.lang.CharSequence.chars()
  65. java.lang.CharSequence.codePoints()
  66. java.lang.Class.toGenericString()
  67. java.lang.Class.getTypeName()
  68. java.lang.Class.getAnnotationsByType(java.lang.Class)
  69. java.lang.Class.getDeclaredAnnotation(java.lang.Class)
  70. java.lang.Class.getDeclaredAnnotationsByType(java.lang.Class)
  71. java.lang.Class.getAnnotatedSuperclass()
  72. java.lang.Class.getAnnotatedInterfaces()
  73. java.lang.Double.isFinite(double)
  74. java.lang.Double.hashCode(double)
  75. java.lang.Double.sum(double, double)
  76. java.lang.Double.max(double, double)
  77. java.lang.Double.min(double, double)
  78. java.lang.Float.isFinite(float)
  79. java.lang.Float.hashCode(float)
  80. java.lang.Float.sum(float, float)
  81. java.lang.Float.max(float, float)
  82. java.lang.Float.min(float, float)
  83. java.lang.FunctionalInterface
  84. java.lang.Integer.toUnsignedString(int, int)
  85. java.lang.Integer.toUnsignedString(int)
  86. java.lang.Integer.parseUnsignedInt(java.lang.String, int)
  87. java.lang.Integer.parseUnsignedInt(java.lang.String)
  88. java.lang.Integer.hashCode(int)
  89. java.lang.Integer.compareUnsigned(int, int)
  90. java.lang.Integer.toUnsignedLong(int)
  91. java.lang.Integer.divideUnsigned(int, int)
  92. java.lang.Integer.remainderUnsigned(int, int)
  93. java.lang.Integer.sum(int, int)
  94. java.lang.Integer.max(int, int)
  95. java.lang.Integer.min(int, int)
  96. java.lang.Iterable.forEach(java.util.function.Consumer)
  97. java.lang.Iterable.spliterator()
  98. java.lang.Long.toUnsignedString(long, int)
  99. java.lang.Long.toUnsignedString(long)
  100. java.lang.Long.parseUnsignedLong(java.lang.String, int)
  101. java.lang.Long.parseUnsignedLong(java.lang.String)
  102. java.lang.Long.hashCode(long)
  103. java.lang.Long.compareUnsigned(long, long)
  104. java.lang.Long.divideUnsigned(long, long)
  105. java.lang.Long.remainderUnsigned(long, long)
  106. java.lang.Long.sum(long, long)
  107. java.lang.Long.max(long, long)
  108. java.lang.Long.min(long, long)
  109. java.lang.Math.addExact(int, int)
  110. java.lang.Math.addExact(long, long)
  111. java.lang.Math.subtractExact(int, int)
  112. java.lang.Math.subtractExact(long, long)
  113. java.lang.Math.multiplyExact(int, int)
  114. java.lang.Math.multiplyExact(long, long)
  115. java.lang.Math.incrementExact(int)
  116. java.lang.Math.incrementExact(long)
  117. java.lang.Math.decrementExact(int)
  118. java.lang.Math.decrementExact(long)
  119. java.lang.Math.negateExact(int)
  120. java.lang.Math.negateExact(long)
  121. java.lang.Math.toIntExact(long)
  122. java.lang.Math.floorDiv(int, int)
  123. java.lang.Math.floorDiv(long, long)
  124. java.lang.Math.floorMod(int, int)
  125. java.lang.Math.floorMod(long, long)
  126. java.lang.Math.nextDown(double)
  127. java.lang.Math.nextDown(float)
  128. java.lang.Package.getAnnotationsByType(java.lang.Class)
  129. java.lang.Package.getDeclaredAnnotation(java.lang.Class)
  130. java.lang.Package.getDeclaredAnnotationsByType(java.lang.Class)
  131. java.lang.Process.waitFor(long, java.util.concurrent.TimeUnit)
  132. java.lang.Process.destroyForcibly()
  133. java.lang.Process.isAlive()
  134. java.lang.Short.hashCode(short)
  135. java.lang.Short.toUnsignedInt(short)
  136. java.lang.Short.toUnsignedLong(short)
  137. java.lang.StrictMath.addExact(int, int)
  138. java.lang.StrictMath.addExact(long, long)
  139. java.lang.StrictMath.subtractExact(int, int)
  140. java.lang.StrictMath.subtractExact(long, long)
  141. java.lang.StrictMath.multiplyExact(int, int)
  142. java.lang.StrictMath.multiplyExact(long, long)
  143. java.lang.StrictMath.toIntExact(long)
  144. java.lang.StrictMath.floorDiv(int, int)
  145. java.lang.StrictMath.floorDiv(long, long)
  146. java.lang.StrictMath.floorMod(int, int)
  147. java.lang.StrictMath.floorMod(long, long)
  148. java.lang.StrictMath.nextDown(double)
  149. java.lang.StrictMath.nextDown(float)
  150. java.lang.String.join(java.lang.CharSequence, java.lang.CharSequence)
  151. java.lang.String.join(java.lang.CharSequence, java.lang.Iterable)
  152. java.lang.ThreadLocal.withInitial(java.util.function.Supplier)
  153. java.lang.annotation.Native
  154. java.lang.annotation.Repeatable
  155. java.lang.invoke.MethodHandleInfo
  156. java.lang.invoke.MethodHandles.reflectAs(java.lang.Class, java.lang.invoke.MethodHandle)
  157. java.lang.invoke.MethodHandles.Lookup.revealDirect(java.lang.invoke.MethodHandle)
  158. java.lang.management.LockInfo.from(javax.management.openmbean.CompositeData)
  159. java.lang.reflect.AccessibleObject.getAnnotationsByType(java.lang.Class)
  160. java.lang.reflect.AccessibleObject.getDeclaredAnnotation(java.lang.Class)
  161. java.lang.reflect.AccessibleObject.getDeclaredAnnotationsByType(java.lang.Class)
  162. java.lang.reflect.AnnotatedArrayType
  163. java.lang.reflect.AnnotatedElement.getAnnotationsByType(java.lang.Class)
  164. java.lang.reflect.AnnotatedElement.getDeclaredAnnotation(java.lang.Class)
  165. java.lang.reflect.AnnotatedElement.getDeclaredAnnotationsByType(java.lang.Class)
  166. java.lang.reflect.AnnotatedParameterizedType
  167. java.lang.reflect.AnnotatedType
  168. java.lang.reflect.AnnotatedTypeVariable
  169. java.lang.reflect.AnnotatedWildcardType
  170. java.lang.reflect.Constructor.getAnnotatedReturnType()
  171. java.lang.reflect.Constructor.getAnnotatedReceiverType()
  172. java.lang.reflect.Executable
  173. java.lang.reflect.Executable.getParameterCount()
  174. java.lang.reflect.Executable.getParameters()
  175. java.lang.reflect.Executable.getAnnotationsByType(java.lang.Class)
  176. java.lang.reflect.Executable.getAnnotatedReturnType()
  177. java.lang.reflect.Executable.getAnnotatedReceiverType()
  178. java.lang.reflect.Executable.getAnnotatedParameterTypes()
  179. java.lang.reflect.Executable.getAnnotatedExceptionTypes()
  180. java.lang.reflect.Field.getAnnotationsByType(java.lang.Class)
  181. java.lang.reflect.Field.getAnnotatedType()
  182. java.lang.reflect.MalformedParametersException
  183. java.lang.reflect.Method.isDefault()
  184. java.lang.reflect.Method.getAnnotatedReturnType()
  185. java.lang.reflect.Modifier.parameterModifiers()
  186. java.lang.reflect.Parameter
  187. java.lang.reflect.Type.getTypeName()
  188. java.lang.reflect.TypeVariable.getAnnotatedBounds()
  189. java.math.BigInteger.longValueExact()
  190. java.math.BigInteger.intValueExact()
  191. java.math.BigInteger.shortValueExact()
  192. java.math.BigInteger.byteValueExact()
  193. java.net.URLPermission
  194. java.nio.file.Files.newBufferedReader(java.nio.file.Path)
  195. java.nio.file.Files.newBufferedWriter(java.nio.file.Path, java.nio.file.OpenOption)
  196. java.nio.file.Files.readAllLines(java.nio.file.Path)
  197. java.nio.file.Files.write(java.nio.file.Path, java.lang.Iterable, java.nio.file.OpenOption)
  198. java.nio.file.Files.list(java.nio.file.Path)
  199. java.nio.file.Files.walk(java.nio.file.Path, int, java.nio.file.FileVisitOption)
  200. java.nio.file.Files.walk(java.nio.file.Path, java.nio.file.FileVisitOption)
  201. java.nio.file.Files.find(java.nio.file.Path, int, java.util.function.BiPredicate, java.nio.file.FileVisitOption)
  202. java.nio.file.Files.lines(java.nio.file.Path, java.nio.charset.Charset)
  203. java.nio.file.Files.lines(java.nio.file.Path)
  204. java.nio.file.attribute.FileTime.from(java.time.Instant)
  205. java.nio.file.attribute.FileTime.toInstant()
  206. java.security.AccessController.doPrivileged(java.security.PrivilegedAction, java.security.AccessControlContext, java.security.Permission)
  207. java.security.AccessController.doPrivilegedWithCombiner(java.security.PrivilegedAction, java.security.AccessControlContext, java.security.Permission)
  208. java.security.AccessController.doPrivileged(java.security.PrivilegedExceptionAction, java.security.AccessControlContext, java.security.Permission)
  209. java.security.AccessController.doPrivilegedWithCombiner(java.security.PrivilegedExceptionAction, java.security.AccessControlContext, java.security.Permission)
  210. java.security.DomainLoadStoreParameter
  211. java.security.KeyStore.PasswordProtection.getProtectionAlgorithm()
  212. java.security.KeyStore.PasswordProtection.getProtectionParameters()
  213. java.security.KeyStore.Entry.getAttributes()
  214. java.security.KeyStore.Entry.Attribute
  215. java.security.KeyStore.PrivateKeyEntry.getAttributes()
  216. java.security.KeyStore.SecretKeyEntry.getAttributes()
  217. java.security.KeyStore.TrustedCertificateEntry.getAttributes()
  218. java.security.PKCS12Attribute
  219. java.security.Principal.implies(javax.security.auth.Subject)
  220. java.security.Provider.putIfAbsent(java.lang.Object, java.lang.Object)
  221. java.security.Provider.remove(java.lang.Object, java.lang.Object)
  222. java.security.Provider.replace(java.lang.Object, java.lang.Object, java.lang.Object)
  223. java.security.Provider.replace(java.lang.Object, java.lang.Object)
  224. java.security.Provider.replaceAll(java.util.function.BiFunction)
  225. java.security.Provider.compute(java.lang.Object, java.util.function.BiFunction)
  226. java.security.Provider.computeIfAbsent(java.lang.Object, java.util.function.Function)
  227. java.security.Provider.computeIfPresent(java.lang.Object, java.util.function.BiFunction)
  228. java.security.Provider.merge(java.lang.Object, java.lang.Object, java.util.function.BiFunction)
  229. java.security.Provider.getOrDefault(java.lang.Object, java.lang.Object)
  230. java.security.Provider.forEach(java.util.function.BiConsumer)
  231. java.security.SecureRandom.getInstanceStrong()
  232. java.security.cert.Certificate.verify(java.security.PublicKey, java.security.Provider)
  233. java.security.cert.CertPathBuilder.getRevocationChecker()
  234. java.security.cert.CertPathBuilderSpi.engineGetRevocationChecker()
  235. java.security.cert.CertPathChecker
  236. java.security.cert.CertPathValidator.getRevocationChecker()
  237. java.security.cert.CertPathValidatorSpi.engineGetRevocationChecker()
  238. java.security.cert.PKIXRevocationChecker
  239. java.security.cert.X509Certificate.verify(java.security.PublicKey, java.security.Provider)
  240. java.security.cert.X509CRL.verify(java.security.PublicKey, java.security.Provider)
  241. java.sql.BatchUpdateException.getLargeUpdateCounts()
  242. java.sql.CallableStatement.setObject(java.lang.String, java.lang.Object, java.sql.SQLType, int)
  243. java.sql.CallableStatement.setObject(java.lang.String, java.lang.Object, java.sql.SQLType)
  244. java.sql.CallableStatement.registerOutParameter(int, java.sql.SQLType)
  245. java.sql.CallableStatement.registerOutParameter(int, java.sql.SQLType, int)
  246. java.sql.CallableStatement.registerOutParameter(int, java.sql.SQLType, java.lang.String)
  247. java.sql.CallableStatement.registerOutParameter(java.lang.String, java.sql.SQLType)
  248. java.sql.CallableStatement.registerOutParameter(java.lang.String, java.sql.SQLType, int)
  249. java.sql.CallableStatement.registerOutParameter(java.lang.String, java.sql.SQLType, java.lang.String)
  250. java.sql.DatabaseMetaData.getMaxLogicalLobSize()
  251. java.sql.DatabaseMetaData.supportsRefCursors()
  252. java.sql.Date.valueOf(java.time.LocalDate)
  253. java.sql.Date.toLocalDate()
  254. java.sql.DriverAction
  255. java.sql.DriverAction.deregister()
  256. java.sql.DriverManager.registerDriver(java.sql.Driver, java.sql.DriverAction)
  257. java.sql.JDBCType
  258. java.sql.PreparedStatement.setObject(int, java.lang.Object, java.sql.SQLType, int)
  259. java.sql.PreparedStatement.setObject(int, java.lang.Object, java.sql.SQLType)
  260. java.sql.PreparedStatement.executeLargeUpdate()
  261. java.sql.ResultSet.updateObject(int, java.lang.Object, java.sql.SQLType, int)
  262. java.sql.ResultSet.updateObject(java.lang.String, java.lang.Object, java.sql.SQLType, int)
  263. java.sql.ResultSet.updateObject(int, java.lang.Object, java.sql.SQLType)
  264. java.sql.ResultSet.updateObject(java.lang.String, java.lang.Object, java.sql.SQLType)
  265. java.sql.SQLInput.readObject(java.lang.Class)
  266. java.sql.SQLOutput.writeObject(java.lang.Object, java.sql.SQLType)
  267. java.sql.SQLType
  268. java.sql.Statement.getLargeUpdateCount()
  269. java.sql.Statement.setLargeMaxRows(long)
  270. java.sql.Statement.getLargeMaxRows()
  271. java.sql.Statement.executeLargeBatch()
  272. java.sql.Statement.executeLargeUpdate(java.lang.String)
  273. java.sql.Statement.executeLargeUpdate(java.lang.String, int)
  274. java.sql.Statement.executeLargeUpdate(java.lang.String, int)
  275. java.sql.Statement.executeLargeUpdate(java.lang.String, java.lang.String)
  276. java.sql.Time.valueOf(java.time.LocalTime)
  277. java.sql.Time.toLocalTime()
  278. java.sql.Timestamp.valueOf(java.time.LocalDateTime)
  279. java.sql.Timestamp.toLocalDateTime()
  280. java.sql.Timestamp.from(java.time.Instant)
  281. java.sql.Timestamp.toInstant()
  282. java.time.Clock
  283. java.time.DateTimeException
  284. java.time.DayOfWeek
  285. java.time.Duration
  286. java.time.Instant
  287. java.time.LocalDate
  288. java.time.LocalDateTime
  289. java.time.LocalTime
  290. java.time.Month
  291. java.time.MonthDay
  292. java.time.OffsetDateTime
  293. java.time.OffsetTime
  294. java.time.Period
  295. java.time.Year
  296. java.time.YearMonth
  297. java.time.ZonedDateTime
  298. java.time.ZoneId
  299. java.time.ZoneOffset
  300. java.time.chrono.AbstractChronology
  301. java.time.chrono.ChronoLocalDate
  302. java.time.chrono.ChronoLocalDateTime
  303. java.time.chrono.Chronology
  304. java.time.chrono.ChronoPeriod
  305. java.time.chrono.ChronoZonedDateTime
  306. java.time.chrono.Era
  307. java.time.chrono.HijrahChronology
  308. java.time.chrono.HijrahDate
  309. java.time.chrono.HijrahEra
  310. java.time.chrono.IsoChronology
  311. java.time.chrono.IsoEra
  312. java.time.chrono.JapaneseChronology
  313. java.time.chrono.JapaneseDate
  314. java.time.chrono.JapaneseEra
  315. java.time.chrono.MinguoChronology
  316. java.time.chrono.MinguoDate
  317. java.time.chrono.MinguoEra
  318. java.time.chrono.ThaiBuddhistChronology
  319. java.time.chrono.ThaiBuddhistDate
  320. java.time.chrono.ThaiBuddhistEra
  321. java.time.format.DateTimeFormatter
  322. java.time.format.DateTimeFormatterBuilder
  323. java.time.format.DateTimeParseException
  324. java.time.format.DecimalStyle
  325. java.time.format.FormatStyle
  326. java.time.format.ResolverStyle
  327. java.time.format.SignStyle
  328. java.time.temporal.ChronoField
  329. java.time.temporal.ChronoUnit
  330. java.time.temporal.IsoFields
  331. java.time.temporal.JulianFields
  332. java.time.temporal.Temporal
  333. java.time.temporal.TemporalAccessor
  334. java.time.temporal.TemporalAdjuster
  335. java.time.temporal.TemporalAdjusters
  336. java.time.temporal.TemporalAmount
  337. java.time.temporal.TemporalField
  338. java.time.temporal.TemporalQueries
  339. java.time.temporal.TemporalQuery
  340. java.time.temporal.TemporalUnit
  341. java.time.temporal.UnsupportedTemporalTypeException
  342. java.time.temporal.ValueRange
  343. java.time.temporal.WeekFields
  344. java.time.zone.ZoneOffsetTransition
  345. java.time.zone.ZoneOffsetTransitionRule
  346. java.time.zone.ZoneRules
  347. java.time.zone.ZoneRulesException
  348. java.time.zone.ZoneRulesProvider
  349. java.util.ArrayDeque.spliterator()
  350. java.util.ArrayList.spliterator()
  351. java.util.Arrays.parallelSort(byte)
  352. java.util.Arrays.parallelSort(byte, int, int)
  353. java.util.Arrays.parallelSort(char)
  354. java.util.Arrays.parallelSort(char, int, int)
  355. java.util.Arrays.parallelSort(short)
  356. java.util.Arrays.parallelSort(short, int, int)
  357. java.util.Arrays.parallelSort(int)
  358. java.util.Arrays.parallelSort(int, int, int)
  359. java.util.Arrays.parallelSort(long)
  360. java.util.Arrays.parallelSort(long, int, int)
  361. java.util.Arrays.parallelSort(float)
  362. java.util.Arrays.parallelSort(float, int, int)
  363. java.util.Arrays.parallelSort(double)
  364. java.util.Arrays.parallelSort(double, int, int)
  365. java.util.Arrays.parallelSort(java.lang.Comparable)
  366. java.util.Arrays.parallelSort(java.lang.Comparable, int, int)
  367. java.util.Arrays.parallelSort(java.lang.Object, java.util.Comparator)
  368. java.util.Arrays.parallelSort(java.lang.Object, int, int, java.util.Comparator)
  369. java.util.Arrays.parallelPrefix(java.lang.Object, java.util.function.BinaryOperator)
  370. java.util.Arrays.parallelPrefix(java.lang.Object, int, int, java.util.function.BinaryOperator)
  371. java.util.Arrays.parallelPrefix(long, java.util.function.LongBinaryOperator)
  372. java.util.Arrays.parallelPrefix(long, int, int, java.util.function.LongBinaryOperator)
  373. java.util.Arrays.parallelPrefix(double, java.util.function.DoubleBinaryOperator)
  374. java.util.Arrays.parallelPrefix(double, int, int, java.util.function.DoubleBinaryOperator)
  375. java.util.Arrays.parallelPrefix(int, java.util.function.IntBinaryOperator)
  376. java.util.Arrays.parallelPrefix(int, int, int, java.util.function.IntBinaryOperator)
  377. java.util.Arrays.setAll(java.lang.Object, java.util.function.IntFunction)
  378. java.util.Arrays.parallelSetAll(java.lang.Object, java.util.function.IntFunction)
  379. java.util.Arrays.setAll(int, java.util.function.IntUnaryOperator)
  380. java.util.Arrays.parallelSetAll(int, java.util.function.IntUnaryOperator)
  381. java.util.Arrays.setAll(long, java.util.function.IntToLongFunction)
  382. java.util.Arrays.parallelSetAll(long, java.util.function.IntToLongFunction)
  383. java.util.Arrays.setAll(double, java.util.function.IntToDoubleFunction)
  384. java.util.Arrays.parallelSetAll(double, java.util.function.IntToDoubleFunction)
  385. java.util.Arrays.spliterator(java.lang.Object)
  386. java.util.Arrays.spliterator(java.lang.Object, int, int)
  387. java.util.Arrays.spliterator(int)
  388. java.util.Arrays.spliterator(int, int, int)
  389. java.util.Arrays.spliterator(long)
  390. java.util.Arrays.spliterator(long, int, int)
  391. java.util.Arrays.spliterator(double)
  392. java.util.Arrays.spliterator(double, int, int)
  393. java.util.Arrays.stream(java.lang.Object)
  394. java.util.Arrays.stream(java.lang.Object, int, int)
  395. java.util.Arrays.stream(int)
  396. java.util.Arrays.stream(int, int, int)
  397. java.util.Arrays.stream(long)
  398. java.util.Arrays.stream(long, int, int)
  399. java.util.Arrays.stream(double)
  400. java.util.Arrays.stream(double, int, int)
  401. java.util.Base64
  402. java.util.Base64.Encoder
  403. java.util.Base64.Decoder
  404. java.util.BitSet.stream()
  405. java.util.Calendar.getAvailableCalendarTypes()
  406. java.util.Calendar.getCalendarType()
  407. java.util.Calendar.toInstant()
  408. java.util.Calendar.Builder
  409. java.util.Collection.removeIf(java.util.function.Predicate)
  410. java.util.Collection.spliterator()
  411. java.util.Collection.stream()
  412. java.util.Collection.parallelStream()
  413. java.util.Collections.unmodifiableNavigableSet(java.util.NavigableSet)
  414. java.util.Collections.unmodifiableNavigableMap(java.util.NavigableMap)
  415. java.util.Collections.synchronizedNavigableSet(java.util.NavigableSet)
  416. java.util.Collections.synchronizedNavigableMap(java.util.NavigableMap)
  417. java.util.Collections.checkedQueue(java.util.Queue, java.lang.Class)
  418. java.util.Collections.checkedNavigableSet(java.util.NavigableSet, java.lang.Class)
  419. java.util.Collections.checkedNavigableMap(java.util.NavigableMap, java.lang.Class, java.lang.Class)
  420. java.util.Collections.emptySortedSet()
  421. java.util.Collections.emptyNavigableSet()
  422. java.util.Collections.emptySortedMap()
  423. java.util.Collections.emptyNavigableMap()
  424. java.util.Comparator.reversed()
  425. java.util.Comparator.thenComparing(java.util.Comparator)
  426. java.util.Comparator.thenComparing(java.util.function.Function, java.util.Comparator)
  427. java.util.Comparator.thenComparing(java.util.function.Function)
  428. java.util.Comparator.thenComparingInt(java.util.function.ToIntFunction)
  429. java.util.Comparator.thenComparingLong(java.util.function.ToLongFunction)
  430. java.util.Comparator.thenComparingDouble(java.util.function.ToDoubleFunction)
  431. java.util.Comparator.reverseOrder()
  432. java.util.Comparator.naturalOrder()
  433. java.util.Comparator.nullsFirst(java.util.Comparator)
  434. java.util.Comparator.nullsLast(java.util.Comparator)
  435. java.util.Comparator.comparing(java.util.function.Function, java.util.Comparator)
  436. java.util.Comparator.comparing(java.util.function.Function)
  437. java.util.Comparator.comparingInt(java.util.function.ToIntFunction)
  438. java.util.Comparator.comparingLong(java.util.function.ToLongFunction)
  439. java.util.Comparator.comparingDouble(java.util.function.ToDoubleFunction)
  440. java.util.Date.from(java.time.Instant)
  441. java.util.Date.toInstant()
  442. java.util.DoubleSummaryStatistics
  443. java.util.GregorianCalendar.getCalendarType()
  444. java.util.GregorianCalendar.toZonedDateTime()
  445. java.util.GregorianCalendar.from(java.time.ZonedDateTime)
  446. java.util.HashSet.spliterator()
  447. java.util.IntSummaryStatistics
  448. java.util.Iterator.forEachRemaining(java.util.function.Consumer)
  449. java.util.LinkedHashSet.spliterator()
  450. java.util.LinkedList.spliterator()
  451. java.util.List.replaceAll(java.util.function.UnaryOperator)
  452. java.util.List.sort(java.util.Comparator)
  453. java.util.List.spliterator()
  454. java.util.Locale.hasExtensions()
  455. java.util.Locale.stripExtensions()
  456. java.util.Locale.filter(java.util.List, java.util.Collection, java.util.Locale.FilteringMode)
  457. java.util.Locale.filter(java.util.List, java.util.Collection)
  458. java.util.Locale.filterTags(java.util.List, java.util.Collection, java.util.Locale.FilteringMode)
  459. java.util.Locale.filterTags(java.util.List, java.util.Collection)
  460. java.util.Locale.lookup(java.util.List, java.util.Collection)
  461. java.util.Locale.lookupTag(java.util.List, java.util.Collection)
  462. java.util.Locale.FilteringMode
  463. java.util.Locale.LanguageRange
  464. java.util.LongSummaryStatistics
  465. java.util.Map.getOrDefault(java.lang.Object, java.lang.Object)
  466. java.util.Map.forEach(java.util.function.BiConsumer)
  467. java.util.Map.replaceAll(java.util.function.BiFunction)
  468. java.util.Map.putIfAbsent(java.lang.Object, java.lang.Object)
  469. java.util.Map.remove(java.lang.Object, java.lang.Object)
  470. java.util.Map.replace(java.lang.Object, java.lang.Object, java.lang.Object)
  471. java.util.Map.replace(java.lang.Object, java.lang.Object)
  472. java.util.Map.computeIfAbsent(java.lang.Object, java.util.function.Function)
  473. java.util.Map.computeIfPresent(java.lang.Object, java.util.function.BiFunction)
  474. java.util.Map.compute(java.lang.Object, java.util.function.BiFunction)
  475. java.util.Map.merge(java.lang.Object, java.lang.Object, java.util.function.BiFunction)
  476. java.util.Map.Entry.comparingByKey()
  477. java.util.Map.Entry.comparingByValue()
  478. java.util.Map.Entry.comparingByKey(java.util.Comparator)
  479. java.util.Map.Entry.comparingByValue(java.util.Comparator)
  480. java.util.Objects.isNull(java.lang.Object)
  481. java.util.Objects.nonNull(java.lang.Object)
  482. java.util.Objects.requireNonNull(java.lang.Object, java.util.function.Supplier)
  483. java.util.Optional
  484. java.util.OptionalDouble
  485. java.util.OptionalInt
  486. java.util.OptionalLong
  487. java.util.PrimitiveIterator
  488. java.util.PrimitiveIterator.OfInt
  489. java.util.PrimitiveIterator.OfLong
  490. java.util.PrimitiveIterator.OfDouble
  491. java.util.PriorityQueue.spliterator()
  492. java.util.Random.ints(long)
  493. java.util.Random.ints()
  494. java.util.Random.ints(long, int, int)
  495. java.util.Random.ints(int, int)
  496. java.util.Random.longs(long)
  497. java.util.Random.longs()
  498. java.util.Random.longs(long, long, long)
  499. java.util.Random.longs(long, long)
  500. java.util.Random.doubles(long)
  501. java.util.Random.doubles()
  502. java.util.Random.doubles(long, double, double)
  503. java.util.Random.doubles(double, double)
  504. java.util.ResourceBundle.getBaseBundleName()
  505. java.util.Set.spliterator()
  506. java.util.SortedSet.spliterator()
  507. java.util.Spliterator
  508. java.util.Spliterator.OfPrimitive
  509. java.util.Spliterator.OfInt
  510. java.util.Spliterator.OfLong
  511. java.util.Spliterator.OfDouble
  512. java.util.Spliterators
  513. java.util.Spliterators.AbstractSpliterator
  514. java.util.Spliterators.AbstractIntSpliterator
  515. java.util.Spliterators.AbstractLongSpliterator
  516. java.util.Spliterators.AbstractDoubleSpliterator
  517. java.util.SplittableRandom
  518. java.util.StringJoiner
  519. java.util.TimeZone.getTimeZone(java.time.ZoneId)
  520. java.util.TimeZone.toZoneId()
  521. java.util.TreeSet.spliterator()
  522. java.util.Vector.spliterator()
  523. java.util.concurrent.ArrayBlockingQueue.spliterator()
  524. java.util.concurrent.CompletableFuture
  525. java.util.concurrent.CompletableFuture.AsynchronousCompletionTask
  526. java.util.concurrent.CompletionException
  527. java.util.concurrent.CompletionStage
  528. java.util.concurrent.ConcurrentHashMap.mappingCount()
  529. java.util.concurrent.ConcurrentHashMap.newKeySet()
  530. java.util.concurrent.ConcurrentHashMap.newKeySet(int)
  531. java.util.concurrent.ConcurrentHashMap.forEach(long, java.util.function.BiConsumer)
  532. java.util.concurrent.ConcurrentHashMap.forEach(long, java.util.function.BiFunction, java.util.function.Consumer)
  533. java.util.concurrent.ConcurrentHashMap.search(long, java.util.function.BiFunction)
  534. java.util.concurrent.ConcurrentHashMap.reduce(long, java.util.function.BiFunction, java.util.function.BiFunction)
  535. java.util.concurrent.ConcurrentHashMap.reduceToDouble(long, java.util.function.ToDoubleBiFunction, double, java.util.function.DoubleBinaryOperator)
  536. java.util.concurrent.ConcurrentHashMap.reduceToLong(long, java.util.function.ToLongBiFunction, long, java.util.function.LongBinaryOperator)
  537. java.util.concurrent.ConcurrentHashMap.reduceToInt(long, java.util.function.ToIntBiFunction, int, java.util.function.IntBinaryOperator)
  538. java.util.concurrent.ConcurrentHashMap.forEachKey(long, java.util.function.Consumer)
  539. java.util.concurrent.ConcurrentHashMap.forEachKey(long, java.util.function.Function, java.util.function.Consumer)
  540. java.util.concurrent.ConcurrentHashMap.searchKeys(long, java.util.function.Function)
  541. java.util.concurrent.ConcurrentHashMap.reduceKeys(long, java.util.function.BiFunction)
  542. java.util.concurrent.ConcurrentHashMap.reduceKeys(long, java.util.function.Function, java.util.function.BiFunction)
  543. java.util.concurrent.ConcurrentHashMap.reduceKeysToDouble(long, java.util.function.ToDoubleFunction, double, java.util.function.DoubleBinaryOperator)
  544. java.util.concurrent.ConcurrentHashMap.reduceKeysToLong(long, java.util.function.ToLongFunction, long, java.util.function.LongBinaryOperator)
  545. java.util.concurrent.ConcurrentHashMap.reduceKeysToInt(long, java.util.function.ToIntFunction, int, java.util.function.IntBinaryOperator)
  546. java.util.concurrent.ConcurrentHashMap.forEachValue(long, java.util.function.Consumer)
  547. java.util.concurrent.ConcurrentHashMap.forEachValue(long, java.util.function.Function, java.util.function.Consumer)
  548. java.util.concurrent.ConcurrentHashMap.searchValues(long, java.util.function.Function)
  549. java.util.concurrent.ConcurrentHashMap.reduceValues(long, java.util.function.BiFunction)
  550. java.util.concurrent.ConcurrentHashMap.reduceValues(long, java.util.function.Function, java.util.function.BiFunction)
  551. java.util.concurrent.ConcurrentHashMap.reduceValuesToDouble(long, java.util.function.ToDoubleFunction, double, java.util.function.DoubleBinaryOperator)
  552. java.util.concurrent.ConcurrentHashMap.reduceValuesToLong(long, java.util.function.ToLongFunction, long, java.util.function.LongBinaryOperator)
  553. java.util.concurrent.ConcurrentHashMap.reduceValuesToInt(long, java.util.function.ToIntFunction, int, java.util.function.IntBinaryOperator)
  554. java.util.concurrent.ConcurrentHashMap.forEachEntry(long, java.util.function.Consumer)
  555. java.util.concurrent.ConcurrentHashMap.forEachEntry(long, java.util.function.Function, java.util.function.Consumer)
  556. java.util.concurrent.ConcurrentHashMap.searchEntries(long, java.util.function.Function)
  557. java.util.concurrent.ConcurrentHashMap.reduceEntries(long, java.util.function.BiFunction)
  558. java.util.concurrent.ConcurrentHashMap.reduceEntries(long, java.util.function.Function, java.util.function.BiFunction)
  559. java.util.concurrent.ConcurrentHashMap.reduceEntriesToDouble(long, java.util.function.ToDoubleFunction, double, java.util.function.DoubleBinaryOperator)
  560. java.util.concurrent.ConcurrentHashMap.reduceEntriesToLong(long, java.util.function.ToLongFunction, long, java.util.function.LongBinaryOperator)
  561. java.util.concurrent.ConcurrentHashMap.reduceEntriesToInt(long, java.util.function.ToIntFunction, int, java.util.function.IntBinaryOperator)
  562. java.util.concurrent.ConcurrentHashMap.KeySetView
  563. java.util.concurrent.ConcurrentLinkedDeque.spliterator()
  564. java.util.concurrent.ConcurrentLinkedQueue.spliterator()
  565. java.util.concurrent.ConcurrentMap.getOrDefault(java.lang.Object, java.lang.Object)
  566. java.util.concurrent.ConcurrentMap.forEach(java.util.function.BiConsumer)
  567. java.util.concurrent.ConcurrentMap.replaceAll(java.util.function.BiFunction)
  568. java.util.concurrent.ConcurrentMap.computeIfAbsent(java.lang.Object, java.util.function.Function)
  569. java.util.concurrent.ConcurrentMap.computeIfPresent(java.lang.Object, java.util.function.BiFunction)
  570. java.util.concurrent.ConcurrentMap.compute(java.lang.Object, java.util.function.BiFunction)
  571. java.util.concurrent.ConcurrentMap.merge(java.lang.Object, java.lang.Object, java.util.function.BiFunction)
  572. java.util.concurrent.ConcurrentSkipListMap.getOrDefault(java.lang.Object, java.lang.Object)
  573. java.util.concurrent.ConcurrentSkipListMap.computeIfAbsent(java.lang.Object, java.util.function.Function)
  574. java.util.concurrent.ConcurrentSkipListMap.computeIfPresent(java.lang.Object, java.util.function.BiFunction)
  575. java.util.concurrent.ConcurrentSkipListMap.compute(java.lang.Object, java.util.function.BiFunction)
  576. java.util.concurrent.ConcurrentSkipListMap.merge(java.lang.Object, java.lang.Object, java.util.function.BiFunction)
  577. java.util.concurrent.ConcurrentSkipListSet.spliterator()
  578. java.util.concurrent.CopyOnWriteArrayList.spliterator()
  579. java.util.concurrent.CopyOnWriteArraySet.spliterator()
  580. java.util.concurrent.CountedCompleter
  581. java.util.concurrent.Executors.newWorkStealingPool(int)
  582. java.util.concurrent.Executors.newWorkStealingPool()
  583. java.util.concurrent.ForkJoinPool.commonPool()
  584. java.util.concurrent.ForkJoinPool.getCommonPoolParallelism()
  585. java.util.concurrent.ForkJoinTask.quietlyComplete()
  586. java.util.concurrent.ForkJoinTask.getForkJoinTaskTag()
  587. java.util.concurrent.ForkJoinTask.setForkJoinTaskTag(short)
  588. java.util.concurrent.ForkJoinTask.compareAndSetForkJoinTaskTag(short, short)
  589. java.util.concurrent.LinkedBlockingDeque.spliterator()
  590. java.util.concurrent.LinkedBlockingQueue.spliterator()
  591. java.util.concurrent.LinkedTransferQueue.spliterator()
  592. java.util.concurrent.PriorityBlockingQueue.spliterator()
  593. java.util.concurrent.SynchronousQueue.spliterator()
  594. java.util.concurrent.ThreadLocalRandom.ints(long)
  595. java.util.concurrent.ThreadLocalRandom.ints()
  596. java.util.concurrent.ThreadLocalRandom.ints(long, int, int)
  597. java.util.concurrent.ThreadLocalRandom.ints(int, int)
  598. java.util.concurrent.ThreadLocalRandom.longs(long)
  599. java.util.concurrent.ThreadLocalRandom.longs()
  600. java.util.concurrent.ThreadLocalRandom.longs(long, long, long)
  601. java.util.concurrent.ThreadLocalRandom.longs(long, long)
  602. java.util.concurrent.ThreadLocalRandom.doubles(long)
  603. java.util.concurrent.ThreadLocalRandom.doubles()
  604. java.util.concurrent.ThreadLocalRandom.doubles(long, double, double)
  605. java.util.concurrent.ThreadLocalRandom.doubles(double, double)
  606. java.util.concurrent.atomic.AtomicInteger.getAndUpdate(java.util.function.IntUnaryOperator)
  607. java.util.concurrent.atomic.AtomicInteger.updateAndGet(java.util.function.IntUnaryOperator)
  608. java.util.concurrent.atomic.AtomicInteger.getAndAccumulate(int, java.util.function.IntBinaryOperator)
  609. java.util.concurrent.atomic.AtomicInteger.accumulateAndGet(int, java.util.function.IntBinaryOperator)
  610. java.util.concurrent.atomic.AtomicIntegerArray.getAndUpdate(int, java.util.function.IntUnaryOperator)
  611. java.util.concurrent.atomic.AtomicIntegerArray.updateAndGet(int, java.util.function.IntUnaryOperator)
  612. java.util.concurrent.atomic.AtomicIntegerArray.getAndAccumulate(int, int, java.util.function.IntBinaryOperator)
  613. java.util.concurrent.atomic.AtomicIntegerArray.accumulateAndGet(int, int, java.util.function.IntBinaryOperator)
  614. java.util.concurrent.atomic.AtomicIntegerFieldUpdater.getAndUpdate(java.lang.Object, java.util.function.IntUnaryOperator)
  615. java.util.concurrent.atomic.AtomicIntegerFieldUpdater.updateAndGet(java.lang.Object, java.util.function.IntUnaryOperator)
  616. java.util.concurrent.atomic.AtomicIntegerFieldUpdater.getAndAccumulate(java.lang.Object, int, java.util.function.IntBinaryOperator)
  617. java.util.concurrent.atomic.AtomicIntegerFieldUpdater.accumulateAndGet(java.lang.Object, int, java.util.function.IntBinaryOperator)
  618. java.util.concurrent.atomic.AtomicLong.getAndUpdate(java.util.function.LongUnaryOperator)
  619. java.util.concurrent.atomic.AtomicLong.updateAndGet(java.util.function.LongUnaryOperator)
  620. java.util.concurrent.atomic.AtomicLong.getAndAccumulate(long, java.util.function.LongBinaryOperator)
  621. java.util.concurrent.atomic.AtomicLong.accumulateAndGet(long, java.util.function.LongBinaryOperator)
  622. java.util.concurrent.atomic.AtomicLongArray.getAndUpdate(int, java.util.function.LongUnaryOperator)
  623. java.util.concurrent.atomic.AtomicLongArray.updateAndGet(int, java.util.function.LongUnaryOperator)
  624. java.util.concurrent.atomic.AtomicLongArray.getAndAccumulate(int, long, java.util.function.LongBinaryOperator)
  625. java.util.concurrent.atomic.AtomicLongArray.accumulateAndGet(int, long, java.util.function.LongBinaryOperator)
  626. java.util.concurrent.atomic.AtomicLongFieldUpdater.getAndUpdate(java.lang.Object, java.util.function.LongUnaryOperator)
  627. java.util.concurrent.atomic.AtomicLongFieldUpdater.updateAndGet(java.lang.Object, java.util.function.LongUnaryOperator)
  628. java.util.concurrent.atomic.AtomicLongFieldUpdater.getAndAccumulate(java.lang.Object, long, java.util.function.LongBinaryOperator)
  629. java.util.concurrent.atomic.AtomicLongFieldUpdater.accumulateAndGet(java.lang.Object, long, java.util.function.LongBinaryOperator)
  630. java.util.concurrent.atomic.AtomicReference.getAndUpdate(java.util.function.UnaryOperator)
  631. java.util.concurrent.atomic.AtomicReference.updateAndGet(java.util.function.UnaryOperator)
  632. java.util.concurrent.atomic.AtomicReference.getAndAccumulate(java.lang.Object, java.util.function.BinaryOperator)
  633. java.util.concurrent.atomic.AtomicReference.accumulateAndGet(java.lang.Object, java.util.function.BinaryOperator)
  634. java.util.concurrent.atomic.AtomicReferenceArray.getAndUpdate(int, java.util.function.UnaryOperator)
  635. java.util.concurrent.atomic.AtomicReferenceArray.updateAndGet(int, java.util.function.UnaryOperator)
  636. java.util.concurrent.atomic.AtomicReferenceArray.getAndAccumulate(int, java.lang.Object, java.util.function.BinaryOperator)
  637. java.util.concurrent.atomic.AtomicReferenceArray.accumulateAndGet(int, java.lang.Object, java.util.function.BinaryOperator)
  638. java.util.concurrent.atomic.AtomicReferenceFieldUpdater.getAndUpdate(java.lang.Object, java.util.function.UnaryOperator)
  639. java.util.concurrent.atomic.AtomicReferenceFieldUpdater.updateAndGet(java.lang.Object, java.util.function.UnaryOperator)
  640. java.util.concurrent.atomic.AtomicReferenceFieldUpdater.getAndAccumulate(java.lang.Object, java.lang.Object, java.util.function.BinaryOperator)
  641. java.util.concurrent.atomic.AtomicReferenceFieldUpdater.accumulateAndGet(java.lang.Object, java.lang.Object, java.util.function.BinaryOperator)
  642. java.util.concurrent.atomic.DoubleAccumulator
  643. java.util.concurrent.atomic.DoubleAdder
  644. java.util.concurrent.atomic.LongAccumulator
  645. java.util.concurrent.atomic.LongAdder
  646. java.util.concurrent.locks.StampedLock
  647. java.util.function.BiConsumer
  648. java.util.function.BiFunction
  649. java.util.function.BinaryOperator
  650. java.util.function.BiPredicate
  651. java.util.function.BooleanSupplier
  652. java.util.function.Consumer
  653. java.util.function.DoubleBinaryOperator
  654. java.util.function.DoubleConsumer
  655. java.util.function.DoubleFunction
  656. java.util.function.DoublePredicate
  657. java.util.function.DoubleSupplier
  658. java.util.function.DoubleToIntFunction
  659. java.util.function.DoubleToLongFunction
  660. java.util.function.DoubleUnaryOperator
  661. java.util.function.Function
  662. java.util.function.IntBinaryOperator
  663. java.util.function.IntConsumer
  664. java.util.function.IntFunction
  665. java.util.function.IntPredicate
  666. java.util.function.IntSupplier
  667. java.util.function.IntToDoubleFunction
  668. java.util.function.IntToLongFunction
  669. java.util.function.IntUnaryOperator
  670. java.util.function.LongBinaryOperator
  671. java.util.function.LongConsumer
  672. java.util.function.LongFunction
  673. java.util.function.LongPredicate
  674. java.util.function.LongSupplier
  675. java.util.function.LongToDoubleFunction
  676. java.util.function.LongToIntFunction
  677. java.util.function.LongUnaryOperator
  678. java.util.function.ObjDoubleConsumer
  679. java.util.function.ObjIntConsumer
  680. java.util.function.ObjLongConsumer
  681. java.util.function.Predicate
  682. java.util.function.Supplier
  683. java.util.function.ToDoubleBiFunction
  684. java.util.function.ToDoubleFunction
  685. java.util.function.ToIntBiFunction
  686. java.util.function.ToIntFunction
  687. java.util.function.ToLongBiFunction
  688. java.util.function.ToLongFunction
  689. java.util.function.UnaryOperator
  690. java.util.logging.Logger.log(java.util.logging.Level, java.lang.Throwable, java.util.function.Supplier)
  691. java.util.logging.Logger.logp(java.util.logging.Level, java.lang.String, java.lang.String, java.util.function.Supplier)
  692. java.util.logging.Logger.logp(java.util.logging.Level, java.lang.String, java.lang.String, java.lang.Throwable, java.util.function.Supplier)
  693. java.util.logging.Logger.logrb(java.util.logging.Level, java.lang.String, java.lang.String, java.util.ResourceBundle, java.lang.String, java.lang.Object)
  694. java.util.logging.Logger.logrb(java.util.logging.Level, java.lang.String, java.lang.String, java.util.ResourceBundle, java.lang.String, java.lang.Throwable)
  695. java.util.logging.Logger.severe(java.util.function.Supplier)
  696. java.util.logging.Logger.warning(java.util.function.Supplier)
  697. java.util.logging.Logger.info(java.util.function.Supplier)
  698. java.util.logging.Logger.config(java.util.function.Supplier)
  699. java.util.logging.Logger.fine(java.util.function.Supplier)
  700. java.util.logging.Logger.finer(java.util.function.Supplier)
  701. java.util.logging.Logger.finest(java.util.function.Supplier)
  702. java.util.logging.Logger.setResourceBundle(java.util.ResourceBundle)
  703. java.util.regex.Matcher.start(java.lang.String)
  704. java.util.regex.Matcher.end(java.lang.String)
  705. java.util.regex.Pattern.asPredicate()
  706. java.util.regex.Pattern.splitAsStream(java.lang.CharSequence)
  707. java.util.spi.CalendarDataProvider
  708. java.util.spi.CalendarNameProvider
  709. java.util.spi.LocaleServiceProvider.isSupportedLocale(java.util.Locale)
  710. java.util.spi.ResourceBundleControlProvider
  711. java.util.spi.TimeZoneNameProvider.getGenericDisplayName(java.lang.String, int, java.util.Locale)
  712. java.util.stream.BaseStream
  713. java.util.stream.Collector
  714. java.util.stream.Collectors
  715. java.util.stream.DoubleStream
  716. java.util.stream.DoubleStream.Builder
  717. java.util.stream.IntStream
  718. java.util.stream.IntStream.Builder
  719. java.util.stream.LongStream
  720. java.util.stream.LongStream.Builder
  721. java.util.stream.Stream
  722. java.util.stream.Stream.Builder
  723. java.util.stream.StreamSupport
  724. java.util.zip.Adler32.update(java.nio.ByteBuffer)
  725. java.util.zip.CRC32.update(java.nio.ByteBuffer)
  726. java.util.zip.ZipEntry.setLastModifiedTime(java.nio.file.attribute.FileTime)
  727. java.util.zip.ZipEntry.getLastModifiedTime()
  728. java.util.zip.ZipEntry.setLastAccessTime(java.nio.file.attribute.FileTime)
  729. java.util.zip.ZipEntry.getLastAccessTime()
  730. java.util.zip.ZipEntry.setCreationTime(java.nio.file.attribute.FileTime)
  731. java.util.zip.ZipEntry.getCreationTime()
  732. java.util.zip.ZipFile.stream()
  733. javax.lang.model.AnnotatedConstruct
  734. javax.lang.model.element.ExecutableElement.getReceiverType()
  735. javax.lang.model.element.ExecutableElement.isDefault()
  736. javax.lang.model.type.ExecutableType.getReceiverType()
  737. javax.lang.model.type.IntersectionType
  738. javax.lang.model.type.TypeVisitor.visitIntersection(javax.lang.model.type.IntersectionType, java.lang.Object)
  739. javax.lang.model.util.AbstractAnnotationValueVisitor8
  740. javax.lang.model.util.AbstractElementVisitor8
  741. javax.lang.model.util.AbstractTypeVisitor6.visitIntersection(javax.lang.model.type.IntersectionType, java.lang.Object)
  742. javax.lang.model.util.AbstractTypeVisitor8
  743. javax.lang.model.util.ElementKindVisitor8
  744. javax.lang.model.util.Elements.isFunctionalInterface(javax.lang.model.element.TypeElement)
  745. javax.lang.model.util.ElementScanner8
  746. javax.lang.model.util.SimpleAnnotationValueVisitor8
  747. javax.lang.model.util.SimpleElementVisitor8
  748. javax.lang.model.util.SimpleTypeVisitor8
  749. javax.lang.model.util.TypeKindVisitor8
  750. javax.security.auth.kerberos.KeyTab.getUnboundInstance(java.io.File)
  751. javax.security.auth.kerberos.KeyTab.getInstance(javax.security.auth.kerberos.KerberosPrincipal, java.io.File)
  752. javax.security.auth.kerberos.KeyTab.getUnboundInstance()
  753. javax.security.auth.kerberos.KeyTab.getInstance(javax.security.auth.kerberos.KerberosPrincipal)
  754. javax.security.auth.kerberos.KeyTab.getPrincipal()
  755. javax.security.auth.kerberos.KeyTab.isBound()
  756. javax.xml.validation.SchemaFactoryConfigurationError

New Java 7 APIs

seven-samThese are the new Java 7 (1.7.0_51) classes and methods based on their Javadocs.

  1. com.sun.source.tree.UnionTypeTree
  2. java.applet.Applet.isValidateRoot()
  3. java.awt.Component.revalidate()
  4. java.awt.Container.isValidateRoot()
  5. java.awt.EventQueue.createSecondaryLoop()
  6. java.awt.FileDialog.getFiles()
  7. java.awt.FileDialog.setMultipleMode(boolean)
  8. java.awt.FileDialog.isMultipleMode()
  9. java.awt.GraphicsConfiguration.isTranslucencyCapable()
  10. java.awt.GraphicsDevice.isWindowTranslucencySupported(java.awt.GraphicsDevice.WindowTranslucency)
  11. java.awt.GraphicsDevice.WindowTranslucency
  12. java.awt.SecondaryLoop
  13. java.awt.Toolkit.areExtraMouseButtonsEnabled()
  14. java.awt.Window.setAutoRequestFocus(boolean)
  15. java.awt.Window.isAutoRequestFocus()
  16. java.awt.Window.isValidateRoot()
  17. java.awt.Window.setType(java.awt.Window.Type)
  18. java.awt.Window.getType()
  19. java.awt.Window.getOpacity()
  20. java.awt.Window.setOpacity(float)
  21. java.awt.Window.getShape()
  22. java.awt.Window.setShape(java.awt.Shape)
  23. java.awt.Window.isOpaque()
  24. java.awt.Window.paint(java.awt.Graphics)
  25. java.awt.Window.Type
  26. java.awt.event.InvocationEvent.isDispatched()
  27. java.awt.event.KeyEvent.getExtendedKeyCode()
  28. java.awt.event.KeyEvent.getExtendedKeyCodeForChar(int)
  29. java.awt.event.MouseWheelEvent.getPreciseWheelRotation()
  30. java.awt.font.NumericShaper.getShaper(java.awt.font.NumericShaper.Range)
  31. java.awt.font.NumericShaper.getContextualShaper(java.util.Set)
  32. java.awt.font.NumericShaper.getContextualShaper(java.util.Set, java.awt.font.NumericShaper.Range)
  33. java.awt.font.NumericShaper.shape(char, int, int, java.awt.font.NumericShaper.Range)
  34. java.awt.font.NumericShaper.getRangeSet()
  35. java.awt.font.NumericShaper.Range
  36. java.awt.peer.CanvasPeer.getAppropriateGraphicsConfiguration(java.awt.GraphicsConfiguration)
  37. java.awt.peer.ComponentPeer.applyShape(sun.java2d.pipe.Region)
  38. java.awt.peer.ComponentPeer.updateGraphicsData(java.awt.GraphicsConfiguration)
  39. java.beans.Expression.execute()
  40. java.beans.FeatureDescriptor.toString()
  41. java.beans.Introspector.getBeanInfo(java.lang.Class, java.lang.Class, int)
  42. java.beans.PropertyChangeEvent.toString()
  43. java.beans.Transient
  44. java.beans.XMLDecoder.createHandler(java.lang.Object, java.beans.ExceptionListener, java.lang.ClassLoader)
  45. java.io.File.toPath()
  46. java.lang.AutoCloseable
  47. java.lang.Boolean.compare(boolean, boolean)
  48. java.lang.BootstrapMethodError
  49. java.lang.Byte.compare(byte, byte)
  50. java.lang.Character.isBmpCodePoint(int)
  51. java.lang.Character.isSurrogate(char)
  52. java.lang.Character.highSurrogate(int)
  53. java.lang.Character.lowSurrogate(int)
  54. java.lang.Character.isAlphabetic(int)
  55. java.lang.Character.isIdeographic(int)
  56. java.lang.Character.compare(char, char)
  57. java.lang.Character.getName(int)
  58. java.lang.Character.UnicodeScript
  59. java.lang.ClassLoader.getClassLoadingLock(java.lang.String)
  60. java.lang.ClassLoader.registerAsParallelCapable()
  61. java.lang.ClassValue
  62. java.lang.Integer.compare(int, int)
  63. java.lang.Long.compare(long, long)
  64. java.lang.ProcessBuilder.redirectInput(java.lang.ProcessBuilder.Redirect)
  65. java.lang.ProcessBuilder.redirectOutput(java.lang.ProcessBuilder.Redirect)
  66. java.lang.ProcessBuilder.redirectError(java.lang.ProcessBuilder.Redirect)
  67. java.lang.ProcessBuilder.redirectInput(java.io.File)
  68. java.lang.ProcessBuilder.redirectOutput(java.io.File)
  69. java.lang.ProcessBuilder.redirectError(java.io.File)
  70. java.lang.ProcessBuilder.redirectInput()
  71. java.lang.ProcessBuilder.redirectOutput()
  72. java.lang.ProcessBuilder.redirectError()
  73. java.lang.ProcessBuilder.inheritIO()
  74. java.lang.ProcessBuilder.Redirect
  75. java.lang.ReflectiveOperationException
  76. java.lang.Short.compare(short, short)
  77. java.lang.Throwable.addSuppressed(java.lang.Throwable)
  78. java.lang.Throwable.getSuppressed()
  79. java.lang.invoke.WrongMethodTypeException
  80. java.lang.management.BufferPoolMXBean
  81. java.lang.management.ManagementFactory.getPlatformMXBean(java.lang.Class)
  82. java.lang.management.ManagementFactory.getPlatformMXBeans(java.lang.Class)
  83. java.lang.management.ManagementFactory.getPlatformMXBean(javax.management.MBeanServerConnection, java.lang.Class)
  84. java.lang.management.ManagementFactory.getPlatformMXBeans(javax.management.MBeanServerConnection, java.lang.Class)
  85. java.lang.management.ManagementFactory.getPlatformManagementInterfaces()
  86. java.lang.management.PlatformLoggingMXBean
  87. java.lang.management.PlatformManagedObject
  88. java.lang.reflect.Modifier.classModifiers()
  89. java.lang.reflect.Modifier.interfaceModifiers()
  90. java.lang.reflect.Modifier.constructorModifiers()
  91. java.lang.reflect.Modifier.methodModifiers()
  92. java.lang.reflect.Modifier.fieldModifiers()
  93. java.net.HttpURLConnection.setFixedLengthStreamingMode(long)
  94. java.net.InetAddress.getLoopbackAddress()
  95. java.net.InetSocketAddress.getHostString()
  96. java.net.NetworkInterface.getIndex()
  97. java.net.NetworkInterface.getByIndex(int)
  98. java.net.ProtocolFamily
  99. java.net.SocketOption
  100. java.net.StandardProtocolFamily
  101. java.net.StandardSocketOptions
  102. java.net.URLClassLoader.getResourceAsStream(java.lang.String)
  103. java.net.URLClassLoader.close()
  104. java.nio.channels.AcceptPendingException
  105. java.nio.channels.AlreadyBoundException
  106. java.nio.channels.AsynchronousByteChannel
  107. java.nio.channels.AsynchronousChannel
  108. java.nio.channels.AsynchronousChannelGroup
  109. java.nio.channels.AsynchronousFileChannel
  110. java.nio.channels.AsynchronousServerSocketChannel
  111. java.nio.channels.AsynchronousSocketChannel
  112. java.nio.channels.Channels.newInputStream(java.nio.channels.AsynchronousByteChannel)
  113. java.nio.channels.Channels.newOutputStream(java.nio.channels.AsynchronousByteChannel)
  114. java.nio.channels.CompletionHandler
  115. java.nio.channels.DatagramChannel.open(java.net.ProtocolFamily)
  116. java.nio.channels.DatagramChannel.bind(java.net.SocketAddress)
  117. java.nio.channels.DatagramChannel.setOption(java.net.SocketOption, java.lang.Object)
  118. java.nio.channels.DatagramChannel.getRemoteAddress()
  119. java.nio.channels.FileChannel.open(java.nio.file.Path, java.util.Set, java.nio.file.attribute.FileAttribute)
  120. java.nio.channels.FileChannel.open(java.nio.file.Path, java.nio.file.OpenOption)
  121. java.nio.channels.FileLock.acquiredBy()
  122. java.nio.channels.FileLock.close()
  123. java.nio.channels.IllegalChannelGroupException
  124. java.nio.channels.InterruptedByTimeoutException
  125. java.nio.channels.MembershipKey
  126. java.nio.channels.MulticastChannel
  127. java.nio.channels.NetworkChannel
  128. java.nio.channels.ReadPendingException
  129. java.nio.channels.SeekableByteChannel
  130. java.nio.channels.ServerSocketChannel.bind(java.net.SocketAddress)
  131. java.nio.channels.ServerSocketChannel.bind(java.net.SocketAddress, int)
  132. java.nio.channels.ServerSocketChannel.setOption(java.net.SocketOption, java.lang.Object)
  133. java.nio.channels.ShutdownChannelGroupException
  134. java.nio.channels.SocketChannel.bind(java.net.SocketAddress)
  135. java.nio.channels.SocketChannel.setOption(java.net.SocketOption, java.lang.Object)
  136. java.nio.channels.SocketChannel.shutdownInput()
  137. java.nio.channels.SocketChannel.shutdownOutput()
  138. java.nio.channels.SocketChannel.getRemoteAddress()
  139. java.nio.channels.WritePendingException
  140. java.nio.channels.spi.AsynchronousChannelProvider
  141. java.nio.channels.spi.SelectorProvider.openDatagramChannel(java.net.ProtocolFamily)
  142. java.nio.charset.StandardCharsets
  143. java.nio.file.AccessDeniedException
  144. java.nio.file.AccessMode
  145. java.nio.file.AtomicMoveNotSupportedException
  146. java.nio.file.ClosedDirectoryStreamException
  147. java.nio.file.CopyOption
  148. java.nio.file.DirectoryIteratorException
  149. java.nio.file.DirectoryNotEmptyException
  150. java.nio.file.DirectoryStream
  151. java.nio.file.DirectoryStream.Filter
  152. java.nio.file.FileAlreadyExistsException
  153. java.nio.file.Files
  154. java.nio.file.FileStore
  155. java.nio.file.FileSystem
  156. java.nio.file.FileSystemException
  157. java.nio.file.FileSystemLoopException
  158. java.nio.file.FileSystems
  159. java.nio.file.FileVisitOption
  160. java.nio.file.FileVisitor
  161. java.nio.file.FileVisitResult
  162. java.nio.file.LinkOption
  163. java.nio.file.LinkPermission
  164. java.nio.file.NoSuchFileException
  165. java.nio.file.NotDirectoryException
  166. java.nio.file.NotLinkException
  167. java.nio.file.OpenOption
  168. java.nio.file.Path
  169. java.nio.file.PathMatcher
  170. java.nio.file.Paths
  171. java.nio.file.SecureDirectoryStream
  172. java.nio.file.SimpleFileVisitor
  173. java.nio.file.StandardCopyOption
  174. java.nio.file.StandardOpenOption
  175. java.nio.file.StandardWatchEventKinds
  176. java.nio.file.Watchable
  177. java.nio.file.WatchEvent
  178. java.nio.file.WatchEvent.Kind
  179. java.nio.file.WatchEvent.Modifier
  180. java.nio.file.WatchKey
  181. java.nio.file.WatchService
  182. java.nio.file.attribute.AclEntry
  183. java.nio.file.attribute.AclEntry.Builder
  184. java.nio.file.attribute.AclEntryFlag
  185. java.nio.file.attribute.AclEntryPermission
  186. java.nio.file.attribute.AclEntryType
  187. java.nio.file.attribute.AclFileAttributeView
  188. java.nio.file.attribute.AttributeView
  189. java.nio.file.attribute.BasicFileAttributes
  190. java.nio.file.attribute.BasicFileAttributeView
  191. java.nio.file.attribute.DosFileAttributes
  192. java.nio.file.attribute.DosFileAttributeView
  193. java.nio.file.attribute.FileAttribute
  194. java.nio.file.attribute.FileAttributeView
  195. java.nio.file.attribute.FileOwnerAttributeView
  196. java.nio.file.attribute.FileStoreAttributeView
  197. java.nio.file.attribute.FileTime
  198. java.nio.file.attribute.GroupPrincipal
  199. java.nio.file.attribute.PosixFileAttributes
  200. java.nio.file.attribute.PosixFileAttributeView
  201. java.nio.file.attribute.PosixFilePermission
  202. java.nio.file.attribute.PosixFilePermissions
  203. java.nio.file.attribute.UserDefinedFileAttributeView
  204. java.nio.file.attribute.UserPrincipal
  205. java.nio.file.attribute.UserPrincipalLookupService
  206. java.nio.file.attribute.UserPrincipalNotFoundException
  207. java.nio.file.spi.FileSystemProvider
  208. java.nio.file.spi.FileTypeDetector
  209. java.security.AlgorithmConstraints
  210. java.security.CryptoPrimitive
  211. java.security.cert.CertificateRevokedException
  212. java.security.cert.CertPathValidatorException.getReason()
  213. java.security.cert.CertPathValidatorException.Reason
  214. java.security.cert.CertPathValidatorException.BasicReason
  215. java.security.cert.CRLReason
  216. java.security.cert.Extension
  217. java.security.cert.PKIXReason
  218. java.security.cert.X509CRLEntry.getRevocationReason()
  219. java.sql.CallableStatement.getObject(int, java.lang.Class)
  220. java.sql.CallableStatement.getObject(java.lang.String, java.lang.Class)
  221. java.sql.Connection.setSchema(java.lang.String)
  222. java.sql.Connection.getSchema()
  223. java.sql.Connection.abort(java.util.concurrent.Executor)
  224. java.sql.Connection.setNetworkTimeout(java.util.concurrent.Executor, int)
  225. java.sql.Connection.getNetworkTimeout()
  226. java.sql.DatabaseMetaData.getPseudoColumns(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
  227. java.sql.DatabaseMetaData.generatedKeyAlwaysReturned()
  228. java.sql.Driver.getParentLogger()
  229. java.sql.PseudoColumnUsage
  230. java.sql.ResultSet.getObject(int, java.lang.Class)
  231. java.sql.ResultSet.getObject(java.lang.String, java.lang.Class)
  232. java.sql.Statement.closeOnCompletion()
  233. java.sql.Statement.isCloseOnCompletion()
  234. java.util.BitSet.valueOf(long)
  235. java.util.BitSet.valueOf(java.nio.LongBuffer)
  236. java.util.BitSet.valueOf(byte)
  237. java.util.BitSet.valueOf(java.nio.ByteBuffer)
  238. java.util.BitSet.toByteArray()
  239. java.util.BitSet.toLongArray()
  240. java.util.BitSet.previousSetBit(int)
  241. java.util.BitSet.previousClearBit(int)
  242. java.util.Calendar.isWeekDateSupported()
  243. java.util.Calendar.getWeekYear()
  244. java.util.Calendar.setWeekDate(int, int, int)
  245. java.util.Calendar.getWeeksInWeekYear()
  246. java.util.Collections.emptyIterator()
  247. java.util.Collections.emptyListIterator()
  248. java.util.Collections.emptyEnumeration()
  249. java.util.Currency.getAvailableCurrencies()
  250. java.util.Currency.getNumericCode()
  251. java.util.Currency.getDisplayName()
  252. java.util.Currency.getDisplayName(java.util.Locale)
  253. java.util.GregorianCalendar.isWeekDateSupported()
  254. java.util.GregorianCalendar.getWeekYear()
  255. java.util.GregorianCalendar.setWeekDate(int, int, int)
  256. java.util.GregorianCalendar.getWeeksInWeekYear()
  257. java.util.IllformedLocaleException
  258. java.util.Locale.getDefault(java.util.Locale.Category)
  259. java.util.Locale.setDefault(java.util.Locale.Category, java.util.Locale)
  260. java.util.Locale.getScript()
  261. java.util.Locale.getExtension(char)
  262. java.util.Locale.getExtensionKeys()
  263. java.util.Locale.getUnicodeLocaleAttributes()
  264. java.util.Locale.getUnicodeLocaleType(java.lang.String)
  265. java.util.Locale.getUnicodeLocaleKeys()
  266. java.util.Locale.toLanguageTag()
  267. java.util.Locale.forLanguageTag(java.lang.String)
  268. java.util.Locale.getDisplayScript()
  269. java.util.Locale.getDisplayScript(java.util.Locale)
  270. java.util.Locale.Category
  271. java.util.Locale.Builder
  272. java.util.Objects
  273. java.util.SimpleTimeZone.observesDaylightTime()
  274. java.util.TimeZone.observesDaylightTime()
  275. java.util.concurrent.ConcurrentLinkedDeque
  276. java.util.concurrent.ForkJoinPool
  277. java.util.concurrent.ForkJoinTask
  278. java.util.concurrent.ForkJoinWorkerThread
  279. java.util.concurrent.LinkedTransferQueue
  280. java.util.concurrent.Phaser
  281. java.util.concurrent.RecursiveAction
  282. java.util.concurrent.RecursiveTask
  283. java.util.concurrent.ScheduledThreadPoolExecutor.setRemoveOnCancelPolicy(boolean)
  284. java.util.concurrent.ScheduledThreadPoolExecutor.getRemoveOnCancelPolicy()
  285. java.util.concurrent.ThreadLocalRandom
  286. java.util.concurrent.TransferQueue
  287. java.util.concurrent.locks.AbstractQueuedLongSynchronizer.hasQueuedPredecessors()
  288. java.util.concurrent.locks.AbstractQueuedSynchronizer.hasQueuedPredecessors()
  289. java.util.logging.Logger.getGlobal()
  290. java.util.regex.Matcher.group(java.lang.String)
  291. java.util.spi.CurrencyNameProvider.getDisplayName(java.lang.String, java.util.Locale)
  292. java.util.spi.LocaleNameProvider.getDisplayScript(java.lang.String, java.util.Locale)
  293. java.util.zip.Deflater.deflate(byte, int, int, int)
  294. java.util.zip.DeflaterOutputStream.flush()
  295. javax.lang.model.UnknownEntityException
  296. javax.lang.model.element.Parameterizable
  297. javax.lang.model.element.QualifiedNameable
  298. javax.lang.model.type.TypeVisitor.visitUnion(javax.lang.model.type.UnionType, java.lang.Object)
  299. javax.lang.model.type.UnionType
  300. javax.lang.model.util.AbstractAnnotationValueVisitor7
  301. javax.lang.model.util.AbstractElementVisitor7
  302. javax.lang.model.util.AbstractTypeVisitor6.visitUnion(javax.lang.model.type.UnionType, java.lang.Object)
  303. javax.lang.model.util.AbstractTypeVisitor7
  304. javax.lang.model.util.ElementKindVisitor6.visitVariableAsResourceVariable(javax.lang.model.element.VariableElement, java.lang.Object)
  305. javax.lang.model.util.ElementKindVisitor7
  306. javax.lang.model.util.ElementScanner7
  307. javax.lang.model.util.SimpleAnnotationValueVisitor7
  308. javax.lang.model.util.SimpleElementVisitor7
  309. javax.lang.model.util.SimpleTypeVisitor7
  310. javax.lang.model.util.TypeKindVisitor7
  311. javax.print.attribute.standard.DialogTypeSelection
  312. javax.security.auth.kerberos.KeyTab
  313. javax.sound.midi.MidiDeviceReceiver
  314. javax.sound.midi.MidiDeviceTransmitter
  315. javax.sql.CommonDataSource.getParentLogger()
  316. javax.sql.rowset.RowSetFactory
  317. javax.sql.rowset.RowSetFactory.createCachedRowSet()
  318. javax.sql.rowset.RowSetFactory.createFilteredRowSet()
  319. javax.sql.rowset.RowSetFactory.createJdbcRowSet()
  320. javax.sql.rowset.RowSetFactory.createJoinRowSet()
  321. javax.sql.rowset.RowSetFactory.createWebRowSet()
  322. javax.sql.rowset.RowSetProvider
  323. javax.sql.rowset.RowSetProvider.newFactory()
  324. javax.sql.rowset.RowSetProvider.newFactory(java.lang.String, java.lang.ClassLoader)
  325. javax.swing.BorderFactory.createLineBorder(java.awt.Color, int, boolean)
  326. javax.swing.BorderFactory.createRaisedSoftBevelBorder()
  327. javax.swing.BorderFactory.createLoweredSoftBevelBorder()
  328. javax.swing.BorderFactory.createSoftBevelBorder(int)
  329. javax.swing.BorderFactory.createSoftBevelBorder(int, java.awt.Color, java.awt.Color)
  330. javax.swing.BorderFactory.createSoftBevelBorder(int, java.awt.Color, java.awt.Color, java.awt.Color, java.awt.Color)
  331. javax.swing.BorderFactory.createStrokeBorder(java.awt.BasicStroke)
  332. javax.swing.BorderFactory.createStrokeBorder(java.awt.BasicStroke, java.awt.Paint)
  333. javax.swing.BorderFactory.createDashedBorder(java.awt.Paint)
  334. javax.swing.BorderFactory.createDashedBorder(java.awt.Paint, float, float)
  335. javax.swing.BorderFactory.createDashedBorder(java.awt.Paint, float, float, float, boolean)
  336. javax.swing.JLayer
  337. javax.swing.JList.getSelectedValuesList()
  338. javax.swing.JSlider.imageUpdate(java.awt.Image, int, int, int, int, int)
  339. javax.swing.JTree.EmptySelectionModel.setSelectionMode(int)
  340. javax.swing.JTree.EmptySelectionModel.setRowMapper(javax.swing.tree.RowMapper)
  341. javax.swing.JTree.EmptySelectionModel.addTreeSelectionListener(javax.swing.event.TreeSelectionListener)
  342. javax.swing.JTree.EmptySelectionModel.removeTreeSelectionListener(javax.swing.event.TreeSelectionListener)
  343. javax.swing.JTree.EmptySelectionModel.addPropertyChangeListener(java.beans.PropertyChangeListener)
  344. javax.swing.JTree.EmptySelectionModel.removePropertyChangeListener(java.beans.PropertyChangeListener)
  345. javax.swing.SwingUtilities.getUnwrappedParent(java.awt.Component)
  346. javax.swing.SwingUtilities.getUnwrappedView(javax.swing.JViewport)
  347. javax.swing.border.StrokeBorder
  348. javax.swing.event.HyperlinkEvent.getInputEvent()
  349. javax.swing.plaf.FileChooserUI.getDefaultButton(javax.swing.JFileChooser)
  350. javax.swing.plaf.LayerUI
  351. javax.swing.plaf.basic.BasicColorChooserUI.uninstallPreviewPanel()
  352. javax.swing.plaf.basic.BasicComboBoxUI.getSizeForComponent(java.awt.Component)
  353. javax.swing.plaf.basic.BasicFileChooserUI.createUI(javax.swing.JComponent)
  354. javax.swing.plaf.basic.BasicTreeUI.isDropLine(javax.swing.JTree.DropLocation)
  355. javax.swing.plaf.basic.BasicTreeUI.paintDropLine(java.awt.Graphics)
  356. javax.swing.plaf.basic.BasicTreeUI.getDropLineRect(javax.swing.JTree.DropLocation)
  357. javax.swing.plaf.basic.BasicTreeUI.updateLeadSelectionRow()
  358. javax.swing.plaf.basic.BasicTreeUI.getLeadSelectionRow()
  359. javax.swing.plaf.nimbus.NimbusLookAndFeel.shouldUpdateStyleOnEvent(java.beans.PropertyChangeEvent)
  360. javax.swing.plaf.synth.SynthButtonUI
  361. javax.swing.plaf.synth.SynthCheckBoxMenuItemUI
  362. javax.swing.plaf.synth.SynthCheckBoxUI
  363. javax.swing.plaf.synth.SynthColorChooserUI
  364. javax.swing.plaf.synth.SynthComboBoxUI
  365. javax.swing.plaf.synth.SynthDesktopIconUI
  366. javax.swing.plaf.synth.SynthDesktopPaneUI
  367. javax.swing.plaf.synth.SynthEditorPaneUI
  368. javax.swing.plaf.synth.SynthFormattedTextFieldUI
  369. javax.swing.plaf.synth.SynthInternalFrameUI
  370. javax.swing.plaf.synth.SynthLabelUI
  371. javax.swing.plaf.synth.SynthListUI
  372. javax.swing.plaf.synth.SynthLookAndFeel.shouldUpdateStyleOnEvent(java.beans.PropertyChangeEvent)
  373. javax.swing.plaf.synth.SynthMenuBarUI
  374. javax.swing.plaf.synth.SynthMenuItemUI
  375. javax.swing.plaf.synth.SynthMenuUI
  376. javax.swing.plaf.synth.SynthOptionPaneUI
  377. javax.swing.plaf.synth.SynthPanelUI
  378. javax.swing.plaf.synth.SynthPasswordFieldUI
  379. javax.swing.plaf.synth.SynthPopupMenuUI
  380. javax.swing.plaf.synth.SynthProgressBarUI
  381. javax.swing.plaf.synth.SynthRadioButtonMenuItemUI
  382. javax.swing.plaf.synth.SynthRadioButtonUI
  383. javax.swing.plaf.synth.SynthRootPaneUI
  384. javax.swing.plaf.synth.SynthScrollBarUI
  385. javax.swing.plaf.synth.SynthScrollPaneUI
  386. javax.swing.plaf.synth.SynthSeparatorUI
  387. javax.swing.plaf.synth.SynthSliderUI
  388. javax.swing.plaf.synth.SynthSpinnerUI
  389. javax.swing.plaf.synth.SynthSplitPaneUI
  390. javax.swing.plaf.synth.SynthTabbedPaneUI
  391. javax.swing.plaf.synth.SynthTableHeaderUI
  392. javax.swing.plaf.synth.SynthTableUI
  393. javax.swing.plaf.synth.SynthTextAreaUI
  394. javax.swing.plaf.synth.SynthTextFieldUI
  395. javax.swing.plaf.synth.SynthTextPaneUI
  396. javax.swing.plaf.synth.SynthToggleButtonUI
  397. javax.swing.plaf.synth.SynthToolBarUI
  398. javax.swing.plaf.synth.SynthToolTipUI
  399. javax.swing.plaf.synth.SynthTreeUI
  400. javax.swing.plaf.synth.SynthUI
  401. javax.swing.plaf.synth.SynthViewportUI
  402. javax.swing.text.DefaultStyledDocument.removeElement(javax.swing.text.Element)
  403. javax.swing.text.JTextComponent.saveComposedText(int)
  404. javax.swing.text.JTextComponent.restoreComposedText()
  405. javax.swing.tree.DefaultTreeCellRenderer.updateUI()

Over at Apache Commons, we are pleased to announce the Apache commons-codec 1.9 release!

The Apache Codec package contains simple encoder and decoders for various formats such as Base64 and Hexadecimal. In addition to these widely used encoders and decoders, the Apache Codec package also maintains a collection of phonetic encoding utilities.

This is a performance and fix release and requires a minimum of Java 1.6.

Changes in this version include:

Improving performance

CODEC-174: Improve performance of Beider Morse encoder. Thanks to Thomas Champagne.

Fixing bugs

  • CODEC-175: Beider Morse does not close Scanners used to read config files.
  • CODEC-172: Base32 decode table has spurious value. Thanks to Matt Bishop.
  • CODEC-170: Link broken in Metaphone Javadoc. Thanks to Ron Wheeler and Henri Yandell.
  • CODEC-176: Spelling fixes in Javadoc and comments. Thanks to Ville Skyttä.

For complete information on Commons Codec, including instructions on how to submit bug reports, patches, or suggestions for improvement, see the Apache Commons Codec website:

Site: http://commons.apache.org/proper/commons-codec/

Download: http://commons.apache.org/codec/download_codec.cgi

Happy Holidays!
Gary Gregory on behalf of the Apache Commons Codec team

Here is an example of the available IDs returned by java.util.TimeZone#getAvailableIDs()

  1. ACT
  2. AET
  3. AGT
  4. ART
  5. AST
  6. Africa/Abidjan
  7. Africa/Accra
  8. Africa/Addis_Ababa
  9. Africa/Algiers
  10. Africa/Asmara
  11. Africa/Asmera
  12. Africa/Bamako
  13. Africa/Bangui
  14. Africa/Banjul
  15. Africa/Bissau
  16. Africa/Blantyre
  17. Africa/Brazzaville
  18. Africa/Bujumbura
  19. Africa/Cairo
  20. Africa/Casablanca
  21. Africa/Ceuta
  22. Africa/Conakry
  23. Africa/Dakar
  24. Africa/Dar_es_Salaam
  25. Africa/Djibouti
  26. Africa/Douala
  27. Africa/El_Aaiun
  28. Africa/Freetown
  29. Africa/Gaborone
  30. Africa/Harare
  31. Africa/Johannesburg
  32. Africa/Juba
  33. Africa/Kampala
  34. Africa/Khartoum
  35. Africa/Kigali
  36. Africa/Kinshasa
  37. Africa/Lagos
  38. Africa/Libreville
  39. Africa/Lome
  40. Africa/Luanda
  41. Africa/Lubumbashi
  42. Africa/Lusaka
  43. Africa/Malabo
  44. Africa/Maputo
  45. Africa/Maseru
  46. Africa/Mbabane
  47. Africa/Mogadishu
  48. Africa/Monrovia
  49. Africa/Nairobi
  50. Africa/Ndjamena
  51. Africa/Niamey
  52. Africa/Nouakchott
  53. Africa/Ouagadougou
  54. Africa/Porto-Novo
  55. Africa/Sao_Tome
  56. Africa/Timbuktu
  57. Africa/Tripoli
  58. Africa/Tunis
  59. Africa/Windhoek
  60. America/Adak
  61. America/Anchorage
  62. America/Anguilla
  63. America/Antigua
  64. America/Araguaina
  65. America/Argentina/Buenos_Aires
  66. America/Argentina/Catamarca
  67. America/Argentina/ComodRivadavia
  68. America/Argentina/Cordoba
  69. America/Argentina/Jujuy
  70. America/Argentina/La_Rioja
  71. America/Argentina/Mendoza
  72. America/Argentina/Rio_Gallegos
  73. America/Argentina/Salta
  74. America/Argentina/San_Juan
  75. America/Argentina/San_Luis
  76. America/Argentina/Tucuman
  77. America/Argentina/Ushuaia
  78. America/Aruba
  79. America/Asuncion
  80. America/Atikokan
  81. America/Atka
  82. America/Bahia
  83. America/Bahia_Banderas
  84. America/Barbados
  85. America/Belem
  86. America/Belize
  87. America/Blanc-Sablon
  88. America/Boa_Vista
  89. America/Bogota
  90. America/Boise
  91. America/Buenos_Aires
  92. America/Cambridge_Bay
  93. America/Campo_Grande
  94. America/Cancun
  95. America/Caracas
  96. America/Catamarca
  97. America/Cayenne
  98. America/Cayman
  99. America/Chicago
  100. America/Chihuahua
  101. America/Coral_Harbour
  102. America/Cordoba
  103. America/Costa_Rica
  104. America/Creston
  105. America/Cuiaba
  106. America/Curacao
  107. America/Danmarkshavn
  108. America/Dawson
  109. America/Dawson_Creek
  110. America/Denver
  111. America/Detroit
  112. America/Dominica
  113. America/Edmonton
  114. America/Eirunepe
  115. America/El_Salvador
  116. America/Ensenada
  117. America/Fort_Wayne
  118. America/Fortaleza
  119. America/Glace_Bay
  120. America/Godthab
  121. America/Goose_Bay
  122. America/Grand_Turk
  123. America/Grenada
  124. America/Guadeloupe
  125. America/Guatemala
  126. America/Guayaquil
  127. America/Guyana
  128. America/Halifax
  129. America/Havana
  130. America/Hermosillo
  131. America/Indiana/Indianapolis
  132. America/Indiana/Knox
  133. America/Indiana/Marengo
  134. America/Indiana/Petersburg
  135. America/Indiana/Tell_City
  136. America/Indiana/Vevay
  137. America/Indiana/Vincennes
  138. America/Indiana/Winamac
  139. America/Indianapolis
  140. America/Inuvik
  141. America/Iqaluit
  142. America/Jamaica
  143. America/Jujuy
  144. America/Juneau
  145. America/Kentucky/Louisville
  146. America/Kentucky/Monticello
  147. America/Knox_IN
  148. America/Kralendijk
  149. America/La_Paz
  150. America/Lima
  151. America/Los_Angeles
  152. America/Louisville
  153. America/Lower_Princes
  154. America/Maceio
  155. America/Managua
  156. America/Manaus
  157. America/Marigot
  158. America/Martinique
  159. America/Matamoros
  160. America/Mazatlan
  161. America/Mendoza
  162. America/Menominee
  163. America/Merida
  164. America/Metlakatla
  165. America/Mexico_City
  166. America/Miquelon
  167. America/Moncton
  168. America/Monterrey
  169. America/Montevideo
  170. America/Montreal
  171. America/Montserrat
  172. America/Nassau
  173. America/New_York
  174. America/Nipigon
  175. America/Nome
  176. America/Noronha
  177. America/North_Dakota/Beulah
  178. America/North_Dakota/Center
  179. America/North_Dakota/New_Salem
  180. America/Ojinaga
  181. America/Panama
  182. America/Pangnirtung
  183. America/Paramaribo
  184. America/Phoenix
  185. America/Port-au-Prince
  186. America/Port_of_Spain
  187. America/Porto_Acre
  188. America/Porto_Velho
  189. America/Puerto_Rico
  190. America/Rainy_River
  191. America/Rankin_Inlet
  192. America/Recife
  193. America/Regina
  194. America/Resolute
  195. America/Rio_Branco
  196. America/Rosario
  197. America/Santa_Isabel
  198. America/Santarem
  199. America/Santiago
  200. America/Santo_Domingo
  201. America/Sao_Paulo
  202. America/Scoresbysund
  203. America/Shiprock
  204. America/Sitka
  205. America/St_Barthelemy
  206. America/St_Johns
  207. America/St_Kitts
  208. America/St_Lucia
  209. America/St_Thomas
  210. America/St_Vincent
  211. America/Swift_Current
  212. America/Tegucigalpa
  213. America/Thule
  214. America/Thunder_Bay
  215. America/Tijuana
  216. America/Toronto
  217. America/Tortola
  218. America/Vancouver
  219. America/Virgin
  220. America/Whitehorse
  221. America/Winnipeg
  222. America/Yakutat
  223. America/Yellowknife
  224. Antarctica/Casey
  225. Antarctica/Davis
  226. Antarctica/DumontDUrville
  227. Antarctica/Macquarie
  228. Antarctica/Mawson
  229. Antarctica/McMurdo
  230. Antarctica/Palmer
  231. Antarctica/Rothera
  232. Antarctica/South_Pole
  233. Antarctica/Syowa
  234. Antarctica/Vostok
  235. Arctic/Longyearbyen
  236. Asia/Aden
  237. Asia/Almaty
  238. Asia/Amman
  239. Asia/Anadyr
  240. Asia/Aqtau
  241. Asia/Aqtobe
  242. Asia/Ashgabat
  243. Asia/Ashkhabad
  244. Asia/Baghdad
  245. Asia/Bahrain
  246. Asia/Baku
  247. Asia/Bangkok
  248. Asia/Beirut
  249. Asia/Bishkek
  250. Asia/Brunei
  251. Asia/Calcutta
  252. Asia/Choibalsan
  253. Asia/Chongqing
  254. Asia/Chungking
  255. Asia/Colombo
  256. Asia/Dacca
  257. Asia/Damascus
  258. Asia/Dhaka
  259. Asia/Dili
  260. Asia/Dubai
  261. Asia/Dushanbe
  262. Asia/Gaza
  263. Asia/Harbin
  264. Asia/Hebron
  265. Asia/Ho_Chi_Minh
  266. Asia/Hong_Kong
  267. Asia/Hovd
  268. Asia/Irkutsk
  269. Asia/Istanbul
  270. Asia/Jakarta
  271. Asia/Jayapura
  272. Asia/Jerusalem
  273. Asia/Kabul
  274. Asia/Kamchatka
  275. Asia/Karachi
  276. Asia/Kashgar
  277. Asia/Kathmandu
  278. Asia/Katmandu
  279. Asia/Kolkata
  280. Asia/Krasnoyarsk
  281. Asia/Kuala_Lumpur
  282. Asia/Kuching
  283. Asia/Kuwait
  284. Asia/Macao
  285. Asia/Macau
  286. Asia/Magadan
  287. Asia/Makassar
  288. Asia/Manila
  289. Asia/Muscat
  290. Asia/Nicosia
  291. Asia/Novokuznetsk
  292. Asia/Novosibirsk
  293. Asia/Omsk
  294. Asia/Oral
  295. Asia/Phnom_Penh
  296. Asia/Pontianak
  297. Asia/Pyongyang
  298. Asia/Qatar
  299. Asia/Qyzylorda
  300. Asia/Rangoon
  301. Asia/Riyadh
  302. Asia/Riyadh87
  303. Asia/Riyadh88
  304. Asia/Riyadh89
  305. Asia/Saigon
  306. Asia/Sakhalin
  307. Asia/Samarkand
  308. Asia/Seoul
  309. Asia/Shanghai
  310. Asia/Singapore
  311. Asia/Taipei
  312. Asia/Tashkent
  313. Asia/Tbilisi
  314. Asia/Tehran
  315. Asia/Tel_Aviv
  316. Asia/Thimbu
  317. Asia/Thimphu
  318. Asia/Tokyo
  319. Asia/Ujung_Pandang
  320. Asia/Ulaanbaatar
  321. Asia/Ulan_Bator
  322. Asia/Urumqi
  323. Asia/Vientiane
  324. Asia/Vladivostok
  325. Asia/Yakutsk
  326. Asia/Yekaterinburg
  327. Asia/Yerevan
  328. Atlantic/Azores
  329. Atlantic/Bermuda
  330. Atlantic/Canary
  331. Atlantic/Cape_Verde
  332. Atlantic/Faeroe
  333. Atlantic/Faroe
  334. Atlantic/Jan_Mayen
  335. Atlantic/Madeira
  336. Atlantic/Reykjavik
  337. Atlantic/South_Georgia
  338. Atlantic/St_Helena
  339. Atlantic/Stanley
  340. Australia/ACT
  341. Australia/Adelaide
  342. Australia/Brisbane
  343. Australia/Broken_Hill
  344. Australia/Canberra
  345. Australia/Currie
  346. Australia/Darwin
  347. Australia/Eucla
  348. Australia/Hobart
  349. Australia/LHI
  350. Australia/Lindeman
  351. Australia/Lord_Howe
  352. Australia/Melbourne
  353. Australia/NSW
  354. Australia/North
  355. Australia/Perth
  356. Australia/Queensland
  357. Australia/South
  358. Australia/Sydney
  359. Australia/Tasmania
  360. Australia/Victoria
  361. Australia/West
  362. Australia/Yancowinna
  363. BET
  364. BST
  365. Brazil/Acre
  366. Brazil/DeNoronha
  367. Brazil/East
  368. Brazil/West
  369. CAT
  370. CET
  371. CNT
  372. CST
  373. CST6CDT
  374. CTT
  375. Canada/Atlantic
  376. Canada/Central
  377. Canada/East-Saskatchewan
  378. Canada/Eastern
  379. Canada/Mountain
  380. Canada/Newfoundland
  381. Canada/Pacific
  382. Canada/Saskatchewan
  383. Canada/Yukon
  384. Chile/Continental
  385. Chile/EasterIsland
  386. Cuba
  387. EAT
  388. ECT
  389. EET
  390. EST
  391. EST5EDT
  392. Egypt
  393. Eire
  394. Etc/GMT
  395. Etc/GMT+0
  396. Etc/GMT+1
  397. Etc/GMT+10
  398. Etc/GMT+11
  399. Etc/GMT+12
  400. Etc/GMT+2
  401. Etc/GMT+3
  402. Etc/GMT+4
  403. Etc/GMT+5
  404. Etc/GMT+6
  405. Etc/GMT+7
  406. Etc/GMT+8
  407. Etc/GMT+9
  408. Etc/GMT-0
  409. Etc/GMT-1
  410. Etc/GMT-10
  411. Etc/GMT-11
  412. Etc/GMT-12
  413. Etc/GMT-13
  414. Etc/GMT-14
  415. Etc/GMT-2
  416. Etc/GMT-3
  417. Etc/GMT-4
  418. Etc/GMT-5
  419. Etc/GMT-6
  420. Etc/GMT-7
  421. Etc/GMT-8
  422. Etc/GMT-9
  423. Etc/GMT0
  424. Etc/Greenwich
  425. Etc/UCT
  426. Etc/UTC
  427. Etc/Universal
  428. Etc/Zulu
  429. Europe/Amsterdam
  430. Europe/Andorra
  431. Europe/Athens
  432. Europe/Belfast
  433. Europe/Belgrade
  434. Europe/Berlin
  435. Europe/Bratislava
  436. Europe/Brussels
  437. Europe/Bucharest
  438. Europe/Budapest
  439. Europe/Chisinau
  440. Europe/Copenhagen
  441. Europe/Dublin
  442. Europe/Gibraltar
  443. Europe/Guernsey
  444. Europe/Helsinki
  445. Europe/Isle_of_Man
  446. Europe/Istanbul
  447. Europe/Jersey
  448. Europe/Kaliningrad
  449. Europe/Kiev
  450. Europe/Lisbon
  451. Europe/Ljubljana
  452. Europe/London
  453. Europe/Luxembourg
  454. Europe/Madrid
  455. Europe/Malta
  456. Europe/Mariehamn
  457. Europe/Minsk
  458. Europe/Monaco
  459. Europe/Moscow
  460. Europe/Nicosia
  461. Europe/Oslo
  462. Europe/Paris
  463. Europe/Podgorica
  464. Europe/Prague
  465. Europe/Riga
  466. Europe/Rome
  467. Europe/Samara
  468. Europe/San_Marino
  469. Europe/Sarajevo
  470. Europe/Simferopol
  471. Europe/Skopje
  472. Europe/Sofia
  473. Europe/Stockholm
  474. Europe/Tallinn
  475. Europe/Tirane
  476. Europe/Tiraspol
  477. Europe/Uzhgorod
  478. Europe/Vaduz
  479. Europe/Vatican
  480. Europe/Vienna
  481. Europe/Vilnius
  482. Europe/Volgograd
  483. Europe/Warsaw
  484. Europe/Zagreb
  485. Europe/Zaporozhye
  486. Europe/Zurich
  487. GB
  488. GB-Eire
  489. GMT
  490. GMT0
  491. Greenwich
  492. HST
  493. Hongkong
  494. IET
  495. IST
  496. Iceland
  497. Indian/Antananarivo
  498. Indian/Chagos
  499. Indian/Christmas
  500. Indian/Cocos
  501. Indian/Comoro
  502. Indian/Kerguelen
  503. Indian/Mahe
  504. Indian/Maldives
  505. Indian/Mauritius
  506. Indian/Mayotte
  507. Indian/Reunion
  508. Iran
  509. Israel
  510. JST
  511. Jamaica
  512. Japan
  513. Kwajalein
  514. Libya
  515. MET
  516. MIT
  517. MST
  518. MST7MDT
  519. Mexico/BajaNorte
  520. Mexico/BajaSur
  521. Mexico/General
  522. Mideast/Riyadh87
  523. Mideast/Riyadh88
  524. Mideast/Riyadh89
  525. NET
  526. NST
  527. NZ
  528. NZ-CHAT
  529. Navajo
  530. PLT
  531. PNT
  532. PRC
  533. PRT
  534. PST
  535. PST8PDT
  536. Pacific/Apia
  537. Pacific/Auckland
  538. Pacific/Chatham
  539. Pacific/Chuuk
  540. Pacific/Easter
  541. Pacific/Efate
  542. Pacific/Enderbury
  543. Pacific/Fakaofo
  544. Pacific/Fiji
  545. Pacific/Funafuti
  546. Pacific/Galapagos
  547. Pacific/Gambier
  548. Pacific/Guadalcanal
  549. Pacific/Guam
  550. Pacific/Honolulu
  551. Pacific/Johnston
  552. Pacific/Kiritimati
  553. Pacific/Kosrae
  554. Pacific/Kwajalein
  555. Pacific/Majuro
  556. Pacific/Marquesas
  557. Pacific/Midway
  558. Pacific/Nauru
  559. Pacific/Niue
  560. Pacific/Norfolk
  561. Pacific/Noumea
  562. Pacific/Pago_Pago
  563. Pacific/Palau
  564. Pacific/Pitcairn
  565. Pacific/Pohnpei
  566. Pacific/Ponape
  567. Pacific/Port_Moresby
  568. Pacific/Rarotonga
  569. Pacific/Saipan
  570. Pacific/Samoa
  571. Pacific/Tahiti
  572. Pacific/Tarawa
  573. Pacific/Tongatapu
  574. Pacific/Truk
  575. Pacific/Wake
  576. Pacific/Wallis
  577. Pacific/Yap
  578. Poland
  579. Portugal
  580. ROK
  581. SST
  582. Singapore
  583. SystemV/AST4
  584. SystemV/AST4ADT
  585. SystemV/CST6
  586. SystemV/CST6CDT
  587. SystemV/EST5
  588. SystemV/EST5EDT
  589. SystemV/HST10
  590. SystemV/MST7
  591. SystemV/MST7MDT
  592. SystemV/PST8
  593. SystemV/PST8PDT
  594. SystemV/YST9
  595. SystemV/YST9YDT
  596. Turkey
  597. UCT
  598. US/Alaska
  599. US/Aleutian
  600. US/Arizona
  601. US/Central
  602. US/East-Indiana
  603. US/Eastern
  604. US/Hawaii
  605. US/Indiana-Starke
  606. US/Michigan
  607. US/Mountain
  608. US/Pacific
  609. US/Pacific-New
  610. US/Samoa
  611. UTC
  612. Universal
  613. VST
  614. W-SU
  615. WET
  616. Zulu

 

Apache SubversionIt does not happen often, but when it does, I’m left scrambling and googling for how to retroactively set a comment on a specific Subversion revision.

Here’s my a note to myself on how to do it:

svn propset -r <revision> --revprop svn:log "Commit message" <URL>

where you need to plug in a <revision> and <URL>.

Mechanical-Menaerie-300This post outlines the benefits of using the final keyword in Java.

We are now in an age of complex multi-core CPU environments with virtual machines running functional programming features like lambdas in Java 8 and C#. Applications share more data between threads, component layers, and data stores. One of the features helping us deal with this complexity is immutability. Immutability helps us safely share objects between not only threads, but by also design between application components (more on this in a future article.) I inject simplicity in code whenever possible using the KISS principle: Keep It Simple Stupid.

When it comes to coding, my premise is simple: read-only is simpler than read-write.

Dealing with immutable variables and objects makes writing, understanding, and maintaining complex code simpler. I’ll discuss using final on parameters, local variables, and instance variables.

Using final parameters

The reason I like to use final on parameters is to enforce as much as possible the best practice of considering input to methods as read-only. Whether or not you enforce this best practice in your project is up to you. At least there is a way to do it (partially) in Java. If you’ve written method entry-exit logging code or long complex methods (not that you should), you usually end up needing to track a method’s input values. Using final on a parameter guarantees that the compiler will generate an error if you reassign a value to the parameter. This works great for primitive parameters. Beware, for object references, the compiler does not protect the object state from changing.

If you use a parameter or a local variable from an inner class, you do not have the choice, you must use final.

For me, consistency is important, so if you use final, use it consistently (=everywhere).

Using final local variables

The reason I like to use final on a local variable is that is lets me declare intent: This variable is read-only; a variable without final is read-write. As a programmer, I’d better know what I want to do. Declaring intent and having the compiler enforce it on my behalf is a good thing.

Using final for instance variable

This is how to achieve object immutability, which is a separate topic, but I mention it for completeness. For objects, the reference is immutable, the object itself may not be.

Parting thoughts

I’ve read that most of code’s lifetime is spent being read and maintained, compared to the time it took to originally write it. What is important to me is the stable code you end up with at the end of a coding session or sprint, not the fact that you had to add and remove keywords here and there in the process. If you always keep your intentions and code matched up, the code will be that much easier to debug and maintain.

Using the ‘final’ keyword is an unfortunate inheritance from the previous generation of languages. With functional programming on the rise, my bet is that we’ll see more mainstream languages that will default to values being immutable and you’ll have to go out of your way to declare them mutable. The fact that the default today is read-write does not matter and does not mean it is the right thing to do. It’s just historical baggage for lazy typists :)

a-zI’m revisiting my post Understanding JUnit method order execution to discuss how to fix tests that depend on method order by using JUnit 4.11.

Let’s start with a rule: You should not create test methods that depend on the order in which they are executed.

If you do have such tests and they are failing randomly or rarely, this is why: JUnit relies on Java’s reflection API to get which test methods to execute. The problem is that the API does not define the order of the methods it returns. Your tests may work for a long time and then fail, apparently randomly. The things is, you’ve just been lucky all along and relying on the Java run-time giving you a consistent answer when it makes no such guarantee.

You may even see some very confusing behavior like a superclass’ test methods being mixed in with its subclass. I’ve seen this in Eclipse and Ant for example.

JUnit 4.11 provides a workarounds for this behavior with a new class-level annotation: FixMethodOrder(MethodSorters.NAME_ASCENDING). For example:

 @FixMethodOrder(MethodSorters.NAME_ASCENDING)
 public class MyTestCase { ... }
 

The annotation FixMethodOrder sorts the test methods in lexicographic method name order, and uses Method#toString() to break ties.

The recipe is: (1) Use @FixMethodOrder, (2) Fix your tests, (3) Remove @FixMethodOrder.

JUnit is available from GitHub.

Follow

Get every new post delivered to your Inbox.

Join 317 other followers

%d bloggers like this: