An adapter or adaptor is a device that converts attributes of one electrical device or system to those of an otherwise incompatible device or system. Some modify power or signal attributes, while others merely adapt the physical form of one electrical connector to another.
An electric power adapter may enable connection of a power plug, sometimes called «travel plug», used in one region to a AC power socket used in another, by offering connections for the disparate contact arrangements, while not changing the voltage. An AC adapter, also called a "recharger", is a small power supply that changes household electric current from distribution voltage (in the range 100 to 240 volts AC) to low voltage DC suitable for consumer electronics.
For computers and related items, one kind of serial port adapter enables connections between 25-contact and nine-contact connectors, but does not affect electrical power- and signalling-related attributes.
In software engineering, the adapter pattern is a software design pattern that allows the interface of an existing class to be used from another interface. It is often used to make existing classes work with others without modifying their source code.
An adapter helps two incompatible interfaces to work together. This is the real world definition for an adapter. Interfaces may be incompatible but the inner functionality should suit the need. The Adapter design pattern allows otherwise incompatible classes to work together by converting the interface of one class into an interface expected by the clients.
There are two types of adapter patterns:
In this type of adapter pattern, the adapter contains an instance of the class it wraps. In this situation, the adapter makes calls to the instance of the wrapped object.
This type of adapter uses multiple polymorphic interfaces implementing or inheriting both the interface that is expected and the interface that is pre-existing. It is typical for the expected interface to be created as a pure interface class, especially in languages such as Java (before jdk 1.8) that do not support multiple inheritance of classes.
In baseball, a slider is a breaking ball pitch that tails laterally and down through the batter's hitting zone; it is thrown with speed less than a fastball but greater than the pitcher's curveball.
The break on the pitch is shorter than that of the curveball, and the release technique is 'between' those of a curveball and a fastball. The slider is similar to the cutter, a fastball pitch, but is more of a breaking ball than the cutter. The slider is also known as a yakker or a snapper.
Depending on velocity, a pitch can fall anywhere on the continuum from "fastball" to "slider":
The most notable difference between a slider and curveball is that the curveball delivery includes a downward yank on the ball as it is released in addition to the lateral spin applied by the slider grip. The slider is released off the index finger, while the curveball is released off the middle finger. If the pitcher is snapping his wrist as he throws, and the movement is more downward than sideways, then he is probably throwing a curveball or slurve, and not a true "slider". When throwing a slider, the pitcher should create a "dot" on the baseball; this means that as the ball approaches home plate, the rotation of the ball is forming a dot. On a good slider, the "dot" will be down where it is not noticeable for a hitter to pick up. From the batter's perspective, this dot appears white, whereas the dot is red for a curve ball (created by the seam movement), allowing many skilled batters to immediately recognize the type of pitch. By having the dot on the bottom part of the ball, the pitcher will create good depth to the pitch. A good, hard slider has a slight break across the plate and a slight drop on its plane to the hitter.
A slider or track bar is a graphical control element with which a user may set a value by moving an indicator, usually in a horizontal fashion. In some cases user may also click on a point on the slider to change the setting. It is different from a scrollbar in that it is not continuous but used to adjust a value without changing the format of the display or the other information on the screen.
Sliders are also combined with progress bars in the playback of streaming media over a network connection (e.g., YouTube videos) in order to show the content buffering position versus the playback position. This is done by superimposing a colored shaded area (progress bar) on top of the slider, indicating whether the user can "jump" forward or not.
In cricket, a slider is a type of delivery bowled by a wrist spin bowler. Whereas a topspinner is released with the thumb facing the batsman, a slider is bowled in a similar manner to a legbreak, but instead of imparting sidespin with the third finger, the bowler allows his fingers to roll down the back of the ball, providing a mixture of sidespin and backspin. Whereas a topspinner tends to dip more quickly and bounce higher than a normal delivery, a slider does the opposite: it carries to a fuller length and bounces less than the batsman might expect. The sliders will typically head towards the batsman with a scrambled seam (with the ball not spinning in the direction of the seam, so the seam direction is not constant, unlike in conventional spin bowling). This has less effect on the flight and bounce but absence of leg spin may deceive the batsman. Frequently the slider is bowled with a mixture of side spin and backspin. This has the effect of making the ball harder to differentiate from the leg break for the batsmen without reducing the mechanical effects caused by the backspin. This delivery may skid straight on or it may turn a small amount.