org.apache.olingo.server.api.prefer

## Class Preferences.Preference

- java.lang.Object
- - org.apache.olingo.server.api.prefer.Preferences.Preference

- Enclosing interface:
    Preferences

      public static class Preferences.Preference
      extends Object

  Generic preference object.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Preference(String value, Map<String,String> parameters)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Map<String,String>` | `getParameters()` Gets the parameters of the preference.
    `String` | `getValue()` Gets the value of the preference.

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

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

- - ### Constructor Detail

    - #### Preference

          public Preference(String value,
                            Map<String,String> parameters)

  - ### Method Detail

    - #### getValue

          public String getValue()

      Gets the value of the preference. It may be `null` if the preference has no value; this is not the same as the preference not set.

    - #### getParameters

          public Map<String,String> getParameters()

      Gets the parameters of the preference. The value of a parameter may be `null` if the parameter has no value; this is not the same as the parameter not set. Parameter names are all lowercase.
      Returns:
        a map from parameter names to parameter values

Copyright © 2013–2020 The Apache Software Foundation. All rights reserved.