singleton
C2Pronunciation
UK
- /sˈɪŋɡəltən/
US
- /ˈsɪŋɡəltən/
Description
- Only one of its kind
- Single instance
- Lone member
- One item by itself
A singleton is not just something alone; it is the only one of its kind in a given place or situation. Picture one snowflake landing on a dark coat and standing out because there is just one. In computer science, a singleton is a design pattern that allows only one instance of a class, like a single gatekeeper that the whole program uses. In other fields, the word can also mean one item that appears by itself, such as one card of a suit in a hand or a set with exactly one member.
The word "singleton" describes something that exists as a single member or as the only instance within a defined group. Its main idea is simple: there is one, and only one, in that particular setting.
In general English, the word can refer to one person or thing standing alone, but it is more common in technical or special uses than in casual conversation. In card games such as bridge, a singleton means that a hand has only one card in a particular suit. In mathematics, a singleton set is a set that contains exactly one element. In genetics, the term can refer to something that appears only once in a genome or data set.
The term is especially common in computer science. As a software design pattern, a singleton limits a class so that only one instance can be created and shared. This can be useful when a program should use one common object, such as a configuration manager or another shared service.
Across these fields, the meaning stays steady. Whether you are talking about a single card, a set with one element, or one shared object in a program, a singleton is defined by being the only one in its domain.
Examples
- 1
Birth statistics
The study looked only at singleton births, not twins or triplets.
Domain
singleton birth
a birth with one baby
- 2
Corpus data
In the dataset, rare words that appear only once are marked as singletons.
- 3
Software design
The app uses a singleton for the database connection, so every part of the system shares the same instance.
Domain
singleton
a single shared object in a program
Forms and spellings
2 forms open this card.
Main spelling
- singletonnoun
Forms
- singletonspluralnoun