Checkstyle and trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083068 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
37a40f70ec
commit
a68f9dadd5
|
@ -5,9 +5,9 @@
|
|||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
|
@ -24,9 +24,9 @@ import java.util.Map;
|
|||
|
||||
/**
|
||||
* <p>Utility library to provide helper methods for Java enums.</p>
|
||||
*
|
||||
*
|
||||
* <p>#ThreadSafe#</p>
|
||||
*
|
||||
*
|
||||
* @author Apache Software Foundation
|
||||
* @since 3.0
|
||||
* @version $Id$
|
||||
|
@ -42,9 +42,10 @@ public class EnumUtils {
|
|||
|
||||
/**
|
||||
* <p>Gets the {@code Map} of enums by name.</p>
|
||||
*
|
||||
*
|
||||
* <p>This method is useful when you need a map of enums by name.</p>
|
||||
*
|
||||
* @param <E> the type of the enumeration
|
||||
* @param enumClass the class of the enum to query, not null
|
||||
* @return the modifiable map of enum names to enums, never null
|
||||
*/
|
||||
|
@ -58,9 +59,10 @@ public class EnumUtils {
|
|||
|
||||
/**
|
||||
* <p>Gets the {@code List} of enums.</p>
|
||||
*
|
||||
*
|
||||
* <p>This method is useful when you need a list of enums rather than an array.</p>
|
||||
*
|
||||
* @param <E> the type of the enumeration
|
||||
* @param enumClass the class of the enum to query, not null
|
||||
* @return the modifiable list of enums, never null
|
||||
*/
|
||||
|
@ -70,10 +72,11 @@ public class EnumUtils {
|
|||
|
||||
/**
|
||||
* <p>Checks if the specified name is a valid enum for the class.</p>
|
||||
*
|
||||
*
|
||||
* <p>This method differs from {@link Enum#valueOf} in that checks if the name is
|
||||
* a valid enum without needing to catch the exception.</p>
|
||||
*
|
||||
* @param <E> the type of the enumeration
|
||||
* @param enumClass the class of the enum to query, not null
|
||||
* @param enumName the enum name, null returns false
|
||||
* @return true if the enum name is valid, otherwise false
|
||||
|
@ -92,10 +95,11 @@ public class EnumUtils {
|
|||
|
||||
/**
|
||||
* <p>Gets the enum for the class, returning {@code null} if not found.</p>
|
||||
*
|
||||
*
|
||||
* <p>This method differs from {@link Enum#valueOf} in that it does not throw an exception
|
||||
* for an invalid enum name.</p>
|
||||
*
|
||||
* @param <E> the type of the enumeration
|
||||
* @param enumClass the class of the enum to query, not null
|
||||
* @param enumName the enum name, null returns null
|
||||
* @return the enum, null if not found
|
||||
|
|
Loading…
Reference in New Issue