Skip navigation links
A C D E F G H I L M N O P S T V W 

A

ALPHABET - Static variable in class ws.suid.Suid
Alphabet used when converting suid to string

C

charAt(int) - Method in class ws.suid.Suid
Returns the char present at the given index in the base-36 string representation of this suid.
compareTo(Suid) - Method in class ws.suid.Suid
 
convertToDatabaseColumn(Suid) - Method in class ws.suid.Suid.SuidConverter
 
convertToEntityAttribute(Long) - Method in class ws.suid.Suid.SuidConverter
 
COUNT_BLOCK - Static variable in class ws.suid.Suid
Number of block bits
COUNT_ID - Static variable in class ws.suid.Suid
Number of ID bits
COUNT_RESERVED - Static variable in class ws.suid.Suid
Number of reserved bits
COUNT_SHARD - Static variable in class ws.suid.Suid
Number of shard bits

D

deserialize(JsonParser, DeserializationContext) - Method in class ws.suid.Suid.Deserializer
 
Deserializer() - Constructor for class ws.suid.Suid.Deserializer
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class ws.suid.SuidServlet
Handles incoming GET requests.
doubleValue() - Method in class ws.suid.Suid
 

E

equals(Object) - Method in class ws.suid.Suid
 

F

floatValue() - Method in class ws.suid.Suid
 

G

Generator() - Constructor for class ws.suid.SuidService.Generator
 
getBlock() - Method in class ws.suid.Suid
Gets the block number.
getId() - Method in class ws.suid.Suid
Gets the generated ID.
getShard() - Method in class ws.suid.Suid
Gets the shard ID.

H

hashCode() - Method in class ws.suid.Suid
 

I

IDSIZE - Static variable in class ws.suid.Suid
The number of ID's available in each block.
init(int) - Method in class ws.suid.SuidService
Initializes this SuidService based on the given shard.
init() - Method in class ws.suid.SuidServlet
Initializes this servlet and the associated SuidService.
intValue() - Method in class ws.suid.Suid
 

L

length() - Method in class ws.suid.Suid
Returns the length of the string representation of this suid.
longValue() - Method in class ws.suid.Suid
Returns this suid's underlying value.
looksValid(String) - Static method in class ws.suid.Suid
Indicates whether the given value looks like a valid suid string.
looksValidJSON(String) - Static method in class ws.suid.Suid
Indicates whether the given json string looks like a valid JSON representation of a suid.

M

MASK_BLOCK - Static variable in class ws.suid.Suid
Mask that singles out the block bits
MASK_ID - Static variable in class ws.suid.Suid
Mask that singles out the ID bits
MASK_RESERVED - Static variable in class ws.suid.Suid
Mask that singles out the reserved bits
MASK_SHARD - Static variable in class ws.suid.Suid
Mask that singles out the shard bits
MAX_REQUEST_BLOCKS - Static variable in class ws.suid.SuidService
 

N

next(SuidService) - Method in class ws.suid.SuidService.Generator
 
next() - Method in class ws.suid.SuidService
 
nextBlocks(int) - Method in class ws.suid.SuidService
Gets the next count ID blocks.
NULL - Static variable in class ws.suid.Suid
Convenient constant for a Suid with a value of 0L.

O

OFFSET_BLOCK - Static variable in class ws.suid.Suid
Offset of block bits within suid (from LSB)
OFFSET_ID - Static variable in class ws.suid.Suid
Offset of ID bits within suid (from LSB)

P

PREFIX - Static variable in class ws.suid.Suid
Prefix used when serializing to/from JSON.

S

serialize(Suid, JsonGenerator, SerializerProvider) - Method in class ws.suid.Suid.Serializer
 
Serializer() - Constructor for class ws.suid.Suid.Serializer
 
SHARDSIZE - Static variable in class ws.suid.Suid
The number of shards available
subSequence(int, int) - Method in class ws.suid.Suid
 
Suid - Class in ws.suid
Stores a 53-bit service-unique ID in a 64-bit long.
Suid(String) - Constructor for class ws.suid.Suid
Constructor needed by Jackson.
Suid.Deserializer - Class in ws.suid
Deserializes from JSON
Suid.Serializer - Class in ws.suid
Serializes to JSON
Suid.SuidConverter - Class in ws.suid
 
SuidConverter() - Constructor for class ws.suid.Suid.SuidConverter
 
SuidService - Class in ws.suid
Service that fetches suid ID blocks from the database.
SuidService() - Constructor for class ws.suid.SuidService
 
SuidService.Generator - Class in ws.suid
 
SuidServlet - Class in ws.suid
Listens for incoming requests for suid blocks and delegates them to the SuidService.
SuidServlet() - Constructor for class ws.suid.SuidServlet
Empty constructor, does nothing.

T

toJSON() - Method in class ws.suid.Suid
Serializes this suid to JSON.
toLong() - Method in class ws.suid.Suid
Converts this Suid to a Java Long.
toLong(List<Suid>) - Static method in class ws.suid.Suid
 
toString() - Method in class ws.suid.Suid
Returns a base-36 string representation of this suid.

V

valueOf(long) - Static method in class ws.suid.Suid
Creates a suid based on the given long value.
valueOf(long, int, byte) - Static method in class ws.suid.Suid
Creates a suid based on the given block number, generator id and shard id.
valueOf(String) - Static method in class ws.suid.Suid
Creates a suid based on the given string.
valueOf(List<Long>) - Static method in class ws.suid.Suid
 
valueOfJSON(String) - Static method in class ws.suid.Suid
Deserializes the given JSON string into a suid, if possible.

W

ws.suid - package ws.suid
 
A C D E F G H I L M N O P S T V W 
Skip navigation links

Copyright © 2015. All rights reserved.