Tabnine Logo
SimpleTypeInfo.equals
Code IndexAdd Tabnine to your IDE (free)

How to use
equals
method
in
br.com.objectos.way.code.SimpleTypeInfo

Best Java code snippets using br.com.objectos.way.code.SimpleTypeInfo.equals (Showing top 5 results out of 315)

origin: br.com.objectos/way-code

@AutoFunctional
public boolean hasReturnTypeInfo(SimpleTypeInfo typeInfo) {
 return returnTypeInfo().equals(typeInfo);
}
origin: br.com.objectos/way-code

@Override
public final boolean equals(final Object obj) {
 if (obj == this) {
  return true;
 }
 if (obj instanceof EnumConstantInfo) {
  final EnumConstantInfo that = (EnumConstantInfo) obj;
  return enumType().equals(that.enumType())
    && value().equals(that.value());
 } else {
  return false;
 }
}
origin: br.com.objectos.way/pojo-plugin

private static Optional<InvalidateMethod> of1(TypeInfo typeInfo, MethodInfo method, AnnotationInfo annotation) {
 String annotationName = annotation.simpleName();
 if (method.hasModifierInfo(ModifierInfo.FINAL)) {
  method.compilationError("@%s method cannot be final", annotationName);
  return Optional.empty();
 }
 if (method.hasAccessInfo(AccessInfo.PRIVATE)) {
  method.compilationError("@%s method cannot be private", annotationName);
  return Optional.empty();
 }
 SimpleTypeInfo returnTypeInfo = method.returnTypeInfo();
 boolean self = returnTypeInfo.equals(typeInfo.toSimpleTypeInfo());
 if (!returnTypeInfo.equals(SimpleTypePrimitives.VOID) && !self) {
  method.compilationError("@%s method must return void or self", annotationName);
  return Optional.empty();
 }
 InvalidateMethod invalidateMethod = new InvalidateMethod(method, annotation, self);
 return Optional.of(invalidateMethod);
}
origin: br.com.objectos/way-code

@Override
public MustacheObject toMustache() {
 return Mustaches.toMustacheHelper()
   .add("inherited", !typeInfo.equals(testableOf))
   .add("testableOf", testableOf)
   .toMustache();
}
origin: br.com.objectos/way-code-pojo

public static PojoTestable wrap(Pojo pojo) {
 ClassInfo classInfo = pojo.classInfo;
 Optional<InterfaceInfo> maybeTestable = classInfo.getInterface(Testable.class);
 if (!maybeTestable.isPresent()) {
  return NotTestable.INSTANCE;
 }
 Optional<MethodInfo> isEqual = classInfo.getMethodInfoIterable()
   .filter(MethodInfoHasName.get("isEqual"))
   .filter(MethodInfoHasModifierInfo.not(ModifierInfo.ABSTRACT))
   .first();
 if (isEqual.isPresent()) {
  return NotTestable.INSTANCE;
 }
 SimpleTypeInfo typeInfo = classInfo.toSimpleTypeInfo();
 InterfaceInfo testable = maybeTestable.get();
 SimpleTypeInfo testableOf = testable.getTypeParameterInfoIterable()
   .transform(TypeParameterInfoToSimpleTypeInfo.get())
   .first()
   .get();
 return typeInfo.equals(testableOf)
   ? new DefaultTestable(pojo, testableOf)
   : new InheritedTestable(pojo, testableOf);
}
br.com.objectos.way.codeSimpleTypeInfoequals

Popular methods of SimpleTypeInfo

  • typeName
  • isInfoOf
  • kind
  • nameInfo
  • newPrimitive
  • packageInfo
  • toArray
  • typeParameterInfoList
  • getTypeParameterInfoStream
  • isPrimitive
  • isSubType
  • newType
  • isSubType,
  • newType,
  • simpleName,
  • typeNameRaw,
  • className,
  • classNameSuffix,
  • fileAt,
  • getDeclaredName,
  • getGetterPrefix

Popular in Java

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • ImageIO (javax.imageio)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now