Java SimpleTimeZone hasSameRules() Example
Syntax is : public boolean hasSameRules(TimeZone other)
Method returns true if this zone has the same rules and offset as another zone otherwise false.
|
| |
Java SimpleTimeZone hashCode() Example
Syntax is : public int hashCode()
Method returns the hash code for the SimpleDateFormat object.
|
| |
Java SimpleTimeZone getRawOffset() Example
Syntax is : public int getRawOffset()
Method returns the GMT offset for this time zone.
|
| |
Java SimpleTimeZone getDSTSavings() Example
Syntax is : public int getDSTSavings()
Method returns the amount of time in milliseconds that the clock is advanced during daylight saving time for this object.
|
| |
Java SimpleTimeZone equals() Example
Syntax is : public boolean equals(Object obj)
Method compares the equality of two SimpleTimeZone objects and returns boolean true or false.
|
| |
IdentityHashMap equals Example
IdentityHashMap class equals example.ublic boolean equals(Object o) Compares the specified object with this map for equality. Returns true if the given object is also a map and the two maps represent identical object-reference mappings. More formally, this map is equal to another map m if and only if this.entrySet().equals(m.entrySet()).
|
| |
IdentityHashMap entrySet Example
IdentityHashMap class entrySet example.public Set entrySet() Returns a Set view of the mappings contained in this map. Each element in the returned set is a reference-equality-based Map.Entry. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa.
|
| |
IdentityHashMap containsValue Example
IdentityHashMap class containsValue example.public boolean containsValue(Object ) Tests whether the specified object reference is a value in this identity hash map.
|
| |
IdentityHashMap containsKey Example
IdentityHashMap class containsKey example.
|
| |
IdentityHashMap clone Example
IdentityHashMap class clone example.public Object clone() Returns a shallow copy of this identity hash map: the keys and values themselves are not cloned.
|
| |
IdentityHashMap clear Example
IdentityHashMap class clear example. public void clear() Removes all of the mappings from this map. The map will be empty after this call returns.
|
| |
Java Locale toString() Example
Syntax is : public final String toString()
Method returns programmatic name of the entire locale, with the language, country and variant separated by underbars. Language is
always lower case, and country is always upper case. If the language is missing, the string will begin with an underbar. If both the
language and country fields are missing, this function will return the empty string. You can't have a locale with only a variant.
|
| |
Java Locale setDefault() Example
Syntax is : public static void setDefault(Locale newLocale)
Method sets the default locale for this instance of the Java Virtual Machine. This does not affect the host locale.The Java Virtual Machine
sets the default locale during startup based on the host environment.
|
| |
Java Locale hashCode() Example
Syntax is : public int hashCode()
Method returns hashCode. Since Locales are often used in hashtables, caches the value for speed.
|
| |
Java Locale getVariant() Example
Syntax is : public String getVariant()
Method returns the variant code for this locale.
|
| |
Java Locale getLanguage() Example
Syntax is : public String getLanguage()
Method returns the language code for this locale, which will either be the empty string or a lowercase ISO 639 code.
|
| |
Java Locale getISOLanguages() Example
Syntax is : public static String[] getISOLanguages()
Method returns a list of all 2-letter language codes defined in ISO 639. Can be used to create Locales. [NOTE: ISO 639 is not a stable
standard-- some languages' codes have changed. The list this function returns includes both the new and the old codes for the languages whose codes have changed.]
|
| |
Java Locale getISOCountries() Example
Syntax is : public static String[] getISOCountries()
Method returns a list of all 2-letter country codes defined in ISO 3166. This can be used to create Locales. This is static method.
|
| |
Java Locale getISO3Language() Example
Syntax is : public String getISO3Language()
Method returns a three-letter abbreviation for this locale's language. If the locale doesn't specify a language, this will be the empty string. Otherwise, this will be an uppercase ISO 3166 3-letter country code.
For more language codes visit : http://www.loc.gov/standards/iso639-2/englangn.html
|
| |
Java Locale getISO3Country() Example
Syntax is : public String getISO3Country()
Method returns a three-letter abbreviation for this locale's country. If the locale doesn't specify a country, this will be the empty string.
Otherwise, this will be an uppercase ISO 3166 3-letter country code.
For more country codes visit : http://www.davros.org/misc/iso3166.txt
|
| |
Java Locale getDisplayVariant() Example
Syntax is : public String getDisplayVariant()
Method returns a name for the locale's variant code that is appropriate for display to the user. If possible, the name will be localized for
default locale. If the locale doesn't specify a variant code, this function returns the empty string.
|
| |
Java Locale getDisplayVariant() Example
Syntax is : public String getDisplayVariant(Locale inLocale)
Method returns a name for the locale's variant code that is appropriate for display to the user. If possible, the name will be localized for
inLocale. If the locale doesn't specify a variant code, this function returns the empty string.
|
| |
Java Locale getDisplayName() Example
Syntax is : public String getDisplayName()
Method returns a name for the locale that is appropriate for display to the user. This will be the values returned by getDisplayLanguage(),
getDisplayCountry(), and getDisplayVariant() assembled into a single string. If the language, country, and variant fields are all empty,
function returns the empty string.
|
| |
Java Locale getDisplayLanguage() Example
Syntax is : public String getDisplayName(Locale inLocale)
Method returns a name for the locale that is appropriate for display to the user. This will be the values returned by getDisplayLanguage(),
getDisplayCountry(), and getDisplayVariant() assembled into a single string. If the language, country, and variant fields are all empty,
function returns the empty string.
|
| |
Vector class toString() method example
Vector class toString() method example. This example shows you how to use toString() method.This method Returns a string representation of this Vector, containing the String representation of each element.
|
| |
Vector class toArray() method example
Vector class toArray() method example. This example shows you how to use toArray() method.This method Returns an array containing all of the elements in this Vector in the correct order.
|
| |
Vector class subList(int fromIndex, int toIndex) method example
Vector class subList(int fromIndex, int toIndex) method example. This example shows you how to use subList(int fromIndex, int toIndex) method.This method Returns a view of the portion of this List between fromIndex, inclusive, and toIndex, exclusive.
|
| |
Vector class size() method example
Vector class size() method example. This example shows you how to use size() method.This method Returns the number of components in this vector.
|
| |
Vector class setSize(int newSize) method example
Vector class setSize(int newSize) method example. This example shows you how to use setSize(int newSize) method.This method Sets the size of this vector.
|
| |
Vector class setElementAt(E obj, int index) method example
Vector class setElementAt(E obj, int index) method example. This example shows you how to use setElementAt(E obj, int index) method.This method Sets the component at the specified index of this vector to be the specified object.
|
| |
 |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[39]
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
|
|
| |