Enum SlippyTilePersistenceSchemeType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SlippyTilePersistenceSchemeType>

    public enum SlippyTilePersistenceSchemeType
    extends java.lang.Enum<SlippyTilePersistenceSchemeType>
    Definitions for various types of SlippyTilePersistenceSchemes. This enum forces users of SlippyTilePersistenceScheme into some predefined schemes, instead of allowing totally custom schemes. This should help mitigate gotchas surrounding path construction and other implementation details. Schemes may or may not contain a terminating file extension. In the case that the file extension is FileSuffix NONE, then the scheme can be thought of as a directory scheme. If the FileSuffix is provided, then the scheme will represent a terminated path (i.e.) a path containing a terminating file.
    • Method Detail

      • values

        public static SlippyTilePersistenceSchemeType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SlippyTilePersistenceSchemeType c : SlippyTilePersistenceSchemeType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SlippyTilePersistenceSchemeType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getSuffix

        public org.openstreetmap.atlas.streaming.resource.FileSuffix getSuffix()
      • getValue

        public java.lang.String getValue()