From 51f05d992720aefa34263b719842fbd41630d718 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Wed, 25 Feb 2015 21:25:31 -0500 Subject: [PATCH] Add since 1.3.0 tags to the new ConfigMemorySize methods --- config/src/main/java/com/typesafe/config/Config.java | 11 +++++++++++ .../java/com/typesafe/config/ConfigMemorySize.java | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/config/src/main/java/com/typesafe/config/Config.java b/config/src/main/java/com/typesafe/config/Config.java index 001f2be7..9526fa1f 100644 --- a/config/src/main/java/com/typesafe/config/Config.java +++ b/config/src/main/java/com/typesafe/config/Config.java @@ -593,6 +593,8 @@ public interface Config extends ConfigMergeable { * href="https://github.com/typesafehub/config/blob/master/HOCON.md">the * spec. * + * @since 1.3.0 + * * @param path * path expression * @return the value at the requested path, in bytes @@ -706,6 +708,15 @@ public interface Config extends ConfigMergeable { List getBytesList(String path); + /** + * Gets a list, converting each value in the list to a memory size, using the + * same rules as {@link #getMemorySize(String)}. + * + * @since 1.3.0 + * @param path + * a path expression + * @return list of memory sizes + */ List getMemorySizeList(String path); /** diff --git a/config/src/main/java/com/typesafe/config/ConfigMemorySize.java b/config/src/main/java/com/typesafe/config/ConfigMemorySize.java index 17c99fb5..cc9aed47 100644 --- a/config/src/main/java/com/typesafe/config/ConfigMemorySize.java +++ b/config/src/main/java/com/typesafe/config/ConfigMemorySize.java @@ -7,6 +7,8 @@ package com.typesafe.config; * An immutable class representing an amount of memory. Use * static factory methods such as {@link * ConfigMemorySize#ofBytes(long)} to create instances. + * + * @since 1.3.0 */ public final class ConfigMemorySize { private final long bytes; @@ -20,6 +22,7 @@ public final class ConfigMemorySize { /** * Constructs a ConfigMemorySize representing the given * number of bytes. + * @since 1.3.0 */ public static ConfigMemorySize ofBytes(long bytes) { return new ConfigMemorySize(bytes); @@ -27,6 +30,7 @@ public final class ConfigMemorySize { /** * Gets the size in bytes. + * @since 1.3.0 */ public long toBytes() { return bytes;