<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://www.typea.info/tips_/index.php?action=history&amp;feed=atom&amp;title=SJC-P_%E9%9D%99%E7%9A%84%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88</id>
	<title>SJC-P 静的インポート - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://www.typea.info/tips_/index.php?action=history&amp;feed=atom&amp;title=SJC-P_%E9%9D%99%E7%9A%84%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88"/>
	<link rel="alternate" type="text/html" href="https://www.typea.info/tips_/index.php?title=SJC-P_%E9%9D%99%E7%9A%84%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88&amp;action=history"/>
	<updated>2026-04-29T12:52:24Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://www.typea.info/tips_/index.php?title=SJC-P_%E9%9D%99%E7%9A%84%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88&amp;diff=6595&amp;oldid=prev</id>
		<title>2020年2月16日 (日) 04:32にPirotoによる</title>
		<link rel="alternate" type="text/html" href="https://www.typea.info/tips_/index.php?title=SJC-P_%E9%9D%99%E7%9A%84%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88&amp;diff=6595&amp;oldid=prev"/>
		<updated>2020-02-16T04:32:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2020年2月16日 (日) 04:32時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;1行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;1行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==SJC-P 静的インポート==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/ins&gt;SJC-P 静的インポート&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]]&lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*静的インポートは、import static とする。&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*静的インポートは、import static とする。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Piroto</name></author>
		
	</entry>
	<entry>
		<id>https://www.typea.info/tips_/index.php?title=SJC-P_%E9%9D%99%E7%9A%84%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88&amp;diff=3661&amp;oldid=prev</id>
		<title>2020年2月15日 (土) 08:05にPirotoによる</title>
		<link rel="alternate" type="text/html" href="https://www.typea.info/tips_/index.php?title=SJC-P_%E9%9D%99%E7%9A%84%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88&amp;diff=3661&amp;oldid=prev"/>
		<updated>2020-02-15T08:05:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2020年2月15日 (土) 08:05時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l24&quot; &gt;24行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;24行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          out.println(toHexString(Long.MIN_VALUE)); // どのtoHexString()が利用されるかは、引数で判定(4)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          out.println(toHexString(Long.MIN_VALUE)); // どのtoHexString()が利用されるかは、引数で判定(4)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          for (int i=0x0; i&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;&lt;/del&gt;=0xFF; i++) {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          for (int i=0x0; i&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;lt;&lt;/ins&gt;=0xFF; i++) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;              out.format(&amp;quot;%1$02X &amp;quot;, i);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;              out.format(&amp;quot;%1$02X &amp;quot;, i);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;              if (((i+1) % 8) == 0) out.println(&amp;quot;&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;              if (((i+1) % 8) == 0) out.println(&amp;quot;&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Piroto</name></author>
		
	</entry>
	<entry>
		<id>https://www.typea.info/tips_/index.php?title=SJC-P_%E9%9D%99%E7%9A%84%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88&amp;diff=2506&amp;oldid=prev</id>
		<title>Piroto: ページの作成:「==SJC-P 静的インポート==    *静的インポートは、import static とする。  *クラス名.静的要素 とすることで、配下の静的要素をイン…」</title>
		<link rel="alternate" type="text/html" href="https://www.typea.info/tips_/index.php?title=SJC-P_%E9%9D%99%E7%9A%84%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88&amp;diff=2506&amp;oldid=prev"/>
		<updated>2020-02-15T07:35:39Z</updated>

		<summary type="html">&lt;p&gt;ページの作成:「==SJC-P 静的インポート==    *静的インポートは、import static とする。  *クラス名.静的要素 とすることで、配下の静的要素をイン…」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==SJC-P 静的インポート==&lt;br /&gt;
&lt;br /&gt;
*静的インポートは、import static とする。&lt;br /&gt;
*クラス名.静的要素 とすることで、配下の静的要素をインポートできる。(1)&lt;br /&gt;
*クラス名.* とすることで、配下の静的要素を一括インポートできる。(2)&lt;br /&gt;
*曖昧な場合、コンパイルエラー(3)&lt;br /&gt;
*競合する場合でも、明示的にインポートしたものがあれば、そちらが利用される。(3)&lt;br /&gt;
*同一メソッド名が存在しても、呼び出すメソッドは引数で判定される。(4)&lt;br /&gt;
&lt;br /&gt;
 package staticimport;&lt;br /&gt;
 &lt;br /&gt;
 import static java.lang.System.out;         // Systemクラスの静的 out オブジェクトをインポート(1)&lt;br /&gt;
 import static java.lang.Math.*;             // オブジェクト配下の静的要素をすべてインポート(2)&lt;br /&gt;
 import static java.lang.Integer.MAX_VALUE;  // 定数(static final)をインポート(3)&lt;br /&gt;
 import static java.lang.Long.*;&lt;br /&gt;
 import static java.lang.Double.*;&lt;br /&gt;
 &lt;br /&gt;
 public class StaticImportTest1 {&lt;br /&gt;
     public static void main(String[] args) {&lt;br /&gt;
         // System.outとする必要がなくなる&lt;br /&gt;
         out.println(PI);                          // Math.PI が利用できる&lt;br /&gt;
         out.println(toHexString(MAX_VALUE));      // Integer.MAX_VALUE が、Long.*、Double.* より強い(3)&lt;br /&gt;
      // out.println(toHexString(MIN_VALUE));      // NG コンパイルエラー MIN_VALUE がlongかdoubleか曖昧 (3)&lt;br /&gt;
         out.println(toHexString(Long.MIN_VALUE)); // どのtoHexString()が利用されるかは、引数で判定(4)&lt;br /&gt;
      &lt;br /&gt;
         for (int i=0x0; i&amp;lt;=0xFF; i++) {&lt;br /&gt;
             out.format(&amp;quot;%1$02X &amp;quot;, i);&lt;br /&gt;
             if (((i+1) % 8) == 0) out.println(&amp;quot;&amp;quot;);&lt;br /&gt;
         }&lt;br /&gt;
     }&lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>Piroto</name></author>
		
	</entry>
</feed>