Tabnine Logo
GroupOrder
Code IndexAdd Tabnine to your IDE (free)

How to use
GroupOrder
in
uk.co.real_logic.sbe.codec.java

Best Java code snippets using uk.co.real_logic.sbe.codec.java.GroupOrder (Showing top 4 results out of 315)

origin: real-logic/simple-binary-encoding

private Set<String> getSortedMethods(final Class<?> clazz, final Method[] methods)
{
  final Set<String> sortedMethodNames = sortedMethods.get(clazz);
  if (sortedMethodNames == null)
  {
    final GroupOrder order = clazz.getAnnotation(GroupOrder.class);
    if (order == null)
    {
      sortedMethods.put(clazz, Collections.emptySet());
      return Collections.emptySet();
    }
    else
    {
      final Set<String> result = new LinkedHashSet<>();
      for (final Class<?> groupClazz : order.value())
      {
        for (final Method method : methods)
        {
          if (method.getReturnType() == groupClazz && method.getParameterTypes().length == 0)
          {
            result.add(method.getName());
          }
        }
      }
      sortedMethods.put(clazz, result);
      return result;
    }
  }
  return sortedMethodNames;
}
origin: uk.co.real-logic/sbe-all

private Set<String> getSortedMethods(final Class<?> clazz, final Method[] methods)
{
  final Set<String> sortedMethodNames = sortedMethods.get(clazz);
  if (sortedMethodNames == null)
  {
    final GroupOrder order = clazz.getAnnotation(GroupOrder.class);
    if (order == null)
    {
      sortedMethods.put(clazz, Collections.emptySet());
      return Collections.emptySet();
    }
    else
    {
      final Set<String> result = new LinkedHashSet<>();
      for (final Class<?> groupClazz : order.value())
      {
        for (final Method method : methods)
        {
          if (method.getReturnType() == groupClazz && method.getParameterTypes().length == 0)
          {
            result.add(method.getName());
          }
        }
      }
      sortedMethods.put(clazz, result);
      return result;
    }
  }
  return sortedMethodNames;
}
origin: uk.co.real-logic/sbe-tool

private Set<String> getSortedMethods(final Class<?> clazz, final Method[] methods)
{
  final Set<String> sortedMethodNames = sortedMethods.get(clazz);
  if (sortedMethodNames == null)
  {
    final GroupOrder order = clazz.getAnnotation(GroupOrder.class);
    if (order == null)
    {
      sortedMethods.put(clazz, Collections.emptySet());
      return Collections.emptySet();
    }
    else
    {
      final Set<String> result = new LinkedHashSet<>();
      for (final Class<?> groupClazz : order.value())
      {
        for (final Method method : methods)
        {
          if (method.getReturnType() == groupClazz && method.getParameterTypes().length == 0)
          {
            result.add(method.getName());
          }
        }
      }
      sortedMethods.put(clazz, result);
      return result;
    }
  }
  return sortedMethodNames;
}
origin: uk.co.real-logic/sbe

private Set<String> getSortedMethods(final Class<?> clazz, final Method[] methods)
{
  final Set<String> sortedMethodNames = sortedMethods.get(clazz);
  if (sortedMethodNames == null)
  {
    final GroupOrder order = clazz.getAnnotation(GroupOrder.class);
    if (order == null)
    {
      sortedMethods.put(clazz, Collections.<String>emptySet());
      return Collections.emptySet();
    }
    else
    {
      final Set<String> result = new LinkedHashSet<>();
      for (final Class<?> groupClazz : order.value())
      {
        for (final Method method : methods)
        {
          if (method.getReturnType() == groupClazz && method.getParameterTypes().length == 0)
          {
            result.add(method.getName());
          }
        }
      }
      sortedMethods.put(clazz, result);
      return result;
    }
  }
  return sortedMethodNames;
}
uk.co.real_logic.sbe.codec.javaGroupOrder

Most used methods

  • value

Popular in Java

  • Reactive rest calls using spring rest template
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • getSharedPreferences (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Permission (java.security)
    Legacy security code; do not use.
  • JList (javax.swing)
  • JPanel (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top PhpStorm plugins
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