L
laredotornado
Hi,
I'm using Java 1.5. I have a Vector of objects, all of type
"MyProperty". What I want is to filter the vector and keep the
elements whose "MyProperty.getName.equals(someString)". Is there any
easier way of doing this rather than iterating over the Vector,
looking at each element, then adding that element to the new, filtered
vector depending on whether it has met the conditions?
I'm thinking that's the easiest way but I've been wrong before, - Dave
I'm using Java 1.5. I have a Vector of objects, all of type
"MyProperty". What I want is to filter the vector and keep the
elements whose "MyProperty.getName.equals(someString)". Is there any
easier way of doing this rather than iterating over the Vector,
looking at each element, then adding that element to the new, filtered
vector depending on whether it has met the conditions?
I'm thinking that's the easiest way but I've been wrong before, - Dave