コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ブロックする >レジストリ >getAllItems
registry.getAllItems() 関数
指定されたタイプに登録されているアイテムのマップを返します。
署名:
export declare function getAllItems<T>(type: string | Type<T>, opt_cased?: boolean, opt_throwIfMissing?: boolean): {
[key: string]: T | null | (new (...p1: any[]) => T);
} | null;
パラメータ
パラメータ |
型 |
説明 |
type |
文字列 |型<T> |
プラグインのタイプ。(例: カテゴリ) |
opt_cased |
ブール値 |
(省略可)大文字と小文字を区別したキー(大文字と小文字を区別しないキーではない)を含むマップを返すかどうか。デフォルトは false です。 |
opt_throwIfMissing |
ブール値 |
(省略可)オブジェクトが見つからない場合にエラーをスローするかどうか。デフォルトは false です。 |
戻り値:
{[キー: 文字列]: T |null |(new (...p1: any[]) => T);} |null
指定された型のオブジェクトのマップ。存在しない場合は null。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-25 UTC。"],[],["The `registry.getAllItems()` function retrieves registered items of a specified type. It accepts a `type` (string or Type\u003cT\u003e) parameter to define the item category. Optional parameters include `opt_cased` for case-sensitive keys and `opt_throwIfMissing` to throw an error if no items are found. The function returns a map where keys are strings and values are items of the specified type, or it returns null if no items exist.\n"]]