Debian Codegraph @

doc/classes/Dictionary.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <class name="Dictionary" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A built-in data structure that holds key-value pairs.
5 </brief_description>
6 <description>
7 Dictionaries are associative containers that contain values referenced by unique keys. Dictionaries will preserve the insertion order when adding new entries. In other programming languages, this data structure is often referred to as a hash map or an associative array.
8 You can define a dictionary by placing a comma-separated list of [code]key: value[/code] pairs inside curly braces [code]{}[/code].
9 Creating a dictionary:
10 [codeblocks]
11 [gdscript]
12 var my_dict = {} # Creates an empty dictionary.
13
14 var dict_variable_key = "Another key name"
15 var dict_variable_value = "value2"
16 var another_dict = {
17 "Some key name": "value1",
18 dict_variable_key: dict_variable_value,
19 }
20
21 var points_dict = { "White": 50, "Yellow": 75, "Orange": 100 }
22
23 # Alternative Lua-style syntax.
24 # Doesn't require quotes around keys, but only string constants can be used as key names.
25 # Additionally, key names must start with a letter or an underscore.
26 # Here, `some_key` is a string literal, not a variable!
27 another_dict = {
28 some_key = 42,
29 }
30 [/gdscript]
31 [csharp]
32 var myDict = new Godot.Collections.Dictionary(); // Creates an empty dictionary.
33 var pointsDict = new Godot.Collections.Dictionary
34 {
35 { "White", 50 },
36 { "Yellow", 75 },
37 { "Orange", 100 },
38 };
39 [/csharp]
40 [/codeblocks]
41 You can access a dictionary's value by referencing its corresponding key. In the above example, [code]points_dict["White"][/code] will return [code]50[/code]. You can also write [code]points_dict.White[/code], which is equivalent. However, you'll have to use the bracket syntax if the key you're accessing the dictionary with isn't a fixed string (such as a number or variable).
42 [codeblocks]
43 [gdscript]
44 @export_enum("White", "Yellow", "Orange") var my_color: String
45 var points_dict = { "White": 50, "Yellow": 75, "Orange": 100 }
46 func _ready():
47 # We can't use dot syntax here as `my_color` is a variable.
48 var points = points_dict[my_color]
49 [/gdscript]
50 [csharp]
51 [Export(PropertyHint.Enum, "White,Yellow,Orange")]
52 public string MyColor { get; set; }
53 private Godot.Collections.Dictionary _pointsDict = new Godot.Collections.Dictionary
54 {
55 { "White", 50 },
56 { "Yellow", 75 },
57 { "Orange", 100 },
58 };
59
60 public override void _Ready()
61 {
62 int points = (int)_pointsDict[MyColor];
63 }
64 [/csharp]
65 [/codeblocks]
66 In the above code, [code]points[/code] will be assigned the value that is paired with the appropriate color selected in [code]my_color[/code].
67 Dictionaries can contain more complex data:
68 [codeblocks]
69 [gdscript]
70 var my_dict = {
71 "First Array": [1, 2, 3, 4] # Assigns an Array to a String key.
72 }
73 [/gdscript]
74 [csharp]
75 var myDict = new Godot.Collections.Dictionary
76 {
77 { "First Array", new Godot.Collections.Array { 1, 2, 3, 4 } }
78 };
79 [/csharp]
80 [/codeblocks]
81 To add a key to an existing dictionary, access it like an existing key and assign to it:
82 [codeblocks]
83 [gdscript]
84 var points_dict = { "White": 50, "Yellow": 75, "Orange": 100 }
85 points_dict["Blue"] = 150 # Add "Blue" as a key and assign 150 as its value.
86 [/gdscript]
87 [csharp]
88 var pointsDict = new Godot.Collections.Dictionary
89 {
90 { "White", 50 },
91 { "Yellow", 75 },
92 { "Orange", 100 },
93 };
94 pointsDict["Blue"] = 150; // Add "Blue" as a key and assign 150 as its value.
95 [/csharp]
96 [/codeblocks]
97 Finally, untyped dictionaries can contain different types of keys and values in the same dictionary:
98 [codeblocks]
99 [gdscript]
100 # This is a valid dictionary.
101 # To access the string "Nested value" below, use `my_dict.sub_dict.sub_key` or `my_dict["sub_dict"]["sub_key"]`.
102 # Indexing styles can be mixed and matched depending on your needs.
103 var my_dict = {
104 "String Key": 5,
105 4: [1, 2, 3],
106 7: "Hello",
107 "sub_dict": { "sub_key": "Nested value" },
108 }
109 [/gdscript]
110 [csharp]
111 // This is a valid dictionary.
112 // To access the string "Nested value" below, use `((Godot.Collections.Dictionary)myDict["sub_dict"])["sub_key"]`.
113 var myDict = new Godot.Collections.Dictionary {
114 { "String Key", 5 },
115 { 4, new Godot.Collections.Array { 1, 2, 3 } },
116 { 7, "Hello" },
117 { "sub_dict", new Godot.Collections.Dictionary { { "sub_key", "Nested value" } } },
118 };
119 [/csharp]
120 [/codeblocks]
121 The keys of a dictionary can be iterated with the [code]for[/code] keyword:
122 [codeblocks]
123 [gdscript]
124 var groceries = { "Orange": 20, "Apple": 2, "Banana": 4 }
125 for fruit in groceries:
126 var amount = groceries[fruit]
127 [/gdscript]
128 [csharp]
129 var groceries = new Godot.Collections.Dictionary { { "Orange", 20 }, { "Apple", 2 }, { "Banana", 4 } };
130 foreach (var (fruit, amount) in groceries)
131 {
132 // `fruit` is the key, `amount` is the value.
133 }
134 [/csharp]
135 [/codeblocks]
136 To enforce a certain type for keys and values, you can create a [i]typed dictionary[/i]. Typed dictionaries can only contain keys and values of the given types, or that inherit from the given classes:
137 [codeblocks]
138 [gdscript]
139 # Creates a typed dictionary with String keys and int values.
140 # Attempting to use any other type for keys or values will result in an error.
141 var typed_dict: Dictionary[String, int] = {
142 "some_key": 1,
143 "some_other_key": 2,
144 }
145
146 # Creates a typed dictionary with String keys and values of any type.
147 # Attempting to use any other type for keys will result in an error.
148 var typed_dict_key_only: Dictionary[String, Variant] = {
149 "some_key": 12.34,
150 "some_other_key": "string",
151 }
152 [/gdscript]
153 [csharp]
154 // Creates a typed dictionary with String keys and int values.
155 // Attempting to use any other type for keys or values will result in an error.
156 var typedDict = new Godot.Collections.Dictionary&lt;String, int&gt; {
157 {"some_key", 1},
158 {"some_other_key", 2},
159 };
160
161 // Creates a typed dictionary with String keys and values of any type.
162 // Attempting to use any other type for keys will result in an error.
163 var typedDictKeyOnly = new Godot.Collections.Dictionary&lt;String, Variant&gt; {
164 {"some_key", 12.34},
165 {"some_other_key", "string"},
166 };
167 [/csharp]
168 [/codeblocks]
169 [b]Note:[/b] Dictionaries are always passed by reference. To get a copy of a dictionary which can be modified independently of the original dictionary, use [method duplicate].
170 [b]Note:[/b] Erasing elements while iterating over dictionaries is [b]not[/b] supported and will result in unpredictable behavior.
171 </description>
172 <tutorials>
173 <link title="GDScript basics: Dictionary">$DOCS_URL/tutorials/scripting/gdscript/gdscript_basics.html#dictionary</link>
174 <link title="3D Voxel Demo">https://godotengine.org/asset-library/asset/2755</link>
175 <link title="Operating System Testing Demo">https://godotengine.org/asset-library/asset/2789</link>
176 </tutorials>
177 <constructors>
178 <constructor name="Dictionary">
179 <return type="Dictionary" />
180 <description>
181 Constructs an empty [Dictionary].
182 </description>
183 </constructor>
184 <constructor name="Dictionary">
185 <return type="Dictionary" />
186 <param index="0" name="base" type="Dictionary" />
187 <param index="1" name="key_type" type="int" />
188 <param index="2" name="key_class_name" type="StringName" />
189 <param index="3" name="key_script" type="Variant" />
190 <param index="4" name="value_type" type="int" />
191 <param index="5" name="value_class_name" type="StringName" />
192 <param index="6" name="value_script" type="Variant" />
193 <description>
194 Creates a typed dictionary from the [param base] dictionary. A typed dictionary can only contain keys and values of the given types, or that inherit from the given classes, as described by this constructor's parameters.
195 </description>
196 </constructor>
197 <constructor name="Dictionary">
198 <return type="Dictionary" />
199 <param index="0" name="from" type="Dictionary" />
200 <description>
201 Returns the same dictionary as [param from]. If you need a copy of the dictionary, use [method duplicate].
202 </description>
203 </constructor>
204 </constructors>
205 <methods>
206 <method name="assign">
207 <return type="void" />
208 <param index="0" name="dictionary" type="Dictionary" />
209 <description>
210 Assigns elements of another [param dictionary] into the dictionary. Resizes the dictionary to match [param dictionary]. Performs type conversions if the dictionary is typed.
211 </description>
212 </method>
213 <method name="clear">
214 <return type="void" />
215 <description>
216 Clears the dictionary, removing all entries from it.
217 </description>
218 </method>
219 <method name="duplicate" qualifiers="const">
220 <return type="Dictionary" />
221 <param index="0" name="deep" type="bool" default="false" />
222 <description>
223 Returns a new copy of the dictionary.
224 By default, a [b]shallow[/b] copy is returned: all nested [Array], [Dictionary], and [Resource] keys and values are shared with the original dictionary. Modifying any of those in one dictionary will also affect them in the other.
225 If [param deep] is [code]true[/code], a [b]deep[/b] copy is returned: all nested arrays and dictionaries are also duplicated (recursively). Any [Resource] is still shared with the original dictionary, though.
226 </description>
227 </method>
228 <method name="duplicate_deep" qualifiers="const">
229 <return type="Dictionary" />
230 <param index="0" name="deep_subresources_mode" type="int" default="1" />
231 <description>
232 Duplicates this dictionary, deeply, like [method duplicate] when passing [code]true[/code], with extra control over how subresources are handled.
233 [param deep_subresources_mode] must be one of the values from [enum Resource.DeepDuplicateMode]. By default, only internal resources will be duplicated (recursively).
234 </description>
235 </method>
236 <method name="erase">
237 <return type="bool" />
238 <param index="0" name="key" type="Variant" />
239 <description>
240 Removes the dictionary entry by key, if it exists. Returns [code]true[/code] if the given [param key] existed in the dictionary, otherwise [code]false[/code].
241 [b]Note:[/b] Do not erase entries while iterating over the dictionary. You can iterate over the [method keys] array instead.
242 </description>
243 </method>
244 <method name="find_key" qualifiers="const">
245 <return type="Variant" />
246 <param index="0" name="value" type="Variant" />
247 <description>
248 Finds and returns the first key whose associated value is equal to [param value], or [code]null[/code] if it is not found.
249 [b]Note:[/b] [code]null[/code] is also a valid key. If inside the dictionary, [method find_key] may give misleading results.
250 </description>
251 </method>
252 <method name="get" qualifiers="const">
253 <return type="Variant" />
254 <param index="0" name="key" type="Variant" />
255 <param index="1" name="default" type="Variant" default="null" />
256 <description>
257 Returns the corresponding value for the given [param key] in the dictionary. If the [param key] does not exist, returns [param default], or [code]null[/code] if the parameter is omitted.
258 </description>
259 </method>
260 <method name="get_or_add">
261 <return type="Variant" />
262 <param index="0" name="key" type="Variant" />
263 <param index="1" name="default" type="Variant" default="null" />
264 <description>
265 Gets a value and ensures the key is set. If the [param key] exists in the dictionary, this behaves like [method get]. Otherwise, the [param default] value is inserted into the dictionary and returned.
266 </description>
267 </method>
268 <method name="get_typed_key_builtin" qualifiers="const">
269 <return type="int" />
270 <description>
271 Returns the built-in [Variant] type of the typed dictionary's keys as a [enum Variant.Type] constant. If the keys are not typed, returns [constant TYPE_NIL]. See also [method is_typed_key].
272 </description>
273 </method>
274 <method name="get_typed_key_class_name" qualifiers="const">
275 <return type="StringName" />
276 <description>
277 Returns the [b]built-in[/b] class name of the typed dictionary's keys, if the built-in [Variant] type is [constant TYPE_OBJECT]. Otherwise, returns an empty [StringName]. See also [method is_typed_key] and [method Object.get_class].
278 </description>
279 </method>
280 <method name="get_typed_key_script" qualifiers="const">
281 <return type="Variant" />
282 <description>
283 Returns the [Script] instance associated with this typed dictionary's keys, or [code]null[/code] if it does not exist. See also [method is_typed_key].
284 </description>
285 </method>
286 <method name="get_typed_value_builtin" qualifiers="const">
287 <return type="int" />
288 <description>
289 Returns the built-in [Variant] type of the typed dictionary's values as a [enum Variant.Type] constant. If the values are not typed, returns [constant TYPE_NIL]. See also [method is_typed_value].
290 </description>
291 </method>
292 <method name="get_typed_value_class_name" qualifiers="const">
293 <return type="StringName" />
294 <description>
295 Returns the [b]built-in[/b] class name of the typed dictionary's values, if the built-in [Variant] type is [constant TYPE_OBJECT]. Otherwise, returns an empty [StringName]. See also [method is_typed_value] and [method Object.get_class].
296 </description>
297 </method>
298 <method name="get_typed_value_script" qualifiers="const">
299 <return type="Variant" />
300 <description>
301 Returns the [Script] instance associated with this typed dictionary's values, or [code]null[/code] if it does not exist. See also [method is_typed_value].
302 </description>
303 </method>
304 <method name="has" qualifiers="const">
305 <return type="bool" />
306 <param index="0" name="key" type="Variant" />
307 <description>
308 Returns [code]true[/code] if the dictionary contains an entry with the given [param key].
309 [codeblocks]
310 [gdscript]
311 var my_dict = {
312 "Godot" : 4,
313 210 : null,
314 }
315
316 print(my_dict.has("Godot")) # Prints true
317 print(my_dict.has(210)) # Prints true
318 print(my_dict.has(4)) # Prints false
319 [/gdscript]
320 [csharp]
321 var myDict = new Godot.Collections.Dictionary
322 {
323 { "Godot", 4 },
324 { 210, default },
325 };
326
327 GD.Print(myDict.ContainsKey("Godot")); // Prints True
328 GD.Print(myDict.ContainsKey(210)); // Prints True
329 GD.Print(myDict.ContainsKey(4)); // Prints False
330 [/csharp]
331 [/codeblocks]
332 In GDScript, this is equivalent to the [code]in[/code] operator:
333 [codeblock]
334 if "Godot" in { "Godot": 4 }:
335 print("The key is here!") # Will be printed.
336 [/codeblock]
337 [b]Note:[/b] This method returns [code]true[/code] as long as the [param key] exists, even if its corresponding value is [code]null[/code].
338 </description>
339 </method>
340 <method name="has_all" qualifiers="const">
341 <return type="bool" />
342 <param index="0" name="keys" type="Array" />
343 <description>
344 Returns [code]true[/code] if the dictionary contains all keys in the given [param keys] array.
345 [codeblock]
346 var data = { "width": 10, "height": 20 }
347 data.has_all(["height", "width"]) # Returns true
348 [/codeblock]
349 </description>
350 </method>
351 <method name="hash" qualifiers="const">
352 <return type="int" />
353 <description>
354 Returns a hashed 32-bit integer value representing the dictionary contents.
355 [codeblocks]
356 [gdscript]
357 var dict1 = { "A": 10, "B": 2 }
358 var dict2 = { "A": 10, "B": 2 }
359
360 print(dict1.hash() == dict2.hash()) # Prints true
361 [/gdscript]
362 [csharp]
363 var dict1 = new Godot.Collections.Dictionary { { "A", 10 }, { "B", 2 } };
364 var dict2 = new Godot.Collections.Dictionary { { "A", 10 }, { "B", 2 } };
365
366 // Godot.Collections.Dictionary has no Hash() method. Use GD.Hash() instead.
367 GD.Print(GD.Hash(dict1) == GD.Hash(dict2)); // Prints True
368 [/csharp]
369 [/codeblocks]
370 [b]Note:[/b] Dictionaries with the same entries but in a different order will not have the same hash.
371 [b]Note:[/b] Dictionaries with equal hash values are [i]not[/i] guaranteed to be the same, because of hash collisions. On the contrary, dictionaries with different hash values are guaranteed to be different.
372 </description>
373 </method>
374 <method name="is_empty" qualifiers="const">
375 <return type="bool" />
376 <description>
377 Returns [code]true[/code] if the dictionary is empty (its size is [code]0[/code]). See also [method size].
378 </description>
379 </method>
380 <method name="is_read_only" qualifiers="const">
381 <return type="bool" />
382 <description>
383 Returns [code]true[/code] if the dictionary is read-only. See [method make_read_only]. Dictionaries are automatically read-only if declared with [code]const[/code] keyword.
384 </description>
385 </method>
386 <method name="is_same_typed" qualifiers="const">
387 <return type="bool" />
388 <param index="0" name="dictionary" type="Dictionary" />
389 <description>
390 Returns [code]true[/code] if the dictionary is typed the same as [param dictionary].
391 </description>
392 </method>
393 <method name="is_same_typed_key" qualifiers="const">
394 <return type="bool" />
395 <param index="0" name="dictionary" type="Dictionary" />
396 <description>
397 Returns [code]true[/code] if the dictionary's keys are typed the same as [param dictionary]'s keys.
398 </description>
399 </method>
400 <method name="is_same_typed_value" qualifiers="const">
401 <return type="bool" />
402 <param index="0" name="dictionary" type="Dictionary" />
403 <description>
404 Returns [code]true[/code] if the dictionary's values are typed the same as [param dictionary]'s values.
405 </description>
406 </method>
407 <method name="is_typed" qualifiers="const">
408 <return type="bool" />
409 <description>
410 Returns [code]true[/code] if the dictionary is typed. Typed dictionaries can only store keys/values of their associated type and provide type safety for the [code][][/code] operator. Methods of typed dictionary still return [Variant].
411 </description>
412 </method>
413 <method name="is_typed_key" qualifiers="const">
414 <return type="bool" />
415 <description>
416 Returns [code]true[/code] if the dictionary's keys are typed.
417 </description>
418 </method>
419 <method name="is_typed_value" qualifiers="const">
420 <return type="bool" />
421 <description>
422 Returns [code]true[/code] if the dictionary's values are typed.
423 </description>
424 </method>
425 <method name="keys" qualifiers="const">
426 <return type="Array" />
427 <description>
428 Returns the list of keys in the dictionary.
429 </description>
430 </method>
431 <method name="make_read_only">
432 <return type="void" />
433 <description>
434 Makes the dictionary read-only, i.e. disables modification of the dictionary's contents. Does not apply to nested content, e.g. content of nested dictionaries.
435 </description>
436 </method>
437 <method name="merge">
438 <return type="void" />
439 <param index="0" name="dictionary" type="Dictionary" />
440 <param index="1" name="overwrite" type="bool" default="false" />
441 <description>
442 Adds entries from [param dictionary] to this dictionary. By default, duplicate keys are not copied over, unless [param overwrite] is [code]true[/code].
443 [codeblocks]
444 [gdscript]
445 var dict = { "item": "sword", "quantity": 2 }
446 var other_dict = { "quantity": 15, "color": "silver" }
447
448 # Overwriting of existing keys is disabled by default.
449 dict.merge(other_dict)
450 print(dict) # { "item": "sword", "quantity": 2, "color": "silver" }
451
452 # With overwriting of existing keys enabled.
453 dict.merge(other_dict, true)
454 print(dict) # { "item": "sword", "quantity": 15, "color": "silver" }
455 [/gdscript]
456 [csharp]
457 var dict = new Godot.Collections.Dictionary
458 {
459 ["item"] = "sword",
460 ["quantity"] = 2,
461 };
462
463 var otherDict = new Godot.Collections.Dictionary
464 {
465 ["quantity"] = 15,
466 ["color"] = "silver",
467 };
468
469 // Overwriting of existing keys is disabled by default.
470 dict.Merge(otherDict);
471 GD.Print(dict); // { "item": "sword", "quantity": 2, "color": "silver" }
472
473 // With overwriting of existing keys enabled.
474 dict.Merge(otherDict, true);
475 GD.Print(dict); // { "item": "sword", "quantity": 15, "color": "silver" }
476 [/csharp]
477 [/codeblocks]
478 [b]Note:[/b] [method merge] is [i]not[/i] recursive. Nested dictionaries are considered as keys that can be overwritten or not depending on the value of [param overwrite], but they will never be merged together.
479 </description>
480 </method>
481 <method name="merged" qualifiers="const">
482 <return type="Dictionary" />
483 <param index="0" name="dictionary" type="Dictionary" />
484 <param index="1" name="overwrite" type="bool" default="false" />
485 <description>
486 Returns a copy of this dictionary merged with the other [param dictionary]. By default, duplicate keys are not copied over, unless [param overwrite] is [code]true[/code]. See also [method merge].
487 This method is useful for quickly making dictionaries with default values:
488 [codeblock]
489 var base = { "fruit": "apple", "vegetable": "potato" }
490 var extra = { "fruit": "orange", "dressing": "vinegar" }
491 # Prints { "fruit": "orange", "vegetable": "potato", "dressing": "vinegar" }
492 print(extra.merged(base))
493 # Prints { "fruit": "apple", "vegetable": "potato", "dressing": "vinegar" }
494 print(extra.merged(base, true))
495 [/codeblock]
496 </description>
497 </method>
498 <method name="recursive_equal" qualifiers="const">
499 <return type="bool" />
500 <param index="0" name="dictionary" type="Dictionary" />
501 <param index="1" name="recursion_count" type="int" />
502 <description>
503 Returns [code]true[/code] if the two dictionaries contain the same keys and values, inner [Dictionary] and [Array] keys and values are compared recursively.
504 </description>
505 </method>
506 <method name="set">
507 <return type="bool" />
508 <param index="0" name="key" type="Variant" />
509 <param index="1" name="value" type="Variant" />
510 <description>
511 Sets the value of the element at the given [param key] to the given [param value]. Returns [code]true[/code] if the value is set successfully. Fails and returns [code]false[/code] if the dictionary is read-only, or if [param key] and [param value] don't match the dictionary's types. This is the same as using the [code][][/code] operator ([code]dict[key] = value[/code]).
512 </description>
513 </method>
514 <method name="size" qualifiers="const">
515 <return type="int" />
516 <description>
517 Returns the number of entries in the dictionary. Empty dictionaries ([code]{ }[/code]) always return [code]0[/code]. See also [method is_empty].
518 </description>
519 </method>
520 <method name="sort">
521 <return type="void" />
522 <description>
523 Sorts the dictionary in ascending order, by key. The final order is dependent on the "less than" ([code]&lt;[/code]) comparison between keys.
524 [codeblocks]
525 [gdscript]
526 var numbers = { "c": 2, "a": 0, "b": 1 }
527 numbers.sort()
528 print(numbers) # Prints { "a": 0, "b": 1, "c": 2 }
529 [/gdscript]
530 [/codeblocks]
531 This method ensures that the dictionary's entries are ordered consistently when [method keys] or [method values] are called, or when the dictionary needs to be converted to a string through [method @GlobalScope.str] or [method JSON.stringify].
532 </description>
533 </method>
534 <method name="values" qualifiers="const">
535 <return type="Array" />
536 <description>
537 Returns the list of values in this dictionary.
538 </description>
539 </method>
540 </methods>
541 <operators>
542 <operator name="operator !=">
543 <return type="bool" />
544 <param index="0" name="right" type="Dictionary" />
545 <description>
546 Returns [code]true[/code] if the two dictionaries do not contain the same keys and values.
547 </description>
548 </operator>
549 <operator name="operator ==">
550 <return type="bool" />
551 <param index="0" name="right" type="Dictionary" />
552 <description>
553 Returns [code]true[/code] if the two dictionaries contain the same keys and values. The order of the entries does not matter.
554 [b]Note:[/b] In C#, by convention, this operator compares by [b]reference[/b]. If you need to compare by value, iterate over both dictionaries.
555 </description>
556 </operator>
557 <operator name="operator []">
558 <return type="Variant" />
559 <param index="0" name="key" type="Variant" />
560 <description>
561 Returns the corresponding value for the given [param key] in the dictionary. If the entry does not exist, fails and returns [code]null[/code]. For safe access, use [method get] or [method has].
562 </description>
563 </operator>
564 </operators>
565 </class>