このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


null
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.16

API

SDK

Tips ‘n’ Tricks

Miscellaneous

InterfaceContainer (Java UNO Runtime 言及/関連)
UDK 3.2.7 Java API 言及/関連

com.sun.星/主役にする.lib.uno.helper
Class InterfaceContainer

java.lang.反対する
  extended by com.sun.星/主役にする.lib.uno.helper.InterfaceContainer
All 器具/実施するd Interfaces:
Cloneable

public class InterfaceContainer
延長するs 反対する
器具/実施するs Cloneable

This class is a コンテナ for interfaces. It is ーするつもりであるd to be used as 貯蔵 for UNO interface of a 明確な/細部 type. The (弁護士の)依頼人 has to 確実にする that the コンテナ 含む/封じ込めるs only elements of the same type. If one needs to 蓄える/店 different types, then one uses OMultiTypeInterfaceContainer. When the (弁護士の)依頼人 calls disposeAndClear, the 含む/封じ込めるd 反対するs are queried for com.sun.星/主役にする.lang.XEventListener and 配置する/処分する/したい気持ちにさせるing is called. Afterwards the 名簿(に載せる)/表(にあげる) cannot be used anymore. This 名簿(に載せる)/表(にあげる) does not 許す null values. All methods are thread-安全な. The same 持つ/拘留するs true for iterators, 問題/発行するd by this class. Several iterators can 存在する at the same time and can also be 修正するd (java.util.ListIterator.追加する, java.util.ListIterator.除去する etc.). To make this work, the InterfaceContainer 供給するs the iterators with copys of the 名簿(に載せる)/表(にあげる)'s data. The 追加する and 除去する calls on the iterator 修正する the data in the iterator's 名簿(に載せる)/表(にあげる) 同様に as in InterfaceContainer. Modification on InterfaceContainer, however, are not synchronized with 存在するing iterators. For example

 InterfaceContainer cont= new InterfaceContainer();
 ListIterator it= cont.listIterator();

 cont.追加する( someInterface);
 // one cannot 得る someInterface through iterator it,
 // instead get a new iterator
 it= cont.listIterator();
 // it now keeps a fresh copy of cont and hence 含む/封じ込めるs someInterface

 // 追加するing an interface on the iterator will 原因(となる) the interface also to be 追加するd
 // to InterfaceContainer
 it.追加する( someOtherInterface);
 // someOtherInterface is now in it and cont
 ListIterator it2= cont.listIterator();
 //someOtherInterface can also be 得るd by all newly created iterators, e.g. it2.
 
The 追加する and 除去する methods of an iterator work on a particular 場所 within a 名簿(に載せる)/表(にあげる), 扶養家族 on what the value of the iterator's cursor is. After the call the value at the appropriate position has been 修正するd. Since the iterator received a copy of InterfaceContainer's data, InterfaceContainer may have been 修正するd (by 名簿(に載せる)/表(にあげる) methods or through other iterators). Therefore both data 始める,決めるs may not 含む/封じ込める the same elements anymore. その結果, a 名簿(に載せる)/表(にあげる) method that 修正するs data, does not 修正する InterfaceContainer's data at a 確かな 索引 (によれば the iterators cursor). Instead, new elements are 追加するd at the end of 名簿(に載せる)/表(にあげる). When Iterator.除去する is called, then the first occurrence of that element in InterfaceContainer is 除去するd. ListIterator.始める,決める is not supported. A lot of methods 似ている those of the to java.util.名簿(に載せる)/表(にあげる) interface, allthough this class does not 器具/実施する it. However, the 名簿(に載せる)/表(にあげる) iterators returned, for example by the listIterator method 器具/実施する the java.util.ListIterator interface. 器具/実施するing the 名簿(に載せる)/表(にあげる) interface would mean to support all 非,不,無 - optional methods as 定める/命ずるd by the interface 宣言. の中で those is the subList method which returns a 範囲 of values of the 名簿(に載せる)/表(にあげる)'s data wrapped in a 名簿(に載せる)/表(にあげる) 実施. Changes to the sub 名簿(に載せる)/表(にあげる) have to 原因(となる) changes in the main 名簿(に載せる)/表(にあげる). This is a problem, since this class is to be used in a multi-threaded 環境. The sub 名簿(に載せる)/表(にあげる) could work on a copy as the iterators do, but all the 機能(する)/行事s which work on an given 索引 could not be 適切に supported. Unfortunatly, the 名簿(に載せる)/表(にあげる) interface documentation 明言する/公表するs that all optional methods 器具/実施するd by the 名簿(に載せる)/表(にあげる) have to be 器具/実施するd in the sub 名簿(に載せる)/表(にあげる). That would mean to do without all those 批判的な methods, allthough they might work 井戸/弁護士席 in the "main 名簿(に載せる)/表(にあげる)" (as …に反対するd to sub 名簿(に載せる)/表(にあげる)).


建設者 要約
InterfaceContainer()
          Creates a new instance of InterfaceContainer
InterfaceContainer(int initialCapacity)
          建設するs an empty 名簿(に載せる)/表(にあげる) with the 明示するd 初期の capacity.
 
Method 要約
 無効の 追加する(int 索引, 反対する element)
          挿入するs the 明示するd element at the 明示するd position in this 名簿(に載せる)/表(にあげる).
 boolean 追加する(反対する o)
          Appends the 明示するd element to the end of this 名簿(に載せる)/表(にあげる).
 boolean addAll(Collection c)
          Appends all of the elements in the 明示するd Collection to the end of this 名簿(に載せる)/表(にあげる), in the order that they are returned by the 明示するd Collection's Iterator.
 boolean addAll(int 索引, Collection c)
          挿入するs all of the elements in the 明示するd Collection into this 名簿(に載せる)/表(にあげる), starting at the 明示するd position.
 無効の (疑いを)晴らす()
          除去するs all of the elements from this 名簿(に載せる)/表(にあげる).
 反対する clone()
          Returns a shallow copy of this ArrayList instance.
 boolean 含む/封じ込めるs(反対する elem)
          Returns true if this 名簿(に載せる)/表(にあげる) 含む/封じ込めるs the 明示するd element.
 boolean containsAll(Collection collection)
           
 無効の disposeAndClear(EventObject evt)
           
 無効の ensureCapacity(int minCapacity)
          増加するs the capacity of this ArrayList instance, if necessary, to 確実にする that it can 持つ/拘留する at least the number of elements 明示するd by the 最小限 capacity argument.
 反対する get(int 索引)
          Returns the element at the 明示するd position in this 名簿(に載せる)/表(にあげる).
 int indexOf(反対する elem)
          Searches for the first occurence of the given argument, 実験(する)ing for equality using the equals method.
 boolean isEmpty()
          実験(する)s if this 名簿(に載せる)/表(にあげる) has no elements.
 Iterator iterator()
           
 int lastIndexOf(反対する elem)
          Returns the 索引 of the last occurrence of the 明示するd 反対する in this 名簿(に載せる)/表(にあげる).
 ListIterator listIterator()
           
 ListIterator listIterator(int 索引)
          The iterator keeps a copy of the 名簿(に載せる)/表(にあげる).
 反対する 除去する(int 索引)
          除去するs the element at the 明示するd position in this 名簿(に載せる)/表(にあげる).
 boolean 除去する(反対する obj)
          Parameter obj may
 boolean removeAll(Collection collection)
           
 boolean retainAll(Collection collection)
           
 反対する 始める,決める(int 索引, 反対する element)
          Not supported.
 int size()
          Returns the number of elements in this 名簿(に載せる)/表(にあげる).
 反対する[] toArray()
          Returns an array 含む/封じ込めるing all of the elements in this 名簿(に載せる)/表(にあげる) in the 訂正する order.
 反対する[] toArray(反対する[] a)
          Returns an array 含む/封じ込めるing all of the elements in this 名簿(に載せる)/表(にあげる) in the 訂正する order.
 無効の trimToSize()
          削減するs the capacity of this ArrayList instance to be the 名簿(に載せる)/表(にあげる)'s 現在の size.
 
Methods 相続するd from class java.lang.反対する
equals, 完結する, getClass, hashCode, 通知する, notifyAll, toString, wait, wait, wait
 

建設者 詳細(に述べる)

InterfaceContainer

public InterfaceContainer()
Creates a new instance of InterfaceContainer


InterfaceContainer

public InterfaceContainer(int initialCapacity)
建設するs an empty 名簿(に載せる)/表(にあげる) with the 明示するd 初期の capacity.

Parameters:
initialCapacity - the 初期の capacity of the 名簿(に載せる)/表(にあげる).
Throws:
IllegalArgumentException - if the 明示するd 初期の capacity is 消極的な
Method 詳細(に述べる)

trimToSize

public 無効の trimToSize()
削減するs the capacity of this ArrayList instance to be the 名簿(に載せる)/表(にあげる)'s 現在の size. An 使用/適用 can use this 操作/手術 to 最小限に減らす the 貯蔵 of an ArrayList instance.


ensureCapacity

public 無効の ensureCapacity(int minCapacity)
増加するs the capacity of this ArrayList instance, if necessary, to 確実にする that it can 持つ/拘留する at least the number of elements 明示するd by the 最小限 capacity argument.

Parameters:
minCapacity - the 願望(する)d 最小限 capacity.

追加する

public boolean 追加する(反対する o)
Appends the 明示するd element to the end of this 名簿(に載せる)/表(にあげる).

Parameters:
o - element to be appended to this 名簿(に載せる)/表(にあげる).
Returns:
true (as per the general 契約 of Collection.追加する).

追加する

public 無効の 追加する(int 索引,
                反対する element)
挿入するs the 明示するd element at the 明示するd position in this 名簿(に載せる)/表(にあげる). 転換s the element 現在/一般に at that position (if any) and any その後の elements to the 権利 (追加するs one to their indices).

Parameters:
索引 - 索引 at which the 明示するd element is to be 挿入するd.
element - element to be 挿入するd.
Throws:
IndexOutOfBoundsException - if 索引 is out of 範囲 (索引 < 0 || 索引 > size()).

addAll

public boolean addAll(Collection c)
Appends all of the elements in the 明示するd Collection to the end of this 名簿(に載せる)/表(にあげる), in the order that they are returned by the 明示するd Collection's Iterator. The 行為 of this 操作/手術 is undefined if the 明示するd Collection is 修正するd while the 操作/手術 is in 進歩. (This 暗示するs that the 行為 of this call is undefined if the 明示するd Collection is this 名簿(に載せる)/表(にあげる), and this 名簿(に載せる)/表(にあげる) is nonempty.)

Parameters:
c - the elements to be 挿入するd into this 名簿(に載せる)/表(にあげる).
Throws:
IndexOutOfBoundsException - if 索引 out of 範囲 (索引 < 0 || 索引 > size()).

addAll

public boolean addAll(int 索引,
                      Collection c)
挿入するs all of the elements in the 明示するd Collection into this 名簿(に載せる)/表(にあげる), starting at the 明示するd position. 転換s the element 現在/一般に at that position (if any) and any その後の elements to the 権利 (増加するs their indices). The new elements will appear in the 名簿(に載せる)/表(にあげる) in the order that they are returned by the 明示するd Collection's iterator.

Parameters:
索引 - 索引 at which to 挿入する first element from the 明示するd collection.
c - elements to be 挿入するd into this 名簿(に載せる)/表(にあげる).
Throws:
IndexOutOfBoundsException - if 索引 out of 範囲 (索引 < 0 || 索引 > size()).

(疑いを)晴らす

public 無効の (疑いを)晴らす()
除去するs all of the elements from this 名簿(に載せる)/表(にあげる). The 名簿(に載せる)/表(にあげる) will be empty after this call returns.


含む/封じ込めるs

public boolean 含む/封じ込めるs(反対する elem)
Returns true if this 名簿(に載せる)/表(にあげる) 含む/封じ込めるs the 明示するd element.

Parameters:
elem - element whose presence in this 名簿(に載せる)/表(にあげる) is to be 実験(する)d.

containsAll

public boolean containsAll(Collection collection)

get

public 反対する get(int 索引)
Returns the element at the 明示するd position in this 名簿(に載せる)/表(にあげる).

Parameters:
索引 - 索引 of element to return.
Returns:
the element at the 明示するd position in this 名簿(に載せる)/表(にあげる).
Throws:
IndexOutOfBoundsException - if 索引 is out of 範囲 (索引 < 0 || 索引 >= size()).

indexOf

public int indexOf(反対する elem)
Searches for the first occurence of the given argument, 実験(する)ing for equality using the equals method.

Parameters:
elem - an 反対する.
Returns:
the 索引 of the first occurrence of the argument in this 名簿(に載せる)/表(にあげる); returns -1 if the 反対する is not 設立する.
See Also:
反対する.equals(反対する)

isEmpty

public boolean isEmpty()
実験(する)s if this 名簿(に載せる)/表(にあげる) has no elements.

Returns:
true if this 名簿(に載せる)/表(にあげる) has no elements; 誤った さもなければ.

iterator

public Iterator iterator()

lastIndexOf

public int lastIndexOf(反対する elem)
Returns the 索引 of the last occurrence of the 明示するd 反対する in this 名簿(に載せる)/表(にあげる).

Parameters:
elem - the 願望(する)d element.
Returns:
the 索引 of the last occurrence of the 明示するd 反対する in this 名簿(に載せる)/表(にあげる); returns -1 if the 反対する is not 設立する.

clone

public 反対する clone()
Returns a shallow copy of this ArrayList instance. The 含む/封じ込めるd 言及/関連s are copied but the 反対するs not.

無視/無効s:
clone in class 反対する
Returns:
a clone of this 名簿(に載せる)/表(にあげる) instance.

listIterator

public ListIterator listIterator()

listIterator

public ListIterator listIterator(int 索引)
The iterator keeps a copy of the 名簿(に載せる)/表(にあげる). Changes to InterfaceContainer do not 影響する/感情 the data of the iterator. Conversly, changes to the iterator are 影響 InterfaceContainer.


除去する

public 反対する 除去する(int 索引)
除去するs the element at the 明示するd position in this 名簿(に載せる)/表(にあげる). 転換s any その後の elements to the left (subtracts one from their indices).

Parameters:
索引 - the 索引 of the element to 除去するd.
Returns:
the element that was 除去するd from the 名簿(に載せる)/表(にあげる).
Throws:
IndexOutOfBoundsException - if 索引 out of 範囲 (索引 < 0 || 索引 >= size()).

除去する

public boolean 除去する(反対する obj)
Parameter obj may


removeAll

public boolean removeAll(Collection collection)

retainAll

public boolean retainAll(Collection collection)

始める,決める

public 反対する 始める,決める(int 索引,
                  反対する element)
Not supported.

Parameters:
索引 - 索引 of element to 取って代わる.
element - element to be 蓄える/店d at the 明示するd position.
Returns:
the element 以前 at the 明示するd position.
Throws:
IndexOutOfBoundsException - if 索引 out of 範囲 (索引 < 0 || 索引 >= size()).

size

public int size()
Returns the number of elements in this 名簿(に載せる)/表(にあげる).

Returns:
the number of elements in this 名簿(に載せる)/表(にあげる).

toArray

public 反対する[] toArray()
Returns an array 含む/封じ込めるing all of the elements in this 名簿(に載せる)/表(にあげる) in the 訂正する order.

Returns:
an array 含む/封じ込めるing all of the elements in this 名簿(に載せる)/表(にあげる) in the 訂正する order.

toArray

public 反対する[] toArray(反対する[] a)
Returns an array 含む/封じ込めるing all of the elements in this 名簿(に載せる)/表(にあげる) in the 訂正する order. The runtime type of the returned array is that of the 明示するd array. If the 名簿(に載せる)/表(にあげる) fits in the 明示するd array, it is returned therein. さもなければ, a new array is 配分するd with the runtime type of the 明示するd array and the size of this 名簿(に載せる)/表(にあげる).

If the 名簿(に載せる)/表(にあげる) fits in the 明示するd array with room to spare (i.e., the array has more elements than the 名簿(に載せる)/表(にあげる)), the element in the array すぐに に引き続いて the end of the collection is 始める,決める to null. This is useful in 決定するing the length of the 名簿(に載せる)/表(にあげる) only if the 報知係 knows that the 名簿(に載せる)/表(にあげる) does not 含む/封じ込める any null elements.

Parameters:
a - the array into which the elements of the 名簿(に載せる)/表(にあげる) are to be 蓄える/店d, if it is big enough; さもなければ, a new array of the same runtime type is 配分するd for this 目的.
Returns:
an array 含む/封じ込めるing the elements of the 名簿(に載せる)/表(にあげる).
Throws:
ArrayStoreException - if the runtime type of a is not a supertype of the runtime type of every element in this 名簿(に載せる)/表(にあげる).

disposeAndClear

public 無効の disposeAndClear(EventObject evt)

UDK 3.2.7 Java API 言及/関連

The ASF

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The ASF logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.