Example usage for java.util Collections emptyNavigableSet

List of usage examples for java.util Collections emptyNavigableSet

Introduction

In this page you can find the example usage for java.util Collections emptyNavigableSet.

Prototype

@SuppressWarnings("unchecked")
public static <E> NavigableSet<E> emptyNavigableSet() 

Source Link

Document

Returns an empty navigable set (immutable).

Usage

From source file:com.ejisto.modules.dao.local.LocalMockedFieldsDao.java

@Override
public Collection<MockedField> loadContextPathFields(String contextPath) {
    return getDatabase().getMockedFields(contextPath).orElse(Collections.emptyNavigableSet()).stream()
            .map(MockedFieldContainer::getMockedField).collect(Collectors.toList());
}

From source file:com.ejisto.modules.dao.local.LocalMockedFieldsDao.java

private NavigableSet<MockedFieldContainer> getMockedFieldsByContextPath(String contextPath) {
    return getDatabase().getMockedFields(contextPath).orElse(Collections.emptyNavigableSet());
}