Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-726

Add lambdas function to provide default values in MapUtils #81

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5
    • Component/s: None
    • Labels:
      None

      Description

      Add lambdas function to provide default values in MapUtils #81.

      Add APIs:

      • org.apache.commons.collections4.MapUtils.getBoolean(Map<? super K, ?>, K, Function<K, Boolean>)
      • org.apache.commons.collections4.MapUtils.getBooleanValue(Map<? super K, ?>, K, Function<K, Boolean>)
      • org.apache.commons.collections4.MapUtils.getByte(Map<? super K, ?>, K, Function<K, Byte>)
      • org.apache.commons.collections4.MapUtils.getByteValue(Map<? super K, ?>, K, Function<K, Byte>)
      • org.apache.commons.collections4.MapUtils.getDouble(Map<? super K, ?>, K, Function<K, Double>)
      • org.apache.commons.collections4.MapUtils.getDoubleValue(Map<? super K, ?>, K, Function<K, Double>)
      • org.apache.commons.collections4.MapUtils.getFloat(Map<? super K, ?>, K, Function<K, Float>)
      • org.apache.commons.collections4.MapUtils.getFloatValue(Map<? super K, ?>, K, Function<K, Float>)
      • org.apache.commons.collections4.MapUtils.getInteger(Map<? super K, ?>, K, Function<K, Integer>)
      • org.apache.commons.collections4.MapUtils.getIntValue(Map<? super K, ?>, K, Function<K, Integer>)
      • org.apache.commons.collections4.MapUtils.getLong(Map<? super K, ?>, K, Function<K, Long>)
      • org.apache.commons.collections4.MapUtils.getLongValue(Map<? super K, ?>, K, Function<K, Long>)
      • org.apache.commons.collections4.MapUtils.getMap(Map<? super K, ?>, K, Function<K, Map<?, ?>>)
      • org.apache.commons.collections4.MapUtils.getNumber(Map<? super K, ?>, K, Function<K, Number>)
      • org.apache.commons.collections4.MapUtils.getShort(Map<? super K, ?>, K, Function<K, Short>)
      • org.apache.commons.collections4.MapUtils.getShortValue(Map<? super K, ?>, K, Function<K, Short>)
      • org.apache.commons.collections4.MapUtils.getString(Map<? super K, ?>, K, Function<K, String>)

        Attachments

          Activity

            People

            • Assignee:
              ggregory Gary D. Gregory
              Reporter:
              ggregory Gary D. Gregory
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: