Codota Logo
GroupOrder
Code IndexAdd Codota 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)

  • Common ways to obtain GroupOrder
private void myMethod () {
GroupOrder g =
  • Codota IconClass klass;klass.getAnnotation(GroupOrder.class)
  • Smart code suggestions by Codota
}
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

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now