org.springframework.cloud.dataflow.core

## Class RelaxedNames

- java.lang.Object
- - org.springframework.cloud.dataflow.core.RelaxedNames

- All Implemented Interfaces:
    Iterable<String>

      public final class RelaxedNames
      extends Object
      implements Iterable<String>

  Generates relaxed name variations from a given source.
  Author:
    Phillip Webb, Dave Syer

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RelaxedNames(String name)` Create a new `RelaxedNames` instance.

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static String` | `camelCaseToHyphenLower(String name)`
    `static RelaxedNames` | `forCamelCase(String name)` Return a `RelaxedNames` for the given source camelCase source name.
    `Iterator<String>` | `iterator()`

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

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

    - ### Methods inherited from interface java.lang.Iterable

      `forEach, spliterator`

- - ### Constructor Detail

    - #### RelaxedNames

          public RelaxedNames(String name)

      Create a new `RelaxedNames` instance.
      Parameters:
        `name` - the source name. For the maximum number of variations specify the name using dashed notation (e.g. my-property-name

  - ### Method Detail

    - #### iterator

          public Iterator<String> iterator()

      Specified by:
        `iterator` in interface `Iterable<String>`

    - #### forCamelCase

          public static RelaxedNames forCamelCase(String name)

      Return a `RelaxedNames` for the given source camelCase source name.
      Parameters:
        `name` - the source name in camelCase
      Returns:
        the relaxed names

    - #### camelCaseToHyphenLower

          public static String camelCaseToHyphenLower(String name)

Copyright © 2021 Pivotal Software, Inc.. All rights reserved.