Example usage for org.springframework.boot.configurationmetadata ConfigurationMetadataRepository ROOT_GROUP

List of usage examples for org.springframework.boot.configurationmetadata ConfigurationMetadataRepository ROOT_GROUP

Introduction

In this page you can find the example usage for org.springframework.boot.configurationmetadata ConfigurationMetadataRepository ROOT_GROUP.

Prototype

String ROOT_GROUP

To view the source code for org.springframework.boot.configurationmetadata ConfigurationMetadataRepository ROOT_GROUP.

Click Source Link

Document

Defines the name of the "root" group, that is the group that gathers all the properties that aren't attached to a specific group.

Usage

From source file:demo.config.diff.ConfigDiffSample.java

private static Comparator<ConfigGroupDiff> groupComparator() {
    return (o1, o2) -> {
        if (ConfigurationMetadataRepository.ROOT_GROUP.equals(o1.getId())) {
            return -1;
        }/*from   www  . ja  v  a 2s .  c  o m*/
        if (ConfigurationMetadataRepository.ROOT_GROUP.equals(o2.getId())) {
            return 1;
        }
        return o1.getId().compareTo(o2.getId());
    };
}