Skip to content

Commit

Permalink
Improve javadoc for compose methods in NodeMappings
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhahmann committed Aug 14, 2023
1 parent 83ff2f1 commit e0c2923
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ public static < T > NodeMapping< T > singleton( double cost, Tree< T > tree1, Tr
}

/**
* @return A {@link NodeMapping} that represents a composed that contains
* all the map entries of the given {@code children}. The costs of the
* composed mapping is the sum of the costs of the children.
* @return A {@link NodeMapping} that represents a composed mapping that
* contains all the map entries of the given {@code children}. The costs of
* the composed mapping is the sum of the costs of the children.
*/
@SafeVarargs
public static < T > NodeMapping< T > compose( NodeMapping< T >... children )
Expand All @@ -49,9 +49,9 @@ public static < T > NodeMapping< T > compose( NodeMapping< T >... children )
}

/**
* @return A {@link NodeMapping} that represents a composed that contains
* all the map entries of the given {@code children}. The costs of the
* composed mapping is the sum of the costs of the children.
* @return A {@link NodeMapping} that represents a composed mapping that
* contains all the map entries of the given {@code children}. The costs of
* the composed mapping is the sum of the costs of the children.
*/
public static < T > NodeMapping< T > compose( List< NodeMapping< T > > children )
{
Expand Down

0 comments on commit e0c2923

Please sign in to comment.