10 Legacy Collections
Download 372.72 Kb. Pdf ko'rish
|
1 2
Bog'liq10 Legacy Collections
- Bu sahifa navigatsiya:
- Legacy Collections
- Legacy Collections java.util
- HashTable HashMap ConcurrentHashMap Stack Dequeue
- Constructors
Outline 1. Hashtable 2. Stack 3. Dictionary 4. Vector 5. Property 6. i18n 7. ResourceBundle Legacy Collections Javaning dastlabki versiyasida ob'ektlarni saqlashga imkon beruvchi bir nechta classlar va interfeyslar mavjud bo’lgan. JSE 1.2 da Collection framework qo'shilgandan so'ng, Collection frameworkni qo'llab-quvvatlash uchun bu classlar qayta ishlab chiqilgan. Shunday qilib, Javaning eski versiyasida to'plamlar tizimini tashkil etgan classlar va interfeyslar Legacy classlar deb nomlanadi. JDK5-da genericlarni qo'llab-quvvatlash uchun bu classlar qayta ishlab chiqilgan. Barcha legacy classlar synchronized. Legacy Collections java.util package da quyidagi legacy classlar mavjud: 1. HashTable 2. Stack 3. Dictionary 4. Vector 5. Properties HashTable HashMap ConcurrentHashMap Stack Dequeue Dictionary Map Vector ArrayList Properties Oracle documentation Properties classi String toifasidagi key va value juftliklarini sqalashga mo’ljallangan Asosan Properties classi .properties va xml faylidan ma'lumotlarni o’qish va yozish methodlarini taqdim etadi. Bundan tashqari, u tizimning xususiyatlarini olish uchun ham ishlatilishi mumkin. website=https://en.wikipedia.org/ language=English # A word on a line will just create a key with no value Constructors Oracle documentation Properties( ) Properties(Properties propDefault) Methods Oracle documentation public void load(Reader r) public void load(InputStream is) public void loadFromXML(InputStream in) public String getProperty(String key) public String getProperty(String key, String defaultValue) public void setProperty(String key, String value) public void list(PrintStream out public void list(PrintWriter out)) public Enumeration> propertyNames()) public Set public void store(Writer w, String comment) public void store(OutputStream os, String comment) public void storeToXML(OutputStream os, String comment) public void storeToXML(Writer w, String comment, String encoding) Download 372.72 Kb. Do'stlaringiz bilan baham: |
1 2
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling