org.apache.tinkerpop.gremlin.process.traversal.translator

## Class AnonymizingTypeTranslator.DefaultAnonymizer

- java.lang.Object
- - org.apache.tinkerpop.gremlin.process.traversal.translator.AnonymizingTypeTranslator.DefaultAnonymizer

- All Implemented Interfaces:
    AnonymizingTypeTranslator.Anonymizer
  Enclosing class:
    AnonymizingTypeTranslator

      public static class AnonymizingTypeTranslator.DefaultAnonymizer
      extends Object
      implements AnonymizingTypeTranslator.Anonymizer

  This default implementation keeps a map from type (Java Class) to another map from instances to anonymized token.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultAnonymizer()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `anonymize(Object obj)` Return an anonymized token for the supplied object of the form "type:instance#".

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultAnonymizer

          public DefaultAnonymizer()

  - ### Method Detail

    - #### anonymize

          public Object anonymize(Object obj)

      Return an anonymized token for the supplied object of the form "type:instance#".
      Specified by:
        `anonymize` in interface `AnonymizingTypeTranslator.Anonymizer`
      Parameters:
        `obj` - a `Traversal` object of one of the following types: String, Long, Double, FLoat, Integer, Class, TImestamp, Date, UUID, `Vertex`, `Edge`, `VertexProperty`
      Returns:
        an anonymized version of the supplied object

Copyright © 2013–2022 Apache Software Foundation. All rights reserved.