K
karl wettin
I have a class wrapping an array[]. This class contains an Iterator.
If the array contains non-primitives, remove() sets array=null;
What about then the array contains primitive classes? I could either set
the value to the system default (i.e. short/int/long/float/byte...=0x0,
boolean=false) or throw a new Error("primitives can't be removed!");
Or should I spend days to change my logics so that the array wrapper
contains an Enumerator instead of Iterator?
karl
If the array contains non-primitives, remove() sets array=null;
What about then the array contains primitive classes? I could either set
the value to the system default (i.e. short/int/long/float/byte...=0x0,
boolean=false) or throw a new Error("primitives can't be removed!");
Or should I spend days to change my logics so that the array wrapper
contains an Enumerator instead of Iterator?
karl