Utility class

Utility class

In computer programming, a utility class is a class that defines a set of methods that perform common, often re-used functions. Most utility classes define these common methods under static (see Static variable) scope. Examples of utility classes include java.util.Collections [http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collections.html] which provides several utility methods (such as sorting) on objects that implement a Collection (java.util.collection [http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collection.html] ).

External links

* [http://c2.com/cgi/wiki?UtilityPattern Utility Pattern] : For a utility class, which does not require instantiation and only has static methods, use a private constructor


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Utility pattern — The Utility pattern is a creational software pattern that is used for utility classes that do not require instantiation and only have static methods. The statelessdn class uses a private constructor so that no instances can be created. Good… …   Wikipedia

  • class action — n: an action in which a representative plaintiff sues or a representative defendant is sued on behalf of a class of plaintiffs or defendants who have the same interests in the litigation as their representative and whose rights or liabilities can …   Law dictionary

  • Utility Relay Company — (Chagrin Falls, Ohio, USA) manufactures programmable protective relays for power distribution systems. The relays, commonly referred to as trip units, are applied on both AC and DC air frame power distribution circuit breakers.Main products [http …   Wikipedia

  • Utility bicycle — Batavus Contemporary utility bicycles A utility bicycle is a bicycle designed for practical transportation, as opposed to bicycles which are primarily designed for recreation and competition, such as touring bicycles, racing bicycles,… …   Wikipedia

  • utility theory — A class of theory concerned with the behaviours, strategies, and mental processes adopted by individuals faced with making a risky choice or decision. Utility is usually taken as the subjective value to the individual of a particular outcome or… …   Big dictionary of business and management

  • IBM mainframe utility programs — are supplied with IBM mainframe operating systems such as MVS to carry out various tasks associated with datasets, etc.History/Common JCLMany of these utilities were designed by IBM users, through the group SHARE, and then developed by IBM or… …   Wikipedia

  • Marginal utility — In economics, the marginal utility of a good or service is the utility gained (or lost) from an increase (or decrease) in the consumption of that good or service. Economists sometimes speak of a law of diminishing marginal utility, meaning that… …   Wikipedia

  • Sport utility vehicle — SUV redirects here. For other uses, see SUV (disambiguation). 1995 1998 Ford Explorer built on a light truck chassis A sport utility vehicle (SUV) is a generic marketing term for a vehicle similar to a station wagon, but built on a light truck… …   Wikipedia

  • Category utility — is a measure of category goodness defined in Harvtxt|Gluck|Corter|1985 and Harvtxt|Corter|Gluck|1992. It was intended to supersede more limited measures of category goodness such as cue validity (Harvnb|Reed|1972;Harvnb|Rosch|Mervis|1975) and… …   Wikipedia

  • Character class (Dungeons & Dragons) — A character class is a fundamental part of the identity and nature of characters in the Dungeons Dragons role playing game. A character s capabilities, strengths, and weaknesses are largely defined by his or her chosen class; choosing a class is… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”