The document discusses synchronization and concurrency in Java. It covers synchronized blocks and methods, volatile variables, Lock objects from java.util.concurrent package, and some basics of Java memory model and threads. The presenter also mentions Effective Java book and tools like Eclipse and jvisualvm for monitoring concurrency issues.Read less
Java6 SEのJTableのフィルタリングを調べてて、サンプル発見。 How to Use Tables (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components) 「Filter Text:」に正規表現で条件を入力すると、一致したデータだけが表示される。 しかし、第一カラムの「FirstName」しか対象にしていない模様。 どこで何と比較しているのかソース読んでも分からなかったorz。 Eclipseでデバッグで追いかけたりしながらようやく判明。 結論 private void newFilter() { RowFilter<MyTableModel, Object> rf = null; //If current expression doesn't parse, don't upda
This document discusses the Java methods equals(), hashCode(), and toString(). It provides examples of properly overriding these methods, including following the rules for equals() by comparing fields, implementing hashCode() consistently with equals(), and constructing informative string representations with toString(). IDEs and the Apache Commons Lang library can assist with automatically genera
Not your computer? Use a private browsing window to sign in. Learn more
Through some odd twists in the road over the past year, and a tardis encountered along the way, I find myself starting employment at Google today. One of the toughest things about life is making choices. I had a hard time saying "no" to a bunch of other excellent possibilities. I find it odd that this time I'm taking the road more travelled by, but it looks like interesting fun with huge leverage.
2011年03月10日 Javaのトリビア:javacが自動生成するメソッド(2) 前回の続きです。 知っていたからといってどうということはないのですが、Javaの内部クラスの理解が深まれば幸いです。 内部クラスから外部クラスのprivateの変数の読み書き 前回は内部クラスから外部クラスのprivateのメソッドの呼び出しについて調べました。同じようなことが内部クラスから外部クラスのprivateの変数の読み書きでも起こります。Java仮想マシンのレベルでは他のクラスからprivateの変数の読み書きはできないので、javacが抜け道のメソッドを自動生成します。 class A2 { InnerA innerA = new InnerA(); private int v; class InnerA { void call_outer() { v = v ^ 1; System.out.p
2011年03月08日 Javaのトリビア: javacが自動生成するメソッド 先日の記事のスタックトレースをよく見ると、android.app.ActivityThread.access$2300 という不思議な名前のメソッドが呼ばれています。ソースコードをさがしてもこのメソッドは見当たりません。実はこれはjavacが自動生成したメソッドなのです。 I/Hello ( 829): on Start I/Hello ( 829): java.lang.Throwable I/Hello ( 829): at com.example.helloandroid.HelloAndroid.onStart(HelloAndroid.java:22) I/Hello ( 829): at android.app.Instrumentation.callActivityOnStart(Instrume
2/23に「Java: The Good Parts」という本がオライリージャパンから発売されます。配本は22日らしいので、早いところなら明日には売ってるのかもしれません。O’Reilly Japan - Java: The Good PartsJava: The Good Parts作者: Jim Waldo,矢野勉(監訳),笹井崇司出版社/メーカー: オライリージャパン発売日: 2011/02/24メディア: 大型本クリック: 10回この商品を含むブログ (8件) を見る翻訳は笹井崇司さん、監訳は私が行いました。目次は次のような感じです。 型システム 例外 パッケージガベージコレクションJava仮想マシンJavaDoc コレクション リモートメソッド呼び出し(RMI)とオブジェクトシリアライゼーション 並行処理 開発者のエコロジー目次をみれば分かるように、JavaといってもJavaに付
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く