@ThreadSafe public final class AdsUtilityRegistry extends Object
ads utilities
.Modifier and Type | Method and Description |
---|---|
void |
addUtility(AdsUtility adsUtility)
Adds the specified utility to the registry.
|
static AdsUtilityRegistry |
getInstance()
Returns the singleton of this class.
|
Set<AdsUtility> |
getRegisteredUtilities()
Returns all utilities in the registry.
|
void |
removeUtilities(Collection<AdsUtility> utilities)
Removes the specified utilities from the registry.
|
public static AdsUtilityRegistry getInstance()
public void addUtility(AdsUtility adsUtility)
Add is performed on a best efforts basis. It is possible that another thread will subsequently remove the utility immediately after the add.
NullPointerException
- if adsUtility == null
public Set<AdsUtility> getRegisteredUtilities()
public void removeUtilities(Collection<AdsUtility> utilities)
Removal is performed on a best efforts basis. It is possible that another thread will subsequently add one or more of the utilities immediately after the remove.
NullPointerException
- if utilities == null
Copyright © 2017. All Rights Reserved.