All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.objectos.code.ConstructorInfoFake Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2014 Objectos, Fábrica de Software LTDA.
 *
 * 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 br.com.objectos.code;

/**
 * @author [email protected] (Marcio Endo)
 */
public class ConstructorInfoFake {

  public static final ConstructorInfo POJO_CONSTRUCTOR_1 = builder()
      .accessInfo(AccessInfo.DEFAULT)
      .parameterInfo(ParameterInfoFake.STRING_NAME)
      .build();
  public static final ConstructorInfo POJO_CONSTRUCTOR_2 = builder()
      .accessInfo(AccessInfo.PUBLIC)
      .parameterInfo(ParameterInfoFake.STRING_NAME_0_2)
      .parameterInfo(ParameterInfoFake.INT_ID_1_2)
      .build();

  public static final ConstructorInfo PRIVATE_CONSTRUCTOR = builder()
      .accessInfo(AccessInfo.PRIVATE)
      .build();
  public static final ConstructorInfo DEFAULT_CONSTRUCTOR = builder()
      .accessInfo(AccessInfo.DEFAULT)
      .build();
  public static final ConstructorInfo PROTECTED_CONSTRUCTOR = builder()
      .accessInfo(AccessInfo.PROTECTED)
      .build();
  public static final ConstructorInfo PUBLIC_CONSTRUCTOR = builder()
      .accessInfo(AccessInfo.PUBLIC)
      .build();

  private ConstructorInfoFake() {
  }

  private static ConstructorInfoFakeBuilder builder() {
    return new ConstructorInfoFakeBuilder();
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy