diff options
author | Ahmed Ashour <asashour@yahoo.com> | 2017-10-26 12:07:51 +0200 |
---|---|---|
committer | Pekka Maanpää <pekkamaa@vaadin.com> | 2017-10-26 13:07:51 +0300 |
commit | 7c8f440781835dbcf72bfbc47ab8be2f669a40e4 (patch) | |
tree | bd6887cb9c3ca3a6ca1a6e292d17565bf3d378af /server/src/main/java/com/vaadin/data/provider | |
parent | ebc765c1a78c5facaf5e65122e317da0af6ca472 (diff) | |
download | vaadin-framework-7c8f440781835dbcf72bfbc47ab8be2f669a40e4.tar.gz vaadin-framework-7c8f440781835dbcf72bfbc47ab8be2f669a40e4.zip |
Remove trailing spaces (#10224)
Diffstat (limited to 'server/src/main/java/com/vaadin/data/provider')
-rw-r--r-- | server/src/main/java/com/vaadin/data/provider/HierarchicalDataProvider.java | 14 | ||||
-rw-r--r-- | server/src/main/java/com/vaadin/data/provider/HierarchyMapper.java | 60 |
2 files changed, 37 insertions, 37 deletions
diff --git a/server/src/main/java/com/vaadin/data/provider/HierarchicalDataProvider.java b/server/src/main/java/com/vaadin/data/provider/HierarchicalDataProvider.java index 8dabdce2cc..007256b109 100644 --- a/server/src/main/java/com/vaadin/data/provider/HierarchicalDataProvider.java +++ b/server/src/main/java/com/vaadin/data/provider/HierarchicalDataProvider.java @@ -34,12 +34,12 @@ public interface HierarchicalDataProvider<T, F> extends DataProvider<T, F> { /** * Get the number of immediate child data items for the parent item returned * by a given query. - * + * * @param query * given query to request the count for * @return the count of child data items for the data item * {@link HierarchicalQuery#getParent()} - * + * * @throws IllegalArgumentException * if the query is not of type HierarchicalQuery */ @@ -56,11 +56,11 @@ public interface HierarchicalDataProvider<T, F> extends DataProvider<T, F> { * Fetches data from this HierarchicalDataProvider using given * {@code query}. Only the immediate children of * {@link HierarchicalQuery#getParent()} will be returned. - * + * * @param query * given query to request data with * @return a stream of data objects resulting from the query - * + * * @throws IllegalArgumentException * if the query is not of type HierarchicalQuery */ @@ -76,7 +76,7 @@ public interface HierarchicalDataProvider<T, F> extends DataProvider<T, F> { /** * Get the number of immediate child data items for the parent item returned * by a given query. - * + * * @param query * given query to request the count for * @return the count of child data items for the data item @@ -88,7 +88,7 @@ public interface HierarchicalDataProvider<T, F> extends DataProvider<T, F> { * Fetches data from this HierarchicalDataProvider using given * {@code query}. Only the immediate children of * {@link HierarchicalQuery#getParent()} will be returned. - * + * * @param query * given query to request data with * @return a stream of data objects resulting from the query @@ -97,7 +97,7 @@ public interface HierarchicalDataProvider<T, F> extends DataProvider<T, F> { /** * Check whether a given item has any children associated with it. - * + * * @param item * the item to check for children * @return whether the given item has children diff --git a/server/src/main/java/com/vaadin/data/provider/HierarchyMapper.java b/server/src/main/java/com/vaadin/data/provider/HierarchyMapper.java index 6b34bfa86c..a6ea2183fa 100644 --- a/server/src/main/java/com/vaadin/data/provider/HierarchyMapper.java +++ b/server/src/main/java/com/vaadin/data/provider/HierarchyMapper.java @@ -48,7 +48,7 @@ import elemental.json.JsonObject; * * @author Vaadin Ltd * @since 8.1 - * + * * @param <T> * the data type * @param <F> @@ -71,7 +71,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Constructs a new HierarchyMapper. - * + * * @param provider * the hierarchical data provider for this mapper */ @@ -81,7 +81,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Returns the size of the currently expanded hierarchy. - * + * * @return the amount of available data */ public int getTreeSize() { @@ -90,11 +90,11 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Finds the index of the parent of the item in given target index. - * + * * @param item * the item to get the parent of * @return the parent index or a negative value if the parent is not found - * + * */ public Integer getParentIndex(T item) { // TODO: This can be optimized. @@ -104,7 +104,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Returns whether the given item is expanded. - * + * * @param item * the item to test * @return {@code true} if item is expanded; {@code false} if not @@ -119,7 +119,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Expands the given item. - * + * * @param item * the item to expand * @param position @@ -141,12 +141,12 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Collapses the given item. - * + * * @param item * the item to expand * @param position * the index of item - * + * * @return range of rows removed by collapsing the item */ public Range doCollapse(T item, Optional<Integer> position) { @@ -196,7 +196,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Gets the current item collapse allowed provider. - * + * * @return the item collapse allowed provider */ public ItemCollapseAllowedProvider<T> getItemCollapseAllowedProvider() { @@ -205,7 +205,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Sets the current item collapse allowed provider. - * + * * @param itemCollapseAllowedProvider * the item collapse allowed provider */ @@ -216,7 +216,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Gets the current in-memory sorting. - * + * * @return the in-memory sorting */ public Comparator<T> getInMemorySorting() { @@ -226,7 +226,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Sets the current in-memory sorting. This will cause the hierarchy to be * constructed again. - * + * * @param inMemorySorting * the in-memory sorting */ @@ -236,7 +236,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Gets the current back-end sorting. - * + * * @return the back-end sorting */ public List<QuerySortOrder> getBackEndSorting() { @@ -246,7 +246,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Sets the current back-end sorting. This will cause the hierarchy to be * constructed again. - * + * * @param backEndSorting * the back-end sorting */ @@ -256,7 +256,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Gets the current filter. - * + * * @return the filter */ public F getFilter() { @@ -266,7 +266,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Sets the current filter. This will cause the hierarchy to be constructed * again. - * + * * @param filter * the filter */ @@ -277,7 +277,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Gets the {@code HierarchicalDataProvider} for this * {@code HierarchyMapper}. - * + * * @return the hierarchical data provider */ public HierarchicalDataProvider<T, F> getDataProvider() { @@ -286,7 +286,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Returns whether given item has children. - * + * * @param item * the node to test * @return {@code true} if node has children; {@code false} if not @@ -300,7 +300,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Gets a stream of items in the form of a flattened hierarchy from the * back-end and filter the wanted results from the list. - * + * * @param range * the requested item range * @return the stream of items @@ -312,7 +312,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Gets a stream of children for the given item in the form of a flattened * hierarchy from the back-end and filter the wanted results from the list. - * + * * @param parent * the parent item for the fetch * @param range @@ -329,7 +329,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Generic method for finding direct children of a given parent, limited by * given range. - * + * * @param parent * the parent * @param range @@ -361,7 +361,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { * Removes all children of an item identified by a given id. Items removed * by this method as well as the original item are all marked to be * collapsed. - * + * * @param id * the item id */ @@ -387,7 +387,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Finds the current index of given object. This is based on a search in * flattened version of the hierarchy. - * + * * @param target * the target object to find * @return optional index of given object @@ -405,7 +405,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Gets the full hierarchy tree starting from given node. - * + * * @param parent * the parent node to start from * @return the flattened hierarchy as a stream @@ -417,7 +417,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Getst hte full hierarchy tree starting from given node. The starting node * can be omitted. - * + * * @param parent * the parent node to start from * @param includeParent @@ -431,7 +431,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { /** * Gets the stream of direct children for given node. - * + * * @param parent * the parent node * @return the stream of direct children @@ -445,7 +445,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { * The method to recursively fetch the children of given parent. Used with * {@link Stream#flatMap} to expand a stream of parent nodes into a * flattened hierarchy. - * + * * @param parent * the parent node * @return the stream of all children under the parent, includes the parent @@ -458,7 +458,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { * The method to recursively fetch the children of given parent. Used with * {@link Stream#flatMap} to expand a stream of parent nodes into a * flattened hierarchy. - * + * * @param parent * the parent node * @param includeParent @@ -487,7 +487,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { * Helper method for combining parent and a stream of children into one * stream. {@code null} item is never included, and parent can be skipped by * providing the correct value for {@code includeParent}. - * + * * @param parent * the parent node * @param children |