java.lang.Object
com.linecorp.centraldogma.server.storage.repository.FindOption<T>
Type Parameters:
T - the type of the value

public class FindOption<T> extends Object
An option which is specified when retrieving one or more files.
  • Field Details

    • FETCH_CONTENT

      public static final FindOption<Boolean> FETCH_CONTENT
      Whether to fetch the content of the found files. The default value is true.
    • MAX_ENTRIES

      public static final FindOption<Integer> MAX_ENTRIES
      The maximum number of the fetched files. The default value is Integer.MAX_VALUE.
  • Method Details

    • name

      public String name()
      Returns the name of this option.
    • defaultValue

      public T defaultValue()
      Returns the default value of this option.
    • get

      public T get(@Nullable Map<FindOption<?>,?> options)
      Returns the value if this option exists in the specified options map. Otherwise, the default value would be returned.
    • toString

      public String toString()
      Overrides:
      toString in class Object