All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.virtdata.libbasics.shared.from_long.to_time_types.ToEpochTimeUUIDAutoDocsInfo Maven / Gradle / Ivy

There is a newer version: 2.12.15
Show newest version
// This file is auto-generated.
package io.virtdata.libbasics.shared.from_long.to_time_types;

import io.virtdata.annotations.Category;
import io.virtdata.annotations.Service;
import io.virtdata.processors.DocCtorData;
import io.virtdata.processors.DocForFuncCtor;
import io.virtdata.processors.DocFuncData;
import java.lang.String;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;

@Service(DocFuncData.class)
public class ToEpochTimeUUIDAutoDocsInfo implements DocFuncData {
  public String getClassName() {
    return "ToEpochTimeUUID";
  }

  public String getPackageName() {
    return "io.virtdata.libbasics.shared.from_long.to_time_types";
  }

  public String getClassJavadoc() {
    return "Converts a long UTC timestamp in epoch millis form into a Version 1 TimeUUID\n"
            + "according to RFC 4122.\n"
            + "This means that only one unique value for a timeuuid can be generated for\n"
            + "each epoch milli value, even though version 1 TimeUUIDs can normally represent\n"
            + "up to 10000 distinct values per millisecond. If you need to access this\n"
            + "level of resolution for testing purposes, use {@link ToFinestTimeUUID}\n"
            + "instead. This method is to support simple mapping to natural timestamps\n"
            + "as we often find in the real world.\n"
            + "

\n" + "For the variants that have a String argument in the constructor, this is\n" + "a parsable datetime that is used as the base time for all produced values.\n" + "Setting this allows you to set the start of the time range for all timeuuid\n" + "values produced. All times are parsed for UTC. All time use ISO date ordering,\n" + "meaning that the most significant fields always go before the others.\n" + "

\n" + "The valid formats, in joda specifier form are:\n" + "

    \n" + "
  1. yyyy-MM-dd HH:mm:ss.SSSZ, for example: 2015-02-28 23:30:15.223
  2. \n" + "
  3. yyyy-MM-dd HH:mm:ss, for example 2015-02-28 23:30:15
  4. \n" + "
  5. yyyyMMdd'T'HHmmss.SSSZ, for example: 20150228T233015.223
  6. \n" + "
  7. yyyyMMdd'T'HHmmssZ, for example: 20150228T233015
  8. \n" + "
  9. yyyy-MM-dd, for example: 2015-02-28
  10. \n" + "
  11. yyyyMMdd, for example: 20150228
  12. \n" + "
  13. yyyyMM, for example: 201502
  14. \n" + "
  15. yyyy, for example: 2015
  16. \n" + "
\n"; } public String getInType() { return "long"; } public String getOutType() { return "java.util.UUID"; } public Category[] getCategories() { return new Category[] { Category.datetime }; } public List getCtors() { return new ArrayList() {{ add(new DocForFuncCtor("ToEpochTimeUUID", "Create version 1 timeuuids with a per-host node and empty clock data.\n" + "The node and clock components are seeded from network interface data. In this case,\n" + "the clock data is not seeded uniquely.\n", new LinkedHashMap() {{ }}, new ArrayList>() {{ add(new ArrayList() {{ add("ToEpochTimeUUID()"); add("basetime 0, computed node data, empty clock data"); }}); }} )); add(new DocForFuncCtor("ToEpochTimeUUID", "Create version 1 timeuuids with a specific static node and empty clock data.\n" + "This is useful for testing so that you can know that values are verifiable, even though\n" + "in non-testing practice, you would rely on some form of entropy per-system to provide\n" + "more practical dispersion of values over reboots, etc.\n" + "\n" + "@param node a fixture value for testing that replaces node and clock bits\n", new LinkedHashMap() {{ put("node","long"); }}, new ArrayList>() {{ add(new ArrayList() {{ add("ToEpochTimeUUID(5234)"); add("basetime 0, specified node data (5234), empty clock data"); }}); }} )); add(new DocForFuncCtor("ToEpochTimeUUID", "Create version 1 timeuuids with a specific static node and specific clock data.\n" + "This is useful for testing so that you can know that values are verifiable, even though\n" + "in non-testing practice, you would rely on some form of entropy per-system to provide\n" + "more practical dispersion of values over reboots, etc.\n" + "\n" + "@param node a fixture value for testing that replaces node bits\n" + "@param clock a fixture value for testing that replaces clock bits\n", new LinkedHashMap() {{ put("node","long"); put("clock","long"); }}, new ArrayList>() {{ add(new ArrayList() {{ add("ToEpochTimeUUID(31,337)"); add("basetime 0, specified node data (31) and clock data (337)"); }}); }} )); add(new DocForFuncCtor("ToEpochTimeUUID", "Create version 1 timeuuids with a per-host node and empty clock data.\n" + "The node and clock components are seeded from network interface data. In this case,\n" + "the clock data is not seeded uniquely.\n" + "\n" + "@param baseSpec - a string specification for the base time value\n", new LinkedHashMap() {{ put("baseSpec","java.lang.String"); }}, new ArrayList>() {{ add(new ArrayList() {{ add("ToEpochTimeUUID('2017-01-01T23:59:59')"); add("specified basetime, computed node data, empty clock data"); }}); }} )); add(new DocForFuncCtor("ToEpochTimeUUID", "Create version 1 timeuuids with a specific static node and empty clock data.\n" + "This is useful for testing so that you can know that values are verifiable, even though\n" + "in non-testing practice, you would rely on some form of entropy per-system to provide\n" + "more practical dispersion of values over reboots, etc.\n" + "\n" + "@param baseSpec - a string specification for the base time value\n" + "@param node a fixture value for testing that replaces node and clock bits\n", new LinkedHashMap() {{ put("baseSpec","java.lang.String"); put("node","long"); }}, new ArrayList>() {{ add(new ArrayList() {{ add("ToEpochTimeUUID('2012',12345)"); add("basetime at start if 2012, with node data 12345, empty clock data"); }}); }} )); add(new DocForFuncCtor("ToEpochTimeUUID", "Create version 1 timeuuids with a specific static node and specific clock data.\n" + "This is useful for testing so that you can know that values are verifiable, even though\n" + "in non-testing practice, you would rely on some form of entropy per-system to provide\n" + "more practical dispersion of values over reboots, etc.\n" + "\n" + "@param baseSpec - a string specification for the base time value\n" + "@param node a fixture value for testing that replaces node bits\n" + "@param clock a fixture value for testing that replaces clock bits\n", new LinkedHashMap() {{ put("baseSpec","java.lang.String"); put("node","long"); put("clock","long"); }}, new ArrayList>() {{ add(new ArrayList() {{ add("ToEpochTimeUUID('20171231T1015.243',123,456)"); add("ms basetime, specified node and clock data"); }}); }} )); }}; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy