Skip to content

Tag: java

how to handle subfields with JPOS library in java?

i have to build an iso 8583 message and for that i used the jpos library which is, according to my researches, the best libray to handle iso 8583 communications. I succeeded to build and send iso 8583 messages with fields in range 0-128 as you can see in this code : and the response class but i have a

Expose `final static Set` of a class

I have a class that has: public static final Set<String> IDS = new HashSet<>();, whose values are initiated in a static block after running some query (Therefore I can’t declare it as unmodifiableSet). Now that other classes need to use IDS but apparently I don’t want to let them get d…

Converting List to TreeMap java lambda

I’m trying to convert a List<String> to a TreeMap<Long, CustomClass> The key is the same as the list items but just parsed to Long, the value is just a call to new CustomClass(). How can I achieve this using lambda functions? the above code errors out, with the following error, Answer For ex…