T
- the type of object stored in the namespacepublic interface CollisionPolicy<T>
CollisionPolicy
, a user can control the behavior of
a NamespaceBuilder
when an add requests the use of a
name already associated with another entry.
A number of common policies are defined in NamespaceBuilder
.
Refer to the Javadoc there for details.
Modifier and Type | Method and Description |
---|---|
String |
handleCollision(T entry,
String name,
int failureCount)
Computes an alternate name for an entry when a collision
occurs in a namespace.
|
String handleCollision(T entry, String name, int failureCount)
entry
- the object added to the namespacename
- the name requested to be associated with the object
in the namespacefailureCount
- the number of times the collision handler
has been invoked for this objectnull
indicates the object should replace the existing
entry associated with the name.Copyright © 2020 Actian Corporation. All rights reserved.