Extending the Arrays-class in Java -


I'm trying to add functionality to the array-class. In my project, I use static methods, and in some other ways, I handle array conversion, sorting, etc. ...

I am trying to add them to an object That's what MyArrays spreads Arrays so I can go

  MyArrays.toList (foo);  

but

  MyArrays.myOwnFunction (bar);  

But I am not able to expand it because the use of the aerase-constructor is personal use. I know that it is not really necessary, but now I know that I am unable to do this I really want to. Is there any alternative solution for this?

Thanks,

You can not do this and why does it matter that Do you have utility work in one or two sections? For the record - Commons-Lang's Areuits , which has additional utility methods.

Technically, you should only array all the methods in your appropriate class, but that is unnecessary.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -