I don't think it has an index - a Set doesn't have index. And the code looks fine. Unless the getAttributeNames() returns a wrongly-implementation enumeration, it should work.
I don't see anything wrong with your code at the moment, but try using Collections. List private static boolean hasTargetStyle(AttributeSet attributes) { final List attributeNames = Collections. List(attributes.
GetAttributeNames()); for(Object name: attributeNames){ if(name. Equals(MY_STYLE_NAME)){ return true; } } return false; }.
I doubt that this is a problem with java.util. Enumeration (although this is just an interface and the actual implementation may have a bug). Your implementation looks good to me.
Other idea: The initial AttributeSet may only contain every other attribute. Try to set a breakpoint and have a look at the internals of an actual attribute set.
The internal list I was looking at in the debugger had both names and values alternating. So, my code is correct in a certain sense, but my intent was wrong.
Enumeration (although this is just an interface and the actual implementation may have a bug). Your implementation looks good to me. Other idea: The initial AttributeSet may only contain every other attribute.
Try to set a breakpoint and have a look at the internals of an actual attribute set.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.