Package org.cyclos.impl.utils
Class AbstractIdMask
- java.lang.Object
-
- org.cyclos.impl.utils.AbstractIdMask
-
- All Implemented Interfaces:
CustomBean,IdMask
- Direct Known Subclasses:
IdMaskCipher,NoOpIdMask
public abstract class AbstractIdMask extends Object implements IdMask
Base implementation for IdMask
-
-
Constructor Summary
Constructors Constructor Description AbstractIdMask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Longapply(Long id)Applies the mask for the given object identifierLongapply(Object object)Applies the mask for the given object if it is a Long.Longremove(Long id)Removes the mask from the given object identifierLongremove(Object object)Removes the mask from the given object if it is a Long.
-
-
-
Method Detail
-
apply
public final Long apply(Long id)
Description copied from interface:IdMaskApplies the mask for the given object identifier
-
apply
public final Long apply(Object object)
Description copied from interface:IdMaskApplies the mask for the given object if it is a Long. Otherwise, returns as is
-
remove
public final Long remove(Long id)
Description copied from interface:IdMaskRemoves the mask from the given object identifier
-
-