Xenokage Posted August 20, 2018 Posted August 20, 2018 i noticed on l2jacis is not being used javolution also fastmap changed to hashmap , what about the typeformat ? import javolution.text.TypeFormat; <-- BLESS_WEAPON_ENCHANT_LEVEL.put(TypeFormat.parseInt(writeData[0]), TypeFormat.parseInt(writeData[1])); wich iis the new '' typeformat import' and what i'll change for this option i wish to use ! thank you
1 melron Posted August 20, 2018 Posted August 20, 2018 Im not sure about what TypeFormat does, but i think stands there to catch NumberFormatException ... in example: public static void main(String[] args) { String one = "1f"; System.out.println("TypeFormat : " + TypeFormat.parseInt(one)); System.out.println("Integer : " + Integer.parseInt(one)); } static class TypeFormat { public static int parseInt(String val) { try { return Integer.parseInt(val); } catch (NumberFormatException e) { return 0; } } }
0 Xenokage Posted August 20, 2018 Author Posted August 20, 2018 think i got it .. Integer ? if im right please lock
0 Kara Posted August 20, 2018 Posted August 20, 2018 41 minutes ago, Xenokage said: think i got it .. Integer ? if im right please lock Ya
0 Solomun Posted August 20, 2018 Posted August 20, 2018 When you don't know something, or you cannot understand it. Simply, use google and find its documentation. In less than 3s of search: http://javolution.org/apidocs/javolution/text/TypeFormat.html Anyway... @melron explained it good. Simple and good.
Question
Xenokage
i noticed on l2jacis is not being used javolution also fastmap changed to hashmap , what about the typeformat ?
BLESS_WEAPON_ENCHANT_LEVEL.put(TypeFormat.parseInt(writeData[0]), TypeFormat.parseInt(writeData[1]));
wich iis the new '' typeformat import' and what i'll change for this option i wish to use ! thank you
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now