$B>.NSMM(B<br>$B$$$D$b$*@$OC$K$J$C$F$*$j$^$9!#(B<br><br>$B$465<x$"$j$,$H$&$4$6$$$^$7$?!#(B<br>$B$d$O$j(Bfor$B$G$^$o$7$F$H$$$&7A$J$s$G$9$M!#(B<br>$B$"$j$,$H$&$4$6$$$^$7$?!#(B<br><br><br><div class="gmail_quote">2008/5/15 Koichi Kobayashi <<a href="mailto:koichik@gmail.com">koichik@gmail.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
$B>.NS(B (koichik) $B$G$9!%(B<br>
<br>
Date: Thu, 15 May 2008 15:05:36 +0900<br>
From: "Mitsutaka Sato" <<a href="mailto:miztaka@gmail.com">miztaka@gmail.com</a>><br>
To: seasar-user <<a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a>><br>
Subject: [Seasar-user:14182] [teeda] Map#{"label":"value"} $B$J(BList Item $B$+$i(B<br>
<div class="Ih2E3d"><br>
> $B$3$NItJ,$N;EAH$_$,!"(Bvalue $B$r85$K(B ~ Items $B$+$i(B label $B$r<hF@$7$F$$$k$N$@$m$&$H;W$C$F$$$k$N$G$9$,!"(B<br>
> Map$B$N(Bvalue$B$+$i(Bkey$B$rFCDj$9$k;EAH$_$C$F$I$s$JIw$K$7$F$$$k$s$G$7$g$&$+!)(B<br>
<br>
</div>public Object findKey(Map o, Object v) {<br>
for (Entry e : map.entrySet()) {<br>
if (v.equals(e.getValue()) {<br>
return e.getKey();<br>
}<br>
}<br>
return null;<br>
}<br>
<br>
$B$_$?$$$J46$8$G$9!%(B<br>
<br>
<br>
--<br>
<component name="koichik"><br>
<property name="fullName">"Koichi Kobayashi"</property><br>
<property name="email">"<a href="mailto:koichik@gmail.com">koichik@gmail.com</a>"</property><br>
<property name="blog">"<a href="http://d.hatena.ne.jp/koichik" target="_blank">http://d.hatena.ne.jp/koichik</a>"</property><br>
</component><br>
<br>
_______________________________________________<br>
Seasar-user mailing list<br>
<a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
<a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
</blockquote></div><br>