congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
UnkeyedListNode.getSize
Code IndexAdd Tabnine to your IDE (free)

How to use
getSize
method
in
org.opendaylight.yangtools.yang.data.api.schema.UnkeyedListNode

Best Java code snippets using org.opendaylight.yangtools.yang.data.api.schema.UnkeyedListNode.getSize (Showing top 2 results out of 315)

origin: org.opendaylight.yangtools/yang-data-impl

  private static int numOfChildrenFromValue(final NormalizedNode<?, ?> value) {
    if (value instanceof NormalizedNodeContainer) {
      return ((NormalizedNodeContainer<?, ?, ?>) value).getValue().size();
    } else if (value instanceof UnkeyedListNode) {
      return ((UnkeyedListNode) value).getSize();
    }

    throw new IllegalArgumentException(String.format(
        "Unexpected type '%s', expected types are NormalizedNodeContainer and UnkeyedListNode",
        value.getClass()));
  }
}
origin: opendaylight/yangtools

  private static int numOfChildrenFromValue(final NormalizedNode<?, ?> value) {
    if (value instanceof NormalizedNodeContainer) {
      return ((NormalizedNodeContainer<?, ?, ?>) value).getValue().size();
    } else if (value instanceof UnkeyedListNode) {
      return ((UnkeyedListNode) value).getSize();
    }

    throw new IllegalArgumentException(String.format(
        "Unexpected type '%s', expected types are NormalizedNodeContainer and UnkeyedListNode",
        value.getClass()));
  }
}
org.opendaylight.yangtools.yang.data.api.schemaUnkeyedListNodegetSize

Popular methods of UnkeyedListNode

  • getValue
  • getIdentifier

Popular in Java

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • 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