Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* 
  * Copyright (C) 2012 FoxLabs
  * 
  * Licensed 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.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.foxlabs.validation.constraint;
Replaces all whitespaces with single character in the annotated string.

Author(s):
Fox Mulder
See also:
CoalesceConstraint
public @interface Coalesce {
    
    
End of line constant.
    char EOL = '\n';
    
    
Tabulation constant.
    char TAB = '\t';
    
    
Whitespaces replacement character.
    char replacement() default '\u0020';
    
    
Array of groups the constraint is applied on. Empty array means default group.
    String[] groups() default {};
    
    
An object part to which constraint should be applied. ValidationTarget.VALUE will be used by default.
    ValidationTarget[] targets() default {};
    
    
Defines several @Coalesce annotations on the same element.

Author(s):
Fox Mulder
    public static @interface List {
        
        
@Coalesce annotations.
        Coalesce[] value();
        
    }
    
New to GrepCode? Check out our FAQ X