Example usage for org.springframework.data.mapping PropertyPath hasNext

List of usage examples for org.springframework.data.mapping PropertyPath hasNext

Introduction

In this page you can find the example usage for org.springframework.data.mapping PropertyPath hasNext.

Prototype

public boolean hasNext() 

Source Link

Document

Returns whether there is a nested PropertyPath .

Usage

From source file:org.springframework.data.mapping.PropertyPath.java

/**
 * Returns the leaf property of the {@link PropertyPath}.
 * //from   ww w .j  a  va  2 s. co m
 * @return will never be {@literal null}.
 */
public PropertyPath getLeafProperty() {

    PropertyPath result = this;

    while (result.hasNext()) {
        result = result.next();
    }

    return result;
}