Class DotPath
java.lang.Object
org.springframework.data.mongodb.util.DotPath
Value object representing a dot path.
- Since:
- 3.2
- Author:
- Mark Paluch
-
Method Summary
-
Method Details
-
from
Creates a newDotPath
fromdotPath
.- Parameters:
dotPath
- the dot path, can be empty or null.- Returns:
- the
DotPath
representingdotPath
.
-
empty
Returns an empty dotpath.- Returns:
- an empty dotpath.
-
append
Append a segment to the dotpath. If the dotpath is not empty, then segments are separated with a dot.- Parameters:
segment
- the segment to append.- Returns:
-
isEmpty
public boolean isEmpty()Returns whether this dotpath is empty.- Returns:
- whether this dotpath is empty.
-
toString
-