static methods which are used in other classes

Tools class is a collection of static methods which are widely used in
other classes. I throw them together to make it easier to locate.