Class IdMask.LongIdMask

  • All Implemented Interfaces:
    IdMask<Long>
    Enclosing interface:
    IdMask<T>

    public static final class IdMask.LongIdMask
    extends IdMask.BaseIdMask
    implements IdMask<Long>
    Implementation which handles long type ids (64 bit integers)
    • Method Detail

      • mask

        public String mask​(Long id)
        Description copied from interface: IdMask
        Mask a given id.
        Specified by:
        mask in interface IdMask<Long>
        Parameters:
        id - to mask
        Returns:
        encoded masked id
      • unmask

        public Long unmask​(String encoded)
        Description copied from interface: IdMask
        Unmask id that was previously masked with IdMask.mask(Object)
        Specified by:
        unmask in interface IdMask<Long>
        Parameters:
        encoded - to unmask
        Returns:
        original id