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

How to use
Tag
in
io.protostuff

Best Java code snippets using io.protostuff.Tag (Showing top 20 results out of 315)

origin: protostuff/protostuff

private static class SparseInt1
{
  @Tag(101)
  public int a0;
}
origin: protostuff/protostuff

tag[ordinal] = annotation.value();
alias[ordinal] = annotation.alias();
valueByTagMap.put(annotation.value(), instance);
valueByAliasMap.put(annotation.alias(), instance);
origin: protostuff/protostuff

public Field(WireFormat.FieldType type, int number, String name, boolean repeated,
    Tag tag)
{
  this.type = type;
  this.number = number;
  this.name = name;
  this.repeated = repeated;
  this.groupFilter = tag == null ? 0 : tag.groupFilter();
  // this.tag = tag;
}
origin: protostuff/protostuff

  private static class SparseInt10
  {
    @Tag(1)
    public int a0;
    @Tag(2)
    public int a1;
    @Tag(3)
    public int a2;
    @Tag(4)
    public int a3;
    @Tag(5)
    public int a4;
    @Tag(6)
    public int a5;
    @Tag(7)
    public int a6;
    @Tag(8)
    public int a7;
    @Tag(9)
    public int a8;
    @Tag(101)
    public int a9;
  }
}
origin: protostuff/protostuff

tag[ordinal] = annotation.value();
alias[ordinal] = annotation.alias();
valueByTagMap.put(annotation.value(), instance);
valueByAliasMap.put(annotation.alias(), instance);
origin: protostuff/protostuff

public Field(WireFormat.FieldType type, int number, String name, boolean repeated,
    Tag tag)
{
  this.type = type;
  this.number = number;
  this.name = name;
  this.repeated = repeated;
  this.groupFilter = tag == null ? 0 : tag.groupFilter();
  // this.tag = tag;
}
origin: protostuff/protostuff

public static class EntityPartlyAnnotated1
{
  @Tag(3)
  int id;
  // Missing annotation
  String name;
  @Tag(2)
  @Deprecated
  String alias;
}
origin: protostuff/protostuff

fieldMapping = tag.value();
name = tag.alias().isEmpty() ? f.getName() : tag.alias();
origin: protostuff/protostuff

public static class EntityInvalidAnnotated1
{
  @Tag(-1)
  int id;
}
origin: protostuff/protostuff

fieldMapping = tag.value();
name = tag.alias().isEmpty() ? f.getName() : tag.alias();
origin: protostuff/protostuff

static class NegativeTag
{
  @Tag(-20)
  private int x;
}
origin: protostuff/protostuff

public static class EntityFullyAnnotated
{
  @Tag(3)
  int id;
  @Tag(5)
  String name;
  @Tag(2)
  @Deprecated
  String alias;
}
origin: protostuff/protostuff

static class EntityInvalidTagNumber
{
  @Tag(0)
  int id;
}
origin: protostuff/protostuff

static class MaxTag
{
  @Tag(RuntimeSchema.MAX_TAG_VALUE - 1)
  private int x;
}
origin: protostuff/protostuff

static class OneFieldIsNotAnnotated
{
  @Tag(1)
  private int a;
  private int b;
}
origin: protostuff/protostuff

static class ClassB
{
  @Tag(1)
  String b1;
  ClassB()
  {
    this.b1 = "b1";
  }
}
origin: protostuff/protostuff

  static class ClassA extends SuperClassA
  {
    @Tag(101)
    String a1;
    @Tag(102)
    ClassB a2;
    
    ClassA() {}
    public ClassA(ClassB a2)
    {
    }
  }
}
origin: protostuff/protostuff

public static class EntityInvalidAnnotated2
{
  @Tag(2)
  int id;
  @Tag(2)
  int other;
}
origin: protostuff/protostuff

static class ZeroTag
{
  @Tag(0)
  private int x;
}
origin: protostuff/protostuff

static class TooBigTag
{
  @Tag(RuntimeSchema.MAX_TAG_VALUE + 1)
  private int x;
}
io.protostuffTag

Most used methods

  • <init>
  • alias
  • groupFilter
  • value

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • getSystemService (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Best IntelliJ 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