query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102 values |
|---|---|---|---|---|---|---|
/ / / / / / / / / | public void setTickMarkPosition(DateTickMarkPosition position) {
/* 743 */ ParamChecks.nullNotPermitted(position, "position");
/* 744 */ this.tickMarkPosition = position;
/* 745 */ fireChangeEvent();
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void bepaalGrootte();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"double passer();",
"public String ring();",
"int getWidth() {return width;}",
"public void gored() {\n\t\t\n\t}",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public Integer getWidth(){return this.width;}",
"public abstract String division();",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"int width();",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"@Override\n public void bfs() {\n\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"double volume(){\n return width*height*depth;\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public int generateRoshambo(){\n ;]\n\n }",
"Operations operations();",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public int getEdgeCount() \n {\n return 3;\n }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"double getNewWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"long getWidth();",
"public void SubRect(){\n\t\n}",
"void mo33732Px();",
"static void pyramid(){\n\t}",
"public double getPerimiter(){return (2*height +2*width);}",
"public int my_leaf_count();",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public void skystonePos4() {\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"void walk() {\n\t\t\n\t}",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"double seBlesser();",
"void sharpen();",
"void sharpen();",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"Parallelogram(){\n length = width = height = 0;\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public void leerPlanesDietas();",
"public String getRing();",
"static int getNumPatterns() { return 64; }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"public int getWidth(){\n return width;\n }",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"double getPerimeter(){\n return 2*height+width;\n }",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public abstract double getBaseWidth();",
"public void stg() {\n\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"int expand();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"@Override\n protected void paint2d(Graphics2D g) {\n \n }",
"public int upright();",
"int getTribeSize();",
"int getWidth1();",
"int getR();",
"String directsTo();",
"public int getWidth()\n {return width;}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"int depth();",
"int depth();",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }",
"double getWidth();",
"double getWidth();"
] | [
"0.5531016",
"0.54378587",
"0.52516115",
"0.52405924",
"0.5151045",
"0.5127977",
"0.50680465",
"0.5066997",
"0.50218964",
"0.5013022",
"0.5007318",
"0.50048536",
"0.49997565",
"0.4994835",
"0.49735898",
"0.49699947",
"0.49680406",
"0.49594593",
"0.4937881",
"0.49361676",
"0.49287266",
"0.4884688",
"0.4874051",
"0.4871873",
"0.48511675",
"0.48435977",
"0.48318782",
"0.48268357",
"0.48253223",
"0.48089546",
"0.4805502",
"0.48046046",
"0.4803564",
"0.48035362",
"0.47987092",
"0.47966656",
"0.47941628",
"0.47918317",
"0.4789212",
"0.4783637",
"0.47747543",
"0.4774159",
"0.47730577",
"0.47666246",
"0.47664872",
"0.47615",
"0.4755131",
"0.47543177",
"0.47509375",
"0.47481856",
"0.47429588",
"0.47421312",
"0.47413164",
"0.47407025",
"0.47407025",
"0.47362685",
"0.47353023",
"0.47351807",
"0.47331676",
"0.47328842",
"0.47319365",
"0.4729934",
"0.47290468",
"0.47287467",
"0.47275317",
"0.47259426",
"0.47239763",
"0.4723621",
"0.4715134",
"0.47056246",
"0.47034666",
"0.47034577",
"0.4701833",
"0.46977103",
"0.46967983",
"0.46885592",
"0.46881223",
"0.46881223",
"0.4685835",
"0.4677769",
"0.46758488",
"0.46741006",
"0.46703368",
"0.46684504",
"0.4664061",
"0.4664013",
"0.46639267",
"0.46607205",
"0.4659042",
"0.46581274",
"0.4656714",
"0.46495056",
"0.464903",
"0.4648408",
"0.46467063",
"0.4643833",
"0.4643833",
"0.46426296",
"0.46422264",
"0.4639917",
"0.4639917"
] | 0.0 | -1 |
/ / / / / / / | public void configure() {
/* 754 */ if (isAutoRange()) {
/* 755 */ autoAdjustRange();
/* */ }
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private int rightChild(int i){return 2*i+2;}",
"public abstract void bepaalGrootte();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"double passer();",
"public void gored() {\n\t\t\n\t}",
"public String ring();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public abstract String division();",
"public String toString(){ return \"DIV\";}",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"int getWidth() {return width;}",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public void getTile_B8();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"double volume(){\n return width*height*depth;\n }",
"@Override\n public void bfs() {\n\n }",
"int width();",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"Operations operations();",
"void sharpen();",
"void sharpen();",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"static void pyramid(){\n\t}",
"public Integer getWidth(){return this.width;}",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"void mo33732Px();",
"public void skystonePos4() {\n }",
"public void SubRect(){\n\t\n}",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"void walk() {\n\t\t\n\t}",
"public double getWidth() { return _width<0? -_width : _width; }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public void stg() {\n\n\t}",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"Parallelogram(){\n length = width = height = 0;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"double getPerimeter(){\n return 2*height+width;\n }",
"public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }",
"@Override\n protected void paint2d(Graphics2D g) {\n \n }",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"double getNewWidth();",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }",
"private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"double seBlesser();",
"long getWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }",
"@Override\r\n public void draw()\r\n {\n\r\n }",
"public void leerPlanesDietas();",
"private void buildPath() {\r\n int xNext = 1;\r\n int yNext = map.getStartPos() + 1;\r\n CellLayered before = cells[yNext][xNext];\r\n while(true)\r\n {\r\n Byte[] xy = map.getDirection(xNext-1, yNext-1);\r\n xNext = xNext + xy[0];\r\n yNext = yNext + xy[1];\r\n\r\n CellLayered next = cells[yNext][xNext];\r\n\r\n if(xy[0]==-1)\r\n before.setRight(false);\r\n else\r\n before.setRight(true);\r\n before.setPath(true);\r\n if(next==null)\r\n break;\r\n\r\n before.setNextInPath(next);\r\n before = next;\r\n }\r\n }",
"void block(Directions dir);",
"public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}",
"public String getRing();",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public int getWidth(){\n return width;\n }",
"public int upright();",
"@Override\n\tpublic void draw() {\n\n\t}",
"@Override\n\tpublic void draw() {\n\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public int getDireccion(Pixel p) {\r\n\t\tif (x == p.x && y < p.y)\r\n\t\t\treturn DIR_N;\r\n\t\tif (x > p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x == p.x && y > p.y)\r\n\t\t\treturn DIR_S;\r\n\t\tif (x > p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x > p.x && y == p.y)\r\n\t\t\treturn DIR_E;\r\n\t\tif (x < p.x && y == p.y)\r\n\t\t\treturn DIR_O;\r\n\t\treturn -1;\r\n\t}",
"private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }",
"double volume() {\n\treturn width*height*depth;\n}",
"void table(){\n fill(0);\n rect(width/2, height/2, 600, 350); // boarder\n fill(100, 0 ,0);\n rect(width/2, height/2, 550, 300); //Felt\n \n \n}",
"void ringBell() {\n\n }",
"public void snare();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}",
"public void skystonePos2() {\n }",
"@Override\n\tpublic void draw3() {\n\n\t}",
"public int my_leaf_count();"
] | [
"0.5455807",
"0.53675425",
"0.53646463",
"0.5259213",
"0.52139604",
"0.51732713",
"0.51408297",
"0.5087993",
"0.50741947",
"0.50499314",
"0.50279874",
"0.49999514",
"0.49748233",
"0.4944576",
"0.49398407",
"0.4939045",
"0.49119183",
"0.48956218",
"0.48735467",
"0.48624808",
"0.48612648",
"0.4855708",
"0.48550487",
"0.48491192",
"0.48464477",
"0.48464477",
"0.48418087",
"0.48398307",
"0.48339522",
"0.48181453",
"0.48171267",
"0.48126355",
"0.48098794",
"0.48077607",
"0.48061404",
"0.48049018",
"0.4800827",
"0.47996235",
"0.47980267",
"0.47970188",
"0.4791548",
"0.47901922",
"0.47901684",
"0.47898334",
"0.47855455",
"0.47853303",
"0.4783506",
"0.4782097",
"0.47800118",
"0.47800118",
"0.47774157",
"0.47764677",
"0.47635132",
"0.475845",
"0.47540724",
"0.47536913",
"0.47508323",
"0.47503984",
"0.4750003",
"0.47486103",
"0.47461182",
"0.4745645",
"0.47232658",
"0.4714181",
"0.4712731",
"0.4712641",
"0.47101676",
"0.47090968",
"0.4702379",
"0.470198",
"0.47014114",
"0.4698952",
"0.46986663",
"0.4694321",
"0.46909255",
"0.4684761",
"0.46843344",
"0.46805266",
"0.46764034",
"0.46719524",
"0.46688214",
"0.46639597",
"0.46614823",
"0.4661261",
"0.46551266",
"0.46489087",
"0.46479192",
"0.46479192",
"0.4645852",
"0.46453932",
"0.46413222",
"0.46400273",
"0.4635734",
"0.4635118",
"0.46347648",
"0.4634544",
"0.46315315",
"0.463055",
"0.4629904",
"0.46282008",
"0.46273056"
] | 0.0 | -1 |
/ / / / / / / / / / / 768 | public boolean isHiddenValue(long millis) { return !this.timeline.containsDomainValue(new Date(millis)); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getScreenWidth();",
"public int getScreenWidth();",
"public void settings() { size(1200, 800); }",
"public static int getWidth() {\r\n\t\treturn 1280;\r\n\t}",
"public int getWidthScreen(){\n return widthScreen ;\n }",
"public static int m21407j(Context context) {\n return (context.getResources().getConfiguration().screenLayout & 15) >= 3 ? 2 : 1;\n }",
"public int getScreenHeight();",
"public int getScreenHeight();",
"public static int[] setup()\r\n\t{\r\n\t\tint[] size = new int[2];\r\n\t\tGraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();\r\n\t\tint width = gd.getDisplayMode().getWidth();\r\n\t\tint length = gd.getDisplayMode().getHeight();\r\n\t\tsize[0] = width;\r\n\t\tsize[1] = length;\r\n\t\treturn size;\r\n\t}",
"private float ScreenWidth() {\n RelativeLayout linBoardGame = (RelativeLayout) ((Activity) context).findViewById(R.id.gridContainer);\n Resources r = linBoardGame.getResources();\n DisplayMetrics d = r.getDisplayMetrics();\n return d.widthPixels;\n }",
"private void m76768f() {\n m76770h();\n m76769g();\n }",
"public abstract int getDisplayWidth();",
"public int getScreenSize(){\n\t \n\t //get screen soe promatticaly so we can set the layout gallery view at runtome\n\t int screenSize = this.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK;\n\t \n\t switch(screenSize){\n\t \n\t case Configuration.SCREENLAYOUT_SIZE_XLARGE:\n\t\t return 1;\n\tcase Configuration.SCREENLAYOUT_SIZE_NORMAL:\n\t \t\treturn 2;\n\tcase Configuration.SCREENLAYOUT_SIZE_LARGE:\n\t\t//at east 480dp\n \t\treturn 3;\n\t\t \n\t \n\t \n\t }\n\t return 0;//if neither 1 or 2\n }",
"public int getDisplayWidth() {\n return isHiRes() ? 640 : 320;\n }",
"public int[] getSuggestedScreenSize();",
"private Point getScreenDim() {\n \t\tDisplay display = this.getWindowManager().getDefaultDisplay();\n \n \t\t@SuppressWarnings( \"deprecation\" )\n \t\tPoint size = new Point( display.getWidth(), display.getHeight() );\n \t\treturn size;\n \t}",
"public int getHeightScreen(){\n return heightScreen ;\n }",
"int getWindowSize();",
"@SuppressWarnings(\"UnnecessaryBoxing\")\r\n private void initLayoutDimensions() {\r\n leftPanelWidth = Page.getScreenWidth() * 20 / 100;\r\n leftPanelHeight = Page.getScreenHeight() - 225;\r\n middlePanelWidth = Page.getScreenWidth() / 2;\r\n if (Double.valueOf(middlePanelWidth) % 2.0 > 0.0) {\r\n middlePanelWidth = middlePanelWidth - 1;\r\n }\r\n rightPanelWidth = Page.getScreenWidth() - (leftPanelWidth + 2 + middlePanelWidth + 2);\r\n }",
"default int getSquareSize() {\n return java.awt.Toolkit.getDefaultToolkit().getScreenSize().width / 20;\n }",
"private void getWidthAndHeight() {\n DisplayMetrics displaymetrics = new DisplayMetrics();\n getActivity().getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);\n screenHeight = displaymetrics.heightPixels;\n screenWidth = displaymetrics.widthPixels;\n }",
"@Override\n\tpublic float getPrefWidth() {\n\t\treturn windowSize * 1.2f;\n\t}",
"boolean onPhone() {\n\t\treturn ((getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK)\n\t\t\t\t< Configuration.SCREENLAYOUT_SIZE_LARGE);\n\t}",
"private static void initUsableDisplaySizes() {\n\t\t// Optimized display dimensions for display resolutions\n\t\tdisplaySizes.add(new Dimension(640, 480)); // Smaller 4:3 (1024x768 and smaller)\n\t\tdisplaySizes.add(new Dimension(800, 600)); // Larger 4:3 (1280x1024)\n\t\tdisplaySizes.add(new Dimension(864, 486)); // Larger 16:9 (1366x768 and larger)\n\t}",
"int getHorizontalResolution();",
"static int setColumns(int screenWidth) {\n COLUMNS = ((screenWidth / 20) + 1) * 3;\n return (COLUMNS);\n }",
"public int winSize() { return winSize; }",
"public static int getMapWidth() {\r\n\t\treturn 7;\r\n\t}",
"private Dimension tailleEcranAdapté(){\n GraphicsEnvironment graphicsEnvironment =GraphicsEnvironment.getLocalGraphicsEnvironment();\n //get maximum window bounds\n Rectangle rectangle =graphicsEnvironment.getMaximumWindowBounds();\n //Dimension dim = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n Dimension dim = new Dimension((int)rectangle.getWidth(),(int)rectangle.getHeight());\n return dim;\n }",
"public int[] determineScreenSize()\n {\n int heightInPixels, widthInPixels;\n int horizontal, vertical;\n\n // Determine initial values from CRTC registers (ensure dimensions are positive by casting byte to int)\n horizontal = ((((int) videocard.crtControllerRegister.regArray[1]) & 0xFF) + 1) * 8;\n vertical = ((((int) videocard.crtControllerRegister.regArray[18]) & 0xFF) | \n (((((int) videocard.crtControllerRegister.regArray[7]) & 0xFF) & 0x02) << 7) | (((((int) videocard.crtControllerRegister.regArray[7]) & 0xFF) & 0x40) << 3)) + 1;\n\n if (videocard.graphicsController.shift256Reg == 0)\n {\n widthInPixels = 640;\n heightInPixels = 480;\n\n if (videocard.crtControllerRegister.regArray[0x06] == (byte) 0xBF)\n {\n if (videocard.crtControllerRegister.regArray[0x17] == (byte) 0xA3 && videocard.crtControllerRegister.regArray[0x14] == (byte) 0x40 && videocard.crtControllerRegister.regArray[0x09] == (byte) 0x41)\n {\n widthInPixels = 320;\n heightInPixels = 240;\n }\n else\n {\n if (videocard.sequencer.dotClockRate != 0)\n {\n horizontal <<= 1;\n }\n widthInPixels = horizontal;\n heightInPixels = vertical;\n }\n }\n else if ((horizontal >= 640) && (vertical >= 480))\n {\n widthInPixels = horizontal;\n heightInPixels = vertical;\n }\n }\n else if (videocard.graphicsController.shift256Reg == 2)\n {\n\n if (videocard.sequencer.chainFourEnable != 0)\n {\n widthInPixels = horizontal;\n heightInPixels = vertical;\n }\n else\n {\n widthInPixels = horizontal;\n heightInPixels = vertical;\n }\n }\n else\n {\n if (videocard.sequencer.dotClockRate != 0)\n horizontal <<= 1;\n widthInPixels = horizontal;\n heightInPixels = vertical;\n }\n return new int[] {heightInPixels, widthInPixels};\n }",
"private void findScreenWidth() {\n DisplayMetrics dm = new DisplayMetrics();\n getActivity().getWindowManager().getDefaultDisplay().getMetrics(dm);\n screenWidth = dm.widthPixels;\n }",
"private Dimension taillePanelListe(){\n GraphicsEnvironment graphicsEnvironment =GraphicsEnvironment.getLocalGraphicsEnvironment();\n //get maximum window bounds\n Rectangle rectangle =graphicsEnvironment.getMaximumWindowBounds();\n //Dimension dim = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n Dimension dim = new Dimension( ((int)rectangle.getWidth()) * 2/3 , ((int)rectangle.getHeight()) * 2/3);\n return dim;\n }",
"private void getScreenDimensions() {\n DisplayMetrics metrics = Resources.getSystem().getDisplayMetrics();\n mScreenWidth = metrics.widthPixels;\n mScreenHeight = metrics.heightPixels;\n mScreenDensity = metrics.densityDpi;\n }",
"private void setDimensionesPantalla()\n {\n DisplayMetrics metrics = new DisplayMetrics();\n \n getWindowManager().getDefaultDisplay().getMetrics(metrics);\n mScreenWidth = metrics.widthPixels;\n mScreenHeight = metrics.heightPixels;\n }",
"public abstract int getDisplayHeight();",
"public int getScreenSize() {\r\n\t\treturn SCREEN_SIZE;\r\n\t}",
"private void calc_screen_size(){\r\n \tscn_grid.setFont(scn_font);\r\n \tscn_context = scn_grid.getFontRenderContext();\r\n \t scn_layout = new TextLayout(\"X\",scn_font,scn_context);\r\n scn_char_rect = scn_layout.getBlackBoxBounds(0,1).getBounds();\r\n scn_char_height = (int) (scn_char_rect.getHeight()); // RPI 630 was Width in err, 6 to *1.5\r\n \tscn_char_base = scn_char_height/2+1;\r\n \tscn_char_height = scn_char_height + scn_char_base+2;\r\n scn_char_width = (int) (scn_char_rect.getWidth()); // RPI 630 was Height in err\r\n \tscn_height = scn_rows * scn_char_height; // RPI 408 + 5 \r\n \tscn_width = scn_cols * scn_char_width + 3; // RPI 408 + 5 \r\n \tscn_size = new Dimension(scn_width,scn_height);\r\n \tscn_image = new BufferedImage(scn_width,scn_height,BufferedImage.TYPE_INT_ARGB);\r\n \tscn_grid = scn_image.createGraphics();\r\n \tscn_grid.setFont(scn_font); \r\n scn_grid.setColor(scn_text_color);\r\n \t scn_context = scn_grid.getFontRenderContext();\r\n scn_grid.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\r\n RenderingHints.VALUE_ANTIALIAS_ON);\r\n }",
"public abstract float doLandscapeLayout(float screenWidth, float screenHeight);",
"public int getLargeur() {\n return getWidth();\n }",
"private boolean isSmallTablet(DisplayMetrics metrics) {\n float dpWidth = metrics.widthPixels / metrics.density;\n return (dpWidth >= 600 && dpWidth < 720);\n }",
"protected byte desiredWinScale() { return 9; }",
"int[] getScreenSize() {\n qq scSize = new qq(game.z, game.d, game.e);\n return new int[] { scSize.a(), scSize.b() };\n }",
"public boolean isTablet();",
"@Override\r\n\tprotected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) \r\n\t{\n\t\tsuper.onMeasure(widthMeasureSpec, heightMeasureSpec);\r\n\t\tSystem.out.println(\"Screen Mesure: \"+getMeasuredWidth()+\" \"+getMeasuredHeight());\r\n\t\twindowW = getMeasuredWidth();\r\n\t\twindowH = getMeasuredHeight();\r\n\t \r\n\t \r\n\t}",
"Integer getCurrentWidth();",
"@Override\n protected boolean isDimmingEnable() {\n return true;\n }",
"@Test\n\tpublic void testGetWidth() {\n\t\tfinal int expected = 768;\n\t\tassertEquals(expected, this.handler.getWidth());\n\t}",
"public int getGridWidth() { return gridWidth; }",
"public boolean isSmallScreen() {\n \t\treturn m_smallScreenMode;\n \t}",
"@Test\n\tpublic void testGetHeight() {\n\t\tfinal int expected = 768;\n\t\tassertEquals(expected, this.handler.getWidth());\n\t}",
"private void setupPadding()\n\t{\n\t\tContext context = getContext();\n\t\tResources res = context.getResources();\n\t\tint main = (int) res.getDimension(R.dimen.sp_main);\n\t\tthis.mPadding[0] = main;\n\t\tthis.mPadding[1] = main;\n\t\tthis.mPadding[2] = 0;\n\t\tthis.mPadding[3] = main;\n\t}",
"public static void getScreenSize(Context context)\n\t{\n\t\tDisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();\n\t\tfloat screenWidthDp = displayMetrics.widthPixels / displayMetrics.density; \n\t\tfloat screenHeightDp = displayMetrics.heightPixels / displayMetrics.density;\n\t\tLog.w(Utils.class.getName(), \"getScreenSize() gets the screen size in DP width=\" + screenWidthDp\n\t\t\t\t\t+ \" height=\" + screenHeightDp);\n\t\t\n\t\t// use width and height as in vertical mode, so width < height\n\t\tif(screenWidthDp > screenHeightDp)\n\t\t{\n\t\t\tfloat mid = screenWidthDp;\n\t\t\tscreenWidthDp = screenHeightDp;\n\t\t\tscreenHeightDp = mid; \n\t\t}\n\t\t\n\t\tint screenWidthInt = (int) screenWidthDp;\n\t\tint screenHeightInt = (int) screenHeightDp;\n\t\t\n\t\tif((screenWidthInt%2) != 0)\n\t\t{\n\t\t\tscreenWidthInt--;\n\t\t}\n\t\tif((screenHeightInt%2) != 0)\n\t\t{\n\t\t\tscreenHeightInt--;\n\t\t}\n\t\t\n\t\tUtils.ConstantVars.screenWidth = screenWidthInt;\n\t\tUtils.ConstantVars.screenHeight = screenHeightInt;\n\t\t\n\t\tLog.w(Utils.class.getName(), \"getScreenSize() optimized the screen size in integer width=\" \n\t\t\t\t+ Utils.ConstantVars.screenWidth + \" height=\" + Utils.ConstantVars.screenHeight);\n\t\t\t\t\n\t}",
"static Dimension frameSize(String env) {\n\t\tString s = System.getProperty(env, \"0\");\n\t\tint x = s.indexOf('x'), high = 600;\n\n\t\tif (x >= 0) {\n\t\t\thigh = Integer.parseInt(s.substring(x + 1));\n\t\t\ts = s.substring(0, x);\n\t\t}\n\t\treturn new Dimension(Integer.parseInt(s), high);\n\t}",
"public int getWidth() {\r\n return Display.getWidth();\r\n }",
"private void getScreenSize() {\n WindowManager wm = getWindowManager();\n Display disp = wm.getDefaultDisplay();\n Point size = new Point();\n disp.getSize(size);\n screenWidth = size.x;\n screenHeight = size.y;\n }",
"public static int DimNum() {\n\t\treturn root_map.size();\n\t}",
"public void setSizeForSoftKeyboard() {\n rootView.getViewTreeObserver().addOnGlobalLayoutListener(new OnGlobalLayoutListener() {\n @Override\n public void onGlobalLayout() {\n Rect r = new Rect();\n rootView.getWindowVisibleDisplayFrame(r);\n\n int screenHeight = getUsableScreenHeight();\n int heightDifference = screenHeight - (r.bottom - r.top);\n int resourceId = context.getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n heightDifference -= context.getResources().getDimensionPixelSize(resourceId);\n }\n if (heightDifference > 100) {\n\n keyBoardHeight = heightDifference;\n setSize(LayoutParams.MATCH_PARENT, keyBoardHeight);\n\n if (!isOpened &&onSoftKeyboardOpenCloseListener!=null) {\n onSoftKeyboardOpenCloseListener.onKeyboardOpen(keyBoardHeight);\n }\n isOpened = true;\n if (pendingOpen) {\n showAtBottom();\n pendingOpen = false;\n }\n }\n else{\n isOpened = false;\n if (onSoftKeyboardOpenCloseListener!=null) {\n onSoftKeyboardOpenCloseListener.onKeyboardClose();\n }\n }\n }\n });\n }",
"public int getCurrentWidth();",
"public static int m21384a(Context context, int i) {\n if (context == null) {\n return 0;\n }\n WindowManager windowManager = (WindowManager) context.getSystemService(\"window\");\n if (i == 1) {\n return windowManager.getDefaultDisplay().getWidth();\n }\n if (i == 2) {\n return windowManager.getDefaultDisplay().getHeight();\n }\n return 0;\n }",
"protected abstract int getResLayout();",
"static int[] getResolution ()\n\t{\n\t\t//get the Toolkit of this instance\n\t\tToolkit tk = Toolkit.getDefaultToolkit ();\n\t\t\n\t\t//get the screen size as Dimension object\n\t\tDimension resolution = tk.getScreenSize ();\n\n\t\tint[] rez = new int[2];\n\n\t\t//extract integers from that Dimension object\n\t\trez[0] = new Double (resolution.getWidth ()).intValue ();\n\t\trez[1] = new Double (resolution.getHeight ()).intValue ();\n\n\t\treturn rez;\n\t}",
"@Override\n public int getHeight() {\n return 320;\n }",
"public int getTileWidth() {\n return 8;\n }",
"private static boolean isXLargeTablet(Context context) {\n return (context.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) >= Configuration.SCREENLAYOUT_SIZE_XLARGE;\n }",
"int getWidth() {return width;}",
"void mo33732Px();",
"private static boolean isXLargeTablet(Context context)\n {\n return (context.getResources().getConfiguration().screenLayout\n & Configuration.SCREENLAYOUT_SIZE_MASK) >= Configuration.SCREENLAYOUT_SIZE_XLARGE;\n }",
"@Override\r\n\tpublic int getGameInitialWidth() {\n\t\treturn 320;\r\n\t}",
"int dim(){\n\t\treturn dimx*dimy;\n\t}",
"public int getScreenSize() {\n screensize = getResources().getConfiguration().screenLayout &\n Configuration.SCREENLAYOUT_SIZE_MASK;\n return screensize;\n }",
"public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }",
"abstract public int getMinWidth();",
"void fixScreenSize(int nLocations) {\n dotSize = (width - 2 * margin) / sqrt(nLocations);\n if (dotSize < 1) {\n dotSize = 2;\n }\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n Display display = getWindowManager().getDefaultDisplay();\n Point point=new Point();\n display.getSize(point);\n final float hieght = point.y; // screen height\n scrnHeight = hieght-250;\n final float width = point.x; // screen width\n scrnWidth = width-60;\n\n initUI();\n\n animateTopBottom(10000);\n\n}",
"long getWidth();",
"short getPaperSize();",
"int dimensionality();",
"@DISPID(100) //= 0x64. The runtime will prefer the VTID if present\r\n @VTID(10)\r\n float width();",
"public final void m5407c() {\n Point point = new Point();\n WindowManager windowManager = this.f4261e.getWindowManager();\n C3250h.m9053a((Object) windowManager, \"activity.windowManager\");\n windowManager.getDefaultDisplay().getSize(point);\n Rect rect = new Rect();\n this.f4257a.getWindowVisibleDisplayFrame(rect);\n Resources resources = this.f4261e.getResources();\n C3250h.m9053a((Object) resources, \"activity.resources\");\n int i = resources.getConfiguration().orientation;\n int d = (point.y + m5408d()) - rect.bottom;\n C1426b.f4264a.mo6892b(d > 0 ? 1 : 0);\n if (d > 0) {\n C1426b.f4264a.mo6891a(d);\n }\n if (d != this.f4259c) {\n m5403a(d, i);\n }\n this.f4259c = d;\n }",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"protected int askForMapWidth() {return myManager.getMapWidth();}",
"@Override\n protected void onMeasure(int w, int h) {\n w = MeasureSpec.getSize(w);\n h = MeasureSpec.getSize(h);\n// Log.d(\"surfMeasure\", w + \" \" + h);\n\n int oldH = h, oldW = w;\n\n if (w >= 0 && h >= 0) {\n\n if (h == 0 || !fullScreenDisplay || w / ((double) h) <= 16 / 9.0) {\n h = (int) (w * 9 / 16.0);\n } else {\n w = (int) (h * 16 / 9.0);\n }\n if (fullScreen) {\n setX((oldW - w) / 2);\n setY((oldH - h) / 2);\n }\n// Display.this.setLayoutParams(new LinearLayout.LayoutParams(w, h));\n }\n\n updateSizes(w, h);\n\n// Log.d(\"si\", w + \" \" + h);\n\n\n setMeasuredDimension(w, h);\n Display.this.setMeasuredDimension(w, h);\n\n// super.onMeasure(w, h);\n// ViewGroup.LayoutParams lp = getLayoutParams();\n// lp.width = w;\n// lp.height = h;\n// this.setLayoutParams(lp);\n// setMinimumWidth(w);\n// setMinimumHeight(h);\n\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"@Override\n public int getWidth() {\n return 260;\n }",
"private final int m5408d() {\n Window window = this.f4261e.getWindow();\n C3250h.m9053a((Object) window, \"activity.window\");\n View decorView = window.getDecorView();\n int i = 0;\n if (decorView != null && Build.VERSION.SDK_INT >= 23) {\n WindowInsets rootWindowInsets = decorView.getRootWindowInsets();\n if (Build.VERSION.SDK_INT >= 28) {\n C3250h.m9053a((Object) rootWindowInsets, \"windowInsets\");\n DisplayCutout displayCutout = rootWindowInsets.getDisplayCutout();\n if (displayCutout != null) {\n for (Rect next : displayCutout.getBoundingRects()) {\n if (next.top == 0) {\n i += next.bottom - next.top;\n }\n }\n }\n }\n }\n return i;\n }"
] | [
"0.6289817",
"0.6289817",
"0.6107352",
"0.60640675",
"0.60628897",
"0.5997852",
"0.596301",
"0.596301",
"0.59484595",
"0.5905501",
"0.5872058",
"0.5859368",
"0.57004476",
"0.5653041",
"0.5631983",
"0.56212866",
"0.56151634",
"0.55916256",
"0.55785847",
"0.5555239",
"0.5539108",
"0.5519679",
"0.55173284",
"0.55090094",
"0.55040455",
"0.5480524",
"0.5452387",
"0.5450961",
"0.544126",
"0.5436152",
"0.5435415",
"0.5420962",
"0.54126537",
"0.5403605",
"0.5397947",
"0.53757286",
"0.5368199",
"0.5354795",
"0.53431284",
"0.5342143",
"0.53411597",
"0.5335338",
"0.5329028",
"0.5299477",
"0.5294353",
"0.5288976",
"0.5276133",
"0.52680266",
"0.5230096",
"0.52254397",
"0.52197105",
"0.52143604",
"0.51972413",
"0.51970625",
"0.5192852",
"0.51924056",
"0.5182798",
"0.5178489",
"0.5176605",
"0.51716626",
"0.5170616",
"0.516121",
"0.5147868",
"0.5144771",
"0.5144477",
"0.51351875",
"0.5133245",
"0.51289934",
"0.512548",
"0.5121239",
"0.5109516",
"0.51023316",
"0.51003",
"0.50870425",
"0.50767606",
"0.50692165",
"0.50686115",
"0.506316",
"0.5060425",
"0.50589615",
"0.5057403",
"0.5054597",
"0.505145",
"0.505145",
"0.505145",
"0.505145",
"0.505145",
"0.505145",
"0.505145",
"0.505145",
"0.505145",
"0.505145",
"0.505145",
"0.505145",
"0.505145",
"0.505145",
"0.505145",
"0.505145",
"0.505145",
"0.50448054",
"0.50400615"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / / / / | public double valueToJava2D(double value, Rectangle2D area, RectangleEdge edge) {
/* 786 */ value = this.timeline.toTimelineValue((long)value);
/* */
/* 788 */ DateRange range = (DateRange)getRange();
/* 789 */ double axisMin = this.timeline.toTimelineValue(range.getLowerMillis());
/* 790 */ double axisMax = this.timeline.toTimelineValue(range.getUpperMillis());
/* 791 */ double result = 0.0D;
/* 792 */ if (RectangleEdge.isTopOrBottom(edge)) {
/* 793 */ double minX = area.getX();
/* 794 */ double maxX = area.getMaxX();
/* 795 */ if (isInverted()) {
/* 796 */ result = maxX + (value - axisMin) / (axisMax - axisMin) * (minX - maxX);
/* */ }
/* */ else {
/* */
/* 800 */ result = minX + (value - axisMin) / (axisMax - axisMin) * (maxX - minX);
/* */ }
/* */
/* */ }
/* 804 */ else if (RectangleEdge.isLeftOrRight(edge)) {
/* 805 */ double minY = area.getMinY();
/* 806 */ double maxY = area.getMaxY();
/* 807 */ if (isInverted()) {
/* 808 */ result = minY + (value - axisMin) / (axisMax - axisMin) * (maxY - minY);
/* */ }
/* */ else {
/* */
/* 812 */ result = maxY - (value - axisMin) / (axisMax - axisMin) * (maxY - minY);
/* */ }
/* */ }
/* */
/* 816 */ return result;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"public Integer getWidth(){return this.width;}",
"int getWidth() {return width;}",
"static int getNumPatterns() { return 64; }",
"int width();",
"public abstract void bepaalGrootte();",
"public void divide() {\n\t\t\n\t}",
"public void getTile_B8();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"private int rightChild(int i){return 2*i+2;}",
"public void gored() {\n\t\t\n\t}",
"int getTribeSize();",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"void mo33732Px();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"long getWidth();",
"public String ring();",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"double seBlesser();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public double getWidth() { return _width<0? -_width : _width; }",
"double getNewWidth();",
"public int generateRoshambo(){\n ;]\n\n }",
"public String toString(){ return \"DIV\";}",
"public abstract int getSpotsNeeded();",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public int my_leaf_count();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"int getSize ();",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"@Override\n public void bfs() {\n\n }",
"int getSpriteArraySize();",
"long getMid();",
"long getMid();",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public int getTakeSpace() {\n return 0;\n }",
"public abstract String division();",
"int expand();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public void skystonePos4() {\n }",
"public void leerPlanesDietas();",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public int getWidth(){\n return width;\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public abstract double getBaseWidth();",
"@Override\n\tprotected void interr() {\n\t}",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int length() { return 1+maxidx; }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public int getWidth()\n {return width;}",
"public String getRing();",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"Operations operations();",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"private void poetries() {\n\n\t}",
"public void method_4270() {}",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"public static int offset_parent() {\n return (40 / 8);\n }",
"int align();",
"int depth();",
"int depth();",
"double volume(){\n return width*height*depth;\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public String getRingback();",
"@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}",
"public int width();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"String directsTo();",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"public double width() { return _width; }",
"public static void enrichmentMaxLowMem(String szinputsegment,String szinputcoorddir,String szinputcoordlist,\n\t\t\t\t int noffsetleft, int noffsetright,\n int nbinsize, boolean bcenter,boolean bunique, boolean busesignal,String szcolfields,\n\t\t\t\t boolean bbaseres, String szoutfile,boolean bcolscaleheat,Color theColor,String sztitle, \n\t\t\t\t\t String szlabelmapping, boolean bprintimage, boolean bstringlabels, boolean bbrowser) throws IOException\n {\n\n\n //for each enrichment category and state label gives a count of how often\n //overlapped by a segment optionally with signal\n\n String szLine;\n String[] files;\n\n if (szinputcoordlist == null)\n {\n File dir = new File(szinputcoorddir);\n\t //we don't have a specific list of files to include\n\t //will use all files in the directory\n\t if (dir.isDirectory())\t \n\t {\n\t //throw new IllegalArgumentException(szinputcoorddir+\" is not a directory!\");\n\t //added in v1.11 to skip hidden files\n\t String[] filesWithHidden = dir.list();\n\t int nnonhiddencount = 0;\n\t for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t\t{\n\t\t nnonhiddencount++;\n\t\t}\n\t }\t \n\n\t int nactualindex = 0;\n\t files = new String[nnonhiddencount];// dir.list(); \n\t if (nnonhiddencount == 0)\n\t {\n\t throw new IllegalArgumentException(\"No files found in \"+szinputcoorddir);\n\t }\n\n for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t {\n\t files[nactualindex] = filesWithHidden[nfile];\n\t\t nactualindex++;\n\t }\n\t }\n\t Arrays.sort(files);\n\t szinputcoorddir += \"/\";\n\t }\n\t else\n\t {\n\t files = new String[1];\n\t files[0] = szinputcoorddir;\n\t szinputcoorddir = \"\";\n\t }\n }\n else\n {\n szinputcoorddir += \"/\";\n\t //store in files all file names given in szinputcoordlist\n\t BufferedReader brfiles = Util.getBufferedReader(szinputcoordlist);\n\t ArrayList alfiles = new ArrayList();\n\t while ((szLine = brfiles.readLine())!=null)\n\t {\n\t alfiles.add(szLine);\n\t }\n\t brfiles.close(); \n\t files = new String[alfiles.size()];\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t files[nfile] = (String) alfiles.get(nfile);\n\t }\n }\n\t\n ArrayList alchromindex = new ArrayList(); //stores the index of the chromosome\n\t\n if (busesignal)\n {\n bunique = false;\n }\n\n HashMap hmchromMax = new HashMap(); //maps chromosome to the maximum index\n HashMap hmchromToIndex = new HashMap(); //maps chromosome to an index\n HashMap hmLabelToIndex = new HashMap(); //maps label to an index\n HashMap hmIndexToLabel = new HashMap(); //maps index string to label\n int nmaxlabel=0; // the maximum label found\n String szlabel=\"\";\n boolean busedunderscore = false;\n //reads in the segmentation recording maximum position for each chromosome and\n //maximum label\n BufferedReader brinputsegment = Util.getBufferedReader(szinputsegment);\n while ((szLine = brinputsegment.readLine())!=null)\n {\n\n\t //added v1.24\n\t if (bbrowser)\n\t {\n\t if ((szLine.toLowerCase(Locale.ENGLISH).startsWith(\"browser\"))||(szLine.toLowerCase(Locale.ENGLISH).startsWith(\"track\")))\n\t {\n\t continue;\n\t }\n\t }\n\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n }\n\n\t //added in v1.24\n\t int numtokens = st.countTokens();\n\t if (numtokens == 0)\n\t {\n\t //skip blank lines\n\t continue;\n\t }\n\t else if (numtokens < 4)\n\t {\n\t throw new IllegalArgumentException(\"Line \"+szLine+\" in \"+szinputsegment+\" only had \"+numtokens+\" token(s). Expecting at least 4\");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\t if (nbegincoord % nbinsize != 0)\n\t {\n\t\tthrow new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with coordinates in input segment \"+szLine+\". -b binsize should match parameter value to LearnModel or \"+\n \"MakeSegmentation used to produce segmentation. If segmentation is derived from a lift over from another assembly, then the '-b 1' option should be used\");\n\t }\n //int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n szlabel = st.nextToken().trim();\n\t short slabel;\n\n\n if (bstringlabels)\n\t {\n\n\t int nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t if (nunderscoreindex >=0)\n\t {\n\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t\t busedunderscore = true;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t}\n catch (NumberFormatException ex)\n\t\t{\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t if (slabel > nmaxlabel)\n\t\t {\n\t\t nmaxlabel = slabel;\n\t\t }\n\t\t busedunderscore = true;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t if (busedunderscore)\n\t\t {\n\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t }\n\t\t }\n\t\t}\n\t }\n\n\t if (!busedunderscore)\n\t {\n //handle string labels\n\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\n\t if (objshort == null)\n\t {\n\t nmaxlabel = hmLabelToIndex.size()+1;\n\t slabel = (short) nmaxlabel;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n \t hmIndexToLabel.put(\"\"+nmaxlabel, szlabel);\n\t }\n\t //else\n\t //{\n\t // slabel = ((Short) objshort).shortValue();\n\t //}\n\t }\n\t }\n\t else\n\t {\n try\n\t {\n slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t{\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t}\n\t catch (NumberFormatException ex2)\n\t {\n throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t\t}\n\t }\n\n\t //alsegments.add(new SegmentRec(szchrom,nbegin,nend,slabel));\n\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t }\n\n\t Integer objMax = (Integer) hmchromMax.get(szchrom);\n\t if (objMax == null)\n\t {\n\t //System.out.println(\"on chrom \"+szchrom);\n\t hmchromMax.put(szchrom,Integer.valueOf(nend));\n\t hmchromToIndex.put(szchrom, Integer.valueOf(hmchromToIndex.size()));\n\t alchromindex.add(szchrom);\n\t }\n\t else\n\t {\n\t int ncurrmax = objMax.intValue();\n\t if (ncurrmax < nend)\n\t {\n\t hmchromMax.put(szchrom, Integer.valueOf(nend));\t\t \n\t }\n\t }\n }\n brinputsegment.close();\n\n double[][] tallyoverlaplabel = new double[files.length][nmaxlabel+1];\n double[] dsumoverlaplabel = new double[files.length];\n double[] tallylabel = new double[nmaxlabel+1];\n\n int numchroms = alchromindex.size();\n\n for (int nchrom = 0; nchrom < numchroms; nchrom++)\n {\n //ArrayList alsegments = new ArrayList(); //stores all the segments\n\t String szchromwant = (String) alchromindex.get(nchrom);\n\t //System.out.println(\"processing \"+szchromwant);\n\t int nsize = ((Integer) hmchromMax.get(szchromwant)).intValue()+1;\n\t short[] labels = new short[nsize]; //stores the hard label assignments\n\n\t //sets to -1 so missing segments not counted as label 0\n\t for (int npos = 0; npos < nsize; npos++)\n\t {\n labels[npos] = -1;\n\t }\n\n\t brinputsegment = Util.getBufferedReader(szinputsegment);\n\t while ((szLine = brinputsegment.readLine())!=null)\n\t {\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n\t st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t if (!szchrom.equals(szchromwant)) \n\t continue;\n\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\n\t //if (nbegincoord % nbinsize != 0)\n\t // {\n\t //\t throw new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with input segment \"+szLine);\n\t //}\n\t int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n\t szlabel = st.nextToken().trim();\n\t short slabel = -1;\n\n\t if (bstringlabels)\n\t {\n\t\tint nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t\tif (nunderscoreindex >=0)\n\t\t{\n\t\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t busedunderscore = true;\n\t\t }\n catch (NumberFormatException ex)\n\t\t {\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t\t busedunderscore = true;\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t\t if (busedunderscore)\n\t\t\t {\n\t\t\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t\t }\n\t\t }\n\t\t }\n\t\t}\n\n\t\tif (!busedunderscore)\n\t\t{\n\t //handle string labels\n\t\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\t\t slabel = ((Short) objshort).shortValue();\n\t\t}\n\t }\n\t else\n\t {\n try\n\t {\n\t slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t {\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t }\n\t\t}\n\t }\n\n\t if (nbegin < 0)\n\t {\n\t nbegin = 0;\n\t }\n\n\t if (nend >= labels.length)\n\t {\n\t nend = labels.length - 1;\n\t }\n\n\t //SegmentRec theSegmentRec = (SegmentRec) alsegments.get(nindex);\n\t //int nbegin = theSegmentRec.nbegin;\n\t //int nend = theSegmentRec.nend;\n\t //short slabel = theSegmentRec.slabel;\n\t //int nchrom = ((Integer) hmchromToIndex.get(theSegmentRec.szchrom)).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\t //stores each label position in the genome\n\t for (int npos = nbegin; npos <= nend; npos++)\n\t {\n\t labels[npos] = slabel;\n\t //tallylabel[slabel]++; \n\t }\n\t tallylabel[slabel] += (nend-nbegin)+1;\n\t }\n\n\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t int nchromindex = 0;\n\t int nstartindex = 1;\n\t int nendindex = 2;\n\t int nsignalindex = 3;\n\n\t if (szcolfields != null)\n\t {\n\t StringTokenizer stcolfields = new StringTokenizer(szcolfields,\",\");\n\t\tnchromindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnstartindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnendindex = Integer.parseInt(stcolfields.nextToken().trim());\n\n\t if (busesignal)\n\t {\n\t nsignalindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t }\n\t }\n\n \t \n if (bunique)\n\t {\n\t //Iterator itrChroms = hmchromToIndex.entrySet().iterator();\n\t //while (itrChroms.hasNext())\n\t //{\n\t //Map.Entry pairs = (Map.Entry) itrChroms.next();\n\t //String szchrom =(String) pairs.getKey();\n\t //int nchrom = ((Integer) pairs.getValue()).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t //reading in the coordinates to overlap with\n BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t ArrayList alrecs = new ArrayList();\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\t\t if (nstartindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nstartindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n if (nendindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nendindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n\t String szcurrchrom = szLineA[nchromindex];\n\t \t if (szchromwant.equals(szcurrchrom))\n\t\t {\n\t\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t\t if (bcenter)\n\t\t {\n\t\t nbeginactual = (nbeginactual+nendactual)/2;\n\t\t nendactual = nbeginactual;\n\t\t }\n\t\t alrecs.add(new Interval(nbeginactual,nendactual));\n\t\t }\n\t\t}\n\t brcoords.close();\n\n\t\tObject[] alrecA = alrecs.toArray();\n\t\tArrays.sort(alrecA,new IntervalCompare());\n\n\t\tboolean bclosed = true;\n\t int nintervalstart = -1;\n\t\tint nintervalend = -1;\n\t\tboolean bdone = false;\n\n\t\tfor (int nindex = 0; (nindex <= alrecA.length&&(alrecA.length>0)); nindex++)\n\t\t{\n\t\t int ncurrstart = -1;\n\t\t int ncurrend = -1;\n\n\t\t if (nindex == alrecA.length)\n\t\t {\n\t\t bdone = true;\n\t\t }\n\t\t else \n\t\t {\n\t\t ncurrstart = ((Interval) alrecA[nindex]).nstart;\n\t\t ncurrend = ((Interval) alrecA[nindex]).nend;\n if (nindex == 0)\n\t\t {\n\t\t nintervalstart = ncurrstart;\n\t\t\t nintervalend = ncurrend;\n\t\t }\n\t\t else if (ncurrstart <= nintervalend)\n\t\t {\n\t\t //this read is still in the active interval\n\t\t //extending the current active interval \n\t\t if (ncurrend > nintervalend)\n\t\t {\n\t\t nintervalend = ncurrend;\n\t\t }\n\t\t }\t\t \n\t\t else \n\t\t {\n\t\t //just finished the current active interval\n\t\t bdone = true;\n\t\t }\n\t\t }\n\n\t\t if (bdone)\n\t {\t\t \t\t\t\t\t\t\n\t int nbegin = nintervalstart/nbinsize;\n\t\t int nend = nintervalend/nbinsize;\n\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\n\t for (int nbin = nbegin; nbin <= nend; nbin++)\n\t {\n\t\t if (labels[nbin]>=0)\n\t\t {\n\t\t tallyoverlaplabel_nfile[labels[nbin]]++;\n\t\t }\n\t\t }\n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nintervalstart - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nintervalend-1)/(double) nbinsize;\n\t\t\t \n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t { \t\t\t \n\t\t //only counted the bases if nbegin was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nend]]-=dendfrac;\n\t\t\t }\n\t\t }\t\t\t \n\n\t\t nintervalstart = ncurrstart; \n\t\t nintervalend = ncurrend;\n\t\t bdone = false;\n\t\t }\t \n\t\t}\n\t\t //}\n\t }\n\t else\n\t {\n\t BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\n\t String szchrom = szLineA[nchromindex];\n\t\t if (!szchromwant.equals(szchrom))\n\t\t continue;\n\n\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t int nbegin = nbeginactual/nbinsize;\n\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t int nend = nendactual/nbinsize;\n\n\t\t double damount;\n\t if ((busesignal)&&(nsignalindex < szLineA.length))\n\t {\n\t \t damount = Double.parseDouble(szLineA[nsignalindex]);\n\t\t }\n\t else\n\t {\n\t damount = 1;\n\t\t }\n\n\t //Integer objChrom = (Integer) hmchromToIndex.get(szchrom);\n\t //if (objChrom != null)\n\t\t //{\n\t\t //we have the chromosome corresponding to this read\n\t //int nchrom = objChrom.intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t\t if (bcenter)\n\t {\n\t //using the center position of the interval only\n\t\t int ncenter = (nbeginactual+nendactual)/(2*nbinsize);\n\t\t if ((ncenter < labels.length)&&(labels[ncenter]>=0))\n\t\t {\n\t tallyoverlaplabel_nfile[labels[ncenter]]+=damount;\t\t\t \n\t\t }\n\t\t }\n\t else\n\t {\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\t\t //using the full interval range\n\t\t //no requirement on uniqueness\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\t\t\t\n\t for (int nindex = nbegin; nindex <= nend; nindex++)\n\t {\n\t\t if (labels[nindex]>=0)\n\t\t {\n\t\t //increment overlap tally not checking for uniqueness\n \t tallyoverlaplabel_nfile[labels[nindex]]+=damount;\n\t\t\t }\n\t\t }\t \n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nbeginactual - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nendactual-1)/(double) nbinsize;\n\n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t\t { \n\t\t\t //only counted the bases if nbegin was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=damount*dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nend]]-=damount*dendfrac;\n\t\t\t }\t\t\t \n\t\t }\n\t\t }\n\t\t}\t \n\t\tbrcoords.close();\n\t }\n\t }\n }\n\n\n for (int nfile = 0; nfile < files.length; nfile++)\n {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t for (int nindex = 0; nindex < tallyoverlaplabel_nfile.length; nindex++)\n {\n dsumoverlaplabel[nfile] += tallyoverlaplabel_nfile[nindex];\n }\n\t\t\n if (dsumoverlaplabel[nfile] < EPSILONOVERLAP) // 0.00000001)\n {\n\t throw new IllegalArgumentException(\"Coordinates in \"+files[nfile]+\" not assigned to any state. Check if chromosome naming in \"+files[nfile]+\n\t\t\t\t\t\t \" match those in the segmentation file.\");\n\t }\n\t}\n\n\toutputenrichment(szoutfile, files,tallyoverlaplabel, tallylabel, dsumoverlaplabel,theColor,\n\t\t\t bcolscaleheat,ChromHMM.convertCharOrderToStringOrder(szlabel.charAt(0)),sztitle,0,szlabelmapping,szlabel.charAt(0), bprintimage, bstringlabels, hmIndexToLabel);\n }",
"Parallelogram(){\n length = width = height = 0;\n }",
"public void Exterior() {\n\t\t\r\n\t}",
"static int size_of_inx(String passed){\n\t\treturn 1;\n\t}",
"int getWidth()\n {\n return width;\n }",
"static int size_of_xra(String passed){\n\t\treturn 1;\n\t}",
"public int get_resource_distance() {\n return 1;\r\n }",
"int size() {\n int basic = ((offset() + 4) & ~3) - offset() + 8;\n /* Add 8*number of offsets */\n return basic + targetsOp.length*8;\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] | [
"0.53988904",
"0.53024167",
"0.5098616",
"0.5085637",
"0.5062863",
"0.5053648",
"0.50322783",
"0.5016621",
"0.49993527",
"0.4995754",
"0.4983328",
"0.49791253",
"0.49704143",
"0.4950703",
"0.4929714",
"0.49185893",
"0.49054778",
"0.49048766",
"0.49034062",
"0.48944247",
"0.4888295",
"0.48844013",
"0.48692986",
"0.48659402",
"0.4858437",
"0.48571157",
"0.4856184",
"0.48478642",
"0.48446327",
"0.4842748",
"0.4837767",
"0.48329756",
"0.48278782",
"0.4820387",
"0.4818649",
"0.48113784",
"0.48112655",
"0.48007426",
"0.4793703",
"0.47923297",
"0.47810373",
"0.4780662",
"0.4780662",
"0.47750703",
"0.47683966",
"0.47682285",
"0.47640547",
"0.4763388",
"0.47622475",
"0.4762211",
"0.4759115",
"0.4756187",
"0.47524193",
"0.47431657",
"0.47431424",
"0.4737381",
"0.47314352",
"0.4729628",
"0.47260082",
"0.47236928",
"0.47236264",
"0.4715031",
"0.4709799",
"0.47092077",
"0.47042727",
"0.4700764",
"0.47001636",
"0.46998954",
"0.46978962",
"0.4693881",
"0.46882233",
"0.46865144",
"0.46863398",
"0.46802586",
"0.4680123",
"0.4680123",
"0.46742085",
"0.4673915",
"0.46702415",
"0.4669451",
"0.46673393",
"0.46673247",
"0.46656686",
"0.46650913",
"0.46619904",
"0.46618584",
"0.4661558",
"0.4660999",
"0.46585077",
"0.46581614",
"0.465365",
"0.46528313",
"0.46516687",
"0.46488842",
"0.46488285",
"0.464824",
"0.46363312",
"0.46363312",
"0.46363312",
"0.46363312",
"0.46363312"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / | public double dateToJava2D(Date date, Rectangle2D area, RectangleEdge edge) {
/* 832 */ double value = date.getTime();
/* 833 */ return valueToJava2D(value, area, edge);
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"int getWidth() {return width;}",
"double passer();",
"public Integer getWidth(){return this.width;}",
"public abstract void bepaalGrootte();",
"int width();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public void gored() {\n\t\t\n\t}",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"static int getNumPatterns() { return 64; }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public String ring();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public String toString(){ return \"DIV\";}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"int getTribeSize();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"long getWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"double getNewWidth();",
"void mo33732Px();",
"public int my_leaf_count();",
"public abstract String division();",
"public int generateRoshambo(){\n ;]\n\n }",
"double seBlesser();",
"@Override\n public void bfs() {\n\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public abstract int getSpotsNeeded();",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"@Override\npublic void processDirection() {\n\t\n}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public void leerPlanesDietas();",
"public int getWidth(){\n return width;\n }",
"long getMid();",
"long getMid();",
"int expand();",
"int getSpriteArraySize();",
"public void skystonePos4() {\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public abstract double getBaseWidth();",
"public String getRing();",
"Operations operations();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"double volume(){\n return width*height*depth;\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"int getSize ();",
"public int getTakeSpace() {\n return 0;\n }",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"int depth();",
"int depth();",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"@Override\n\tprotected void interr() {\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"String directsTo();",
"Parallelogram(){\n length = width = height = 0;\n }",
"public String getRingback();",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"static void pyramid(){\n\t}",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}"
] | [
"0.5488944",
"0.539108",
"0.5100269",
"0.50899094",
"0.5069534",
"0.50693107",
"0.5066066",
"0.5061679",
"0.50442266",
"0.5015036",
"0.5014165",
"0.5003645",
"0.49693072",
"0.49573815",
"0.49514338",
"0.49499622",
"0.49293876",
"0.4927479",
"0.4927194",
"0.4917197",
"0.4910142",
"0.49028116",
"0.49017558",
"0.48824358",
"0.48823863",
"0.48808914",
"0.48726714",
"0.48720384",
"0.48627836",
"0.4855107",
"0.4846415",
"0.4840881",
"0.48384443",
"0.48339868",
"0.4824593",
"0.48169047",
"0.48134097",
"0.48049474",
"0.48004088",
"0.47979838",
"0.47910494",
"0.47845936",
"0.47841045",
"0.47744447",
"0.47726467",
"0.4771947",
"0.47681993",
"0.47658527",
"0.47648957",
"0.4755676",
"0.4755676",
"0.4753695",
"0.4753143",
"0.4752926",
"0.4749071",
"0.47434685",
"0.47425613",
"0.47384033",
"0.47334346",
"0.47321105",
"0.4731059",
"0.4729468",
"0.4726481",
"0.47170335",
"0.4715351",
"0.4713396",
"0.47059113",
"0.4705429",
"0.4704641",
"0.4699736",
"0.4699736",
"0.4697979",
"0.46902624",
"0.46879697",
"0.46878612",
"0.46878",
"0.46871263",
"0.46857345",
"0.4682048",
"0.46810246",
"0.46779624",
"0.46697363",
"0.46669462",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46645147"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / / / | public double java2DToValue(double java2DValue, Rectangle2D area, RectangleEdge edge) {
/* */ double result;
/* 852 */ DateRange range = (DateRange)getRange();
/* 853 */ double axisMin = this.timeline.toTimelineValue(range.getLowerMillis());
/* 854 */ double axisMax = this.timeline.toTimelineValue(range.getUpperMillis());
/* */
/* 856 */ double min = 0.0D;
/* 857 */ double max = 0.0D;
/* 858 */ if (RectangleEdge.isTopOrBottom(edge)) {
/* 859 */ min = area.getX();
/* 860 */ max = area.getMaxX();
/* */ }
/* 862 */ else if (RectangleEdge.isLeftOrRight(edge)) {
/* 863 */ min = area.getMaxY();
/* 864 */ max = area.getY();
/* */ }
/* */
/* */
/* 868 */ if (isInverted()) {
/* 869 */ result = axisMax - (java2DValue - min) / (max - min) * (axisMax - axisMin);
/* */ }
/* */ else {
/* */
/* 873 */ result = axisMin + (java2DValue - min) / (max - min) * (axisMax - axisMin);
/* */ }
/* */
/* */
/* 877 */ return this.timeline.toMillisecond((long)result);
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"public Integer getWidth(){return this.width;}",
"int getWidth() {return width;}",
"public void divide() {\n\t\t\n\t}",
"int width();",
"private int rightChild(int i){return 2*i+2;}",
"public abstract void bepaalGrootte();",
"static int getNumPatterns() { return 64; }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public void gored() {\n\t\t\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"int getTribeSize();",
"public int getEdgeCount() \n {\n return 3;\n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String ring();",
"void mo33732Px();",
"long getWidth();",
"public String toString(){ return \"DIV\";}",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public double getWidth() { return _width<0? -_width : _width; }",
"double getNewWidth();",
"double seBlesser();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"public int my_leaf_count();",
"public abstract int getSpotsNeeded();",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"@Override\n public void bfs() {\n\n }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public abstract String division();",
"long getMid();",
"long getMid();",
"int getSpriteArraySize();",
"int getSize ();",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"int expand();",
"public void leerPlanesDietas();",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public void skystonePos4() {\n }",
"public int getWidth(){\n return width;\n }",
"public int getTakeSpace() {\n return 0;\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public abstract double getBaseWidth();",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"public String getRing();",
"public int getWidth()\n {return width;}",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"Operations operations();",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"public double getPerimiter(){return (2*height +2*width);}",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"double volume(){\n return width*height*depth;\n }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"int depth();",
"int depth();",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"public int length() { return 1+maxidx; }",
"public static int offset_parent() {\n return (40 / 8);\n }",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public String getRingback();",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"private void poetries() {\n\n\t}",
"String directsTo();",
"public int width();",
"Parallelogram(){\n length = width = height = 0;\n }",
"int align();",
"public double width() { return _width; }",
"@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}",
"int getWidth()\n {\n return width;\n }",
"public void Exterior() {\n\t\t\r\n\t}",
"public void method_4270() {}",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] | [
"0.54320115",
"0.5334204",
"0.50920665",
"0.50791234",
"0.50660247",
"0.5062054",
"0.5026233",
"0.5019933",
"0.50148314",
"0.5013455",
"0.50095665",
"0.49947262",
"0.49926558",
"0.49509406",
"0.4925508",
"0.4922813",
"0.49196252",
"0.49077934",
"0.4907186",
"0.49029383",
"0.49014446",
"0.4885897",
"0.4885228",
"0.48742175",
"0.48628354",
"0.48610723",
"0.48587936",
"0.48509476",
"0.48477766",
"0.48475036",
"0.48410973",
"0.48381808",
"0.48353657",
"0.4829377",
"0.48259673",
"0.48256096",
"0.48176572",
"0.48116213",
"0.48001838",
"0.47927597",
"0.47889823",
"0.4776696",
"0.4776696",
"0.47758958",
"0.4775203",
"0.4768023",
"0.4766366",
"0.47635803",
"0.476251",
"0.47616687",
"0.4757911",
"0.47528365",
"0.4750569",
"0.47504404",
"0.47474968",
"0.47471556",
"0.47462428",
"0.47359014",
"0.47318345",
"0.47294763",
"0.4716275",
"0.47147447",
"0.47138798",
"0.47117984",
"0.47102457",
"0.4697684",
"0.4697641",
"0.46955532",
"0.46953335",
"0.4693822",
"0.4693343",
"0.46908295",
"0.46895236",
"0.46895236",
"0.46878645",
"0.4684436",
"0.46820334",
"0.46807125",
"0.4675536",
"0.46731293",
"0.46729726",
"0.46721438",
"0.4671668",
"0.46675396",
"0.46672106",
"0.4665603",
"0.46617565",
"0.46595973",
"0.46566445",
"0.4654299",
"0.4654076",
"0.4651034",
"0.46497306",
"0.46497306",
"0.46497306",
"0.46497306",
"0.46497306",
"0.46497306",
"0.46497306",
"0.46497306",
"0.46497306"
] | 0.0 | -1 |
/ / / / / / / / / / 888 | public Date calculateLowestVisibleTickValue(DateTickUnit unit) { return nextStandardDate(getMinimumDate(), unit); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int getBytes(long r23) {\n /*\n java.lang.ThreadLocal<byte[]> r0 = TEMP_NUMBER_BUFFER\n java.lang.Object r0 = r0.get()\n byte[] r0 = (byte[]) r0\n r1 = 20\n if (r0 != 0) goto L_0x0013\n byte[] r0 = new byte[r1]\n java.lang.ThreadLocal<byte[]> r2 = TEMP_NUMBER_BUFFER\n r2.set(r0)\n L_0x0013:\n r2 = -9223372036854775808\n r4 = 54\n r5 = 57\n r6 = 45\n r7 = 53\n r8 = 56\n r9 = 55\n r10 = 51\n r11 = 50\n r12 = 0\n r13 = 48\n r14 = 1\n int r15 = (r23 > r2 ? 1 : (r23 == r2 ? 0 : -1))\n if (r15 != 0) goto L_0x0076\n r0[r12] = r6\n r0[r14] = r5\n r2 = 2\n r0[r2] = r11\n r2 = 3\n r0[r2] = r11\n r2 = 4\n r0[r2] = r10\n r2 = 5\n r0[r2] = r10\n r2 = 6\n r0[r2] = r9\n r2 = 7\n r0[r2] = r11\n r2 = 8\n r0[r2] = r13\n r2 = 9\n r0[r2] = r10\n r2 = 10\n r0[r2] = r4\n r2 = 11\n r0[r2] = r8\n r2 = 12\n r0[r2] = r7\n r2 = 13\n r3 = 52\n r0[r2] = r3\n r2 = 14\n r0[r2] = r9\n r2 = 15\n r0[r2] = r9\n r2 = 16\n r0[r2] = r7\n r2 = 17\n r0[r2] = r8\n r2 = 18\n r0[r2] = r13\n r2 = 19\n r0[r2] = r8\n return r1\n L_0x0076:\n r1 = 0\n int r3 = (r23 > r1 ? 1 : (r23 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x007f\n r0[r12] = r13\n return r14\n L_0x007f:\n if (r3 >= 0) goto L_0x0088\n r0[r12] = r6\n long r15 = java.lang.Math.abs(r23)\n goto L_0x008b\n L_0x0088:\n r14 = 0\n r15 = r23\n L_0x008b:\n r17 = 9\n r19 = 10\n r21 = 1\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0099\n r17 = r21\n goto L_0x017e\n L_0x0099:\n r17 = 99\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00a3\n r17 = r19\n goto L_0x017e\n L_0x00a3:\n r17 = 999(0x3e7, double:4.936E-321)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ad\n r17 = 100\n goto L_0x017e\n L_0x00ad:\n r17 = 9999(0x270f, double:4.94E-320)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00b7\n r17 = 1000(0x3e8, double:4.94E-321)\n goto L_0x017e\n L_0x00b7:\n r17 = 99999(0x1869f, double:4.9406E-319)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00c2\n r17 = 10000(0x2710, double:4.9407E-320)\n goto L_0x017e\n L_0x00c2:\n r17 = 999999(0xf423f, double:4.94065E-318)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ce\n r17 = 100000(0x186a0, double:4.94066E-319)\n goto L_0x017e\n L_0x00ce:\n r17 = 9999999(0x98967f, double:4.940656E-317)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00da\n r17 = 1000000(0xf4240, double:4.940656E-318)\n goto L_0x017e\n L_0x00da:\n r17 = 99999999(0x5f5e0ff, double:4.9406564E-316)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00e6\n r17 = 10000000(0x989680, double:4.9406565E-317)\n goto L_0x017e\n L_0x00e6:\n r17 = 999999999(0x3b9ac9ff, double:4.940656453E-315)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00f2\n r17 = 100000000(0x5f5e100, double:4.94065646E-316)\n goto L_0x017e\n L_0x00f2:\n r17 = 9999999999(0x2540be3ff, double:4.940656458E-314)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0100\n r17 = 1000000000(0x3b9aca00, double:4.94065646E-315)\n goto L_0x017e\n L_0x0100:\n r17 = 99999999999(0x174876e7ff, double:4.94065645836E-313)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0110\n r17 = 10000000000(0x2540be400, double:4.9406564584E-314)\n goto L_0x017e\n L_0x0110:\n r17 = 999999999999(0xe8d4a50fff, double:4.940656458408E-312)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x011f\n r17 = 100000000000(0x174876e800, double:4.9406564584E-313)\n goto L_0x017e\n L_0x011f:\n r17 = 9999999999999(0x9184e729fff, double:4.940656458412E-311)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x012e\n r17 = 1000000000000(0xe8d4a51000, double:4.94065645841E-312)\n goto L_0x017e\n L_0x012e:\n r17 = 99999999999999(0x5af3107a3fff, double:4.9406564584124E-310)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x013d\n r17 = 10000000000000(0x9184e72a000, double:4.9406564584125E-311)\n goto L_0x017e\n L_0x013d:\n r17 = 999999999999999(0x38d7ea4c67fff, double:4.94065645841246E-309)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x014c\n r17 = 100000000000000(0x5af3107a4000, double:4.94065645841247E-310)\n goto L_0x017e\n L_0x014c:\n r17 = 9999999999999999(0x2386f26fc0ffff, double:5.431165199810527E-308)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x015b\n r17 = 1000000000000000(0x38d7ea4c68000, double:4.940656458412465E-309)\n goto L_0x017e\n L_0x015b:\n r17 = 99999999999999999(0x16345785d89ffff, double:5.620395787888204E-302)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x016a\n r17 = 10000000000000000(0x2386f26fc10000, double:5.431165199810528E-308)\n goto L_0x017e\n L_0x016a:\n r17 = 999999999999999999(0xde0b6b3a763ffff, double:7.832953389245684E-242)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0179\n r17 = 100000000000000000(0x16345785d8a0000, double:5.620395787888205E-302)\n goto L_0x017e\n L_0x0179:\n r17 = 1000000000000000000(0xde0b6b3a7640000, double:7.832953389245686E-242)\n L_0x017e:\n long r1 = r15 / r17\n int r3 = (int) r1\n switch(r3) {\n case 0: goto L_0x01b6;\n case 1: goto L_0x01af;\n case 2: goto L_0x01aa;\n case 3: goto L_0x01a5;\n case 4: goto L_0x019e;\n case 5: goto L_0x0199;\n case 6: goto L_0x0194;\n case 7: goto L_0x018f;\n case 8: goto L_0x018a;\n case 9: goto L_0x0185;\n default: goto L_0x0184;\n }\n L_0x0184:\n goto L_0x01bb\n L_0x0185:\n int r3 = r14 + 1\n r0[r14] = r5\n goto L_0x01ba\n L_0x018a:\n int r3 = r14 + 1\n r0[r14] = r8\n goto L_0x01ba\n L_0x018f:\n int r3 = r14 + 1\n r0[r14] = r9\n goto L_0x01ba\n L_0x0194:\n int r3 = r14 + 1\n r0[r14] = r4\n goto L_0x01ba\n L_0x0199:\n int r3 = r14 + 1\n r0[r14] = r7\n goto L_0x01ba\n L_0x019e:\n int r3 = r14 + 1\n r6 = 52\n r0[r14] = r6\n goto L_0x01ba\n L_0x01a5:\n int r3 = r14 + 1\n r0[r14] = r10\n goto L_0x01ba\n L_0x01aa:\n int r3 = r14 + 1\n r0[r14] = r11\n goto L_0x01ba\n L_0x01af:\n int r3 = r14 + 1\n r6 = 49\n r0[r14] = r6\n goto L_0x01ba\n L_0x01b6:\n int r3 = r14 + 1\n r0[r14] = r13\n L_0x01ba:\n r14 = r3\n L_0x01bb:\n int r3 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r3 != 0) goto L_0x01c0\n goto L_0x01d8\n L_0x01c0:\n java.lang.Long.signum(r17)\n long r1 = r1 * r17\n long r15 = r15 - r1\n r1 = 0\n int r3 = (r15 > r1 ? 1 : (r15 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x01d9\n L_0x01cc:\n int r1 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r1 <= 0) goto L_0x01d8\n int r1 = r14 + 1\n r0[r14] = r13\n long r17 = r17 / r19\n r14 = r1\n goto L_0x01cc\n L_0x01d8:\n return r14\n L_0x01d9:\n long r17 = r17 / r19\n goto L_0x017e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.util.ByteStringBuffer.getBytes(long):int\");\n }",
"long getUnknown72();",
"Info mo7564ix();",
"byte[] mo38566a();",
"public static int m8655e() {\n return 8;\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"public abstract long mo9746k();",
"int getHighBitLength();",
"public byte[] mo3891a() {\n int i;\n int i2;\n int i3;\n int i4;\n int i5;\n int i6;\n int i7;\n int i8;\n int i9;\n int i10;\n int i11;\n int i12;\n int i13;\n int i14;\n int i15;\n int i16;\n int i17;\n int i18;\n byte[] b;\n int i19;\n int length;\n mo3892b();\n int i20 = 3072;\n if (this.f687G != null) {\n i20 = 3072 + this.f687G.length + 1;\n }\n byte[] bArr = new byte[i20];\n bArr[0] = Byte.parseByte(this.f688a);\n byte[] b2 = C0331cr.m1177b(this.f689b);\n System.arraycopy(b2, 0, bArr, 1, b2.length);\n int length2 = b2.length + 1;\n try {\n byte[] bytes = this.f690c.getBytes(\"GBK\");\n bArr[length2] = (byte) bytes.length;\n length2++;\n System.arraycopy(bytes, 0, bArr, length2, bytes.length);\n i = length2 + bytes.length;\n } catch (Throwable th) {\n C0310c.m956a(th, \"Req\", \"buildV4Dot2\");\n bArr[length2] = 0;\n i = length2 + 1;\n }\n try {\n byte[] bytes2 = this.f691d.getBytes(\"GBK\");\n bArr[i] = (byte) bytes2.length;\n i++;\n System.arraycopy(bytes2, 0, bArr, i, bytes2.length);\n i2 = i + bytes2.length;\n } catch (Throwable th2) {\n C0310c.m956a(th2, \"Req\", \"buildV4Dot21\");\n bArr[i] = 0;\n i2 = i + 1;\n }\n try {\n byte[] bytes3 = this.f702o.getBytes(\"GBK\");\n bArr[i2] = (byte) bytes3.length;\n i2++;\n System.arraycopy(bytes3, 0, bArr, i2, bytes3.length);\n i3 = i2 + bytes3.length;\n } catch (Throwable th3) {\n C0310c.m956a(th3, \"Req\", \"buildV4Dot22\");\n bArr[i2] = 0;\n i3 = i2 + 1;\n }\n try {\n byte[] bytes4 = this.f692e.getBytes(\"GBK\");\n bArr[i3] = (byte) bytes4.length;\n i3++;\n System.arraycopy(bytes4, 0, bArr, i3, bytes4.length);\n i4 = i3 + bytes4.length;\n } catch (Throwable th4) {\n C0310c.m956a(th4, \"Req\", \"buildV4Dot23\");\n bArr[i3] = 0;\n i4 = i3 + 1;\n }\n try {\n byte[] bytes5 = this.f693f.getBytes(\"GBK\");\n bArr[i4] = (byte) bytes5.length;\n i4++;\n System.arraycopy(bytes5, 0, bArr, i4, bytes5.length);\n i5 = i4 + bytes5.length;\n } catch (Throwable th5) {\n C0310c.m956a(th5, \"Req\", \"buildV4Dot24\");\n bArr[i4] = 0;\n i5 = i4 + 1;\n }\n try {\n byte[] bytes6 = this.f694g.getBytes(\"GBK\");\n bArr[i5] = (byte) bytes6.length;\n i5++;\n System.arraycopy(bytes6, 0, bArr, i5, bytes6.length);\n i6 = i5 + bytes6.length;\n } catch (Throwable th6) {\n C0310c.m956a(th6, \"Req\", \"buildV4Dot25\");\n bArr[i5] = 0;\n i6 = i5 + 1;\n }\n try {\n byte[] bytes7 = this.f708u.getBytes(\"GBK\");\n bArr[i6] = (byte) bytes7.length;\n i6++;\n System.arraycopy(bytes7, 0, bArr, i6, bytes7.length);\n i7 = i6 + bytes7.length;\n } catch (Throwable th7) {\n C0310c.m956a(th7, \"Req\", \"buildV4Dot26\");\n bArr[i6] = 0;\n i7 = i6 + 1;\n }\n try {\n byte[] bytes8 = this.f695h.getBytes(\"GBK\");\n bArr[i7] = (byte) bytes8.length;\n i7++;\n System.arraycopy(bytes8, 0, bArr, i7, bytes8.length);\n i8 = i7 + bytes8.length;\n } catch (Throwable th8) {\n C0310c.m956a(th8, \"Req\", \"buildV4Dot27\");\n bArr[i7] = 0;\n i8 = i7 + 1;\n }\n try {\n byte[] bytes9 = this.f703p.getBytes(\"GBK\");\n bArr[i8] = (byte) bytes9.length;\n i8++;\n System.arraycopy(bytes9, 0, bArr, i8, bytes9.length);\n i9 = i8 + bytes9.length;\n } catch (Throwable th9) {\n C0310c.m956a(th9, \"Req\", \"buildV4Dot28\");\n bArr[i8] = 0;\n i9 = i8 + 1;\n }\n try {\n byte[] bytes10 = this.f704q.getBytes(\"GBK\");\n bArr[i9] = (byte) bytes10.length;\n i9++;\n System.arraycopy(bytes10, 0, bArr, i9, bytes10.length);\n i10 = i9 + bytes10.length;\n } catch (Throwable th10) {\n C0310c.m956a(th10, \"Req\", \"buildV4Dot29\");\n bArr[i9] = 0;\n i10 = i9 + 1;\n }\n try {\n if (TextUtils.isEmpty(this.f707t)) {\n bArr[i10] = 0;\n length = i10 + 1;\n } else {\n byte[] b3 = m1034b(this.f707t);\n bArr[i10] = (byte) b3.length;\n int i21 = i10 + 1;\n System.arraycopy(b3, 0, bArr, i21, b3.length);\n length = b3.length + i21;\n }\n i11 = length;\n } catch (Throwable th11) {\n C0310c.m956a(th11, \"Req\", \"buildV4Dot219\");\n bArr[i10] = 0;\n i11 = i10 + 1;\n }\n try {\n byte[] bytes11 = this.f709v.getBytes(\"GBK\");\n bArr[i11] = (byte) bytes11.length;\n i11++;\n System.arraycopy(bytes11, 0, bArr, i11, bytes11.length);\n i12 = i11 + bytes11.length;\n } catch (Throwable th12) {\n C0310c.m956a(th12, \"Req\", \"buildV4Dot211\");\n bArr[i11] = 0;\n i12 = i11 + 1;\n }\n try {\n byte[] bytes12 = this.f710w.getBytes(\"GBK\");\n bArr[i12] = (byte) bytes12.length;\n i12++;\n System.arraycopy(bytes12, 0, bArr, i12, bytes12.length);\n i13 = i12 + bytes12.length;\n } catch (Throwable th13) {\n C0310c.m956a(th13, \"Req\", \"buildV4Dot212\");\n bArr[i12] = 0;\n i13 = i12 + 1;\n }\n try {\n byte[] bytes13 = this.f711x.getBytes(\"GBK\");\n bArr[i13] = (byte) bytes13.length;\n i13++;\n System.arraycopy(bytes13, 0, bArr, i13, bytes13.length);\n i14 = bytes13.length + i13;\n } catch (Throwable th14) {\n C0310c.m956a(th14, \"Req\", \"buildV4Dot213\");\n bArr[i13] = 0;\n i14 = i13 + 1;\n }\n bArr[i14] = Byte.parseByte(this.f712y);\n int i22 = i14 + 1;\n bArr[i22] = Byte.parseByte(this.f697j);\n int i23 = i22 + 1;\n bArr[i23] = Byte.parseByte(this.f713z);\n int i24 = i23 + 1;\n if (this.f713z.equals(\"1\")) {\n byte[] d = C0331cr.m1187d(mo3890a(\"mcc\"));\n System.arraycopy(d, 0, bArr, i24, d.length);\n int length3 = i24 + d.length;\n byte[] d2 = C0331cr.m1187d(mo3890a(\"mnc\"));\n System.arraycopy(d2, 0, bArr, length3, d2.length);\n int length4 = length3 + d2.length;\n byte[] d3 = C0331cr.m1187d(mo3890a(\"lac\"));\n System.arraycopy(d3, 0, bArr, length4, d3.length);\n int length5 = length4 + d3.length;\n byte[] e = C0331cr.m1190e(mo3890a(\"cellid\"));\n System.arraycopy(e, 0, bArr, length5, e.length);\n int length6 = e.length + length5;\n int parseInt = Integer.parseInt(mo3890a(\"signal\"));\n if (parseInt > 127) {\n parseInt = 0;\n }\n bArr[length6] = (byte) parseInt;\n int i25 = length6 + 1;\n if (this.f682B.length() == 0) {\n bArr[i25] = 0;\n i24 = i25 + 1;\n } else {\n int length7 = this.f682B.split(\"\\\\*\").length;\n bArr[i25] = (byte) length7;\n i24 = i25 + 1;\n int i26 = 0;\n while (i26 < length7) {\n byte[] d4 = C0331cr.m1187d(m1032a(\"lac\", i26));\n System.arraycopy(d4, 0, bArr, i24, d4.length);\n int length8 = i24 + d4.length;\n byte[] e2 = C0331cr.m1190e(m1032a(\"cellid\", i26));\n System.arraycopy(e2, 0, bArr, length8, e2.length);\n int length9 = e2.length + length8;\n int parseInt2 = Integer.parseInt(m1032a(\"signal\", i26));\n if (parseInt2 > 127) {\n parseInt2 = 0;\n }\n bArr[length9] = (byte) parseInt2;\n i26++;\n i24 = length9 + 1;\n }\n }\n } else if (this.f713z.equals(\"2\")) {\n byte[] d5 = C0331cr.m1187d(mo3890a(\"mcc\"));\n System.arraycopy(d5, 0, bArr, i24, d5.length);\n int length10 = i24 + d5.length;\n byte[] d6 = C0331cr.m1187d(mo3890a(\"sid\"));\n System.arraycopy(d6, 0, bArr, length10, d6.length);\n int length11 = length10 + d6.length;\n byte[] d7 = C0331cr.m1187d(mo3890a(\"nid\"));\n System.arraycopy(d7, 0, bArr, length11, d7.length);\n int length12 = length11 + d7.length;\n byte[] d8 = C0331cr.m1187d(mo3890a(\"bid\"));\n System.arraycopy(d8, 0, bArr, length12, d8.length);\n int length13 = length12 + d8.length;\n byte[] e3 = C0331cr.m1190e(mo3890a(\"lon\"));\n System.arraycopy(e3, 0, bArr, length13, e3.length);\n int length14 = length13 + e3.length;\n byte[] e4 = C0331cr.m1190e(mo3890a(C1447g.f3485ae));\n System.arraycopy(e4, 0, bArr, length14, e4.length);\n int length15 = e4.length + length14;\n int parseInt3 = Integer.parseInt(mo3890a(\"signal\"));\n if (parseInt3 > 127) {\n parseInt3 = 0;\n }\n bArr[length15] = (byte) parseInt3;\n int i27 = length15 + 1;\n bArr[i27] = 0;\n i24 = i27 + 1;\n }\n if (this.f683C.length() == 0) {\n bArr[i24] = 0;\n i15 = i24 + 1;\n } else {\n bArr[i24] = 1;\n int i28 = i24 + 1;\n try {\n String[] split = this.f683C.split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n byte[] b4 = m1034b(split[0]);\n System.arraycopy(b4, 0, bArr, i28, b4.length);\n int length16 = i28 + b4.length;\n try {\n byte[] bytes14 = split[2].getBytes(\"GBK\");\n bArr[length16] = (byte) bytes14.length;\n length16++;\n System.arraycopy(bytes14, 0, bArr, length16, bytes14.length);\n i16 = length16 + bytes14.length;\n } catch (Throwable th15) {\n C0310c.m956a(th15, \"Req\", \"buildV4Dot214\");\n bArr[length16] = 0;\n i16 = length16 + 1;\n }\n int parseInt4 = Integer.parseInt(split[1]);\n if (parseInt4 > 127) {\n parseInt4 = 0;\n }\n bArr[i16] = Byte.parseByte(String.valueOf(parseInt4));\n i15 = i16 + 1;\n } catch (Throwable th16) {\n C0310c.m956a(th16, \"Req\", \"buildV4Dot216\");\n byte[] b5 = m1034b(\"00:00:00:00:00:00\");\n System.arraycopy(b5, 0, bArr, i28, b5.length);\n int length17 = b5.length + i28;\n bArr[length17] = 0;\n int i29 = length17 + 1;\n bArr[i29] = Byte.parseByte(\"0\");\n i15 = i29 + 1;\n }\n }\n String[] split2 = this.f684D.split(\"\\\\*\");\n if (TextUtils.isEmpty(this.f684D) || split2.length == 0) {\n bArr[i15] = 0;\n i17 = i15 + 1;\n } else {\n bArr[i15] = (byte) split2.length;\n int i30 = i15 + 1;\n for (String str : split2) {\n String[] split3 = str.split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n try {\n b = m1034b(split3[0]);\n } catch (Throwable th17) {\n C0310c.m956a(th17, \"Req\", \"buildV4Dot2110\");\n b = m1034b(\"00:00:00:00:00:00\");\n }\n System.arraycopy(b, 0, bArr, i30, b.length);\n int length18 = i30 + b.length;\n try {\n byte[] bytes15 = split3[2].getBytes(\"GBK\");\n bArr[length18] = (byte) bytes15.length;\n length18++;\n System.arraycopy(bytes15, 0, bArr, length18, bytes15.length);\n i19 = bytes15.length + length18;\n } catch (Throwable th18) {\n C0310c.m956a(th18, \"Req\", \"buildV4Dot217\");\n bArr[length18] = 0;\n i19 = length18 + 1;\n }\n int parseInt5 = Integer.parseInt(split3[1]);\n if (parseInt5 > 127) {\n parseInt5 = 0;\n }\n bArr[i19] = Byte.parseByte(String.valueOf(parseInt5));\n i30 = i19 + 1;\n }\n byte[] b6 = C0331cr.m1177b(Integer.parseInt(this.f685E));\n System.arraycopy(b6, 0, bArr, i30, b6.length);\n i17 = i30 + b6.length;\n }\n try {\n byte[] bytes16 = this.f686F.getBytes(\"GBK\");\n if (bytes16.length > 127) {\n bytes16 = null;\n }\n if (bytes16 == null) {\n bArr[i17] = 0;\n i18 = i17 + 1;\n } else {\n bArr[i17] = (byte) bytes16.length;\n int i31 = i17 + 1;\n System.arraycopy(bytes16, 0, bArr, i31, bytes16.length);\n i18 = bytes16.length + i31;\n }\n } catch (Throwable th19) {\n C0310c.m956a(th19, \"Req\", \"buildV4Dot218\");\n bArr[i17] = 0;\n i18 = i17 + 1;\n }\n int length19 = this.f687G != null ? this.f687G.length : 0;\n byte[] b7 = C0331cr.m1177b(length19);\n System.arraycopy(b7, 0, bArr, i18, b7.length);\n int length20 = i18 + b7.length;\n if (length19 > 0) {\n System.arraycopy(this.f687G, 0, bArr, length20, this.f687G.length);\n length20 += this.f687G.length;\n }\n byte[] bArr2 = new byte[length20];\n System.arraycopy(bArr, 0, bArr2, 0, length20);\n CRC32 crc32 = new CRC32();\n crc32.update(bArr2);\n byte[] a = C0331cr.m1167a(crc32.getValue());\n byte[] bArr3 = new byte[(a.length + length20)];\n System.arraycopy(bArr2, 0, bArr3, 0, length20);\n System.arraycopy(a, 0, bArr3, length20, a.length);\n int length21 = length20 + a.length;\n m1033a(bArr3, 0);\n return bArr3;\n }",
"private byte[] m1034b(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 2\n r4 = 6\n r2 = 0\n java.lang.String r0 = \":\"\n java.lang.String[] r0 = r8.split(r0)\n byte[] r1 = new byte[r4]\n if (r0 == 0) goto L_0x0010\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 == r4) goto L_0x001e\n L_0x0010:\n r0 = 6\n java.lang.String[] r0 = new java.lang.String[r0] // Catch:{ Throwable -> 0x0043 }\n r3 = r2\n L_0x0014:\n int r4 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 >= r4) goto L_0x001e\n java.lang.String r4 = \"0\"\n r0[r3] = r4 // Catch:{ Throwable -> 0x0043 }\n int r3 = r3 + 1\n goto L_0x0014\n L_0x001e:\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r2 >= r3) goto L_0x0041\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n int r3 = r3.length() // Catch:{ Throwable -> 0x0043 }\n if (r3 <= r6) goto L_0x0033\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 0\n r5 = 2\n java.lang.String r3 = r3.substring(r4, r5) // Catch:{ Throwable -> 0x0043 }\n r0[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n L_0x0033:\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 16\n int r3 = java.lang.Integer.parseInt(r3, r4) // Catch:{ Throwable -> 0x0043 }\n byte r3 = (byte) r3 // Catch:{ Throwable -> 0x0043 }\n r1[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n int r2 = r2 + 1\n goto L_0x001e\n L_0x0041:\n r0 = r1\n L_0x0042:\n return r0\n L_0x0043:\n r0 = move-exception\n java.lang.String r1 = \"Req\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"getMacBa \"\n java.lang.StringBuilder r2 = r2.append(r3)\n java.lang.StringBuilder r2 = r2.append(r8)\n java.lang.String r2 = r2.toString()\n com.amap.loc.C0310c.m956a(r0, r1, r2)\n java.lang.String r0 = \"00:00:00:00:00:00\"\n byte[] r0 = r7.m1034b(r0)\n goto L_0x0042\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.loc.C0321cj.m1034b(java.lang.String):byte[]\");\n }",
"int getLowBitLength();",
"private static byte[] getEightBits(byte[] bits56) {\n byte[] bits64 = new byte[8];\n System.arraycopy(bits56, 0, bits64, 0, 7);\n bits64[7] = (byte) (((bits56[0] & 1) << 1) | ((bits56[1] & 1) << 2) | ((bits56[2] & 1) << 3)\n | ((bits56[3] & 1) << 4) | ((bits56[4] & 1) << 5) | ((bits56[5] & 1) << 6)\n | ((bits56[6] & 1) << 7));\n return bits64;\n }",
"public int arn() {\n return 383;\n }",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"public abstract long mo24409b();",
"public void getTile_B8();",
"static int getNumPatterns() { return 64; }",
"void m8368b();",
"public int mo36g() {\n return 8;\n }",
"private static byte[] m2536b(Context context) {\n byte[] c = StatisticsManager.m2537c(context);\n byte[] e = StatisticsManager.m2539e(context);\n byte[] bArr = new byte[(c.length + e.length)];\n System.arraycopy(c, 0, bArr, 0, c.length);\n System.arraycopy(e, 0, bArr, c.length, e.length);\n return StatisticsManager.m2534a(context, bArr);\n }",
"void mo33732Px();",
"public abstract long mo9229aD();",
"public int mo27483b() {\n return 0;\n }",
"private static int m18332b(int encoding) {\n if (encoding == 5) {\n return 80000;\n }\n if (encoding == 6) {\n return 768000;\n }\n if (encoding == 7) {\n return 192000;\n }\n if (encoding == 8) {\n return 2250000;\n }\n if (encoding == 14) {\n return 3062500;\n }\n throw new IllegalArgumentException();\n }",
"public abstract long mo13681c();",
"int mo27483b();",
"public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }",
"public int NextMbAddress(int n) {\n\t\tint PicSizeInMapUnits= (sps0.pic_width_in_mbs_minus_1+1)*(sps0.pic_height_in_map_units_minus_1+1);\n\t\t// int FrameHeightInMbs = (2-(sps0.frame_mbs_only_flag ? 1:0))*(sps0.pic_height_in_map_units_minus_1+1);\n \t\t// int PicHeightInMbs = FrameHeightInMbs / (1+(field_pic_flag ? 1:0));\n\n \t\tint PicSizeInMbs = (sps0.pic_width_in_mbs_minus_1+1) * (PicHeightInMbs);\n\t\t// (7-34)\n\t\tint MapUnitsInSliceGroup0 = Math.min(((pps0.slice_group_change_rate_minus1 + 1) * slice_group_change_cycle), \n\t\t\t(PicSizeInMapUnits));\n\t\t// System.out.println(MapUnitsInSliceGroup0);\n\t\tint sizeOfUpperLeftGroup;\n\t\tif(pps0.num_slice_groups_minus1==1&&(pps0.slice_group_map_type==4||pps0.slice_group_map_type==5)){\n\n\t\t\tsizeOfUpperLeftGroup=(pps0.slice_group_change_direction_flag ? (PicSizeInMapUnits - MapUnitsInSliceGroup0)\n\t\t\t\t: MapUnitsInSliceGroup0);\n\t\t}\n\t\tint [] mapUnitToSliceGroupMap=new int[PicSizeInMapUnits];\n\t\tif(pps0.num_slice_groups_minus1==0){\n\t\t\t// System.out.println(\"zero \");\n\t\t\tfor(int i=0;i<pps0.pic_size_in_map_units_minus1+1;i++){\n\t\t\t\tmapUnitToSliceGroupMap[i]=0;\n\t\t\t}\t\t\t\n\t\t}\n\n\t\telse if(pps0.num_slice_groups_minus1!=0){\n\t\t\tif(pps0.slice_group_map_type==0){\n\t\t\t\t// 8.2.2.1\n\t\t\t}\n\t\t\telse if(pps0.slice_group_map_type==1){\n\t\t\t\t// 8.2.2.2\n\t\t\t}else if(pps0.slice_group_map_type==2){\n\t\t\t\t// 8.2.2.3\n\t\t\t}else if(pps0.slice_group_map_type==3){\n\t\t\t\t// 8.2.2.4\n\t\t\t}else if(pps0.slice_group_map_type==4){\n\t\t\t\t// 8.2.2.5\n\t\t\t}\n\t\t\telse if(pps0.slice_group_map_type==5){\n\t\t\t\t// 8.2.2.6\n\t\t\t}\n\t\t\telse if(pps0.slice_group_map_type==6){\n\t\t\t\t// 8.2.2.7\n\t\t\t}\n\t\t}\n\n\n\t\t\t\t\t\t\t\t\t/* 8.2.2.8 */\n \t\tint[] MbToSliceGroupMap=new int[PicSizeInMbs];\n \t\tfor(int i=0;i<PicSizeInMbs;i++){\n \t\t\tif(sps0.frame_mbs_only_flag==true||field_pic_flag==true){\n \t\t\t\t// System.out.println(PicSizeInMbs+\" \"+PicSizeInMapUnits);\n \t\t\t\tMbToSliceGroupMap[i]=mapUnitToSliceGroupMap[i];\n \t\t\t} else if(MbaffFrameFlag){\n \t\t\t\tMbToSliceGroupMap[i]=mapUnitToSliceGroupMap[(int)i/2];\n\n \t\t\t}else if(sps0.frame_mbs_only_flag==false&&sps0.mb_adaptive_frame_field_flag==false&&field_pic_flag==false){\n \t\t\t\tMbToSliceGroupMap[i]=mapUnitToSliceGroupMap[(int)(i/(2*sps0.pic_width_in_mbs_minus_1+1))\n \t\t\t\t*sps0.pic_width_in_mbs_minus_1+1+(i%sps0.pic_width_in_mbs_minus_1+1)];\n \t\t\t}\n\n \t\t}\n\t\t// i = n + 1 \n\t\t// while( i < PicSizeInMbs && MbToSliceGroupMap[ i ] != MbToSliceGroupMap[ n ] )\n\t\t // i++; \n\t\t// nextMbAddress = i\n\t\tint i = n + 1;\n\t\t// int nextMbAddress = i;\n\n\t\twhile(i<PicSizeInMbs &&( MbToSliceGroupMap[i]!=MbToSliceGroupMap[n])) {\n\t\t\ti++;\n\t\t\t// System.out.println(\"here mb address\");\n\t\t\t// nextMbAddress = i;\n\t\t}\n\t\t// System.out.println(\"nextMbAddress \"+i);\n\t\treturn i;\n\t}",
"byte mo30283c();",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"String mo30285c(long j);",
"C5537g mo4096b(int i);",
"long mo25074b();",
"byte[] mo12209b(int i);",
"public abstract int mo9754s();",
"public abstract long mo9743h();",
"public long mo9776z() {\n long j = 0;\n for (int i = 0; i < 64; i += 7) {\n byte u = mo9771u();\n j |= ((long) (u & Byte.MAX_VALUE)) << i;\n if ((u & 128) == 0) {\n return j;\n }\n }\n throw C3606c0.m8178e();\n }",
"public int mo9754s() {\n return mo9774x();\n }",
"public static int offsetBits_infos_seq_num() {\n return 64;\n }",
"public abstract long mo24410c();",
"public long mo9787z() {\n long j = 0;\n for (int i = 0; i < 64; i += 7) {\n byte u = mo9782u();\n j |= ((long) (u & Byte.MAX_VALUE)) << i;\n if ((u & 128) == 0) {\n return j;\n }\n }\n throw C3606c0.m8178e();\n }",
"public static int size_nodeid() {\n return (8 / 8);\n }",
"public int getBlockSize()\n/* */ {\n/* 43 */ return this.blockSize;\n/* */ }",
"C3676k mo12649b();",
"public void mo9769i(int r9) {\n /*\n r8 = this;\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r0 = r0 - r1\n if (r9 > r0) goto L_0x000e\n if (r9 < 0) goto L_0x000e\n int r1 = r1 + r9\n r8.f9082i = r1\n goto L_0x0097\n L_0x000e:\n if (r9 < 0) goto L_0x00a2\n int r0 = r8.f9084k\n int r1 = r8.f9082i\n int r2 = r0 + r1\n int r3 = r2 + r9\n int r4 = r8.f9085l\n if (r3 > r4) goto L_0x0098\n q.b.c.a.j0.a.k$c$a r0 = r8.f9086m\n r3 = 0\n if (r0 != 0) goto L_0x007d\n r8.f9084k = r2\n int r0 = r8.f9080g\n int r0 = r0 - r1\n r8.f9080g = r3\n r8.f9082i = r3\n r3 = r0\n L_0x002b:\n if (r3 >= r9) goto L_0x0075\n int r0 = r9 - r3\n java.io.InputStream r1 = r8.f9078e // Catch:{ all -> 0x006b }\n long r4 = (long) r0 // Catch:{ all -> 0x006b }\n long r0 = r1.skip(r4) // Catch:{ all -> 0x006b }\n r6 = 0\n int r2 = (r0 > r6 ? 1 : (r0 == r6 ? 0 : -1))\n if (r2 < 0) goto L_0x0046\n int r4 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1))\n if (r4 > 0) goto L_0x0046\n if (r2 != 0) goto L_0x0043\n goto L_0x0075\n L_0x0043:\n int r0 = (int) r0 // Catch:{ all -> 0x006b }\n int r3 = r3 + r0\n goto L_0x002b\n L_0x0046:\n java.lang.IllegalStateException r9 = new java.lang.IllegalStateException // Catch:{ all -> 0x006b }\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x006b }\n r2.<init>() // Catch:{ all -> 0x006b }\n java.io.InputStream r4 = r8.f9078e // Catch:{ all -> 0x006b }\n java.lang.Class r4 = r4.getClass() // Catch:{ all -> 0x006b }\n r2.append(r4) // Catch:{ all -> 0x006b }\n java.lang.String r4 = \"#skip returned invalid result: \"\n r2.append(r4) // Catch:{ all -> 0x006b }\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = \"\\nThe InputStream implementation is buggy.\"\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = r2.toString() // Catch:{ all -> 0x006b }\n r9.<init>(r0) // Catch:{ all -> 0x006b }\n throw r9 // Catch:{ all -> 0x006b }\n L_0x006b:\n r9 = move-exception\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n throw r9\n L_0x0075:\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n L_0x007d:\n if (r3 >= r9) goto L_0x0097\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r1 = r0 - r1\n r8.f9082i = r0\n r0 = 1\n L_0x0088:\n r8.mo9768h(r0)\n int r2 = r9 - r1\n int r3 = r8.f9080g\n if (r2 <= r3) goto L_0x0095\n int r1 = r1 + r3\n r8.f9082i = r3\n goto L_0x0088\n L_0x0095:\n r8.f9082i = r2\n L_0x0097:\n return\n L_0x0098:\n int r4 = r4 - r0\n int r4 = r4 - r1\n r8.mo9769i(r4)\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8181h()\n throw r9\n L_0x00a2:\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8179f()\n throw r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9769i(int):void\");\n }",
"@Test(timeout = 4000)\n public void test14() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n DefaultNucleotideCodec defaultNucleotideCodec2 = DefaultNucleotideCodec.INSTANCE;\n Nucleotide nucleotide0 = Nucleotide.Pyrimidine;\n Set<Nucleotide> set0 = nucleotide0.getBasesFor();\n byte[] byteArray0 = defaultNucleotideCodec1.encode((Collection<Nucleotide>) set0);\n Nucleotide nucleotide1 = defaultNucleotideCodec0.decode(byteArray0, 0L);\n assertEquals(Nucleotide.Cytosine, nucleotide1);\n \n defaultNucleotideCodec1.getNumberOfGapsUntil(byteArray0, 1717986918);\n DefaultNucleotideCodec defaultNucleotideCodec3 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec3.getUngappedLength(byteArray0);\n DefaultNucleotideCodec defaultNucleotideCodec4 = DefaultNucleotideCodec.INSTANCE;\n int int0 = defaultNucleotideCodec4.getUngappedOffsetFor(byteArray0, (-1209));\n assertEquals((-1209), int0);\n \n int int1 = defaultNucleotideCodec2.getGappedOffsetFor(byteArray0, (-1209));\n assertEquals(2, int1);\n \n defaultNucleotideCodec2.getGappedOffsetFor(byteArray0, 1717986918);\n DefaultNucleotideCodec defaultNucleotideCodec5 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec5.decodedLengthOf(byteArray0);\n defaultNucleotideCodec0.decodedLengthOf(byteArray0);\n DefaultNucleotideCodec defaultNucleotideCodec6 = DefaultNucleotideCodec.INSTANCE;\n DefaultNucleotideCodec defaultNucleotideCodec7 = DefaultNucleotideCodec.INSTANCE;\n int int2 = defaultNucleotideCodec7.getGappedOffsetFor(byteArray0, 0);\n int int3 = defaultNucleotideCodec6.getNumberOfGapsUntil(byteArray0, 5);\n assertTrue(int3 == int2);\n assertArrayEquals(new byte[] {(byte)0, (byte)0, (byte)0, (byte)2, (byte) (-34)}, byteArray0);\n assertEquals(0, int3);\n }",
"public static int m8668h() {\n return 8;\n }",
"private long m674a(byte[] bArr) {\n return ((((long) bArr[7]) & 255) << 56) | ((((long) bArr[6]) & 255) << 48) | ((((long) bArr[5]) & 255) << 40) | ((((long) bArr[4]) & 255) << 32) | ((((long) bArr[3]) & 255) << 24) | ((((long) bArr[2]) & 255) << 16) | ((((long) bArr[1]) & 255) << 8) | (255 & ((long) bArr[0]));\n }",
"void procedure()\n {\n try\n {\n fkey=new FileInputStream(file2);\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n keybuf= new byte[16];\n try\n {\n fkey.read(keybuf);\n z= new int[52];\n j1=0;\n i1=0;\n for(i=0;i<52;i++)\n z[i]=0;\n while( i1<8)\n {\n if((j1+1)%2==0)\n {\n z[i1]|=keybuf[j1]; // dividing 64 bit cypher block into four 16 bit registers\n\t i1++;\n }\n else\n \t {\n\t z[i1]=keybuf[j1];\n\t z[i1]<<=8;\n }\n\t j1++;\n }\n i=0;\n\t for(j1=1;j1<=5;j1++)\n\t {\n\t i++;\n\t z[i+7]=((z[i]<<9)&0xfe00)|((z[i+1]>>7)&0x1ff);\n\t z[i+8]=((z[i+1]<<9)&0xfe00)|((z[i+2]>>7)&0x1ff);\n\t z[i+9]=((z[i+2]<<9)&0xfe00)|((z[i+3]>>7)&0x1ff);\n\t z[i+10]=((z[i+3]<<9)&0xfe00)|((z[i+4]>>7)&0x1ff);\n\t z[i+11]=((z[i+4]<<9)&0xfe00)|((z[i+5]>>7)&0x1ff);\n\t z[i+12]=((z[i+5]<<9)&0xfe00)|((z[i+6]>>7)&0x1ff);\n z[i+13]=((z[i+6]<<9)&0xfe00)|((z[i-1]>>7)&0x1ff);\n\t z[i+14]=((z[i-1]<<9)&0xfe00)|((z[i]>>7)&0x1ff);\n\t i=i+7;\n\t }\n i1=41;\n\t z[48]=((z[i1]<<9)&0xfe00)|((z[i1+1]>>7)&0x1ff);\n\t z[49]=((z[i1+1]<<9)&0xfe00)|((z[i1+2]>>7)&0x1ff);\n\t z[50]=((z[i1+2]<<9)&0xfe00)|((z[i1+3]>>7)&0x1ff);\n\t z[51]=((z[i1+3]<<9)&0xfe00)|((z[i1+4]>>7)&0x1ff);\n}\ncatch(Exception e)\n{\nSystem.out.println(e);\n}\n}",
"public int mo9785x() {\n /*\n r10 = this;\n long r0 = r10.f9091i\n long r2 = r10.f9090h\n int r2 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))\n if (r2 != 0) goto L_0x000a\n goto L_0x0085\n L_0x000a:\n r2 = 1\n long r4 = r0 + r2\n byte r0 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r0)\n if (r0 < 0) goto L_0x0017\n r10.f9091i = r4\n return r0\n L_0x0017:\n long r6 = r10.f9090h\n long r6 = r6 - r4\n r8 = 9\n int r1 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1))\n if (r1 >= 0) goto L_0x0021\n goto L_0x0085\n L_0x0021:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 7\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x002f\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x008b\n L_0x002f:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003e\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x003c:\n r6 = r4\n goto L_0x008b\n L_0x003e:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 21\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x004e\n r1 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r1\n goto L_0x008b\n L_0x004e:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r6 = r1 << 28\n r0 = r0 ^ r6\n r6 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r6\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n L_0x0085:\n long r0 = r10.mo9787z()\n int r0 = (int) r0\n return r0\n L_0x008b:\n r10.f9091i = r6\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3661d.mo9785x():int\");\n }",
"public byte[] initialValue() {\n return new byte[]{(byte) -1, (byte) -40, (byte) -1, (byte) -37, (byte) 0, (byte) 67, (byte) 0, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -64, (byte) 0, (byte) 17, (byte) 8, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 3, (byte) 1, (byte) 34, (byte) 0, (byte) 2, (byte) 17, (byte) 0, (byte) 3, (byte) 17, (byte) 0, (byte) -1, (byte) -60, (byte) 0, (byte) 31, (byte) 0, (byte) 0, (byte) 1, (byte) 5, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 5, (byte) 6, (byte) 7, (byte) 8, (byte) 9, (byte) 10, (byte) 11, (byte) -1, (byte) -60, (byte) 0, (byte) -75, (byte) 16, (byte) 0, (byte) 2, (byte) 1, (byte) 3, (byte) 3, (byte) 2, (byte) 4, (byte) 3, (byte) 5, (byte) 5, (byte) 4, (byte) 4, (byte) 0, (byte) 0, (byte) 1, (byte) 125, (byte) 1, (byte) 2, (byte) 3, (byte) 0, (byte) 4, (byte) 17, (byte) 5, (byte) 18, (byte) 33, (byte) 49, (byte) 65, (byte) 6, (byte) 19, (byte) 81, (byte) 97, (byte) 7, (byte) 34, (byte) 113, (byte) 20, (byte) 50, (byte) -127, (byte) -111, (byte) -95, (byte) 8, (byte) 35, (byte) 66, (byte) -79, (byte) -63, (byte) 21, (byte) 82, (byte) -47, (byte) -16, (byte) 36, (byte) 51, (byte) 98, (byte) 114, (byte) -126, (byte) 9, (byte) 10, (byte) 22, (byte) 23, (byte) 24, (byte) 25, (byte) 26, (byte) 37, (byte) 38, (byte) 39, (byte) 40, (byte) 41, (byte) 42, (byte) 52, (byte) 53, (byte) 54, (byte) 55, (byte) 56, (byte) 57, (byte) 58, (byte) 67, (byte) 68, (byte) 69, (byte) 70, (byte) 71, (byte) 72, (byte) 73, (byte) 74, (byte) 83, (byte) 84, (byte) 85, (byte) 86, (byte) 87, (byte) 88, (byte) 89, (byte) 90, (byte) 99, (byte) 100, (byte) 101, (byte) 102, (byte) 103, (byte) 104, (byte) 105, (byte) 106, (byte) 115, (byte) 116, (byte) 117, (byte) 118, (byte) 119, (byte) 120, (byte) 121, (byte) 122, (byte) -125, (byte) -124, (byte) -123, (byte) -122, (byte) -121, (byte) -120, (byte) -119, (byte) -118, (byte) -110, (byte) -109, (byte) -108, (byte) -107, (byte) -106, (byte) -105, (byte) -104, (byte) -103, (byte) -102, (byte) -94, (byte) -93, (byte) -92, (byte) -91, (byte) -90, (byte) -89, (byte) -88, (byte) -87, (byte) -86, (byte) -78, (byte) -77, (byte) -76, (byte) -75, (byte) -74, (byte) -73, (byte) -72, (byte) -71, (byte) -70, (byte) -62, (byte) -61, (byte) -60, (byte) -59, (byte) -58, (byte) -57, (byte) -56, (byte) -55, (byte) -54, (byte) -46, (byte) -45, (byte) -44, (byte) -43, (byte) -42, (byte) -41, (byte) -40, (byte) -39, (byte) -38, (byte) -31, (byte) -30, (byte) -29, (byte) -28, (byte) -27, (byte) -26, (byte) -25, (byte) -24, (byte) -23, (byte) -22, (byte) -15, (byte) -14, (byte) -13, (byte) -12, (byte) -11, (byte) -10, (byte) -9, (byte) -8, (byte) -7, (byte) -6, (byte) -1, (byte) -60, (byte) 0, (byte) 31, (byte) 1, (byte) 0, (byte) 3, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 5, (byte) 6, (byte) 7, (byte) 8, (byte) 9, (byte) 10, (byte) 11, (byte) -1, (byte) -60, (byte) 0, (byte) -75, (byte) 17, (byte) 0, (byte) 2, (byte) 1, (byte) 2, (byte) 4, (byte) 4, (byte) 3, (byte) 4, (byte) 7, (byte) 5, (byte) 4, (byte) 4, (byte) 0, (byte) 1, (byte) 2, (byte) 119, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 17, (byte) 4, (byte) 5, (byte) 33, (byte) 49, (byte) 6, (byte) 18, (byte) 65, (byte) 81, (byte) 7, (byte) 97, (byte) 113, (byte) 19, (byte) 34, (byte) 50, (byte) -127, (byte) 8, (byte) 20, (byte) 66, (byte) -111, (byte) -95, (byte) -79, (byte) -63, (byte) 9, (byte) 35, (byte) 51, (byte) 82, (byte) -16, (byte) 21, (byte) 98, (byte) 114, (byte) -47, (byte) 10, (byte) 22, (byte) 36, (byte) 52, (byte) -31, (byte) 37, (byte) -15, (byte) 23, (byte) 24, (byte) 25, (byte) 26, (byte) 38, (byte) 39, (byte) 40, (byte) 41, (byte) 42, (byte) 53, (byte) 54, (byte) 55, (byte) 56, (byte) 57, (byte) 58, (byte) 67, (byte) 68, (byte) 69, (byte) 70, (byte) 71, (byte) 72, (byte) 73, (byte) 74, (byte) 83, (byte) 84, (byte) 85, (byte) 86, (byte) 87, (byte) 88, (byte) 89, (byte) 90, (byte) 99, (byte) 100, (byte) 101, (byte) 102, (byte) 103, (byte) 104, (byte) 105, (byte) 106, (byte) 115, (byte) 116, (byte) 117, (byte) 118, (byte) 119, (byte) 120, (byte) 121, (byte) 122, (byte) -126, (byte) -125, (byte) -124, (byte) -123, (byte) -122, (byte) -121, (byte) -120, (byte) -119, (byte) -118, (byte) -110, (byte) -109, (byte) -108, (byte) -107, (byte) -106, (byte) -105, (byte) -104, (byte) -103, (byte) -102, (byte) -94, (byte) -93, (byte) -92, (byte) -91, (byte) -90, (byte) -89, (byte) -88, (byte) -87, (byte) -86, (byte) -78, (byte) -77, (byte) -76, (byte) -75, (byte) -74, (byte) -73, (byte) -72, (byte) -71, (byte) -70, (byte) -62, (byte) -61, (byte) -60, (byte) -59, (byte) -58, (byte) -57, (byte) -56, (byte) -55, (byte) -54, (byte) -46, (byte) -45, (byte) -44, (byte) -43, (byte) -42, (byte) -41, (byte) -40, (byte) -39, (byte) -38, (byte) -30, (byte) -29, (byte) -28, (byte) -27, (byte) -26, (byte) -25, (byte) -24, (byte) -23, (byte) -22, (byte) -14, (byte) -13, (byte) -12, (byte) -11, (byte) -10, (byte) -9, (byte) -8, (byte) -7, (byte) -6, (byte) -1, (byte) -38, (byte) 0, (byte) 12, (byte) 3, (byte) 1, (byte) 0, (byte) 2, (byte) 17, (byte) 3, (byte) 17, (byte) 0, (byte) 63, (byte) 0, (byte) -114, (byte) -118, (byte) 40, (byte) -96, (byte) 15, (byte) -1, (byte) -39};\n }",
"public static int size_receiverNodeID() {\n return (8 / 8);\n }",
"public static int size_moteId() {\n return (16 / 8);\n }",
"public abstract long mo9755t();",
"long getUnknown12();",
"public static int sizeBits_parentId() {\n return 16;\n }",
"void mo12637b();",
"default int getCompositeBitLength() {\n return getHighBitLength() + getLowBitLength();\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"public abstract long mo9748m();",
"public static int offset_infos_seq_num() {\n return (64 / 8);\n }",
"private byte[] gapEncode (List<Integer> list) {\n\t if (list == null || list.size() == 0) {\n\t return null;\n }\n\t\tIterator<Integer> p = list.iterator();\n\t\tInteger docId = popNextOrNull(p);\n\t\tbyte[] firDocId = vBNumber(docId);\n\t\tbyte[] bytes = new byte[VBNUM_SIZE * list.size()];\n int index;\n for (index = 0; index < firDocId.length; index++) {\n bytes[index] = firDocId[index];\n }\n\n\t while (docId != null) {\n\t Integer nextDocId = popNextOrNull(p);\n\t if (nextDocId == null) {\n\t break;\n }\n\t byte[] gap = vBNumber(nextDocId - docId);\n\t for (int i = 0; i < gap.length; i++) {\n\t bytes[index] = gap[i];\n\t index++;\n }\n\t docId = nextDocId;\n }\n\n byte[] result = new byte[index];\n for (int i = 0; i < index; i++) {\n result[i] = bytes[i];\n }\n\n\n\n /*System.out.println(\"......gap encode inside......\");\n\n for (byte t : result) {\n for (int i = 0; i < Byte.SIZE; i++) {\n int n = t & (1 << (7 - i));\n n = n >> (7 - i);\n System.out.print(n);\n }\n System.out.println();\n }*/\n\n return result;\n\t}",
"public abstract int mo13680b();",
"@Test(timeout = 4000)\n public void test11() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.valueOf(\"INSTANCE\");\n byte[] byteArray0 = new byte[7];\n byteArray0[0] = (byte) (-50);\n byteArray0[1] = (byte) (-38);\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec1.decodedLengthOf(byteArray0);\n defaultNucleotideCodec0.decodedLengthOf(byteArray0);\n DefaultNucleotideCodec defaultNucleotideCodec2 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec2.getUngappedLength(byteArray0);\n Nucleotide nucleotide0 = Nucleotide.NotGuanine;\n Set<Nucleotide> set0 = nucleotide0.getBasesFor();\n byte[] byteArray1 = defaultNucleotideCodec0.encode((Collection<Nucleotide>) set0);\n Nucleotide nucleotide1 = defaultNucleotideCodec0.decode(byteArray0, 0L);\n assertEquals(Nucleotide.Gap, nucleotide1);\n \n defaultNucleotideCodec0.getNumberOfGapsUntil(byteArray0, 1717986918);\n long long0 = defaultNucleotideCodec1.getUngappedLength(byteArray0);\n assertEquals((-824573952L), long0);\n \n defaultNucleotideCodec1.getUngappedOffsetFor(byteArray1, (-651));\n defaultNucleotideCodec2.getGappedOffsetFor(byteArray0, (byte) (-38));\n defaultNucleotideCodec0.getGappedOffsetFor(byteArray0, (byte) (-50));\n DefaultNucleotideCodec defaultNucleotideCodec3 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec3.decodedLengthOf(byteArray1);\n defaultNucleotideCodec3.decodedLengthOf(byteArray1);\n DefaultNucleotideCodec defaultNucleotideCodec4 = DefaultNucleotideCodec.INSTANCE;\n int int0 = defaultNucleotideCodec4.getGappedOffsetFor(byteArray1, (byte) (-38));\n assertEquals(3, int0);\n \n DefaultNucleotideCodec defaultNucleotideCodec5 = DefaultNucleotideCodec.INSTANCE;\n int int1 = defaultNucleotideCodec5.getNumberOfGapsUntil(byteArray1, (byte) (-38));\n assertArrayEquals(new byte[] {(byte)0, (byte)0, (byte)0, (byte)3, (byte)29, (byte) (-32)}, byteArray1);\n assertEquals(0, int1);\n }",
"public int mo12191c() {\n return this.f10948c.limit() + this.f10957l.length + (this.f10958m.length * 4);\n }",
"public final List<byte[]> mo9767g(int i) {\n ArrayList arrayList = new ArrayList();\n while (i > 0) {\n int min = Math.min(i, 4096);\n byte[] bArr = new byte[min];\n int i2 = 0;\n while (i2 < min) {\n int read = this.f9078e.read(bArr, i2, min - i2);\n if (read != -1) {\n this.f9084k += read;\n i2 += read;\n } else {\n throw C3606c0.m8181h();\n }\n }\n i -= min;\n arrayList.add(bArr);\n }\n return arrayList;\n }",
"public long mo9786y() {\n long j;\n long j2;\n long j3;\n byte b;\n long j4 = this.f9091i;\n if (this.f9090h != j4) {\n long j5 = j4 + 1;\n byte a = C3691q1.m8803a(j4);\n if (a >= 0) {\n this.f9091i = j5;\n return (long) a;\n } else if (this.f9090h - j5 >= 9) {\n long j6 = j5 + 1;\n byte a2 = a ^ (C3691q1.m8803a(j5) << 7);\n if (a2 < 0) {\n b = a2 ^ Byte.MIN_VALUE;\n } else {\n long j7 = j6 + 1;\n byte a3 = a2 ^ (C3691q1.m8803a(j6) << 14);\n if (a3 >= 0) {\n j = (long) (a3 ^ 16256);\n } else {\n j6 = j7 + 1;\n byte a4 = a3 ^ (C3691q1.m8803a(j7) << 21);\n if (a4 < 0) {\n b = a4 ^ -2080896;\n } else {\n j7 = j6 + 1;\n long a5 = ((long) a4) ^ (((long) C3691q1.m8803a(j6)) << 28);\n if (a5 >= 0) {\n j3 = 266354560;\n } else {\n long j8 = j7 + 1;\n long a6 = a5 ^ (((long) C3691q1.m8803a(j7)) << 35);\n if (a6 < 0) {\n j2 = -34093383808L;\n } else {\n j7 = j8 + 1;\n a5 = a6 ^ (((long) C3691q1.m8803a(j8)) << 42);\n if (a5 >= 0) {\n j3 = 4363953127296L;\n } else {\n j8 = j7 + 1;\n a6 = a5 ^ (((long) C3691q1.m8803a(j7)) << 49);\n if (a6 < 0) {\n j2 = -558586000294016L;\n } else {\n j7 = j8 + 1;\n j = (a6 ^ (((long) C3691q1.m8803a(j8)) << 56)) ^ 71499008037633920L;\n if (j < 0) {\n long j9 = 1 + j7;\n if (((long) C3691q1.m8803a(j7)) >= 0) {\n j6 = j9;\n this.f9091i = j6;\n return j;\n }\n }\n }\n }\n }\n j = a6 ^ j2;\n j6 = j8;\n this.f9091i = j6;\n return j;\n }\n j = a5 ^ j3;\n }\n }\n j6 = j7;\n this.f9091i = j6;\n return j;\n }\n j = (long) b;\n this.f9091i = j6;\n return j;\n }\n }\n return mo9787z();\n }",
"public static int offset_count() {\n return (16 / 8);\n }",
"public static String nthrt(String bytes,int size, int value){\n if(value==1||value==0||size<1||size>bytes.length()||!Cript2010x8b.USEPOWNTHRT) return bytes; \n String out=\"\"; \n int max=bytes.length()/size; \n if(bytes.length()%size!=0) \n max++; \n for(int i=0;i<max;i++){ \n String subStr=\"\"; \n for(int l=0;l<size;l++) \n try{ \n subStr+=bytes.charAt(i*size+(size-l-1)); \n }catch(Exception e){ \n String bug=bytes.substring(i*size); \n bug=addLong(bug,1,value); \n return out+bug; \n } \n BigInteger current=strToBInt(subStr); \n int exiter=0;\n while(Operations.nthRootFloor(current, value).pow(value).compareTo(current)!=0){ \n if(exiter>66) break;\n current=current.add(BigInteger.valueOf(2).pow(8*size)); \n exiter++;\n } \n current=Operations.nthRootFloor(current, value); \n exiter=0;\n while(current.compareTo(BigInteger.valueOf(2).pow(8*size))>0){if(exiter>66) break;current=current.add(BigInteger.valueOf(2).pow(8*size).negate());exiter++;} \n exiter=0;\n while(current.compareTo(BigInteger.ZERO)<0){if(exiter>66) break;current=current.add(BigInteger.valueOf(2).pow(8*size));exiter++;} \n \n out+=BintToStr(current,size); \n } \n return out; \n }",
"public static int offset_cost() {\n return (56 / 8);\n }",
"int[] mo56160d();",
"public void mo7778r() {\n C1617m mVar;\n C1680l lVar;\n long j;\n C1605b c = this.f5559c.mo7539c(C1613i.f5305hP);\n if (c instanceof C1604a) {\n C1604a aVar = (C1604a) c;\n C1604a aVar2 = (C1604a) this.f5559c.mo7539c(C1613i.f5122ds);\n if (aVar2 == null) {\n aVar2 = new C1604a();\n aVar2.mo7490a((C1605b) C1612h.f4886a);\n aVar2.mo7490a(this.f5559c.mo7539c(C1613i.f5288gz));\n }\n ArrayList arrayList = new ArrayList();\n Iterator<C1605b> it = aVar2.iterator();\n while (true) {\n if (!it.hasNext()) {\n break;\n }\n long b = ((C1612h) it.next()).mo7585b();\n int c2 = ((C1612h) it.next()).mo7586c();\n for (int i = 0; i < c2; i++) {\n arrayList.add(Long.valueOf(((long) i) + b));\n }\n }\n Iterator it2 = arrayList.iterator();\n int c3 = aVar.mo7498c(0);\n int c4 = aVar.mo7498c(1);\n int c5 = aVar.mo7498c(2);\n int i2 = c3 + c4 + c5;\n while (!this.f5510a.mo7797d() && it2.hasNext()) {\n byte[] bArr = new byte[i2];\n this.f5510a.mo7789a(bArr);\n int i3 = 0;\n for (int i4 = 0; i4 < c3; i4++) {\n i3 += (bArr[i4] & 255) << (((c3 - i4) - 1) * 8);\n }\n Long l = (Long) it2.next();\n switch (i3) {\n case 1:\n int i5 = 0;\n for (int i6 = 0; i6 < c4; i6++) {\n i5 += (bArr[i6 + c3] & 255) << (((c4 - i6) - 1) * 8);\n }\n int i7 = 0;\n for (int i8 = 0; i8 < c5; i8++) {\n i7 += (bArr[(i8 + c3) + c4] & 255) << (((c5 - i8) - 1) * 8);\n }\n mVar = new C1617m(l.longValue(), i7);\n lVar = this.f5560d;\n j = (long) i5;\n break;\n case 2:\n int i9 = 0;\n for (int i10 = 0; i10 < c4; i10++) {\n i9 += (bArr[i10 + c3] & 255) << (((c4 - i10) - 1) * 8);\n }\n mVar = new C1617m(l.longValue(), 0);\n lVar = this.f5560d;\n j = (long) (-i9);\n break;\n }\n lVar.mo7812a(mVar, j);\n }\n return;\n }\n throw new IOException(\"/W array is missing in Xref stream\");\n }",
"int mo44965b();",
"int mo1684a(byte[] bArr, int i, int i2);",
"private void loadAddressFromLatches(){\r\n horizontalTileCounter = horizontalTileLatch;\r\n verticalTileCounter = verticalTileLatch;\r\n horizontalNameCounter = horizontalNameLatch; // single bit\r\n verticalNameCounter = verticalNameLatch; // single bit\r\n fineVerticalCounter = fineVerticalLatch;\r\n }",
"public long getBlockCount ( ) {\r\n\t\treturn 436;\r\n\t}",
"public final synchronized byte[] mo68846g(Integer num) {\n byte[] bArr;\n AppMethodBeat.m2504i(60317);\n bArr = (byte[]) super.mo33852d(num);\n if (bArr == null) {\n bArr = new byte[num.intValue()];\n }\n AppMethodBeat.m2505o(60317);\n return bArr;\n }",
"public final void mo9807a(long j) {\n try {\n byte[] bArr = this.f9110d;\n int i = this.f9112f;\n int i2 = i + 1;\n this.f9112f = i2;\n bArr[i] = (byte) (((int) j) & 255);\n byte[] bArr2 = this.f9110d;\n int i3 = i2 + 1;\n this.f9112f = i3;\n bArr2[i2] = (byte) (((int) (j >> 8)) & 255);\n byte[] bArr3 = this.f9110d;\n int i4 = i3 + 1;\n this.f9112f = i4;\n bArr3[i3] = (byte) (((int) (j >> 16)) & 255);\n byte[] bArr4 = this.f9110d;\n int i5 = i4 + 1;\n this.f9112f = i5;\n bArr4[i4] = (byte) (((int) (j >> 24)) & 255);\n byte[] bArr5 = this.f9110d;\n int i6 = i5 + 1;\n this.f9112f = i6;\n bArr5[i5] = (byte) (((int) (j >> 32)) & 255);\n byte[] bArr6 = this.f9110d;\n int i7 = i6 + 1;\n this.f9112f = i7;\n bArr6[i6] = (byte) (((int) (j >> 40)) & 255);\n byte[] bArr7 = this.f9110d;\n int i8 = i7 + 1;\n this.f9112f = i8;\n bArr7[i7] = (byte) (((int) (j >> 48)) & 255);\n byte[] bArr8 = this.f9110d;\n this.f9112f = i8 + 1;\n bArr8[i8] = (byte) (((int) (j >> 56)) & 255);\n } catch (IndexOutOfBoundsException e) {\n throw new C3674d(String.format(\"Pos: %d, limit: %d, len: %d\", new Object[]{Integer.valueOf(this.f9112f), Integer.valueOf(this.f9111e), Integer.valueOf(1)}), e);\n }\n }",
"private static byte[] m2539e(Context context) {\n Throwable th;\n int i = 0;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n String a = Log.m2547a(context, Log.f1857e);\n DiskLruCache diskLruCache = null;\n try {\n diskLruCache = DiskLruCache.m2767a(new File(a), 1, 1, 10240);\n File file = new File(a);\n if (file != null && file.exists()) {\n String[] list = file.list();\n int length = list.length;\n while (i < length) {\n String str = list[i];\n if (str.contains(\".0\")) {\n byteArrayOutputStream.write(StatisticsManager.m2535a(diskLruCache, str.split(\"\\\\.\")[0]));\n }\n i++;\n }\n }\n bArr = byteArrayOutputStream.toByteArray();\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n try {\n diskLruCache.close();\n } catch (Throwable th2) {\n th = th2;\n }\n }\n } catch (IOException th3) {\n BasicLogHandler.m2542a(th3, \"StatisticsManager\", \"getContent\");\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n diskLruCache.close();\n }\n } catch (Throwable th4) {\n th3 = th4;\n }\n return bArr;\n th3.printStackTrace();\n return bArr;\n }",
"private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }",
"int memSize() {\n return super.memSize() + 4 * 4; }",
"public long mo9763z() {\n long j = 0;\n for (int i = 0; i < 64; i += 7) {\n byte u = mo9758u();\n j |= ((long) (u & Byte.MAX_VALUE)) << i;\n if ((u & 128) == 0) {\n return j;\n }\n }\n throw C3606c0.m8178e();\n }",
"private int[] m7232h() {\n this.f5578C[0] = this.f5594p;\n this.f5578C[1] = this.f5599u - this.f5594p;\n return this.f5578C;\n }",
"int regionSplitBits4DownSampledTable();",
"private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }",
"public abstract int mo9753r();",
"void mo88524c();",
"@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}",
"private long m10259a(byte[] bArr) {\r\n return ((((((((((long) bArr[7]) & 255) << 56) | ((((long) bArr[6]) & 255) << 48)) | ((((long) bArr[5]) & 255) << 40)) | ((((long) bArr[4]) & 255) << 32)) | ((((long) bArr[3]) & 255) << 24)) | ((((long) bArr[2]) & 255) << 16)) | ((((long) bArr[1]) & 255) << 8)) | (((long) bArr[0]) & 255);\r\n }",
"@Override\n public int getSize() {\n return 64;\n }",
"public long mo9775y() {\n /*\n r11 = this;\n int r0 = r11.f9082i\n int r1 = r11.f9080g\n if (r1 != r0) goto L_0x0008\n goto L_0x00b6\n L_0x0008:\n byte[] r2 = r11.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0014\n r11.f9082i = r3\n long r0 = (long) r0\n return r0\n L_0x0014:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x001b\n goto L_0x00b6\n L_0x001b:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0029\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n L_0x0026:\n long r2 = (long) r0\n goto L_0x00bd\n L_0x0029:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003a\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n long r0 = (long) r0\n r9 = r0\n r1 = r3\n r2 = r9\n goto L_0x00bd\n L_0x003a:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0048\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0026\n L_0x0048:\n long r3 = (long) r0\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r5 = (long) r1\n r1 = 28\n long r5 = r5 << r1\n long r3 = r3 ^ r5\n r5 = 0\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x005f\n r1 = 266354560(0xfe03f80, double:1.315966377E-315)\n L_0x005b:\n long r2 = r3 ^ r1\n r1 = r0\n goto L_0x00bd\n L_0x005f:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 35\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x0074\n r5 = -34093383808(0xfffffff80fe03f80, double:NaN)\n L_0x0071:\n long r2 = r3 ^ r5\n goto L_0x00bd\n L_0x0074:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 42\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x0087\n r1 = 4363953127296(0x3f80fe03f80, double:2.1560793202584E-311)\n goto L_0x005b\n L_0x0087:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 49\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x009a\n r5 = -558586000294016(0xfffe03f80fe03f80, double:NaN)\n goto L_0x0071\n L_0x009a:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 56\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n r7 = 71499008037633920(0xfe03f80fe03f80, double:6.838959413692434E-304)\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 >= 0) goto L_0x00bb\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n int r0 = (r7 > r5 ? 1 : (r7 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x00bc\n L_0x00b6:\n long r0 = r11.mo9776z()\n return r0\n L_0x00bb:\n r1 = r0\n L_0x00bc:\n r2 = r3\n L_0x00bd:\n r11.f9082i = r1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9775y():long\");\n }",
"public byte[] mo43874n() {\n try {\n ByteArrayOutputStream bout = new ByteArrayOutputStream();\n DataOutputStream dout = new DataOutputStream(bout);\n mo43851a(dout);\n dout.close();\n return bout.toByteArray();\n } catch (IOException e) {\n throw new InternalError();\n }\n }",
"private static java.lang.String m586k() {\r\n /*\r\n r6 = 1;\r\n r0 = 0;\r\n r1 = \"/proc/cpuinfo\";\r\n r2 = new java.io.FileReader;\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r2.<init>(r1);\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r1 = new java.io.BufferedReader;\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n r3 = 8192; // 0x2000 float:1.14794E-41 double:4.0474E-320;\r\n r1.<init>(r2, r3);\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n L_0x0010:\r\n r3 = r1.readLine();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0039;\r\n L_0x0016:\r\n r4 = com.alipay.security.mobile.module.p010a.C0159a.m556a(r3);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 != 0) goto L_0x0010;\r\n L_0x001c:\r\n r4 = \":\";\r\n r3 = r3.split(r4);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0010;\r\n L_0x0024:\r\n r4 = r3.length;\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 <= r6) goto L_0x0010;\r\n L_0x0027:\r\n r4 = 0;\r\n r4 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r5 = \"BogoMIPS\";\r\n r4 = r4.contains(r5);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 == 0) goto L_0x0010;\r\n L_0x0032:\r\n r4 = 1;\r\n r3 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r0 = r3.trim();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n L_0x0039:\r\n r2.close();\t Catch:{ IOException -> 0x0060 }\r\n L_0x003c:\r\n r1.close();\t Catch:{ IOException -> 0x0062 }\r\n L_0x003f:\r\n return r0;\r\n L_0x0040:\r\n r1 = move-exception;\r\n r1 = r0;\r\n r2 = r0;\r\n L_0x0043:\r\n if (r2 == 0) goto L_0x0048;\r\n L_0x0045:\r\n r2.close();\t Catch:{ IOException -> 0x0064 }\r\n L_0x0048:\r\n if (r1 == 0) goto L_0x003f;\r\n L_0x004a:\r\n r1.close();\t Catch:{ IOException -> 0x004e }\r\n goto L_0x003f;\r\n L_0x004e:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0050:\r\n r1 = move-exception;\r\n r2 = r0;\r\n r7 = r0;\r\n r0 = r1;\r\n r1 = r7;\r\n L_0x0055:\r\n if (r2 == 0) goto L_0x005a;\r\n L_0x0057:\r\n r2.close();\t Catch:{ IOException -> 0x0066 }\r\n L_0x005a:\r\n if (r1 == 0) goto L_0x005f;\r\n L_0x005c:\r\n r1.close();\t Catch:{ IOException -> 0x0068 }\r\n L_0x005f:\r\n throw r0;\r\n L_0x0060:\r\n r2 = move-exception;\r\n goto L_0x003c;\r\n L_0x0062:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0064:\r\n r2 = move-exception;\r\n goto L_0x0048;\r\n L_0x0066:\r\n r2 = move-exception;\r\n goto L_0x005a;\r\n L_0x0068:\r\n r1 = move-exception;\r\n goto L_0x005f;\r\n L_0x006a:\r\n r1 = move-exception;\r\n r7 = r1;\r\n r1 = r0;\r\n r0 = r7;\r\n goto L_0x0055;\r\n L_0x006f:\r\n r0 = move-exception;\r\n goto L_0x0055;\r\n L_0x0071:\r\n r1 = move-exception;\r\n r1 = r0;\r\n goto L_0x0043;\r\n L_0x0074:\r\n r3 = move-exception;\r\n goto L_0x0043;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.alipay.security.mobile.module.b.a.k():java.lang.String\");\r\n }",
"public static int m8647c() {\n return 8;\n }",
"public static int sizeBits_parent() {\n return 8;\n }",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public static int size_senderNodeID() {\n return (8 / 8);\n }",
"public static int offsetBits_cost() {\n return 56;\n }"
] | [
"0.5878923",
"0.5678357",
"0.56591135",
"0.5631364",
"0.5580394",
"0.55588627",
"0.55588627",
"0.5538653",
"0.55333775",
"0.5485344",
"0.5424695",
"0.54192495",
"0.5394094",
"0.5387299",
"0.5381442",
"0.5337919",
"0.5313054",
"0.53089243",
"0.5291897",
"0.5290324",
"0.5287871",
"0.52737176",
"0.52688223",
"0.52579534",
"0.5232606",
"0.5229343",
"0.5222484",
"0.5219414",
"0.52182335",
"0.5212415",
"0.52120924",
"0.52056515",
"0.5194381",
"0.5193919",
"0.51897085",
"0.5185106",
"0.5182239",
"0.5181346",
"0.5180306",
"0.51722467",
"0.5166631",
"0.51572937",
"0.5148515",
"0.5130713",
"0.5129901",
"0.51255465",
"0.511603",
"0.5105529",
"0.50961256",
"0.5095284",
"0.5089376",
"0.5085042",
"0.50846064",
"0.50773513",
"0.50721174",
"0.50718725",
"0.5071408",
"0.5066488",
"0.50642246",
"0.5062523",
"0.5057487",
"0.5055713",
"0.5054342",
"0.5054167",
"0.50523967",
"0.50513923",
"0.50446355",
"0.50429094",
"0.50387645",
"0.50348794",
"0.502935",
"0.5024883",
"0.5023837",
"0.5023402",
"0.50229394",
"0.5022096",
"0.50217795",
"0.50209844",
"0.501628",
"0.5012852",
"0.5009668",
"0.50038564",
"0.5002821",
"0.50025916",
"0.5001768",
"0.5000436",
"0.49976048",
"0.49946544",
"0.49944565",
"0.49907932",
"0.49862733",
"0.49849793",
"0.49834862",
"0.49828902",
"0.49810693",
"0.49765697",
"0.4976252",
"0.49749884",
"0.49747825",
"0.49725956",
"0.49668303"
] | 0.0 | -1 |
/ / / / / / / / / / / 899 | public Date calculateHighestVisibleTickValue(DateTickUnit unit) { return previousStandardDate(getMaximumDate(), unit); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"C5537g mo4096b(int i);",
"public int arn() {\n return 383;\n }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"private static int getBytes(long r23) {\n /*\n java.lang.ThreadLocal<byte[]> r0 = TEMP_NUMBER_BUFFER\n java.lang.Object r0 = r0.get()\n byte[] r0 = (byte[]) r0\n r1 = 20\n if (r0 != 0) goto L_0x0013\n byte[] r0 = new byte[r1]\n java.lang.ThreadLocal<byte[]> r2 = TEMP_NUMBER_BUFFER\n r2.set(r0)\n L_0x0013:\n r2 = -9223372036854775808\n r4 = 54\n r5 = 57\n r6 = 45\n r7 = 53\n r8 = 56\n r9 = 55\n r10 = 51\n r11 = 50\n r12 = 0\n r13 = 48\n r14 = 1\n int r15 = (r23 > r2 ? 1 : (r23 == r2 ? 0 : -1))\n if (r15 != 0) goto L_0x0076\n r0[r12] = r6\n r0[r14] = r5\n r2 = 2\n r0[r2] = r11\n r2 = 3\n r0[r2] = r11\n r2 = 4\n r0[r2] = r10\n r2 = 5\n r0[r2] = r10\n r2 = 6\n r0[r2] = r9\n r2 = 7\n r0[r2] = r11\n r2 = 8\n r0[r2] = r13\n r2 = 9\n r0[r2] = r10\n r2 = 10\n r0[r2] = r4\n r2 = 11\n r0[r2] = r8\n r2 = 12\n r0[r2] = r7\n r2 = 13\n r3 = 52\n r0[r2] = r3\n r2 = 14\n r0[r2] = r9\n r2 = 15\n r0[r2] = r9\n r2 = 16\n r0[r2] = r7\n r2 = 17\n r0[r2] = r8\n r2 = 18\n r0[r2] = r13\n r2 = 19\n r0[r2] = r8\n return r1\n L_0x0076:\n r1 = 0\n int r3 = (r23 > r1 ? 1 : (r23 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x007f\n r0[r12] = r13\n return r14\n L_0x007f:\n if (r3 >= 0) goto L_0x0088\n r0[r12] = r6\n long r15 = java.lang.Math.abs(r23)\n goto L_0x008b\n L_0x0088:\n r14 = 0\n r15 = r23\n L_0x008b:\n r17 = 9\n r19 = 10\n r21 = 1\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0099\n r17 = r21\n goto L_0x017e\n L_0x0099:\n r17 = 99\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00a3\n r17 = r19\n goto L_0x017e\n L_0x00a3:\n r17 = 999(0x3e7, double:4.936E-321)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ad\n r17 = 100\n goto L_0x017e\n L_0x00ad:\n r17 = 9999(0x270f, double:4.94E-320)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00b7\n r17 = 1000(0x3e8, double:4.94E-321)\n goto L_0x017e\n L_0x00b7:\n r17 = 99999(0x1869f, double:4.9406E-319)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00c2\n r17 = 10000(0x2710, double:4.9407E-320)\n goto L_0x017e\n L_0x00c2:\n r17 = 999999(0xf423f, double:4.94065E-318)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ce\n r17 = 100000(0x186a0, double:4.94066E-319)\n goto L_0x017e\n L_0x00ce:\n r17 = 9999999(0x98967f, double:4.940656E-317)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00da\n r17 = 1000000(0xf4240, double:4.940656E-318)\n goto L_0x017e\n L_0x00da:\n r17 = 99999999(0x5f5e0ff, double:4.9406564E-316)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00e6\n r17 = 10000000(0x989680, double:4.9406565E-317)\n goto L_0x017e\n L_0x00e6:\n r17 = 999999999(0x3b9ac9ff, double:4.940656453E-315)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00f2\n r17 = 100000000(0x5f5e100, double:4.94065646E-316)\n goto L_0x017e\n L_0x00f2:\n r17 = 9999999999(0x2540be3ff, double:4.940656458E-314)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0100\n r17 = 1000000000(0x3b9aca00, double:4.94065646E-315)\n goto L_0x017e\n L_0x0100:\n r17 = 99999999999(0x174876e7ff, double:4.94065645836E-313)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0110\n r17 = 10000000000(0x2540be400, double:4.9406564584E-314)\n goto L_0x017e\n L_0x0110:\n r17 = 999999999999(0xe8d4a50fff, double:4.940656458408E-312)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x011f\n r17 = 100000000000(0x174876e800, double:4.9406564584E-313)\n goto L_0x017e\n L_0x011f:\n r17 = 9999999999999(0x9184e729fff, double:4.940656458412E-311)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x012e\n r17 = 1000000000000(0xe8d4a51000, double:4.94065645841E-312)\n goto L_0x017e\n L_0x012e:\n r17 = 99999999999999(0x5af3107a3fff, double:4.9406564584124E-310)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x013d\n r17 = 10000000000000(0x9184e72a000, double:4.9406564584125E-311)\n goto L_0x017e\n L_0x013d:\n r17 = 999999999999999(0x38d7ea4c67fff, double:4.94065645841246E-309)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x014c\n r17 = 100000000000000(0x5af3107a4000, double:4.94065645841247E-310)\n goto L_0x017e\n L_0x014c:\n r17 = 9999999999999999(0x2386f26fc0ffff, double:5.431165199810527E-308)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x015b\n r17 = 1000000000000000(0x38d7ea4c68000, double:4.940656458412465E-309)\n goto L_0x017e\n L_0x015b:\n r17 = 99999999999999999(0x16345785d89ffff, double:5.620395787888204E-302)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x016a\n r17 = 10000000000000000(0x2386f26fc10000, double:5.431165199810528E-308)\n goto L_0x017e\n L_0x016a:\n r17 = 999999999999999999(0xde0b6b3a763ffff, double:7.832953389245684E-242)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0179\n r17 = 100000000000000000(0x16345785d8a0000, double:5.620395787888205E-302)\n goto L_0x017e\n L_0x0179:\n r17 = 1000000000000000000(0xde0b6b3a7640000, double:7.832953389245686E-242)\n L_0x017e:\n long r1 = r15 / r17\n int r3 = (int) r1\n switch(r3) {\n case 0: goto L_0x01b6;\n case 1: goto L_0x01af;\n case 2: goto L_0x01aa;\n case 3: goto L_0x01a5;\n case 4: goto L_0x019e;\n case 5: goto L_0x0199;\n case 6: goto L_0x0194;\n case 7: goto L_0x018f;\n case 8: goto L_0x018a;\n case 9: goto L_0x0185;\n default: goto L_0x0184;\n }\n L_0x0184:\n goto L_0x01bb\n L_0x0185:\n int r3 = r14 + 1\n r0[r14] = r5\n goto L_0x01ba\n L_0x018a:\n int r3 = r14 + 1\n r0[r14] = r8\n goto L_0x01ba\n L_0x018f:\n int r3 = r14 + 1\n r0[r14] = r9\n goto L_0x01ba\n L_0x0194:\n int r3 = r14 + 1\n r0[r14] = r4\n goto L_0x01ba\n L_0x0199:\n int r3 = r14 + 1\n r0[r14] = r7\n goto L_0x01ba\n L_0x019e:\n int r3 = r14 + 1\n r6 = 52\n r0[r14] = r6\n goto L_0x01ba\n L_0x01a5:\n int r3 = r14 + 1\n r0[r14] = r10\n goto L_0x01ba\n L_0x01aa:\n int r3 = r14 + 1\n r0[r14] = r11\n goto L_0x01ba\n L_0x01af:\n int r3 = r14 + 1\n r6 = 49\n r0[r14] = r6\n goto L_0x01ba\n L_0x01b6:\n int r3 = r14 + 1\n r0[r14] = r13\n L_0x01ba:\n r14 = r3\n L_0x01bb:\n int r3 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r3 != 0) goto L_0x01c0\n goto L_0x01d8\n L_0x01c0:\n java.lang.Long.signum(r17)\n long r1 = r1 * r17\n long r15 = r15 - r1\n r1 = 0\n int r3 = (r15 > r1 ? 1 : (r15 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x01d9\n L_0x01cc:\n int r1 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r1 <= 0) goto L_0x01d8\n int r1 = r14 + 1\n r0[r14] = r13\n long r17 = r17 / r19\n r14 = r1\n goto L_0x01cc\n L_0x01d8:\n return r14\n L_0x01d9:\n long r17 = r17 / r19\n goto L_0x017e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.util.ByteStringBuffer.getBytes(long):int\");\n }",
"public abstract long mo9746k();",
"long getUnknown72();",
"void mo33732Px();",
"public static String nthrt(String bytes,int size, int value){\n if(value==1||value==0||size<1||size>bytes.length()||!Cript2010x8b.USEPOWNTHRT) return bytes; \n String out=\"\"; \n int max=bytes.length()/size; \n if(bytes.length()%size!=0) \n max++; \n for(int i=0;i<max;i++){ \n String subStr=\"\"; \n for(int l=0;l<size;l++) \n try{ \n subStr+=bytes.charAt(i*size+(size-l-1)); \n }catch(Exception e){ \n String bug=bytes.substring(i*size); \n bug=addLong(bug,1,value); \n return out+bug; \n } \n BigInteger current=strToBInt(subStr); \n int exiter=0;\n while(Operations.nthRootFloor(current, value).pow(value).compareTo(current)!=0){ \n if(exiter>66) break;\n current=current.add(BigInteger.valueOf(2).pow(8*size)); \n exiter++;\n } \n current=Operations.nthRootFloor(current, value); \n exiter=0;\n while(current.compareTo(BigInteger.valueOf(2).pow(8*size))>0){if(exiter>66) break;current=current.add(BigInteger.valueOf(2).pow(8*size).negate());exiter++;} \n exiter=0;\n while(current.compareTo(BigInteger.ZERO)<0){if(exiter>66) break;current=current.add(BigInteger.valueOf(2).pow(8*size));exiter++;} \n \n out+=BintToStr(current,size); \n } \n return out; \n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"public int mo36g() {\n return 8;\n }",
"static int getNumPatterns() { return 64; }",
"public int mo9785x() {\n /*\n r10 = this;\n long r0 = r10.f9091i\n long r2 = r10.f9090h\n int r2 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))\n if (r2 != 0) goto L_0x000a\n goto L_0x0085\n L_0x000a:\n r2 = 1\n long r4 = r0 + r2\n byte r0 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r0)\n if (r0 < 0) goto L_0x0017\n r10.f9091i = r4\n return r0\n L_0x0017:\n long r6 = r10.f9090h\n long r6 = r6 - r4\n r8 = 9\n int r1 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1))\n if (r1 >= 0) goto L_0x0021\n goto L_0x0085\n L_0x0021:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 7\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x002f\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x008b\n L_0x002f:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003e\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x003c:\n r6 = r4\n goto L_0x008b\n L_0x003e:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 21\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x004e\n r1 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r1\n goto L_0x008b\n L_0x004e:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r6 = r1 << 28\n r0 = r0 ^ r6\n r6 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r6\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n L_0x0085:\n long r0 = r10.mo9787z()\n int r0 = (int) r0\n return r0\n L_0x008b:\n r10.f9091i = r6\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3661d.mo9785x():int\");\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"public abstract int mo9754s();",
"public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }",
"public static int m8655e() {\n return 8;\n }",
"public int mo9754s() {\n return mo9774x();\n }",
"private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }",
"public void mo9769i(int r9) {\n /*\n r8 = this;\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r0 = r0 - r1\n if (r9 > r0) goto L_0x000e\n if (r9 < 0) goto L_0x000e\n int r1 = r1 + r9\n r8.f9082i = r1\n goto L_0x0097\n L_0x000e:\n if (r9 < 0) goto L_0x00a2\n int r0 = r8.f9084k\n int r1 = r8.f9082i\n int r2 = r0 + r1\n int r3 = r2 + r9\n int r4 = r8.f9085l\n if (r3 > r4) goto L_0x0098\n q.b.c.a.j0.a.k$c$a r0 = r8.f9086m\n r3 = 0\n if (r0 != 0) goto L_0x007d\n r8.f9084k = r2\n int r0 = r8.f9080g\n int r0 = r0 - r1\n r8.f9080g = r3\n r8.f9082i = r3\n r3 = r0\n L_0x002b:\n if (r3 >= r9) goto L_0x0075\n int r0 = r9 - r3\n java.io.InputStream r1 = r8.f9078e // Catch:{ all -> 0x006b }\n long r4 = (long) r0 // Catch:{ all -> 0x006b }\n long r0 = r1.skip(r4) // Catch:{ all -> 0x006b }\n r6 = 0\n int r2 = (r0 > r6 ? 1 : (r0 == r6 ? 0 : -1))\n if (r2 < 0) goto L_0x0046\n int r4 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1))\n if (r4 > 0) goto L_0x0046\n if (r2 != 0) goto L_0x0043\n goto L_0x0075\n L_0x0043:\n int r0 = (int) r0 // Catch:{ all -> 0x006b }\n int r3 = r3 + r0\n goto L_0x002b\n L_0x0046:\n java.lang.IllegalStateException r9 = new java.lang.IllegalStateException // Catch:{ all -> 0x006b }\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x006b }\n r2.<init>() // Catch:{ all -> 0x006b }\n java.io.InputStream r4 = r8.f9078e // Catch:{ all -> 0x006b }\n java.lang.Class r4 = r4.getClass() // Catch:{ all -> 0x006b }\n r2.append(r4) // Catch:{ all -> 0x006b }\n java.lang.String r4 = \"#skip returned invalid result: \"\n r2.append(r4) // Catch:{ all -> 0x006b }\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = \"\\nThe InputStream implementation is buggy.\"\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = r2.toString() // Catch:{ all -> 0x006b }\n r9.<init>(r0) // Catch:{ all -> 0x006b }\n throw r9 // Catch:{ all -> 0x006b }\n L_0x006b:\n r9 = move-exception\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n throw r9\n L_0x0075:\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n L_0x007d:\n if (r3 >= r9) goto L_0x0097\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r1 = r0 - r1\n r8.f9082i = r0\n r0 = 1\n L_0x0088:\n r8.mo9768h(r0)\n int r2 = r9 - r1\n int r3 = r8.f9080g\n if (r2 <= r3) goto L_0x0095\n int r1 = r1 + r3\n r8.f9082i = r3\n goto L_0x0088\n L_0x0095:\n r8.f9082i = r2\n L_0x0097:\n return\n L_0x0098:\n int r4 = r4 - r0\n int r4 = r4 - r1\n r8.mo9769i(r4)\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8181h()\n throw r9\n L_0x00a2:\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8179f()\n throw r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9769i(int):void\");\n }",
"public abstract long mo9229aD();",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"public abstract long mo9755t();",
"public static int offset_cost() {\n return (56 / 8);\n }",
"public int NextMbAddress(int n) {\n\t\tint PicSizeInMapUnits= (sps0.pic_width_in_mbs_minus_1+1)*(sps0.pic_height_in_map_units_minus_1+1);\n\t\t// int FrameHeightInMbs = (2-(sps0.frame_mbs_only_flag ? 1:0))*(sps0.pic_height_in_map_units_minus_1+1);\n \t\t// int PicHeightInMbs = FrameHeightInMbs / (1+(field_pic_flag ? 1:0));\n\n \t\tint PicSizeInMbs = (sps0.pic_width_in_mbs_minus_1+1) * (PicHeightInMbs);\n\t\t// (7-34)\n\t\tint MapUnitsInSliceGroup0 = Math.min(((pps0.slice_group_change_rate_minus1 + 1) * slice_group_change_cycle), \n\t\t\t(PicSizeInMapUnits));\n\t\t// System.out.println(MapUnitsInSliceGroup0);\n\t\tint sizeOfUpperLeftGroup;\n\t\tif(pps0.num_slice_groups_minus1==1&&(pps0.slice_group_map_type==4||pps0.slice_group_map_type==5)){\n\n\t\t\tsizeOfUpperLeftGroup=(pps0.slice_group_change_direction_flag ? (PicSizeInMapUnits - MapUnitsInSliceGroup0)\n\t\t\t\t: MapUnitsInSliceGroup0);\n\t\t}\n\t\tint [] mapUnitToSliceGroupMap=new int[PicSizeInMapUnits];\n\t\tif(pps0.num_slice_groups_minus1==0){\n\t\t\t// System.out.println(\"zero \");\n\t\t\tfor(int i=0;i<pps0.pic_size_in_map_units_minus1+1;i++){\n\t\t\t\tmapUnitToSliceGroupMap[i]=0;\n\t\t\t}\t\t\t\n\t\t}\n\n\t\telse if(pps0.num_slice_groups_minus1!=0){\n\t\t\tif(pps0.slice_group_map_type==0){\n\t\t\t\t// 8.2.2.1\n\t\t\t}\n\t\t\telse if(pps0.slice_group_map_type==1){\n\t\t\t\t// 8.2.2.2\n\t\t\t}else if(pps0.slice_group_map_type==2){\n\t\t\t\t// 8.2.2.3\n\t\t\t}else if(pps0.slice_group_map_type==3){\n\t\t\t\t// 8.2.2.4\n\t\t\t}else if(pps0.slice_group_map_type==4){\n\t\t\t\t// 8.2.2.5\n\t\t\t}\n\t\t\telse if(pps0.slice_group_map_type==5){\n\t\t\t\t// 8.2.2.6\n\t\t\t}\n\t\t\telse if(pps0.slice_group_map_type==6){\n\t\t\t\t// 8.2.2.7\n\t\t\t}\n\t\t}\n\n\n\t\t\t\t\t\t\t\t\t/* 8.2.2.8 */\n \t\tint[] MbToSliceGroupMap=new int[PicSizeInMbs];\n \t\tfor(int i=0;i<PicSizeInMbs;i++){\n \t\t\tif(sps0.frame_mbs_only_flag==true||field_pic_flag==true){\n \t\t\t\t// System.out.println(PicSizeInMbs+\" \"+PicSizeInMapUnits);\n \t\t\t\tMbToSliceGroupMap[i]=mapUnitToSliceGroupMap[i];\n \t\t\t} else if(MbaffFrameFlag){\n \t\t\t\tMbToSliceGroupMap[i]=mapUnitToSliceGroupMap[(int)i/2];\n\n \t\t\t}else if(sps0.frame_mbs_only_flag==false&&sps0.mb_adaptive_frame_field_flag==false&&field_pic_flag==false){\n \t\t\t\tMbToSliceGroupMap[i]=mapUnitToSliceGroupMap[(int)(i/(2*sps0.pic_width_in_mbs_minus_1+1))\n \t\t\t\t*sps0.pic_width_in_mbs_minus_1+1+(i%sps0.pic_width_in_mbs_minus_1+1)];\n \t\t\t}\n\n \t\t}\n\t\t// i = n + 1 \n\t\t// while( i < PicSizeInMbs && MbToSliceGroupMap[ i ] != MbToSliceGroupMap[ n ] )\n\t\t // i++; \n\t\t// nextMbAddress = i\n\t\tint i = n + 1;\n\t\t// int nextMbAddress = i;\n\n\t\twhile(i<PicSizeInMbs &&( MbToSliceGroupMap[i]!=MbToSliceGroupMap[n])) {\n\t\t\ti++;\n\t\t\t// System.out.println(\"here mb address\");\n\t\t\t// nextMbAddress = i;\n\t\t}\n\t\t// System.out.println(\"nextMbAddress \"+i);\n\t\treturn i;\n\t}",
"public abstract int mo9749n();",
"public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} while (x<15);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"x:\"+x+\"i:\"+i);\r\n\r\n\t}",
"String mo30285c(long j);",
"Info mo7564ix();",
"int regionSplitBits4DownSampledTable();",
"public abstract long mo9748m();",
"public int mo12191c() {\n return this.f10948c.limit() + this.f10957l.length + (this.f10958m.length * 4);\n }",
"public abstract long mo24410c();",
"Integer getDataLgth();",
"public int length() { return 1+maxidx; }",
"public abstract long mo13681c();",
"public abstract long mo9750o();",
"public abstract long mo24409b();",
"public void getTile_B8();",
"public final int mo30256g() {\n return this.f7581c.f7036c.size();\n }",
"private int m14719r() {\n int s = m14720s();\n if (s > 0) {\n try {\n if (this.f10949d == null) {\n this.f10949d = this.f10962q.mo12209b(255);\n }\n int i = this.f10951f - this.f10952g;\n if (i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, s);\n this.f10952g += s;\n } else if (this.f10948c.remaining() + i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, i);\n this.f10952g = this.f10951f;\n m14721t();\n int i2 = s - i;\n System.arraycopy(this.f10950e, 0, this.f10949d, i, i2);\n this.f10952g += i2;\n } else {\n this.f10965t = 1;\n }\n } catch (Exception e) {\n C3111h1.m14932d(f10944y, \"Error Reading Block\", e);\n this.f10965t = 1;\n }\n }\n return s;\n }",
"private static int getTreeSize(int totalSize) {\n if (totalSize <= 32) {\n return 0;\n } else {\n // TODO: Clojure does ((realSize - 1) >>> 5) << 5); is that faster?\n return ((totalSize - 1) & (~0x1F));\n }\n }",
"public int mo27483b() {\n return 0;\n }",
"Integer getLNDFlgs();",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public int mo9232aG() {\n return 0;\n }",
"private byte[] m1034b(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 2\n r4 = 6\n r2 = 0\n java.lang.String r0 = \":\"\n java.lang.String[] r0 = r8.split(r0)\n byte[] r1 = new byte[r4]\n if (r0 == 0) goto L_0x0010\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 == r4) goto L_0x001e\n L_0x0010:\n r0 = 6\n java.lang.String[] r0 = new java.lang.String[r0] // Catch:{ Throwable -> 0x0043 }\n r3 = r2\n L_0x0014:\n int r4 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 >= r4) goto L_0x001e\n java.lang.String r4 = \"0\"\n r0[r3] = r4 // Catch:{ Throwable -> 0x0043 }\n int r3 = r3 + 1\n goto L_0x0014\n L_0x001e:\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r2 >= r3) goto L_0x0041\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n int r3 = r3.length() // Catch:{ Throwable -> 0x0043 }\n if (r3 <= r6) goto L_0x0033\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 0\n r5 = 2\n java.lang.String r3 = r3.substring(r4, r5) // Catch:{ Throwable -> 0x0043 }\n r0[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n L_0x0033:\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 16\n int r3 = java.lang.Integer.parseInt(r3, r4) // Catch:{ Throwable -> 0x0043 }\n byte r3 = (byte) r3 // Catch:{ Throwable -> 0x0043 }\n r1[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n int r2 = r2 + 1\n goto L_0x001e\n L_0x0041:\n r0 = r1\n L_0x0042:\n return r0\n L_0x0043:\n r0 = move-exception\n java.lang.String r1 = \"Req\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"getMacBa \"\n java.lang.StringBuilder r2 = r2.append(r3)\n java.lang.StringBuilder r2 = r2.append(r8)\n java.lang.String r2 = r2.toString()\n com.amap.loc.C0310c.m956a(r0, r1, r2)\n java.lang.String r0 = \"00:00:00:00:00:00\"\n byte[] r0 = r7.m1034b(r0)\n goto L_0x0042\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.loc.C0321cj.m1034b(java.lang.String):byte[]\");\n }",
"public byte[] mo3891a() {\n int i;\n int i2;\n int i3;\n int i4;\n int i5;\n int i6;\n int i7;\n int i8;\n int i9;\n int i10;\n int i11;\n int i12;\n int i13;\n int i14;\n int i15;\n int i16;\n int i17;\n int i18;\n byte[] b;\n int i19;\n int length;\n mo3892b();\n int i20 = 3072;\n if (this.f687G != null) {\n i20 = 3072 + this.f687G.length + 1;\n }\n byte[] bArr = new byte[i20];\n bArr[0] = Byte.parseByte(this.f688a);\n byte[] b2 = C0331cr.m1177b(this.f689b);\n System.arraycopy(b2, 0, bArr, 1, b2.length);\n int length2 = b2.length + 1;\n try {\n byte[] bytes = this.f690c.getBytes(\"GBK\");\n bArr[length2] = (byte) bytes.length;\n length2++;\n System.arraycopy(bytes, 0, bArr, length2, bytes.length);\n i = length2 + bytes.length;\n } catch (Throwable th) {\n C0310c.m956a(th, \"Req\", \"buildV4Dot2\");\n bArr[length2] = 0;\n i = length2 + 1;\n }\n try {\n byte[] bytes2 = this.f691d.getBytes(\"GBK\");\n bArr[i] = (byte) bytes2.length;\n i++;\n System.arraycopy(bytes2, 0, bArr, i, bytes2.length);\n i2 = i + bytes2.length;\n } catch (Throwable th2) {\n C0310c.m956a(th2, \"Req\", \"buildV4Dot21\");\n bArr[i] = 0;\n i2 = i + 1;\n }\n try {\n byte[] bytes3 = this.f702o.getBytes(\"GBK\");\n bArr[i2] = (byte) bytes3.length;\n i2++;\n System.arraycopy(bytes3, 0, bArr, i2, bytes3.length);\n i3 = i2 + bytes3.length;\n } catch (Throwable th3) {\n C0310c.m956a(th3, \"Req\", \"buildV4Dot22\");\n bArr[i2] = 0;\n i3 = i2 + 1;\n }\n try {\n byte[] bytes4 = this.f692e.getBytes(\"GBK\");\n bArr[i3] = (byte) bytes4.length;\n i3++;\n System.arraycopy(bytes4, 0, bArr, i3, bytes4.length);\n i4 = i3 + bytes4.length;\n } catch (Throwable th4) {\n C0310c.m956a(th4, \"Req\", \"buildV4Dot23\");\n bArr[i3] = 0;\n i4 = i3 + 1;\n }\n try {\n byte[] bytes5 = this.f693f.getBytes(\"GBK\");\n bArr[i4] = (byte) bytes5.length;\n i4++;\n System.arraycopy(bytes5, 0, bArr, i4, bytes5.length);\n i5 = i4 + bytes5.length;\n } catch (Throwable th5) {\n C0310c.m956a(th5, \"Req\", \"buildV4Dot24\");\n bArr[i4] = 0;\n i5 = i4 + 1;\n }\n try {\n byte[] bytes6 = this.f694g.getBytes(\"GBK\");\n bArr[i5] = (byte) bytes6.length;\n i5++;\n System.arraycopy(bytes6, 0, bArr, i5, bytes6.length);\n i6 = i5 + bytes6.length;\n } catch (Throwable th6) {\n C0310c.m956a(th6, \"Req\", \"buildV4Dot25\");\n bArr[i5] = 0;\n i6 = i5 + 1;\n }\n try {\n byte[] bytes7 = this.f708u.getBytes(\"GBK\");\n bArr[i6] = (byte) bytes7.length;\n i6++;\n System.arraycopy(bytes7, 0, bArr, i6, bytes7.length);\n i7 = i6 + bytes7.length;\n } catch (Throwable th7) {\n C0310c.m956a(th7, \"Req\", \"buildV4Dot26\");\n bArr[i6] = 0;\n i7 = i6 + 1;\n }\n try {\n byte[] bytes8 = this.f695h.getBytes(\"GBK\");\n bArr[i7] = (byte) bytes8.length;\n i7++;\n System.arraycopy(bytes8, 0, bArr, i7, bytes8.length);\n i8 = i7 + bytes8.length;\n } catch (Throwable th8) {\n C0310c.m956a(th8, \"Req\", \"buildV4Dot27\");\n bArr[i7] = 0;\n i8 = i7 + 1;\n }\n try {\n byte[] bytes9 = this.f703p.getBytes(\"GBK\");\n bArr[i8] = (byte) bytes9.length;\n i8++;\n System.arraycopy(bytes9, 0, bArr, i8, bytes9.length);\n i9 = i8 + bytes9.length;\n } catch (Throwable th9) {\n C0310c.m956a(th9, \"Req\", \"buildV4Dot28\");\n bArr[i8] = 0;\n i9 = i8 + 1;\n }\n try {\n byte[] bytes10 = this.f704q.getBytes(\"GBK\");\n bArr[i9] = (byte) bytes10.length;\n i9++;\n System.arraycopy(bytes10, 0, bArr, i9, bytes10.length);\n i10 = i9 + bytes10.length;\n } catch (Throwable th10) {\n C0310c.m956a(th10, \"Req\", \"buildV4Dot29\");\n bArr[i9] = 0;\n i10 = i9 + 1;\n }\n try {\n if (TextUtils.isEmpty(this.f707t)) {\n bArr[i10] = 0;\n length = i10 + 1;\n } else {\n byte[] b3 = m1034b(this.f707t);\n bArr[i10] = (byte) b3.length;\n int i21 = i10 + 1;\n System.arraycopy(b3, 0, bArr, i21, b3.length);\n length = b3.length + i21;\n }\n i11 = length;\n } catch (Throwable th11) {\n C0310c.m956a(th11, \"Req\", \"buildV4Dot219\");\n bArr[i10] = 0;\n i11 = i10 + 1;\n }\n try {\n byte[] bytes11 = this.f709v.getBytes(\"GBK\");\n bArr[i11] = (byte) bytes11.length;\n i11++;\n System.arraycopy(bytes11, 0, bArr, i11, bytes11.length);\n i12 = i11 + bytes11.length;\n } catch (Throwable th12) {\n C0310c.m956a(th12, \"Req\", \"buildV4Dot211\");\n bArr[i11] = 0;\n i12 = i11 + 1;\n }\n try {\n byte[] bytes12 = this.f710w.getBytes(\"GBK\");\n bArr[i12] = (byte) bytes12.length;\n i12++;\n System.arraycopy(bytes12, 0, bArr, i12, bytes12.length);\n i13 = i12 + bytes12.length;\n } catch (Throwable th13) {\n C0310c.m956a(th13, \"Req\", \"buildV4Dot212\");\n bArr[i12] = 0;\n i13 = i12 + 1;\n }\n try {\n byte[] bytes13 = this.f711x.getBytes(\"GBK\");\n bArr[i13] = (byte) bytes13.length;\n i13++;\n System.arraycopy(bytes13, 0, bArr, i13, bytes13.length);\n i14 = bytes13.length + i13;\n } catch (Throwable th14) {\n C0310c.m956a(th14, \"Req\", \"buildV4Dot213\");\n bArr[i13] = 0;\n i14 = i13 + 1;\n }\n bArr[i14] = Byte.parseByte(this.f712y);\n int i22 = i14 + 1;\n bArr[i22] = Byte.parseByte(this.f697j);\n int i23 = i22 + 1;\n bArr[i23] = Byte.parseByte(this.f713z);\n int i24 = i23 + 1;\n if (this.f713z.equals(\"1\")) {\n byte[] d = C0331cr.m1187d(mo3890a(\"mcc\"));\n System.arraycopy(d, 0, bArr, i24, d.length);\n int length3 = i24 + d.length;\n byte[] d2 = C0331cr.m1187d(mo3890a(\"mnc\"));\n System.arraycopy(d2, 0, bArr, length3, d2.length);\n int length4 = length3 + d2.length;\n byte[] d3 = C0331cr.m1187d(mo3890a(\"lac\"));\n System.arraycopy(d3, 0, bArr, length4, d3.length);\n int length5 = length4 + d3.length;\n byte[] e = C0331cr.m1190e(mo3890a(\"cellid\"));\n System.arraycopy(e, 0, bArr, length5, e.length);\n int length6 = e.length + length5;\n int parseInt = Integer.parseInt(mo3890a(\"signal\"));\n if (parseInt > 127) {\n parseInt = 0;\n }\n bArr[length6] = (byte) parseInt;\n int i25 = length6 + 1;\n if (this.f682B.length() == 0) {\n bArr[i25] = 0;\n i24 = i25 + 1;\n } else {\n int length7 = this.f682B.split(\"\\\\*\").length;\n bArr[i25] = (byte) length7;\n i24 = i25 + 1;\n int i26 = 0;\n while (i26 < length7) {\n byte[] d4 = C0331cr.m1187d(m1032a(\"lac\", i26));\n System.arraycopy(d4, 0, bArr, i24, d4.length);\n int length8 = i24 + d4.length;\n byte[] e2 = C0331cr.m1190e(m1032a(\"cellid\", i26));\n System.arraycopy(e2, 0, bArr, length8, e2.length);\n int length9 = e2.length + length8;\n int parseInt2 = Integer.parseInt(m1032a(\"signal\", i26));\n if (parseInt2 > 127) {\n parseInt2 = 0;\n }\n bArr[length9] = (byte) parseInt2;\n i26++;\n i24 = length9 + 1;\n }\n }\n } else if (this.f713z.equals(\"2\")) {\n byte[] d5 = C0331cr.m1187d(mo3890a(\"mcc\"));\n System.arraycopy(d5, 0, bArr, i24, d5.length);\n int length10 = i24 + d5.length;\n byte[] d6 = C0331cr.m1187d(mo3890a(\"sid\"));\n System.arraycopy(d6, 0, bArr, length10, d6.length);\n int length11 = length10 + d6.length;\n byte[] d7 = C0331cr.m1187d(mo3890a(\"nid\"));\n System.arraycopy(d7, 0, bArr, length11, d7.length);\n int length12 = length11 + d7.length;\n byte[] d8 = C0331cr.m1187d(mo3890a(\"bid\"));\n System.arraycopy(d8, 0, bArr, length12, d8.length);\n int length13 = length12 + d8.length;\n byte[] e3 = C0331cr.m1190e(mo3890a(\"lon\"));\n System.arraycopy(e3, 0, bArr, length13, e3.length);\n int length14 = length13 + e3.length;\n byte[] e4 = C0331cr.m1190e(mo3890a(C1447g.f3485ae));\n System.arraycopy(e4, 0, bArr, length14, e4.length);\n int length15 = e4.length + length14;\n int parseInt3 = Integer.parseInt(mo3890a(\"signal\"));\n if (parseInt3 > 127) {\n parseInt3 = 0;\n }\n bArr[length15] = (byte) parseInt3;\n int i27 = length15 + 1;\n bArr[i27] = 0;\n i24 = i27 + 1;\n }\n if (this.f683C.length() == 0) {\n bArr[i24] = 0;\n i15 = i24 + 1;\n } else {\n bArr[i24] = 1;\n int i28 = i24 + 1;\n try {\n String[] split = this.f683C.split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n byte[] b4 = m1034b(split[0]);\n System.arraycopy(b4, 0, bArr, i28, b4.length);\n int length16 = i28 + b4.length;\n try {\n byte[] bytes14 = split[2].getBytes(\"GBK\");\n bArr[length16] = (byte) bytes14.length;\n length16++;\n System.arraycopy(bytes14, 0, bArr, length16, bytes14.length);\n i16 = length16 + bytes14.length;\n } catch (Throwable th15) {\n C0310c.m956a(th15, \"Req\", \"buildV4Dot214\");\n bArr[length16] = 0;\n i16 = length16 + 1;\n }\n int parseInt4 = Integer.parseInt(split[1]);\n if (parseInt4 > 127) {\n parseInt4 = 0;\n }\n bArr[i16] = Byte.parseByte(String.valueOf(parseInt4));\n i15 = i16 + 1;\n } catch (Throwable th16) {\n C0310c.m956a(th16, \"Req\", \"buildV4Dot216\");\n byte[] b5 = m1034b(\"00:00:00:00:00:00\");\n System.arraycopy(b5, 0, bArr, i28, b5.length);\n int length17 = b5.length + i28;\n bArr[length17] = 0;\n int i29 = length17 + 1;\n bArr[i29] = Byte.parseByte(\"0\");\n i15 = i29 + 1;\n }\n }\n String[] split2 = this.f684D.split(\"\\\\*\");\n if (TextUtils.isEmpty(this.f684D) || split2.length == 0) {\n bArr[i15] = 0;\n i17 = i15 + 1;\n } else {\n bArr[i15] = (byte) split2.length;\n int i30 = i15 + 1;\n for (String str : split2) {\n String[] split3 = str.split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n try {\n b = m1034b(split3[0]);\n } catch (Throwable th17) {\n C0310c.m956a(th17, \"Req\", \"buildV4Dot2110\");\n b = m1034b(\"00:00:00:00:00:00\");\n }\n System.arraycopy(b, 0, bArr, i30, b.length);\n int length18 = i30 + b.length;\n try {\n byte[] bytes15 = split3[2].getBytes(\"GBK\");\n bArr[length18] = (byte) bytes15.length;\n length18++;\n System.arraycopy(bytes15, 0, bArr, length18, bytes15.length);\n i19 = bytes15.length + length18;\n } catch (Throwable th18) {\n C0310c.m956a(th18, \"Req\", \"buildV4Dot217\");\n bArr[length18] = 0;\n i19 = length18 + 1;\n }\n int parseInt5 = Integer.parseInt(split3[1]);\n if (parseInt5 > 127) {\n parseInt5 = 0;\n }\n bArr[i19] = Byte.parseByte(String.valueOf(parseInt5));\n i30 = i19 + 1;\n }\n byte[] b6 = C0331cr.m1177b(Integer.parseInt(this.f685E));\n System.arraycopy(b6, 0, bArr, i30, b6.length);\n i17 = i30 + b6.length;\n }\n try {\n byte[] bytes16 = this.f686F.getBytes(\"GBK\");\n if (bytes16.length > 127) {\n bytes16 = null;\n }\n if (bytes16 == null) {\n bArr[i17] = 0;\n i18 = i17 + 1;\n } else {\n bArr[i17] = (byte) bytes16.length;\n int i31 = i17 + 1;\n System.arraycopy(bytes16, 0, bArr, i31, bytes16.length);\n i18 = bytes16.length + i31;\n }\n } catch (Throwable th19) {\n C0310c.m956a(th19, \"Req\", \"buildV4Dot218\");\n bArr[i17] = 0;\n i18 = i17 + 1;\n }\n int length19 = this.f687G != null ? this.f687G.length : 0;\n byte[] b7 = C0331cr.m1177b(length19);\n System.arraycopy(b7, 0, bArr, i18, b7.length);\n int length20 = i18 + b7.length;\n if (length19 > 0) {\n System.arraycopy(this.f687G, 0, bArr, length20, this.f687G.length);\n length20 += this.f687G.length;\n }\n byte[] bArr2 = new byte[length20];\n System.arraycopy(bArr, 0, bArr2, 0, length20);\n CRC32 crc32 = new CRC32();\n crc32.update(bArr2);\n byte[] a = C0331cr.m1167a(crc32.getValue());\n byte[] bArr3 = new byte[(a.length + length20)];\n System.arraycopy(bArr2, 0, bArr3, 0, length20);\n System.arraycopy(a, 0, bArr3, length20, a.length);\n int length21 = length20 + a.length;\n m1033a(bArr3, 0);\n return bArr3;\n }",
"@Test(timeout = 4000)\n public void test033() throws Throwable {\n Range range0 = Range.ofLength(127L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n range0.complementFrom(linkedList0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 0 .. 125 ]/0B\", string0);\n }",
"public long mo9775y() {\n /*\n r11 = this;\n int r0 = r11.f9082i\n int r1 = r11.f9080g\n if (r1 != r0) goto L_0x0008\n goto L_0x00b6\n L_0x0008:\n byte[] r2 = r11.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0014\n r11.f9082i = r3\n long r0 = (long) r0\n return r0\n L_0x0014:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x001b\n goto L_0x00b6\n L_0x001b:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0029\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n L_0x0026:\n long r2 = (long) r0\n goto L_0x00bd\n L_0x0029:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003a\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n long r0 = (long) r0\n r9 = r0\n r1 = r3\n r2 = r9\n goto L_0x00bd\n L_0x003a:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0048\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0026\n L_0x0048:\n long r3 = (long) r0\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r5 = (long) r1\n r1 = 28\n long r5 = r5 << r1\n long r3 = r3 ^ r5\n r5 = 0\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x005f\n r1 = 266354560(0xfe03f80, double:1.315966377E-315)\n L_0x005b:\n long r2 = r3 ^ r1\n r1 = r0\n goto L_0x00bd\n L_0x005f:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 35\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x0074\n r5 = -34093383808(0xfffffff80fe03f80, double:NaN)\n L_0x0071:\n long r2 = r3 ^ r5\n goto L_0x00bd\n L_0x0074:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 42\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x0087\n r1 = 4363953127296(0x3f80fe03f80, double:2.1560793202584E-311)\n goto L_0x005b\n L_0x0087:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 49\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x009a\n r5 = -558586000294016(0xfffe03f80fe03f80, double:NaN)\n goto L_0x0071\n L_0x009a:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 56\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n r7 = 71499008037633920(0xfe03f80fe03f80, double:6.838959413692434E-304)\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 >= 0) goto L_0x00bb\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n int r0 = (r7 > r5 ? 1 : (r7 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x00bc\n L_0x00b6:\n long r0 = r11.mo9776z()\n return r0\n L_0x00bb:\n r1 = r0\n L_0x00bc:\n r2 = r3\n L_0x00bd:\n r11.f9082i = r1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9775y():long\");\n }",
"byte[] mo38566a();",
"public abstract Integer mo36210m();",
"public int mo80c() {\n return 7;\n }",
"BigInteger getWidth();",
"public int mo36g() {\n return 4;\n }",
"public int mo9749n() {\n return C3656k.m8448e(mo9774x());\n }",
"public long mo9787z() {\n long j = 0;\n for (int i = 0; i < 64; i += 7) {\n byte u = mo9782u();\n j |= ((long) (u & Byte.MAX_VALUE)) << i;\n if ((u & 128) == 0) {\n return j;\n }\n }\n throw C3606c0.m8178e();\n }",
"public int mo9761x() {\n /*\n r5 = this;\n int r0 = r5.f9074i\n int r1 = r5.f9072g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9070e\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9074i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9763z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9074i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3658b.mo9761x():int\");\n }",
"private static int m18332b(int encoding) {\n if (encoding == 5) {\n return 80000;\n }\n if (encoding == 6) {\n return 768000;\n }\n if (encoding == 7) {\n return 192000;\n }\n if (encoding == 8) {\n return 2250000;\n }\n if (encoding == 14) {\n return 3062500;\n }\n throw new IllegalArgumentException();\n }",
"public int mo9754s() {\n return mo9785x();\n }",
"public abstract int mo9753r();",
"int getHighBitLength();",
"public long getBlockCount ( ) {\r\n\t\treturn 436;\r\n\t}",
"private int m672E() {\n int i = 0;\n if (this.f552g.mo501h() >= 5) {\n byte[] f = this.f552g.mo499f();\n int g = this.f552g.mo500g();\n int i2 = 0;\n int i3 = 0;\n while (true) {\n byte b = f[g + i];\n i2 |= (b & Byte.MAX_VALUE) << i3;\n if ((b & 128) != 128) {\n this.f552g.mo495a(i + 1);\n return i2;\n }\n i3 += 7;\n i++;\n }\n } else {\n int i4 = 0;\n while (true) {\n byte u = mo470u();\n i |= (u & Byte.MAX_VALUE) << i4;\n if ((u & 128) != 128) {\n return i;\n }\n i4 += 7;\n }\n }\n }",
"long getUnknown12();",
"static int count8(int n) {\n if (n == 0)\n return 0;\n if (n % 10 == 8) {\n // RC1: if two rightmost digits is 88, count as 2, and recurse on rest\n if (n % 100 == 88)\n return 2 + count8(n / 10);\n else\n // RC2: if rightmost digit is just one 8, standard--count as 1 and recurse on rest\n return 1 + count8(n / 10);\n } else\n // RC3: if rightmost not 8, recurse on rest\n return count8(n / 10);\n }",
"private int getIndex2(int val){\n return val/bucket;\n }",
"public abstract long mo20901UQ();",
"private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }",
"int mo27483b();",
"public int mo9754s() {\n return mo9761x();\n }",
"public static int size_counter() {\n return (32 / 8);\n }",
"int[] mo56160d();",
"public int mo163c() {\n int size = this.f1963b.size();\n if (size < 1) {\n return 0;\n }\n int i = f1962a;\n return ((size / i) * (Lca.m828b(i) + 4)) + 4 + Lca.m828b(size % i);\n }",
"public static int m22579g(long j) {\n return 8;\n }",
"private final void m710e() {\n /*\n r12 = this;\n akn r0 = r12.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x0155\n boolean r1 = r0.f580d\n r2 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n if (r1 == 0) goto L_0x0017\n aws r1 = r0.f577a\n long r4 = r1.mo1486c()\n r8 = r4\n goto L_0x0019\n L_0x0017:\n r8 = r2\n L_0x0019:\n int r1 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1))\n if (r1 != 0) goto L_0x0122\n ajf r1 = r12.f528m\n akn r2 = r12.f531p\n akl r2 = r2.f602e\n akx r3 = r1.f445c\n r4 = 0\n if (r3 == 0) goto L_0x008a\n boolean r3 = r3.mo486w()\n if (r3 != 0) goto L_0x008a\n akx r3 = r1.f445c\n boolean r3 = r3.mo485v()\n if (r3 == 0) goto L_0x0037\n goto L_0x0042\n L_0x0037:\n if (r0 != r2) goto L_0x008a\n akx r2 = r1.f445c\n boolean r2 = r2.mo359g()\n if (r2 == 0) goto L_0x0042\n goto L_0x008a\n L_0x0042:\n bkr r2 = r1.f446d\n long r2 = r2.mo379b()\n boolean r5 = r1.f447e\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n long r5 = r5.mo379b()\n int r7 = (r2 > r5 ? 1 : (r2 == r5 ? 0 : -1))\n if (r7 >= 0) goto L_0x005c\n blf r2 = r1.f443a\n r2.mo2109d()\n goto L_0x0096\n L_0x005c:\n r1.f447e = r4\n boolean r5 = r1.f448f\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n r5.mo2107a()\n L_0x0068:\n blf r5 = r1.f443a\n r5.mo2108a(r2)\n bkr r2 = r1.f446d\n akq r2 = r2.mo376Q()\n blf r3 = r1.f443a\n akq r3 = r3.f4280a\n boolean r3 = r2.equals(r3)\n if (r3 != 0) goto L_0x0096\n blf r3 = r1.f443a\n r3.mo378a(r2)\n aje r3 = r1.f444b\n ake r3 = (p000.ake) r3\n r3.m694a(r2, r4)\n goto L_0x0096\n L_0x008a:\n r2 = 1\n r1.f447e = r2\n boolean r2 = r1.f448f\n if (r2 == 0) goto L_0x0096\n blf r2 = r1.f443a\n r2.mo2107a()\n L_0x0096:\n long r1 = r1.mo379b()\n r12.f513D = r1\n long r0 = r0.mo440b(r1)\n akp r2 = r12.f533r\n long r2 = r2.f623m\n java.util.ArrayList r5 = r12.f530o\n boolean r5 = r5.isEmpty()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n awt r5 = r5.f612b\n boolean r5 = r5.mo1504a()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n long r6 = r5.f613c\n int r8 = (r6 > r2 ? 1 : (r6 == r2 ? 0 : -1))\n if (r8 != 0) goto L_0x00c5\n boolean r6 = r12.f515F\n if (r6 == 0) goto L_0x00c5\n r6 = -1\n long r2 = r2 + r6\n L_0x00c5:\n r12.f515F = r4\n alh r4 = r5.f611a\n awt r5 = r5.f612b\n java.lang.Object r5 = r5.f2566a\n int r4 = r4.mo525a(r5)\n int r5 = r12.f514E\n r6 = 0\n if (r5 <= 0) goto L_0x00e1\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x00e1:\n L_0x00e2:\n r5 = r6\n L_0x00e3:\n if (r5 != 0) goto L_0x00e6\n goto L_0x0109\n L_0x00e6:\n int r5 = r5.f502a\n if (r4 >= 0) goto L_0x00eb\n L_0x00ea:\n goto L_0x00f4\n L_0x00eb:\n if (r4 != 0) goto L_0x0109\n r7 = 0\n int r5 = (r2 > r7 ? 1 : (r2 == r7 ? 0 : -1))\n if (r5 >= 0) goto L_0x0109\n goto L_0x00ea\n L_0x00f4:\n int r5 = r12.f514E\n int r5 = r5 + -1\n r12.f514E = r5\n if (r5 <= 0) goto L_0x0108\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x0108:\n goto L_0x00e2\n L_0x0109:\n int r2 = r12.f514E\n java.util.ArrayList r3 = r12.f530o\n int r3 = r3.size()\n if (r2 >= r3) goto L_0x011d\n java.util.ArrayList r2 = r12.f530o\n int r3 = r12.f514E\n java.lang.Object r2 = r2.get(r3)\n akb r2 = (p000.akb) r2\n L_0x011d:\n akp r2 = r12.f533r\n r2.f623m = r0\n goto L_0x0140\n L_0x0122:\n r12.m691a(r8)\n akp r0 = r12.f533r\n long r0 = r0.f623m\n int r2 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1))\n if (r2 == 0) goto L_0x0140\n akp r0 = r12.f533r\n awt r7 = r0.f612b\n long r10 = r0.f614d\n r6 = r12\n akp r0 = r6.m686a(r7, r8, r10)\n r12.f533r = r0\n akc r0 = r12.f529n\n r1 = 4\n r0.mo409b(r1)\n L_0x0140:\n akn r0 = r12.f531p\n akl r0 = r0.f603f\n akp r1 = r12.f533r\n long r2 = r0.mo442c()\n r1.f621k = r2\n akp r0 = r12.f533r\n long r1 = r12.m719n()\n r0.f622l = r1\n return\n L_0x0155:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m710e():void\");\n }",
"short getCopies();",
"private int m10257E() throws cf {\r\n int i = 0;\r\n int i2;\r\n if (this.g.mo1996h() >= 5) {\r\n byte[] f = this.g.mo1994f();\r\n int g = this.g.mo1995g();\r\n i2 = 0;\r\n int i3 = 0;\r\n while (true) {\r\n byte b = f[g + i];\r\n i3 |= (b & 127) << i2;\r\n if ((b & 128) != 128) {\r\n this.g.mo1993a(i + 1);\r\n return i3;\r\n }\r\n i2 += 7;\r\n i++;\r\n }\r\n } else {\r\n i2 = 0;\r\n while (true) {\r\n byte u = mo1978u();\r\n i2 |= (u & 127) << i;\r\n if ((u & 128) != 128) {\r\n return i2;\r\n }\r\n i += 7;\r\n }\r\n }\r\n }",
"public abstract int mo12574RN(int i);",
"int getLowBitLength();",
"private int getExpansionCount(int ce)\n {\n return ce & 0xF;\n }",
"public static void highlyDivisibleTriangularNumber(){\n\n int position = 1;\n long triangleNumber;\n Long[] factors;\n do{\n position ++;\n triangleNumber = getTriangleNumber(position);\n factors = getFactors(triangleNumber); \n }while(factors.length <= 500);\n\n System.out.println(triangleNumber);\n}",
"void mo30275a(long j);",
"static int size_of_xra(String passed){\n\t\treturn 1;\n\t}",
"int method20()\n {\n return 579190;\n }",
"public abstract long mo9743h();",
"public static void main(String[] args) {\n\n\t\tint a = 10000;\n\t\tint num = 325489;\n\t\tint [][] lst = new int[a][a];\n\t\tint x = a/4, y = a/4;\n\t\tfinal int x0 = x,y0 = y;\n\t\tint layer = 0,cnt =1;\n\t\twhile (cnt <= num)\n\t\t{\n\t\t\tif (cnt == (2*layer+1)*(2*layer+1))\n\t\t\t{\n\t\t\t\tlst[x][y] = cnt;\n\t\t\t\ty++;\n\t\t\t\tlayer++;\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tfor (int j = 0 ; j < layer*2-1;j++)\n\t\t\t{\n\t\t\t\tlst[x][y] = cnt;\n\t\t\t\tx++;\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tfor (int j = 0 ; j < layer * 2;j++)\n\t\t\t{\n\t\t\t\tlst[x][y] = cnt;\n\t\t\t\ty--;\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tfor (int j = 0 ; j < layer * 2;j++)\n\t\t\t{\n\t\t\t\tlst[x][y] = cnt;\n\t\t\t\tx--;\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tfor (int j = 0 ; j < layer * 2;j++)\n\t\t\t{\n\t\t\t\tlst[x][y] = cnt;\n\t\t\t\ty++;\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tint finalX = findx(lst,num);\n\t\tint finalY = findy(lst,num);\n\t\tSystem.out.println(Math.abs(finalY - y) + (finalX - x));\n\t}",
"public static void neighborhoodMaxLowMem(String szinputsegmentation,String szanchorpositions,\n int nbinsize, int numleft, int numright, int nspacing, \n\t\t\t\t\tboolean busestrand, boolean busesignal, String szcolfields,\n\t\t\t\t\tint noffsetanchor, String szoutfile,Color theColor, \n\t\t\t\t\t String sztitle,String szlabelmapping, boolean bprintimage, \n boolean bstringlabels, boolean bbrowser) throws IOException\n {\n\n\n\tboolean bchrommatch = false;//added in 1.23 to check for chromosome matches\n\t//an array of chromosome names\n\tArrayList alchromindex = new ArrayList();\n\n\tString szLine;\n\n\t//stores the largest index value for each chromosome\n\tHashMap hmchromMax = new HashMap();\n\n\t//maps chromosome names to index values\n\tHashMap hmchromToIndex = new HashMap();\n\tHashMap hmLabelToIndex = new HashMap(); //maps label to an index\n\tHashMap hmIndexToLabel = new HashMap(); //maps index string to label\n\t//stores the maximum integer label value\n\tint nmaxlabel=0;\n\tString szlabel =\"\";\n\tBufferedReader brinputsegment = Util.getBufferedReader(szinputsegmentation);\n\n\tboolean busedunderscore = false;\n //the number of additional intervals to the left and right to include\n \n \t//the center anchor position\n\tint numintervals = 1+numleft+numright;\n\n\n\t//this loops reads in the segmentation \n\twhile ((szLine = brinputsegment.readLine())!=null)\n\t{\n\t //added v1.24\n\t if (bbrowser)\n\t {\n\t\tif ((szLine.toLowerCase(Locale.ENGLISH).startsWith(\"browser\"))||(szLine.toLowerCase(Locale.ENGLISH).startsWith(\"track\")))\n\t\t{\n\t\t continue;\n\t\t}\n\t }\n\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n\t st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n\t }\n\n\t //added in v1.24\n\t int numtokens = st.countTokens();\n\t if (numtokens == 0)\n\t { \n\t //skip blank lines\n\t continue;\n\t }\n\t else if (numtokens < 4)\n\t {\n\t throw new IllegalArgumentException(\"Line \"+szLine+\" in \"+szinputsegmentation+\" only had \"+numtokens+\" token(s). Expecting at least 4\");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n //assumes segments are in standard bed format which to get to \n\t //0-based inclusive requires substract 1 from the end\n\t //int nbegin = Integer.parseInt(st.nextToken().trim())/nbinsize; \n\t st.nextToken().trim();\n\t int nend = (Integer.parseInt(st.nextToken().trim())-1)/nbinsize; \n\t szlabel = st.nextToken().trim();\n\t short slabel;\n\n\t if (bstringlabels)\n\t {\n\t int nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t if (nunderscoreindex >=0)\n\t {\n\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t\t {\n\t slabel = (short) (Short.parseShort(szprefix));\n\t\t if (slabel > nmaxlabel)\n\t\t {\n\t nmaxlabel = slabel;\n\t\t }\n\t\t busedunderscore = true;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t }\n catch (NumberFormatException ex)\n\t\t {\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t if (slabel > nmaxlabel)\n\t\t {\n\t\t nmaxlabel = slabel;\n\t\t }\n\t\t busedunderscore = true;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t if (busedunderscore)\n\t\t {\n\t\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t }\n\t\t }\n\t\t }\n\t }\n\n\t if (!busedunderscore)\n\t {\n\t //handle string labels\n\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\n\t if (objshort == null)\n\t {\n\t\t nmaxlabel = hmLabelToIndex.size()+1;\n\t\t slabel = (short) nmaxlabel;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+nmaxlabel, szlabel);\n\t\t }\n\t }\n\t }\n\t else\n\t {\n try\n\t {\n\t slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t {\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t }\n\t catch (NumberFormatException ex2)\n\t {\n\t throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t }\n\t }\n\t \n\t //alsegments.add(new SegmentRec(szchrom,nbegin,nend,slabel));\n\n\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t }\n\n\t Integer objMax = (Integer) hmchromMax.get(szchrom);\n\t if (objMax == null)\n\t {\n\t\t//System.out.println(\"on chrom \"+szchrom);\n\t\thmchromMax.put(szchrom,Integer.valueOf(nend));\n\t\thmchromToIndex.put(szchrom, Integer.valueOf(hmchromToIndex.size()));\n\t\talchromindex.add(szchrom);\n\t }\n\t else\n\t {\n\t\tint ncurrmax = objMax.intValue();\n\t\tif (ncurrmax < nend)\n\t\t{\n\t\t hmchromMax.put(szchrom, Integer.valueOf(nend));\t\t \n\t\t}\n\t }\n\t}\n\tbrinputsegment.close();\n\n\t//stores a tally for each position relative to an anchor how frequently the label was observed\n\tdouble[][] tallyoverlaplabel = new double[numintervals][nmaxlabel+1]; \n\n\t//stores a tally for the total signal associated with each anchor position\n\tdouble[] dsumoverlaplabel = new double[numintervals];\n\n //a tally on how frequently each label occurs\n double[] tallylabel = new double[nmaxlabel+1];\n\n\n\tint numchroms = alchromindex.size();\n\n //short[][] labels = new short[numchroms][];\n\n\t//allocates space store all the segment labels for each chromosome\n\tfor (int nchrom = 0; nchrom < numchroms; nchrom++)\n\t{\n \t //stores all the segments in the data\n\t //ArrayList alsegments = new ArrayList();\n\t brinputsegment = Util.getBufferedReader(szinputsegmentation);\n\t String szchromwant = (String) alchromindex.get(nchrom);\n\t //System.out.println(\"processing \"+szchromwant);\n\t int nsize = ((Integer) hmchromMax.get(alchromindex.get(nchrom))).intValue()+1;\n\t short[] labels = new short[nsize];\n\t //this loops reads in the segmentation \n\n\n\t //short[] labels_nchrom = labels[nchrom];\n\t for (int npos = 0; npos < nsize; npos++)\n {\n labels[npos] = -1;\n }\n\t\t\n\t while ((szLine = brinputsegment.readLine())!=null)\n\t {\n\t //int numlines = alsegments.size();\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n\t st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t if (!szchromwant.equals(szchrom))\n\t\t continue;\n\n\t bchrommatch = true;\n //assumes segments are in standard bed format which to get to \n\t //0-based inclusive requires substract 1 from the end\n\t int nbegin = Integer.parseInt(st.nextToken().trim())/nbinsize;\n\t int nend = (Integer.parseInt(st.nextToken().trim())-1)/nbinsize; \n\t szlabel = st.nextToken().trim();\n\t short slabel = -1;\n\n\t if (bstringlabels)\n\t {\n\t int nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t\t if (nunderscoreindex >=0)\n\t\t {\n\t\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t busedunderscore = true;\n\t\t }\n catch (NumberFormatException ex)\n\t\t {\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t\t busedunderscore = true;\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t\t if (busedunderscore)\n\t\t\t {\n\t\t\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t\t }\n\t\t }\n\t\t }\n\t\t }\n\n\t\t if (!busedunderscore)\n\t\t {\n\t //handle string labels\n\t\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\t\t slabel = ((Short) objshort).shortValue();\n\t }\n\t }\n\t else\n\t {\n try\n\t {\n\t\t slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t {\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t\t }\n\t }\n\t }\n\n\t //this loop stores into labels the full segmentation\n\t //and a count of how often each label occurs\n\t //for (int nindex = 0; nindex < numlines; nindex++)\n\t //{\n\t //SegmentRec theSegmentRec = (SegmentRec) alsegments.get(nindex);\n\t //int nchrom = ((Integer) hmchromToIndex.get(theSegmentRec.szchrom)).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\t //int nbegin = theSegmentRec.nbegin;\n\t //int nend = theSegmentRec.nend;\n\t //short slabel = theSegmentRec.slabel;\n\t for (int npos = nbegin; npos <= nend; npos++)\n\t {\n\t labels[npos] = slabel;\n\t }\n\n\t if (slabel >= 0)\n\t {\n\t tallylabel[slabel]+=(nend-nbegin)+1; \n\t }\t \n\t }\n\t brinputsegment.close();\n\n\n\t RecAnchorIndex theAnchorIndex = getAnchorIndex(szcolfields, busestrand, busesignal);\n\n \t //reads in the anchor position \n BufferedReader brcoords = Util.getBufferedReader(szanchorpositions);\n\t while ((szLine = brcoords.readLine())!=null)\n {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\n String szchrom = szLineA[theAnchorIndex.nchromindex]; \n\t if (!szchrom.equals(szchromwant)) \n continue;\n\n\t int nanchor = (Integer.parseInt(szLineA[theAnchorIndex.npositionindex])-noffsetanchor);\n\t boolean bposstrand = true;\n\t if (busestrand)\n\t {\n\t String szstrand = szLineA[theAnchorIndex.nstrandindex];\t \n\t if (szstrand.equals(\"+\"))\n\t {\n\t bposstrand = true;\n\t }\n else if (szstrand.equals(\"-\"))\n {\n \t bposstrand = false;\n\t }\n\t else\n\t {\n \t throw new IllegalArgumentException(szstrand +\" is an invalid strand. Strand should be '+' or '-'\");\n\t\t }\t \n\t }\n\n\t double damount;\n\n\t if ((busesignal)&&(theAnchorIndex.nsignalindex< szLineA.length))\n\t {\n\t damount = Double.parseDouble(szLineA[theAnchorIndex.nsignalindex]);\n\t }\n\t else\n {\n\t damount = 1;\n\t }\n\n\t //updates the tallys for the given anchor position\n\t //Integer objChrom = (Integer) hmchromToIndex.get(szchrom);\n //if (objChrom != null)\n\t //{\n\t // int nchrom = objChrom.intValue();\n\t\t //short[] labels_nchrom = labels[nchrom];\n\n\t if (bposstrand)\n\t {\n\t int ntallyindex = 0;\n\t for(int noffset= -numleft; noffset <= numright; noffset++)\n\t {\n\t\t int nposindex = (nanchor + nspacing*noffset)/nbinsize;\n\n\t\t if ((nposindex >=0)&&(nposindex < labels.length)&&(labels[nposindex]>=0))\n\t\t {\n\t tallyoverlaplabel[ntallyindex][labels[nposindex]] += damount;\t\t \n\t\t }\n\t\t ntallyindex++;\n\t\t }\n\t\t }\n\t else\n\t {\n\t int ntallyindex = 0;\n\t for(int noffset= numright; noffset >= -numleft; noffset--)\n\t {\n\t\t int nposindex = (nanchor + nspacing*noffset)/nbinsize;\n\n\t\t if ((nposindex >=0)&&(nposindex < labels.length)&&(labels[nposindex]>=0))\n\t\t {\n\t tallyoverlaplabel[ntallyindex][labels[nposindex]]+=damount;\t\t \n\t\t }\n\t\t ntallyindex++;\n\t\t }\n\t\t //}\n\t\t }\n\t }\n brcoords.close(); \t \n\t}\n\n\tif (!bchrommatch)\n\t{\n\t throw new IllegalArgumentException(\"No chromosome name matches found between \"+szanchorpositions+\n \" and those in the segmentation file.\");\n\t}\n\n\toutputneighborhood(tallyoverlaplabel,tallylabel,dsumoverlaplabel,szoutfile,nspacing,numright,\n numleft,theColor,ChromHMM.convertCharOrderToStringOrder(szlabel.charAt(0)),sztitle,0,\n szlabelmapping,szlabel.charAt(0), bprintimage, bstringlabels, hmIndexToLabel);\n }",
"public long mo9763z() {\n long j = 0;\n for (int i = 0; i < 64; i += 7) {\n byte u = mo9758u();\n j |= ((long) (u & Byte.MAX_VALUE)) << i;\n if ((u & 128) == 0) {\n return j;\n }\n }\n throw C3606c0.m8178e();\n }",
"static int size_of_xri(String passed){\n\t\treturn 2;\n\t}",
"@Test\n\tpublic void testLargeRingSystem5() throws Exception {\n\t\tString smiles = \"O=C1c2ccccc2C(=O)c3c1ccc4c3[nH]c5c6C(=O)c7ccccc7C(=O)c6c8[nH]c9c%10C(=O)c%11ccccc%11C(=O)c%10ccc9c8c45\";\n\t\t\n IAtomContainer mol = sp.parseSmiles(smiles);\n atasc.decideBondOrder(mol, true);\n \n int doubleBondCount = 0;\n for (IBond bond : mol.bonds()) {\n if (bond.getOrder().equals(Order.DOUBLE)) doubleBondCount++;\n }\n Assert.assertEquals(24, doubleBondCount);\n\t}",
"byte[] mo12209b(int i);",
"public long mo9776z() {\n long j = 0;\n for (int i = 0; i < 64; i += 7) {\n byte u = mo9771u();\n j |= ((long) (u & Byte.MAX_VALUE)) << i;\n if ((u & 128) == 0) {\n return j;\n }\n }\n throw C3606c0.m8178e();\n }",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"private static int trailzerofun(int num) {\n\t\tint count=0;\n\t\tif(num<0)\n\t\t\treturn -1;\n\t\tfor(int i=5;num/i>=1;i*=5)\n\t\t{\n\t\t\tcount+=num/i;\n\t\t}\n\t\treturn count;\n\t}",
"int mo4095a(int i);",
"public abstract int mo13680b();",
"long mo25074b();",
"BigInteger getResolution();",
"private static java.lang.String m586k() {\r\n /*\r\n r6 = 1;\r\n r0 = 0;\r\n r1 = \"/proc/cpuinfo\";\r\n r2 = new java.io.FileReader;\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r2.<init>(r1);\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r1 = new java.io.BufferedReader;\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n r3 = 8192; // 0x2000 float:1.14794E-41 double:4.0474E-320;\r\n r1.<init>(r2, r3);\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n L_0x0010:\r\n r3 = r1.readLine();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0039;\r\n L_0x0016:\r\n r4 = com.alipay.security.mobile.module.p010a.C0159a.m556a(r3);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 != 0) goto L_0x0010;\r\n L_0x001c:\r\n r4 = \":\";\r\n r3 = r3.split(r4);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0010;\r\n L_0x0024:\r\n r4 = r3.length;\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 <= r6) goto L_0x0010;\r\n L_0x0027:\r\n r4 = 0;\r\n r4 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r5 = \"BogoMIPS\";\r\n r4 = r4.contains(r5);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 == 0) goto L_0x0010;\r\n L_0x0032:\r\n r4 = 1;\r\n r3 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r0 = r3.trim();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n L_0x0039:\r\n r2.close();\t Catch:{ IOException -> 0x0060 }\r\n L_0x003c:\r\n r1.close();\t Catch:{ IOException -> 0x0062 }\r\n L_0x003f:\r\n return r0;\r\n L_0x0040:\r\n r1 = move-exception;\r\n r1 = r0;\r\n r2 = r0;\r\n L_0x0043:\r\n if (r2 == 0) goto L_0x0048;\r\n L_0x0045:\r\n r2.close();\t Catch:{ IOException -> 0x0064 }\r\n L_0x0048:\r\n if (r1 == 0) goto L_0x003f;\r\n L_0x004a:\r\n r1.close();\t Catch:{ IOException -> 0x004e }\r\n goto L_0x003f;\r\n L_0x004e:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0050:\r\n r1 = move-exception;\r\n r2 = r0;\r\n r7 = r0;\r\n r0 = r1;\r\n r1 = r7;\r\n L_0x0055:\r\n if (r2 == 0) goto L_0x005a;\r\n L_0x0057:\r\n r2.close();\t Catch:{ IOException -> 0x0066 }\r\n L_0x005a:\r\n if (r1 == 0) goto L_0x005f;\r\n L_0x005c:\r\n r1.close();\t Catch:{ IOException -> 0x0068 }\r\n L_0x005f:\r\n throw r0;\r\n L_0x0060:\r\n r2 = move-exception;\r\n goto L_0x003c;\r\n L_0x0062:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0064:\r\n r2 = move-exception;\r\n goto L_0x0048;\r\n L_0x0066:\r\n r2 = move-exception;\r\n goto L_0x005a;\r\n L_0x0068:\r\n r1 = move-exception;\r\n goto L_0x005f;\r\n L_0x006a:\r\n r1 = move-exception;\r\n r7 = r1;\r\n r1 = r0;\r\n r0 = r7;\r\n goto L_0x0055;\r\n L_0x006f:\r\n r0 = move-exception;\r\n goto L_0x0055;\r\n L_0x0071:\r\n r1 = move-exception;\r\n r1 = r0;\r\n goto L_0x0043;\r\n L_0x0074:\r\n r3 = move-exception;\r\n goto L_0x0043;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.alipay.security.mobile.module.b.a.k():java.lang.String\");\r\n }"
] | [
"0.57666343",
"0.57586366",
"0.5735759",
"0.5687135",
"0.56634027",
"0.5615383",
"0.559287",
"0.5579171",
"0.55744433",
"0.55692005",
"0.5564328",
"0.5555222",
"0.55481565",
"0.55481565",
"0.55320305",
"0.55182725",
"0.55172336",
"0.55095524",
"0.54982346",
"0.5474201",
"0.54740703",
"0.54636616",
"0.54134214",
"0.5401121",
"0.5395358",
"0.53775024",
"0.5368031",
"0.5351464",
"0.5346458",
"0.5345126",
"0.5337145",
"0.53254485",
"0.53168446",
"0.53119814",
"0.531146",
"0.53030306",
"0.53000504",
"0.52934813",
"0.5285081",
"0.52807194",
"0.5277722",
"0.5276199",
"0.5258968",
"0.52527463",
"0.52359664",
"0.52343845",
"0.5229917",
"0.5220387",
"0.5202967",
"0.5202905",
"0.5198776",
"0.5197639",
"0.5192836",
"0.5191263",
"0.5191229",
"0.5188716",
"0.5188656",
"0.5187317",
"0.5187161",
"0.51850504",
"0.5180582",
"0.51759315",
"0.5173402",
"0.5172384",
"0.5171882",
"0.5165737",
"0.5164059",
"0.5159814",
"0.51486284",
"0.5143148",
"0.5140165",
"0.5137148",
"0.5136881",
"0.513547",
"0.5134751",
"0.51342785",
"0.512669",
"0.51257133",
"0.5124108",
"0.5123999",
"0.51234424",
"0.51224816",
"0.5117136",
"0.511695",
"0.5115351",
"0.511348",
"0.5111311",
"0.51100427",
"0.51082313",
"0.51078105",
"0.510581",
"0.51022226",
"0.5095552",
"0.5095377",
"0.50953096",
"0.5088915",
"0.5086486",
"0.50849843",
"0.5082368",
"0.5081555",
"0.5080848"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / | protected Date previousStandardDate(Date date, DateTickUnit unit) {
/* */ Date d3;
/* */ long millis;
/* */ Date standardDate;
/* */ Month month;
/* */ Date d2, d1, d0, dd, mm;
/* */ int years, years, years, years, years, years, months, months, months, months, months, days, days, days, days, hours, hours, hours, minutes, minutes, seconds, milliseconds;
/* 920 */ Calendar calendar = Calendar.getInstance(this.timeZone, this.locale);
/* 921 */ calendar.setTime(date);
/* 922 */ int count = unit.getCount();
/* 923 */ int current = calendar.get(unit.getCalendarField());
/* 924 */ int value = count * current / count;
/* */
/* 926 */ switch (unit.getUnit()) {
/* */
/* */ case 6:
/* 929 */ years = calendar.get(1);
/* 930 */ months = calendar.get(2);
/* 931 */ days = calendar.get(5);
/* 932 */ hours = calendar.get(11);
/* 933 */ minutes = calendar.get(12);
/* 934 */ seconds = calendar.get(13);
/* 935 */ calendar.set(years, months, days, hours, minutes, seconds);
/* 936 */ calendar.set(14, value);
/* 937 */ mm = calendar.getTime();
/* 938 */ if (mm.getTime() >= date.getTime()) {
/* 939 */ calendar.set(14, value - 1);
/* 940 */ mm = calendar.getTime();
/* */ }
/* 942 */ return mm;
/* */
/* */ case 5:
/* 945 */ years = calendar.get(1);
/* 946 */ months = calendar.get(2);
/* 947 */ days = calendar.get(5);
/* 948 */ hours = calendar.get(11);
/* 949 */ minutes = calendar.get(12);
/* 950 */ if (this.tickMarkPosition == DateTickMarkPosition.START) {
/* 951 */ milliseconds = 0;
/* */ }
/* 953 */ else if (this.tickMarkPosition == DateTickMarkPosition.MIDDLE) {
/* 954 */ milliseconds = 500;
/* */ } else {
/* */
/* 957 */ milliseconds = 999;
/* */ }
/* 959 */ calendar.set(14, milliseconds);
/* 960 */ calendar.set(years, months, days, hours, minutes, value);
/* 961 */ dd = calendar.getTime();
/* 962 */ if (dd.getTime() >= date.getTime()) {
/* 963 */ calendar.set(13, value - 1);
/* 964 */ dd = calendar.getTime();
/* */ }
/* 966 */ return dd;
/* */
/* */ case 4:
/* 969 */ years = calendar.get(1);
/* 970 */ months = calendar.get(2);
/* 971 */ days = calendar.get(5);
/* 972 */ hours = calendar.get(11);
/* 973 */ if (this.tickMarkPosition == DateTickMarkPosition.START) {
/* 974 */ int seconds = 0;
/* */ }
/* 976 */ else if (this.tickMarkPosition == DateTickMarkPosition.MIDDLE) {
/* 977 */ int seconds = 30;
/* */ } else {
/* */ int seconds;
/* 980 */ seconds = 59;
/* */ }
/* 982 */ calendar.clear(14);
/* 983 */ calendar.set(years, months, days, hours, value, seconds);
/* 984 */ d0 = calendar.getTime();
/* 985 */ if (d0.getTime() >= date.getTime()) {
/* 986 */ calendar.set(12, value - 1);
/* 987 */ d0 = calendar.getTime();
/* */ }
/* 989 */ return d0;
/* */
/* */ case 3:
/* 992 */ years = calendar.get(1);
/* 993 */ months = calendar.get(2);
/* 994 */ days = calendar.get(5);
/* 995 */ if (this.tickMarkPosition == DateTickMarkPosition.START) {
/* 996 */ int minutes = 0;
/* 997 */ int seconds = 0;
/* */ }
/* 999 */ else if (this.tickMarkPosition == DateTickMarkPosition.MIDDLE) {
/* 1000 */ int minutes = 30;
/* 1001 */ int seconds = 0;
/* */ } else {
/* */
/* 1004 */ minutes = 59;
/* 1005 */ seconds = 59;
/* */ }
/* 1007 */ calendar.clear(14);
/* 1008 */ calendar.set(years, months, days, value, minutes, seconds);
/* 1009 */ d1 = calendar.getTime();
/* 1010 */ if (d1.getTime() >= date.getTime()) {
/* 1011 */ calendar.set(11, value - 1);
/* 1012 */ d1 = calendar.getTime();
/* */ }
/* 1014 */ return d1;
/* */
/* */ case 2:
/* 1017 */ years = calendar.get(1);
/* 1018 */ months = calendar.get(2);
/* 1019 */ if (this.tickMarkPosition == DateTickMarkPosition.START) {
/* 1020 */ int hours = 0;
/* */ }
/* 1022 */ else if (this.tickMarkPosition == DateTickMarkPosition.MIDDLE) {
/* 1023 */ int hours = 12;
/* */ } else {
/* */
/* 1026 */ hours = 23;
/* */ }
/* 1028 */ calendar.clear(14);
/* 1029 */ calendar.set(years, months, value, hours, 0, 0);
/* */
/* */
/* 1032 */ d2 = calendar.getTime();
/* 1033 */ if (d2.getTime() >= date.getTime()) {
/* 1034 */ calendar.set(5, value - 1);
/* 1035 */ d2 = calendar.getTime();
/* */ }
/* 1037 */ return d2;
/* */
/* */ case 1:
/* 1040 */ years = calendar.get(1);
/* 1041 */ calendar.clear(14);
/* 1042 */ calendar.set(years, value, 1, 0, 0, 0);
/* 1043 */ month = new Month(calendar.getTime(), this.timeZone, this.locale);
/* */
/* 1045 */ standardDate = calculateDateForPosition(month, this.tickMarkPosition);
/* */
/* 1047 */ millis = standardDate.getTime();
/* 1048 */ if (millis >= date.getTime()) {
/* 1049 */ month = (Month)month.previous();
/* */
/* */
/* 1052 */ month.peg(Calendar.getInstance(this.timeZone));
/* 1053 */ standardDate = calculateDateForPosition(month, this.tickMarkPosition);
/* */ }
/* */
/* 1056 */ return standardDate;
/* */
/* */ case 0:
/* 1059 */ if (this.tickMarkPosition == DateTickMarkPosition.START) {
/* 1060 */ int months = 0;
/* 1061 */ int days = 1;
/* */ }
/* 1063 */ else if (this.tickMarkPosition == DateTickMarkPosition.MIDDLE) {
/* 1064 */ int months = 6;
/* 1065 */ int days = 1;
/* */ } else {
/* */
/* 1068 */ months = 11;
/* 1069 */ days = 31;
/* */ }
/* 1071 */ calendar.clear(14);
/* 1072 */ calendar.set(value, months, days, 0, 0, 0);
/* 1073 */ d3 = calendar.getTime();
/* 1074 */ if (d3.getTime() >= date.getTime()) {
/* 1075 */ calendar.set(1, value - 1);
/* 1076 */ d3 = calendar.getTime();
/* */ }
/* 1078 */ return d3;
/* */ }
/* 1080 */ return null;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"int getWidth() {return width;}",
"double passer();",
"public Integer getWidth(){return this.width;}",
"public abstract void bepaalGrootte();",
"int width();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public void gored() {\n\t\t\n\t}",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"static int getNumPatterns() { return 64; }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public String ring();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public String toString(){ return \"DIV\";}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"int getTribeSize();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"long getWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"double getNewWidth();",
"void mo33732Px();",
"public int my_leaf_count();",
"public abstract String division();",
"public int generateRoshambo(){\n ;]\n\n }",
"double seBlesser();",
"@Override\n public void bfs() {\n\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public abstract int getSpotsNeeded();",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"@Override\npublic void processDirection() {\n\t\n}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public void leerPlanesDietas();",
"public int getWidth(){\n return width;\n }",
"long getMid();",
"long getMid();",
"int expand();",
"int getSpriteArraySize();",
"public void skystonePos4() {\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public abstract double getBaseWidth();",
"public String getRing();",
"Operations operations();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"double volume(){\n return width*height*depth;\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"int getSize ();",
"public int getTakeSpace() {\n return 0;\n }",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"int depth();",
"int depth();",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"@Override\n\tprotected void interr() {\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"String directsTo();",
"Parallelogram(){\n length = width = height = 0;\n }",
"public String getRingback();",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"static void pyramid(){\n\t}",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}"
] | [
"0.5488944",
"0.539108",
"0.5100269",
"0.50899094",
"0.5069534",
"0.50693107",
"0.5066066",
"0.5061679",
"0.50442266",
"0.5015036",
"0.5014165",
"0.5003645",
"0.49693072",
"0.49573815",
"0.49514338",
"0.49499622",
"0.49293876",
"0.4927479",
"0.4927194",
"0.4917197",
"0.4910142",
"0.49028116",
"0.49017558",
"0.48824358",
"0.48823863",
"0.48808914",
"0.48726714",
"0.48720384",
"0.48627836",
"0.4855107",
"0.4846415",
"0.4840881",
"0.48384443",
"0.48339868",
"0.4824593",
"0.48169047",
"0.48134097",
"0.48049474",
"0.48004088",
"0.47979838",
"0.47910494",
"0.47845936",
"0.47841045",
"0.47744447",
"0.47726467",
"0.4771947",
"0.47681993",
"0.47658527",
"0.47648957",
"0.4755676",
"0.4755676",
"0.4753695",
"0.4753143",
"0.4752926",
"0.4749071",
"0.47434685",
"0.47425613",
"0.47384033",
"0.47334346",
"0.47321105",
"0.4731059",
"0.4729468",
"0.4726481",
"0.47170335",
"0.4715351",
"0.4713396",
"0.47059113",
"0.4705429",
"0.4704641",
"0.4699736",
"0.4699736",
"0.4697979",
"0.46902624",
"0.46879697",
"0.46878612",
"0.46878",
"0.46871263",
"0.46857345",
"0.4682048",
"0.46810246",
"0.46779624",
"0.46697363",
"0.46669462",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46645147"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / / | private Date calculateDateForPosition(RegularTimePeriod period, DateTickMarkPosition position) {
/* 1097 */ ParamChecks.nullNotPermitted(period, "period");
/* 1098 */ Date result = null;
/* 1099 */ if (position == DateTickMarkPosition.START) {
/* 1100 */ result = new Date(period.getFirstMillisecond());
/* */ }
/* 1102 */ else if (position == DateTickMarkPosition.MIDDLE) {
/* 1103 */ result = new Date(period.getMiddleMillisecond());
/* */ }
/* 1105 */ else if (position == DateTickMarkPosition.END) {
/* 1106 */ result = new Date(period.getLastMillisecond());
/* */ }
/* 1108 */ return result;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"int getWidth() {return width;}",
"public Integer getWidth(){return this.width;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"int width();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"static int getNumPatterns() { return 64; }",
"public void gored() {\n\t\t\n\t}",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String ring();",
"public int getEdgeCount() \n {\n return 3;\n }",
"int getTribeSize();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public String toString(){ return \"DIV\";}",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"long getWidth();",
"public double getWidth() { return _width<0? -_width : _width; }",
"void mo33732Px();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"double getNewWidth();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"double seBlesser();",
"public int my_leaf_count();",
"public static int size_parent() {\n return (8 / 8);\n }",
"public abstract String division();",
"public abstract int getSpotsNeeded();",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"@Override\n public void bfs() {\n\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"long getMid();",
"long getMid();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"int getSpriteArraySize();",
"public void leerPlanesDietas();",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"int expand();",
"@Override\npublic void processDirection() {\n\t\n}",
"public int getWidth(){\n return width;\n }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"public void skystonePos4() {\n }",
"int getSize ();",
"public abstract double getBaseWidth();",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public int getTakeSpace() {\n return 0;\n }",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public String getRing();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"Operations operations();",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public int getWidth()\n {return width;}",
"public double getPerimiter(){return (2*height +2*width);}",
"double volume(){\n return width*height*depth;\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"int depth();",
"int depth();",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"String directsTo();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public String getRingback();",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"public static int offset_parent() {\n return (40 / 8);\n }",
"Parallelogram(){\n length = width = height = 0;\n }",
"public int width();",
"protected int parent(int i) { return (i - 1) / 2; }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] | [
"0.5461406",
"0.53634894",
"0.5082447",
"0.507148",
"0.50664306",
"0.50647074",
"0.5057308",
"0.5056879",
"0.5027054",
"0.50192624",
"0.500443",
"0.49976438",
"0.49807796",
"0.49528277",
"0.49459547",
"0.49301356",
"0.49267635",
"0.4912605",
"0.49058953",
"0.4905154",
"0.49026942",
"0.48923007",
"0.48867932",
"0.48811018",
"0.4874419",
"0.486571",
"0.48652273",
"0.48624414",
"0.4861591",
"0.48548773",
"0.48536006",
"0.48383313",
"0.48366213",
"0.4836051",
"0.48164645",
"0.48144668",
"0.4814374",
"0.4808966",
"0.48070878",
"0.48056206",
"0.47890118",
"0.47805026",
"0.47779325",
"0.47684216",
"0.47684216",
"0.47680464",
"0.47661152",
"0.4764143",
"0.47637078",
"0.47615066",
"0.4761493",
"0.47591227",
"0.4758359",
"0.47550702",
"0.47435048",
"0.47401577",
"0.47401118",
"0.47305393",
"0.4729085",
"0.47277823",
"0.47248223",
"0.47236776",
"0.4721683",
"0.4720907",
"0.47162634",
"0.47109225",
"0.47101107",
"0.4701012",
"0.4699867",
"0.46989062",
"0.46949717",
"0.46949717",
"0.46934873",
"0.46889675",
"0.46840748",
"0.46811363",
"0.4680407",
"0.46789473",
"0.46781194",
"0.4673779",
"0.46727395",
"0.4672316",
"0.46653482",
"0.4663712",
"0.46592087",
"0.46592087",
"0.46592087",
"0.46592087",
"0.46592087",
"0.46592087",
"0.46592087",
"0.46592087",
"0.46592087",
"0.46592087",
"0.46592087",
"0.46592087",
"0.46592087",
"0.46592087",
"0.46592087",
"0.46592087",
"0.46592087"
] | 0.0 | -1 |
/ / / / / / / / / / / / | protected Date nextStandardDate(Date date, DateTickUnit unit) {
/* 1122 */ Date previous = previousStandardDate(date, unit);
/* 1123 */ Calendar calendar = Calendar.getInstance(this.timeZone, this.locale);
/* 1124 */ calendar.setTime(previous);
/* 1125 */ calendar.add(unit.getCalendarField(), unit.getMultiple());
/* 1126 */ return calendar.getTime();
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"int getWidth() {return width;}",
"double passer();",
"public Integer getWidth(){return this.width;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"int width();",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public void gored() {\n\t\t\n\t}",
"public String ring();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public abstract String division();",
"public double getWidth() { return _width<0? -_width : _width; }",
"static int getNumPatterns() { return 64; }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"long getWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"double getNewWidth();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public int my_leaf_count();",
"@Override\n public void bfs() {\n\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"int getTribeSize();",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"void mo33732Px();",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"double seBlesser();",
"@Override\npublic void processDirection() {\n\t\n}",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"double volume(){\n return width*height*depth;\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public int getWidth(){\n return width;\n }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public void leerPlanesDietas();",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"Operations operations();",
"public double getPerimiter(){return (2*height +2*width);}",
"public void skystonePos4() {\n }",
"public String getRing();",
"public abstract int getSpotsNeeded();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public abstract double getBaseWidth();",
"int expand();",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"long getMid();",
"long getMid();",
"int getSpriteArraySize();",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"static void pyramid(){\n\t}",
"public void SubRect(){\n\t\n}",
"Parallelogram(){\n length = width = height = 0;\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"int depth();",
"int depth();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"String directsTo();",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"public String getRingback();",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"@Override\n\tprotected void interr() {\n\t}",
"int getWidth1();"
] | [
"0.5530031",
"0.5432698",
"0.51744974",
"0.51501745",
"0.50772864",
"0.5064399",
"0.505937",
"0.504494",
"0.50371933",
"0.5019497",
"0.50062066",
"0.5003401",
"0.4997066",
"0.49968842",
"0.49847883",
"0.49755514",
"0.4969306",
"0.49661177",
"0.49544397",
"0.4945806",
"0.4922003",
"0.49087393",
"0.4885043",
"0.4877619",
"0.4876603",
"0.48748982",
"0.4862597",
"0.48573238",
"0.48548496",
"0.48475048",
"0.48386833",
"0.48379013",
"0.48329544",
"0.4822771",
"0.4822572",
"0.48116815",
"0.48108333",
"0.48013434",
"0.47993124",
"0.47971883",
"0.47923976",
"0.47855058",
"0.4770785",
"0.47692698",
"0.47689396",
"0.47679573",
"0.47666395",
"0.4763061",
"0.4761837",
"0.4760742",
"0.47581598",
"0.47580576",
"0.47508392",
"0.4750371",
"0.4746998",
"0.474559",
"0.47401512",
"0.4739575",
"0.47327033",
"0.4727567",
"0.4721684",
"0.472122",
"0.4716835",
"0.47162125",
"0.47162125",
"0.47139302",
"0.47102168",
"0.47077024",
"0.47069994",
"0.47034",
"0.4697991",
"0.46969536",
"0.4696045",
"0.4696045",
"0.46913543",
"0.46880305",
"0.4687924",
"0.46854714",
"0.46835786",
"0.46777862",
"0.4676835",
"0.46750718",
"0.46710017",
"0.46710017",
"0.46710017",
"0.46710017",
"0.46710017",
"0.46710017",
"0.46710017",
"0.46710017",
"0.46710017",
"0.46710017",
"0.46710017",
"0.46710017",
"0.46710017",
"0.46710017",
"0.46710017",
"0.46710017",
"0.46710017",
"0.4668214",
"0.4667809"
] | 0.0 | -1 |
/ / / / / / / / / / / | public static TickUnitSource createStandardDateTickUnits() {
/* 1139 */ return createStandardDateTickUnits(TimeZone.getDefault(),
/* 1140 */ Locale.getDefault());
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"double passer();",
"int getWidth() {return width;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public Integer getWidth(){return this.width;}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public void getTile_B8();",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public String ring();",
"public void gored() {\n\t\t\n\t}",
"int width();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public abstract String division();",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"public int getEdgeCount() \n {\n return 3;\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"@Override\n public void bfs() {\n\n }",
"long getWidth();",
"double getNewWidth();",
"static int getNumPatterns() { return 64; }",
"public int my_leaf_count();",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"void mo33732Px();",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"double volume(){\n return width*height*depth;\n }",
"double seBlesser();",
"int getTribeSize();",
"Operations operations();",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"public int getWidth(){\n return width;\n }",
"public void leerPlanesDietas();",
"public void skystonePos4() {\n }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public String getRing();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public void SubRect(){\n\t\n}",
"public abstract double getBaseWidth();",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"static void pyramid(){\n\t}",
"public static int size_parent() {\n return (8 / 8);\n }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"int expand();",
"public abstract int getSpotsNeeded();",
"Parallelogram(){\n length = width = height = 0;\n }",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"void walk() {\n\t\t\n\t}",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"int depth();",
"int depth();",
"long getMid();",
"long getMid();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"String directsTo();",
"int getSpriteArraySize();",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"double getPerimeter(){\n return 2*height+width;\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"int getWidth1();",
"public String getRingback();",
"void sharpen();",
"void sharpen();",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] | [
"0.5540745",
"0.5444497",
"0.5205538",
"0.5182055",
"0.5094161",
"0.50587463",
"0.5053648",
"0.50452423",
"0.50258267",
"0.50122976",
"0.5012191",
"0.50119436",
"0.50044477",
"0.49989554",
"0.49980396",
"0.49847832",
"0.49795863",
"0.49785143",
"0.4966902",
"0.49588826",
"0.491195",
"0.49114203",
"0.48977208",
"0.48783925",
"0.4871045",
"0.4866241",
"0.48425886",
"0.48414746",
"0.48404667",
"0.48359194",
"0.48321852",
"0.48264593",
"0.48214784",
"0.48163307",
"0.48100394",
"0.48063412",
"0.48053867",
"0.4804083",
"0.4794161",
"0.47927848",
"0.4788403",
"0.47818738",
"0.47784477",
"0.47709942",
"0.4770795",
"0.4766995",
"0.47618645",
"0.47570822",
"0.4752602",
"0.4751775",
"0.4751225",
"0.47489616",
"0.47487566",
"0.474798",
"0.47473353",
"0.47425666",
"0.47340578",
"0.47319007",
"0.47315216",
"0.4729219",
"0.4727721",
"0.47272617",
"0.47233397",
"0.47144157",
"0.47093782",
"0.47075313",
"0.47051412",
"0.47038573",
"0.46964964",
"0.4695774",
"0.46953171",
"0.46950933",
"0.46876776",
"0.46871465",
"0.46871465",
"0.46869987",
"0.46869987",
"0.4686779",
"0.46865502",
"0.46834555",
"0.46825886",
"0.46823603",
"0.46798244",
"0.4674724",
"0.46727514",
"0.46678638",
"0.4667731",
"0.4665962",
"0.4665962",
"0.46643248",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / / / / / | public static TickUnitSource createStandardDateTickUnits(TimeZone zone, Locale locale) {
/* 1160 */ ParamChecks.nullNotPermitted(zone, "zone");
/* 1161 */ ParamChecks.nullNotPermitted(locale, "locale");
/* 1162 */ TickUnits units = new TickUnits();
/* */
/* */
/* 1165 */ DateFormat f1 = new SimpleDateFormat("HH:mm:ss.SSS", locale);
/* 1166 */ DateFormat f2 = new SimpleDateFormat("HH:mm:ss", locale);
/* 1167 */ DateFormat f3 = new SimpleDateFormat("HH:mm", locale);
/* 1168 */ DateFormat f4 = new SimpleDateFormat("d-MMM, HH:mm", locale);
/* 1169 */ DateFormat f5 = new SimpleDateFormat("d-MMM", locale);
/* 1170 */ DateFormat f6 = new SimpleDateFormat("MMM-yyyy", locale);
/* 1171 */ DateFormat f7 = new SimpleDateFormat("yyyy", locale);
/* */
/* 1173 */ f1.setTimeZone(zone);
/* 1174 */ f2.setTimeZone(zone);
/* 1175 */ f3.setTimeZone(zone);
/* 1176 */ f4.setTimeZone(zone);
/* 1177 */ f5.setTimeZone(zone);
/* 1178 */ f6.setTimeZone(zone);
/* 1179 */ f7.setTimeZone(zone);
/* */
/* */
/* 1182 */ units.add(new DateTickUnit(DateTickUnitType.MILLISECOND, true, f1));
/* 1183 */ units.add(new DateTickUnit(DateTickUnitType.MILLISECOND, 5, DateTickUnitType.MILLISECOND, true, f1));
/* */
/* 1185 */ units.add(new DateTickUnit(DateTickUnitType.MILLISECOND, 10, DateTickUnitType.MILLISECOND, true, f1));
/* */
/* 1187 */ units.add(new DateTickUnit(DateTickUnitType.MILLISECOND, 25, DateTickUnitType.MILLISECOND, 5, f1));
/* */
/* 1189 */ units.add(new DateTickUnit(DateTickUnitType.MILLISECOND, 50, DateTickUnitType.MILLISECOND, 10, f1));
/* */
/* 1191 */ units.add(new DateTickUnit(DateTickUnitType.MILLISECOND, 100, DateTickUnitType.MILLISECOND, 10, f1));
/* */
/* 1193 */ units.add(new DateTickUnit(DateTickUnitType.MILLISECOND, 'ú', DateTickUnitType.MILLISECOND, 10, f1));
/* */
/* 1195 */ units.add(new DateTickUnit(DateTickUnitType.MILLISECOND, 'Ǵ', DateTickUnitType.MILLISECOND, 50, f1));
/* */
/* */
/* */
/* 1199 */ units.add(new DateTickUnit(DateTickUnitType.SECOND, true, DateTickUnitType.MILLISECOND, 50, f2));
/* */
/* 1201 */ units.add(new DateTickUnit(DateTickUnitType.SECOND, 5, DateTickUnitType.SECOND, true, f2));
/* */
/* 1203 */ units.add(new DateTickUnit(DateTickUnitType.SECOND, 10, DateTickUnitType.SECOND, true, f2));
/* */
/* 1205 */ units.add(new DateTickUnit(DateTickUnitType.SECOND, 30, DateTickUnitType.SECOND, 5, f2));
/* */
/* */
/* */
/* 1209 */ units.add(new DateTickUnit(DateTickUnitType.MINUTE, true, DateTickUnitType.SECOND, 5, f3));
/* */
/* 1211 */ units.add(new DateTickUnit(DateTickUnitType.MINUTE, 2, DateTickUnitType.SECOND, 10, f3));
/* */
/* 1213 */ units.add(new DateTickUnit(DateTickUnitType.MINUTE, 5, DateTickUnitType.MINUTE, true, f3));
/* */
/* 1215 */ units.add(new DateTickUnit(DateTickUnitType.MINUTE, 10, DateTickUnitType.MINUTE, true, f3));
/* */
/* 1217 */ units.add(new DateTickUnit(DateTickUnitType.MINUTE, 15, DateTickUnitType.MINUTE, 5, f3));
/* */
/* 1219 */ units.add(new DateTickUnit(DateTickUnitType.MINUTE, 20, DateTickUnitType.MINUTE, 5, f3));
/* */
/* 1221 */ units.add(new DateTickUnit(DateTickUnitType.MINUTE, 30, DateTickUnitType.MINUTE, 5, f3));
/* */
/* */
/* */
/* 1225 */ units.add(new DateTickUnit(DateTickUnitType.HOUR, true, DateTickUnitType.MINUTE, 5, f3));
/* */
/* 1227 */ units.add(new DateTickUnit(DateTickUnitType.HOUR, 2, DateTickUnitType.MINUTE, 10, f3));
/* */
/* 1229 */ units.add(new DateTickUnit(DateTickUnitType.HOUR, 4, DateTickUnitType.MINUTE, 30, f3));
/* */
/* 1231 */ units.add(new DateTickUnit(DateTickUnitType.HOUR, 6, DateTickUnitType.HOUR, true, f3));
/* */
/* 1233 */ units.add(new DateTickUnit(DateTickUnitType.HOUR, 12, DateTickUnitType.HOUR, true, f4));
/* */
/* */
/* */
/* 1237 */ units.add(new DateTickUnit(DateTickUnitType.DAY, true, DateTickUnitType.HOUR, true, f5));
/* */
/* 1239 */ units.add(new DateTickUnit(DateTickUnitType.DAY, 2, DateTickUnitType.HOUR, true, f5));
/* */
/* 1241 */ units.add(new DateTickUnit(DateTickUnitType.DAY, 7, DateTickUnitType.DAY, true, f5));
/* */
/* 1243 */ units.add(new DateTickUnit(DateTickUnitType.DAY, 15, DateTickUnitType.DAY, true, f5));
/* */
/* */
/* */
/* 1247 */ units.add(new DateTickUnit(DateTickUnitType.MONTH, true, DateTickUnitType.DAY, true, f6));
/* */
/* 1249 */ units.add(new DateTickUnit(DateTickUnitType.MONTH, 2, DateTickUnitType.DAY, true, f6));
/* */
/* 1251 */ units.add(new DateTickUnit(DateTickUnitType.MONTH, 3, DateTickUnitType.MONTH, true, f6));
/* */
/* 1253 */ units.add(new DateTickUnit(DateTickUnitType.MONTH, 4, DateTickUnitType.MONTH, true, f6));
/* */
/* 1255 */ units.add(new DateTickUnit(DateTickUnitType.MONTH, 6, DateTickUnitType.MONTH, true, f6));
/* */
/* */
/* */
/* 1259 */ units.add(new DateTickUnit(DateTickUnitType.YEAR, true, DateTickUnitType.MONTH, true, f7));
/* */
/* 1261 */ units.add(new DateTickUnit(DateTickUnitType.YEAR, 2, DateTickUnitType.MONTH, 3, f7));
/* */
/* 1263 */ units.add(new DateTickUnit(DateTickUnitType.YEAR, 5, DateTickUnitType.YEAR, true, f7));
/* */
/* 1265 */ units.add(new DateTickUnit(DateTickUnitType.YEAR, 10, DateTickUnitType.YEAR, true, f7));
/* */
/* 1267 */ units.add(new DateTickUnit(DateTickUnitType.YEAR, 25, DateTickUnitType.YEAR, 5, f7));
/* */
/* 1269 */ units.add(new DateTickUnit(DateTickUnitType.YEAR, 50, DateTickUnitType.YEAR, 10, f7));
/* */
/* 1271 */ units.add(new DateTickUnit(DateTickUnitType.YEAR, 100, DateTickUnitType.YEAR, 20, f7));
/* */
/* */
/* 1274 */ return units;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"public Integer getWidth(){return this.width;}",
"static int getNumPatterns() { return 64; }",
"int getWidth() {return width;}",
"int width();",
"public abstract void bepaalGrootte();",
"public void getTile_B8();",
"public void divide() {\n\t\t\n\t}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void gored() {\n\t\t\n\t}",
"int getTribeSize();",
"private int rightChild(int i){return 2*i+2;}",
"void mo33732Px();",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"double seBlesser();",
"long getWidth();",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public String ring();",
"public int generateRoshambo(){\n ;]\n\n }",
"double getNewWidth();",
"public abstract int getSpotsNeeded();",
"public double getWidth() { return _width<0? -_width : _width; }",
"public static int size_parent() {\n return (8 / 8);\n }",
"int getSize ();",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public String toString(){ return \"DIV\";}",
"public int my_leaf_count();",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public int getTakeSpace() {\n return 0;\n }",
"int getSpriteArraySize();",
"long getMid();",
"long getMid();",
"@Override\n public void bfs() {\n\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public void skystonePos4() {\n }",
"int expand();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"public void leerPlanesDietas();",
"public int length() { return 1+maxidx; }",
"public abstract String division();",
"@Override\n\tprotected void interr() {\n\t}",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public int getWidth(){\n return width;\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract double getBaseWidth();",
"public void method_4270() {}",
"private void poetries() {\n\n\t}",
"public int getWidth()\n {return width;}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"int align();",
"public String getRing();",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"static int size_of_inx(String passed){\n\t\treturn 1;\n\t}",
"public static int offset_parent() {\n return (40 / 8);\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"Operations operations();",
"static int size_of_xra(String passed){\n\t\treturn 1;\n\t}",
"@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"int depth();",
"int depth();",
"int size() {\n int basic = ((offset() + 4) & ~3) - offset() + 8;\n /* Add 8*number of offsets */\n return basic + targetsOp.length*8;\n }",
"public static void enrichmentMaxLowMem(String szinputsegment,String szinputcoorddir,String szinputcoordlist,\n\t\t\t\t int noffsetleft, int noffsetright,\n int nbinsize, boolean bcenter,boolean bunique, boolean busesignal,String szcolfields,\n\t\t\t\t boolean bbaseres, String szoutfile,boolean bcolscaleheat,Color theColor,String sztitle, \n\t\t\t\t\t String szlabelmapping, boolean bprintimage, boolean bstringlabels, boolean bbrowser) throws IOException\n {\n\n\n //for each enrichment category and state label gives a count of how often\n //overlapped by a segment optionally with signal\n\n String szLine;\n String[] files;\n\n if (szinputcoordlist == null)\n {\n File dir = new File(szinputcoorddir);\n\t //we don't have a specific list of files to include\n\t //will use all files in the directory\n\t if (dir.isDirectory())\t \n\t {\n\t //throw new IllegalArgumentException(szinputcoorddir+\" is not a directory!\");\n\t //added in v1.11 to skip hidden files\n\t String[] filesWithHidden = dir.list();\n\t int nnonhiddencount = 0;\n\t for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t\t{\n\t\t nnonhiddencount++;\n\t\t}\n\t }\t \n\n\t int nactualindex = 0;\n\t files = new String[nnonhiddencount];// dir.list(); \n\t if (nnonhiddencount == 0)\n\t {\n\t throw new IllegalArgumentException(\"No files found in \"+szinputcoorddir);\n\t }\n\n for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t {\n\t files[nactualindex] = filesWithHidden[nfile];\n\t\t nactualindex++;\n\t }\n\t }\n\t Arrays.sort(files);\n\t szinputcoorddir += \"/\";\n\t }\n\t else\n\t {\n\t files = new String[1];\n\t files[0] = szinputcoorddir;\n\t szinputcoorddir = \"\";\n\t }\n }\n else\n {\n szinputcoorddir += \"/\";\n\t //store in files all file names given in szinputcoordlist\n\t BufferedReader brfiles = Util.getBufferedReader(szinputcoordlist);\n\t ArrayList alfiles = new ArrayList();\n\t while ((szLine = brfiles.readLine())!=null)\n\t {\n\t alfiles.add(szLine);\n\t }\n\t brfiles.close(); \n\t files = new String[alfiles.size()];\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t files[nfile] = (String) alfiles.get(nfile);\n\t }\n }\n\t\n ArrayList alchromindex = new ArrayList(); //stores the index of the chromosome\n\t\n if (busesignal)\n {\n bunique = false;\n }\n\n HashMap hmchromMax = new HashMap(); //maps chromosome to the maximum index\n HashMap hmchromToIndex = new HashMap(); //maps chromosome to an index\n HashMap hmLabelToIndex = new HashMap(); //maps label to an index\n HashMap hmIndexToLabel = new HashMap(); //maps index string to label\n int nmaxlabel=0; // the maximum label found\n String szlabel=\"\";\n boolean busedunderscore = false;\n //reads in the segmentation recording maximum position for each chromosome and\n //maximum label\n BufferedReader brinputsegment = Util.getBufferedReader(szinputsegment);\n while ((szLine = brinputsegment.readLine())!=null)\n {\n\n\t //added v1.24\n\t if (bbrowser)\n\t {\n\t if ((szLine.toLowerCase(Locale.ENGLISH).startsWith(\"browser\"))||(szLine.toLowerCase(Locale.ENGLISH).startsWith(\"track\")))\n\t {\n\t continue;\n\t }\n\t }\n\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n }\n\n\t //added in v1.24\n\t int numtokens = st.countTokens();\n\t if (numtokens == 0)\n\t {\n\t //skip blank lines\n\t continue;\n\t }\n\t else if (numtokens < 4)\n\t {\n\t throw new IllegalArgumentException(\"Line \"+szLine+\" in \"+szinputsegment+\" only had \"+numtokens+\" token(s). Expecting at least 4\");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\t if (nbegincoord % nbinsize != 0)\n\t {\n\t\tthrow new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with coordinates in input segment \"+szLine+\". -b binsize should match parameter value to LearnModel or \"+\n \"MakeSegmentation used to produce segmentation. If segmentation is derived from a lift over from another assembly, then the '-b 1' option should be used\");\n\t }\n //int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n szlabel = st.nextToken().trim();\n\t short slabel;\n\n\n if (bstringlabels)\n\t {\n\n\t int nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t if (nunderscoreindex >=0)\n\t {\n\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t\t busedunderscore = true;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t}\n catch (NumberFormatException ex)\n\t\t{\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t if (slabel > nmaxlabel)\n\t\t {\n\t\t nmaxlabel = slabel;\n\t\t }\n\t\t busedunderscore = true;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t if (busedunderscore)\n\t\t {\n\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t }\n\t\t }\n\t\t}\n\t }\n\n\t if (!busedunderscore)\n\t {\n //handle string labels\n\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\n\t if (objshort == null)\n\t {\n\t nmaxlabel = hmLabelToIndex.size()+1;\n\t slabel = (short) nmaxlabel;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n \t hmIndexToLabel.put(\"\"+nmaxlabel, szlabel);\n\t }\n\t //else\n\t //{\n\t // slabel = ((Short) objshort).shortValue();\n\t //}\n\t }\n\t }\n\t else\n\t {\n try\n\t {\n slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t{\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t}\n\t catch (NumberFormatException ex2)\n\t {\n throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t\t}\n\t }\n\n\t //alsegments.add(new SegmentRec(szchrom,nbegin,nend,slabel));\n\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t }\n\n\t Integer objMax = (Integer) hmchromMax.get(szchrom);\n\t if (objMax == null)\n\t {\n\t //System.out.println(\"on chrom \"+szchrom);\n\t hmchromMax.put(szchrom,Integer.valueOf(nend));\n\t hmchromToIndex.put(szchrom, Integer.valueOf(hmchromToIndex.size()));\n\t alchromindex.add(szchrom);\n\t }\n\t else\n\t {\n\t int ncurrmax = objMax.intValue();\n\t if (ncurrmax < nend)\n\t {\n\t hmchromMax.put(szchrom, Integer.valueOf(nend));\t\t \n\t }\n\t }\n }\n brinputsegment.close();\n\n double[][] tallyoverlaplabel = new double[files.length][nmaxlabel+1];\n double[] dsumoverlaplabel = new double[files.length];\n double[] tallylabel = new double[nmaxlabel+1];\n\n int numchroms = alchromindex.size();\n\n for (int nchrom = 0; nchrom < numchroms; nchrom++)\n {\n //ArrayList alsegments = new ArrayList(); //stores all the segments\n\t String szchromwant = (String) alchromindex.get(nchrom);\n\t //System.out.println(\"processing \"+szchromwant);\n\t int nsize = ((Integer) hmchromMax.get(szchromwant)).intValue()+1;\n\t short[] labels = new short[nsize]; //stores the hard label assignments\n\n\t //sets to -1 so missing segments not counted as label 0\n\t for (int npos = 0; npos < nsize; npos++)\n\t {\n labels[npos] = -1;\n\t }\n\n\t brinputsegment = Util.getBufferedReader(szinputsegment);\n\t while ((szLine = brinputsegment.readLine())!=null)\n\t {\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n\t st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t if (!szchrom.equals(szchromwant)) \n\t continue;\n\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\n\t //if (nbegincoord % nbinsize != 0)\n\t // {\n\t //\t throw new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with input segment \"+szLine);\n\t //}\n\t int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n\t szlabel = st.nextToken().trim();\n\t short slabel = -1;\n\n\t if (bstringlabels)\n\t {\n\t\tint nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t\tif (nunderscoreindex >=0)\n\t\t{\n\t\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t busedunderscore = true;\n\t\t }\n catch (NumberFormatException ex)\n\t\t {\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t\t busedunderscore = true;\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t\t if (busedunderscore)\n\t\t\t {\n\t\t\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t\t }\n\t\t }\n\t\t }\n\t\t}\n\n\t\tif (!busedunderscore)\n\t\t{\n\t //handle string labels\n\t\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\t\t slabel = ((Short) objshort).shortValue();\n\t\t}\n\t }\n\t else\n\t {\n try\n\t {\n\t slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t {\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t }\n\t\t}\n\t }\n\n\t if (nbegin < 0)\n\t {\n\t nbegin = 0;\n\t }\n\n\t if (nend >= labels.length)\n\t {\n\t nend = labels.length - 1;\n\t }\n\n\t //SegmentRec theSegmentRec = (SegmentRec) alsegments.get(nindex);\n\t //int nbegin = theSegmentRec.nbegin;\n\t //int nend = theSegmentRec.nend;\n\t //short slabel = theSegmentRec.slabel;\n\t //int nchrom = ((Integer) hmchromToIndex.get(theSegmentRec.szchrom)).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\t //stores each label position in the genome\n\t for (int npos = nbegin; npos <= nend; npos++)\n\t {\n\t labels[npos] = slabel;\n\t //tallylabel[slabel]++; \n\t }\n\t tallylabel[slabel] += (nend-nbegin)+1;\n\t }\n\n\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t int nchromindex = 0;\n\t int nstartindex = 1;\n\t int nendindex = 2;\n\t int nsignalindex = 3;\n\n\t if (szcolfields != null)\n\t {\n\t StringTokenizer stcolfields = new StringTokenizer(szcolfields,\",\");\n\t\tnchromindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnstartindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnendindex = Integer.parseInt(stcolfields.nextToken().trim());\n\n\t if (busesignal)\n\t {\n\t nsignalindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t }\n\t }\n\n \t \n if (bunique)\n\t {\n\t //Iterator itrChroms = hmchromToIndex.entrySet().iterator();\n\t //while (itrChroms.hasNext())\n\t //{\n\t //Map.Entry pairs = (Map.Entry) itrChroms.next();\n\t //String szchrom =(String) pairs.getKey();\n\t //int nchrom = ((Integer) pairs.getValue()).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t //reading in the coordinates to overlap with\n BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t ArrayList alrecs = new ArrayList();\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\t\t if (nstartindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nstartindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n if (nendindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nendindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n\t String szcurrchrom = szLineA[nchromindex];\n\t \t if (szchromwant.equals(szcurrchrom))\n\t\t {\n\t\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t\t if (bcenter)\n\t\t {\n\t\t nbeginactual = (nbeginactual+nendactual)/2;\n\t\t nendactual = nbeginactual;\n\t\t }\n\t\t alrecs.add(new Interval(nbeginactual,nendactual));\n\t\t }\n\t\t}\n\t brcoords.close();\n\n\t\tObject[] alrecA = alrecs.toArray();\n\t\tArrays.sort(alrecA,new IntervalCompare());\n\n\t\tboolean bclosed = true;\n\t int nintervalstart = -1;\n\t\tint nintervalend = -1;\n\t\tboolean bdone = false;\n\n\t\tfor (int nindex = 0; (nindex <= alrecA.length&&(alrecA.length>0)); nindex++)\n\t\t{\n\t\t int ncurrstart = -1;\n\t\t int ncurrend = -1;\n\n\t\t if (nindex == alrecA.length)\n\t\t {\n\t\t bdone = true;\n\t\t }\n\t\t else \n\t\t {\n\t\t ncurrstart = ((Interval) alrecA[nindex]).nstart;\n\t\t ncurrend = ((Interval) alrecA[nindex]).nend;\n if (nindex == 0)\n\t\t {\n\t\t nintervalstart = ncurrstart;\n\t\t\t nintervalend = ncurrend;\n\t\t }\n\t\t else if (ncurrstart <= nintervalend)\n\t\t {\n\t\t //this read is still in the active interval\n\t\t //extending the current active interval \n\t\t if (ncurrend > nintervalend)\n\t\t {\n\t\t nintervalend = ncurrend;\n\t\t }\n\t\t }\t\t \n\t\t else \n\t\t {\n\t\t //just finished the current active interval\n\t\t bdone = true;\n\t\t }\n\t\t }\n\n\t\t if (bdone)\n\t {\t\t \t\t\t\t\t\t\n\t int nbegin = nintervalstart/nbinsize;\n\t\t int nend = nintervalend/nbinsize;\n\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\n\t for (int nbin = nbegin; nbin <= nend; nbin++)\n\t {\n\t\t if (labels[nbin]>=0)\n\t\t {\n\t\t tallyoverlaplabel_nfile[labels[nbin]]++;\n\t\t }\n\t\t }\n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nintervalstart - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nintervalend-1)/(double) nbinsize;\n\t\t\t \n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t { \t\t\t \n\t\t //only counted the bases if nbegin was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nend]]-=dendfrac;\n\t\t\t }\n\t\t }\t\t\t \n\n\t\t nintervalstart = ncurrstart; \n\t\t nintervalend = ncurrend;\n\t\t bdone = false;\n\t\t }\t \n\t\t}\n\t\t //}\n\t }\n\t else\n\t {\n\t BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\n\t String szchrom = szLineA[nchromindex];\n\t\t if (!szchromwant.equals(szchrom))\n\t\t continue;\n\n\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t int nbegin = nbeginactual/nbinsize;\n\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t int nend = nendactual/nbinsize;\n\n\t\t double damount;\n\t if ((busesignal)&&(nsignalindex < szLineA.length))\n\t {\n\t \t damount = Double.parseDouble(szLineA[nsignalindex]);\n\t\t }\n\t else\n\t {\n\t damount = 1;\n\t\t }\n\n\t //Integer objChrom = (Integer) hmchromToIndex.get(szchrom);\n\t //if (objChrom != null)\n\t\t //{\n\t\t //we have the chromosome corresponding to this read\n\t //int nchrom = objChrom.intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t\t if (bcenter)\n\t {\n\t //using the center position of the interval only\n\t\t int ncenter = (nbeginactual+nendactual)/(2*nbinsize);\n\t\t if ((ncenter < labels.length)&&(labels[ncenter]>=0))\n\t\t {\n\t tallyoverlaplabel_nfile[labels[ncenter]]+=damount;\t\t\t \n\t\t }\n\t\t }\n\t else\n\t {\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\t\t //using the full interval range\n\t\t //no requirement on uniqueness\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\t\t\t\n\t for (int nindex = nbegin; nindex <= nend; nindex++)\n\t {\n\t\t if (labels[nindex]>=0)\n\t\t {\n\t\t //increment overlap tally not checking for uniqueness\n \t tallyoverlaplabel_nfile[labels[nindex]]+=damount;\n\t\t\t }\n\t\t }\t \n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nbeginactual - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nendactual-1)/(double) nbinsize;\n\n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t\t { \n\t\t\t //only counted the bases if nbegin was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=damount*dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nend]]-=damount*dendfrac;\n\t\t\t }\t\t\t \n\t\t }\n\t\t }\n\t\t}\t \n\t\tbrcoords.close();\n\t }\n\t }\n }\n\n\n for (int nfile = 0; nfile < files.length; nfile++)\n {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t for (int nindex = 0; nindex < tallyoverlaplabel_nfile.length; nindex++)\n {\n dsumoverlaplabel[nfile] += tallyoverlaplabel_nfile[nindex];\n }\n\t\t\n if (dsumoverlaplabel[nfile] < EPSILONOVERLAP) // 0.00000001)\n {\n\t throw new IllegalArgumentException(\"Coordinates in \"+files[nfile]+\" not assigned to any state. Check if chromosome naming in \"+files[nfile]+\n\t\t\t\t\t\t \" match those in the segmentation file.\");\n\t }\n\t}\n\n\toutputenrichment(szoutfile, files,tallyoverlaplabel, tallylabel, dsumoverlaplabel,theColor,\n\t\t\t bcolscaleheat,ChromHMM.convertCharOrderToStringOrder(szlabel.charAt(0)),sztitle,0,szlabelmapping,szlabel.charAt(0), bprintimage, bstringlabels, hmIndexToLabel);\n }",
"public int width();",
"public int get_resource_distance() {\n return 1;\r\n }",
"public double width() { return _width; }",
"public String getRingback();",
"@Override\n public int getSize() {\n return 1;\n }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"double volume(){\n return width*height*depth;\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"String directsTo();",
"public void Exterior() {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"Parallelogram(){\n length = width = height = 0;\n }",
"int getWidth()\n {\n return width;\n }",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"int fixedSize();",
"static int size_of_shld(String passed){\n\t\treturn 3;\n\t}",
"@Override\n public void perish() {\n \n }",
"int getSize();",
"int getSize();"
] | [
"0.53632706",
"0.52679044",
"0.51031464",
"0.5091802",
"0.50594866",
"0.5054584",
"0.5044257",
"0.5012143",
"0.49823713",
"0.4971163",
"0.4965251",
"0.49631208",
"0.49490353",
"0.49372017",
"0.49242583",
"0.4920311",
"0.4910899",
"0.49054167",
"0.49003798",
"0.48797733",
"0.48735487",
"0.48652917",
"0.4863484",
"0.48629028",
"0.4861094",
"0.48513195",
"0.4845569",
"0.48436567",
"0.4837977",
"0.48361725",
"0.4835012",
"0.4827776",
"0.48239622",
"0.48219362",
"0.48137403",
"0.48055917",
"0.4792939",
"0.478569",
"0.47836402",
"0.4783279",
"0.47829726",
"0.47829726",
"0.4782276",
"0.47816196",
"0.47809106",
"0.47731718",
"0.47637996",
"0.4760919",
"0.47582096",
"0.4756446",
"0.4749113",
"0.4745445",
"0.47396973",
"0.47392103",
"0.47334427",
"0.47333595",
"0.47312787",
"0.47291833",
"0.4724213",
"0.47233373",
"0.4723235",
"0.47211224",
"0.4714882",
"0.4703355",
"0.47031334",
"0.46988788",
"0.469753",
"0.4693811",
"0.46912494",
"0.46904898",
"0.46881756",
"0.46880773",
"0.46875548",
"0.4686225",
"0.46806452",
"0.46718267",
"0.46702895",
"0.46668297",
"0.46668297",
"0.4665688",
"0.46655712",
"0.46627542",
"0.46615487",
"0.46611518",
"0.4660242",
"0.465371",
"0.4653611",
"0.4653278",
"0.4653076",
"0.465272",
"0.46504247",
"0.46498722",
"0.46489698",
"0.46462864",
"0.46455067",
"0.46451896",
"0.46445698",
"0.46424577",
"0.46413842",
"0.4640908",
"0.4640908"
] | 0.0 | -1 |
/ / / / / / / / | protected void autoAdjustRange() {
/* 1284 */ Plot plot = getPlot();
/* */
/* 1286 */ if (plot == null) {
/* */ return;
/* */ }
/* */
/* 1290 */ if (plot instanceof ValueAxisPlot) {
/* 1291 */ ValueAxisPlot vap = (ValueAxisPlot)plot;
/* */
/* 1293 */ DateRange dateRange = vap.getDataRange(this);
/* 1294 */ if (dateRange == null) {
/* 1295 */ if (this.timeline instanceof SegmentedTimeline) {
/* */
/* */
/* */
/* 1299 */ DateRange dateRange1 = new DateRange(((SegmentedTimeline)this.timeline).getStartTime(), (((SegmentedTimeline)this.timeline).getStartTime() + 1L));
/* */ }
/* */ else {
/* */
/* 1303 */ dateRange = new DateRange();
/* */ }
/* */ }
/* */
/* 1307 */ long upper = this.timeline.toTimelineValue(
/* 1308 */ (long)dateRange.getUpperBound());
/* */
/* 1310 */ long fixedAutoRange = (long)getFixedAutoRange();
/* 1311 */ if (fixedAutoRange > 0.0D) {
/* 1312 */ lower = upper - fixedAutoRange;
/* */ } else {
/* */
/* 1315 */ lower = this.timeline.toTimelineValue((long)dateRange.getLowerBound());
/* 1316 */ double range = (upper - lower);
/* 1317 */ long minRange = (long)getAutoRangeMinimumSize();
/* 1318 */ if (range < minRange) {
/* 1319 */ long expand = (long)(minRange - range) / 2L;
/* 1320 */ upper += expand;
/* 1321 */ lower -= expand;
/* */ }
/* 1323 */ upper += (long)(range * getUpperMargin());
/* 1324 */ lower -= (long)(range * getLowerMargin());
/* */ }
/* */
/* 1327 */ upper = this.timeline.toMillisecond(upper);
/* 1328 */ long lower = this.timeline.toMillisecond(lower);
/* 1329 */ DateRange dr = new DateRange(new Date(lower), new Date(upper));
/* 1330 */ setRange(dr, false, false);
/* */ }
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void bepaalGrootte();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"double passer();",
"public String ring();",
"public void gored() {\n\t\t\n\t}",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"int getWidth() {return width;}",
"public String toString(){ return \"DIV\";}",
"public abstract String division();",
"public void getTile_B8();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public Integer getWidth(){return this.width;}",
"int width();",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"@Override\n public void bfs() {\n\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"double volume(){\n return width*height*depth;\n }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"Operations operations();",
"public double getWidth() { return _width<0? -_width : _width; }",
"public int generateRoshambo(){\n ;]\n\n }",
"static void pyramid(){\n\t}",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public void SubRect(){\n\t\n}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"void sharpen();",
"void sharpen();",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"void mo33732Px();",
"void walk() {\n\t\t\n\t}",
"public void skystonePos4() {\n }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public double getPerimiter(){return (2*height +2*width);}",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"double getNewWidth();",
"Parallelogram(){\n length = width = height = 0;\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"long getWidth();",
"public int getEdgeCount() \n {\n return 3;\n }",
"double getPerimeter(){\n return 2*height+width;\n }",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"public void stg() {\n\n\t}",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"double seBlesser();",
"public void leerPlanesDietas();",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public int my_leaf_count();",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"public String getRing();",
"void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }",
"public int getWidth(){\n return width;\n }",
"@Override\n protected void paint2d(Graphics2D g) {\n \n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"static int getNumPatterns() { return 64; }",
"public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }",
"private void buildPath() {\r\n int xNext = 1;\r\n int yNext = map.getStartPos() + 1;\r\n CellLayered before = cells[yNext][xNext];\r\n while(true)\r\n {\r\n Byte[] xy = map.getDirection(xNext-1, yNext-1);\r\n xNext = xNext + xy[0];\r\n yNext = yNext + xy[1];\r\n\r\n CellLayered next = cells[yNext][xNext];\r\n\r\n if(xy[0]==-1)\r\n before.setRight(false);\r\n else\r\n before.setRight(true);\r\n before.setPath(true);\r\n if(next==null)\r\n break;\r\n\r\n before.setNextInPath(next);\r\n before = next;\r\n }\r\n }",
"public abstract double getBaseWidth();",
"private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"public int upright();",
"private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public int getDireccion(Pixel p) {\r\n\t\tif (x == p.x && y < p.y)\r\n\t\t\treturn DIR_N;\r\n\t\tif (x > p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x == p.x && y > p.y)\r\n\t\t\treturn DIR_S;\r\n\t\tif (x > p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x > p.x && y == p.y)\r\n\t\t\treturn DIR_E;\r\n\t\tif (x < p.x && y == p.y)\r\n\t\t\treturn DIR_O;\r\n\t\treturn -1;\r\n\t}",
"void block(Directions dir);",
"@Override\r\n public void draw()\r\n {\n\r\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"int getWidth1();",
"int expand();",
"int getR();",
"private int right(int parent) {\n\t\treturn parent*2+2;\n\t}",
"public void snare();"
] | [
"0.5504941",
"0.54137844",
"0.5296753",
"0.5239001",
"0.5204336",
"0.514801",
"0.51014787",
"0.5075982",
"0.50374615",
"0.5031766",
"0.50094056",
"0.49815953",
"0.4981483",
"0.4978163",
"0.49739188",
"0.4962503",
"0.4937771",
"0.49286118",
"0.49035633",
"0.4892962",
"0.48797852",
"0.4859378",
"0.48551226",
"0.48481342",
"0.48434857",
"0.48434454",
"0.48414215",
"0.48283184",
"0.4828179",
"0.48221704",
"0.48187384",
"0.4803062",
"0.48022532",
"0.48006094",
"0.4800169",
"0.4797727",
"0.47976512",
"0.47904986",
"0.4789752",
"0.4789752",
"0.47894728",
"0.47785386",
"0.4777531",
"0.47749814",
"0.47712746",
"0.4766211",
"0.47661635",
"0.47655246",
"0.47637776",
"0.47587013",
"0.4758118",
"0.47569978",
"0.47498757",
"0.4747927",
"0.47473112",
"0.47412387",
"0.47409424",
"0.4739731",
"0.473253",
"0.473253",
"0.47284067",
"0.47276646",
"0.47240633",
"0.47224078",
"0.4721142",
"0.47189185",
"0.47118622",
"0.47093627",
"0.4709345",
"0.47089353",
"0.47085762",
"0.47065896",
"0.46956047",
"0.46915403",
"0.46904767",
"0.46897748",
"0.46893507",
"0.4687955",
"0.46859324",
"0.4684773",
"0.46749297",
"0.46735325",
"0.46721494",
"0.4669185",
"0.46663663",
"0.4665035",
"0.4662083",
"0.4657807",
"0.46552077",
"0.46515536",
"0.46476173",
"0.4647526",
"0.46430358",
"0.46428934",
"0.4640823",
"0.4640316",
"0.46403122",
"0.4639857",
"0.46372482",
"0.46324494",
"0.46290594"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / | protected void selectAutoTickUnit(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge) {
/* 1347 */ if (RectangleEdge.isTopOrBottom(edge)) {
/* 1348 */ selectHorizontalAutoTickUnit(g2, dataArea, edge);
/* */ }
/* 1350 */ else if (RectangleEdge.isLeftOrRight(edge)) {
/* 1351 */ selectVerticalAutoTickUnit(g2, dataArea, edge);
/* */ }
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"int getWidth() {return width;}",
"double passer();",
"public Integer getWidth(){return this.width;}",
"public abstract void bepaalGrootte();",
"int width();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public void gored() {\n\t\t\n\t}",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"static int getNumPatterns() { return 64; }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String ring();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public String toString(){ return \"DIV\";}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"int getTribeSize();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"long getWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"double getNewWidth();",
"void mo33732Px();",
"public int my_leaf_count();",
"public abstract String division();",
"public int generateRoshambo(){\n ;]\n\n }",
"double seBlesser();",
"@Override\n public void bfs() {\n\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public abstract int getSpotsNeeded();",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"@Override\npublic void processDirection() {\n\t\n}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public void leerPlanesDietas();",
"public int getWidth(){\n return width;\n }",
"long getMid();",
"long getMid();",
"int expand();",
"int getSpriteArraySize();",
"public void skystonePos4() {\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public abstract double getBaseWidth();",
"public String getRing();",
"Operations operations();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"double volume(){\n return width*height*depth;\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"int getSize ();",
"public int getTakeSpace() {\n return 0;\n }",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"int depth();",
"int depth();",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"String directsTo();",
"Parallelogram(){\n length = width = height = 0;\n }",
"public String getRingback();",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"static void pyramid(){\n\t}",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}"
] | [
"0.54896694",
"0.5391855",
"0.50999725",
"0.5089729",
"0.5071565",
"0.50698775",
"0.5066746",
"0.5062716",
"0.5045067",
"0.5015888",
"0.50144786",
"0.50042266",
"0.49699038",
"0.4958074",
"0.49504146",
"0.49493113",
"0.4928954",
"0.49281803",
"0.49264044",
"0.49144852",
"0.49096256",
"0.49023998",
"0.4900659",
"0.4883338",
"0.48826042",
"0.488078",
"0.4873465",
"0.48732233",
"0.48638675",
"0.485561",
"0.484706",
"0.4841978",
"0.48373556",
"0.4833697",
"0.48265693",
"0.48180372",
"0.48130226",
"0.480567",
"0.48006335",
"0.4799091",
"0.47895777",
"0.4785683",
"0.47836962",
"0.4774855",
"0.4773943",
"0.47699708",
"0.47685766",
"0.47670215",
"0.4765558",
"0.47566882",
"0.47566882",
"0.47550395",
"0.4754316",
"0.4753821",
"0.47496703",
"0.47440612",
"0.47428495",
"0.47382045",
"0.47344932",
"0.4732491",
"0.47317952",
"0.47295466",
"0.47266868",
"0.47174314",
"0.47159368",
"0.47122276",
"0.4708117",
"0.47059256",
"0.47053722",
"0.4700522",
"0.4700522",
"0.4698713",
"0.46902904",
"0.4689955",
"0.4688406",
"0.4688214",
"0.4687884",
"0.46857196",
"0.4681411",
"0.46810317",
"0.4679931",
"0.46686065",
"0.46676695",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46668667"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / | protected void selectHorizontalAutoTickUnit(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge) {
/* 1368 */ long shift = 0L;
/* 1369 */ if (this.timeline instanceof SegmentedTimeline) {
/* 1370 */ shift = ((SegmentedTimeline)this.timeline).getStartTime();
/* */ }
/* 1372 */ double zero = valueToJava2D(shift + 0.0D, dataArea, edge);
/* 1373 */ double tickLabelWidth = estimateMaximumTickLabelWidth(g2,
/* 1374 */ getTickUnit());
/* */
/* */
/* 1377 */ TickUnitSource tickUnits = getStandardTickUnits();
/* 1378 */ TickUnit unit1 = tickUnits.getCeilingTickUnit(getTickUnit());
/* 1379 */ double x1 = valueToJava2D(shift + unit1.getSize(), dataArea, edge);
/* 1380 */ double unit1Width = Math.abs(x1 - zero);
/* */
/* */
/* 1383 */ double guess = tickLabelWidth / unit1Width * unit1.getSize();
/* 1384 */ DateTickUnit unit2 = (DateTickUnit)tickUnits.getCeilingTickUnit(guess);
/* 1385 */ double x2 = valueToJava2D(shift + unit2.getSize(), dataArea, edge);
/* 1386 */ double unit2Width = Math.abs(x2 - zero);
/* 1387 */ tickLabelWidth = estimateMaximumTickLabelWidth(g2, unit2);
/* 1388 */ if (tickLabelWidth > unit2Width) {
/* 1389 */ unit2 = (DateTickUnit)tickUnits.getLargerTickUnit(unit2);
/* */ }
/* 1391 */ setTickUnit(unit2, false, false);
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"int getWidth() {return width;}",
"double passer();",
"public Integer getWidth(){return this.width;}",
"public abstract void bepaalGrootte();",
"int width();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public void gored() {\n\t\t\n\t}",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"static int getNumPatterns() { return 64; }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public String ring();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public String toString(){ return \"DIV\";}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"int getTribeSize();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"long getWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"double getNewWidth();",
"void mo33732Px();",
"public int my_leaf_count();",
"public abstract String division();",
"public int generateRoshambo(){\n ;]\n\n }",
"double seBlesser();",
"@Override\n public void bfs() {\n\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public abstract int getSpotsNeeded();",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"@Override\npublic void processDirection() {\n\t\n}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public void leerPlanesDietas();",
"public int getWidth(){\n return width;\n }",
"long getMid();",
"long getMid();",
"int expand();",
"int getSpriteArraySize();",
"public void skystonePos4() {\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public abstract double getBaseWidth();",
"public String getRing();",
"Operations operations();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"double volume(){\n return width*height*depth;\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"int getSize ();",
"public int getTakeSpace() {\n return 0;\n }",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"int depth();",
"int depth();",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"@Override\n\tprotected void interr() {\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"String directsTo();",
"Parallelogram(){\n length = width = height = 0;\n }",
"public String getRingback();",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"static void pyramid(){\n\t}",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}"
] | [
"0.5488944",
"0.539108",
"0.5100269",
"0.50899094",
"0.5069534",
"0.50693107",
"0.5066066",
"0.5061679",
"0.50442266",
"0.5015036",
"0.5014165",
"0.5003645",
"0.49693072",
"0.49573815",
"0.49514338",
"0.49499622",
"0.49293876",
"0.4927479",
"0.4927194",
"0.4917197",
"0.4910142",
"0.49028116",
"0.49017558",
"0.48824358",
"0.48823863",
"0.48808914",
"0.48726714",
"0.48720384",
"0.48627836",
"0.4855107",
"0.4846415",
"0.4840881",
"0.48384443",
"0.48339868",
"0.4824593",
"0.48169047",
"0.48134097",
"0.48049474",
"0.48004088",
"0.47979838",
"0.47910494",
"0.47845936",
"0.47841045",
"0.47744447",
"0.47726467",
"0.4771947",
"0.47681993",
"0.47658527",
"0.47648957",
"0.4755676",
"0.4755676",
"0.4753695",
"0.4753143",
"0.4752926",
"0.4749071",
"0.47434685",
"0.47425613",
"0.47384033",
"0.47334346",
"0.47321105",
"0.4731059",
"0.4729468",
"0.4726481",
"0.47170335",
"0.4715351",
"0.4713396",
"0.47059113",
"0.4705429",
"0.4704641",
"0.4699736",
"0.4699736",
"0.4697979",
"0.46902624",
"0.46879697",
"0.46878612",
"0.46878",
"0.46871263",
"0.46857345",
"0.4682048",
"0.46810246",
"0.46779624",
"0.46697363",
"0.46669462",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46645147"
] | 0.0 | -1 |
/ / / / / / / / / / / / / | protected void selectVerticalAutoTickUnit(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge) {
/* */ DateTickUnit finalUnit;
/* 1407 */ TickUnitSource tickUnits = getStandardTickUnits();
/* 1408 */ double zero = valueToJava2D(0.0D, dataArea, edge);
/* */
/* */
/* 1411 */ double estimate1 = getRange().getLength() / 10.0D;
/* */
/* 1413 */ DateTickUnit candidate1 = (DateTickUnit)tickUnits.getCeilingTickUnit(estimate1);
/* 1414 */ double labelHeight1 = estimateMaximumTickLabelHeight(g2, candidate1);
/* 1415 */ double y1 = valueToJava2D(candidate1.getSize(), dataArea, edge);
/* 1416 */ double candidate1UnitHeight = Math.abs(y1 - zero);
/* */
/* */
/* */
/* 1420 */ double estimate2 = labelHeight1 / candidate1UnitHeight * candidate1.getSize();
/* */
/* 1422 */ DateTickUnit candidate2 = (DateTickUnit)tickUnits.getCeilingTickUnit(estimate2);
/* 1423 */ double labelHeight2 = estimateMaximumTickLabelHeight(g2, candidate2);
/* 1424 */ double y2 = valueToJava2D(candidate2.getSize(), dataArea, edge);
/* 1425 */ double unit2Height = Math.abs(y2 - zero);
/* */
/* */
/* */
/* 1429 */ if (labelHeight2 < unit2Height) {
/* 1430 */ finalUnit = candidate2;
/* */ } else {
/* */
/* 1433 */ finalUnit = (DateTickUnit)tickUnits.getLargerTickUnit(candidate2);
/* */ }
/* 1435 */ setTickUnit(finalUnit, false, false);
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"int getWidth() {return width;}",
"double passer();",
"public abstract void bepaalGrootte();",
"public Integer getWidth(){return this.width;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"int width();",
"public void getTile_B8();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public void gored() {\n\t\t\n\t}",
"public String ring();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"static int getNumPatterns() { return 64; }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"long getWidth();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public abstract String division();",
"int getTribeSize();",
"double getNewWidth();",
"public int my_leaf_count();",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"void mo33732Px();",
"@Override\n public void bfs() {\n\n }",
"double seBlesser();",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public abstract int getSpotsNeeded();",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public int getWidth(){\n return width;\n }",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public void leerPlanesDietas();",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public void skystonePos4() {\n }",
"double volume(){\n return width*height*depth;\n }",
"Operations operations();",
"public String getRing();",
"int expand();",
"public double getPerimiter(){return (2*height +2*width);}",
"public abstract double getBaseWidth();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"long getMid();",
"long getMid();",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"int getSpriteArraySize();",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"int depth();",
"int depth();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"String directsTo();",
"Parallelogram(){\n length = width = height = 0;\n }",
"static void pyramid(){\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public String getRingback();",
"@Override\n\tprotected void interr() {\n\t}",
"public int getTakeSpace() {\n return 0;\n }",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"public void SubRect(){\n\t\n}",
"int getSize ();"
] | [
"0.55104524",
"0.54136074",
"0.51382613",
"0.511921",
"0.5069645",
"0.50632066",
"0.5061232",
"0.50567037",
"0.50560975",
"0.50190926",
"0.50086707",
"0.50070775",
"0.49875844",
"0.4968691",
"0.49646097",
"0.4947161",
"0.4947018",
"0.49441117",
"0.49407196",
"0.4928466",
"0.49275073",
"0.49161938",
"0.48980555",
"0.48958352",
"0.48763698",
"0.48674774",
"0.48627993",
"0.48618507",
"0.48581234",
"0.48564452",
"0.48533896",
"0.48423022",
"0.48398826",
"0.4830562",
"0.4829852",
"0.4826455",
"0.48149732",
"0.47983614",
"0.4795821",
"0.4788122",
"0.4787033",
"0.47857547",
"0.477811",
"0.47777838",
"0.47773185",
"0.47716594",
"0.47687408",
"0.4767555",
"0.47666657",
"0.4758684",
"0.47540286",
"0.47495034",
"0.47482887",
"0.47468567",
"0.4746059",
"0.47443146",
"0.47432604",
"0.47399372",
"0.47395262",
"0.47395262",
"0.47393134",
"0.47377515",
"0.47242114",
"0.47205007",
"0.47204065",
"0.47149622",
"0.47073272",
"0.4706161",
"0.47017768",
"0.47002885",
"0.47002885",
"0.46916506",
"0.4688795",
"0.4688655",
"0.4687753",
"0.46866032",
"0.4685604",
"0.46824268",
"0.46817905",
"0.46811056",
"0.4677107",
"0.4671675",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4668958",
"0.46668708"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / / / / / | private double estimateMaximumTickLabelWidth(Graphics2D g2, DateTickUnit unit) {
/* 1455 */ RectangleInsets tickLabelInsets = getTickLabelInsets();
/* 1456 */ double result = tickLabelInsets.getLeft() + tickLabelInsets.getRight();
/* */
/* 1458 */ Font tickLabelFont = getTickLabelFont();
/* 1459 */ FontRenderContext frc = g2.getFontRenderContext();
/* 1460 */ LineMetrics lm = tickLabelFont.getLineMetrics("ABCxyz", frc);
/* 1461 */ if (isVerticalTickLabels()) {
/* */
/* */
/* 1464 */ result += lm.getHeight();
/* */ } else {
/* */ String upperStr, lowerStr;
/* */
/* 1468 */ DateRange range = (DateRange)getRange();
/* 1469 */ Date lower = range.getLowerDate();
/* 1470 */ Date upper = range.getUpperDate();
/* */
/* 1472 */ DateFormat formatter = getDateFormatOverride();
/* 1473 */ if (formatter != null) {
/* 1474 */ lowerStr = formatter.format(lower);
/* 1475 */ upperStr = formatter.format(upper);
/* */ } else {
/* */
/* 1478 */ lowerStr = unit.dateToString(lower);
/* 1479 */ upperStr = unit.dateToString(upper);
/* */ }
/* 1481 */ FontMetrics fm = g2.getFontMetrics(tickLabelFont);
/* 1482 */ double w1 = fm.stringWidth(lowerStr);
/* 1483 */ double w2 = fm.stringWidth(upperStr);
/* 1484 */ result += Math.max(w1, w2);
/* */ }
/* */
/* 1487 */ return result;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"public Integer getWidth(){return this.width;}",
"static int getNumPatterns() { return 64; }",
"int getWidth() {return width;}",
"int width();",
"public abstract void bepaalGrootte();",
"public void getTile_B8();",
"public void divide() {\n\t\t\n\t}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void gored() {\n\t\t\n\t}",
"int getTribeSize();",
"private int rightChild(int i){return 2*i+2;}",
"void mo33732Px();",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"long getWidth();",
"double seBlesser();",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public String ring();",
"public int generateRoshambo(){\n ;]\n\n }",
"double getNewWidth();",
"public abstract int getSpotsNeeded();",
"public double getWidth() { return _width<0? -_width : _width; }",
"public static int size_parent() {\n return (8 / 8);\n }",
"int getSize ();",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public String toString(){ return \"DIV\";}",
"public int my_leaf_count();",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public static int size_parentId() {\n return (16 / 8);\n }",
"int getSpriteArraySize();",
"public int getTakeSpace() {\n return 0;\n }",
"@Override\n public void bfs() {\n\n }",
"long getMid();",
"long getMid();",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public void skystonePos4() {\n }",
"int expand();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"public void leerPlanesDietas();",
"public int length() { return 1+maxidx; }",
"public abstract String division();",
"@Override\n\tprotected void interr() {\n\t}",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public int getWidth(){\n return width;\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract double getBaseWidth();",
"public void method_4270() {}",
"private void poetries() {\n\n\t}",
"public int getWidth()\n {return width;}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"int align();",
"public String getRing();",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"public static int offset_parent() {\n return (40 / 8);\n }",
"static int size_of_inx(String passed){\n\t\treturn 1;\n\t}",
"Operations operations();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"static int size_of_xra(String passed){\n\t\treturn 1;\n\t}",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}",
"int depth();",
"int depth();",
"public static void enrichmentMaxLowMem(String szinputsegment,String szinputcoorddir,String szinputcoordlist,\n\t\t\t\t int noffsetleft, int noffsetright,\n int nbinsize, boolean bcenter,boolean bunique, boolean busesignal,String szcolfields,\n\t\t\t\t boolean bbaseres, String szoutfile,boolean bcolscaleheat,Color theColor,String sztitle, \n\t\t\t\t\t String szlabelmapping, boolean bprintimage, boolean bstringlabels, boolean bbrowser) throws IOException\n {\n\n\n //for each enrichment category and state label gives a count of how often\n //overlapped by a segment optionally with signal\n\n String szLine;\n String[] files;\n\n if (szinputcoordlist == null)\n {\n File dir = new File(szinputcoorddir);\n\t //we don't have a specific list of files to include\n\t //will use all files in the directory\n\t if (dir.isDirectory())\t \n\t {\n\t //throw new IllegalArgumentException(szinputcoorddir+\" is not a directory!\");\n\t //added in v1.11 to skip hidden files\n\t String[] filesWithHidden = dir.list();\n\t int nnonhiddencount = 0;\n\t for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t\t{\n\t\t nnonhiddencount++;\n\t\t}\n\t }\t \n\n\t int nactualindex = 0;\n\t files = new String[nnonhiddencount];// dir.list(); \n\t if (nnonhiddencount == 0)\n\t {\n\t throw new IllegalArgumentException(\"No files found in \"+szinputcoorddir);\n\t }\n\n for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t {\n\t files[nactualindex] = filesWithHidden[nfile];\n\t\t nactualindex++;\n\t }\n\t }\n\t Arrays.sort(files);\n\t szinputcoorddir += \"/\";\n\t }\n\t else\n\t {\n\t files = new String[1];\n\t files[0] = szinputcoorddir;\n\t szinputcoorddir = \"\";\n\t }\n }\n else\n {\n szinputcoorddir += \"/\";\n\t //store in files all file names given in szinputcoordlist\n\t BufferedReader brfiles = Util.getBufferedReader(szinputcoordlist);\n\t ArrayList alfiles = new ArrayList();\n\t while ((szLine = brfiles.readLine())!=null)\n\t {\n\t alfiles.add(szLine);\n\t }\n\t brfiles.close(); \n\t files = new String[alfiles.size()];\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t files[nfile] = (String) alfiles.get(nfile);\n\t }\n }\n\t\n ArrayList alchromindex = new ArrayList(); //stores the index of the chromosome\n\t\n if (busesignal)\n {\n bunique = false;\n }\n\n HashMap hmchromMax = new HashMap(); //maps chromosome to the maximum index\n HashMap hmchromToIndex = new HashMap(); //maps chromosome to an index\n HashMap hmLabelToIndex = new HashMap(); //maps label to an index\n HashMap hmIndexToLabel = new HashMap(); //maps index string to label\n int nmaxlabel=0; // the maximum label found\n String szlabel=\"\";\n boolean busedunderscore = false;\n //reads in the segmentation recording maximum position for each chromosome and\n //maximum label\n BufferedReader brinputsegment = Util.getBufferedReader(szinputsegment);\n while ((szLine = brinputsegment.readLine())!=null)\n {\n\n\t //added v1.24\n\t if (bbrowser)\n\t {\n\t if ((szLine.toLowerCase(Locale.ENGLISH).startsWith(\"browser\"))||(szLine.toLowerCase(Locale.ENGLISH).startsWith(\"track\")))\n\t {\n\t continue;\n\t }\n\t }\n\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n }\n\n\t //added in v1.24\n\t int numtokens = st.countTokens();\n\t if (numtokens == 0)\n\t {\n\t //skip blank lines\n\t continue;\n\t }\n\t else if (numtokens < 4)\n\t {\n\t throw new IllegalArgumentException(\"Line \"+szLine+\" in \"+szinputsegment+\" only had \"+numtokens+\" token(s). Expecting at least 4\");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\t if (nbegincoord % nbinsize != 0)\n\t {\n\t\tthrow new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with coordinates in input segment \"+szLine+\". -b binsize should match parameter value to LearnModel or \"+\n \"MakeSegmentation used to produce segmentation. If segmentation is derived from a lift over from another assembly, then the '-b 1' option should be used\");\n\t }\n //int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n szlabel = st.nextToken().trim();\n\t short slabel;\n\n\n if (bstringlabels)\n\t {\n\n\t int nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t if (nunderscoreindex >=0)\n\t {\n\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t\t busedunderscore = true;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t}\n catch (NumberFormatException ex)\n\t\t{\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t if (slabel > nmaxlabel)\n\t\t {\n\t\t nmaxlabel = slabel;\n\t\t }\n\t\t busedunderscore = true;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t if (busedunderscore)\n\t\t {\n\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t }\n\t\t }\n\t\t}\n\t }\n\n\t if (!busedunderscore)\n\t {\n //handle string labels\n\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\n\t if (objshort == null)\n\t {\n\t nmaxlabel = hmLabelToIndex.size()+1;\n\t slabel = (short) nmaxlabel;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n \t hmIndexToLabel.put(\"\"+nmaxlabel, szlabel);\n\t }\n\t //else\n\t //{\n\t // slabel = ((Short) objshort).shortValue();\n\t //}\n\t }\n\t }\n\t else\n\t {\n try\n\t {\n slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t{\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t}\n\t catch (NumberFormatException ex2)\n\t {\n throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t\t}\n\t }\n\n\t //alsegments.add(new SegmentRec(szchrom,nbegin,nend,slabel));\n\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t }\n\n\t Integer objMax = (Integer) hmchromMax.get(szchrom);\n\t if (objMax == null)\n\t {\n\t //System.out.println(\"on chrom \"+szchrom);\n\t hmchromMax.put(szchrom,Integer.valueOf(nend));\n\t hmchromToIndex.put(szchrom, Integer.valueOf(hmchromToIndex.size()));\n\t alchromindex.add(szchrom);\n\t }\n\t else\n\t {\n\t int ncurrmax = objMax.intValue();\n\t if (ncurrmax < nend)\n\t {\n\t hmchromMax.put(szchrom, Integer.valueOf(nend));\t\t \n\t }\n\t }\n }\n brinputsegment.close();\n\n double[][] tallyoverlaplabel = new double[files.length][nmaxlabel+1];\n double[] dsumoverlaplabel = new double[files.length];\n double[] tallylabel = new double[nmaxlabel+1];\n\n int numchroms = alchromindex.size();\n\n for (int nchrom = 0; nchrom < numchroms; nchrom++)\n {\n //ArrayList alsegments = new ArrayList(); //stores all the segments\n\t String szchromwant = (String) alchromindex.get(nchrom);\n\t //System.out.println(\"processing \"+szchromwant);\n\t int nsize = ((Integer) hmchromMax.get(szchromwant)).intValue()+1;\n\t short[] labels = new short[nsize]; //stores the hard label assignments\n\n\t //sets to -1 so missing segments not counted as label 0\n\t for (int npos = 0; npos < nsize; npos++)\n\t {\n labels[npos] = -1;\n\t }\n\n\t brinputsegment = Util.getBufferedReader(szinputsegment);\n\t while ((szLine = brinputsegment.readLine())!=null)\n\t {\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n\t st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t if (!szchrom.equals(szchromwant)) \n\t continue;\n\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\n\t //if (nbegincoord % nbinsize != 0)\n\t // {\n\t //\t throw new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with input segment \"+szLine);\n\t //}\n\t int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n\t szlabel = st.nextToken().trim();\n\t short slabel = -1;\n\n\t if (bstringlabels)\n\t {\n\t\tint nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t\tif (nunderscoreindex >=0)\n\t\t{\n\t\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t busedunderscore = true;\n\t\t }\n catch (NumberFormatException ex)\n\t\t {\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t\t busedunderscore = true;\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t\t if (busedunderscore)\n\t\t\t {\n\t\t\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t\t }\n\t\t }\n\t\t }\n\t\t}\n\n\t\tif (!busedunderscore)\n\t\t{\n\t //handle string labels\n\t\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\t\t slabel = ((Short) objshort).shortValue();\n\t\t}\n\t }\n\t else\n\t {\n try\n\t {\n\t slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t {\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t }\n\t\t}\n\t }\n\n\t if (nbegin < 0)\n\t {\n\t nbegin = 0;\n\t }\n\n\t if (nend >= labels.length)\n\t {\n\t nend = labels.length - 1;\n\t }\n\n\t //SegmentRec theSegmentRec = (SegmentRec) alsegments.get(nindex);\n\t //int nbegin = theSegmentRec.nbegin;\n\t //int nend = theSegmentRec.nend;\n\t //short slabel = theSegmentRec.slabel;\n\t //int nchrom = ((Integer) hmchromToIndex.get(theSegmentRec.szchrom)).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\t //stores each label position in the genome\n\t for (int npos = nbegin; npos <= nend; npos++)\n\t {\n\t labels[npos] = slabel;\n\t //tallylabel[slabel]++; \n\t }\n\t tallylabel[slabel] += (nend-nbegin)+1;\n\t }\n\n\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t int nchromindex = 0;\n\t int nstartindex = 1;\n\t int nendindex = 2;\n\t int nsignalindex = 3;\n\n\t if (szcolfields != null)\n\t {\n\t StringTokenizer stcolfields = new StringTokenizer(szcolfields,\",\");\n\t\tnchromindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnstartindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnendindex = Integer.parseInt(stcolfields.nextToken().trim());\n\n\t if (busesignal)\n\t {\n\t nsignalindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t }\n\t }\n\n \t \n if (bunique)\n\t {\n\t //Iterator itrChroms = hmchromToIndex.entrySet().iterator();\n\t //while (itrChroms.hasNext())\n\t //{\n\t //Map.Entry pairs = (Map.Entry) itrChroms.next();\n\t //String szchrom =(String) pairs.getKey();\n\t //int nchrom = ((Integer) pairs.getValue()).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t //reading in the coordinates to overlap with\n BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t ArrayList alrecs = new ArrayList();\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\t\t if (nstartindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nstartindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n if (nendindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nendindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n\t String szcurrchrom = szLineA[nchromindex];\n\t \t if (szchromwant.equals(szcurrchrom))\n\t\t {\n\t\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t\t if (bcenter)\n\t\t {\n\t\t nbeginactual = (nbeginactual+nendactual)/2;\n\t\t nendactual = nbeginactual;\n\t\t }\n\t\t alrecs.add(new Interval(nbeginactual,nendactual));\n\t\t }\n\t\t}\n\t brcoords.close();\n\n\t\tObject[] alrecA = alrecs.toArray();\n\t\tArrays.sort(alrecA,new IntervalCompare());\n\n\t\tboolean bclosed = true;\n\t int nintervalstart = -1;\n\t\tint nintervalend = -1;\n\t\tboolean bdone = false;\n\n\t\tfor (int nindex = 0; (nindex <= alrecA.length&&(alrecA.length>0)); nindex++)\n\t\t{\n\t\t int ncurrstart = -1;\n\t\t int ncurrend = -1;\n\n\t\t if (nindex == alrecA.length)\n\t\t {\n\t\t bdone = true;\n\t\t }\n\t\t else \n\t\t {\n\t\t ncurrstart = ((Interval) alrecA[nindex]).nstart;\n\t\t ncurrend = ((Interval) alrecA[nindex]).nend;\n if (nindex == 0)\n\t\t {\n\t\t nintervalstart = ncurrstart;\n\t\t\t nintervalend = ncurrend;\n\t\t }\n\t\t else if (ncurrstart <= nintervalend)\n\t\t {\n\t\t //this read is still in the active interval\n\t\t //extending the current active interval \n\t\t if (ncurrend > nintervalend)\n\t\t {\n\t\t nintervalend = ncurrend;\n\t\t }\n\t\t }\t\t \n\t\t else \n\t\t {\n\t\t //just finished the current active interval\n\t\t bdone = true;\n\t\t }\n\t\t }\n\n\t\t if (bdone)\n\t {\t\t \t\t\t\t\t\t\n\t int nbegin = nintervalstart/nbinsize;\n\t\t int nend = nintervalend/nbinsize;\n\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\n\t for (int nbin = nbegin; nbin <= nend; nbin++)\n\t {\n\t\t if (labels[nbin]>=0)\n\t\t {\n\t\t tallyoverlaplabel_nfile[labels[nbin]]++;\n\t\t }\n\t\t }\n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nintervalstart - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nintervalend-1)/(double) nbinsize;\n\t\t\t \n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t { \t\t\t \n\t\t //only counted the bases if nbegin was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nend]]-=dendfrac;\n\t\t\t }\n\t\t }\t\t\t \n\n\t\t nintervalstart = ncurrstart; \n\t\t nintervalend = ncurrend;\n\t\t bdone = false;\n\t\t }\t \n\t\t}\n\t\t //}\n\t }\n\t else\n\t {\n\t BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\n\t String szchrom = szLineA[nchromindex];\n\t\t if (!szchromwant.equals(szchrom))\n\t\t continue;\n\n\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t int nbegin = nbeginactual/nbinsize;\n\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t int nend = nendactual/nbinsize;\n\n\t\t double damount;\n\t if ((busesignal)&&(nsignalindex < szLineA.length))\n\t {\n\t \t damount = Double.parseDouble(szLineA[nsignalindex]);\n\t\t }\n\t else\n\t {\n\t damount = 1;\n\t\t }\n\n\t //Integer objChrom = (Integer) hmchromToIndex.get(szchrom);\n\t //if (objChrom != null)\n\t\t //{\n\t\t //we have the chromosome corresponding to this read\n\t //int nchrom = objChrom.intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t\t if (bcenter)\n\t {\n\t //using the center position of the interval only\n\t\t int ncenter = (nbeginactual+nendactual)/(2*nbinsize);\n\t\t if ((ncenter < labels.length)&&(labels[ncenter]>=0))\n\t\t {\n\t tallyoverlaplabel_nfile[labels[ncenter]]+=damount;\t\t\t \n\t\t }\n\t\t }\n\t else\n\t {\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\t\t //using the full interval range\n\t\t //no requirement on uniqueness\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\t\t\t\n\t for (int nindex = nbegin; nindex <= nend; nindex++)\n\t {\n\t\t if (labels[nindex]>=0)\n\t\t {\n\t\t //increment overlap tally not checking for uniqueness\n \t tallyoverlaplabel_nfile[labels[nindex]]+=damount;\n\t\t\t }\n\t\t }\t \n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nbeginactual - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nendactual-1)/(double) nbinsize;\n\n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t\t { \n\t\t\t //only counted the bases if nbegin was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=damount*dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nend]]-=damount*dendfrac;\n\t\t\t }\t\t\t \n\t\t }\n\t\t }\n\t\t}\t \n\t\tbrcoords.close();\n\t }\n\t }\n }\n\n\n for (int nfile = 0; nfile < files.length; nfile++)\n {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t for (int nindex = 0; nindex < tallyoverlaplabel_nfile.length; nindex++)\n {\n dsumoverlaplabel[nfile] += tallyoverlaplabel_nfile[nindex];\n }\n\t\t\n if (dsumoverlaplabel[nfile] < EPSILONOVERLAP) // 0.00000001)\n {\n\t throw new IllegalArgumentException(\"Coordinates in \"+files[nfile]+\" not assigned to any state. Check if chromosome naming in \"+files[nfile]+\n\t\t\t\t\t\t \" match those in the segmentation file.\");\n\t }\n\t}\n\n\toutputenrichment(szoutfile, files,tallyoverlaplabel, tallylabel, dsumoverlaplabel,theColor,\n\t\t\t bcolscaleheat,ChromHMM.convertCharOrderToStringOrder(szlabel.charAt(0)),sztitle,0,szlabelmapping,szlabel.charAt(0), bprintimage, bstringlabels, hmIndexToLabel);\n }",
"int size() {\n int basic = ((offset() + 4) & ~3) - offset() + 8;\n /* Add 8*number of offsets */\n return basic + targetsOp.length*8;\n }",
"public int width();",
"public int get_resource_distance() {\n return 1;\r\n }",
"public String getRingback();",
"public double width() { return _width; }",
"double volume(){\n return width*height*depth;\n }",
"@Override\n public int getSize() {\n return 1;\n }",
"String directsTo();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public double getPerimiter(){return (2*height +2*width);}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"Parallelogram(){\n length = width = height = 0;\n }",
"public void Exterior() {\n\t\t\r\n\t}",
"int getWidth()\n {\n return width;\n }",
"int fixedSize();",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();"
] | [
"0.53626627",
"0.52676916",
"0.51017624",
"0.5089617",
"0.5058719",
"0.5054031",
"0.504339",
"0.5011902",
"0.49822062",
"0.49722674",
"0.4964525",
"0.4962352",
"0.49468598",
"0.49372888",
"0.49244726",
"0.49200714",
"0.49103102",
"0.4905671",
"0.4900624",
"0.48783353",
"0.48729983",
"0.48645315",
"0.48622584",
"0.48613206",
"0.4861009",
"0.4850134",
"0.48462048",
"0.48432997",
"0.48365924",
"0.4835879",
"0.48336193",
"0.48280495",
"0.48244116",
"0.48209733",
"0.48133308",
"0.48062333",
"0.4791307",
"0.47860003",
"0.4783737",
"0.47823873",
"0.47820544",
"0.47811735",
"0.47811735",
"0.47809786",
"0.4779606",
"0.47737315",
"0.47620413",
"0.4760028",
"0.4757864",
"0.47548673",
"0.47489443",
"0.47436598",
"0.47397557",
"0.47373873",
"0.47336385",
"0.4732792",
"0.47316763",
"0.4727641",
"0.472417",
"0.47233966",
"0.47227037",
"0.47187963",
"0.47133774",
"0.47025496",
"0.47014928",
"0.46978614",
"0.46962136",
"0.4693277",
"0.4691786",
"0.46896434",
"0.46877414",
"0.4686492",
"0.46862715",
"0.4685675",
"0.46790174",
"0.4670373",
"0.46701598",
"0.4667186",
"0.4667186",
"0.466572",
"0.46653098",
"0.46627504",
"0.46611503",
"0.46599907",
"0.46597192",
"0.46538913",
"0.46535027",
"0.46531802",
"0.46527246",
"0.46526092",
"0.46495834",
"0.4648454",
"0.464842",
"0.464526",
"0.46447435",
"0.4644639",
"0.4643977",
"0.46416363",
"0.46416363",
"0.46416363",
"0.46416363"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / / / / / | private double estimateMaximumTickLabelHeight(Graphics2D g2, DateTickUnit unit) {
/* 1507 */ RectangleInsets tickLabelInsets = getTickLabelInsets();
/* 1508 */ double result = tickLabelInsets.getTop() + tickLabelInsets.getBottom();
/* */
/* 1510 */ Font tickLabelFont = getTickLabelFont();
/* 1511 */ FontRenderContext frc = g2.getFontRenderContext();
/* 1512 */ LineMetrics lm = tickLabelFont.getLineMetrics("ABCxyz", frc);
/* 1513 */ if (!isVerticalTickLabels()) {
/* */
/* */
/* 1516 */ result += lm.getHeight();
/* */ } else {
/* */ String upperStr, lowerStr;
/* */
/* 1520 */ DateRange range = (DateRange)getRange();
/* 1521 */ Date lower = range.getLowerDate();
/* 1522 */ Date upper = range.getUpperDate();
/* */
/* 1524 */ DateFormat formatter = getDateFormatOverride();
/* 1525 */ if (formatter != null) {
/* 1526 */ lowerStr = formatter.format(lower);
/* 1527 */ upperStr = formatter.format(upper);
/* */ } else {
/* */
/* 1530 */ lowerStr = unit.dateToString(lower);
/* 1531 */ upperStr = unit.dateToString(upper);
/* */ }
/* 1533 */ FontMetrics fm = g2.getFontMetrics(tickLabelFont);
/* 1534 */ double w1 = fm.stringWidth(lowerStr);
/* 1535 */ double w2 = fm.stringWidth(upperStr);
/* 1536 */ result += Math.max(w1, w2);
/* */ }
/* */
/* 1539 */ return result;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"public Integer getWidth(){return this.width;}",
"static int getNumPatterns() { return 64; }",
"int getWidth() {return width;}",
"int width();",
"public abstract void bepaalGrootte();",
"public void getTile_B8();",
"public void divide() {\n\t\t\n\t}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void gored() {\n\t\t\n\t}",
"int getTribeSize();",
"private int rightChild(int i){return 2*i+2;}",
"void mo33732Px();",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"long getWidth();",
"double seBlesser();",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public String ring();",
"public int generateRoshambo(){\n ;]\n\n }",
"double getNewWidth();",
"public abstract int getSpotsNeeded();",
"public double getWidth() { return _width<0? -_width : _width; }",
"public static int size_parent() {\n return (8 / 8);\n }",
"int getSize ();",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public String toString(){ return \"DIV\";}",
"public int my_leaf_count();",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public static int size_parentId() {\n return (16 / 8);\n }",
"int getSpriteArraySize();",
"public int getTakeSpace() {\n return 0;\n }",
"long getMid();",
"long getMid();",
"@Override\n public void bfs() {\n\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public void skystonePos4() {\n }",
"int expand();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"public void leerPlanesDietas();",
"public int length() { return 1+maxidx; }",
"public abstract String division();",
"@Override\n\tprotected void interr() {\n\t}",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public int getWidth(){\n return width;\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract double getBaseWidth();",
"public void method_4270() {}",
"private void poetries() {\n\n\t}",
"public int getWidth()\n {return width;}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"int align();",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"public String getRing();",
"static int size_of_inx(String passed){\n\t\treturn 1;\n\t}",
"public static int offset_parent() {\n return (40 / 8);\n }",
"Operations operations();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"static int size_of_xra(String passed){\n\t\treturn 1;\n\t}",
"@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"int depth();",
"int depth();",
"public static void enrichmentMaxLowMem(String szinputsegment,String szinputcoorddir,String szinputcoordlist,\n\t\t\t\t int noffsetleft, int noffsetright,\n int nbinsize, boolean bcenter,boolean bunique, boolean busesignal,String szcolfields,\n\t\t\t\t boolean bbaseres, String szoutfile,boolean bcolscaleheat,Color theColor,String sztitle, \n\t\t\t\t\t String szlabelmapping, boolean bprintimage, boolean bstringlabels, boolean bbrowser) throws IOException\n {\n\n\n //for each enrichment category and state label gives a count of how often\n //overlapped by a segment optionally with signal\n\n String szLine;\n String[] files;\n\n if (szinputcoordlist == null)\n {\n File dir = new File(szinputcoorddir);\n\t //we don't have a specific list of files to include\n\t //will use all files in the directory\n\t if (dir.isDirectory())\t \n\t {\n\t //throw new IllegalArgumentException(szinputcoorddir+\" is not a directory!\");\n\t //added in v1.11 to skip hidden files\n\t String[] filesWithHidden = dir.list();\n\t int nnonhiddencount = 0;\n\t for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t\t{\n\t\t nnonhiddencount++;\n\t\t}\n\t }\t \n\n\t int nactualindex = 0;\n\t files = new String[nnonhiddencount];// dir.list(); \n\t if (nnonhiddencount == 0)\n\t {\n\t throw new IllegalArgumentException(\"No files found in \"+szinputcoorddir);\n\t }\n\n for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t {\n\t files[nactualindex] = filesWithHidden[nfile];\n\t\t nactualindex++;\n\t }\n\t }\n\t Arrays.sort(files);\n\t szinputcoorddir += \"/\";\n\t }\n\t else\n\t {\n\t files = new String[1];\n\t files[0] = szinputcoorddir;\n\t szinputcoorddir = \"\";\n\t }\n }\n else\n {\n szinputcoorddir += \"/\";\n\t //store in files all file names given in szinputcoordlist\n\t BufferedReader brfiles = Util.getBufferedReader(szinputcoordlist);\n\t ArrayList alfiles = new ArrayList();\n\t while ((szLine = brfiles.readLine())!=null)\n\t {\n\t alfiles.add(szLine);\n\t }\n\t brfiles.close(); \n\t files = new String[alfiles.size()];\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t files[nfile] = (String) alfiles.get(nfile);\n\t }\n }\n\t\n ArrayList alchromindex = new ArrayList(); //stores the index of the chromosome\n\t\n if (busesignal)\n {\n bunique = false;\n }\n\n HashMap hmchromMax = new HashMap(); //maps chromosome to the maximum index\n HashMap hmchromToIndex = new HashMap(); //maps chromosome to an index\n HashMap hmLabelToIndex = new HashMap(); //maps label to an index\n HashMap hmIndexToLabel = new HashMap(); //maps index string to label\n int nmaxlabel=0; // the maximum label found\n String szlabel=\"\";\n boolean busedunderscore = false;\n //reads in the segmentation recording maximum position for each chromosome and\n //maximum label\n BufferedReader brinputsegment = Util.getBufferedReader(szinputsegment);\n while ((szLine = brinputsegment.readLine())!=null)\n {\n\n\t //added v1.24\n\t if (bbrowser)\n\t {\n\t if ((szLine.toLowerCase(Locale.ENGLISH).startsWith(\"browser\"))||(szLine.toLowerCase(Locale.ENGLISH).startsWith(\"track\")))\n\t {\n\t continue;\n\t }\n\t }\n\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n }\n\n\t //added in v1.24\n\t int numtokens = st.countTokens();\n\t if (numtokens == 0)\n\t {\n\t //skip blank lines\n\t continue;\n\t }\n\t else if (numtokens < 4)\n\t {\n\t throw new IllegalArgumentException(\"Line \"+szLine+\" in \"+szinputsegment+\" only had \"+numtokens+\" token(s). Expecting at least 4\");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\t if (nbegincoord % nbinsize != 0)\n\t {\n\t\tthrow new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with coordinates in input segment \"+szLine+\". -b binsize should match parameter value to LearnModel or \"+\n \"MakeSegmentation used to produce segmentation. If segmentation is derived from a lift over from another assembly, then the '-b 1' option should be used\");\n\t }\n //int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n szlabel = st.nextToken().trim();\n\t short slabel;\n\n\n if (bstringlabels)\n\t {\n\n\t int nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t if (nunderscoreindex >=0)\n\t {\n\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t\t busedunderscore = true;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t}\n catch (NumberFormatException ex)\n\t\t{\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t if (slabel > nmaxlabel)\n\t\t {\n\t\t nmaxlabel = slabel;\n\t\t }\n\t\t busedunderscore = true;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t if (busedunderscore)\n\t\t {\n\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t }\n\t\t }\n\t\t}\n\t }\n\n\t if (!busedunderscore)\n\t {\n //handle string labels\n\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\n\t if (objshort == null)\n\t {\n\t nmaxlabel = hmLabelToIndex.size()+1;\n\t slabel = (short) nmaxlabel;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n \t hmIndexToLabel.put(\"\"+nmaxlabel, szlabel);\n\t }\n\t //else\n\t //{\n\t // slabel = ((Short) objshort).shortValue();\n\t //}\n\t }\n\t }\n\t else\n\t {\n try\n\t {\n slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t{\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t}\n\t catch (NumberFormatException ex2)\n\t {\n throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t\t}\n\t }\n\n\t //alsegments.add(new SegmentRec(szchrom,nbegin,nend,slabel));\n\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t }\n\n\t Integer objMax = (Integer) hmchromMax.get(szchrom);\n\t if (objMax == null)\n\t {\n\t //System.out.println(\"on chrom \"+szchrom);\n\t hmchromMax.put(szchrom,Integer.valueOf(nend));\n\t hmchromToIndex.put(szchrom, Integer.valueOf(hmchromToIndex.size()));\n\t alchromindex.add(szchrom);\n\t }\n\t else\n\t {\n\t int ncurrmax = objMax.intValue();\n\t if (ncurrmax < nend)\n\t {\n\t hmchromMax.put(szchrom, Integer.valueOf(nend));\t\t \n\t }\n\t }\n }\n brinputsegment.close();\n\n double[][] tallyoverlaplabel = new double[files.length][nmaxlabel+1];\n double[] dsumoverlaplabel = new double[files.length];\n double[] tallylabel = new double[nmaxlabel+1];\n\n int numchroms = alchromindex.size();\n\n for (int nchrom = 0; nchrom < numchroms; nchrom++)\n {\n //ArrayList alsegments = new ArrayList(); //stores all the segments\n\t String szchromwant = (String) alchromindex.get(nchrom);\n\t //System.out.println(\"processing \"+szchromwant);\n\t int nsize = ((Integer) hmchromMax.get(szchromwant)).intValue()+1;\n\t short[] labels = new short[nsize]; //stores the hard label assignments\n\n\t //sets to -1 so missing segments not counted as label 0\n\t for (int npos = 0; npos < nsize; npos++)\n\t {\n labels[npos] = -1;\n\t }\n\n\t brinputsegment = Util.getBufferedReader(szinputsegment);\n\t while ((szLine = brinputsegment.readLine())!=null)\n\t {\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n\t st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t if (!szchrom.equals(szchromwant)) \n\t continue;\n\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\n\t //if (nbegincoord % nbinsize != 0)\n\t // {\n\t //\t throw new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with input segment \"+szLine);\n\t //}\n\t int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n\t szlabel = st.nextToken().trim();\n\t short slabel = -1;\n\n\t if (bstringlabels)\n\t {\n\t\tint nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t\tif (nunderscoreindex >=0)\n\t\t{\n\t\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t busedunderscore = true;\n\t\t }\n catch (NumberFormatException ex)\n\t\t {\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t\t busedunderscore = true;\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t\t if (busedunderscore)\n\t\t\t {\n\t\t\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t\t }\n\t\t }\n\t\t }\n\t\t}\n\n\t\tif (!busedunderscore)\n\t\t{\n\t //handle string labels\n\t\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\t\t slabel = ((Short) objshort).shortValue();\n\t\t}\n\t }\n\t else\n\t {\n try\n\t {\n\t slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t {\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t }\n\t\t}\n\t }\n\n\t if (nbegin < 0)\n\t {\n\t nbegin = 0;\n\t }\n\n\t if (nend >= labels.length)\n\t {\n\t nend = labels.length - 1;\n\t }\n\n\t //SegmentRec theSegmentRec = (SegmentRec) alsegments.get(nindex);\n\t //int nbegin = theSegmentRec.nbegin;\n\t //int nend = theSegmentRec.nend;\n\t //short slabel = theSegmentRec.slabel;\n\t //int nchrom = ((Integer) hmchromToIndex.get(theSegmentRec.szchrom)).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\t //stores each label position in the genome\n\t for (int npos = nbegin; npos <= nend; npos++)\n\t {\n\t labels[npos] = slabel;\n\t //tallylabel[slabel]++; \n\t }\n\t tallylabel[slabel] += (nend-nbegin)+1;\n\t }\n\n\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t int nchromindex = 0;\n\t int nstartindex = 1;\n\t int nendindex = 2;\n\t int nsignalindex = 3;\n\n\t if (szcolfields != null)\n\t {\n\t StringTokenizer stcolfields = new StringTokenizer(szcolfields,\",\");\n\t\tnchromindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnstartindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnendindex = Integer.parseInt(stcolfields.nextToken().trim());\n\n\t if (busesignal)\n\t {\n\t nsignalindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t }\n\t }\n\n \t \n if (bunique)\n\t {\n\t //Iterator itrChroms = hmchromToIndex.entrySet().iterator();\n\t //while (itrChroms.hasNext())\n\t //{\n\t //Map.Entry pairs = (Map.Entry) itrChroms.next();\n\t //String szchrom =(String) pairs.getKey();\n\t //int nchrom = ((Integer) pairs.getValue()).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t //reading in the coordinates to overlap with\n BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t ArrayList alrecs = new ArrayList();\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\t\t if (nstartindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nstartindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n if (nendindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nendindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n\t String szcurrchrom = szLineA[nchromindex];\n\t \t if (szchromwant.equals(szcurrchrom))\n\t\t {\n\t\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t\t if (bcenter)\n\t\t {\n\t\t nbeginactual = (nbeginactual+nendactual)/2;\n\t\t nendactual = nbeginactual;\n\t\t }\n\t\t alrecs.add(new Interval(nbeginactual,nendactual));\n\t\t }\n\t\t}\n\t brcoords.close();\n\n\t\tObject[] alrecA = alrecs.toArray();\n\t\tArrays.sort(alrecA,new IntervalCompare());\n\n\t\tboolean bclosed = true;\n\t int nintervalstart = -1;\n\t\tint nintervalend = -1;\n\t\tboolean bdone = false;\n\n\t\tfor (int nindex = 0; (nindex <= alrecA.length&&(alrecA.length>0)); nindex++)\n\t\t{\n\t\t int ncurrstart = -1;\n\t\t int ncurrend = -1;\n\n\t\t if (nindex == alrecA.length)\n\t\t {\n\t\t bdone = true;\n\t\t }\n\t\t else \n\t\t {\n\t\t ncurrstart = ((Interval) alrecA[nindex]).nstart;\n\t\t ncurrend = ((Interval) alrecA[nindex]).nend;\n if (nindex == 0)\n\t\t {\n\t\t nintervalstart = ncurrstart;\n\t\t\t nintervalend = ncurrend;\n\t\t }\n\t\t else if (ncurrstart <= nintervalend)\n\t\t {\n\t\t //this read is still in the active interval\n\t\t //extending the current active interval \n\t\t if (ncurrend > nintervalend)\n\t\t {\n\t\t nintervalend = ncurrend;\n\t\t }\n\t\t }\t\t \n\t\t else \n\t\t {\n\t\t //just finished the current active interval\n\t\t bdone = true;\n\t\t }\n\t\t }\n\n\t\t if (bdone)\n\t {\t\t \t\t\t\t\t\t\n\t int nbegin = nintervalstart/nbinsize;\n\t\t int nend = nintervalend/nbinsize;\n\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\n\t for (int nbin = nbegin; nbin <= nend; nbin++)\n\t {\n\t\t if (labels[nbin]>=0)\n\t\t {\n\t\t tallyoverlaplabel_nfile[labels[nbin]]++;\n\t\t }\n\t\t }\n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nintervalstart - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nintervalend-1)/(double) nbinsize;\n\t\t\t \n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t { \t\t\t \n\t\t //only counted the bases if nbegin was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nend]]-=dendfrac;\n\t\t\t }\n\t\t }\t\t\t \n\n\t\t nintervalstart = ncurrstart; \n\t\t nintervalend = ncurrend;\n\t\t bdone = false;\n\t\t }\t \n\t\t}\n\t\t //}\n\t }\n\t else\n\t {\n\t BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\n\t String szchrom = szLineA[nchromindex];\n\t\t if (!szchromwant.equals(szchrom))\n\t\t continue;\n\n\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t int nbegin = nbeginactual/nbinsize;\n\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t int nend = nendactual/nbinsize;\n\n\t\t double damount;\n\t if ((busesignal)&&(nsignalindex < szLineA.length))\n\t {\n\t \t damount = Double.parseDouble(szLineA[nsignalindex]);\n\t\t }\n\t else\n\t {\n\t damount = 1;\n\t\t }\n\n\t //Integer objChrom = (Integer) hmchromToIndex.get(szchrom);\n\t //if (objChrom != null)\n\t\t //{\n\t\t //we have the chromosome corresponding to this read\n\t //int nchrom = objChrom.intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t\t if (bcenter)\n\t {\n\t //using the center position of the interval only\n\t\t int ncenter = (nbeginactual+nendactual)/(2*nbinsize);\n\t\t if ((ncenter < labels.length)&&(labels[ncenter]>=0))\n\t\t {\n\t tallyoverlaplabel_nfile[labels[ncenter]]+=damount;\t\t\t \n\t\t }\n\t\t }\n\t else\n\t {\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\t\t //using the full interval range\n\t\t //no requirement on uniqueness\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\t\t\t\n\t for (int nindex = nbegin; nindex <= nend; nindex++)\n\t {\n\t\t if (labels[nindex]>=0)\n\t\t {\n\t\t //increment overlap tally not checking for uniqueness\n \t tallyoverlaplabel_nfile[labels[nindex]]+=damount;\n\t\t\t }\n\t\t }\t \n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nbeginactual - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nendactual-1)/(double) nbinsize;\n\n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t\t { \n\t\t\t //only counted the bases if nbegin was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=damount*dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nend]]-=damount*dendfrac;\n\t\t\t }\t\t\t \n\t\t }\n\t\t }\n\t\t}\t \n\t\tbrcoords.close();\n\t }\n\t }\n }\n\n\n for (int nfile = 0; nfile < files.length; nfile++)\n {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t for (int nindex = 0; nindex < tallyoverlaplabel_nfile.length; nindex++)\n {\n dsumoverlaplabel[nfile] += tallyoverlaplabel_nfile[nindex];\n }\n\t\t\n if (dsumoverlaplabel[nfile] < EPSILONOVERLAP) // 0.00000001)\n {\n\t throw new IllegalArgumentException(\"Coordinates in \"+files[nfile]+\" not assigned to any state. Check if chromosome naming in \"+files[nfile]+\n\t\t\t\t\t\t \" match those in the segmentation file.\");\n\t }\n\t}\n\n\toutputenrichment(szoutfile, files,tallyoverlaplabel, tallylabel, dsumoverlaplabel,theColor,\n\t\t\t bcolscaleheat,ChromHMM.convertCharOrderToStringOrder(szlabel.charAt(0)),sztitle,0,szlabelmapping,szlabel.charAt(0), bprintimage, bstringlabels, hmIndexToLabel);\n }",
"int size() {\n int basic = ((offset() + 4) & ~3) - offset() + 8;\n /* Add 8*number of offsets */\n return basic + targetsOp.length*8;\n }",
"public int width();",
"public int get_resource_distance() {\n return 1;\r\n }",
"public double width() { return _width; }",
"public String getRingback();",
"double volume(){\n return width*height*depth;\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"String directsTo();",
"@Override\n public int getSize() {\n return 1;\n }",
"Parallelogram(){\n length = width = height = 0;\n }",
"public void Exterior() {\n\t\t\r\n\t}",
"int getWidth()\n {\n return width;\n }",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"int fixedSize();",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"static int size_of_shld(String passed){\n\t\treturn 3;\n\t}",
"int getSize();",
"int getSize();",
"int getSize();"
] | [
"0.53633404",
"0.5267726",
"0.510288",
"0.50911427",
"0.50599813",
"0.5056676",
"0.5045728",
"0.5014328",
"0.4982882",
"0.4971853",
"0.49661818",
"0.4963847",
"0.49479342",
"0.49379194",
"0.4924236",
"0.4922835",
"0.49125263",
"0.49050418",
"0.49011075",
"0.48808414",
"0.48740616",
"0.48662063",
"0.48651904",
"0.48632288",
"0.4859895",
"0.48516068",
"0.48467168",
"0.48439547",
"0.4838036",
"0.48374617",
"0.4835718",
"0.482863",
"0.48248756",
"0.4823057",
"0.4815451",
"0.48066735",
"0.47937852",
"0.47861835",
"0.4783978",
"0.4783618",
"0.4783059",
"0.4783059",
"0.47818094",
"0.47808287",
"0.4780419",
"0.4774886",
"0.47635302",
"0.47604495",
"0.4758836",
"0.47571942",
"0.47507975",
"0.47435072",
"0.47414544",
"0.4737465",
"0.47354528",
"0.4734373",
"0.47313762",
"0.47293267",
"0.47257847",
"0.47248253",
"0.4724179",
"0.47207242",
"0.4713398",
"0.47045016",
"0.47032058",
"0.4699153",
"0.46968338",
"0.46943182",
"0.46917397",
"0.46916822",
"0.46883303",
"0.46883267",
"0.4686367",
"0.46853325",
"0.46813267",
"0.46704906",
"0.4669987",
"0.46686",
"0.46686",
"0.46676564",
"0.4666521",
"0.46646208",
"0.4662861",
"0.46615583",
"0.465895",
"0.4655351",
"0.4654609",
"0.46530318",
"0.46524528",
"0.4652438",
"0.4652196",
"0.46499956",
"0.46486533",
"0.46473297",
"0.46452147",
"0.4645041",
"0.4644314",
"0.4643192",
"0.46414402",
"0.46414402",
"0.46414402"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / / / / | public List refreshTicks(Graphics2D g2, AxisState state, Rectangle2D dataArea, RectangleEdge edge) {
/* 1558 */ List result = null;
/* 1559 */ if (RectangleEdge.isTopOrBottom(edge)) {
/* 1560 */ result = refreshTicksHorizontal(g2, dataArea, edge);
/* */ }
/* 1562 */ else if (RectangleEdge.isLeftOrRight(edge)) {
/* 1563 */ result = refreshTicksVertical(g2, dataArea, edge);
/* */ }
/* 1565 */ return result;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"public Integer getWidth(){return this.width;}",
"int getWidth() {return width;}",
"static int getNumPatterns() { return 64; }",
"int width();",
"public abstract void bepaalGrootte();",
"public void divide() {\n\t\t\n\t}",
"public void getTile_B8();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"private int rightChild(int i){return 2*i+2;}",
"public void gored() {\n\t\t\n\t}",
"int getTribeSize();",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"void mo33732Px();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"long getWidth();",
"public String ring();",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"double seBlesser();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public double getWidth() { return _width<0? -_width : _width; }",
"double getNewWidth();",
"public int generateRoshambo(){\n ;]\n\n }",
"public String toString(){ return \"DIV\";}",
"public abstract int getSpotsNeeded();",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public int my_leaf_count();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"int getSize ();",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"@Override\n public void bfs() {\n\n }",
"int getSpriteArraySize();",
"long getMid();",
"long getMid();",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public int getTakeSpace() {\n return 0;\n }",
"public abstract String division();",
"int expand();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public void skystonePos4() {\n }",
"public void leerPlanesDietas();",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public int getWidth(){\n return width;\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public abstract double getBaseWidth();",
"@Override\n\tprotected void interr() {\n\t}",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int length() { return 1+maxidx; }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public int getWidth()\n {return width;}",
"public String getRing();",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"Operations operations();",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"private void poetries() {\n\n\t}",
"public void method_4270() {}",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"public static int offset_parent() {\n return (40 / 8);\n }",
"int align();",
"int depth();",
"int depth();",
"double volume(){\n return width*height*depth;\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public String getRingback();",
"@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}",
"public int width();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"String directsTo();",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"public double width() { return _width; }",
"public static void enrichmentMaxLowMem(String szinputsegment,String szinputcoorddir,String szinputcoordlist,\n\t\t\t\t int noffsetleft, int noffsetright,\n int nbinsize, boolean bcenter,boolean bunique, boolean busesignal,String szcolfields,\n\t\t\t\t boolean bbaseres, String szoutfile,boolean bcolscaleheat,Color theColor,String sztitle, \n\t\t\t\t\t String szlabelmapping, boolean bprintimage, boolean bstringlabels, boolean bbrowser) throws IOException\n {\n\n\n //for each enrichment category and state label gives a count of how often\n //overlapped by a segment optionally with signal\n\n String szLine;\n String[] files;\n\n if (szinputcoordlist == null)\n {\n File dir = new File(szinputcoorddir);\n\t //we don't have a specific list of files to include\n\t //will use all files in the directory\n\t if (dir.isDirectory())\t \n\t {\n\t //throw new IllegalArgumentException(szinputcoorddir+\" is not a directory!\");\n\t //added in v1.11 to skip hidden files\n\t String[] filesWithHidden = dir.list();\n\t int nnonhiddencount = 0;\n\t for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t\t{\n\t\t nnonhiddencount++;\n\t\t}\n\t }\t \n\n\t int nactualindex = 0;\n\t files = new String[nnonhiddencount];// dir.list(); \n\t if (nnonhiddencount == 0)\n\t {\n\t throw new IllegalArgumentException(\"No files found in \"+szinputcoorddir);\n\t }\n\n for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t {\n\t files[nactualindex] = filesWithHidden[nfile];\n\t\t nactualindex++;\n\t }\n\t }\n\t Arrays.sort(files);\n\t szinputcoorddir += \"/\";\n\t }\n\t else\n\t {\n\t files = new String[1];\n\t files[0] = szinputcoorddir;\n\t szinputcoorddir = \"\";\n\t }\n }\n else\n {\n szinputcoorddir += \"/\";\n\t //store in files all file names given in szinputcoordlist\n\t BufferedReader brfiles = Util.getBufferedReader(szinputcoordlist);\n\t ArrayList alfiles = new ArrayList();\n\t while ((szLine = brfiles.readLine())!=null)\n\t {\n\t alfiles.add(szLine);\n\t }\n\t brfiles.close(); \n\t files = new String[alfiles.size()];\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t files[nfile] = (String) alfiles.get(nfile);\n\t }\n }\n\t\n ArrayList alchromindex = new ArrayList(); //stores the index of the chromosome\n\t\n if (busesignal)\n {\n bunique = false;\n }\n\n HashMap hmchromMax = new HashMap(); //maps chromosome to the maximum index\n HashMap hmchromToIndex = new HashMap(); //maps chromosome to an index\n HashMap hmLabelToIndex = new HashMap(); //maps label to an index\n HashMap hmIndexToLabel = new HashMap(); //maps index string to label\n int nmaxlabel=0; // the maximum label found\n String szlabel=\"\";\n boolean busedunderscore = false;\n //reads in the segmentation recording maximum position for each chromosome and\n //maximum label\n BufferedReader brinputsegment = Util.getBufferedReader(szinputsegment);\n while ((szLine = brinputsegment.readLine())!=null)\n {\n\n\t //added v1.24\n\t if (bbrowser)\n\t {\n\t if ((szLine.toLowerCase(Locale.ENGLISH).startsWith(\"browser\"))||(szLine.toLowerCase(Locale.ENGLISH).startsWith(\"track\")))\n\t {\n\t continue;\n\t }\n\t }\n\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n }\n\n\t //added in v1.24\n\t int numtokens = st.countTokens();\n\t if (numtokens == 0)\n\t {\n\t //skip blank lines\n\t continue;\n\t }\n\t else if (numtokens < 4)\n\t {\n\t throw new IllegalArgumentException(\"Line \"+szLine+\" in \"+szinputsegment+\" only had \"+numtokens+\" token(s). Expecting at least 4\");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\t if (nbegincoord % nbinsize != 0)\n\t {\n\t\tthrow new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with coordinates in input segment \"+szLine+\". -b binsize should match parameter value to LearnModel or \"+\n \"MakeSegmentation used to produce segmentation. If segmentation is derived from a lift over from another assembly, then the '-b 1' option should be used\");\n\t }\n //int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n szlabel = st.nextToken().trim();\n\t short slabel;\n\n\n if (bstringlabels)\n\t {\n\n\t int nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t if (nunderscoreindex >=0)\n\t {\n\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t\t busedunderscore = true;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t}\n catch (NumberFormatException ex)\n\t\t{\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t if (slabel > nmaxlabel)\n\t\t {\n\t\t nmaxlabel = slabel;\n\t\t }\n\t\t busedunderscore = true;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t if (busedunderscore)\n\t\t {\n\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t }\n\t\t }\n\t\t}\n\t }\n\n\t if (!busedunderscore)\n\t {\n //handle string labels\n\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\n\t if (objshort == null)\n\t {\n\t nmaxlabel = hmLabelToIndex.size()+1;\n\t slabel = (short) nmaxlabel;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n \t hmIndexToLabel.put(\"\"+nmaxlabel, szlabel);\n\t }\n\t //else\n\t //{\n\t // slabel = ((Short) objshort).shortValue();\n\t //}\n\t }\n\t }\n\t else\n\t {\n try\n\t {\n slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t{\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t}\n\t catch (NumberFormatException ex2)\n\t {\n throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t\t}\n\t }\n\n\t //alsegments.add(new SegmentRec(szchrom,nbegin,nend,slabel));\n\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t }\n\n\t Integer objMax = (Integer) hmchromMax.get(szchrom);\n\t if (objMax == null)\n\t {\n\t //System.out.println(\"on chrom \"+szchrom);\n\t hmchromMax.put(szchrom,Integer.valueOf(nend));\n\t hmchromToIndex.put(szchrom, Integer.valueOf(hmchromToIndex.size()));\n\t alchromindex.add(szchrom);\n\t }\n\t else\n\t {\n\t int ncurrmax = objMax.intValue();\n\t if (ncurrmax < nend)\n\t {\n\t hmchromMax.put(szchrom, Integer.valueOf(nend));\t\t \n\t }\n\t }\n }\n brinputsegment.close();\n\n double[][] tallyoverlaplabel = new double[files.length][nmaxlabel+1];\n double[] dsumoverlaplabel = new double[files.length];\n double[] tallylabel = new double[nmaxlabel+1];\n\n int numchroms = alchromindex.size();\n\n for (int nchrom = 0; nchrom < numchroms; nchrom++)\n {\n //ArrayList alsegments = new ArrayList(); //stores all the segments\n\t String szchromwant = (String) alchromindex.get(nchrom);\n\t //System.out.println(\"processing \"+szchromwant);\n\t int nsize = ((Integer) hmchromMax.get(szchromwant)).intValue()+1;\n\t short[] labels = new short[nsize]; //stores the hard label assignments\n\n\t //sets to -1 so missing segments not counted as label 0\n\t for (int npos = 0; npos < nsize; npos++)\n\t {\n labels[npos] = -1;\n\t }\n\n\t brinputsegment = Util.getBufferedReader(szinputsegment);\n\t while ((szLine = brinputsegment.readLine())!=null)\n\t {\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n\t st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t if (!szchrom.equals(szchromwant)) \n\t continue;\n\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\n\t //if (nbegincoord % nbinsize != 0)\n\t // {\n\t //\t throw new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with input segment \"+szLine);\n\t //}\n\t int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n\t szlabel = st.nextToken().trim();\n\t short slabel = -1;\n\n\t if (bstringlabels)\n\t {\n\t\tint nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t\tif (nunderscoreindex >=0)\n\t\t{\n\t\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t busedunderscore = true;\n\t\t }\n catch (NumberFormatException ex)\n\t\t {\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t\t busedunderscore = true;\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t\t if (busedunderscore)\n\t\t\t {\n\t\t\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t\t }\n\t\t }\n\t\t }\n\t\t}\n\n\t\tif (!busedunderscore)\n\t\t{\n\t //handle string labels\n\t\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\t\t slabel = ((Short) objshort).shortValue();\n\t\t}\n\t }\n\t else\n\t {\n try\n\t {\n\t slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t {\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t }\n\t\t}\n\t }\n\n\t if (nbegin < 0)\n\t {\n\t nbegin = 0;\n\t }\n\n\t if (nend >= labels.length)\n\t {\n\t nend = labels.length - 1;\n\t }\n\n\t //SegmentRec theSegmentRec = (SegmentRec) alsegments.get(nindex);\n\t //int nbegin = theSegmentRec.nbegin;\n\t //int nend = theSegmentRec.nend;\n\t //short slabel = theSegmentRec.slabel;\n\t //int nchrom = ((Integer) hmchromToIndex.get(theSegmentRec.szchrom)).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\t //stores each label position in the genome\n\t for (int npos = nbegin; npos <= nend; npos++)\n\t {\n\t labels[npos] = slabel;\n\t //tallylabel[slabel]++; \n\t }\n\t tallylabel[slabel] += (nend-nbegin)+1;\n\t }\n\n\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t int nchromindex = 0;\n\t int nstartindex = 1;\n\t int nendindex = 2;\n\t int nsignalindex = 3;\n\n\t if (szcolfields != null)\n\t {\n\t StringTokenizer stcolfields = new StringTokenizer(szcolfields,\",\");\n\t\tnchromindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnstartindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnendindex = Integer.parseInt(stcolfields.nextToken().trim());\n\n\t if (busesignal)\n\t {\n\t nsignalindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t }\n\t }\n\n \t \n if (bunique)\n\t {\n\t //Iterator itrChroms = hmchromToIndex.entrySet().iterator();\n\t //while (itrChroms.hasNext())\n\t //{\n\t //Map.Entry pairs = (Map.Entry) itrChroms.next();\n\t //String szchrom =(String) pairs.getKey();\n\t //int nchrom = ((Integer) pairs.getValue()).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t //reading in the coordinates to overlap with\n BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t ArrayList alrecs = new ArrayList();\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\t\t if (nstartindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nstartindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n if (nendindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nendindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n\t String szcurrchrom = szLineA[nchromindex];\n\t \t if (szchromwant.equals(szcurrchrom))\n\t\t {\n\t\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t\t if (bcenter)\n\t\t {\n\t\t nbeginactual = (nbeginactual+nendactual)/2;\n\t\t nendactual = nbeginactual;\n\t\t }\n\t\t alrecs.add(new Interval(nbeginactual,nendactual));\n\t\t }\n\t\t}\n\t brcoords.close();\n\n\t\tObject[] alrecA = alrecs.toArray();\n\t\tArrays.sort(alrecA,new IntervalCompare());\n\n\t\tboolean bclosed = true;\n\t int nintervalstart = -1;\n\t\tint nintervalend = -1;\n\t\tboolean bdone = false;\n\n\t\tfor (int nindex = 0; (nindex <= alrecA.length&&(alrecA.length>0)); nindex++)\n\t\t{\n\t\t int ncurrstart = -1;\n\t\t int ncurrend = -1;\n\n\t\t if (nindex == alrecA.length)\n\t\t {\n\t\t bdone = true;\n\t\t }\n\t\t else \n\t\t {\n\t\t ncurrstart = ((Interval) alrecA[nindex]).nstart;\n\t\t ncurrend = ((Interval) alrecA[nindex]).nend;\n if (nindex == 0)\n\t\t {\n\t\t nintervalstart = ncurrstart;\n\t\t\t nintervalend = ncurrend;\n\t\t }\n\t\t else if (ncurrstart <= nintervalend)\n\t\t {\n\t\t //this read is still in the active interval\n\t\t //extending the current active interval \n\t\t if (ncurrend > nintervalend)\n\t\t {\n\t\t nintervalend = ncurrend;\n\t\t }\n\t\t }\t\t \n\t\t else \n\t\t {\n\t\t //just finished the current active interval\n\t\t bdone = true;\n\t\t }\n\t\t }\n\n\t\t if (bdone)\n\t {\t\t \t\t\t\t\t\t\n\t int nbegin = nintervalstart/nbinsize;\n\t\t int nend = nintervalend/nbinsize;\n\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\n\t for (int nbin = nbegin; nbin <= nend; nbin++)\n\t {\n\t\t if (labels[nbin]>=0)\n\t\t {\n\t\t tallyoverlaplabel_nfile[labels[nbin]]++;\n\t\t }\n\t\t }\n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nintervalstart - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nintervalend-1)/(double) nbinsize;\n\t\t\t \n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t { \t\t\t \n\t\t //only counted the bases if nbegin was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nend]]-=dendfrac;\n\t\t\t }\n\t\t }\t\t\t \n\n\t\t nintervalstart = ncurrstart; \n\t\t nintervalend = ncurrend;\n\t\t bdone = false;\n\t\t }\t \n\t\t}\n\t\t //}\n\t }\n\t else\n\t {\n\t BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\n\t String szchrom = szLineA[nchromindex];\n\t\t if (!szchromwant.equals(szchrom))\n\t\t continue;\n\n\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t int nbegin = nbeginactual/nbinsize;\n\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t int nend = nendactual/nbinsize;\n\n\t\t double damount;\n\t if ((busesignal)&&(nsignalindex < szLineA.length))\n\t {\n\t \t damount = Double.parseDouble(szLineA[nsignalindex]);\n\t\t }\n\t else\n\t {\n\t damount = 1;\n\t\t }\n\n\t //Integer objChrom = (Integer) hmchromToIndex.get(szchrom);\n\t //if (objChrom != null)\n\t\t //{\n\t\t //we have the chromosome corresponding to this read\n\t //int nchrom = objChrom.intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t\t if (bcenter)\n\t {\n\t //using the center position of the interval only\n\t\t int ncenter = (nbeginactual+nendactual)/(2*nbinsize);\n\t\t if ((ncenter < labels.length)&&(labels[ncenter]>=0))\n\t\t {\n\t tallyoverlaplabel_nfile[labels[ncenter]]+=damount;\t\t\t \n\t\t }\n\t\t }\n\t else\n\t {\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\t\t //using the full interval range\n\t\t //no requirement on uniqueness\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\t\t\t\n\t for (int nindex = nbegin; nindex <= nend; nindex++)\n\t {\n\t\t if (labels[nindex]>=0)\n\t\t {\n\t\t //increment overlap tally not checking for uniqueness\n \t tallyoverlaplabel_nfile[labels[nindex]]+=damount;\n\t\t\t }\n\t\t }\t \n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nbeginactual - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nendactual-1)/(double) nbinsize;\n\n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t\t { \n\t\t\t //only counted the bases if nbegin was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=damount*dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nend]]-=damount*dendfrac;\n\t\t\t }\t\t\t \n\t\t }\n\t\t }\n\t\t}\t \n\t\tbrcoords.close();\n\t }\n\t }\n }\n\n\n for (int nfile = 0; nfile < files.length; nfile++)\n {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t for (int nindex = 0; nindex < tallyoverlaplabel_nfile.length; nindex++)\n {\n dsumoverlaplabel[nfile] += tallyoverlaplabel_nfile[nindex];\n }\n\t\t\n if (dsumoverlaplabel[nfile] < EPSILONOVERLAP) // 0.00000001)\n {\n\t throw new IllegalArgumentException(\"Coordinates in \"+files[nfile]+\" not assigned to any state. Check if chromosome naming in \"+files[nfile]+\n\t\t\t\t\t\t \" match those in the segmentation file.\");\n\t }\n\t}\n\n\toutputenrichment(szoutfile, files,tallyoverlaplabel, tallylabel, dsumoverlaplabel,theColor,\n\t\t\t bcolscaleheat,ChromHMM.convertCharOrderToStringOrder(szlabel.charAt(0)),sztitle,0,szlabelmapping,szlabel.charAt(0), bprintimage, bstringlabels, hmIndexToLabel);\n }",
"Parallelogram(){\n length = width = height = 0;\n }",
"public void Exterior() {\n\t\t\r\n\t}",
"static int size_of_inx(String passed){\n\t\treturn 1;\n\t}",
"int getWidth()\n {\n return width;\n }",
"static int size_of_xra(String passed){\n\t\treturn 1;\n\t}",
"public int get_resource_distance() {\n return 1;\r\n }",
"int size() {\n int basic = ((offset() + 4) & ~3) - offset() + 8;\n /* Add 8*number of offsets */\n return basic + targetsOp.length*8;\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] | [
"0.53988904",
"0.53024167",
"0.5098616",
"0.5085637",
"0.5062863",
"0.5053648",
"0.50322783",
"0.5016621",
"0.49993527",
"0.4995754",
"0.4983328",
"0.49791253",
"0.49704143",
"0.4950703",
"0.4929714",
"0.49185893",
"0.49054778",
"0.49048766",
"0.49034062",
"0.48944247",
"0.4888295",
"0.48844013",
"0.48692986",
"0.48659402",
"0.4858437",
"0.48571157",
"0.4856184",
"0.48478642",
"0.48446327",
"0.4842748",
"0.4837767",
"0.48329756",
"0.48278782",
"0.4820387",
"0.4818649",
"0.48113784",
"0.48112655",
"0.48007426",
"0.4793703",
"0.47923297",
"0.47810373",
"0.4780662",
"0.4780662",
"0.47750703",
"0.47683966",
"0.47682285",
"0.47640547",
"0.4763388",
"0.47622475",
"0.4762211",
"0.4759115",
"0.4756187",
"0.47524193",
"0.47431657",
"0.47431424",
"0.4737381",
"0.47314352",
"0.4729628",
"0.47260082",
"0.47236928",
"0.47236264",
"0.4715031",
"0.4709799",
"0.47092077",
"0.47042727",
"0.4700764",
"0.47001636",
"0.46998954",
"0.46978962",
"0.4693881",
"0.46882233",
"0.46865144",
"0.46863398",
"0.46802586",
"0.4680123",
"0.4680123",
"0.46742085",
"0.4673915",
"0.46702415",
"0.4669451",
"0.46673393",
"0.46673247",
"0.46656686",
"0.46650913",
"0.46619904",
"0.46618584",
"0.4661558",
"0.4660999",
"0.46585077",
"0.46581614",
"0.465365",
"0.46528313",
"0.46516687",
"0.46488842",
"0.46488285",
"0.464824",
"0.46363312",
"0.46363312",
"0.46363312",
"0.46363312",
"0.46363312"
] | 0.0 | -1 |
/ / / / / / / / / / / / / | private Date correctTickDateForPosition(Date time, DateTickUnit unit, DateTickMarkPosition position) {
/* 1580 */ Date result = time;
/* 1581 */ switch (unit.getUnit()) {
/* */
/* */
/* */
/* */
/* */
/* */
/* */ case 1:
/* 1589 */ result = calculateDateForPosition(new Month(time, this.timeZone, this.locale), position);
/* */ break;
/* */
/* */ case 0:
/* 1593 */ result = calculateDateForPosition(new Year(time, this.timeZone, this.locale), position);
/* */ break;
/* */ }
/* */
/* */
/* */
/* 1599 */ return result;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"int getWidth() {return width;}",
"double passer();",
"public abstract void bepaalGrootte();",
"public Integer getWidth(){return this.width;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"int width();",
"public void getTile_B8();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public void gored() {\n\t\t\n\t}",
"public String ring();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"static int getNumPatterns() { return 64; }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"long getWidth();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public abstract String division();",
"int getTribeSize();",
"double getNewWidth();",
"public int my_leaf_count();",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"void mo33732Px();",
"@Override\n public void bfs() {\n\n }",
"double seBlesser();",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public abstract int getSpotsNeeded();",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public int getWidth(){\n return width;\n }",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public void leerPlanesDietas();",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public void skystonePos4() {\n }",
"double volume(){\n return width*height*depth;\n }",
"Operations operations();",
"public String getRing();",
"int expand();",
"public double getPerimiter(){return (2*height +2*width);}",
"public abstract double getBaseWidth();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"long getMid();",
"long getMid();",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"int getSpriteArraySize();",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"int depth();",
"int depth();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"String directsTo();",
"Parallelogram(){\n length = width = height = 0;\n }",
"static void pyramid(){\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public String getRingback();",
"@Override\n\tprotected void interr() {\n\t}",
"public int getTakeSpace() {\n return 0;\n }",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"public void SubRect(){\n\t\n}",
"int getSize ();"
] | [
"0.55104524",
"0.54136074",
"0.51382613",
"0.511921",
"0.5069645",
"0.50632066",
"0.5061232",
"0.50567037",
"0.50560975",
"0.50190926",
"0.50086707",
"0.50070775",
"0.49875844",
"0.4968691",
"0.49646097",
"0.4947161",
"0.4947018",
"0.49441117",
"0.49407196",
"0.4928466",
"0.49275073",
"0.49161938",
"0.48980555",
"0.48958352",
"0.48763698",
"0.48674774",
"0.48627993",
"0.48618507",
"0.48581234",
"0.48564452",
"0.48533896",
"0.48423022",
"0.48398826",
"0.4830562",
"0.4829852",
"0.4826455",
"0.48149732",
"0.47983614",
"0.4795821",
"0.4788122",
"0.4787033",
"0.47857547",
"0.477811",
"0.47777838",
"0.47773185",
"0.47716594",
"0.47687408",
"0.4767555",
"0.47666657",
"0.4758684",
"0.47540286",
"0.47495034",
"0.47482887",
"0.47468567",
"0.4746059",
"0.47443146",
"0.47432604",
"0.47399372",
"0.47395262",
"0.47395262",
"0.47393134",
"0.47377515",
"0.47242114",
"0.47205007",
"0.47204065",
"0.47149622",
"0.47073272",
"0.4706161",
"0.47017768",
"0.47002885",
"0.47002885",
"0.46916506",
"0.4688795",
"0.4688655",
"0.4687753",
"0.46866032",
"0.4685604",
"0.46824268",
"0.46817905",
"0.46811056",
"0.4677107",
"0.4671675",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4668958",
"0.46668708"
] | 0.0 | -1 |
/ / / / / / / / / / / / / | protected List refreshTicksHorizontal(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge) {
/* 1614 */ List result = new ArrayList();
/* */
/* 1616 */ Font tickLabelFont = getTickLabelFont();
/* 1617 */ g2.setFont(tickLabelFont);
/* */
/* 1619 */ if (isAutoTickUnitSelection()) {
/* 1620 */ selectAutoTickUnit(g2, dataArea, edge);
/* */ }
/* */
/* 1623 */ DateTickUnit unit = getTickUnit();
/* 1624 */ Date tickDate = calculateLowestVisibleTickValue(unit);
/* 1625 */ Date upperDate = getMaximumDate();
/* */
/* 1627 */ boolean hasRolled = false;
/* 1628 */ while (tickDate.before(upperDate)) {
/* */
/* 1630 */ if (!hasRolled) {
/* 1631 */ tickDate = correctTickDateForPosition(tickDate, unit, this.tickMarkPosition);
/* */ }
/* */
/* */
/* 1635 */ long lowestTickTime = tickDate.getTime();
/* 1636 */ long distance = unit.addToDate(tickDate, this.timeZone).getTime() - lowestTickTime;
/* */
/* 1638 */ int minorTickSpaces = getMinorTickCount();
/* 1639 */ if (minorTickSpaces <= 0) {
/* 1640 */ minorTickSpaces = unit.getMinorTickCount();
/* */ }
/* 1642 */ for (int minorTick = 1; minorTick < minorTickSpaces; minorTick++) {
/* 1643 */ long minorTickTime = lowestTickTime - distance * minorTick / minorTickSpaces;
/* */
/* 1645 */ if (minorTickTime > 0L && getRange().contains(minorTickTime) &&
/* 1646 */ !isHiddenValue(minorTickTime)) {
/* 1647 */ result.add(new DateTick(TickType.MINOR, new Date(minorTickTime), "", TextAnchor.TOP_CENTER, TextAnchor.CENTER, 0.0D));
/* */ }
/* */ }
/* */
/* */
/* */
/* 1653 */ if (!isHiddenValue(tickDate.getTime())) {
/* */ TextAnchor rotationAnchor, anchor;
/* */ String tickLabel;
/* 1656 */ DateFormat formatter = getDateFormatOverride();
/* 1657 */ if (formatter != null) {
/* 1658 */ tickLabel = formatter.format(tickDate);
/* */ } else {
/* */
/* 1661 */ tickLabel = this.tickUnit.dateToString(tickDate);
/* */ }
/* */
/* 1664 */ double angle = 0.0D;
/* 1665 */ if (isVerticalTickLabels()) {
/* 1666 */ anchor = TextAnchor.CENTER_RIGHT;
/* 1667 */ rotationAnchor = TextAnchor.CENTER_RIGHT;
/* 1668 */ if (edge == RectangleEdge.TOP) {
/* 1669 */ angle = 1.5707963267948966D;
/* */ } else {
/* */
/* 1672 */ angle = -1.5707963267948966D;
/* */ }
/* */
/* */ }
/* 1676 */ else if (edge == RectangleEdge.TOP) {
/* 1677 */ anchor = TextAnchor.BOTTOM_CENTER;
/* 1678 */ rotationAnchor = TextAnchor.BOTTOM_CENTER;
/* */ } else {
/* */
/* 1681 */ anchor = TextAnchor.TOP_CENTER;
/* 1682 */ rotationAnchor = TextAnchor.TOP_CENTER;
/* */ }
/* */
/* */
/* 1686 */ Tick tick = new DateTick(tickDate, tickLabel, anchor, rotationAnchor, angle);
/* */
/* 1688 */ result.add(tick);
/* 1689 */ hasRolled = false;
/* */
/* 1691 */ long currentTickTime = tickDate.getTime();
/* 1692 */ tickDate = unit.addToDate(tickDate, this.timeZone);
/* 1693 */ long nextTickTime = tickDate.getTime();
/* 1694 */ for (int minorTick = 1; minorTick < minorTickSpaces;
/* 1695 */ minorTick++) {
/* 1696 */ long minorTickTime = currentTickTime + (nextTickTime - currentTickTime) * minorTick / minorTickSpaces;
/* */
/* */
/* 1699 */ if (getRange().contains(minorTickTime) &&
/* 1700 */ !isHiddenValue(minorTickTime)) {
/* 1701 */ result.add(new DateTick(TickType.MINOR, new Date(minorTickTime), "", TextAnchor.TOP_CENTER, TextAnchor.CENTER, 0.0D));
/* */ }
/* */ }
/* */
/* */
/* */ continue;
/* */ }
/* */
/* */
/* 1710 */ tickDate = unit.rollDate(tickDate, this.timeZone);
/* 1711 */ hasRolled = true;
/* */ }
/* */
/* */
/* */
/* 1716 */ return result;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"int getWidth() {return width;}",
"double passer();",
"public abstract void bepaalGrootte();",
"public Integer getWidth(){return this.width;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"int width();",
"public void getTile_B8();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public void gored() {\n\t\t\n\t}",
"public String ring();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"static int getNumPatterns() { return 64; }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"long getWidth();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public abstract String division();",
"int getTribeSize();",
"double getNewWidth();",
"public int my_leaf_count();",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"void mo33732Px();",
"@Override\n public void bfs() {\n\n }",
"double seBlesser();",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public abstract int getSpotsNeeded();",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public int getWidth(){\n return width;\n }",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public void leerPlanesDietas();",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public void skystonePos4() {\n }",
"double volume(){\n return width*height*depth;\n }",
"Operations operations();",
"public String getRing();",
"int expand();",
"public double getPerimiter(){return (2*height +2*width);}",
"public abstract double getBaseWidth();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"long getMid();",
"long getMid();",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"int getSpriteArraySize();",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"int depth();",
"int depth();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"String directsTo();",
"Parallelogram(){\n length = width = height = 0;\n }",
"static void pyramid(){\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public String getRingback();",
"@Override\n\tprotected void interr() {\n\t}",
"public int getTakeSpace() {\n return 0;\n }",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"public void SubRect(){\n\t\n}",
"int getSize ();"
] | [
"0.55104524",
"0.54136074",
"0.51382613",
"0.511921",
"0.5069645",
"0.50632066",
"0.5061232",
"0.50567037",
"0.50560975",
"0.50190926",
"0.50086707",
"0.50070775",
"0.49875844",
"0.4968691",
"0.49646097",
"0.4947161",
"0.4947018",
"0.49441117",
"0.49407196",
"0.4928466",
"0.49275073",
"0.49161938",
"0.48980555",
"0.48958352",
"0.48763698",
"0.48674774",
"0.48627993",
"0.48618507",
"0.48581234",
"0.48564452",
"0.48533896",
"0.48423022",
"0.48398826",
"0.4830562",
"0.4829852",
"0.4826455",
"0.48149732",
"0.47983614",
"0.4795821",
"0.4788122",
"0.4787033",
"0.47857547",
"0.477811",
"0.47777838",
"0.47773185",
"0.47716594",
"0.47687408",
"0.4767555",
"0.47666657",
"0.4758684",
"0.47540286",
"0.47495034",
"0.47482887",
"0.47468567",
"0.4746059",
"0.47443146",
"0.47432604",
"0.47399372",
"0.47395262",
"0.47395262",
"0.47393134",
"0.47377515",
"0.47242114",
"0.47205007",
"0.47204065",
"0.47149622",
"0.47073272",
"0.4706161",
"0.47017768",
"0.47002885",
"0.47002885",
"0.46916506",
"0.4688795",
"0.4688655",
"0.4687753",
"0.46866032",
"0.4685604",
"0.46824268",
"0.46817905",
"0.46811056",
"0.4677107",
"0.4671675",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4668958",
"0.46668708"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / | protected List refreshTicksVertical(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge) {
/* 1732 */ List result = new ArrayList();
/* */
/* 1734 */ Font tickLabelFont = getTickLabelFont();
/* 1735 */ g2.setFont(tickLabelFont);
/* */
/* 1737 */ if (isAutoTickUnitSelection()) {
/* 1738 */ selectAutoTickUnit(g2, dataArea, edge);
/* */ }
/* 1740 */ DateTickUnit unit = getTickUnit();
/* 1741 */ Date tickDate = calculateLowestVisibleTickValue(unit);
/* 1742 */ Date upperDate = getMaximumDate();
/* */
/* 1744 */ boolean hasRolled = false;
/* 1745 */ while (tickDate.before(upperDate)) {
/* */
/* */
/* 1748 */ if (!hasRolled) {
/* 1749 */ tickDate = correctTickDateForPosition(tickDate, unit, this.tickMarkPosition);
/* */ }
/* */
/* */
/* 1753 */ long lowestTickTime = tickDate.getTime();
/* 1754 */ long distance = unit.addToDate(tickDate, this.timeZone).getTime() - lowestTickTime;
/* */
/* 1756 */ int minorTickSpaces = getMinorTickCount();
/* 1757 */ if (minorTickSpaces <= 0) {
/* 1758 */ minorTickSpaces = unit.getMinorTickCount();
/* */ }
/* 1760 */ for (int minorTick = 1; minorTick < minorTickSpaces; minorTick++) {
/* 1761 */ long minorTickTime = lowestTickTime - distance * minorTick / minorTickSpaces;
/* */
/* 1763 */ if (minorTickTime > 0L && getRange().contains(minorTickTime) &&
/* 1764 */ !isHiddenValue(minorTickTime)) {
/* 1765 */ result.add(new DateTick(TickType.MINOR, new Date(minorTickTime), "", TextAnchor.TOP_CENTER, TextAnchor.CENTER, 0.0D));
/* */ }
/* */ }
/* */
/* */
/* 1770 */ if (!isHiddenValue(tickDate.getTime())) {
/* */ TextAnchor rotationAnchor, anchor;
/* */ String tickLabel;
/* 1773 */ DateFormat formatter = getDateFormatOverride();
/* 1774 */ if (formatter != null) {
/* 1775 */ tickLabel = formatter.format(tickDate);
/* */ } else {
/* */
/* 1778 */ tickLabel = this.tickUnit.dateToString(tickDate);
/* */ }
/* */
/* 1781 */ double angle = 0.0D;
/* 1782 */ if (isVerticalTickLabels()) {
/* 1783 */ anchor = TextAnchor.BOTTOM_CENTER;
/* 1784 */ rotationAnchor = TextAnchor.BOTTOM_CENTER;
/* 1785 */ if (edge == RectangleEdge.LEFT) {
/* 1786 */ angle = -1.5707963267948966D;
/* */ } else {
/* */
/* 1789 */ angle = 1.5707963267948966D;
/* */ }
/* */
/* */ }
/* 1793 */ else if (edge == RectangleEdge.LEFT) {
/* 1794 */ anchor = TextAnchor.CENTER_RIGHT;
/* 1795 */ rotationAnchor = TextAnchor.CENTER_RIGHT;
/* */ } else {
/* */
/* 1798 */ anchor = TextAnchor.CENTER_LEFT;
/* 1799 */ rotationAnchor = TextAnchor.CENTER_LEFT;
/* */ }
/* */
/* */
/* 1803 */ Tick tick = new DateTick(tickDate, tickLabel, anchor, rotationAnchor, angle);
/* */
/* 1805 */ result.add(tick);
/* 1806 */ hasRolled = false;
/* */
/* 1808 */ long currentTickTime = tickDate.getTime();
/* 1809 */ tickDate = unit.addToDate(tickDate, this.timeZone);
/* 1810 */ long nextTickTime = tickDate.getTime();
/* 1811 */ for (int minorTick = 1; minorTick < minorTickSpaces;
/* 1812 */ minorTick++) {
/* 1813 */ long minorTickTime = currentTickTime + (nextTickTime - currentTickTime) * minorTick / minorTickSpaces;
/* */
/* */
/* 1816 */ if (getRange().contains(minorTickTime) &&
/* 1817 */ !isHiddenValue(minorTickTime)) {
/* 1818 */ result.add(new DateTick(TickType.MINOR, new Date(minorTickTime), "", TextAnchor.TOP_CENTER, TextAnchor.CENTER, 0.0D));
/* */ }
/* */ }
/* */
/* */
/* */ continue;
/* */ }
/* */
/* 1826 */ tickDate = unit.rollDate(tickDate, this.timeZone);
/* 1827 */ hasRolled = true;
/* */ }
/* */
/* 1830 */ return result;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"int getWidth() {return width;}",
"double passer();",
"public Integer getWidth(){return this.width;}",
"public abstract void bepaalGrootte();",
"int width();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public void gored() {\n\t\t\n\t}",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"static int getNumPatterns() { return 64; }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String ring();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public String toString(){ return \"DIV\";}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"int getTribeSize();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"long getWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"double getNewWidth();",
"void mo33732Px();",
"public int my_leaf_count();",
"public abstract String division();",
"public int generateRoshambo(){\n ;]\n\n }",
"double seBlesser();",
"@Override\n public void bfs() {\n\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public abstract int getSpotsNeeded();",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"@Override\npublic void processDirection() {\n\t\n}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public void leerPlanesDietas();",
"public int getWidth(){\n return width;\n }",
"long getMid();",
"long getMid();",
"int expand();",
"int getSpriteArraySize();",
"public void skystonePos4() {\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public abstract double getBaseWidth();",
"public String getRing();",
"Operations operations();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"double volume(){\n return width*height*depth;\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"int getSize ();",
"public int getTakeSpace() {\n return 0;\n }",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"int depth();",
"int depth();",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"String directsTo();",
"Parallelogram(){\n length = width = height = 0;\n }",
"public String getRingback();",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"static void pyramid(){\n\t}",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}"
] | [
"0.54896694",
"0.5391855",
"0.50999725",
"0.5089729",
"0.5071565",
"0.50698775",
"0.5066746",
"0.5062716",
"0.5045067",
"0.5015888",
"0.50144786",
"0.50042266",
"0.49699038",
"0.4958074",
"0.49504146",
"0.49493113",
"0.4928954",
"0.49281803",
"0.49264044",
"0.49144852",
"0.49096256",
"0.49023998",
"0.4900659",
"0.4883338",
"0.48826042",
"0.488078",
"0.4873465",
"0.48732233",
"0.48638675",
"0.485561",
"0.484706",
"0.4841978",
"0.48373556",
"0.4833697",
"0.48265693",
"0.48180372",
"0.48130226",
"0.480567",
"0.48006335",
"0.4799091",
"0.47895777",
"0.4785683",
"0.47836962",
"0.4774855",
"0.4773943",
"0.47699708",
"0.47685766",
"0.47670215",
"0.4765558",
"0.47566882",
"0.47566882",
"0.47550395",
"0.4754316",
"0.4753821",
"0.47496703",
"0.47440612",
"0.47428495",
"0.47382045",
"0.47344932",
"0.4732491",
"0.47317952",
"0.47295466",
"0.47266868",
"0.47174314",
"0.47159368",
"0.47122276",
"0.4708117",
"0.47059256",
"0.47053722",
"0.4700522",
"0.4700522",
"0.4698713",
"0.46902904",
"0.4689955",
"0.4688406",
"0.4688214",
"0.4687884",
"0.46857196",
"0.4681411",
"0.46810317",
"0.4679931",
"0.46686065",
"0.46676695",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46668667"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / / / / / / / / / / | public AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState) {
/* 1855 */ if (!isVisible()) {
/* 1856 */ AxisState state = new AxisState(cursor);
/* */
/* */
/* 1859 */ List ticks = refreshTicks(g2, state, dataArea, edge);
/* 1860 */ state.setTicks(ticks);
/* 1861 */ return state;
/* */ }
/* */
/* */
/* 1865 */ AxisState state = drawTickMarksAndLabels(g2, cursor, plotArea, dataArea, edge);
/* */
/* */
/* */
/* */
/* 1870 */ if (getAttributedLabel() != null) {
/* 1871 */ state = drawAttributedLabel(getAttributedLabel(), g2, plotArea, dataArea, edge, state);
/* */ }
/* */ else {
/* */
/* 1875 */ state = drawLabel(getLabel(), g2, plotArea, dataArea, edge, state);
/* */ }
/* 1877 */ createAndAddEntity(cursor, state, dataArea, edge, plotState);
/* 1878 */ return state;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"static int getNumPatterns() { return 64; }",
"double passer();",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"private int leftChild(int i){return 2*i+1;}",
"public Integer getWidth(){return this.width;}",
"void mo33732Px();",
"int getWidth() {return width;}",
"int width();",
"public void gored() {\n\t\t\n\t}",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"int getTribeSize();",
"public abstract void bepaalGrootte();",
"public void getTile_B8();",
"int getSize ();",
"double seBlesser();",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"public void method_4270() {}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"public int length() { return 1+maxidx; }",
"public abstract int getSpotsNeeded();",
"public int getTakeSpace() {\n return 0;\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"@Override\n\tprotected void interr() {\n\t}",
"static int size_of_inx(String passed){\n\t\treturn 1;\n\t}",
"private void poetries() {\n\n\t}",
"public void divide() {\n\t\t\n\t}",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"long getWidth();",
"static int size_of_xra(String passed){\n\t\treturn 1;\n\t}",
"public void skystonePos4() {\n }",
"public static int size_parent() {\n return (8 / 8);\n }",
"public static int size_parentId() {\n return (16 / 8);\n }",
"double getNewWidth();",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"@Override\n public int getSize() {\n return 1;\n }",
"int getSpriteArraySize();",
"@Override\n public void perish() {\n \n }",
"int fixedSize();",
"public double getWidth() { return _width<0? -_width : _width; }",
"long getMid();",
"long getMid();",
"public String ring();",
"int memSize() {\n return super.memSize() + 4 * 4; }",
"int align();",
"static int size_of_shld(String passed){\n\t\treturn 3;\n\t}",
"public int getSize(){return _size;}",
"@Override\n public void func_104112_b() {\n \n }",
"static int size_of_rpo(String passed){\n\t\treturn 1;\n\t}",
"static int size_of_xthl(String passed){\n\t\treturn 1;\n\t}",
"@Override\n public void bfs() {\n\n }",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic int size() {\n\t\treturn 27;\r\n\t}",
"public int my_leaf_count();",
"int size() {\n int basic = ((offset() + 4) & ~3) - offset() + 8;\n /* Add 8*number of offsets */\n return basic + targetsOp.length*8;\n }",
"public int getSize(){return this.size;}",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"public abstract void mo56925d();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"public int get_resource_distance() {\n return 1;\r\n }",
"int expand();",
"public void leerPlanesDietas();",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"@Override\n public int getSize() {\n\treturn 0;\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"@Override\n public int getSize() {\n return 64;\n }",
"public byte[] initialValue() {\n return new byte[]{(byte) -1, (byte) -40, (byte) -1, (byte) -37, (byte) 0, (byte) 67, (byte) 0, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -64, (byte) 0, (byte) 17, (byte) 8, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 3, (byte) 1, (byte) 34, (byte) 0, (byte) 2, (byte) 17, (byte) 0, (byte) 3, (byte) 17, (byte) 0, (byte) -1, (byte) -60, (byte) 0, (byte) 31, (byte) 0, (byte) 0, (byte) 1, (byte) 5, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 5, (byte) 6, (byte) 7, (byte) 8, (byte) 9, (byte) 10, (byte) 11, (byte) -1, (byte) -60, (byte) 0, (byte) -75, (byte) 16, (byte) 0, (byte) 2, (byte) 1, (byte) 3, (byte) 3, (byte) 2, (byte) 4, (byte) 3, (byte) 5, (byte) 5, (byte) 4, (byte) 4, (byte) 0, (byte) 0, (byte) 1, (byte) 125, (byte) 1, (byte) 2, (byte) 3, (byte) 0, (byte) 4, (byte) 17, (byte) 5, (byte) 18, (byte) 33, (byte) 49, (byte) 65, (byte) 6, (byte) 19, (byte) 81, (byte) 97, (byte) 7, (byte) 34, (byte) 113, (byte) 20, (byte) 50, (byte) -127, (byte) -111, (byte) -95, (byte) 8, (byte) 35, (byte) 66, (byte) -79, (byte) -63, (byte) 21, (byte) 82, (byte) -47, (byte) -16, (byte) 36, (byte) 51, (byte) 98, (byte) 114, (byte) -126, (byte) 9, (byte) 10, (byte) 22, (byte) 23, (byte) 24, (byte) 25, (byte) 26, (byte) 37, (byte) 38, (byte) 39, (byte) 40, (byte) 41, (byte) 42, (byte) 52, (byte) 53, (byte) 54, (byte) 55, (byte) 56, (byte) 57, (byte) 58, (byte) 67, (byte) 68, (byte) 69, (byte) 70, (byte) 71, (byte) 72, (byte) 73, (byte) 74, (byte) 83, (byte) 84, (byte) 85, (byte) 86, (byte) 87, (byte) 88, (byte) 89, (byte) 90, (byte) 99, (byte) 100, (byte) 101, (byte) 102, (byte) 103, (byte) 104, (byte) 105, (byte) 106, (byte) 115, (byte) 116, (byte) 117, (byte) 118, (byte) 119, (byte) 120, (byte) 121, (byte) 122, (byte) -125, (byte) -124, (byte) -123, (byte) -122, (byte) -121, (byte) -120, (byte) -119, (byte) -118, (byte) -110, (byte) -109, (byte) -108, (byte) -107, (byte) -106, (byte) -105, (byte) -104, (byte) -103, (byte) -102, (byte) -94, (byte) -93, (byte) -92, (byte) -91, (byte) -90, (byte) -89, (byte) -88, (byte) -87, (byte) -86, (byte) -78, (byte) -77, (byte) -76, (byte) -75, (byte) -74, (byte) -73, (byte) -72, (byte) -71, (byte) -70, (byte) -62, (byte) -61, (byte) -60, (byte) -59, (byte) -58, (byte) -57, (byte) -56, (byte) -55, (byte) -54, (byte) -46, (byte) -45, (byte) -44, (byte) -43, (byte) -42, (byte) -41, (byte) -40, (byte) -39, (byte) -38, (byte) -31, (byte) -30, (byte) -29, (byte) -28, (byte) -27, (byte) -26, (byte) -25, (byte) -24, (byte) -23, (byte) -22, (byte) -15, (byte) -14, (byte) -13, (byte) -12, (byte) -11, (byte) -10, (byte) -9, (byte) -8, (byte) -7, (byte) -6, (byte) -1, (byte) -60, (byte) 0, (byte) 31, (byte) 1, (byte) 0, (byte) 3, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 5, (byte) 6, (byte) 7, (byte) 8, (byte) 9, (byte) 10, (byte) 11, (byte) -1, (byte) -60, (byte) 0, (byte) -75, (byte) 17, (byte) 0, (byte) 2, (byte) 1, (byte) 2, (byte) 4, (byte) 4, (byte) 3, (byte) 4, (byte) 7, (byte) 5, (byte) 4, (byte) 4, (byte) 0, (byte) 1, (byte) 2, (byte) 119, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 17, (byte) 4, (byte) 5, (byte) 33, (byte) 49, (byte) 6, (byte) 18, (byte) 65, (byte) 81, (byte) 7, (byte) 97, (byte) 113, (byte) 19, (byte) 34, (byte) 50, (byte) -127, (byte) 8, (byte) 20, (byte) 66, (byte) -111, (byte) -95, (byte) -79, (byte) -63, (byte) 9, (byte) 35, (byte) 51, (byte) 82, (byte) -16, (byte) 21, (byte) 98, (byte) 114, (byte) -47, (byte) 10, (byte) 22, (byte) 36, (byte) 52, (byte) -31, (byte) 37, (byte) -15, (byte) 23, (byte) 24, (byte) 25, (byte) 26, (byte) 38, (byte) 39, (byte) 40, (byte) 41, (byte) 42, (byte) 53, (byte) 54, (byte) 55, (byte) 56, (byte) 57, (byte) 58, (byte) 67, (byte) 68, (byte) 69, (byte) 70, (byte) 71, (byte) 72, (byte) 73, (byte) 74, (byte) 83, (byte) 84, (byte) 85, (byte) 86, (byte) 87, (byte) 88, (byte) 89, (byte) 90, (byte) 99, (byte) 100, (byte) 101, (byte) 102, (byte) 103, (byte) 104, (byte) 105, (byte) 106, (byte) 115, (byte) 116, (byte) 117, (byte) 118, (byte) 119, (byte) 120, (byte) 121, (byte) 122, (byte) -126, (byte) -125, (byte) -124, (byte) -123, (byte) -122, (byte) -121, (byte) -120, (byte) -119, (byte) -118, (byte) -110, (byte) -109, (byte) -108, (byte) -107, (byte) -106, (byte) -105, (byte) -104, (byte) -103, (byte) -102, (byte) -94, (byte) -93, (byte) -92, (byte) -91, (byte) -90, (byte) -89, (byte) -88, (byte) -87, (byte) -86, (byte) -78, (byte) -77, (byte) -76, (byte) -75, (byte) -74, (byte) -73, (byte) -72, (byte) -71, (byte) -70, (byte) -62, (byte) -61, (byte) -60, (byte) -59, (byte) -58, (byte) -57, (byte) -56, (byte) -55, (byte) -54, (byte) -46, (byte) -45, (byte) -44, (byte) -43, (byte) -42, (byte) -41, (byte) -40, (byte) -39, (byte) -38, (byte) -30, (byte) -29, (byte) -28, (byte) -27, (byte) -26, (byte) -25, (byte) -24, (byte) -23, (byte) -22, (byte) -14, (byte) -13, (byte) -12, (byte) -11, (byte) -10, (byte) -9, (byte) -8, (byte) -7, (byte) -6, (byte) -1, (byte) -38, (byte) 0, (byte) 12, (byte) 3, (byte) 1, (byte) 0, (byte) 2, (byte) 17, (byte) 3, (byte) 17, (byte) 0, (byte) 63, (byte) 0, (byte) -114, (byte) -118, (byte) 40, (byte) -96, (byte) 15, (byte) -1, (byte) -39};\n }",
"public abstract int mo9754s();",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"private int rightChild(int i){return 2*i+2;}",
"@Override\npublic void processDirection() {\n\t\n}",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}",
"public interface Probing {\r\n\t/**\r\n\t * Get an alternate hash position\r\n\t * @param key The original key\r\n\t * @param i How many spaces are occupied already\r\n\t * @param max How many spaces are available\r\n\t * @return A new position for the key\r\n\t */\r\n\tpublic int getHash(int key, int i, int max);\r\n}",
"public String toString(){ return \"DIV\";}",
"static int size_of_rp(String passed){\n\t\treturn 1;\n\t}",
"public int getWidth(){\n return width;\n }",
"private void m50366E() {\n }",
"@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}",
"public abstract double getBaseWidth();"
] | [
"0.5172863",
"0.5126319",
"0.5124065",
"0.51167214",
"0.50875455",
"0.5033001",
"0.50113827",
"0.4988459",
"0.49690324",
"0.4967294",
"0.49487722",
"0.4935013",
"0.4913603",
"0.49127066",
"0.49037248",
"0.4903304",
"0.488621",
"0.48797035",
"0.4877082",
"0.487347",
"0.48720178",
"0.48666823",
"0.48589146",
"0.48452336",
"0.483631",
"0.48342222",
"0.48313218",
"0.4825313",
"0.48249847",
"0.48224667",
"0.4822058",
"0.48191762",
"0.48133034",
"0.4812513",
"0.48125046",
"0.48058328",
"0.4793597",
"0.47930416",
"0.47911954",
"0.47869128",
"0.47825557",
"0.4781047",
"0.47781828",
"0.477422",
"0.47741386",
"0.47601873",
"0.47600043",
"0.47600043",
"0.47512177",
"0.4749897",
"0.47458586",
"0.47448167",
"0.4743869",
"0.47426733",
"0.47420102",
"0.47419307",
"0.47391126",
"0.47366023",
"0.47349077",
"0.47345918",
"0.47338495",
"0.47327954",
"0.4731454",
"0.47246426",
"0.4721389",
"0.47203785",
"0.47203332",
"0.47180736",
"0.47180736",
"0.47180736",
"0.47180736",
"0.47180736",
"0.47180736",
"0.47180736",
"0.47180736",
"0.47180736",
"0.47180736",
"0.47180736",
"0.47180736",
"0.47180736",
"0.4717058",
"0.47170115",
"0.4714318",
"0.47087467",
"0.4705094",
"0.47045678",
"0.47040203",
"0.47030437",
"0.4702722",
"0.46983725",
"0.46973008",
"0.46969944",
"0.46909422",
"0.46879476",
"0.46876714",
"0.46875778",
"0.46865168",
"0.46839947",
"0.46825424",
"0.46812767",
"0.4681263"
] | 0.0 | -1 |
/ / / / / / / / / / | public void zoomRange(double lowerPercent, double upperPercent) {
/* */ long adjEnd, adjStart;
/* 1891 */ double start = this.timeline.toTimelineValue(
/* 1892 */ (long)getRange().getLowerBound());
/* 1893 */ double end = this.timeline.toTimelineValue(
/* 1894 */ (long)getRange().getUpperBound());
/* 1895 */ double length = end - start;
/* */
/* */
/* 1898 */ if (isInverted()) {
/* 1899 */ adjStart = (long)(start + length * (1.0D - upperPercent));
/* 1900 */ adjEnd = (long)(start + length * (1.0D - lowerPercent));
/* */ } else {
/* */
/* 1903 */ adjStart = (long)(start + length * lowerPercent);
/* 1904 */ adjEnd = (long)(start + length * upperPercent);
/* */ }
/* */
/* */
/* */
/* 1909 */ if (adjEnd <= adjStart) {
/* 1910 */ adjEnd = adjStart + 1L;
/* */ }
/* */
/* 1913 */ DateRange dateRange = new DateRange(this.timeline.toMillisecond(adjStart), this.timeline.toMillisecond(adjEnd));
/* 1914 */ setRange(dateRange);
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"double passer();",
"int getWidth() {return width;}",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public String ring();",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public Integer getWidth(){return this.width;}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void gored() {\n\t\t\n\t}",
"public void getTile_B8();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public String toString(){ return \"DIV\";}",
"int width();",
"public abstract String division();",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"@Override\n public void bfs() {\n\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"@Override\npublic void processDirection() {\n\t\n}",
"double getNewWidth();",
"long getWidth();",
"public int generateRoshambo(){\n ;]\n\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"double volume(){\n return width*height*depth;\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public int my_leaf_count();",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"Operations operations();",
"static int getNumPatterns() { return 64; }",
"void mo33732Px();",
"public double getPerimiter(){return (2*height +2*width);}",
"double seBlesser();",
"public void SubRect(){\n\t\n}",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public void skystonePos4() {\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public int getWidth(){\n return width;\n }",
"static void pyramid(){\n\t}",
"public void leerPlanesDietas();",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public String getRing();",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"void walk() {\n\t\t\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"int getTribeSize();",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"Parallelogram(){\n length = width = height = 0;\n }",
"public abstract double getBaseWidth();",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"void sharpen();",
"void sharpen();",
"double getPerimeter(){\n return 2*height+width;\n }",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"int expand();",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public static int size_parent() {\n return (8 / 8);\n }",
"public int getWidth()\n {return width;}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"String directsTo();",
"int depth();",
"int depth();",
"int getWidth1();",
"public abstract int getSpotsNeeded();",
"public int upright();",
"public void stg() {\n\n\t}",
"int getR();",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"public String getRingback();",
"double getWidth();",
"double getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] | [
"0.5540896",
"0.5446543",
"0.5227331",
"0.52141076",
"0.5111389",
"0.50963986",
"0.50654864",
"0.5038032",
"0.50336593",
"0.501189",
"0.50033337",
"0.5002645",
"0.4999724",
"0.4997505",
"0.49938273",
"0.4988672",
"0.4982446",
"0.49785286",
"0.4967535",
"0.49578318",
"0.4915642",
"0.49043542",
"0.4896837",
"0.48817068",
"0.48615584",
"0.48489416",
"0.4838888",
"0.48292333",
"0.48239383",
"0.48229367",
"0.48212478",
"0.48193154",
"0.48124096",
"0.48111546",
"0.4806745",
"0.4804178",
"0.48025957",
"0.47942734",
"0.4787015",
"0.47851548",
"0.47835702",
"0.47725245",
"0.47664967",
"0.476185",
"0.4760751",
"0.47598377",
"0.4759025",
"0.4757917",
"0.47506076",
"0.47504088",
"0.47497043",
"0.47486544",
"0.4747894",
"0.4746228",
"0.4741946",
"0.47376034",
"0.47327974",
"0.47300422",
"0.4727591",
"0.47272107",
"0.47263286",
"0.47261053",
"0.47214398",
"0.47212386",
"0.47205597",
"0.47184741",
"0.47169027",
"0.47127956",
"0.47109538",
"0.47052673",
"0.47015747",
"0.47015747",
"0.47005445",
"0.46963036",
"0.46961927",
"0.46945545",
"0.46940103",
"0.46804753",
"0.4678816",
"0.46784258",
"0.4676913",
"0.46759227",
"0.46728146",
"0.46719387",
"0.46686554",
"0.46686554",
"0.4666156",
"0.46614605",
"0.46611053",
"0.466004",
"0.46565068",
"0.46531367",
"0.4652937",
"0.4652573",
"0.4652573",
"0.46524948",
"0.46524948",
"0.46524948",
"0.46524948",
"0.46524948",
"0.46524948"
] | 0.0 | -1 |
/ / / / / / / / / / | public boolean equals(Object obj) {
/* 1926 */ if (obj == this) {
/* 1927 */ return true;
/* */ }
/* 1929 */ if (!(obj instanceof DateAxis)) {
/* 1930 */ return false;
/* */ }
/* 1932 */ DateAxis that = (DateAxis)obj;
/* 1933 */ if (!ObjectUtilities.equal(this.timeZone, that.timeZone)) {
/* 1934 */ return false;
/* */ }
/* 1936 */ if (!ObjectUtilities.equal(this.locale, that.locale)) {
/* 1937 */ return false;
/* */ }
/* 1939 */ if (!ObjectUtilities.equal(this.tickUnit, that.tickUnit)) {
/* 1940 */ return false;
/* */ }
/* 1942 */ if (!ObjectUtilities.equal(this.dateFormatOverride, that.dateFormatOverride))
/* */ {
/* 1944 */ return false;
/* */ }
/* 1946 */ if (!ObjectUtilities.equal(this.tickMarkPosition, that.tickMarkPosition))
/* */ {
/* 1948 */ return false;
/* */ }
/* 1950 */ if (!ObjectUtilities.equal(this.timeline, that.timeline)) {
/* 1951 */ return false;
/* */ }
/* 1953 */ return super.equals(obj);
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"double passer();",
"int getWidth() {return width;}",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public String ring();",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public Integer getWidth(){return this.width;}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void gored() {\n\t\t\n\t}",
"public void getTile_B8();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public String toString(){ return \"DIV\";}",
"int width();",
"public abstract String division();",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"@Override\n public void bfs() {\n\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"@Override\npublic void processDirection() {\n\t\n}",
"double getNewWidth();",
"long getWidth();",
"public int generateRoshambo(){\n ;]\n\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"double volume(){\n return width*height*depth;\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public int my_leaf_count();",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"Operations operations();",
"static int getNumPatterns() { return 64; }",
"void mo33732Px();",
"public double getPerimiter(){return (2*height +2*width);}",
"double seBlesser();",
"public void SubRect(){\n\t\n}",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public void skystonePos4() {\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public int getWidth(){\n return width;\n }",
"static void pyramid(){\n\t}",
"public void leerPlanesDietas();",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public String getRing();",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"void walk() {\n\t\t\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"int getTribeSize();",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"Parallelogram(){\n length = width = height = 0;\n }",
"public abstract double getBaseWidth();",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"void sharpen();",
"void sharpen();",
"double getPerimeter(){\n return 2*height+width;\n }",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"int expand();",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public static int size_parent() {\n return (8 / 8);\n }",
"public int getWidth()\n {return width;}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"String directsTo();",
"int depth();",
"int depth();",
"int getWidth1();",
"public abstract int getSpotsNeeded();",
"public int upright();",
"public void stg() {\n\n\t}",
"int getR();",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"public String getRingback();",
"double getWidth();",
"double getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] | [
"0.5540896",
"0.5446543",
"0.5227331",
"0.52141076",
"0.5111389",
"0.50963986",
"0.50654864",
"0.5038032",
"0.50336593",
"0.501189",
"0.50033337",
"0.5002645",
"0.4999724",
"0.4997505",
"0.49938273",
"0.4988672",
"0.4982446",
"0.49785286",
"0.4967535",
"0.49578318",
"0.4915642",
"0.49043542",
"0.4896837",
"0.48817068",
"0.48615584",
"0.48489416",
"0.4838888",
"0.48292333",
"0.48239383",
"0.48229367",
"0.48212478",
"0.48193154",
"0.48124096",
"0.48111546",
"0.4806745",
"0.4804178",
"0.48025957",
"0.47942734",
"0.4787015",
"0.47851548",
"0.47835702",
"0.47725245",
"0.47664967",
"0.476185",
"0.4760751",
"0.47598377",
"0.4759025",
"0.4757917",
"0.47506076",
"0.47504088",
"0.47497043",
"0.47486544",
"0.4747894",
"0.4746228",
"0.4741946",
"0.47376034",
"0.47327974",
"0.47300422",
"0.4727591",
"0.47272107",
"0.47263286",
"0.47261053",
"0.47214398",
"0.47212386",
"0.47205597",
"0.47184741",
"0.47169027",
"0.47127956",
"0.47109538",
"0.47052673",
"0.47015747",
"0.47015747",
"0.47005445",
"0.46963036",
"0.46961927",
"0.46945545",
"0.46940103",
"0.46804753",
"0.4678816",
"0.46784258",
"0.4676913",
"0.46759227",
"0.46728146",
"0.46719387",
"0.46686554",
"0.46686554",
"0.4666156",
"0.46614605",
"0.46611053",
"0.466004",
"0.46565068",
"0.46531367",
"0.4652937",
"0.4652573",
"0.4652573",
"0.46524948",
"0.46524948",
"0.46524948",
"0.46524948",
"0.46524948",
"0.46524948"
] | 0.0 | -1 |
/ / / / / / / / / 1963 | public int hashCode() { return super.hashCode(); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int getYear(byte[] bytes) {\n return readBits(bytes, YEAR_POS, YEAR_BITS) - YEAR_EXCESS;\n }",
"public String getYear(){\n return rssData.getDate().split(\"/\")[2];\n }",
"public int getDocumentYear();",
"int getYears();",
"public static void main(String[] args) {\n\n System.out.println(\"Numbers of seconds in a year: \" + (60 * 60 * 24 * 365));\n System.out.println(\"Numbers of birth per year: \" + (31536000 / 7.0));\n System.out.println(\"Numbers of death per year: \" + (31536000 / 13.0));\n System.out.println(\"Numbers of immigrants per year: \" + (31536000 / 45.0));\n\n System.out.println(\"Year\\t\\t\\tPopulation\" +\n \"\\n0\\t\\t\\t\\t312032486\" +\n \"\\n1\\t\\t\\t\\t\" + (312032486 + 4505142.857142857 - 2425846.153846154 + 700800.0) +\n \"\\n2\\t\\t\\t\\t\" + (3.148125827032967E8 + 4505142.857142857 - 2425846.153846154 + 700800.0) +\n \"\\n3\\t\\t\\t\\t\" + (3.1759267940659344E8 + 4505142.857142857 - 2425846.153846154 + 700800.0) +\n \"\\n4\\t\\t\\t\\t\" + (3.2037277610989016E8 + 4505142.857142857 - 2425846.153846154 + 700800.0) +\n \"\\n5\\t\\t\\t\\t\" + (3.231528728131869E8 + 4505142.857142857 - 2425846.153846154 + 700800.0)\n );\n }",
"int getYear();",
"private static String calcYMD(int[] age){\n\t\treturn age[2]+\" years \" + age[1] + \" months \" + age[0] + \" days \";\n\t}",
"public void EasterMath(int year)\n {\n a = year%19;\n b = Math.floor(year/100);\n c = year%100;\n d = Math.floor((b/4));\n e = b%4;\n f = Math.floor((b+8)/25);\n g = Math.floor((b-f+1)/3);\n h = (19*a+b-d-g+15)%30;\n i = Math.floor(c/4);\n k = c%4;\n l = (32 + 2* e + 2 * i - h - k)%7;\n m = Math.floor((a+11*h+22*l)/451);\n month = (int) Math.floor((h+l-7*m+114)/31);\n day = (int) (((h+l-7*m+114)%31)+1);\n }",
"public int getCycleYearsForComponent(Record record);",
"public short getYear() {\n return year;\n }",
"java.lang.String getField1980();",
"public int getYear() { return year; }",
"public int getYear() { return year; }",
"public String getMountains() {\n return \" YYYY Y YY Y YY YYYY \\n\" +\n \" YYYYYY YYYY YYYY YY YYYYY YYYYYY \\n\" +\n \" YYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY \\n\" +\n \" YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY \\n\" +\n \" YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY \\n\" +\n \" YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY \\n\" +\n \"YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY \\n\" +\n \"YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY\\n\" +\n \"YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY\\n\" +\n \"YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY\\n\" +\n \"YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY\\n\" +\n \"YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY\\n\" +\n \"YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY\\n\" +\n \"YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY\\n\" +\n \"YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY\\n\" +\n \"YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY\\n\" +\n \"YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY\\n\";\n\n }",
"Integer getTHunYear();",
"private static String calcY_MD(int[] age){\n\t\tdouble y = age[2];\t// Add number of years\n\t\ty += age[1]/12.0;\t// Add months as fraction (divided by 12)\t// as each year has 12 months\n\t\ty += age[0]/365.0;\t// Add days as fraction (divided by 365)\t// as each year has 365 days\n\t\treturn y+\"\";\n\t}",
"public short getYear() {\n return year;\n }",
"public short getYear() {\n return year;\n }",
"public short getYear() {\n return year;\n }",
"public short getYear() {\n return year;\n }",
"public int getYear() {\n\treturn year;\n}",
"public static void main(String[] args) {\n int i =2003;\n long d = 13220100526L;\n System.out.println(new Date(d));\n System.out.println(i / 20 + (i % 20 > 0 ? 1 : 0));\n }",
"public YearCitation(Date mostRecentVersion) {\n\t\tthis.mostRecentVersion = mostRecentVersion; \n\t\tyearFormat = new SimpleDateFormat(\"yyyy\");\n\t}",
"public int getYear() {\n\treturn year;\n }",
"@Override\n protected long getTimestampField(long time) {\n int year = Arrays.binarySearch(YEAR_BOUNDARIES, time);\n if(year >= 0) {\n /* 0 == 1902 etc */\n return MIN_YEAR + 1 + year;\n } else {\n /* -1 == 1901, -2 == 1902 */\n return MIN_YEAR - 1 - year;\n }\n }",
"public short getYear() {\r\n return year;\r\n }",
"public int getYear()\n {\n return year;\n }",
"public int getYear(){\n\t\treturn year; \n\t}",
"public int getYear() \n\t{\n\t\treturn year;\n\t}",
"YearScore () {}",
"public int getYear(){\r\n\t\treturn year;\r\n\t}",
"Integer getTenYear();",
"public int getYear()\n {\n return yr;\n }",
"public int getYear () {\n return year;\n }",
"public int getStartingYear()\n {\n return 2013;\n }",
"public int getYear(){\n\t\treturn year;\n\t}",
"public void setYear(int _year) { year = _year; }",
"public int getYear() {\n\t\treturn year;\n\t}",
"Years createYears();",
"private int getPublishingYear(String date) {\n String[] splitArray = date.split(\"-\");\n\n return Integer.parseInt(splitArray[splitArray.length - 1]);\n }",
"int getExpYear(String bookingRef);",
"public String getYear()\r\n {\r\n return year;\r\n }",
"public int getYear() {\n return year;\n }",
"public int getYear() {\n\t return year;\n\t}",
"public short getYear() {\n return year;\n }",
"public double getYear() {\n return year;\n }",
"public int getAuthorBirthYear(){\r\n return author.getBirthYear();\r\n }",
"public int getYear() {\r\n return year;\r\n }",
"public int getYear() {\r\n return year;\r\n }",
"public abstract String reportLeapYear(int year);",
"public void Eastercounter(){\n\n int i,j;\n String m = \"\";\n\n int frequency[][] = new int [2][31];\n\n for (i=0; i<2; i++){\t\t\t\t\t\t//initialize frequency array\n for(j=0;j<31;j++){\n frequency[i][j] = 0;\n }//end inner for\n }//end outer for\n\n\n for(i=1; i <= 5700000; i++){\n year = i;\n calcEasterDate();\n\n for(i=0;i<2;i++){\n for(j=0;j<31;j++){\n if((i == 0 && j<21) || (i==1 && j>24)){\n continue;\n }\n if ((i+3) == month && (j+1) == day ){\n ++frequency[i][j];\n\n }//end if\n }//end inner for\n }//end outer for\n }//end loop through years\n\n for(i=0;i<2;i++){\n for(j=0;j<31;j++){\n\n if (i == 0){\n m = \"March\";\n }\n if (i == 1){\n m = \"April\";\n }\n\n if (frequency[i][j] != 0)\n System.out.printf(\"%s %d - %d\\n\",m,(j+1), frequency[i][j]);\n }\n }\n }",
"public int getYear(){\n\t return this.year;\n }",
"java.lang.String getField1996();",
"public YearToCentury() // defining method YearToCentury\r\n\t{\r\n\t\tyear =0; // value of year =0\r\n\t}",
"java.lang.String getField1970();",
"public int mo1993d() {\n return this.f1963b.size();\n }",
"@Override\n\tpublic int getYear() {\n\t\treturn year;\n\t}",
"public int calc_century() // defining method calc_century\r\n\t{\r\n\t\tif(year %100 == 0) // implement in the condition of year%100 =0\r\n\t\t\tyear = year / 100; // divide year by 100 and put its value to year\r\n\t\telse // implement except for the condition of year%100 =0\r\n\t\t{\r\n\t\t\tyear = (year/100) +1; // divide year by 100 and add 1 then put its value to year\r\n\t\t}\r\n\t\treturn year; // return value of year\r\n\t}",
"public int getYear() {\n\t\treturn year; \n\t}",
"public Integer getYear() {\r\n return year;\r\n }",
"public Integer getYear() {\r\n return year;\r\n }",
"public int getYear() {\r\n\t\treturn year;\r\n\t}",
"public static final int getReleaseYear() { return 2019; }",
"public int getYear() {\n return year;\n }",
"public void setYear(int year) {\n\tthis.year = year;\n}",
"public void setYear(String year)\r\n {\r\n this.year = year; \r\n }",
"public int getYearLevel(){\r\n return yearLevel;\r\n }",
"public String getYear()\n {\n return year;\n }",
"public void printYearLiterature(int years) {\n Calendar calendar = new GregorianCalendar();\n calendar.setTime(new Date(System.currentTimeMillis()));\n\n //set current year\n int currentYear = calendar.get(Calendar.YEAR);\n\n //print all books in articles for the last years\n if (books.size() != 0) {\n System.out.println(\"Books: \");\n for (Book b : books) {\n if (b.getPublishingYear() <= currentYear && b.getPublishingYear() > (currentYear - years)) {\n System.out.print(\"\\nName: \" + b.getName() + \", Author: \" + b.getAuthor()\n + \", Publishing House: \" + b.getPublishingHouse() + \", Publishing Year: \"\n + b.getPublishingYear());\n }\n }\n } else {\n System.out.println(\"0 books in articles!\");\n }\n\n //print all journals in articles for the last years\n if (journals.size() != 0) {\n System.out.println(\"\\n\\nJournals: \");\n for (Journal j : journals) {\n if (getPublishingYear(j.getPublishingDate()) <= currentYear\n && getPublishingYear(j.getPublishingDate()) > (currentYear - years)) {\n System.out.print(\"\\nName: \" + j.getName() + \", Subjects: \" + j.getSubjects()\n + \", Publishing date: \" + j.getPublishingDate());\n }\n }\n } else {\n System.out.println(\"0 journals in articles!\");\n }\n\n //print all yearbooks in articles for the last years\n if (yearbooks.size() != 0) {\n System.out.println(\"\\n\\nYearbooks: \");\n for (Yearbook y : yearbooks) {\n if (y.getPublishingYear() <= currentYear && y.getPublishingYear() > (currentYear - years))\n System.out.print(\"\\nName: \" + y.getName() + \", Subjects: \" + y.getSubjects()\n + \", Publishing House: \" + y.getPublishingHouse() + \", Publishing Year: \"\n + y.getPublishingYear());\n }\n } else {\n System.out.println(\"0 yearbooks in articles!\");\n }\n }",
"Year createYear();",
"public static void main(String[] args) {\n\t\tString[]pp ={\"日\",\"一\",\"二\",\"三\",\"四\",\"五\",\"六\"};\r\n\t\tfor (int i = 0;i<pp.length;i++){\r\n\t\t\tSystem.out.print(pp[i]+\"\\t\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\tString s = new String(); int year; int month=12;int sum=0;int mm;int a1=0;\r\n\t\tString q = new String();String Blank = \"\";String e = \"\";\r\n\t\ts=JOptionPane.showInputDialog(\"請輸入年分\");\r\n\t\tq=JOptionPane.showInputDialog(\"請輸入月分\");\r\n\t\t\r\n\t\tyear=Integer.parseInt(s);\r\n\t\tmm=Integer.parseInt(q);\r\n\t\tint[][][] aa = new int[year][month][];\r\n\t\tfor(int y = 1752 ; y<=aa.length;y++){\r\n\t\tfor (int i = 0;i<aa[y-1].length;i++){\r\n\t\t\tswitch(i){\r\n\t\t\tcase 0: case 2: case 4: case 6: case 7: case 9: case 11:\r\n\t\t\taa[y-1][i]=new int[31];\r\n\t\t\tbreak;\r\n\t\t\tcase 3: case 5: case 8: case 10:\r\n\t\t\taa[y-1][i]=new int[30];\r\n\t\t\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\tif (y % 4 == 0){\r\n\t\t\t\t\tif (y % 100 == 0){\r\n\t\t\t\t\t\tif (y % 400 == 0){\r\n\t\t\t\t\t\t\taa[y-1][1]=new int[29];\r\n\t\t\t\t\t\t\t// 29\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\taa[y-1][1]=new int[28];\r\n\t\t\t\t\t\t\t// 28\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\taa[y-1][1]=new int[28];\r\n\t\t\t\t\t\t// 28\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\taa[y-1][1]=new int[28];\r\n\t\t\t\t\t// 28\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t}\t\r\n\t\t\tfor(int m = 0 ; m < aa[y-1].length;m++){\r\n\t\t\t\tfor(int d = 0; d< aa[y-1][m].length;d++){\r\n\t\t\t\t\tsum+=1;\r\n\t\t\t\t\taa[y-1][m][d]=d+1;\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t}\t\t\r\n\t\tfor ( int r=mm;r<=aa[year-1].length;r++){\r\n\t\t\tfor(int i =0;i<aa[year-1][r-1].length;i++){\r\n\t\t\t\ta1++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tsum=sum-256-a1;\r\n\t\t\r\n\t\t\r\n\t\r\n\tfor (int b = 0;b<((sum-3)%7);b++){\r\n\t\t\t\tBlank=Blank + \"\\t\";\r\n\t}\r\n\t\t\r\n\t\t\r\n\t\tfor (int a = 0;a<aa[year-1][mm-1].length;a++){\r\n\t\t\tif(((sum-3)%7+a+1)%7==0){\r\n\t\t\te=e+(aa[year-1][mm-1][a]+\"\\t\" +\"\\n\");\t\t\r\n\t\t\t}else{\r\n\t\t\te=e+(aa[year-1][mm-1][a]+\"\\t\");\t\r\n\t\t\t}\r\n\t}\r\n\t\tSystem.out.println(Blank+e);\r\n\t}",
"public Easter(int year)\n {\n this.year = year;\n endYear = year + 5700000;\n a = year%19;\n b = Math.floor(year/100);\n c = year%100;\n d = Math.floor((b/4));\n e = b%4;\n f = Math.floor((b+8)/25);\n g = Math.floor((b-f+1)/3);\n h = (19*a+b-d-g+15)%30;\n i = Math.floor(c/4);\n k = c%4;\n l = (32 + 2* e + 2 * i - h - k)%7;\n m = Math.floor((a+11*h+22*l)/451);\n month = (int) Math.floor((h+l-7*m+114)/31);\n day = (int) (((h+l-7*m+114)%31)+1);\n }",
"public int getYear() {\r\n return this.year;\r\n }",
"public int getYear() {\n\t\treturn year;\n\t}",
"public int getYear() {\n\t\treturn year;\n\t}",
"public int getYear() {\n\t\treturn year;\n\t}",
"@Override\n\tpublic void girth() {\n\t\tSystem.out.println(this.name+\"的周长:\"+ (land1+land2+land3));\n\t}",
"public int getYear() {\n\n return this.cyear;\n\n }",
"public int getYear() {\n return year;\n }",
"public void checkYear()\n {\n //Rat\n if (year == 1900 || year == 1912 || year == 1924 || year == 1936 || year == 1948 || year == 1960 || year == 1972 || year == 1984 || year == 1996 || year == 2008 || year == 2020)\n {System.out.println(\"Born in the year of the Rat\");}\n //Ox\n else if (year == 1901 || year == 1913 || year == 1925 || year == 1937 || year == 1949 || year == 1961 || year == 1973 || year == 1985 || year == 1997 || year == 2009 || year == 2021)\n {System.out.println(\"Born in the year of the Ox\");}\n //tiger\n else if (year == 1902 || year == 1914 || year == 1926 || year == 1938 || year == 1950 || year == 1962 || year == 1974 || year == 1986 || year == 1998 || year == 2010 || year == 2022)\n {System.out.println(\"Born in the year of the Tiger\");}\n //Hare\n else if (year == 1903 || year == 1915 || year == 1927 || year == 1939 || year == 1951 || year == 1963 || year == 1975 || year == 1987 || year == 1999 || year == 2011 || year == 2023)\n {System.out.println(\"Born in the year of the Hare/Rabbit\");}\n //Dragon\n else if (year == 1904 || year == 1916 || year == 1928 || year == 1940 || year == 1952 || year == 1964 || year == 1976 || year == 1988 || year == 2000 || year == 2012 || year == 2024)\n {System.out.println(\"Born in the year of the Dragon\");}\n //Snake\n else if (year == 1905 || year == 1917 || year == 1929 || year == 1941 || year == 1953 || year == 1965 || year == 1977 || year == 1989 || year == 2001 || year == 2012 || year == 2025)\n {System.out.println(\"Born in the year of the Snake\");}\n //Horse\n else if (year == 1906 || year == 1918 || year == 1930 || year == 1942 || year == 1954 || year == 1966 || year == 1978 || year == 1990 || year == 2002 || year == 2013 || year == 2026)\n {System.out.println(\"Born in the year of the Horse\");}\n //Ram\n else if (year == 1907 || year == 1919 || year == 1931 || year == 1943 || year == 1955 || year == 1967 || year == 1979 || year == 1991 || year == 2003 || year == 2014 || year == 2027)\n {System.out.println(\"Born in the year of the Ram\");}\n //Monkey\n else if (year == 1908 || year == 1920 || year == 1932 || year == 1944 || year == 1956 || year == 1968 || year == 1980 || year == 1992 || year == 2004 || year == 2015 || year == 2028)\n {System.out.println(\"Born in the year of the Monkey\");}\n //Rooster\n else if (year == 1909 || year == 1921 || year == 1933 || year == 1945 || year == 1957 || year == 1969 || year == 1981 || year == 1993 || year == 2005 || year == 2016 || year == 2029)\n {System.out.println(\"Born in the year of the Rooster\");}\n //Dog\n else if (year == 1910 || year == 1922 || year == 1934 || year == 1946 || year == 1958 || year == 1970 || year == 1982 || year == 1994 || year == 2006 || year == 2017 || year == 2030)\n {System.out.println(\"Born in the year of the Dog\");}\n //Pig\n else if (year == 1911 || year == 1923 || year == 1935 || year == 1947 || year == 1959 || year == 1971 || year == 1983 || year == 1995 || year == 2007 || year == 2018 || year == 2031)\n {System.out.println(\"Born in the year of the Pig\");}\n }",
"public static void main(String[] args) {\n//\t\tOutput:\n//\t\tIt is year 2011\n//\t\tIt is year 2012\n//\t\tIt is year 2013\n//\t\tIt is year 2014\n//\t\tIt is year 2015\n//\t\tIt is year 2016\n//\t\tIt is year 2017\n//\t\tIt is year 2018\n\n\t\tfor(int i=2011;i<2019;i++) {\n\t\t\tSystem.out.println(\"It is year \" +i);\n\t\t}\n\t}",
"private String expandYear(String decade){\n\t\t/*\n\t\t * TODO:\n\t\t * Problem with year 21XX\n\t\t */\n\t\tif(decade.startsWith(\"9\"))\n\t\t\treturn \"19\" + decade;\n\t\telse\n\t\t\treturn \"20\" + decade;\n\t}",
"public Integer getYear() {\n return year;\n }",
"public Integer getYear() {\n return year;\n }",
"public Integer getYear() {\n return year;\n }",
"public int getNoYears(){return this.no_years;}",
"public int getNumberOfYears() {\r\n return yearLabels.length;\r\n }",
"@Override\n\tpublic void oneYearAgo(int year) {\n\n\t}",
"public static void main(String[] args)\r\n {\n Date date = new Date();\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.setTime(date);\r\n \r\n year = calendar.get(Calendar.YEAR);\r\n month = calendar.get(Calendar.MONTH) + 1; // Januarry is Month 0 ???\r\n day = calendar.get(Calendar.DAY_OF_MONTH);\r\n \r\n //initialize a dictionary.\r\n Hdict dict = new Hdict();\r\n leechYahoo(dict);\r\n leechNytimes(dict);\r\n leechCNN(dict);\r\n //fox doesn't work, have to find the conversation element.\r\n //leechFOX(dict);\r\n \r\n Words[] output = dict.toArr();\r\n Hdict.arrSort(output);\r\n \r\n for(int i = 0; i < output.length; i++)\r\n {\r\n System.out.println(\"word \" + output[i].getName() + \" has popularity \" + output[i].getPopularity());\r\n }\r\n }",
"java.lang.String getField1995();",
"public static int centuryFromYear(int year) {\n\n return ( (year%100) == 0) ? year/100 : year/100 + 1;\n\n }",
"void mo1943l();",
"@Override\n\tpublic int getYear() {\n\t\treturn _esfShooterAffiliationChrono.getYear();\n\t}",
"private int m2013i() {\n return C0962e0.m5566x(this.f1288Z) == 1 ? 0 : 1;\n }",
"public String getYear() {\n\t\treturn year;\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tint currentYear = 2020;\r\n\t\tint bornYear = 1996;\r\n\t\t//년 기준으로\r\n\t\tSystem.out.println(currentYear + \"년 기준으로\");\r\n\t\tint answerYear = currentYear - bornYear +1;\r\n\t\t// 저의 나이는 25입니다.\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"저의 나이는 \"+answerYear+\"입니다.\");\r\n\t\r\n//\t\t+ 더하기 연산자 글자와 숫자를\r\n//\t\tconcatenation (연결이라는 기술)\r\n//\t\t숫자+숫자 = 숫자\r\n//\t\t숫자+글자 = 글자\r\n//\t\t글자+글자 = 글자\r\n//\t\t글자 = 문자열 ( 모든 표기법 문자열이 강력함 이세상 숫자를 문자로 표현 가능하기에)\r\n\t\t\r\n\t\tSystem.out.println(answerYear);\r\n\t\tSystem.out.println(answerYear+\"글자란다\");\r\n\t\tSystem.out.println(\"나의\"+answerYear+1+\"글자\");\r\n\t\tSystem.out.println(34+1+\"과연\");\r\n\t\tSystem.out.println(34+\"1\"+\"과연\");\r\n\t\t\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t}",
"public static int getTodaysYear() {\t\r\n\t\t\r\n\t\tTime time = new Time();\r\n\t\ttime.setToNow();\r\n\t\treturn time.year;\t\r\n\t\t\r\n\t}",
"public String mo1983z() throws cf {\r\n int E = m10257E();\r\n m10274f(E);\r\n if (E == 0) {\r\n return bi_常量类.f6358b_空串;\r\n }\r\n try {\r\n if (this.g.mo1996h() < E) {\r\n return new String(m10273e(E), \"UTF-8\");\r\n }\r\n String str = new String(this.g.mo1994f(), this.g.mo1995g(), E, \"UTF-8\");\r\n this.g.mo1993a(E);\r\n return str;\r\n } catch (UnsupportedEncodingException e) {\r\n throw new cf(\"UTF-8 not supported!\");\r\n }\r\n }",
"public void setYear(int year)\n {\n this.year = year;\n }",
"public void setYear (int yr) {\n year = yr;\n }",
"@Override\n\tpublic int getTimeSlice() {\n\t\treturn 0;\n\t}"
] | [
"0.55821496",
"0.55372554",
"0.54404527",
"0.54286563",
"0.5416914",
"0.53744364",
"0.53520143",
"0.53072035",
"0.5275292",
"0.51769197",
"0.51709974",
"0.5156755",
"0.5156755",
"0.5121452",
"0.5116534",
"0.5090103",
"0.50869715",
"0.5078324",
"0.5078324",
"0.5078324",
"0.50617325",
"0.5059476",
"0.50378186",
"0.50328434",
"0.5006529",
"0.49987316",
"0.4992406",
"0.49913004",
"0.4980193",
"0.49781093",
"0.4977188",
"0.49707675",
"0.49690628",
"0.49585629",
"0.49524307",
"0.49507713",
"0.49339792",
"0.4933352",
"0.49302286",
"0.49280298",
"0.49269775",
"0.49088967",
"0.48998258",
"0.48991558",
"0.4898741",
"0.48970735",
"0.48920426",
"0.48900104",
"0.48861635",
"0.48846856",
"0.4882386",
"0.48792928",
"0.48434082",
"0.48396817",
"0.48308507",
"0.48277876",
"0.4819205",
"0.48051894",
"0.47957954",
"0.47925127",
"0.47925127",
"0.47917074",
"0.47896793",
"0.47888646",
"0.4788564",
"0.47755685",
"0.47661197",
"0.47630805",
"0.4762414",
"0.47577736",
"0.4755965",
"0.4746755",
"0.47427446",
"0.47295046",
"0.47295046",
"0.47295046",
"0.4728403",
"0.47279128",
"0.47264293",
"0.46991512",
"0.46895623",
"0.46855688",
"0.46853352",
"0.46853352",
"0.46853352",
"0.46813244",
"0.46811864",
"0.46810472",
"0.46797016",
"0.46782896",
"0.46647793",
"0.46619675",
"0.4646191",
"0.46447822",
"0.46408078",
"0.46382862",
"0.46357137",
"0.46329677",
"0.46320775",
"0.46300608",
"0.46288365"
] | 0.0 | -1 |
/ / / / / / / / / / / / | public Object clone() throws CloneNotSupportedException {
/* 1976 */ DateAxis clone = (DateAxis)super.clone();
/* */
/* 1978 */ if (this.dateFormatOverride != null) {
/* 1979 */ clone
/* 1980 */ .dateFormatOverride = (DateFormat)this.dateFormatOverride.clone();
/* */ }
/* */
/* 1983 */ return clone;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"int getWidth() {return width;}",
"double passer();",
"public Integer getWidth(){return this.width;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"int width();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public void gored() {\n\t\t\n\t}",
"public String ring();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public abstract String division();",
"public double getWidth() { return _width<0? -_width : _width; }",
"static int getNumPatterns() { return 64; }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"long getWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"double getNewWidth();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public int my_leaf_count();",
"@Override\n public void bfs() {\n\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"int getTribeSize();",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"void mo33732Px();",
"double seBlesser();",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"@Override\npublic void processDirection() {\n\t\n}",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"double volume(){\n return width*height*depth;\n }",
"public int getWidth(){\n return width;\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public void leerPlanesDietas();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public static int size_parent() {\n return (8 / 8);\n }",
"Operations operations();",
"public double getPerimiter(){return (2*height +2*width);}",
"public String getRing();",
"public void skystonePos4() {\n }",
"public abstract int getSpotsNeeded();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public abstract double getBaseWidth();",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"int expand();",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"long getMid();",
"long getMid();",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"int getSpriteArraySize();",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"static void pyramid(){\n\t}",
"public void SubRect(){\n\t\n}",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"Parallelogram(){\n length = width = height = 0;\n }",
"int depth();",
"int depth();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"String directsTo();",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"public String getRingback();",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"@Override\n\tprotected void interr() {\n\t}",
"int getWidth1();"
] | [
"0.5528792",
"0.54315263",
"0.51737124",
"0.5150286",
"0.5077775",
"0.5064908",
"0.50597715",
"0.5045933",
"0.5037415",
"0.5019393",
"0.50050676",
"0.50032693",
"0.499702",
"0.49949083",
"0.49852678",
"0.4973753",
"0.4970428",
"0.49669605",
"0.49542087",
"0.4945966",
"0.4921133",
"0.49079603",
"0.4884644",
"0.4879366",
"0.48769364",
"0.48760977",
"0.48618412",
"0.4857062",
"0.4856107",
"0.4848026",
"0.48381364",
"0.4837923",
"0.48339877",
"0.48231202",
"0.48226285",
"0.48105136",
"0.4810298",
"0.48000357",
"0.47999635",
"0.47987804",
"0.47920895",
"0.4786291",
"0.47706842",
"0.47685736",
"0.47684807",
"0.4768041",
"0.47676992",
"0.47632176",
"0.4761828",
"0.4761766",
"0.47591394",
"0.47565237",
"0.47525048",
"0.4752376",
"0.47481483",
"0.4744625",
"0.4740494",
"0.47396293",
"0.4731915",
"0.47255778",
"0.47226188",
"0.4720667",
"0.47175038",
"0.47175038",
"0.47165227",
"0.47134835",
"0.47109672",
"0.47085458",
"0.47068602",
"0.470273",
"0.4697842",
"0.4696386",
"0.46950635",
"0.46950635",
"0.46914726",
"0.46891877",
"0.468772",
"0.46854112",
"0.4684771",
"0.4678754",
"0.46776247",
"0.46760088",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46702778",
"0.46682474"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / / / / / 2002 | public static TickUnitSource createStandardDateTickUnits(TimeZone zone) { return createStandardDateTickUnits(zone, Locale.getDefault()); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int getYear(byte[] bytes) {\n return readBits(bytes, YEAR_POS, YEAR_BITS) - YEAR_EXCESS;\n }",
"private int m10257E() throws cf {\r\n int i = 0;\r\n int i2;\r\n if (this.g.mo1996h() >= 5) {\r\n byte[] f = this.g.mo1994f();\r\n int g = this.g.mo1995g();\r\n i2 = 0;\r\n int i3 = 0;\r\n while (true) {\r\n byte b = f[g + i];\r\n i3 |= (b & 127) << i2;\r\n if ((b & 128) != 128) {\r\n this.g.mo1993a(i + 1);\r\n return i3;\r\n }\r\n i2 += 7;\r\n i++;\r\n }\r\n } else {\r\n i2 = 0;\r\n while (true) {\r\n byte u = mo1978u();\r\n i2 |= (u & 127) << i;\r\n if ((u & 128) != 128) {\r\n return i2;\r\n }\r\n i += 7;\r\n }\r\n }\r\n }",
"public static void main(String[] args) {\n int i =2003;\n long d = 13220100526L;\n System.out.println(new Date(d));\n System.out.println(i / 20 + (i % 20 > 0 ? 1 : 0));\n }",
"public int arn() {\n return 383;\n }",
"public abstract long mo9229aD();",
"long getUnknown72();",
"void mo1943l();",
"public int mo1993d() {\n return this.f1963b.size();\n }",
"long mo20406a();",
"public abstract long mo24409b();",
"public static int offset_infos_timestamp() {\n return (32 / 8);\n }",
"public static int size_infos_timestamp() {\n return (32 / 8);\n }",
"public void EasterMath(int year)\n {\n a = year%19;\n b = Math.floor(year/100);\n c = year%100;\n d = Math.floor((b/4));\n e = b%4;\n f = Math.floor((b+8)/25);\n g = Math.floor((b-f+1)/3);\n h = (19*a+b-d-g+15)%30;\n i = Math.floor(c/4);\n k = c%4;\n l = (32 + 2* e + 2 * i - h - k)%7;\n m = Math.floor((a+11*h+22*l)/451);\n month = (int) Math.floor((h+l-7*m+114)/31);\n day = (int) (((h+l-7*m+114)%31)+1);\n }",
"private int getOffset() {\n\t\tint offset = ((35 + ((year-1) / 4) - ((year-1) / 100) + ((year-1) / 400) + (year-1)) + 1) % 7;\n\t\tif (!name.contentEquals(\"January\") && !name.contentEquals(\"February\") && leap(year)) {\n\t\t\toffset++;\n\t\t}\n\t\tswitch(name) {\n\t\tcase \"February\":\n\t\t\toffset += 31;\n\t\t\tbreak;\n\t\tcase \"March\":\n\t\t\toffset += 59;\n\t\t\tbreak;\n\t\tcase \"April\":\n\t\t\toffset += 90;\n\t\t\tbreak;\n\t\tcase \"May\":\n\t\t\toffset += 120;\n\t\t\tbreak;\n\t\tcase \"June\":\n\t\t\toffset += 151;\n\t\t\tbreak;\n\t\tcase \"July\":\n\t\t\toffset += 181;\n\t\t\tbreak;\n\t\tcase \"August\":\n\t\t\toffset += 212;\n\t\t\tbreak;\n\t\tcase \"September\":\n\t\t\toffset += 243;\n\t\t\tbreak;\n\t\tcase \"October\":\n\t\t\toffset += 273;\n\t\t\tbreak;\n\t\tcase \"November\":\n\t\t\toffset += 304;\n\t\t\tbreak;\n\t\tcase \"December\":\n\t\t\toffset += 334;\n\t\t\tbreak;\n\t\t}\n\t\treturn offset % 7;\n\t}",
"public abstract long mo13681c();",
"public abstract long mo131997a() throws IOException;",
"private static String calcYMD(int[] age){\n\t\treturn age[2]+\" years \" + age[1] + \" months \" + age[0] + \" days \";\n\t}",
"public int getFootprintLength() {\n return 1;\n }",
"public static void main(String[] args) {\n\n System.out.println(\"Numbers of seconds in a year: \" + (60 * 60 * 24 * 365));\n System.out.println(\"Numbers of birth per year: \" + (31536000 / 7.0));\n System.out.println(\"Numbers of death per year: \" + (31536000 / 13.0));\n System.out.println(\"Numbers of immigrants per year: \" + (31536000 / 45.0));\n\n System.out.println(\"Year\\t\\t\\tPopulation\" +\n \"\\n0\\t\\t\\t\\t312032486\" +\n \"\\n1\\t\\t\\t\\t\" + (312032486 + 4505142.857142857 - 2425846.153846154 + 700800.0) +\n \"\\n2\\t\\t\\t\\t\" + (3.148125827032967E8 + 4505142.857142857 - 2425846.153846154 + 700800.0) +\n \"\\n3\\t\\t\\t\\t\" + (3.1759267940659344E8 + 4505142.857142857 - 2425846.153846154 + 700800.0) +\n \"\\n4\\t\\t\\t\\t\" + (3.2037277610989016E8 + 4505142.857142857 - 2425846.153846154 + 700800.0) +\n \"\\n5\\t\\t\\t\\t\" + (3.231528728131869E8 + 4505142.857142857 - 2425846.153846154 + 700800.0)\n );\n }",
"public short getYear() {\n return year;\n }",
"public long mo1981x() throws cf {\r\n return m10270d(m10258F());\r\n }",
"public int mo1980w() throws cf {\r\n return m10275g(m10257E());\r\n }",
"long getUnknown12();",
"public static int offsetBits_infos_timestamp() {\n return 32;\n }",
"public abstract long mo24410c();",
"java.lang.String getField1980();",
"public int getDateLength() { return dateLength; }",
"C2451d mo3408a(C2457e c2457e);",
"String mo30285c(long j);",
"void mo33732Px();",
"void mo1970b();",
"private int m521e(C0082e eVar) {\n int c = C0069c.m383c(eVar.mo67c(C0071a.DAY_OF_WEEK) - this.f279b.mo283a().mo236a(), 7) + 1;\n int c2 = eVar.mo67c(C0071a.YEAR);\n long c3 = m517c(eVar, c);\n if (c3 == 0) {\n return c2 - 1;\n }\n if (c3 < 53) {\n return c2;\n }\n if (c3 >= ((long) m514b(m511a(eVar.mo67c(C0071a.DAY_OF_YEAR), c), (C0128k.m770a((long) c2) ? 366 : 365) + this.f279b.mo284b()))) {\n return c2 + 1;\n }\n return c2;\n }",
"long getMid();",
"long getMid();",
"long mo309d();",
"Period mo20733e();",
"public static int sizeBits_infos_timestamp() {\n return 32;\n }",
"@Override\n\tpublic int getZ() {\n\t\treturn 1000;\n\t}",
"private long m10258F() throws cf {\r\n long j = null;\r\n long j2 = 0;\r\n if (this.g.mo1996h() >= 10) {\r\n int i;\r\n byte[] f = this.g.mo1994f();\r\n int g = this.g.mo1995g();\r\n long j3 = 0;\r\n while (true) {\r\n byte b = f[g + i];\r\n j2 |= ((long) (b & 127)) << j3;\r\n if ((b & 128) != 128) {\r\n break;\r\n }\r\n j3 += 7;\r\n i++;\r\n }\r\n this.g.mo1993a(i + 1);\r\n } else {\r\n while (true) {\r\n byte u = mo1978u();\r\n j2 |= ((long) (u & 127)) << j;\r\n if ((u & 128) != 128) {\r\n break;\r\n }\r\n j += 7;\r\n }\r\n }\r\n return j2;\r\n }",
"public static void main(String[] args) {\n\t\tString[]pp ={\"日\",\"一\",\"二\",\"三\",\"四\",\"五\",\"六\"};\r\n\t\tfor (int i = 0;i<pp.length;i++){\r\n\t\t\tSystem.out.print(pp[i]+\"\\t\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\tString s = new String(); int year; int month=12;int sum=0;int mm;int a1=0;\r\n\t\tString q = new String();String Blank = \"\";String e = \"\";\r\n\t\ts=JOptionPane.showInputDialog(\"請輸入年分\");\r\n\t\tq=JOptionPane.showInputDialog(\"請輸入月分\");\r\n\t\t\r\n\t\tyear=Integer.parseInt(s);\r\n\t\tmm=Integer.parseInt(q);\r\n\t\tint[][][] aa = new int[year][month][];\r\n\t\tfor(int y = 1752 ; y<=aa.length;y++){\r\n\t\tfor (int i = 0;i<aa[y-1].length;i++){\r\n\t\t\tswitch(i){\r\n\t\t\tcase 0: case 2: case 4: case 6: case 7: case 9: case 11:\r\n\t\t\taa[y-1][i]=new int[31];\r\n\t\t\tbreak;\r\n\t\t\tcase 3: case 5: case 8: case 10:\r\n\t\t\taa[y-1][i]=new int[30];\r\n\t\t\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\tif (y % 4 == 0){\r\n\t\t\t\t\tif (y % 100 == 0){\r\n\t\t\t\t\t\tif (y % 400 == 0){\r\n\t\t\t\t\t\t\taa[y-1][1]=new int[29];\r\n\t\t\t\t\t\t\t// 29\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\taa[y-1][1]=new int[28];\r\n\t\t\t\t\t\t\t// 28\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\taa[y-1][1]=new int[28];\r\n\t\t\t\t\t\t// 28\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\taa[y-1][1]=new int[28];\r\n\t\t\t\t\t// 28\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t}\t\r\n\t\t\tfor(int m = 0 ; m < aa[y-1].length;m++){\r\n\t\t\t\tfor(int d = 0; d< aa[y-1][m].length;d++){\r\n\t\t\t\t\tsum+=1;\r\n\t\t\t\t\taa[y-1][m][d]=d+1;\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t}\t\t\r\n\t\tfor ( int r=mm;r<=aa[year-1].length;r++){\r\n\t\t\tfor(int i =0;i<aa[year-1][r-1].length;i++){\r\n\t\t\t\ta1++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tsum=sum-256-a1;\r\n\t\t\r\n\t\t\r\n\t\r\n\tfor (int b = 0;b<((sum-3)%7);b++){\r\n\t\t\t\tBlank=Blank + \"\\t\";\r\n\t}\r\n\t\t\r\n\t\t\r\n\t\tfor (int a = 0;a<aa[year-1][mm-1].length;a++){\r\n\t\t\tif(((sum-3)%7+a+1)%7==0){\r\n\t\t\te=e+(aa[year-1][mm-1][a]+\"\\t\" +\"\\n\");\t\t\r\n\t\t\t}else{\r\n\t\t\te=e+(aa[year-1][mm-1][a]+\"\\t\");\t\r\n\t\t\t}\r\n\t}\r\n\t\tSystem.out.println(Blank+e);\r\n\t}",
"void mo1507n();",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"public interface ITechLinker extends ITechByteObject {\r\n \r\n /**\r\n * \r\n */\r\n public static final int LINKER_BASIC_SIZE = A_OBJECT_BASIC_SIZE + 5;\r\n\r\n /**\r\n * \r\n */\r\n public static final int LINKER_OFFSET_01_TYPE1 = A_OBJECT_BASIC_SIZE;\r\n\r\n /**\r\n * \r\n */\r\n public static final int LINKER_OFFSET_02_DATA4 = A_OBJECT_BASIC_SIZE + 1;\r\n\r\n}",
"String mo20731c();",
"public abstract long mo9746k();",
"protected int bytesPerAtom() {\n return (2);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"public short getYear() {\n return year;\n }",
"public abstract long mo9750o();",
"void mo304a(C0366h c0366h);",
"int mo1505l();",
"@Override\n\tpublic void girth() {\n\t\tSystem.out.println(this.name+\"的周长:\"+ (land1+land2+land3));\n\t}",
"public abstract int mo9754s();",
"public short getYear() {\n return year;\n }",
"public short getYear() {\n return year;\n }",
"public short getYear() {\n return year;\n }",
"public void mo21877s() {\n }",
"public int characteristics() {\n/* 1460 */ return this.characteristics;\n/* */ }",
"public long getDate()\r\n/* 204: */ {\r\n/* 205:309 */ return getFirstDate(\"Date\");\r\n/* 206: */ }",
"void mo21073d();",
"public String getName() {\n/* 50 */ return \"M\";\n/* */ }",
"int mo23521Ly();",
"@Override\r\n\tpublic int size() {\n\t\treturn 27;\r\n\t}",
"public abstract long mo24412e();",
"public short getYear() {\r\n return year;\r\n }",
"private static int init_dt() {\n\t\tFilePtr fp = null;\n\t\tint year;\n\t\tint tab_index;\n\t\tint tabsiz;\n\t\tint i;\n\t\tString s;\n\t\tif (!init_dt_done) {\n\t\t\tinit_dt_done = true;\n\t\t\t/* no error message if file is missing */\n\t\t\ttry {\n\t\t\t\tif ((fp = sw.swi_fopen(-1, \"swe_deltat.txt\", sw.swed.ephepath, null)) == null\n\t\t\t\t\t\t&& (fp = sw.swi_fopen(-1, \"sedeltat.txt\", sw.swed.ephepath, null)) == null) {\n\t\t\t\t\treturn TABSIZ; // I think, I could skip this one...\n\t\t\t\t}\n\t\t\t} catch (SwissephException se) {\n\t\t\t\ttry {\n\t\t\t\t\tif ((fp = sw.swi_fopen(-1, \"sedeltat.txt\", sw.swed.ephepath, null)) == null) {\n\t\t\t\t\t\treturn TABSIZ; // I think, I could skip this one...\n\t\t\t\t\t}\n\t\t\t\t} catch (SwissephException se2) {\n\t\t\t\t\treturn TABSIZ;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry {\n\t\t\t\twhile ((s = fp.readLine()) != null) {\n\t\t\t\t\ts.trim();\n\t\t\t\t\tif (s.length() == 0 || s.charAt(0) == '#') {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tyear = SwissLib.atoi(s);\n\t\t\t\t\ttab_index = year - TABSTART;\n\t\t\t\t\t/* table space is limited. no error msg, if exceeded */\n\t\t\t\t\tif (tab_index >= TABSIZ_SPACE)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tif (s.length() > 4) {\n\t\t\t\t\t\ts = s.substring(4).trim();\n\t\t\t\t\t}\n\t\t\t\t\t/* dt[tab_index] = (short) (atof(sp) * 100 + 0.5); */\n\t\t\t\t\tdt[tab_index] = (short) SwissLib.atof(s);\n\t\t\t\t}\n\t\t\t} catch (java.io.IOException e) {\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tfp.close();\n\t\t\t} catch (java.io.IOException e) {\n\t\t\t}\n\t\t}\n\t\t/* find table size */\n\t\ttabsiz = 2001 - TABSTART + 1;\n\t\tfor (i = tabsiz - 1; i < TABSIZ_SPACE; i++) {\n\t\t\tif (dt[i] == 0)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t\ttabsiz++;\n\t\t}\n\t\ttabsiz--;\n\t\treturn tabsiz;\n\t}",
"String mo20732d();",
"public int getCycleYearsForComponent(Record record);",
"int getYears();",
"void mo21072c();",
"@Override\n\tpublic int getTimeSlice() {\n\t\treturn 0;\n\t}",
"public abstract long mo9755t();",
"public interface C2007e {\n C3224j getData();\n\n float getMaxHighlightDistance();\n\n int getMaxVisibleCount();\n\n float getYChartMax();\n\n float getYChartMin();\n}",
"static com.tencent.mm.plugin.appbrand.jsapi.b.a.a nI(java.lang.String r4) {\n /*\n r0 = 0;\n r1 = r4.length();\n r2 = 5;\n r1 = java.lang.Math.min(r1, r2);\n r1 = java.lang.Math.max(r0, r1);\n r1 = r4.substring(r0, r1);\n r2 = r1.toLowerCase();\n r1 = -1;\n r3 = r2.hashCode();\n switch(r3) {\n case 99228: goto L_0x003a;\n case 3704893: goto L_0x0025;\n case 104080000: goto L_0x002f;\n default: goto L_0x001e;\n };\n L_0x001e:\n r0 = r1;\n L_0x001f:\n switch(r0) {\n case 0: goto L_0x0045;\n case 1: goto L_0x0048;\n case 2: goto L_0x004b;\n default: goto L_0x0022;\n };\n L_0x0022:\n r0 = MONTH;\n L_0x0024:\n return r0;\n L_0x0025:\n r3 = \"year\";\n r2 = r2.equals(r3);\n if (r2 == 0) goto L_0x001e;\n L_0x002e:\n goto L_0x001f;\n L_0x002f:\n r0 = \"month\";\n r0 = r2.equals(r0);\n if (r0 == 0) goto L_0x001e;\n L_0x0038:\n r0 = 1;\n goto L_0x001f;\n L_0x003a:\n r0 = \"day\";\n r0 = r2.equals(r0);\n if (r0 == 0) goto L_0x001e;\n L_0x0043:\n r0 = 2;\n goto L_0x001f;\n L_0x0045:\n r0 = YEAR;\n goto L_0x0024;\n L_0x0048:\n r0 = MONTH;\n goto L_0x0024;\n L_0x004b:\n r0 = DAY;\n goto L_0x0024;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.appbrand.jsapi.b.a.a.nI(java.lang.String):com.tencent.mm.plugin.appbrand.jsapi.b.a$a\");\n }",
"public int mo36g() {\n return 8;\n }",
"public final int mo50059a() {\n return 2;\n }",
"long getExpirations();",
"public int getExtendedID()\r\n/* 50: */ {\r\n/* 51: 39 */ return 0;\r\n/* 52: */ }",
"void mo17021c();",
"int getExpYear(String bookingRef);",
"public int headReserved();",
"private int m2013i() {\n return C0962e0.m5566x(this.f1288Z) == 1 ? 0 : 1;\n }",
"private int m2010d(int i) {\n List<C0365d> list = this.f1282T;\n ListView a = ((C0365d) list.get(list.size() - 1)).mo1527a();\n int[] iArr = new int[2];\n a.getLocationOnScreen(iArr);\n Rect rect = new Rect();\n this.f1289a0.getWindowVisibleDisplayFrame(rect);\n if (this.f1291b0 == 1) {\n if (iArr[0] + a.getWidth() + i > rect.right) {\n return 0;\n }\n return 1;\n } else if (iArr[0] - i < 0) {\n return 1;\n } else {\n return 0;\n }\n }",
"public abstract long mo9743h();",
"int getYear();",
"void mo1942k();",
"public int getSubstanceExpirationDateReps() {\r\n \treturn this.getReps(16);\r\n }",
"int getCurrentXOfSS();",
"public int getStartingYear()\n {\n return 2013;\n }",
"void mo30290d(long j);",
"java.lang.String getField1920();",
"boolean mo106365g();",
"public static int offset_cost() {\n return (56 / 8);\n }",
"Integer getTHunYear();",
"static int size_of_xri(String passed){\n\t\treturn 2;\n\t}",
"long mo1685a(C2369e c2369e);",
"public int mo9232aG() {\n return 0;\n }",
"public int getYear() {\n\treturn year;\n}",
"public int getYear() { return year; }",
"public int getYear() { return year; }",
"public static int offset_infos_seq_num() {\n return (64 / 8);\n }"
] | [
"0.539574",
"0.52442825",
"0.52279687",
"0.5224403",
"0.5218794",
"0.51854974",
"0.5134344",
"0.5085036",
"0.5070361",
"0.5059282",
"0.50514853",
"0.5042036",
"0.503758",
"0.50277025",
"0.5005848",
"0.49889338",
"0.49707654",
"0.4954623",
"0.49531445",
"0.49422473",
"0.493834",
"0.49372897",
"0.4926713",
"0.49139878",
"0.49045885",
"0.4890934",
"0.4890778",
"0.48897088",
"0.48886782",
"0.4886104",
"0.4878551",
"0.4874452",
"0.48737204",
"0.48737204",
"0.4869015",
"0.486792",
"0.4862244",
"0.48592696",
"0.48590848",
"0.4858207",
"0.48533857",
"0.48266485",
"0.4821241",
"0.48197114",
"0.4819676",
"0.4814302",
"0.4814302",
"0.48103508",
"0.48084623",
"0.48015004",
"0.48014772",
"0.47993207",
"0.47974697",
"0.47929052",
"0.47929052",
"0.47929052",
"0.47723836",
"0.4766394",
"0.47577462",
"0.47576174",
"0.47521865",
"0.4751285",
"0.47509095",
"0.47487548",
"0.47484842",
"0.47427893",
"0.47356257",
"0.47350064",
"0.4731858",
"0.47311342",
"0.4729903",
"0.47261024",
"0.47251776",
"0.47246394",
"0.47240534",
"0.472259",
"0.47194374",
"0.47132373",
"0.47064343",
"0.47060743",
"0.47056967",
"0.4697294",
"0.46948466",
"0.46946478",
"0.46944094",
"0.46940914",
"0.46940333",
"0.46920255",
"0.46907976",
"0.46888238",
"0.4687975",
"0.46836737",
"0.46811914",
"0.46774384",
"0.46764252",
"0.46761876",
"0.467537",
"0.4673579",
"0.46638384",
"0.46638384",
"0.46628356"
] | 0.0 | -1 |
Overlays the passed in activity stream on top of the existing one and returns a new one. Any duplicates (as defined by Activity.compareTo) are taken from the parameterized stream. | public ActivityStream overlay(ActivityStream userActivity) {
TreeSet<Activity> set = Sets.newTreeSet(userActivity.activities);
//apply this instance afterwards, duplicates will fail to be added to set
set.addAll(activities);
return new ActivityStream(Lists.newArrayList(set));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setTopActivity(final Activity activity) {\n if (mActivityList.contains(activity)) {\n if (!mActivityList.getFirst().equals(activity)) {\n mActivityList.remove(activity);\n mActivityList.addFirst(activity);\n }\n } else {\n mActivityList.addFirst(activity);\n }\n }",
"public void pushActivity(Activity activity) {\n synchronized (activityList){\n if (!activityList.contains(activity)) {\n activityList.add(activity);\n }\n }\n }",
"@Override\n public void checkActivityUnique(ActivityWrapper newActivity) throws RecordAlreadyExistsException {\n Activity[] filtered = filterList(a -> {\n Activity activity = (Activity) a;\n return activity.getEndTime().equals(newActivity.getEndTime())\n && activity.getStartTime().equals(newActivity.getStartTime())\n && activity.getTitle().equalsIgnoreCase(newActivity.getTitle());\n });\n\n if (filtered.length > 0) {\n throw new RecordAlreadyExistsException(\"activities\",\n \"title '\" + filtered[0].getTitle() + \"' and times '\" + filtered[0].getStartTime() + \" - \" + filtered[0].getEndTime() +\n \"'\");\n }\n }",
"@Override\n public void setLatestActivity(IActivity activity) {\n }",
"@Override\n\tpublic Activity updateActivity(Activity activity) {\n\t\treturn activity;\n\t\t\n\t}",
"public <E extends IXActivity> E into(E into);",
"public List<ExoSocialActivity> getOlderOnActivityFeed(\n Identity ownerIdentity, ExoSocialActivity baseActivity, int limit);",
"public S(Activity activity){\n\t\tthis.activity = activity;\n\t\t\n\t}",
"public void setActivity(Activity addnew) {\n\tthis.addActivity(addnew);\n\t\t\n\t}",
"public List<ExoSocialActivity> getNewerOnActivityFeed(\n Identity ownerIdentity, ExoSocialActivity baseActivity, int limit);",
"public void createActivity(Activity activity) {\n\t\t\n\t}",
"private PetriNet createActivityModelOfPN(PetriNet pn, PetriNet oldPN) {\n\t\t// start with merging transitions to activities.\n\t\t// it is asssumed that there are no duplicates in the process\n\t\t// model!!!!!!!!\n\t\tArrayList placesToExamine = new ArrayList<Place>(pn.getPlaces());\n\t\tArrayList placesIt = new ArrayList(pn.getPlaces());\n\t\tfor (int i = 0; i < placesIt.size(); i++) {\n\t\t\tif (placesToExamine.contains(placesIt.get(i))) {\n\t\t\t\t// the place still needs to be checked\n\t\t\t\tPlace placeIt = (Place) placesIt.get(i);\n\t\t\t\tif (placeIt.inDegree() == 1 && placeIt.outDegree() == 1) {\n\t\t\t\t\t// check whether the place is inbetween schedule and start\n\t\t\t\t\tTransition inTransition = (Transition) placeIt\n\t\t\t\t\t\t\t.getPredecessors().iterator().next();\n\t\t\t\t\tTransition outTransition = (Transition) placeIt\n\t\t\t\t\t\t\t.getSuccessors().iterator().next();\n\t\t\t\t\t// check whether inTransition and outTransition is already\n\t\t\t\t\t// an activity because in that case\n\t\t\t\t\t// you can stop with checking\n\t\t\t\t\tif (!(mergedPNTransitions.keySet().contains(inTransition) || mergedPNTransitions\n\t\t\t\t\t\t\t.keySet().contains(outTransition))) {\n\n\t\t\t\t\t\t// check whether they belong to the same activity\n\t\t\t\t\t\tif (getActivityName(inTransition).equals(\n\t\t\t\t\t\t\t\tgetActivityName(outTransition))) {\n\n\t\t\t\t\t\t\t// for inTransition and outTransition you can have 3\n\t\t\t\t\t\t\t// different combinations\n\t\t\t\t\t\t\t// namely: 1) schedule, start 2) start, complete 3)\n\t\t\t\t\t\t\t// schedule, complete\n\t\t\t\t\t\t\tif (getEventType(inTransition) == EventType.SCHEDULE\n\t\t\t\t\t\t\t\t\t&& getEventType(outTransition) == EventType.START) {\n\t\t\t\t\t\t\t\t// check whether the direct successor of start\n\t\t\t\t\t\t\t\t// is complete\n\t\t\t\t\t\t\t\tString name = getActivityName(inTransition);\n\t\t\t\t\t\t\t\tTransition complTrans = findTransitionByNameAndEvent(\n\t\t\t\t\t\t\t\t\t\tpn, name, \"complete\");\n\t\t\t\t\t\t\t\tif (complTrans != null) {\n\t\t\t\t\t\t\t\t\t// check whether one of the successor\n\t\t\t\t\t\t\t\t\t// transitions is the complete version\n\t\t\t\t\t\t\t\t\tHashSet checkSet = outTransition\n\t\t\t\t\t\t\t\t\t\t\t.getSuccessors();\n\t\t\t\t\t\t\t\t\tcheckSet.retainAll(complTrans\n\t\t\t\t\t\t\t\t\t\t\t.getPredecessors());\n\t\t\t\t\t\t\t\t\tif (checkSet.size() == 1) {\n\t\t\t\t\t\t\t\t\t\t// try to fuse schedule, start, complete\n\t\t\t\t\t\t\t\t\t\tArrayList nodes = new ArrayList();\n\t\t\t\t\t\t\t\t\t\tnodes.add(inTransition);\n\t\t\t\t\t\t\t\t\t\tnodes.add(placeIt);\n\t\t\t\t\t\t\t\t\t\tnodes.add(outTransition);\n\t\t\t\t\t\t\t\t\t\tnodes.add(checkSet.iterator().next());\n\t\t\t\t\t\t\t\t\t\tnodes.add(complTrans);\n\t\t\t\t\t\t\t\t\t\tmergedPNTransitions\n\t\t\t\t\t\t\t\t\t\t\t\t.putAll(fusionSeriesTransitions(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpn, nodes,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tplacesToExamine, oldPN));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// try to fuse schedule and start\n\t\t\t\t\t\t\t\t\tArrayList nodes = new ArrayList();\n\t\t\t\t\t\t\t\t\tnodes.add(inTransition);\n\t\t\t\t\t\t\t\t\tnodes.add(placeIt);\n\t\t\t\t\t\t\t\t\tnodes.add(outTransition);\n\t\t\t\t\t\t\t\t\tmergedPNTransitions\n\t\t\t\t\t\t\t\t\t\t\t.putAll(fusionSeriesTransitions(pn,\n\t\t\t\t\t\t\t\t\t\t\t\t\tnodes, placesToExamine,\n\t\t\t\t\t\t\t\t\t\t\t\t\toldPN));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (getEventType(inTransition) == EventType.START\n\t\t\t\t\t\t\t\t\t&& getEventType(outTransition) == EventType.COMPLETE) {\n\t\t\t\t\t\t\t\t// check whether the direct predecessor of start\n\t\t\t\t\t\t\t\t// is schedule\n\t\t\t\t\t\t\t\tString name = getActivityName(inTransition);\n\t\t\t\t\t\t\t\tTransition schedTrans = findTransitionByNameAndEvent(\n\t\t\t\t\t\t\t\t\t\tpn, name, \"schedule\");\n\t\t\t\t\t\t\t\tif (schedTrans != null) {\n\t\t\t\t\t\t\t\t\t// check whether one of the predecessor\n\t\t\t\t\t\t\t\t\t// transitions is the complete version\n\t\t\t\t\t\t\t\t\tHashSet checkSet = inTransition\n\t\t\t\t\t\t\t\t\t\t\t.getPredecessors();\n\t\t\t\t\t\t\t\t\tcheckSet.retainAll(schedTrans\n\t\t\t\t\t\t\t\t\t\t\t.getSuccessors());\n\t\t\t\t\t\t\t\t\tif (checkSet.size() == 1) {\n\t\t\t\t\t\t\t\t\t\t// try to fuse schedule, start, complete\n\t\t\t\t\t\t\t\t\t\tArrayList nodes = new ArrayList();\n\t\t\t\t\t\t\t\t\t\tnodes.add(schedTrans);\n\t\t\t\t\t\t\t\t\t\tnodes.add(checkSet.iterator().next());\n\t\t\t\t\t\t\t\t\t\tnodes.add(inTransition);\n\t\t\t\t\t\t\t\t\t\tnodes.add(placeIt);\n\t\t\t\t\t\t\t\t\t\tnodes.add(outTransition);\n\t\t\t\t\t\t\t\t\t\tmergedPNTransitions\n\t\t\t\t\t\t\t\t\t\t\t\t.putAll(fusionSeriesTransitions(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpn, nodes,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tplacesToExamine, oldPN));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// try to fuse start and complete\n\t\t\t\t\t\t\t\t\tArrayList nodes = new ArrayList();\n\t\t\t\t\t\t\t\t\tnodes.add(inTransition);\n\t\t\t\t\t\t\t\t\tnodes.add(placeIt);\n\t\t\t\t\t\t\t\t\tnodes.add(outTransition);\n\t\t\t\t\t\t\t\t\tmergedPNTransitions\n\t\t\t\t\t\t\t\t\t\t\t.putAll(fusionSeriesTransitions(pn,\n\t\t\t\t\t\t\t\t\t\t\t\t\tnodes, placesToExamine,\n\t\t\t\t\t\t\t\t\t\t\t\t\toldPN));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (getEventType(inTransition) == EventType.SCHEDULE\n\t\t\t\t\t\t\t\t\t&& getEventType(outTransition) == EventType.COMPLETE) {\n\t\t\t\t\t\t\t\t// check whether there should be start in\n\t\t\t\t\t\t\t\t// between\n\t\t\t\t\t\t\t\tString name = getActivityName(inTransition);\n\t\t\t\t\t\t\t\tTransition startTrans = findTransitionByNameAndEvent(\n\t\t\t\t\t\t\t\t\t\tpn, name, \"start\");\n\t\t\t\t\t\t\t\tif (startTrans == null) {\n\t\t\t\t\t\t\t\t\t// try to fuse schedule and complete\n\t\t\t\t\t\t\t\t\tArrayList nodes = new ArrayList();\n\t\t\t\t\t\t\t\t\tnodes.add(inTransition);\n\t\t\t\t\t\t\t\t\tnodes.add(placeIt);\n\t\t\t\t\t\t\t\t\tnodes.add(outTransition);\n\t\t\t\t\t\t\t\t\tmergedPNTransitions\n\t\t\t\t\t\t\t\t\t\t\t.putAll(fusionSeriesTransitions(pn,\n\t\t\t\t\t\t\t\t\t\t\t\t\tnodes, placesToExamine,\n\t\t\t\t\t\t\t\t\t\t\t\t\toldPN));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// generate exception\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// add the transitions that are not merged also to the mapping\n\t\tIterator transitionsIt = pn.getTransitions().iterator();\n\t\twhile (transitionsIt.hasNext()) {\n\t\t\tTransition transitionIt = (Transition) transitionsIt.next();\n\t\t\tif (!mergedPNTransitions.containsKey(transitionIt)) {\n\t\t\t\t// get the corresponding transition in oldPN\n\t\t\t\tTransition oldTransition = oldPN.findTransition(transitionIt);\n\t\t\t\tArrayList<Transition> mappedTransitions = new ArrayList<Transition>();\n\t\t\t\tmappedTransitions.add(oldTransition);\n\t\t\t\tmergedPNTransitions.put(transitionIt, mappedTransitions);\n\t\t\t}\n\t\t}\n\t\tArrayList<TransitionCluster> clusters = ((PetriNet) pn).getClusters();\n\t\t((PetriNet) pn).getClusters().removeAll(clusters);\n\t\treturn pn;\n\t}",
"public static void sortActivities() {\n Activity.activitiesList.sort(new Comparator<Activity>() {\n @Override\n public int compare(Activity activity, Activity t1) {\n if (activity.getStartTime().isAfter(t1.getStartTime())) {\n return 1;\n }\n else if (activity.getStartTime().isBefore(t1.getStartTime())){\n return -1;\n }\n else {\n return 0;\n }\n }\n });\n }",
"public Activity mapActivity(final ActivityRequest activityRequest) {\n Activity activity = Activity.builder().id(UUID.randomUUID().toString())\n .description(activityRequest.getDescription())\n .feedback(activityRequest.getFeedback())\n .name(activityRequest.getName())\n .prices(activityRequest.getPrices())\n .tags(activityRequest.getTags())\n .parkName(activityRequest.getParkName())\n .planName(activityRequest.getPlanName())\n .build();\n return activity;\n }",
"public default StreamPlus<DATA> mergeWith(Stream<DATA> anotherStream) {\n val streamPlus = streamPlus();\n val iteratorA = streamPlus.iterator();\n val iteratorB = StreamPlus.from(anotherStream).iterator();\n val resultStream = StreamPlusHelper.doMerge(iteratorA, iteratorB);\n resultStream.onClose(() -> {\n funcUnit0(() -> streamPlus.close()).runCarelessly();\n funcUnit0(() -> anotherStream.close()).runCarelessly();\n });\n return resultStream;\n }",
"private InputStream interposeActivityDetector(InputStream out) {\n\tfinal NotifyingInputSteam notifier = new NotifyingInputSteam(out);\n\tnotifier.setListener(new NotifyingInputSteam.Listener () {\n\t public void activity () {\n\t\tif (DebuggerOption.FRONT_PIO.isEnabled(\n\t\t\t NativeDebuggerManager.get().globalOptions()))\n\t\t OldTermComponent.this.requestVisible();\n\t }\n\t});\n\tnotifier.arm();\n\n\tout = notifier;\n\treturn out;\n }",
"protected ExoSocialActivity makeActivity(Identity owner, String activityTitle) {\n ExoSocialActivity activity = new ExoSocialActivityImpl();\n activity.setTitle(activityTitle);\n activity.setUserId(owner.getId());\n activityManager.saveActivityNoReturn(rootIdentity, activity);\n tearDownActivityList.add(activity);\n \n return activity;\n }",
"public synchronized void startActivity(final Activity activity) {\r\n\t// FIXME: temp hack for Slide curtains\r\n\tif (activity.getName().equals(\"Curtains\")) {\r\n\t\ttry {\r\n\t\t\tString response = Request.Post(\"https://\" + slideHost + \"/rpc/Slide.SetPos\").bodyString(\"{\\\"pos\\\": 1}\", ContentType.APPLICATION_JSON).execute().returnContent().asString();\r\n\t\t\tSystem.out.println(\"Slide response: \" + response);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn;\r\n\t}\r\n if (this.isActive(activity)) {\r\n throw new IllegalStateException(\"Activity already active\");\r\n }\r\n if (this.activeActivity != null) {\r\n // Another activity is currently active, so stop that one first.\r\n // TODO: Don't turn off / turn on overlapping devices, but only change channels where needed.\r\n this.stopActivity(this.activeActivity);\r\n }\r\n final PyhActivity oldValue = this.createPyhActivity(activity);\r\n this.activeActivity = activity;\r\n if (activity.getModules().getPhilipsHue() != null) {\r\n this.taskExecutor.execute(() -> this.activateHueModule(activity.getModules().getPhilipsHue()));\r\n }\r\n if (activity.getModules().getInfraRed() != null) {\r\n this.taskExecutor.execute(() -> this.activateIrModule(activity.getModules().getInfraRed()));\r\n }\r\n final PyhActivity newValue = this.createPyhActivity(activity);\r\n this.eventPublisher.publishEvent(new ActivityChangedEvent(oldValue, newValue));\r\n }",
"default Stream<Pair<Object, T>> withWindow() {\n return withWindow(null);\n }",
"public void push(Object activity);",
"public int getNumberOfOlderOnActivityFeed(Identity ownerIdentity, ExoSocialActivity baseActivity);",
"private ActivityRecord setActivityRecord() {\r\n ActivityRecord actv = new ActivityRecord();\r\n actv.setActivity(sportActivity);\r\n actv.setDistance(5);\r\n actv.setTime(45L);\r\n actv.setBurnedCalories(240);\r\n actv.setUser(user);\r\n return actv;\r\n }",
"public static ApiActivityBase getApiActivity(Object activity) {\n\n if (!(activity instanceof ApiActivityBase)) {\n\n throw new ResponseException(\"Not an ApiActivityBase object: \"\n + activity.toString());\n }\n return (ApiActivityBase) activity;\n }",
"void create(SportActivity activity);",
"public HLPetriNet mergeHLPetriNetIntoActivityModel() {\n\t\t// create the HLPetriNet with activities\n\t\tPetriNet oldPN = hlPetriNetWithEvents.getPNModel();\n\t\tPetriNet newPN = (PetriNet) oldPN.clone();\n\t\tHLPetriNet activityModel = new HLPetriNet(createActivityModelOfPN(\n\t\t\t\tnewPN, oldPN));\n\t\t// create the mapping from the highlevelactivities in the activity model\n\t\t// to the highlevelactivities in the\n\t\t// HLPetriNet that contained events\n\t\tIterator<Entry<Transition, ArrayList<Transition>>> it = mergedPNTransitions\n\t\t\t\t.entrySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tEntry<Transition, ArrayList<Transition>> entry = it.next();\n\t\t\tTransition activityTransition = entry.getKey();\n\t\t\t// find the corresponding highlevelactivity\n\t\t\tHLActivity highLevelActivity = activityModel\n\t\t\t\t\t.findActivity(activityTransition);\n\t\t\t// get the merged transitions and find the corresponding\n\t\t\t// highlevelactivities\n\t\t\tArrayList<HLID> mergedHighLevelTransitions = new ArrayList<HLID>();\n\t\t\tIterator<Transition> mergedTransitions = entry.getValue()\n\t\t\t\t\t.iterator();\n\t\t\twhile (mergedTransitions.hasNext()) {\n\t\t\t\tTransition mergedTransition = mergedTransitions.next();\n\t\t\t\t// find the corresponding highlevelactivity\n\t\t\t\tHLActivity hlAct = hlPetriNetWithEvents\n\t\t\t\t\t\t.findActivity(mergedTransition);\n\t\t\t\tif (hlAct != null) {\n\t\t\t\t\tmergedHighLevelTransitions.add(hlAct.getID());\n\t\t\t\t} else {\n\t\t\t\t\tMessage\n\t\t\t\t\t\t\t.add(\n\t\t\t\t\t\t\t\t\t\"Error while combining low-level activities into high-level activities for transition: \"\n\t\t\t\t\t\t\t\t\t\t\t+ mergedTransition.getIdentifier(),\n\t\t\t\t\t\t\t\t\tMessage.ERROR);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// add to the mapping\n\t\t\tmapping.put(highLevelActivity.getID(), mergedHighLevelTransitions);\n\t\t}\n\t\t// in the case that the Petri Net only contains one type of event, only\n\t\t// the event type needs to be removed from the\n\t\t// name of the transition\n\t\tHashSet<String> evtTypes = getEventTypes(hlPetriNetWithEvents);\n\t\tif (evtTypes.size() == 1) {\n\t\t\t// rename the highleveltransitions (the corresponding name of the\n\t\t\t// transition is automatically changed)\n\t\t\t// get the name of the event type\n\t\t\tString evtType = (String) evtTypes.iterator().next();\n\t\t\tIterator<HLActivity> activitiesIt = activityModel.getHLProcess()\n\t\t\t\t\t.getActivities().iterator();\n\t\t\twhile (activitiesIt.hasNext()) {\n\t\t\t\tHLActivity activity = activitiesIt.next();\n\t\t\t\tString name = activity.getName();\n\t\t\t\tString nameWithoutEvtType = name.replace(evtType, \"\");\n\t\t\t\tString finalName = nameWithoutEvtType.trim();\n\t\t\t\tactivity.setName(finalName);\n\t\t\t}\n\t\t}\n\n\t\treturn activityModel;\n\t}",
"public Activity bundleToActivity(Bundle bundle) {\n int i;\n Bundle bundle2 = bundle;\n if (bundle2 == null) {\n debugLog(\"bundle is null : bundleToActivity\");\n return null;\n }\n String string = bundle2.getString(\"activityId\");\n String string2 = bundle2.getString(\"statusMessage\", (String) null);\n String string3 = bundle2.getString(\"memo\", string2);\n String string4 = bundle2.getString(\"activityType\", (String) null);\n if (string4 == null || !TextUtils.equals(string4, \"post\")) {\n i = (!TextUtils.isEmpty(string3) || !TextUtils.isEmpty(string2)) ? 1 : 2;\n } else {\n i = 4;\n }\n return new Activity(string, string3, i, bundle2.getLong(GroupContract.Group.CREATED_TIME, 0), bundle2.getLong(\"modifiedTime\", 0), bundle2.getString(\"owner\"), bundle2.getString(\"ownerName\"), bundleToUri(bundle2, \"activityImageContentUri\"), bundleToUri(bundle2, \"profileImageContentUri\"), bundle2.getString(\"meta\", (String) null), bundleToContentInfoList(bundle));\n }",
"public interface Stream {\n /**\n * The mediator of multiple Streams.\n */\n public interface StreamsMediator {\n /**\n * Allows the switching to another Stream.\n * @param streamKind The {@link StreamKind} of the stream to switch to.\n */\n default void switchToStreamKind(@StreamKind int streamKind) {}\n\n /**\n * Request the immediate refresh of the contents of the active stream.\n */\n default void refreshStream() {}\n\n /**\n * Disable the follow button, used in case of an error scenario.\n */\n default void disableFollowButton() {}\n }\n /** Called when the Stream is no longer needed. */\n default void destroy() {}\n\n /** Returns the section type for this stream. */\n @StreamKind\n int getStreamKind();\n\n /**\n * @param scrollState Previous saved scroll state to restore to.\n */\n void restoreSavedInstanceState(FeedScrollState scrollState);\n\n /**\n * Notifies that the header count has changed. Headers are views added to the Recyclerview\n * that the stream should not delete.\n *\n * @param newHeaderCount The new number of headers.\n */\n void notifyNewHeaderCount(int newHeaderCount);\n\n /**\n * @param listener A {@link ContentChangedListener} which activates when the content changes\n * while the stream is bound.\n */\n void addOnContentChangedListener(ContentChangedListener listener);\n\n /**\n * @param listener A previously added {@link ContentChangedListener} to be removed. Will no\n * longer trigger after removal.\n */\n void removeOnContentChangedListener(ContentChangedListener listener);\n\n /**\n * Allow the container to trigger a refresh of the stream.\n *\n * <p>Note: this will assume {@link RequestReason.MANUAL_REFRESH}.\n */\n void triggerRefresh(Callback<Boolean> callback);\n\n /**\n * @return Whether the placeholder is shown.\n */\n boolean isPlaceholderShown();\n\n /**\n * Called when the placeholder is shown and the first batch of articles are about to show.\n */\n void hidePlaceholder();\n\n /** Whether activity logging is enabled for this feed. */\n default boolean isActivityLoggingEnabled() {\n return false;\n }\n\n /** Whether the stream has unread content */\n default ObservableSupplier<Boolean> hasUnreadContent() {\n ObservableSupplierImpl<Boolean> result = new ObservableSupplierImpl<>();\n result.set(false);\n return result;\n }\n\n /** Returns the last content fetch time. */\n default long getLastFetchTimeMs() {\n return 0;\n }\n\n /**\n * Binds the feed to a particular view, manager, and scope.\n * When bound, the feed actively updates views and content. Assumes that whatever\n * views currently shown by manager are headers.\n * @param view The {@link RecyclerView} to which the feed is bound.\n * @param manager The {@link FeedListContentManager} to which we should make updates to.\n * @param savedInstanceState A previously saved instance state to restore to after loading\n * content.\n * @param surfaceScope The {@link FeedSurfaceScope} that is hosting the renderer.\n * @param renderer The {@link HybridListRenderer} that is rendering the feed.\n * @param reliabilityLogger Logger for feed reliability.\n * @param headerCount The number of headers in the RecyclerView that the feed shouldn't touch.\n */\n void bind(RecyclerView view, FeedListContentManager manager, FeedScrollState savedInstanceState,\n FeedSurfaceScope surfaceScope, HybridListRenderer renderer,\n @Nullable FeedReliabilityLogger reliabilityLogger, int headerCount);\n\n /**\n * Unbinds the feed. Stops this feed from updating the RecyclerView.\n *\n * @param shouldPlaceSpacer Whether this feed should place a spacer at the end to\n * prevent abrupt scroll jumps.\n * @param switchingStream Whether another feed is going to be bound right after this.\n */\n void unbind(boolean shouldPlaceSpacer, boolean switchingStream);\n\n /**\n * Whether this stream supports alternate sort options.\n */\n default boolean supportsOptions() {\n return false;\n }\n\n /**\n * Returns a value that uniquely identifies the state of the Stream's content. If this value\n * changes, then scroll state won't be restored.\n */\n String getContentState();\n\n /**\n * Interface users can implement to know when content in the Stream has changed content on\n * screen.\n */\n interface ContentChangedListener {\n /**\n * Called by Stream when content being shown has changed. This could be new cards being\n * created, the content of a card changing, etc...\n * @param feedContents the list of feed contents after the change. Null if the contents are\n * not available.\n */\n void onContentChanged(@Nullable List<FeedContent> feedContents);\n }\n}",
"Optional<StreamEntity> convert(StravaStream[] streams, Long activityId, StravaUserEntity stravaUserEntity) {\n StravaStream latLngStream = null;\n for(StravaStream stravaStream : streams) {\n if (stravaStream != null && LATLNG.equals(stravaStream.getType())) {\n latLngStream = stravaStream;\n }\n }\n\n if(latLngStream == null) {\n logger.warn(\"Did not find latlng stream in streams from Strava for activity id {}\", activityId);\n return Optional.empty();\n }\n\n StreamEntity streamEntity = new StreamEntity();\n streamEntity.setActivityId(activityId);\n streamEntity.setStravaUsername(stravaUserEntity.getStravaUsername());\n\n try {\n List<LatLng> latLngList = latLngStream.getData()\n .stream()\n .map(latLngPair -> new LatLng(latLngPair.get(0), latLngPair.get(1)))\n .collect(Collectors.toList());\n\n String latLngStreamString = objectMapper.writeValueAsString(latLngList);\n streamEntity.setLatLngStream(latLngStreamString);\n\n return Optional.of(streamEntity);\n }\n catch(JsonProcessingException e) {\n throw new IllegalArgumentException(\"While serializing lat-lng stream\", e);\n }\n }",
"public List<ExoSocialActivity> getOlderOnSpaceActivities(Identity spaceIdentity,\n ExoSocialActivity baseActivity,\n int limit);",
"public Iterator<Activity> getActivitiesIterator(Filter<Activity> filter){\n\t\treturn activities.iterator(filter);\n\t}",
"public void filterActivities(int mActivity) {\n ArrayList<DiscoverTile> newTest = new ArrayList<DiscoverTile>();\n ArrayList<DiscoverTile> source = new ArrayList<>();\n if (TFmode == useDTF) {\n source = Test;\n } else if (TFmode == useFTF) {\n source = filtered;\n }\n\n // Check to see if all activities have been selected.\n if (mActivity != R.drawable.ic_all) {\n // Loop through to filter out activities.\n for (int i = 0; i < source.size(); i++) {\n for (int j = 0; j < source.get(i).noOfActivities(); j++) {\n int activity = source.get(i).getActivities().get(j);\n if (activity == mActivity) {\n //Log.d(TAG, \"Yes\");\n newTest.add(source.get(i));\n break;\n }\n //Log.d(TAG, \"No\");\n }\n }\n } else { // Show all tiles if 'all' has been selected.\n newTest = source;\n }\n\n\n // Based on the TFmode, the process of restarting the fragment which show tiles will differ.\n switch (TFmode) {\n case useDTF:\n if (filteredTileFragment == null) {\n // Create filteredTileFragment.\n filteredTileFragment = new DiscoverTileFragment();\n TFmode = useFTF;\n Bundle bundle = new Bundle();\n bundle.putParcelableArrayList(\"KEY\", newTest);\n filteredTileFragment.setArguments(bundle);\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.discover_tilefragment, filteredTileFragment);\n //fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n } else {\n // May not need to exist.\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.remove(filteredTileFragment);\n //fragmentTransaction.addToBackStack(null);\n\n // Edit new fragment.\n filteredTileFragment = new DiscoverTileFragment();\n TFmode = useFTF;\n Bundle bundle = new Bundle();\n bundle.putParcelableArrayList(\"KEY\", newTest);\n filteredTileFragment.setArguments(bundle);\n fragmentTransaction.add(R.id.discover_tilefragment, filteredTileFragment);\n\n fragmentTransaction.commit();\n }\n break;\n case useFTF:\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.remove(filteredTileFragment);\n //fragmentTransaction.addToBackStack(null);\n\n // Edit new fragment.\n filteredTileFragment = new DiscoverTileFragment();\n TFmode = useFTF;\n Bundle bundle = new Bundle();\n bundle.putParcelableArrayList(\"KEY\", newTest);\n filteredTileFragment.setArguments(bundle);\n fragmentTransaction.add(R.id.discover_tilefragment, filteredTileFragment);\n\n fragmentTransaction.commit();\n break;\n\n }\n\n }",
"public default StreamPlus<DATA> prependWith(Stream<DATA> head) {\n return StreamPlus.concat(StreamPlus.from(head), streamPlus());\n }",
"void intentPass(Activity activity, Class classname) {\n Intent i = new Intent(activity, classname);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n enterAnimation();\n }",
"public List<ExoSocialActivity> getNewerOnSpaceActivities(Identity spaceIdentity,\n ExoSocialActivity baseActivity,\n int limit);",
"public void streamBroadcastStart(IBroadcastStream stream);",
"public int getNumberOfNewerOnActivityFeed(Identity ownerIdentity, ExoSocialActivity baseActivity);",
"public void onStreamClick(Stream stream) {\n Log.d(TAG,\"onStreamClick\");\n //streamRecycleView.setClickable(false);\n if(!isStreamClicked){\n userActionPresenter.validateStream(stream);\n isStreamClicked= true;\n }\n }",
"@Test\n public void testPlannedActivityEquals() {\n PlannedActivity planned2 = new PlannedActivity(planned.getId(),\n planned.getSite(), planned.getTipology(), planned.getDescription(),\n planned.getInterventionTime(), planned.isInterruptible(),\n planned.getWeek(), planned.getProcedure());\n assertEquals(planned, planned2);\n }",
"public List<ExoSocialActivity> getOlderOnUserActivities(\n Identity ownerIdentity, ExoSocialActivity baseActivity, int limit);",
"private void addItemsOnSpinner() {\n final Spinner spinner = (Spinner) findViewById(R.id.spinner);\n final List<Activity> activities = new ArrayList<>();\n\n final ArrayAdapter<Activity> activityAdapter = new ArrayAdapter<Activity>(this, android.R.layout.simple_spinner_item, activities);\n\n ActivityFetcher.getActivitiesAsync().enqueue(new Callback<List<Activity>>() {\n @Override\n public void onResponse(Call<List<Activity>> call, Response<List<Activity>> response) {\n if (!response.isSuccessful()) {\n // TODO: error message\n return;\n }\n List<Activity> body = response.body();\n Collections.sort(body, new Comparator<Activity>() {\n @Override\n public int compare(Activity o1, Activity o2) {\n if (o1.getCategoryName() == o2.getCategoryName()) {\n return String.CASE_INSENSITIVE_ORDER.compare(o1.getName(), o2.getName());\n }\n\n return String.CASE_INSENSITIVE_ORDER.compare(o1.getCategoryName(), o2.getCategoryName());\n }\n });\n activities.addAll(body);\n activityAdapter.notifyDataSetChanged();\n\n spinner.setSelection(activityAdapter.getPosition(mEntry.getActivity()));\n }\n\n @Override\n public void onFailure(Call<List<Activity>> call, Throwable t) {\n // TODO: Error message\n }\n });\n\n activityAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinner.setAdapter(activityAdapter);\n\n spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n mEntry.setActivity((Activity) parent.getItemAtPosition(position));\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mEntry.setActivity(null);\n }\n });\n }",
"public ArrayList<Stream> sortedList(ArrayList<Stream> streamList) {\n ArrayList<Stream> streamingList = new ArrayList<>();\n ArrayList<Stream> historyList = new ArrayList<>();\n ArrayList<Stream> sortedList = new ArrayList<>();\n\n for (Stream stream : streamList) {\n switch (stream.getType()) {\n case Stream.Type.Streaming:\n streamingList.add(stream);\n break;\n case Stream.Type.History:\n historyList.add(stream);\n break;\n default:\n break;\n }\n }\n\n Collections.sort(streamingList);\n Collections.sort(historyList);\n\n sortedList.addAll(streamingList);\n sortedList.addAll(historyList);\n return sortedList;\n }",
"public List<ExoSocialActivity> getOlderOnUserSpacesActivities(\n Identity ownerIdentity, ExoSocialActivity baseActivity, int limit);",
"public void moveActivityToSunting() {\n Intent intent = new Intent(MainActivity.this, SuntingProfilActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }",
"public static Activity clone(Activity activity){\r\n\r\n Activity _activity = new Activity();\r\n \r\n if (activity.getActivityId() != null) {\r\n _activity.setActivityId(activity.getActivityId()); \r\n }\r\n if (activity.getDescription() != null) {\r\n _activity.setDescription(activity.getDescription());\r\n }\r\n if (activity.getHours() != null) {\r\n _activity.setHours(new BigDecimal(activity.getHours().toPlainString()));\r\n }\r\n if (activity.getTimesheet() != null) {\r\n _activity.setTimesheet(TimesheetTestUtils.clone(activity.getTimesheet()));\r\n }\r\n\r\n return _activity;\r\n }",
"public List<ExoSocialActivity> getNewerOnUserActivities(\n Identity ownerIdentity, ExoSocialActivity baseActivity, int limit);",
"private static void redirectActivity(Activity activity, Class aClass) {\n Intent intent = new Intent(activity, aClass);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n activity.startActivity(intent);\n }",
"@NonNull\n\t\tBuilder addStream(@NonNull InputStream stream);",
"@Override\r\n @SuppressWarnings(\"unchecked\")\r\n public Serializable execute(final PrincipalActionContext inActionContext)\r\n {\r\n // get the user's accountId\r\n final String userAccountId = inActionContext.getPrincipal().getAccountId();\r\n\r\n // get the user's Id\r\n final long userEntityId = inActionContext.getPrincipal().getId();\r\n\r\n // get the request\r\n GetActivitiesByCompositeStreamRequest inRequest = (GetActivitiesByCompositeStreamRequest) inActionContext\r\n .getParams();\r\n\r\n List<Long> allKeys;\r\n\r\n // Get the list of activity ids from the context state, if possible (should be set by validation strategy)\r\n if (inActionContext.getState().containsKey(\"activityIds\"))\r\n {\r\n allKeys = (List<Long>) inActionContext.getState().get(\"activityIds\");\r\n }\r\n else\r\n {\r\n // Gets the list of activity ids for this composite stream\r\n if (log.isTraceEnabled())\r\n {\r\n log.trace(\"Loading list of activity ids for composite stream with id #\"\r\n + inRequest.getCompositeStreamId() + \", person id #\" + userEntityId);\r\n }\r\n allKeys = idsMapper.execute(inRequest.getCompositeStreamId(), userEntityId);\r\n }\r\n\r\n // the list of activities to return\r\n List<ActivityDTO> results = new ArrayList<ActivityDTO>();\r\n\r\n // the results list\r\n PagedSet<ActivityDTO> pagedSet = new PagedSet<ActivityDTO>();\r\n pagedSet.setPagedSet(results);\r\n pagedSet.setTotal(allKeys.size());\r\n\r\n // The set of group ids that the user can see - this is only fetched if\r\n // necessary\r\n GroupIdSetWrapper accessibleGroupIdsSetWrapper = new GroupIdSetWrapper(userEntityId);\r\n\r\n // used for paging, this is the next activity in the list to add to the\r\n // current page\r\n int startingIndex = 0;\r\n\r\n // the batch size for each page - increases with every page with\r\n // batchPageSizeMultiplier\r\n int batchSize = inRequest.getMaxResults();\r\n\r\n // paging loop\r\n do\r\n {\r\n // multiply the batch size by the multiplier to avoid extra cache\r\n // hits\r\n batchSize *= batchPageSizeMultiplier;\r\n\r\n // build a list of activity ids to fetch for this page, and\r\n // increment the start index for next page\r\n List<Long> page = new ArrayList<Long>();\r\n\r\n // the starting index for this batch - for logging\r\n int thisBatchStartIndex = -1;\r\n for (int i = startingIndex; i < allKeys.size() && page.size() < batchSize; i++, startingIndex++)\r\n {\r\n if (allKeys.get(i) < inRequest.getMaxActivityId() && allKeys.get(i) > inRequest.getMinActivityId())\r\n {\r\n if (thisBatchStartIndex < 0)\r\n {\r\n thisBatchStartIndex = i;\r\n }\r\n page.add(allKeys.get(i));\r\n }\r\n }\r\n\r\n if (log.isTraceEnabled())\r\n {\r\n log.trace(\"Paging loop - page size: \" + inRequest.getMaxResults() + \"; batchSize: \" + batchSize\r\n + \"; activity list size: \" + allKeys.size() + \"; starting index: \" + thisBatchStartIndex);\r\n }\r\n\r\n // get the activities from cache to see which we have access to\r\n List<ActivityDTO> pagedResults = bulkActivitiesMapper.execute(page);\r\n\r\n // add the activities that the user can see to the result page\r\n for (int i = 0; i < pagedResults.size() && results.size() < inRequest.getMaxResults(); i++)\r\n {\r\n ActivityDTO activityDTO = pagedResults.get(i);\r\n\r\n if (hasAccessToActivity(userEntityId, activityDTO, accessibleGroupIdsSetWrapper))\r\n {\r\n results.add(activityDTO);\r\n }\r\n }\r\n }\r\n while (results.size() < inRequest.getMaxResults() && startingIndex < allKeys.size());\r\n\r\n PersonModelView person = peopleMapper.execute(Arrays.asList(userAccountId)).get(0);\r\n\r\n // execute filter strategies.\r\n for (ActivityFilter filter : filters)\r\n {\r\n filter.filter(results, person);\r\n }\r\n\r\n if (log.isTraceEnabled())\r\n {\r\n log.trace(\"Returning \" + results.size() + \" activities.\");\r\n }\r\n return pagedSet;\r\n }",
"public static int processStateToActivityState(int newState) {\r\n // The states actually have the same ordinals.\r\n return newState;\r\n }",
"public ImmutableAisPacketStream(AisPacketStream stream) {\n super(stream);\n }",
"public List<ExoSocialActivity> getNewerOnUserSpacesActivities(\n Identity ownerIdentity, ExoSocialActivity baseActivity, int limit);",
"private static Runnable makeStreamGang(String[] wordList, TestsToRun choice) {\n\t\tswitch (choice) {\n\t\tcase SEQUENTIAL_STREAM:\n\t\t\treturn new SearchWithSequentialStream(wordList, mInputStrings);\n\t\tcase PARALLEL_STREAM:\n\t\t\treturn new SearchWithParallelStream(wordList, mInputStrings);\n\t\t}\n\t\treturn null;\n\t}",
"public Activity mapActivityAlredy(String activityName,final ActivityRequest activityRequest) throws ActivityException {\n Activity activityAlready = activityServices.getActivityByName(activityName);\n Activity activity = Activity.builder().id(activityAlready.getId())\n .description(activityRequest.getDescription() == null ? activityAlready.getDescription() : activityRequest.getDescription())\n .feedback(activityAlready.getFeedback())\n .name(activityRequest.getName() == null ? activityAlready.getName() : activityRequest.getName())\n .prices(activityRequest.getPrices() == null ? activityAlready.getPrices() : activityRequest.getPrices())\n .tags(activityRequest.getTags() == null ? activityAlready.getTags() : activityRequest.getTags())\n .parkName(activityRequest.getParkName() == null ? activityAlready.getParkName() : activityRequest.getParkName())\n .planName(activityRequest.getPlanName() == null ? activityAlready.getPlanName() : activityRequest.getPlanName())\n .build();\n return activity;\n }",
"public void addStreamItem(StreamBean streamBean) {\n\t\tstreamList.add(streamBean.getDisplayName());\n\t\tmapStream.put(streamBean.getDisplayName(), streamBean);\n\t\tstreamListAdapter.notifyDataSetChanged();\n\t}",
"public void setActivity(Activity activity) {\n lastNeuron().setActivity(activity);\n }",
"public static IArtefact createActivityArtefact(JSONObject activity) {\n\t\t\n//\t\tSystem.out.println(\"DEBUG| createActivityArtefact activity: \"+activity);\n\t\tJSONObject object = activity.getJSONObject(ShindigConnector.ACTIVITY_OBJECT);\n\t\t\n\t\tswitch(object.getString(ShindigConnector.ACTIVITY_OBJECT_OBJECTTYPE)) {\n\t\t\tcase(ActivityController.TYPE_LIFERAY_BLOG_ENTRY):\n\t//\t\t\tSystem.out.println(\"It is a blog entry.\");\n\t\t\t\treturn new LiferayBlogArtefact(object.getString(\"id\").split(\":\")[1]);\t// blog entry id\n\t\t\tcase(ActivityController.TYPE_LIFERAY_FORUM_ENTRY):\n\t\t\tcase(ActivityController.TYPE_LIFERAY_FORUM_THREAD):\n\t//\t\t\tSystem.out.println(\"It is a forum entry.\");\n\t\t\t\treturn new LiferayForumArtefact(object.getString(\"id\").split(\":\")[1]);\t// message board message id\n\t\t\tcase(ActivityController.TYPE_LIFERAY_WEB_CONTENT):\n\t//\t\t\tSystem.out.println(\"It is a web content.\");\n\t\t\t\treturn new LiferayWebContentArtefact(object.getString(\"id\").split(\":\")[1]);\t// journal article id\n\t\t\tcase(ActivityController.TYPE_LIFERAY_WIKI_PAGE):\n\t//\t\t\tSystem.out.println(\"It is a wiki page.\");\n\t\t\t\treturn new LiferayWikiArtefact(object.getString(\"id\").split(\":\")[1]); // wiki page id\n\t\t\tcase(ActivityController.TYPE_NUXEO_DOCUMENT):\n\t//\t\t\tSystem.out.println(\"It is a nuxeo document.\");\n\t\t\t\treturn new NuxeoDocArtefact(object.getString(\"id\"));\t// document version series id\n\t\t\tcase(ActivityController.TYPE_OX_TASK):\n\t\t\t\tbreak;\n\t\t\tcase(ActivityController.TYPE_OX_CALENDAR_ENTRY):\n\t\t\t\tbreak;\n\t\t\tcase(ActivityController.TYPE_PUBLIC_MESSAGE):\n\t\t\t\tSocialMessageArtefact a = new SocialMessageArtefact(object.getString(\"id\"));\n\t\t\t\ta.setUserId(activity.getJSONObject(ShindigConnector.ACTIVITY_ACTOR).getString(ShindigConnector.ID));\n\t\t\t\treturn a;\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"DEBUG| createActivityArtefact: return null!!!\");\n\t\treturn null;\n\t}",
"@GuardedBy(\"this\")\n private Cursor createMergedCursor() {\n try {\n final boolean hasNewCalls = mNewCallsCursor.getCount() != 0;\n final boolean hasOldCalls = mOldCallsCursor.getCount() != 0;\n \n if (!hasNewCalls) {\n // Return only the old calls, without the header.\n MoreCloseables.closeQuietly(mNewCallsCursor);\n return mOldCallsCursor;\n }\n \n if (!hasOldCalls) {\n // Return only the new calls.\n MoreCloseables.closeQuietly(mOldCallsCursor);\n return new MergeCursor(\n new Cursor[]{ createNewCallsHeaderCursor(), mNewCallsCursor });\n }\n \n return new MergeCursor(new Cursor[]{\n createNewCallsHeaderCursor(), mNewCallsCursor,\n createOldCallsHeaderCursor(), mOldCallsCursor});\n } finally {\n // Any cursor still open is now owned, directly or indirectly, by the caller.\n mNewCallsCursor = null;\n mOldCallsCursor = null;\n }\n }",
"Activity getTransformForwardActivity();",
"public RandomStream add (RandomStream stream) {\n if (stream == null)\n throw new NullPointerException();\n if (streams.contains (stream))\n return stream;\n streams.add (stream);\n return stream;\n }",
"public static void openBottomToTopTransition(Activity activity) {\n if (activity != null) {\n activity.overridePendingTransition(R.anim.slide_up, R.anim.stay_its);\n }\n }",
"public Widget getContentWidget(final ActivityDTO activity)\n {\n StreamEntityDTO actor = activity.getOriginalActor() != null ? activity.getOriginalActor() : activity\n .getActor();\n String activityContent = activity.getBaseObjectProperties().get(\"content\")\n .replace(\"%EUREKA:ACTORNAME%\", actor.getDisplayName());\n\n if (activityContent == null)\n {\n activityContent = \"\";\n }\n\n // Strip out any existing HTML.\n activityContent = jSNIFacade.escapeHtml(activityContent);\n activityContent = activityContent.replaceAll(\"(\\r\\n|\\n|\\r)\", \"<br />\");\n\n // first transform links to hyperlinks\n String html = jSNIFacade.addMarkDownLinks(activityContent);\n // then transform hashtags to hyperlinks\n HistoryHandler history = Session.getInstance().getHistoryHandler();\n // if a user clicks on a hashtag on the single activity view then search for the hashtag in the stream the\n // activity was posted to\n if (history.getPage() == Page.ACTIVITY && history.getViews().size() == 1\n && history.getViews().get(0).matches(\"\\\\d+\"))\n {\n StreamEntityDTO destinationStream = activity.getDestinationStream();\n Page destinationPage = destinationStream.getEntityType() == EntityType.PERSON ? Page.PEOPLE : Page.GROUPS;\n html = new HashtagLinkTransformer(new StreamSearchLinkBuilder()).transform(html, destinationPage,\n destinationStream.getUniqueId());\n }\n // otherwise, search for hashtags in whatever stream the user is currently viewing\n else\n {\n html = new HashtagLinkTransformer(new StreamSearchLinkBuilder()).transform(html);\n }\n\n HTML widget = new HTML(html);\n widget.addStyleName(StaticResourceBundle.INSTANCE.coreCss().messageBody());\n\n return widget;\n }",
"public PersonActivity enrichPersonActivity(PersonActivity activity,\n\t\t\tMap<String, Integer> inheritedCategoriesFromPost) throws Exception {\n\n\t\tswitch (activity.getType()) {\n\t\tcase POST:\n\n\t\t\t// init a map with all current categories\n\t\t\tMap<String, Integer> mapPostActivity = new HashMap<>();\n\t\t\tmapPostActivity.putAll(activity.getCategoryMap());\n\n\t\t\t// enrich tags from forum\n\t\t\tMap<String, Integer> forumTags = getForumTagsEnrichment(activity);\n\t\t\tforumTags.forEach((key, value) -> mapPostActivity.merge(key, value, Integer::sum));\n\n\t\t\t// enrich tagClasses from tags (including forum tags)\n\t\t\tMap<String, Integer> tagClasses = getTagClassesEnrichment(activity);\n\t\t\ttagClasses.forEach((key, value) -> mapPostActivity.merge(key, value, Integer::sum));\n\n\t\t\t// enrich continents from places\n\t\t\tMap<String, Integer> continents = getContinentEnrichment(activity);\n\t\t\tcontinents.forEach((key, value) -> mapPostActivity.merge(key, value, Integer::sum));\n\n\t\t\t// update category map\n\t\t\tactivity.setCategoryMap(mapPostActivity);\n\n\t\t\treturn activity;\n\n\t\tcase COMMENT:\n\n\t\t\t// init a map with all current categories\n\t\t\tMap<String, Integer> mapCommentActivity = new HashMap<>();\n\t\t\tmapCommentActivity.putAll(activity.getCategoryMap());\n\n\t\t\t// enrich continents from places\n\t\t\tMap<String, Integer> commentContinents = getContinentEnrichment(activity);\n\t\t\tcommentContinents.forEach((key, value) -> mapCommentActivity.merge(key, value, Integer::sum));\n\n\t\t\t// add the inherited categories from the post\n\t\t\tinheritedCategoriesFromPost.forEach((key, value) -> mapCommentActivity.merge(key, value, Integer::sum));\n\n\t\t\t// update category map\n\t\t\tactivity.setCategoryMap(mapCommentActivity);\n\n\t\t\treturn activity;\n\n\t\tcase LIKE:\n\t\t\t// init a map with all current categories\n\t\t\tMap<String, Integer> mapLikeActivity = new HashMap<>();\n\t\t\tmapLikeActivity.putAll(activity.getCategoryMap());\n\n\t\t\t// add the inherited categories from the post\n\t\t\tinheritedCategoriesFromPost.forEach((key, value) -> mapLikeActivity.merge(key, value, Integer::sum));\n\n\t\t\t// update category map\n\t\t\tactivity.setCategoryMap(mapLikeActivity);\n\n\t\t\treturn activity;\n\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(\"Unknown PersonActivity Type\");\n\t\t}\n\n\t}",
"private void myHTTPAlarm() {\n // IMPLEMENT AND USE SHARED\n //---------------------------\n\n String term = preferences.getString(MyEditTextNoti,\"\");\n String dateStart = preferences.getString(MyDateStart,\"\");\n String dateEnd = preferences.getString(MyDateEnd,\"\");\n String[] choix = {\"choix1\",\"choix2\",\"choix3\",\"choix4\",\"choix5\",\"choix6\"} ;\n\n int a = 0;\n while (a < 6){\n choix[a] = preferences.getString(MyCheckBoxNoti[a],\"\");\n a ++;\n }\n\n // 1.2 - Execute the stream subscribing to Observable defined inside GithubStream\n this.disposable = NytStreams.streamNotification(term+choix[0]+choix[1]+choix[2]+choix[3]+choix[4]+choix[5], true)\n .subscribeWith(new DisposableObserver<SearchActicleAPI>() {\n\n @Override\n public void onNext(SearchActicleAPI searchActicleAPI) {\n\n //--------------------------------\n // I GET THE CURRENT TITRE\n // I GET THE SHARED\n // AND I COMPARED WITH THE SHARED\n // IF THEY ARE DIFFERENT I SAVE A NEW SHARED\n // AND I MAKE A NOTIFICATION\n //-----------------------------------\n\n // I GET THE CURRENT TITRE\n str = searchActicleAPI.getResponse().getDocs().get(0).getHeadline().getMain();\n // I GET THE SHARED\n String s = preferences.getString(TITRE,\"\");\n // I COMPARE THEM\n\n if(!str.equals(s)){\n\n preferences.edit().putString(TITRE, str).commit();\n\n preferences.edit().putString(YES_NO, \"YES\").commit();\n }\n\n }\n\n @Override\n public void onError(Throwable e) {\n Log.e(\"TAG\", \"On Error\" + Log.getStackTraceString(e));\n }\n\n @Override\n public void onComplete() {\n Log.e(\"TAG\", \"On Complete !!\");\n }\n });\n }",
"public AudioStream(AudioStream clone) {\n this.ID = clone.ID;\n this.to = clone.to;\n this.count = clone.count+1;\n }",
"public List<ExoSocialActivity> getOlderOnActivitiesOfConnections(\n Identity ownerIdentity, ExoSocialActivity baseActivity, int limit);",
"public void from(IXActivity from);",
"public void updateActivity(ExoSocialActivity existingActivity) throws ActivityStorageException;",
"@Test\n public void testPlannedActivityNotEquals() {\n int different_id = planned.getId() + 1;\n PlannedActivity different_planned = new PlannedActivity(different_id,\n planned.getSite(), planned.getTipology(), planned.getDescription(),\n planned.getInterventionTime(), planned.isInterruptible(),\n planned.getWeek(), planned.getProcedure());\n assertNotEquals(planned, different_planned);\n\n }",
"public List<ExoSocialActivity> getOlderComments(\n ExoSocialActivity existingActivity, ExoSocialActivity baseComment, int limit);",
"private void setupChosenActivity() {\n String activity = Utils.capitalise(Sport.values()[0].toString());\n Intent intent = getIntent();\n\n if (intent.hasExtra(ACTIVITY_TO_RECORD)) {\n activity = Utils.capitalise(intent.getStringExtra(ACTIVITY_TO_RECORD));\n }\n\n activityView.setText(activity);\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic static <CollectedFact> Stream<CollectedFact> addToStream(\n\t\t\tStream<CollectedFact> stream, Stream<CollectedFact> stream2) {\n\t\tList<CollectedFact> result = stream.collect(Collectors.toList()); // error\n\t\tresult.addAll(stream2.collect(Collectors.toList()));\n//\t\tresult.forEach(System.out::println);\n\t\t\n\t\t\n\t\t//code to save to an Output File\n\t\t List<String> strList = result.stream().distinct().map(Object::toString)\n\t\t\t\t.collect(Collectors.toList());\n\n\t\ttry {\n\t\t\tFiles.write(Paths.get(outputFileName),\n\t\t\t\t\t(Iterable<String>) strList.stream()::iterator);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn result.stream();\n\t}",
"public List<ExoSocialActivity> getOlderComments(ExoSocialActivity existingActivity, Long sinceTime, int limit);",
"public PresenceActivity createPresenceActivity(PresenceActivity.Type acttype, String description);",
"public List<ActivityResponse> mapActivitiesResponse(final List<Activity> allActivities) {\n List<ActivityResponse> Activities = new ArrayList<>();\n if(!(allActivities == null)){\n for (Activity activity : allActivities) {\n Activities.add(\n ActivityResponse.builder().id(activity.getId())\n .description(activity.getDescription())\n .feedback(activity.getFeedback())\n .name(activity.getName())\n .prices(activity.getPrices())\n .tags(activity.getTags())\n .parkName(activity.getParkName())\n .planName(activity.getPlanName())\n .type(PayRequest.ACTIVITY)\n .build()\n );\n }\n }\n return Activities;\n }",
"Stream<Pair<Object, T>> withWindow(@Nullable String name);",
"public void changeWindowTo(Class activity){\n Intent guestActivity = new Intent(this,activity);\n startActivity(guestActivity);\n }",
"public DataflowStreamWriteAdapter(final StreamCore<T> stream) {\n this.head = stream;\n }",
"@Override\r\n public void onAttach(Activity activity) {\n super.onAttach(activity);\r\n act = (BaseActivity) activity;\r\n\r\n }",
"@Override\n\tpublic void setActivity(Activity pAcitivity) {\n\n\t}",
"public static void moveNextActivity(Activity source, Class<?> destinationClass, boolean removeSource) {\n Intent intent = new Intent(source, destinationClass);\n\n if (removeSource) {\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\n }\n\n source.startActivity(intent);\n\n if (removeSource) {\n source.finish();\n }\n\n source.overridePendingTransition(R.anim.anim_in, R.anim.anim_out);\n }",
"public static Intent fromPubDetailActivityToPubEventsActivity(final PubDetailActivity pubDetailActivity,\n @NonNull Pub pub) {\n\n Intent i = new Intent(pubDetailActivity, PubEventsActivity.class);\n i.putExtra(PubEventsActivity.MODEL_KEY, pub);\n pubDetailActivity.startActivity(i);\n\n return i;\n }",
"public final void entryRuleActivity() throws RecognitionException {\n try {\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:118:1: ( ruleActivity EOF )\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:119:1: ruleActivity EOF\n {\n before(grammarAccess.getActivityRule()); \n pushFollow(FollowSets000.FOLLOW_ruleActivity_in_entryRuleActivity181);\n ruleActivity();\n _fsp--;\n\n after(grammarAccess.getActivityRule()); \n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleActivity188); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public default <ANOTHER> StreamPlus<Tuple2<DATA, ANOTHER>> zipWith(Stream<ANOTHER> anotherStream) {\n return zipWith(anotherStream, RequireBoth, Tuple2::of);\n }",
"public StreamRedirectThread(final String name, final InputStream in, final OutputStream out) {\n\t\tsuper(name);\n\t\tthis.in = new InputStreamReader(in);\n\t\tthis.out = new OutputStreamWriter(out);\n\t\tsetPriority(Thread.MAX_PRIORITY-1);\n\t}",
"public void removeActivity(Activity activity) {\n for (int i = 0; i < this.activitiesList.size(); i++) {\n Activity activityAux = (Activity) this.activitiesList.get(i);\n if (activityAux.equals(activity)) {\n this.activitiesList.remove(i);\n }\n }\n }",
"public Intent createChooserExcluding(Intent prototype, String title, String[] activityBlacklist) {\n // Produced an empty list on Huawei U8860 with Android Version 4.0.3 and weird results on 2.3\n // TODO: test on 4.1, 4.2, 4.3, only tested on 4.4\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {\n return Intent.createChooser(prototype, title);\n }\n\n List<LabeledIntent> targetedShareIntents = new ArrayList<LabeledIntent>();\n\n List<ResolveInfo> resInfoList = mContext.getPackageManager().queryIntentActivities(prototype, 0);\n List<ResolveInfo> resInfoListFiltered = new ArrayList<ResolveInfo>();\n if (!resInfoList.isEmpty()) {\n for (ResolveInfo resolveInfo : resInfoList) {\n // do not add blacklisted ones\n if (resolveInfo.activityInfo == null || Arrays.asList(activityBlacklist).contains(resolveInfo.activityInfo.name))\n continue;\n\n resInfoListFiltered.add(resolveInfo);\n }\n\n if (!resInfoListFiltered.isEmpty()) {\n // sorting for nice readability\n Collections.sort(resInfoListFiltered, new Comparator<ResolveInfo>() {\n @Override\n public int compare(ResolveInfo first, ResolveInfo second) {\n String firstName = first.loadLabel(mContext.getPackageManager()).toString();\n String secondName = second.loadLabel(mContext.getPackageManager()).toString();\n return firstName.compareToIgnoreCase(secondName);\n }\n });\n\n // create the custom intent list\n for (ResolveInfo resolveInfo : resInfoListFiltered) {\n Intent targetedShareIntent = (Intent) prototype.clone();\n targetedShareIntent.setPackage(resolveInfo.activityInfo.packageName);\n targetedShareIntent.setClassName(resolveInfo.activityInfo.packageName, resolveInfo.activityInfo.name);\n\n LabeledIntent lIntent = new LabeledIntent(targetedShareIntent,\n resolveInfo.activityInfo.packageName,\n resolveInfo.loadLabel(mContext.getPackageManager()),\n resolveInfo.activityInfo.icon);\n targetedShareIntents.add(lIntent);\n }\n\n // Create chooser with only one Intent in it\n Intent chooserIntent = Intent.createChooser(targetedShareIntents.remove(targetedShareIntents.size() - 1), title);\n // append all other Intents\n chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, targetedShareIntents.toArray(new Parcelable[]{}));\n return chooserIntent;\n }\n\n }\n\n // fallback to Android's default chooser\n return Intent.createChooser(prototype, title);\n }",
"public void startStreaming() {\n// phoneCam.setViewportRenderingPolicy(OpenCvCamera.ViewportRenderingPolicy.OPTIMIZE_VIEW);\n phoneCam.startStreaming(320, 240, OpenCvCameraRotation.SIDEWAYS_RIGHT);\n }",
"Activity getTransformMappingActivity();",
"public StreamGobbler(InputStream from, PrintStream to) {\n\t\tinput = from;\n\t\toutput = to;\n\t}",
"void startNewActivity(Intent intent);",
"public List<Activity> mapActivitiesRequiest(final List<ActivityRequest> allActivitiesRequest) {\n List<Activity> Activities = new ArrayList<>();\n if (!(allActivitiesRequest == null)){\n for (ActivityRequest activityRequest : allActivitiesRequest) {\n Activities.add(\n Activity.builder().id(UUID.randomUUID().toString())\n .description(activityRequest.getDescription())\n .feedback(activityRequest.getFeedback())\n .name(activityRequest.getName())\n .prices(activityRequest.getPrices())\n .tags(activityRequest.getTags())\n .parkName(activityRequest.getParkName())\n .planName(activityRequest.getPlanName())\n .build()\n );\n }\n }\n\n return Activities;\n }",
"public String queryActivityLocations(int top, String activity, Date start, Date end) {\n String str = \"\";\n Activity a;\n if (activities.containsKey(activity)) {\n a = activities.get(activity);\n for (Map.Entry<Integer, LocationInterface> l : a.getLocations().entrySet()) {\n if (start == null || end == null) {\n str += l.getValue() + \"\\n\";\n top--;\n } else {\n if (l.getValue().getDateManager().contains\n (start) &&\n l.getValue().getDateManager().contains(end)) {\n str += l.getValue() + \"\\n\";\n top--;\n }\n }\n if (top <= 0) {\n break;\n }\n }\n }\n return str;\n }",
"private void archive(final ImmutableSortedSet<T> aMessages) {\n _history.apply(new Syncd.Transformer<ImmutableSortedSet<T>, ImmutableSortedSet<T>>() {\n public Tuple<ImmutableSortedSet<T>, ImmutableSortedSet<T>> apply(ImmutableSortedSet<T> aBefore) {\n ImmutableSortedSet<T> myRevisedHistory;\n\n if ((aBefore.size() + aMessages.size() > _maxHistory)) {\n LinkedList<T> myCompleteHistory = new LinkedList<>(aBefore);\n myCompleteHistory.addAll(aMessages);\n myRevisedHistory = new ImmutableSortedSet.Builder<>(new MessageComparator<T>()).addAll(\n new TreeSet<>(myCompleteHistory.subList(myCompleteHistory.size() - _maxHistory,\n myCompleteHistory.size()))).build();\n\n } else {\n myRevisedHistory = new ImmutableSortedSet.Builder<>(\n new MessageComparator<T>()).addAll(aBefore).addAll(aMessages).build();\n }\n\n return new Tuple<>(myRevisedHistory, myRevisedHistory);\n }\n });\n }",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\tparentActivity=activity;\n\t}",
"public static AisPacketStream newStream() {\n return new AisPacketStreamImpl();\n }",
"public ActivityResponse mapActivityResponse(final Activity activity) {\n ActivityResponse activityResponse = ActivityResponse.builder().id(activity.getId())\n .description(activity.getDescription())\n .feedback(activity.getFeedback())\n .name(activity.getName())\n .prices(activity.getPrices())\n .tags(activity.getTags())\n .parkName(activity.getParkName())\n .planName(activity.getPlanName())\n .type(PayRequest.ACTIVITY)\n .build();\n return activityResponse;\n }",
"public static Intent fromPubEventsActivityToNewEventActivity(final PubEventsActivity pubEventsActivity,\n @NonNull Pub currentPub) {\n\n Intent i = new Intent(pubEventsActivity, NewEventActivity.class);\n i.putExtra(NewEventActivity.PUB_MODEL_KEY, currentPub);\n pubEventsActivity.startActivityForResult(i, NEW_EVENT_ACTIVITY_REQUEST_CODE);\n\n return i;\n }",
"public void ActivitySplitter(Population population,Config config, String activityType,Double timeGapInSecond,boolean shouldAddearliestEndTimeAndLatestStartTime) {\r\n\t\tHashMap<String,Tuple<Double,Double>> activities=new HashMap<>();\r\n\t\tHashMap<String,Integer> activityCounter=new HashMap<>();\r\n\t\tHashMap<String,Double> activityDurationSum=new HashMap<>();\r\n\t\tHashMap<String,ArrayList<Double>> activityStartTime=new HashMap<>();\r\n\t\tHashMap<String,ArrayList<Double>> activityEndTime=new HashMap<>();\r\n\t\tdouble startTime=3*3600;\r\n\t\tdouble endTime=27*3600;\r\n\t\tfor(double d=startTime;d<endTime;d=d+timeGapInSecond) {\r\n\t\t\tactivities.put(activityType+\"_\"+d, new Tuple<>(d,d+timeGapInSecond));\r\n\t\t\tactivityCounter.put(activityType+\"_\"+d, 0);\r\n\t\t\tactivityDurationSum.put(activityType+\"_\"+d, 0.);\r\n\t\t\tactivityStartTime.put(activityType+\"_\"+d,new ArrayList<>());\r\n\t\t\tactivityEndTime.put(activityType+\"_\"+d, new ArrayList<>());\r\n\t\t}\r\n\r\n\t\tfor(Person p:population.getPersons().values()) {\r\n\t\t\tfor(PlanElement pe:p.getSelectedPlan().getPlanElements()) {\r\n\t\t\t\tif(pe instanceof Activity) {\r\n\t\t\t\t\tActivity a=(Activity)pe;\r\n\t\t\t\t\tif(a.getType().equals(activityType)) {\r\n\t\t\t\t\t\tfor(Tuple<Double,Double>t:activities.values()) {\r\n\t\t\t\t\t\t\tif(a.getStartTime()>=t.getFirst()&&a.getStartTime()<t.getSecond()&&a.getStartTime()!=Double.NEGATIVE_INFINITY) {\r\n\t\t\t\t\t\t\t\ta.setType(activityType+\"_\"+t.getFirst());\r\n\t\t\t\t\t\t\t\tactivityCounter.put(activityType+\"_\"+t.getFirst(),activityCounter.get(activityType+\"_\"+t.getFirst())+1);\r\n\t\t\t\t\t\t\t\tactivityDurationSum.put(activityType+\"_\"+t.getFirst(),activityDurationSum.get(activityType+\"_\"+t.getFirst())+(a.getEndTime()-a.getStartTime()));\r\n\t\t\t\t\t\t\t\tactivityStartTime.get(activityType+\"_\"+t.getFirst()).add(a.getStartTime());\r\n\t\t\t\t\t\t\t\tactivityEndTime.get(activityType+\"_\"+t.getFirst()).add(a.getEndTime());\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tActivityParams aParams=config.planCalcScore().getActivityParams(activityType);\r\n\t\tfor(String s:activityCounter.keySet()) {\r\n\t\t\tif(activityCounter.get(s)!=0) {\r\n\t\t\t\tActivityParams ap=new ActivityParams(s);\r\n\t\t\t\tif(activityDurationSum.get(s)/activityCounter.get(s)!=0) {\r\n\t\t\t\t\tap.setTypicalDuration(activityDurationSum.get(s)/activityCounter.get(s));\r\n\t\t\t\t}else {\r\n\t\t\t\t\tap.setTypicalDuration(activityDurationSum.get(s)/activityCounter.get(s)+300);\r\n\t\t\t\t}\r\n\t\t\t\tap.setClosingTime(Math.ceil((this.calcAverage(activityEndTime.get(s))+this.calcSD(activityEndTime.get(s)))/1800)*1800);\r\n\t\t\t\tif(shouldAddearliestEndTimeAndLatestStartTime) {\r\n\t\t\t\t\tap.setLatestStartTime(Math.floor(this.calcAverage(activityStartTime.get(s))/900)*900);\r\n\t\t\t\t\tap.setEarliestEndTime(Math.ceil(this.calcAverage(activityEndTime.get(s))/900)*900);\r\n\t\t\t\t}\r\n\t\t\t\tap.setOpeningTime(Math.floor((this.calcAverage(activityStartTime.get(s))-this.calcSD(activityStartTime.get(s)))/1800)*1800);\r\n\t\t\t\tconfig.planCalcScore().addActivityParams(ap);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected abstract void setIdListToCache(List<Long> inActivityIds, StreamView inCompositeStream, long inUserId);",
"public static Intent fromEventPubsActivityToPubDetailActivity(final EventPubsActivity eventPubsActivity,\n @NonNull Pub pub) {\n\n Intent i = new Intent(eventPubsActivity, PubDetailActivity.class);\n i.putExtra(PubDetailActivity.PUB_MODEL_KEY, pub);\n eventPubsActivity.startActivity(i);\n\n return i;\n }"
] | [
"0.5698904",
"0.51317143",
"0.5078544",
"0.50123",
"0.49553946",
"0.47862405",
"0.47349247",
"0.46974793",
"0.4643146",
"0.4640164",
"0.46167633",
"0.45600772",
"0.45485926",
"0.45276338",
"0.45086423",
"0.45059377",
"0.45020193",
"0.44956377",
"0.44908726",
"0.44614935",
"0.44412065",
"0.4437997",
"0.44202513",
"0.4410105",
"0.4398984",
"0.43859762",
"0.43773478",
"0.43599603",
"0.43141374",
"0.42923558",
"0.42863542",
"0.42788398",
"0.4277568",
"0.4264897",
"0.4246197",
"0.424469",
"0.4231001",
"0.42157564",
"0.42133462",
"0.42106417",
"0.42099768",
"0.42089102",
"0.4207103",
"0.41974163",
"0.41932574",
"0.41903618",
"0.418538",
"0.41814232",
"0.4164594",
"0.41613954",
"0.4159344",
"0.41539562",
"0.4151145",
"0.4147396",
"0.41409978",
"0.41304705",
"0.4125182",
"0.41229147",
"0.40983066",
"0.4097757",
"0.4091453",
"0.40901107",
"0.40844512",
"0.40509838",
"0.40274295",
"0.40245882",
"0.40192452",
"0.4013634",
"0.40135515",
"0.40113097",
"0.40111536",
"0.4006001",
"0.40038267",
"0.40011972",
"0.4000519",
"0.39988407",
"0.39921567",
"0.3988734",
"0.39871532",
"0.39836907",
"0.39821297",
"0.39749315",
"0.39709684",
"0.39709604",
"0.39653167",
"0.39636356",
"0.39610943",
"0.39594632",
"0.39591673",
"0.3958237",
"0.39563784",
"0.39563397",
"0.3951627",
"0.39485604",
"0.39470544",
"0.39402512",
"0.39359418",
"0.3929618",
"0.39252397",
"0.39238006"
] | 0.77053237 | 0 |
Starts this loop when you press the INIT Button | public void init() {
robot.init(hardwareMap);
robot.liftUpDown.setMode(DcMotor.RunMode.RUN_USING_ENCODER);
robot.liftRotate.setMode(DcMotor.RunMode.RUN_USING_ENCODER);
robot.liftRotate.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);
robot.liftUpDown.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);
robot.blinkinLedDriver.setPattern(RevBlinkinLedDriver.BlinkinPattern.GREEN);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void init_loop() {\n telemetry.addData(\"Say\", \"We pressed INIT!\");\n robot.clawRight.setPosition(0);\n robot.clawLeft.setPosition(0);\n }",
"@Override\r\n public void init_loop() {\r\n }",
"@Override\r\n public void init_loop() {\r\n }",
"@Override public void init_loop() {\n if (gyro.isCalibrated()) {\n telemetry.addData(\"Gyro\", \"Calibrated\");\n }\n\n /** Place any code that should repeatedly run after INIT is pressed but before the op mode starts here. **/\n }",
"public void autonomousInit() {\n //autonomousCommand = (Command) chooser.getSelected();\n autoLoopCounter = 0; //This resets the loop counter to 0\n //if (autonomousCommand != null) autonomousCommand.start();\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {}",
"@Override\n public void init_loop() {\n\n\n if (robot.gyro.isCalibrating()) {\n telemetry.addData(\"we calibrating\", \"\");\n } else {\n telemetry.addData(\"Hell naw\", \"\");\n }\n telemetry.update();\n\n\n // Send telemetry message to signify robot waiting;\n // telemetry.addData(\"Say\", \"Dick\"); //\n // telemetry.update();\n\n // Wait for the game to start (driver presses PLAY)\n\n\n // run until the end of the match (driver presses STOP)\n }",
"@Override\n public void init_loop() {\n smDrive.init_loop();\n smArm.init_loop();\n }",
"@Override\n public void runInit() {\n }",
"public void setInit() {\r\n\t\tinit = true;\r\n\t}",
"public void startUp() {\n\t\twhile (startupSettings.getContinue()) {\n\t\t\tstartView.showLogo();\n\t\t\tthis.setupNewMatch();\n\t\t\tstartView.showNewMatchStarting();\n\t\t\tcurrentMatch.start();\n\t\t\tstartupSettings = startView.askNewStartupSettings();\n\t\t}\n\t\tthis.ending();\n\t}",
"protected void initialize() {\n \tSystem.out.println(\"initialize ReturnToStart\");\n \tRobot.claw.goRetract();\n \tRobot.claw.goUp();\n \tRobot.claw.goOpen();\n \tRobot.claw.spinStop();\n }",
"@Override\n protected void initialize() {\n isStarted = false;\n setTimeout(12);\n isDone = false;\n // Start the climb\n Robot.climber.frontDown();\n Robot.climber.rearDown();\n\n }",
"protected void initialize() {\n \tthis.running= false;\n }",
"@Override\n public void init_loop() {\n hookPosDeg = HOOK_UP;\n clawPosDeg = CLAW_OPEN;\n hookPos = map(hookPosDeg, HOOK_MIN_POS_DEG, HOOK_MAX_POS_DEG, HOOK_MIN_POS, HOOK_MAX_POS);\n clawPos = map(clawPosDeg, CLAW_MIN_POS_DEG, CLAW_MAX_POS_DEG, CLAW_MIN_POS, CLAW_MAX_POS);\n hook.setPosition(hookPos);\n claw.setPosition(clawPos);\n\n// armTarget = ARM_CENTER;\n// arm.setTargetPosition(armTarget);\n// arm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n// arm.setPower(.3);\n }",
"protected void initialize() {\n\t\tRobot.firstAutonomousCommandDone = true;\n\t}",
"private void initialize() {\r\n\r\n // add default buttons\r\n addButton(getToggleButton(),\"toggle\");\r\n addButton(getFinishButton(),\"finish\");\r\n addButton(getCancelButton(),\"cancel\");\r\n addActionListener(new ActionListener() {\r\n\r\n public void actionPerformed(ActionEvent e) {\r\n String cmd = e.getActionCommand();\r\n if(\"toggle\".equalsIgnoreCase(cmd)) change();\r\n else if(\"finish\".equalsIgnoreCase(cmd)) finish();\r\n else if(\"cancel\".equalsIgnoreCase(cmd)) cancel();\r\n }\r\n\r\n });\r\n\r\n }",
"void initialize() {\n refreshIntents();\r\n\r\n initialized = true;\r\n\r\n }",
"@Override\n protected void initialize() {\n led.setLED_M1(false, false, false);\n count = 0;\n led.setLED_M1(true, false, false);\n ledState = status.ONE;\n System.out.println(\"BUTTON PRESSED\");\n }",
"@Override public void init() {\n drive = MecanumDrive.standard(hardwareMap); // Comment this line if you, for some reason, don't need to use the drive motors\n\n // Uncomment the next three lines if you need to use the gyroscope\n // gyro = IMUGyro.standard(hardwareMap);\n // gyro.initialize();\n // gyro.calibrate();\n\n // Uncomment the next two lines if you need to use the vision system\n // vision = new Vision(hardwareMap);\n // vision.init();\n\n // Uncomment the next line if you have a servo\n // myServo = hardwareMap.get(Servo.class, \"myServo\");\n\n /** Place any code that should run when INIT is pressed here. **/\n }",
"protected void initialize() {\n \ttimer.start();\n }",
"public void start () {\n int choice = NO_CHOICE;\n while (choice != EXIT) {\n displayMainMenu();\n choice = readIntWithPrompt(\"Enter choice: \");\n executeChoice(choice);\n }\n }",
"@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n //starts the dual cameras\n CameraServer.getInstance().startAutomaticCapture(0);\n CameraServer.getInstance().startAutomaticCapture(1);\n //auto start (disabled atm)\n //pressBoy.setClosedLoopControl(true);\n pressBoy.setClosedLoopControl(false);\n \n \n }",
"protected void initialize() {\n\t\tif (type == switchType.True) {\n\t\t\tVariables.platformStatus = true;\n\t\t}\n\t\telse if (type == switchType.False) {\n\t\t\tVariables.platformStatus = false;\n\t\t}\n\t\telse {\n\t\t\tVariables.platformStatus = !Variables.platformStatus;\n\t\t}\n\t\tgo.start();\n\t}",
"public void initialise() {\r\n this.lockGui.setDisplay(\"Open\");\r\n this.isLocked = false;\r\n this.lockGui.setLocked(isLocked);\r\n this.code = \"\";\r\n this.entered = \"\";\r\n //Ticking lets the timer know if it should be counting ticks.\r\n //Used when entering a code to lock/unlock.\r\n this.ticking = false;\r\n this.ticks = 0;\r\n }",
"@Override public void init_loop() {\n loop_cnt_++;\n }",
"public void initialize() {\n easyButton.setOnMouseClicked(e -> {\n if (e.getButton().equals(MouseButton.PRIMARY)) {\n Generator generator = new NumberGenerator(Difficulty.EASY);\n Main.pushPage(new PronunciationPage(\"Practice - Easy\", generator));\n }\n });\n\n hardButton.setOnMouseClicked(e -> {\n if (e.getButton().equals(MouseButton.PRIMARY)) {\n Generator generator = new NumberGenerator(Difficulty.HARD);\n Main.pushPage(new PronunciationPage(\"Practice - Hard\", generator));\n }\n });\n\n // Disables hard mode if it is not unlocked yet\n hardButton.setDisable(!StatsManager.manager().practiceUnlocked());\n hardLabel.setDisable(!StatsManager.manager().practiceUnlocked());\n }",
"protected void initialize() {\n Timer.delay(7);\n ballIntake.turnOnHorizontalConveyor();\n ballIntake.verticalConveyor.set(-.3);\n }",
"public void gameInit() {\n lobbyRoom.sendPortToAll();\n lobbyRoom.sendPlayers(game.getCars());\n lobbyRoom.sendTrack(game.getTrack());\n lobbyRoom.sendPowerupManager(game.getManager());\n this.running = true;\n }",
"public void autonomousInit() {\n \n }",
"protected void initialize() {\n \ttime.start();\n \tRobot.camera.setExposureManual(20);\n \tzach();\n\t\tSystem.out.println(\"josh\");\n\t\t\n }",
"private void initialize() {\n\t\tdisenioVentana();\n\n\t\tdisenioMenu();\n\n\t\tdisenio_Cuerpo();\n\n\t}",
"public void autonomousInit() {\n\t\tSystem.out.println(\"Auto Init\");\n//\t\tint autonStep = 0;\t//step that autonomous is executing\n\t\tclaw = new Claw();\n\t\televator = new Elevator();\n//\t\televator.elevator();\n\t\tdecode = new Decode();\n//\t\tdecode.decode();\n\t}",
"public final void init() {\n onInit();\n }",
"protected void initialize() {\n finished = false;\n Robot.shooter.Spin();//Spin up wheels\n Timer.delay(3);\n Robot.shooter.TriggerExtend();//Reset Trigger\n Timer.delay(.2);\n Robot.shooter.FeederExtend();//Drop Frisbee\n Timer.delay(1.5);\n Robot.shooter.TriggerRetract();//Fire frisbee\n Timer.delay(.2);\n Robot.shooter.FeederRetract();//Reset Feeder\n Timer.delay(.4);\n \n Robot.shooter.TriggerExtend();//Reset Trigger\n Timer.delay(.2);\n Robot.shooter.FeederExtend();//Drop Frisbee\n Timer.delay(1.5);\n Robot.shooter.TriggerRetract();//Fire frisbee\n Timer.delay(.2);\n Robot.shooter.FeederRetract();//Reset Feeder\n Timer.delay(.4);\n \n Robot.shooter.TriggerExtend();//Reset Trigger\n Timer.delay(.2);\n Robot.shooter.FeederExtend();//Drop Frisbee\n Timer.delay(1.5);\n Robot.shooter.TriggerRetract();//Fire frisbee\n Timer.delay(.2);\n Robot.shooter.FeederRetract();//Reset Feeder\n Timer.delay(.4);\n //Robot.shooter.Stop();\n Robot.shooter.TriggerExtend();//Reset Trigger\n \n Robot.driveTrain.DriveBack();//Drives backwards from pyramid\n Timer.delay(1.5);\n Robot.driveTrain.TurnAround();//Turns Bob around\n Timer.delay(1);\n Robot.driveTrain.Stop();//Stops Bob\n \n Robot.pneumatics.CompressorOn();//Turns compressor on\n }",
"public void autonomousInit() {\n\t\tautonomousCommand.start();\r\n\t}",
"protected void initialize() {\n \tstartTime = System.currentTimeMillis();\n \tintake.setLeftPower(power);\n \tintake.setRightPower(power);\n }",
"@Override\n\tpublic void run() {\n\t\tinit();\n\t}",
"public void initialize() {\n\n getStartUp();\n }",
"public void init() {\n System.out.println(\"init\");\n }",
"private void Initialize() {\n\t\tjetztStdTxt = (EditText) findViewById(R.id.weckJetztStund);\n\t\tjetztMinTxt = (EditText) findViewById(R.id.weckJetztMin);\n\t\tschlafStdTxt = (EditText) findViewById(R.id.weckSchlafStd);\n\t\tschlafMinTxt = (EditText) findViewById(R.id.weckSchlafMin);\n\t\tfinalTime = (TextView) findViewById(R.id.weckFinalTime);\n\t\tgo = (Button) findViewById(R.id.weckGo);\n\n\t}",
"public void doInit() {\n\t\ttimer = new Timer() {\n\t\t public void run() {\n\t\t \t\tgetTrumpStack();\n\t\t }\n\t\t };\n\t\t timer.schedule(1000);\n\t}",
"@Override\n\tpublic void init() throws Exception {\n\t\ttry {\n\t\t\tThread.sleep(SPLASH_SCREEN_TIMER);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}",
"public void autonomousInit() {\n }",
"public void autonomousInit() {\n }",
"public boolean init() {\n if (!controller.initiateApp()) return false;\n System.out.println(\"App initialized\");\n\n //2. Warming palette table for initial state\n ViewInfo view = controller.getCurrentView();\n if (view == null) return false;\n\n return true;\n }",
"public void pgmInitialize() {\n\t\tzzsetdspfind();\n\t\tinzsr();\n\t\t// D e f i n i t i o n s\n\t\tstateVariable.setSflchg(\"0\");\n\t\tstateVariable.setSflrrn(0);\n\t\t// M a i n l i n e C o d e\n\t\tmainline0();\n\t\treturn;\n\t}",
"void preInit();",
"void preInit();",
"public void teleopInit()\n\t{\n\t\tif (autonomousCommand != null)\n\t\t\tautonomousCommand.cancel();\n\t\tif (secondAuton != null)\n\t\t\tsecondAuton.cancel();\n\t\tif (isAuton && auton == \"Left\")\t{\n\t\t\tpostAuton.start();\n\t\t\tisAuton = false;\n\t\t}\n\t\tconveyor.setPlate(true);\n\t}",
"public void initialize() {\n //TODO: Initialization steps\n\n initialized = true;\n }",
"public void autonomousInit() {\n\t\t\n\t}",
"public void init() {\n\t\tregisterFunctions();\n\t\t\t\t\n\t\t//Start it\n\t\tconsole.startUserConsole();\n\t}",
"protected void initialize() {\n \tSystem.out.println(\"HoldGear STARTING!!\");\n }",
"public static void init(){\r\n CommandBase.magazine.setSpeed(0.0);\r\n CommandBase.loader.setSpeed(0.0);\r\n Init.manualTankDrive.start(); \r\n Init.runCompressor.start();\r\n Init.stopGyroDrift.start();\r\n \r\n }",
"protected void initialize() {\n\t\tsquaredInputs = false;\n\t\t// SmartDashboard.putString(\"DB/LED 0\", \"TeleOpDrive is init\");\n\t}",
"public void initialize() {\n\tMain.getPartida().recuperarData();\n\taction();\n\t\n\t}",
"public void init(){\n System.out.println(\"调用init\");\n }",
"public void autonomousInit() {\n\t\ttimer.start();\n\t\tautonomousCommand = autoChooser.getSelected();\n\t\t//This outputs what we've chosen in the SmartDashboard as a string.\n\t\tSystem.out.println(autonomousCommand);\n\t\tif (DriverStation.getInstance().isFMSAttached()) {\n\t\t\tgameData = DriverStation.getInstance().getGameSpecificMessage();\n\t\t}\n\t\telse {\n\t\t\tgameData=\"RLR\";\n\t\t}\n\t\t//armSwing.setAngle(90); //hopefully this will swing the arms down. not sure what angle it wants though\n\t}",
"@FXML\n\tprivate void initialize() {\n\t\t\n\t\t//-- failedStackPane\n\t\tfailedStackPane.setVisible(false);\n\t\t\n\t\t//-- tryAgainButton\n\t\ttryAgainButton.setOnAction(a -> {\n\t\t\tMain.restartApplication(\"XR3PlayerUpdater\");\n\t\t\ttryAgainButton.setDisable(true);\n\t\t});\n\t\t\n\t\t//== Download Manually\n\t\tdownloadManually.setOnAction(a -> ActionTool.openWebSite(\"https://sourceforge.net/projects/xr3player/\"));\n\t\t\n\t}",
"public void Initialse() {\n\t\tappSettings = ctx.getSharedPreferences(APP_SETTINGS, 0);\n\t\tSharedPreferences.Editor prefEditor = appSettings.edit();\n\t\tprefEditor.putBoolean(BLOCK, true); // master switch\n\t\tprefEditor.putBoolean(NOTIFY, true); // controls whether a notification appears in status bar ans notifications lit\n\t\tprefEditor.putBoolean(REMOVE_CALLS, false); // determines whether calls are removed form the call log\n\t\t// add INIT to prevent this code from being called again\n\t\tprefEditor.putBoolean(INIT, true); // flag to allow subsequent loads to recognise that defaults are set\n\t\tprefEditor.putString(TEST, ctx.getString(R.string.test_number));\n\t\tprefEditor.putBoolean(RULES_EXIST, false); // added to control whether app kicks off commshandler\n\t\t\n\t\tprefEditor.commit();\n \n\t}",
"public void robotInit() {\n chooser = new SendableChooser();\n chooser.addDefault(\"Default Auto\", defaultAuto);\n chooser.addObject(\"My Auto\", customAuto);\n SmartDashboard.putData(\"Auto choices\", chooser);\n\n initialize();\n }",
"public void startUp() {\n\t\t/* Language of App */\n\t\t\n\t\t/* Init Icons */\n\t\tPaintShop.initIcons(display);\n\t\t/* Init all components */\n\t\tinitComponents();\n\t\t\n\t\t\n\t}",
"private void initialize() {\n\t\tcoords = (TextView) findViewById(R.id.tvcoords);\n\t\tstartgps = (Button) findViewById(R.id.bstartgps);\n\t\tstartgps.setOnClickListener(this);\n\t\tstopgps = (Button) findViewById(R.id.bstopgps);\n\t\tstopgps.setOnClickListener(this);\n\n\t}",
"public void start()\n\t{\n\t\taskUser();\n\t\tloop();\n\n\t}",
"@Override\n public synchronized void start() {\n init();\n }",
"void initLoop(){\n Context c = getContext();\n if (c == null){\n if (getLoop() > 0){\n setContext(new Context());\n initContext(getContext());\n }\n }\n else {\n initContext(getContext());\n }\n }",
"protected void initialize() {\r\n motorWithEncoder.encoder.reset();\r\n motorWithEncoder.encoder.start();\r\n motorWithEncoder.enable();\r\n MessageLogger.LogMessage(\"PID Loop Enabled\");\r\n }",
"public void init() {\n Thread run = new Thread(new Run());\n run.start();\n }",
"public void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == startButton) {\n\t\t\tinit();\n\t\t}\n\t}",
"public void init(){\n\t\tsetBackground(Color.green);\n\t\tmsg = \"Let's Play\";\n//\t\tmsg1 = \"Your Frinds Choice\";\n\t\tSystem.out.println(cpu);\n\t\tb1 = new Button(\"Stone\");\n\t\tb2 = new Button(\"Paper\");\n\t\tb3 = new Button(\"Seaser\");\n\t\tb1.addActionListener(this);\n\t\tb2.addActionListener(this);\n\t\tb3.addActionListener(this);\n\t\tadd(b1);\n\t\tadd(b2);\n\t\tadd(b3);\n\t}",
"protected void initialize() {\n\t\tstate = 0;\n\t\t\n\t\tString gameData = DriverStation.getInstance().getGameSpecificMessage();\n\t\tscaleSide = gameData.substring(1, 2).contentEquals(\"R\");\n\t\tswitchSide = gameData.substring(0, 1).contentEquals(\"R\");\n\t\t\n\t\tdelay.start();\n\t\t\n\t\tif(delay.get() < Variables.autoDelay) {\n\t\t\t\n\t\t}\n\t}",
"public void init() {\n\t\tmenuTimer.start();\n\t\tmainMenuAnimation = new Animation(100,Assets.mainMenu);\n\t}",
"@Override\n public void simpleInitApp() {\n this.viewPort.setBackgroundColor(ColorRGBA.LightGray);\n im = new InteractionManager();\n setEdgeFilter();\n initEnemies();\n initCamera();\n initScene();\n initPlayer();\n initCrossHairs();\n }",
"private void init() {\n StateManager.setState(new MenuState());\n }",
"@FXML\n\tprivate void initialize() {\n\t\t\n//\t\tImage startDiceImage = new Image(\"Images/one.png\");\n\t\t\n\t\t// each toggle button must get their own group or they would become radio buttons\n\t\ttogglebtnD1.setToggleGroup(groupMain1);\n\t\ttogglebtnD2.setToggleGroup(groupMain2);\n\t\ttogglebtnD3.setToggleGroup(groupMain3);\n\t\t\n\t\t// probably not 100% necessary\n\t\ttogglebtnD1.setSelected(false);\n\t\ttogglebtnD2.setSelected(false);\n\t\ttogglebtnD3.setSelected(false);\n\t\t\n\t\ttextFieldCurrentPlayer.setText(\"Player1\");\n\t\ttextAreaInstructions.setText(\"Start by clicking\" + \"\\n\" + \"Roll Dice button!\");\n\t\ttextFieldRound.setText(Integer.toString(round));\n\t\t\n\t\t// sets the starting dice pictures to one's\n\t\tchangeGraphic(togglebtnD1, d1);\n\t\tchangeGraphic(togglebtnD2, d1);\n\t\tchangeGraphic(togglebtnD3, d1);\n\t\t\n\t\t// makes it so you can't keep any dice before you roll\n\t\tdisableDice();\t\n\t}",
"public void init() {\n startMenuActionListener = new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n if (e.getActionCommand().equals(\"START\")) {\n startMenu = false;\n LevelIntermission = true;\n LevelIntermissionCount = 0;\n reset();\n requestFocusInWindow();\n }\n else if (e.getActionCommand().equals(\"EXIT\")){\n System.exit(0);\n }\n }\n };\n \n // Activating the Key Listener to listen to the applet\n this.addKeyListener(this);\n startButton = new Button(\"START\");\n exitButton = new Button(\"EXIT\");\n startButton.addActionListener(startMenuActionListener);\n exitButton.addActionListener(startMenuActionListener);\n startMenu = true;\n LevelIntermission = false;\n \n // default weapon is bullets\n one = true;\n two = false;\n three = false;\n \n // Setteing the length and width of the User Imterface\n backgroundX = 1200;\n backgroundY = 650;\n this.setSize(backgroundX, backgroundY);\n \n // Creating backround image\n offScreen = createImage(backgroundX, backgroundY);\n offG = offScreen.getGraphics();\n \n // Starting the timer - 50 frames a seconds\n timer = new Timer(20, this);\n }",
"protected void initialize() {\n\t\tRobot.conveyor.Forward();\n\n\t}",
"@Override\n\tpublic void init() {\n\t\tloadSpritesheet();\n\t\tloadSounds();\n\t\tinitIntro();\n\t}",
"@Override public void start() {\n timer_.reset();\n\n resetControlVariables(); // need reset all key counters bcz they are used in init_loop()\n }",
"private void initialization() {\n\t\tprogressbar = (ProgressBar) findViewById(R.id.progressBar1);\n\t\tprogressbar.getIndeterminateDrawable().setColorFilter(0xFFFFC107,\n\t\t\t\tandroid.graphics.PorterDuff.Mode.MULTIPLY);\n\t\ttheBrow = (WebView) findViewById(R.id.clickBrower);\n\t\trel = (RelativeLayout) findViewById(R.id.reL);\n\t\tbringBack = (Button) findViewById(R.id.bBack);\n\t\tbringForward = (Button) findViewById(R.id.bForward);\n\t\tbRefresh = (Button) findViewById(R.id.brefresh);\n\t\tinputText = (EditText) findViewById(R.id.editUrl);\n\t\tbingo = (Button) findViewById(R.id.bGo);\n\t}",
"@RequiresApi(api = Build.VERSION_CODES.N)\n public void StartInitial() {\n model.StartInitial();\n\n // Add any code required\n\n }",
"public void autonomousInit() {\n if (autonomousCommand != null) autonomousCommand.start();\n }",
"private void appInitialization(){\n openRom();\n openGuide();\n setOffset(0);\n addressChanged();\n }",
"private void init() {\n\t\t\n\t\tsetEnabled(true);\n\t}"
] | [
"0.7902108",
"0.73122996",
"0.73122996",
"0.7204301",
"0.718899",
"0.71654886",
"0.71654886",
"0.71654886",
"0.71654886",
"0.71654886",
"0.71654886",
"0.71654886",
"0.71654886",
"0.71654886",
"0.71654886",
"0.71654886",
"0.71654886",
"0.71654886",
"0.71654886",
"0.71654886",
"0.71654886",
"0.71593314",
"0.713714",
"0.701882",
"0.69014317",
"0.67838615",
"0.6756515",
"0.675219",
"0.67306936",
"0.66687375",
"0.66644746",
"0.6650271",
"0.66467637",
"0.6596095",
"0.6591569",
"0.6553908",
"0.65296155",
"0.6510135",
"0.65056926",
"0.6504558",
"0.65013075",
"0.649683",
"0.64889705",
"0.64774334",
"0.6463874",
"0.6459616",
"0.6454222",
"0.6454024",
"0.6447633",
"0.6445828",
"0.64371794",
"0.64281505",
"0.64237624",
"0.64167213",
"0.6404781",
"0.6403501",
"0.6402092",
"0.6361538",
"0.63508177",
"0.6349942",
"0.6349942",
"0.6349612",
"0.6341852",
"0.6337445",
"0.6337445",
"0.6336394",
"0.63286775",
"0.6322283",
"0.6321893",
"0.6320477",
"0.6313164",
"0.63100845",
"0.63071483",
"0.6305564",
"0.62982535",
"0.62952596",
"0.62863564",
"0.6285206",
"0.6281829",
"0.62752205",
"0.62745994",
"0.6274548",
"0.62740695",
"0.6273341",
"0.62667",
"0.62652135",
"0.62565905",
"0.6254926",
"0.62527233",
"0.62425244",
"0.62411696",
"0.62392014",
"0.6235968",
"0.62342936",
"0.6234203",
"0.62257123",
"0.62238157",
"0.62204814",
"0.62153137",
"0.62142646",
"0.62134767"
] | 0.0 | -1 |
/ Code to run REPEATEDLY after the driver hits PLAY but before they hit STOP | @Override
public void loop() { //Starts this loop after you press the START Button
/**
* Functional control of up down lift with no limit switches Meet 0 ready
*/
double liftposition = robot.liftUpDown.getCurrentPosition();
double liftrotposition = robot.liftRotate.getCurrentPosition();
telemetry.addData("Lift Position","%5.2f",liftposition);
telemetry.addData("LiftRot Position", "%5.2f", liftrotposition);
// telemetry.addData("Block Stack", BlockStack);
telemetry.update();
/**Main drive controls
* Driver 1
*/
/**
* Drag servos
*/
if (gamepad1.a){ //release
robot.drag1.setPosition(0);
robot.drag2.setPosition(1);
} else if (gamepad1.b){//grab
robot.drag1.setPosition(1);
robot.drag2.setPosition(0);
}
/**Mast and Lift controls
*
*
* Driver Two
*
*
*/
/**
* Need controls to
* Maybe predetermined locations based on number of pushes of a button.
*/
/**
* Functional arm rotation with limit switches and encoder limits. Meet 2 ready
*/
//Twists lift up after verifying that rotate up limit switch is not engaged and that step count is less than 5400
if ( gamepad2.dpad_up && robot.rotateup.getState() == true){
robot.liftRotate.setPower(1.0);
}
else if (gamepad2.dpad_down && robot.rotatedown.getState() == true){ //Twists lift down
robot.liftRotate.setPower(-1.0);
}
//required or lift rotate motor continues to run in last direction (breaks the motor shaft)
else robot.liftRotate.setPower(0);
/**
* claw controls a= open b= close
* FUNCTIONAL Meet 2 ready
*/
if (gamepad2.a){
robot.claw1.setPosition(0);
robot.claw2.setPosition(1);
} else if (gamepad2.b){
robot.claw1.setPosition(1);
robot.claw2.setPosition(0);
}
/**
* Lift controls with limit switches and encoder position Meet 2 ready
* right_trigger = lift
* left_trigger = down
*/
if ( gamepad2.right_trigger>= 0.2 && robot.liftup.getState()) {
triggerpress=true;
robot.liftUpDown.setMode(DcMotor.RunMode.RUN_USING_ENCODER);
robot.liftUpDown.setPower(.9);
robot.liftRotate.setPower(.15);
}
if (gamepad2.left_trigger>=0.2){
triggerpress=true;
robot.liftUpDown.setMode(DcMotor.RunMode.RUN_USING_ENCODER);
robot.liftUpDown.setPower(-0.9);
robot.liftRotate.setPower(-0.15);
}
if (gamepad2.left_trigger<.2 && gamepad2.right_trigger<.2 && triggerpress ){
robot.liftUpDown.setPower(0);
robot.liftRotate.setPower(0);
triggerpress=false;
}
int x;
int y;
double motorDelayTime;
//Necessary Debounce to keep bumper from being seen as multiple touches
/* motorDelayTime=.1;
if (robot.liftUpDown.getCurrentPosition()<50){
BlockStack =0;
}
//skips servos unless runtime is greater than 20 ms.
if( runtime.time() > motorDelayTime ) {
//Need to move 5.5 inches on position 2, subsequent blocks will only need to move up 4 inches.
x = robot.liftUpDown.getCurrentPosition();
y= robot.liftRotate.getCurrentPosition();
if (gamepad2.right_bumper ) {
BlockStack= BlockStack + 1;
robot.liftUpDown.setMode(DcMotor.RunMode.RUN_TO_POSITION);
robot.liftUpDown.setTargetPosition(x + robot.floorheight);
robot.liftUpDown.setPower(.9);
robot.liftRotate.setTargetPosition(y + robot.floorheightrotate);
robot.liftRotate.setPower(.1);
bumperpress=true;
//don't want to drive the cable too far loose checks that we can move a full block down
} else if (gamepad2.left_bumper && x >= robot.floorheight ) {
BlockStack= BlockStack - 1;
robot.liftUpDown.setMode(DcMotor.RunMode.RUN_TO_POSITION);
robot.liftUpDown.setTargetPosition(x - robot.floorheight);
robot.liftUpDown.setPower(-.5);
}
runtime.reset();
robot.liftUpDown.setMode(DcMotor.RunMode.RUN_USING_ENCODER);
}*/
/**
* Limit switch tests that reset the encoders Meet 1 ready
* * liftdown also allows the X button to work
* * rotatedown also allows the Y button to work
*/
if (robot.rotatedown.getState() == false) {
robot.liftRotate.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);
robot.liftRotate.setMode(DcMotor.RunMode.RUN_USING_ENCODER);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void pause() {\n\t\t// TODO\n\t}",
"public void continueRun() {\n pause = false;\n }",
"@Override\r\n public void pause() {}",
"@Override\r\n public void pause() {\r\n\r\n }",
"@Override\r\n public void pause() {\r\n\r\n }",
"private void resume() { player.resume();}",
"@Override\n public void pause() {\n }",
"@Override\n public void playStop() {\n }",
"@Override\r\n public void pause() {\n }",
"@Override\r\n public void pause() {\n }",
"@Override\r\n public void pause() {\n }",
"void beforeStop();",
"@Test\n void pauseAndRestart() {\n getGame().start();\n assertThat(getGame().isInProgress()).isTrue();\n getGame().stop();\n assertThat(getGame().isInProgress()).isFalse();\n // we resume\n getGame().start();\n assertThat(getGame().isInProgress()).isTrue();\n verifyZeroInteractions(observer);\n }",
"@Override\n public void pause() {\n // Not used\n }",
"@Override\r\n\tpublic void pause() {\n\t}",
"@Override\n public void pause() {\n\n }",
"@Override\n public void pause() {\n\n }",
"@Override\n public void pause() {\n\n }",
"@Override\n public void pause() {\n }",
"@Override\n public void pause() {\n }",
"@Override\n public void pause() {\n }",
"@Override\n public void pause() {\n }",
"@Override\n public void pause() {\n }",
"@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}",
"@Override\n\tpublic void onStopRun(PlatformPlayer player) {\n\t\t\n\t}",
"protected void pause(){}",
"@Override\n \tpublic void pause() {\n \t}",
"@Override\r\n\tpublic void pause() {\n\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\r\n\t}",
"@Override\n public void pause() {\n \n }",
"@Override\n public void pause() {\n \n }",
"public void pause() {}",
"@Override\n\tpublic void pause() {\n\t}",
"@Override\n\tpublic void pause() {\n\t}",
"@Override\n\tpublic void pause() {\n\t}",
"@Override\n\tpublic void pause() {\n\t}",
"@Override\n\tpublic void pause() {\n\t}",
"@Override\n\tpublic void pause() {\n\t}",
"@Override\n\tpublic void pause() {\n\t}",
"public void play() {\n executor.submit(new Runnable() {\n public void run() {\n resume = true;\n notifyStatus();\n }\n });\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tmVideoContrl.playPrevious();\r\n\r\n\t\t\t\t\t\t\t}",
"@Override\n public void pause() {\n }",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\n\tpublic void pause() {\n\t\t\n\t}",
"@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tmVideoContrl.start();\r\n\t\t\t\t\t\tisBreakDialogDissmiss = true;\r\n\t\t\t\t\t\tsendFirstShowContrlBtn();\r\n\t\t\t\t\t\tisChangeNotStart = true;\r\n\t\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(REFRESH_PAUSEBUTON);\r\n\t\t\t\t\t\t// start_3Dmode();\r\n\t\t\t\t\t}",
"@Override\n public void Pause() {\n\n }",
"@Override\n public void Pause() {\n\n }",
"@Override\n\tpublic void pause() \n\t{\n\n\t}",
"@Override\n\tpublic void pause()\n\t{\n\n\t}",
"@Override\n\tpublic void pause() {\n\n\t}",
"@Override\n\tpublic void pause() {\n\n\t}",
"@Override\n\tpublic void pause() {\n\n\t}",
"@Override\n\tpublic void pause() {\n\n\t}",
"@Override\n\tpublic void pause() {\n\n\t}",
"@Override\n\tpublic void pause() {\n\n\t}",
"@Override\n\tpublic void pause() {\n\n\t}",
"@Override\n\tpublic void pause() {\n\n\t}",
"@Override\n\tpublic void pause() {\n\n\t}",
"@Override\n\tpublic void pause() {\n\n\t}",
"@Override\n\tpublic void pause() {\n\n\t}",
"@Override\n\tpublic void pause() {\n\n\t}",
"@Override\n\tpublic void pause() {\n\n\t}",
"@Override\n\tpublic void pause() {\n\n\t}"
] | [
"0.6657745",
"0.66266507",
"0.6538077",
"0.6507378",
"0.6507378",
"0.6498633",
"0.6498158",
"0.6492809",
"0.6479936",
"0.6479936",
"0.6479936",
"0.64794683",
"0.6474976",
"0.6474351",
"0.6468748",
"0.6454679",
"0.6454679",
"0.6454679",
"0.6448941",
"0.6448941",
"0.6448941",
"0.6448941",
"0.6448941",
"0.64437985",
"0.64437985",
"0.64437985",
"0.64437985",
"0.64437985",
"0.64437985",
"0.64437985",
"0.64437985",
"0.64437985",
"0.6442371",
"0.6436575",
"0.6435805",
"0.6426968",
"0.6426968",
"0.6426968",
"0.6426968",
"0.6426968",
"0.6426968",
"0.6426968",
"0.6425452",
"0.64254165",
"0.6421281",
"0.64043194",
"0.64043194",
"0.64043194",
"0.64043194",
"0.64043194",
"0.64043194",
"0.64043194",
"0.6400956",
"0.6395174",
"0.6366828",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6365964",
"0.6360277",
"0.6341723",
"0.6341723",
"0.6339989",
"0.6334392",
"0.63308376",
"0.63308376",
"0.63308376",
"0.63308376",
"0.63308376",
"0.63308376",
"0.63308376",
"0.63308376",
"0.63308376",
"0.63308376",
"0.63308376",
"0.63308376",
"0.63308376",
"0.63308376"
] | 0.0 | -1 |
input data validation resourse link implement the menu | public static void main(String[] args) {
final Scanner scanner = new Scanner(System.in);
boolean exit = false;
String select;
loadFromFile();
do {
System.out.println("Premier League Manager");
System.out.println("=================================");
System.out.println("Please enter A to Add Football Club");
System.out.println("Please enter D to Delete Football Club");
System.out.println("Please enter S to Display Club Statistics");
System.out.println("Please enter P to Display League Table");
System.out.println("Please enter M to Add Played Match");
System.out.println("Please enter G to Start GUI");
System.out.println("Please enter Q to Exit");
System.out.print("Please enter your choice: ");
select = scanner.nextLine();
switch (select){
case "A":
case "a" :
addFootballClub();
exit = false;
break;
case "D":
case "d":
deleteFootballClub();
exit = false;
break;
case "S":
case "s":
displayStatistics();
exit = false;
break;
case "P":
case "p":
displayLeagueTable();
exit = false;
break;
case "M":
case "m":
addPlayedMatch();
exit = false;
break;
case "G":
case "g":
gui();
exit = false;
break;
case "Q":
case "q":
//saveToFile();
System.exit(0);
exit = true;
default:
System.out.println("Invalid choice! please try again");
exit = false;
}
}while (!exit);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void validorolin() {\n if (roli.equals(\"Menaxher\")) {\n madministrimi.setVisible(false);\n }\n\n }",
"private void mainMenuDetails() {\r\n try {\r\n System.out.println(\"Enter your choice:\");\r\n int menuOption = option.nextInt();\r\n switch (menuOption) {\r\n case 1:\r\n showFullMenu();\r\n break;\r\n case 2:\r\n empLogin();\r\n break;\r\n case 3:\r\n venLogin();\r\n // sub menu should not be this\r\n break;\r\n case 4:\r\n Runtime.getRuntime().halt(0);\r\n default:\r\n System.out.println(\"Choose either 1,2,3\");\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.out.println(\"enter a valid value\");\r\n }\r\n option.nextLine();\r\n mainMenu();\r\n }",
"public void userForm(){\n\t\tSystem.out.print(menu);\n\t\tScanner input = new Scanner(System.in);\n\t\tselection = input.nextInt();\n\t\tmenuActions(selection);\n\t\t}",
"public void exibeMenu() {\n System.out.println(\"Digite o valor referente a operação desejada\");\r\n System.out.println(\"1. Busca Simples\");\r\n System.out.println(\"2. Busca Combinada\");\r\n System.out.println(\"3. Adicionar Personagem Manualmente\");\r\n System.out.println(\"4. Excluir Personagem\");\r\n System.out.println(\"5. Exibir Personagens\");\r\n int opcao = teclado.nextInt();\r\n if(opcao >= 7){\r\n do\r\n {\r\n System.out.println(\"Digite um numero valido\");\r\n opcao = teclado.nextInt();\r\n }while (opcao>=6);\r\n }\r\n ctrlPrincipal.opcaoMenu(opcao);\r\n }",
"@Override\n\tpublic void showmenu() {\n\t\t\n\t\tint choice;\n \n System.out.println(\"请选择1.查询 2.退出\");\n choice=console.nextInt();\n \n switch (choice){\n \n case 1:\n Menu.searchMenu();\n break;\n default:\n \tSystem.out.println(\"感谢您使用本系统 欢迎下次使用!\");\n System.exit(0);\n }\n \n \n\t}",
"private static void menu(Data data) {\n\t\tScanner reader = new Scanner(System.in);\n\t\tint x = -1;\n\t\twhile (true) {\n\t\t\tSystem.out.println(\"Choose an option from below by \"\n\t\t\t\t+ \"typing the corresponding number into the prompt, then pressing enter:\");\n\t\t\tSystem.out.println(instructions);\n\t\t\ttry {\n\t\t\t\tx = reader.nextInt();\n\t\t\t\tif (x < 1 || x > 4) {\n\t\t\t\t\tSystem.out.println(\"Invalid Input\");\n\t\t\t\t\taddToLog(\"user chose option\" + x + \", which is not a valid option\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tchooseMethod(x, data);\n\t\t\t\t}\n\t\t\t} catch (InputMismatchException e) {\n\t\t\t\tSystem.out.println(\"Invalid Input\");\n\t\t\t\taddToLog(\"user entered invalid menu key\");\n\t\t\t\treader.nextLine();\n\t\t\t}\n\t\t}\n\t}",
"public static void menu()\r\n {\n\t\t Scanner scan = new Scanner(System.in);\r\n\t\t System.out.println(\"Please enter your choice : \");\r\n\t\t int choice = scan.nextInt();\r\n\t\t switch(choice)\r\n\t\t {\r\n\t\t case 1:\r\n\t\t\t viewFiles();\r\n\t\t\t goback();\r\n\t\t\t break;\r\n\t\t case 2: \r\n\t\t\t createNew();\r\n\t\t\t goback();\r\n\t\t\t break;\r\n\t\t case 3: \r\n\t\t\t searchFile();\r\n\t\t\t goback();\r\n\t\t\t break;\r\n\t\t case 4: \r\n\t\t deleteFile();\r\n\t\t goback();\r\n\t\t break;\r\n\t\t case 5: \r\n\t\t\t exit();\r\n\t\t\t goback();\r\n\t\t\t break;\r\n\t\t \r\n\t\t default :\r\n\t\t\t System.out.println(\"please enter a only 1,2,3 or 4\");\r\n\t\t\t goback();\r\n\t }\r\n\t }",
"public void main_menu()\n\t{\n\t\tSystem.out.println(\"===========================================================\");\n\t\tSystem.out.println(\"Please Select an option\");\n\t\tSystem.out.println(\"===========================================================\");\n\t\tSystem.out.print(\"1.Add 2.Update 3.Delete 4.Exit\\n\");\n\t\tSystem.out.println(\"===========================================================\");\n\t\tchoice=me.nextInt();\n\t\tthis.check_choice(choice);\n\t}",
"private void showMenu() {\n\t Scanner sc = new Scanner(System.in);\n\t Arguments argument = Arguments.INVALID;\n\t System.out.println(\"Enter command of your choice in the correct format\");\n\t do\n\t {\n\t \tString command = sc.nextLine();\n\t \tString[] arguments = command.split(\" +\");\n\t \targument = validateAndReturnType(arguments);\n\t \tswitch(argument) {\n\t\t \tcase INCREASE:\n\t\t \t\tincrease(arguments);\n\t\t \t\tbreak;\n\t\t \tcase REDUCE:\n\t\t \t\treduce(arguments);\n\t\t \t\tbreak;\n\t\t\t\tcase COUNT:\n\t\t\t\t\tcount(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase INRANGE:\n\t\t\t\t\tinRange(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase NEXT:\n\t\t\t\t\tnext(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase PREVIOUS:\n\t\t\t\t\tprevious(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase QUIT:\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\tcase INVALID:\n\t\t\t\t\tSystem.out.println(\"Please enter a valid command\");\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Invalid command. Enter a command in the correct format\");\n\t \t}\n\t } while(argument != Arguments.QUIT);\n\t}",
"public void menu(){\n System.out.println(\"---------------------------Login------------------------------------\");\n \n System.out.println(\"Usuario:\");\n respuesta = scanner.nextLine();\n System.out.println(\"Contraseña:\");\n respuesta2 = scanner.nextLine();\n Usuario user = new Usuario();\n user.setNombre(respuesta);\n user.setPassword(respuesta2);\n idUser=modelo.validarUsuario(user);\n if(idUser<0){\n System.err.println(\"Usuario invalido\");\n \n }else{\n \n menuInterno();\n \n }\n//\n// menuInterno();\n// \n }",
"public String chooseMenu() {\n String input = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"menu_id\");\n setName(FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"name\"));\n setType(FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"type\"));\n setMenu_id(Integer.parseInt(input));\n return \"EditMenu\";\n\n }",
"public int showMenu() {\n // Print out menu for user choice\n System.out.println(\"==================== Login Program ====================\");\n System.out.println(\"1. Add User\");\n System.out.println(\"2. Login\");\n System.out.println(\"3. Exit\");\n System.out.print(\"Please choice one option: \");\n\n // Return number if method to check validate of input is done\n return this.checkValidate();\n }",
"public void handleMenuClick(Player player, MenuSection menu) {\n\t\tnew MenuDialog(player, this, menu, \"Invalid input\");\n\t}",
"private void mainMenuDetails() {\n try {\n System.out.println(\"Enter your choice:\");\n final int menuOption = option.nextInt();\n switch (menuOption) {\n case 1:\n showFullMenu();\n break;\n case 2:\n acceptRejectResponse();\n break;\n case 3:\n placeOrder();\n break;\n case 4:\n showFullOrder();\n break;\n case 5:\n Runtime.getRuntime().halt(0);\n default:\n System.out.println(\"Choose either 1 or 2\");\n }\n } catch (final Exception e) {\n e.printStackTrace();\n System.out.println(\"enter a valid value\");\n }\n option.nextLine();\n mainMenu();\n }",
"private static String validateMainMenuChoice(String choice)\r\n {\t\t\r\n boolean isValid = false;\r\n\r\n //loops until user enters A C or E\r\n while (isValid == false)\r\n {\t\t\r\n if (choice.equals(\"A\") || choice.contentEquals(\"C\") || choice.contentEquals(\"E\"))\r\n {\r\n isValid = true;\r\n }else\r\n {\r\n System.out.println(\"\\n!!!!!!!!!!!!!!\\nYOUR CHOICE WAS NOT VALID.\"\r\n + \"\\n\\tPlease enter 'A', 'C', or 'E'\");\t\t\t\r\n\r\n choice = scanner.nextLine();\r\n }\r\n }\t\t\t\r\n return choice;\r\n }",
"public adminmenu() throws IOException, ClassNotFoundException {\r\n this.input = new Scanner(System.in);\r\n this.adminPage(); // Calling the Mentioned Function\r\n }",
"boolean validarCamposVacios(int menu) {\r\n if (menu == 1) {\r\n if (!v_registro_Usuario.getTxtCedulaEmp_Registro().getText().isEmpty()\r\n && !v_registro_Usuario.getTxt_NombreUsuario().getText().isEmpty()\r\n && !v_registro_Usuario.getTxt_Contrasenia().getText().isEmpty()) {\r\n\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n } else {\r\n if (!v_registro_Usuario.getTxtCedula_RegisEdit().getText().isEmpty()\r\n && !v_registro_Usuario.getTxtUsuario_RegisEdit().getText().isEmpty()\r\n && !v_registro_Usuario.getTxtContra_RegisEdit().getText().isEmpty()) {\r\n\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n }",
"private void runMenu() throws ValidatorException, FileNotFoundException {\n while (true) {\n System.out.print(\"\\n1 - STUDENTS OPERATIONS\\n2 - COURSES OPERATIONS\\n3 - TEACHER OPERATIONS\\n\" +\n \"4 - REGISTRATION SYSTEM OPERATIONS\\n0 - EXIT\\n\");\n Scanner sc = new Scanner(System.in);\n int cmd = sc.nextInt();\n switch (cmd) {\n case 0: {\n System.exit(0);\n }\n case 1:\n while (true) {\n System.out.print(\"\\n1 - Add new student\\n\" +\n \"2 - Update student\\n\" +\n \"3 - Delete student\\n\" +\n \"4 - View student\\n\" +\n \"5 - Display all students\\n\" +\n \"6 - Filter students by name\\n\" +\n \"0 - Back\\n\");\n int cmd2 = sc.nextInt();\n if (cmd2 == 0)\n break;\n switch (cmd2) {\n case 1:\n addStudent();\n break;\n case 2:\n updateStudent();\n break;\n case 3:\n deleteStudent();\n break;\n case 4:\n viewStudent();\n break;\n case 5:\n viewAllStudents();\n break;\n case 6:\n filterStudents();\n break;\n }\n }\n break;\n case 2:\n while (true) {\n System.out.print(\"\\n1 - Add new course\\n\" +\n \"2 - Update course\\n\" +\n \"3 - Delete course\\n\" +\n \"4 - View course\\n\" +\n \"5 - Display courses\\n\" +\n \"6 - Sort courses by credits\\n\" +\n \"0 - Back\\n\");\n int cmd2 = sc.nextInt();\n if (cmd2 == 0)\n break;\n switch (cmd2) {\n case 1:\n addCourse();\n break;\n case 2:\n updateCourse();\n break;\n case 3:\n deleteCourse();\n break;\n case 4:\n viewCourse();\n break;\n case 5:\n viewCourses();\n break;\n case 6:\n sortCourses();\n break;\n }\n }\n break;\n case 3:\n while (true) {\n System.out.print(\"\\n1 - View teacher\\n\" +\n \"2 - Display teachers\\n\" +\n \"0 - Back\\n\");\n int cmd3 = sc.nextInt();\n if (cmd3 == 0)\n break;\n switch (cmd3) {\n case 1:\n viewTeacher();\n break;\n case 2:\n viewTeachers();\n break;\n }\n }\n break;\n case 4:\n while (true) {\n System.out.print(\"\\n1 - Register\\n\" +\n \"2 - Show courses with available places\\n\" +\n \"3 - Show students enrolled for a course\\n\" +\n \"4 - Display all courses\\n\" +\n \"0 - Back\\n\");\n int cmd4 = sc.nextInt();\n if (cmd4 == 0)\n break;\n switch (cmd4) {\n case 1:\n register();\n break;\n case 2:\n retrieveCoursesWithFreePlaces();\n break;\n case 3:\n retrieveStudentsEnrolledForACourse();\n break;\n case 4:\n viewCourses();\n break;\n }\n }\n break;\n default: {\n System.out.println(\"Invalid command!\\n\");\n }\n }\n }\n }",
"private static String mainMenu(){\n\t\tSystem.out.println(\"==================================\");\n\t\tSystem.out.println(\"Main Menu\");\n\t\tSystem.out.println(\"Please select from the following:\");\n\t\tSystem.out.println(\"1. Display all available courses and add course\");\n\t\tSystem.out.println(\"2. Display all enrolled courses and drop course\");\n\t\tSystem.out.println(\"3. Logout\");\n\t\tSystem.out.print(\"Enter the number of you request: \"); \n\t\tString selection = input.nextLine();\n\t\tSystem.out.println(\"\");\n\t\treturn selection;\n\t}",
"public int Menu(){\n System.out.println(\"\\nWelcome:-\");\n System.out.println(\"1) Check Grades \\n2) Add Grades \\n3) Edit Student Grades \\n4) Calculate a final grade \\n5) Display all students \\n0) Exit\");\n return input.nextInt();\n }",
"@Override\n public void onClick(View v) {\n validateUserInputs();\n }",
"public static boolean validateMenuOption(String input) {\r\n boolean valid = false;\r\n try {\r\n if (Integer.parseInt(input) < 1 || Integer.parseInt(input) > 5){\r\n System.out.println(\"**Error: Menu option not found.\\n\"\r\n +\" Please type a single digit [1-5] for menu option.\");\r\n } \r\n else {\r\n valid = true;\r\n }\r\n }\r\n catch (NumberFormatException nfe) {\r\n System.out.println(\"**Error: Only a single number can be input.\\n\"\r\n +\" Please type a single digit [1-5] for menu option.\");\r\n }\r\n return valid;\r\n }",
"public boolean validation(){\n String Venuename= venuename.getText().toString();\n String Address= address.getText().toString();\n String Details= details.getText().toString();\n String Venueimage= venueimage.getText().toString();\n if(Venuename.isEmpty()){\n venuename.setError(\"Please enter the item name\");\n venuename.requestFocus();\n return false;\n }\n if(Address.isEmpty()){\n address.setError(\"Please enter the item name\");\n address.requestFocus();\n return false;\n }\n if(Details.isEmpty()){\n details.setError(\"Please enter the item name\");\n details.requestFocus();\n return false;\n }\n if(Venueimage.isEmpty()){\n venueimage.setError(\"Please Select the image first\");\n return false;\n }\n\n\n return true;\n }",
"public void rulesOnEnter() {\n try {\n String ruleString = ruleInputField.getText().toUpperCase();\n gOL.setRuleString(ruleString);\n ruleLabel.setText(gOL.getRuleString().toUpperCase());\n ruleInputField.setText(\"\");\n\n //Checks if the input matches any predefined rules. Clears the selection if not.\n if(!chooseRulesList.contains(gOL.getRuleName())){\n chooseRulesBox.getSelectionModel().clearSelection();\n }else{\n chooseRulesBox.getSelectionModel().select(gOL.getRuleName());\n }\n\n //Produces a warning if a RulesFormatException is thrown\n } catch (RulesFormatException rfe) {\n PopUpAlerts.ruleAlert2();\n }\n }",
"private static String getMainMenuChoice()\r\n {\r\n System.out.println(\"------Main Menu------\\n\"\r\n + \"Please choose:\\n\\t'A' to add a date to the database\"\r\n + \"\\n\\t'C' to calculate the balance\"\r\n + \"\\n\\t'E' to end Prgram\");\t\t\r\n\r\n String choice = scanner.nextLine();\r\n\r\n //validate a correction response\r\n choice = validateMainMenuChoice(choice);\r\n\r\n //return cleared entry\r\n return choice;\r\n }",
"public void validation() {\n ValidationData();\n if (Validation == null) {\n Toast.makeText(this, \"No Data Found\", Toast.LENGTH_SHORT).show();\n } else {\n getHistory();\n }\n }",
"public void deleteMenu() {\n deleteMenuGroupError = true;\n String input = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"menu_id\");\n menu_id = Integer.parseInt(input);\n setMenu_id(menu_id);\n if (menu.deleteMenu()) {\n createMenuError = false;\n updateMenuError = false;\n deleteMenuError = true;\n } else {\n deleteMenuError = false;\n }\n }",
"private void printErrorMenu() {\n System.out.println(\"Invalid input. Please check inputs and try again.\");\n }",
"static void Menu(){\n int pilihan;\n input = new Scanner(System.in);\n System.out.println(\"\\t TODO LIST APP \\t\");\n System.out.println(\"1. Lihat Todo List\");\n System.out.println(\"2. Tambah Todo List\");\n System.out.println(\"3. Edit Todo List\");\n System.out.println(\"4. Hapus Todo List\");\n System.out.println(\"0. Keluar kau\");\n\n System.out.print(\"Pilih = \");\n pilihan = input.nextInt();\n\n//IF ELSE Statment\n if (pilihan == 1){\n listTodo.list();\n }else if(pilihan == 2){\n listTodo.add();\n }else if (pilihan == 3){\n listTodo.edit();\n }else if (pilihan == 4){\n listTodo.hapus();\n }else if (pilihan == 0){\n System.exit(0);\n }else{\n kembali(\"Anda Salah Memilih Menu\");\n }\n\n }",
"private void searchMenu(){\n\t\t\n\t}",
"public int menu(){\n System.out.println(\"Elija una opción:\");\n\t\tSystem.out.println(\"1. Registrar un nuevo carro\");//Le damos todas las opciones disponibles\n\t\tSystem.out.println(\"2. Eliminar un carro del registro\");\n\t\tSystem.out.println(\"3. Mostrar espacios disponibles\");\n System.out.println(\"4. Mostrar el registro completo\");\n System.out.println(\"5. Mostrar las estadisticas del parqueo\");\n System.out.println(\"6. Agregar mas espacios de parqueo\");\n System.out.println(\"7. Salir/n/n\");\n\n boolean paso = false;\n int option = 0;\n while (paso == false){//Aplicamos un metodo para que escriba el \n try {\n String optionString = scan.nextLine();//Recibimos el valor como String para evitar un bug con el metodo nextLine()\n option = Integer.parseInt(optionString);//Lo cambiamos a int\n paso = true;\n } catch (Exception e) {\n System.out.println(\"Ingrese un valor correcto, por favor\");\n }\n }\n return option;//regresamos el valor convertido\n }",
"public static void menu() {\n\t\tSystem.out.println(\"\\nPlease select which type of argument to generate by entering the associated number.\\n\");\n\t\tfor(int i = 0; i < type.length; i++) {\n\t\t\tSystem.out.println((i+1)+\". \"+type[i]);\n\t\t}\n\t\tSystem.out.println(\"8. Quit\");\n\t}",
"public void onSelectFunction$mnu(Event event) {\r\n\r\n\t\tOperacion operacion = (Operacion) event.getData();\r\n\t\t\r\n\t\t\r\n\t\tif (operacion != null) {\r\n\t\t\t\r\n//\t\t\tObject actual = page.getVariable(\"actual\");\r\n\t\t\t\r\n\t\t\tObject actual = getPage().getAttribute(\"actual\");\r\n\t\t\t\r\n\t\t\tGenericList list = (GenericList)self;\r\n\t\t\t\r\n\t\t\tif (actual != null) {\r\n\t\t\t\t\r\n\t\t\t\talert(list.getDialog());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\r\n\t}",
"public boolean validateMenuItems(CwSession cwSession){\n idAnyNonExistingCpMenuItem(cwSession)\n .ifPresent(id -> {throw new RecordNotFoundException(String.format(MENU_ITEM_NOT_FOUND_WITH_ID,id));});\n return true;\n }",
"public void VerifyMainMenuItems() {\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Dashboard);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Initiatives);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_LiveMediaPlans);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_MediaPlans);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Audiences);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Offers);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_CreativeAssets);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Reports);\n\t}",
"private static void menuAdmin(){\n int opcao = 0;\n Scanner teclado = new Scanner(System.in);\n\n System.out.println(\"Administrador\");\n System.out.println(\"1 - Novo Utilizador\");\n System.out.println(\"2 - Nova Aplicação\");\n System.out.println(\"3 - Visualizar Utilizadores por ordem de registo\");\n System.out.println(\"4 - Visualizar Utilizadores por ordem de valor pago\");\n System.out.println(\"5 - Visualizar Aplicações\");\n System.out.println(\"6 - Valor acumulado pela AppStore\");\n System.out.println(\"7 - Valor acumulado por Programador\");\n System.out.println(\"8 - Gravar dados\");\n System.out.println(\"9 - Voltar atrás\");\n System.out.print(\"Opção: \");\n\n try{\n opcao = teclado.nextInt();\n System.out.println(\"\");\n switch(opcao){\n case 1: utilizadorProgramador();\n menuAdmin();\n break;\n case 2: lerIDProgramador();\n menuAdmin();\n break;\n case 3: escreverDadosUtilizador();\n menuAdmin();\n break;\n case 4: listUserValue();\n menuAdmin();\n break;\n case 5: verApps();\n break;\n case 6: System.out.println(totalAppStore()+\" euros\");\n menuAdmin();\n break;\n case 7: valorAcumuladoProgramador();\n menuAdmin();\n break;\n case 8: gravar();\n menuAdmin();\n break;\n case 9: modoVisualizacao();\n break;\n default: throw new InputMismatchException();\n }\n }catch(InputMismatchException ime){\n System.out.println(\"Opção Inválida, tente novamente!\");\n System.out.println(\"\");\n menuAdmin();\n }catch(FileNotFoundException e){\n e.printStackTrace();\n }catch(UnsupportedEncodingException e){\n e.printStackTrace();\n }\n }",
"public void menu()\n {\n System.out.println(\"\\n\\t\\t============================================\");\n System.out.println(\"\\t\\t|| Welcome to the Movie Database ||\");\n System.out.println(\"\\t\\t============================================\");\n System.out.println(\"\\t\\t|| (1) Search Movie ||\");\n System.out.println(\"\\t\\t|| (2) Add Movie ||\");\n System.out.println(\"\\t\\t|| (3) Delete Movie ||\");\n System.out.println(\"\\t\\t|| (4) Display Favourite Movies ||\");\n System.out.println(\"\\t\\t|| (5) Display All Movies ||\");\n System.out.println(\"\\t\\t|| (6) Edit movies' detail ||\");\n System.out.println(\"\\t\\t|| (7) Exit System ||\");\n System.out.println(\"\\t\\t=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\n System.out.print( \"\\t\\tPlease insert your option: \");\n }",
"public static void startMenu() {\n\t\tSystem.out.println(\"|**********************************|\");\n\t\tSystem.out.println(\"| |\");\n\t\tSystem.out.println(\"| Welcome to the Anny BankingApp! |\");\n\t\tSystem.out.println(\"| |\");\n\t\tSystem.out.println(\"************************************\");\n\n\t\tSystem.out.println(\"Please select your option:\");\n\t\tSystem.out.println(\"\\t[c]reate a new Account\");\n\t\tSystem.out.println(\"\\t[l]ogin to Your Account!\");\n\t\tSystem.out.println(\"\\t[a]dmin Menu\");\n\t\tSystem.out.println(\"\\t[e]mployee Menu\");\n\t\tSystem.out.println(\"\\t[o]Log Out\");\n\n\t\t//create variable to grab the input\n\t\tString option =scan.nextLine();\n\n\n\t\t//this switch case will based on chioce the users made////can be lowercase or uppercase letter\n\n\t\tswitch(option.toLowerCase()) {\n\t\tcase \"c\":\n\t\t\tcreateNewAccount();\n\t\t\tbreak;\n\t\tcase \"l\":\n\t\t\tloginToAccount();\n\t\t\t\n\t\t\tbreak;\n\t\tcase \"a\":\n\t\t\tadminMenu();\n\t\t\tbreak;\n\t\tcase \"e\":\n\t\t\temployeeMenu();\n\t\t\tbreak;\n\t\tcase \"o\":\n\t\t\tSystem.out.println(\"You Successfully logged out, back to main menu!!!\");\n\t\t\tstartMenu();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Try again\");\n\t\t\tstartMenu();//Return to startmenu if choice not match\n\t\t\tbreak;\n\t\t}\n\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_information_input, menu);\n return true;\n }",
"private void validateInputParameters(){\n\n }",
"public void validateContentsInDropDown() {\n\t\ttry {\n\t\t\tList<WebElement>dropDownList=driver.findElements(By.xpath(\"//app-nav-bar/div/div/ul[@class='dropdown-menu sp-dropdown']/li\"));\n\t\t\tfor(int i=0;i<dropDownList.size();i++) {\n\t\t\t\tLog.addMessage(\"Element \"+i+\" is:\"+driver.findElement(By.xpath(\"//app-nav-bar/div/div/ul[@class='dropdown-menu sp-dropdown']/li[\"+i+\"]/a\")).getText());\n\t\t\t}\n\t\t\tLog.addMessage(\"Contents in Drop Down list are validated\");\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Validation of Hamburger menu contents failed\");\n\t\t\tSystem.out.println(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to validate Hamburger menu contents\");\n\t\t}\n\t}",
"public String verMenu(){\r\n try {\r\n Object opcion=JOptionPane.showInputDialog(\r\n null,\r\n \"Seleccione Opcion\",\"Agenda de Anexos\",\r\n JOptionPane.QUESTION_MESSAGE,\r\n null,\r\n new String[]{\"1.- Registrar Empleado\",\r\n \"2.- Asignar Anexo a Empleado\",\r\n \"3.- Obtener ubicacion de un Anexo\",\r\n \"4.- Modificar Anexo a Empleado\",\r\n \"5.- Desasignar Anexo a Empleado\",\r\n \"6.- Listado de Asignaciones\",\r\n \"7.- Salir del Programa\"},\r\n \"1.- Registrar Empleado\");\r\n return(String.valueOf(opcion).substring(0, 1)); // RETORNA A FUNCION VOID MAIN\r\n } catch (Exception ex) {\r\n System.out.println(\"Hubo un error al ingresar una opcion \"+ex.toString());\r\n }\r\n return \"0\";\r\n }",
"@SuppressWarnings(\"StatementWithEmptyBody\")\r\n @Override\r\n public boolean onNavigationItemSelected(MenuItem item) {\r\n // Handle navigation view item clicks here.\r\n int id = item.getItemId();\r\n\r\n if (id == R.id.mainlist) {\r\n\r\n String url = \"http://192.168.43.218/assignment2/complaints/mainlist.json\";\r\n showcomplaints(url);\r\n\r\n\r\n } else if (id == R.id.resolved) {\r\n\r\n String url = \"http://192.168.43.218/assignment2/complaints/resolvedlist.json\";\r\n showcomplaints(url);\r\n\r\n } else if (id == R.id.unresolved) {\r\n\r\n String url = \"http://192.168.43.218/assignment2/complaints/unresolvedlist.json\";\r\n showcomplaints(url);\r\n\r\n } else if (id == R.id.notification) {\r\n\r\n shownotifications();\r\n\r\n } else if (id == R.id.newcomplaint) {\r\n Bundle extras2 = getIntent().getExtras();\r\n String hostel = extras2.getString(\"hostel\");\r\n String validid = extras2.getString(\"validid\");\r\n\r\n Intent nextScreen = new Intent(getApplicationContext(), NewComplaintActivity.class);\r\n nextScreen.putExtra(\"hostel\",hostel);\r\n nextScreen.putExtra(\"validid\",validid);\r\n startActivity(nextScreen);\r\n\r\n }else if (id == R.id.adduser){\r\n Bundle extras2 = getIntent().getExtras();\r\n String usertype = extras2.getString(\"usertype\");\r\n if(usertype.equals(\"warden\")||usertype.equals(\"dean\")) {\r\n Intent nextScreen = new Intent(getApplicationContext(), AddUSerActivity.class);\r\n nextScreen.putExtra(\"usertype\", usertype);\r\n startActivity(nextScreen);\r\n }\r\n else{\r\n Dialog(\"You are not allowed to add\",\"Invalid User\");\r\n }\r\n }\r\n else if (id == R.id.logout) {\r\n\r\n logout();\r\n }\r\n\r\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\r\n drawer.closeDrawer(GravityCompat.START);\r\n return true;\r\n }",
"public static void menuActions(int selection){\n\t\tselection = 1;\n\t\tswitch (selection){\n\t\t\tcase 1: //prompt user to input a new record, save response.\n\t\t\t\t//call method addNew here\n\t\t\tbreak; \n\t\t\tcase 2: //prompt user to search using first, last, or telephone\n\t\t\t//call method to search\n\t\t\t//display results\n\t\t\t//if multiple, select which to delete\n\t\t\t//call method for arraylist to delete \n\t\t\tbreak;\n\t\t\tcase 3: //prompt user to search by telephone\n\t\t\t//call method to search by #\n\t\t\t//display results\n\t\t\tbreak;\n\t\t\tcase 4: //prompt user to search by first name\n\t\t\t//call method to search by firstName\n\t\t\t//display results\n\t\t\tbreak;\n\t\t\tcase 5: //prompt user to search by last name\n\t\t\t//call method to search by LastName\n\t\t\t//display results\n\t\t\tbreak;\n\t\t\tcase 6: //prompt user to search by methods 1,2, or 3\n\t\t\t//call method to search\n\t\t\t//display results\n\t\t\t//verify selection with user\n\t\t\t//prompt user to replace input\n\t\t\tbreak;\n\t\t\tcase 7: //terminate program;\n\t\t\tSystem.exit(0);\n\t\t\tbreak;\n\t\t\tdefault: \n\t\t\tSystem.out.print(\"Please enter a valid selection (1-7)\");\n\t\t\t//call userForm to prompt a new menu box;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}",
"@Override\n public int ask(String question, ArrayList<Integer> range) {\n int value = 0;\n try {\n value = super.ask(question, range);\n } catch (MenuOutException moe) {\n System.out.println(moe.getMessage());\n } catch (NumberFormatException nfe) {\n System.out.println(\"Введите корректные данные\");\n }\n return value;\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\n\t\t\tString name=\"\";\n\t\t\tname=view.getNameTF().getText();\n\t\t\tString price=\"\";\n\t\t\tprice=view.getPriceTF().getText();\n\t\t\t\n\t\t\tMenuItem item=searchInMenu();\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(!name.equals(bpSelected.get(0)))\n\t\t\t\t{\n\t\t\t\t\tthrow new BadInput(\"Numele nu poate fi editat!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble p=Double.parseDouble(price);\n\t\t\t\t\n\t\t\t\tMenuItem nou=new BaseProduct(name,p);\n\t\t\t\t\n\t\t\t\trestaurant.editMenuItem(item,nou);\n\t\t\n\t\t\t\tview.showError(\"Produsul \"+name+\" a fost editat cu succes!\");\n\t\t\t\t\n\t\t\t}catch(NumberFormatException ex)\n\t\t\t{\n\t\t\t\tview.showError(\"Nu s-a introdus o valoare valida pentru pret!\");\n\t\t\t}\n\t\t\tcatch(BadInput ex)\n\t\t\t{\n\t\t\t\tview.showError(ex.getMessage());\n\t\t\t}\n\t\t\tcatch(AssertionError er)\n\t\t\t{\n\t\t\t\tview.showError(\"Operatia de EDIT a esuat!!!\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.enter_user_data, menu);\n return true;\n }",
"private static String loginMenu(){\n\t\tSystem.out.println(\"==================================\");\n\t\tSystem.out.println(\"Welcome to the Registration System\");\n\t\tSystem.out.println(\"Please select from the following:\");\n\t\tSystem.out.println(\"1. Login\");\n\t\tSystem.out.println(\"2. Request Access\");\n\t\tSystem.out.println(\"3. Exit\");\n\t\tSystem.out.print(\"Enter the number of you request: \"); \n\t\tString selection = input.nextLine();\n\t\tSystem.out.println(\"\");\n\t\treturn selection;\n\t}",
"@Override\n public void onClick(View view) {\n\n if (l.getText().length()<1 && m.getText().length()<1 && n.getText().length()<1 && o.getText().length()<1 && p.getText().length()<1) {\n\n Toast toast3 = Toast.makeText(Main2Activity.this, \"Please Enter Valid Input\", Toast.LENGTH_LONG);\n toast3.show();\n\n }\n\n\n //If the content is correct returning back to the main screen\n else {\n startActivity(new Intent(Main2Activity.this, MainActivity.class));\n\n }\n\n }",
"private void show_input() {\n clear();\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"ادخل رقم البطاقة\");\n\n// Set up the input\n final EditText input = new EditText(this);\n// Specify the type of input expected; this, for example, sets the input as a password, and will mask the text\n input.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_TEXT_VARIATION_PASSWORD);\n builder.setView(input);\n\n// Set up the buttons\n builder.setPositiveButton(\"تم\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n String Customer_id = input.getText().toString();\n getMenuID_Card(getCardURL, Customer_id);\n Log.d(\"karrar\", \"getMenuID_Card func \" + Customer_id);\n session.setScanfor(\"0\");\n\n }\n });\n// builder.setNegativeButton(\"الغاء\", new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n// dialog.cancel();\n// }\n// });\n\n builder.show();\n }",
"public void AddressMenu() {\n\t\t\t\n\t\taddressMenu();\n\t\t\n\t\tScanner keyboard = new Scanner( System.in );\n\t\tString input = keyboard.nextLine().toLowerCase();\n\t\t\n\t\twhile(input != \"0\"){\n\t\t\t\n\t\t\t switch(input){\n\t case \"0\" : System.out.println(\"You close the App\"); \n\t \t\t\tSystem.exit(0);\n\t break;\n\t \n\t case \"c\": \n\t \n\t break;\n\t \n\t case \"r\" : \n\n\t \t\n\t \tbreak;\n\t case \"u\" : \n\t \t\n\t \tbreak;\n\t \n\t case \"d\" : \n\t \t try {\n\t\t\t\t\t\tnew IdentityJDBCDAO().delete(new Identity());\n\t\t\t\t\t} catch (IdentityDeleteException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\n\t\t\t\t\t}\n\t \tbreak;\n\t \t\n\t case \"3\" : mainMenuOption();\n\t \tbreak;\n\t \n\t default :\tSystem.out.println(\"Invalid selection\"); \n\t \t\t\tmainMenuOption();\n\t break;\t\n\t\t\t }\n\t\t break;\n\t\t}\n\t}",
"public void mainMenuOption() {\n\t\tScanner keyboard = new Scanner( System.in );\n\t\t\n\t\tfirstMenu();\n\t\t\n\t\tString input = keyboard.nextLine();\n\t\twhile(input != \"0\"){\n\t\t\t\n\t\t\t switch(input){\n\t case \"0\" : System.out.println(\"You close the App\"); \n\t \t\t\tSystem.exit(0);\n\t break;\n\t \n\t case \"1\" : IdentityMenu();\n\t break;\n\t \n\t case \"2\" : AddressMenu();\n\t \tbreak;\n\t \n\t default :\tSystem.out.println(\"Invalid selection\"); \n\t \t\t\tmainMenuOption();\n\t break;\t\n\t \n\t\t\t }\n\t\t break;\n\t\t}\n\t}",
"protected void validateAction() {\r\n\t\tthis.lblLoading.setVisible(true);\r\n\t\tThread longThread = new Thread(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tMajFicheClientCarteFidelite.this.newsletter = MajFicheClientCarteFidelite.this.valeurCaseNewsletter;\r\n\t\t\t\tif (checkfields()) {\r\n\t\t\t\t\tconfirmation();\r\n\t\t\t\t} else {\r\n\t\t\t\t\talerte();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tlongThread.start();\r\n\t}",
"public void addAlaCarteMenu() {\n\t\tboolean isRunning = true;\n\n\t\twhile (isRunning) {\n\t\t\tScanner scan = new Scanner(System.in);\n\t\t\tint menuTypeNo;\n\t\t\tString menuType = \" \";\n\t\t\t// When the user enters 1,2,3,4 - > The type gets automatically added.\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Please Enter Menu Type(-1 to Complete): \\n1 : Appetizers \\n2 : Main \\n3 : Sides \\n4 : Drinks\");\n\n\t\t\tmenuTypeNo = scan.nextInt();\n\t\t\t\n\t\t\tdo {\n\t\t\t\tif (menuTypeNo == -1) {\n\t\t\t\t\tisRunning = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (menuTypeNo == 1) {\n\t\t\t\t\tmenuType = \"Appetizers\";\n\t\t\t\t} else if (menuTypeNo == 2) {\n\t\t\t\t\tmenuType = \"Main\";\n\t\t\t\t} else if (menuTypeNo == 3) {\n\t\t\t\t\tmenuType = \"Sides\";\n\t\t\t\t} else if (menuTypeNo == 4) {\n\t\t\t\t\tmenuType = \"Drink\";\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Invalid Input, Try Again..\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tboolean idChecker = true;\n\t\t\t\t\n\t\t\t\t// Retrieve menuData to validate\n\t\t\t\tFile f = new File(\"menuData\");\n\n\t\t\t\tdo {\n\t\t\t\t\tif (f.isFile()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tFileInputStream fis = new FileInputStream(\"menuData\");\n\t\t\t\t\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\t\t\t\t\tmm.clear();\n\t\t\t\t\t\t\tmm = (ArrayList<AlacarteMenu>) ois.readObject();\n\t\t\t\t\t\t\tois.close();\n\t\t\t\t\t\t\tfis.close();\n\t\t\t\t\t\t} catch (IOException e) {\n\n\t\t\t\t\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\t\t\t\t\tSystem.out.format(\"| Menu ID | Description | Price | Type |%n\");\n\t\t\t\t\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\t\t\t\t\t//System.out.println(\"No menu items found!\");\n\t\t\t\t\t\t} catch (ClassNotFoundException c) {\n\t\t\t\t\t\t\tc.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.print(\"Please Enter Menu ID: \\nM\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (idChecker) {\n\t\t\t\t\t\t\tscan.nextLine();\n\t\t\t\t\t\t\tmenuID = \"M\" + scan.nextLine();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (!idChecker) {\n\t\t\t\t\t\t\tmenuID = \"M\" + scan.next();\n\t\t\t\t\t\t\tscan.nextLine();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (final AlacarteMenu amItem: mm) {\n\t\t\t\t\t\t\tif (amItem.getMenuName().equalsIgnoreCase(menuID)) {\n\t\t\t\t\t\t\t\tidChecker = false;\n\t\t\t\t\t\t\t\tSystem.out.println(\"Duplicated ID found!\");\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tidChecker = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (!f.isFile()) {\n\t\t\t\t\t\tSystem.out.print(\"Please Enter Menu ID: \\nM\");\n\t\t\t\t\t\t scan.nextLine(); \n\t\t\t\t\t\tmenuID = \"M\" + scan.nextLine();\n\t\t\t\t\t\tidChecker = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!idChecker);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Please Enter Menu Item Description: \");\n\t\t\t\tString menuDesc = scan.nextLine();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Please Enter Menu Item Price: \");\n\t\t\t\tdouble menuPrice = scan.nextDouble();\n\n\t\t\t\tAlacarteMenu aam = new AlacarteMenu(menuID, menuDesc, menuPrice, menuType);\n\t\t\t\tmm.add(aam);\n\n\t\t\t\ttry {\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(\"menuData\");\n\t\t\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t\t\t\toos.writeObject(mm);\n\t\t\t\t\toos.close();\n\t\t\t\t\tfos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println(\"Failed to add menu item.\");\n\t\t\t\t}\n\t\t\t} while (menuTypeNo > 5 && menuTypeNo != -1);\n\t\t}\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.custom_submit, menu);\n return true;\n }",
"private boolean validate() {\n if (category.equals(\"n/a\")) {\n AppUtils.displayToast(mContext, \"Please select category!!!\");\n return false;\n } else if (category.equals(AppUtils.CREATE_CATEGORY) && mCustomCategory.getText().toString().length() == 0) {\n AppUtils.displayToast(mContext, \"Please enter custom category name!!!\");\n return false;\n } else if (mTaskTile.getText().toString().length() == 0) {\n AppUtils.displayToast(mContext, \"Please enter task Title!!!\");\n return false;\n } else if (dueDate == 0) {\n AppUtils.displayToast(mContext, \"Please enter due date!!\");\n return false;\n } else if (mTaskContent.getText().toString().length() == 0) {\n AppUtils.displayToast(mContext, \"Please enter task content!!!\");\n return false;\n } else\n return true;\n\n\n }",
"private void validarid(ActionEvent evt) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"protected static int mainMenu() {\n System.out.println(\"Main Menu:\");\n System.out.println(\" 1 - Add a room\");\n System.out.println(\" 2 - Remove a room\");\n System.out.println(\" 3 - Schedule a room\");\n System.out.println(\" 4 - List Schedule\");\n System.out.println(\" 5 - List Rooms\");\n System.out.println(\" 6 - save Roomdetails\");\n System.out.println(\" 7 - save schedule\");\n System.out.println(\" 8 - save meeting\");\n System.out.println(\" 9 - import Roomdetails\");\n System.out.println(\" 10 -import schedule\");\n System.out.println(\" 11 -import meeting\");\n System.out.println(\"Enter your selection: \");\n\n return keyboard.nextInt();\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_fuel_input, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.web_formularia, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_student_article_requirement, menu);\n return true;\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\n\t\tMenuItem item=searchInMenu();\n\t\t\n\t\ttry\n\t\t{\n\t\t\trestaurant.deleteMenuItem(item);\n\t\t\tview.showError(\"Produsul \"+item.getName()+\" a fost sters cu succes!\");\n\t\t\tview.notVisible();\n\t\t\tViewAdminBp v=new ViewAdminBp(restaurant.getMenu());\n\t\t ControlAdminBp control=new ControlAdminBp(restaurant,v);\n\t\t\t\n\t\t}\n\t\tcatch(AssertionError er)\n\t\t{\n\t\t\tview.showError(\"Nu se poate realiza stergerea!!!\");\n\t\t}\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public void setDataValidation(String dataValidation);",
"void askMenu();",
"public void exibeMenuCadastroFuncionario() {\n updateData();\n setVisible(true);\n\n }",
"private void checkUserInput() {\n }",
"private void submenuCliente(){\n Scanner s = new Scanner(System.in);\n int opcao = 0;\n\n try{\n do{\n System.out.println(\"1 - Criar Conta\");\n System.out.println(\"2 - Já possui conta? Log In\");\n System.out.println(\"3 - Associar conta\");\n System.out.println(\"0 - Sair\");\n\n opcao = s.nextInt();\n System.out.print(\"\\n\");\n\n switch(opcao){\n case 1:\n registoCliente();\n break;\n case 2:\n loginCliente();\n break;\n case 3:\n associarContaCliente();\n break;\n case 0:\n break;\n\n default:\n System.out.println(\"Opção inválida\");\n break;\n }\n } while (opcao != 0);\n }\n catch(InputMismatchException e){\n System.out.println(\"Entrada inválida\");\n menuInicial();\n\n }\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_submit, menu);\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.mysettings) {\n return true;\n }\n\n if (id == R.id.oursearch) {\n arr = new ArrayList<>();\n arr.add(e1.getText().toString());\n arr.add(e2.getText().toString());\n arr.add(e3.getText().toString());\n arr.add(e4.getText().toString());\n arr.add(e5.getText().toString());\n arr.add(e6.getText().toString());\n arr.add(e7.getText().toString());\n arr.add(e8.getText().toString());\n\n if(arr.get(0).isEmpty()) {\n Toast.makeText(SFR_Overview.this, \"Site Name is empty\", Toast.LENGTH_LONG).show();\n edit1.setText(text1.getText().toString());\n }\n else{\n if(create){\n String itsname2 = arr.get(0);\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String strDate = sdf.format(new Date());\n boolean a = data.insertData(arr,strDate, \"1\", \"0\", \"0\");\n if (a)\n Toast.makeText(SFR_Overview.this, \"Site added Successfully\", Toast.LENGTH_LONG).show();\n else Toast.makeText(SFR_Overview.this, \"Failed\", Toast.LENGTH_LONG).show();\n create = false;\n menu.getItem(0).setVisible(true);\n }\n else{\n if((OptionNames.size()!=0)&&(alg!=-1)){\n OptionNames.set(alg, edit9.getText().toString());\n OptionTown.set(alg, edit10.getText().toString());\n OptionCounty.set(alg, edit11.getText().toString());\n OptionHeight.set(alg, edit12.getText().toString());\n OptionPostCode.set(alg, edit13.getText().toString());}\n for(int i=0; i<OptionNames.size(); i++){\n data.updateOption(OptionID.get(i), OptionNames.get(i), OptionTown.get(i), OptionCounty.get(i), OptionPostCode.get(i), OptionHeight.get(i));\n }\n if(alg==-1) alg=0;\n\n boolean a = data.updateDatabase(idName, returnText(edit1), returnText(edit2), returnText(edit3), returnText(edit4), returnText(edit5), returnText(edit6), returnText(edit7), returnText(edit8));\n if (a){\n Toast.makeText(SFR_Overview.this, \"Site updated Successfully\", Toast.LENGTH_LONG).show();\n data.setEditedSite(idName);\n data.setEditedOptions(idName);\n\n }\n else Toast.makeText(SFR_Overview.this, \"Failed\", Toast.LENGTH_LONG).show();\n\n\n }\n\n\n changeEditToText(edits, texts, textLayouts, editLayouts);\n /*editLayout1.setVisibility(View.INVISIBLE);\n textLayout1.setVisibility(View.VISIBLE);\n text1.setText(edit1.getText());*/\n\n {\n menu.getItem(1).setVisible(false);\n menu.getItem(2).setVisible(true);\n //startActivity(new Intent(SFR_Overview.this, MySFR.class));\n }\n TitleSite.setText(text1.getText().toString());}\n }\n\n if (id == R.id.eidtPencil) {\n changeTextToEdit(texts, edits, editLayouts, textLayouts);\n menu.getItem(2).setVisible(false);\n menu.getItem(1).setVisible(true);\n }\n\n if(id == R.id.addOpt){\n Intent intent = getIntent();\n overridePendingTransition(0, 0);\n intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\n finish();\n overridePendingTransition(0, 0);\n if(idName==null){\n Cursor cursor = data.getThisID();\n if(cursor.getCount()>0){\n cursor.moveToNext();}\n idName=cursor.getString(0);\n }\n data.insertAnOption(idName, null, \"1\");\n intent.putExtra(\"The id\", idName);\n intent.putExtra(\"From Option\", true);\n intent.putExtra(\"User\", userName);\n\n startActivity(intent);\n\n }\n\n return super.onOptionsItemSelected(item);\n }",
"public void run() \n\t\t{\n\t\t\tboolean exitMenu = false;\n\t\t\tdo \n\t\t\t{\t\t\t\t\t\n\t\t\t\tmenu.display();\n\t\t\t\tint choice = menu.getUserSelection();\n\t\t\t\t// the above method call will return 0 if the user did not\n\t\t\t\t// entered a valid selection in the opportunities given...\n\t\t\t\t// Otherwise, it is valid...\n\t\t\t\tif (choice == 0)\n\t\t\t\t{\n\t\t\t\t\t// here the user can be informed that fail to enter a\n\t\t\t\t\t// valid input after all the opportunities given....\n\t\t\t\t\t// for the moment, just exit....\n\t\t\t\t\texitMenu = true;\n\t\t\t\t}\n\t\t\t\telse if (choice == 1) \n\t\t\t\t{\n\t\t\t\t\t// here goes your code to initiate action associated to\n\t\t\t\t\t// menu option 1....\n\t\t\t\t\tProjectUtils.operationsOnNumbers();\n\t\t\t\t}\n\t\t\t\telse if (choice == 2)\n\t\t\t\t{\n\t\t\t\t\tProjectUtils.operationsOnStrings();\n\t\t\t\t}\n\t\t\t\telse if (choice == 3) \n\t\t\t\t{\n\t\t\t\t\tProjectUtils.showStatistics();\n\t\t\t\t}\n\t\t\t\telse if (choice == 4)\n\t\t\t\t{\n\t\t\t\t\texitMenu = true; \n\t\t\t\t\tProjectUtils.println(\"Exiting now... \\nGoodbye!\");\n\t\t\t\t}\n\t\t\t} while (!exitMenu);\n\t\t}",
"private String printMainMenu() {\n System.out.println(\"Please make a selection:\");\n System.out.println(\"1: List all tools\");\n System.out.println(\"2: Search for tool by toolName\");\n System.out.println(\"3: Search for tool by toolID\");\n System.out.println(\"4: Check item quantity\");\n System.out.println(\"5: Decrease item quantity\");\n System.out.println(\"6: Make New Order/Append Today's Order\");\n System.out.println(\"7: View Current Orders\");\n System.out.println(\"8: View Supplier List\");\n System.out.println(\"9: Quit\");\n String selection = this.userInput.nextLine();\n return selection;\n }",
"private int insertEditMenuAnswer()\n {\n boolean valid = false;\n String choice = \"\";\n Scanner content = new Scanner(System.in);\n \n while (!valid)\n {\n menu.editOptions();\n choice = content.nextLine().trim();\n valid = validation.integerValidation(choice, 1, 4);\n }\n \n int ans = Integer.parseInt(choice);\n \n return ans;\n }",
"private static void returnMenu() {\n\t\t\r\n\t}",
"protected boolean okData() {\n \t\tString name2 = name.getText().trim();\n \t\tString phone2 = phone.getText().trim();\n \t\tString adress2 = adress.getText().trim();\n \t\tboolean enterpriseButton = enterpriseCustomer.isSelected();\n \t\tboolean privateButton = privateCustomer.isSelected();\n \t if (name2.equals(\"\") || phone2.equals(\"\") || adress2.equals(\"\") || (!enterpriseButton && !privateButton)) {\n \t \tif (name2.equals(\"\")) {\n \t \t\tshowMessageDialog(CustomerRegistration.this, \"You have to input a customer name!\");\n \t \t\tname.requestFocusInWindow();\n \t \t} else if(phone2.equals(\"\")) {\n \t \t\tshowMessageDialog(CustomerRegistration.this, \"You have to input a phone number!\");\n \t \t\tphone.requestFocusInWindow();\n \t \t} else if(adress2.equals(\"\")) {\n \t \t\tshowMessageDialog(CustomerRegistration.this, \"You have to input an adress!\");\n \t \t\tadress.requestFocusInWindow();\n \t \t} else if(!enterpriseButton && !privateButton) {\n \t \t\tshowMessageDialog(CustomerRegistration.this, \"You have to choose a customer type!\");\n \t \t\tprivateCustomer.requestFocusInWindow();\n \t \t}\n \t \treturn false;\n \t } else {\n \t \treturn true;\n \t }\n \t}",
"public void loginMenu()\n\t{\n\t\tboolean flag = true; //Boolean set for the while loop to keep looping until the user makes the correct choice\n\t\tSystem.out.printf(\"\\n%-1s %s\\n\", \"\", \"Company Login\");\n\t\tSystem.out.printf(\"%s\\n\",\"---------------------------\");\n\t\tSystem.out.printf(\"%-3s %-2s %s\\n\", \"\", \"1.\", \"Login\");\n\t\tSystem.out.printf(\"%-3s %-2s %s\\n\", \"\", \"2.\", \"Register\");\n\t\tSystem.out.printf(\"%-3s %-2s %s\\n\", \"\", \"3.\", \"Exit\");\n\t\tScanner userInput = new Scanner(System.in);\n\t\twhile(flag)\n\t\t{\t\n\t\t\tSystem.out.printf(\"%s\\n%s\", \"Please chose a option between 1 and 2\", \"user> \");\n\t\t\t/*\n\t\t\t * Try catch checks the user input, throws an error if the incorrect data type is entered\n\t\t\t */\n\t\t\ttry\n\t\t\t{\n\t\t\t\tint choice = Integer.parseInt(userInput.nextLine());\n\t\t\t\tswitch(choice)\n\t\t\t\t{\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tlogin();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\t//Todo\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tSystem.out.println(\"option not available, please choose again\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(NumberFormatException ex)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Invlid input, please enter your choice again\");\n\t\t\t}\n\t\t}\n\t\tuserInput.close();\n\t}",
"protected String validateContents (Component component, Object o) \r\n { \r\n if (advancedBox.isSelected())\r\n {\r\n if (getWizardData(\"blacksaved\") == \"false\")\r\n {\r\n return \"You must save the black list before continuing... \";\r\n }\r\n }\r\n return null;\r\n }",
"public void mainMenu()\n {\n\n System.out.println('\\u000C'); //clears screen\n System.out.println(\"<------------- Press 0 to return.\");\n System.out.println();\n System.out.println();\n System.out.println(\"\\t\\tTeacher Menu\");\n System.out.println(\"\\t1. View Names\");\n System.out.println(\"\\t2. Change Name\");\n System.out.println(\"\\t3. Add Teacher\");\n input = in.nextInt();\n in.nextLine();\n\n switch(input)\n {\n case 0: //call main menu -- create instance of menu class here to pass in current state of arraylist\n returnTo = new StartMenu(teachers);\n returnTo.enterId(teachers);\n break;\n\n case 1: //view names -- a subclass class that extends StudentMenu \n //temporary method that will view all names\n viewNames();\n break;\n\n case 2: //change names\n changeName();\n break;\n\n case 3: //change grade\n addNewPerson();\n break;\n\n } //ends switch statement\n\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.informacion_herramienta, menu);\n\t\treturn true;\n\t}",
"interface URLEntryFieldListener {\n\n /**\n * A method to be called when the user has pressed the enter key indicating they wish to navigate to the URL they've\n * entered. Called only after URL verification is complete, so the url object is factually known to be a\n * genuine (by schema at least) URL that we can try to navigate to.\n */\n void urlFieldEnterKeyPressed();\n\n\n}",
"public void chooseRulesClick(){\n String rules = (String)chooseRulesBox.getValue();\n try{\n gOL.setRuleString(rules);\n }catch (RulesFormatException rfee) {\n PopUpAlerts.ruleAlert2();\n }\n ruleLabel.setText(gOL.getRuleString().toUpperCase());\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_commonone, menu);\n MenuItem item3 = menu.findItem(R.id.messager);\n MenuItem item4 = menu.findItem(R.id.search);\n item3.setIcon(R.drawable.openmessage);\n item4.setIcon(R.drawable.search);\n try{\n if (loggedIn.equals(\"noValue\")) {\n\n\n item3.setVisible(false);\n\n } else {\n\n item3.setVisible(true);\n\n }}\n catch (Exception e){\n\n }\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.edit_student_menu, menu);\n return true;\n }",
"private void okAction()\r\n\t{\r\n\t\tString navn = txfInput[0].getText().trim();\r\n\r\n\t\tint telefonNr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\ttelefonNr = Integer.parseInt(txfInput[1].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString vej = txfInput[2].getText().trim();\r\n\r\n\t\tint nr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tnr = Integer.parseInt(txfInput[3].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString etage = txfInput[4].getText().trim();\r\n\r\n\t\tint postNr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tpostNr = Integer.parseInt(txfInput[5].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString by = txfInput[6].getText().trim();\r\n\t\tString land = txfInput[7].getText().trim();\r\n\r\n\t\tif (navn.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Navn er tom\");\r\n\t\t\treturn;\r\n\t\t} else if (telefonNr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Telefon nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\telse if (vej.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Vej er tom\");\r\n\t\t\treturn;\r\n\t\t} else if (nr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (postNr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Post Nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (by.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"By er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (land.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Land er tom\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tFirma firma = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tfirma = lvwFirmaer.getSelectionModel().getSelectedItem();\r\n\t\t} catch (NullPointerException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\r\n\t\tLedsager ledsager = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tledsager = lvwLedsagere.getSelectionModel().getSelectedItem();\r\n\t\t} catch (NullPointerException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\t\t\r\n\r\n\t\tif (deltager != null)\r\n\t\t{\r\n\t\t\tService.updateDeltager(deltager, firma, ledsager, navn, telefonNr, null, vej, nr, etage, postNr, by, land);\r\n\t\t} else\r\n\t\t{\r\n\t\t\tService.createDeltager(navn, telefonNr, null, vej, nr, etage, postNr, by, land);\r\n\t\t}\r\n\r\n\t\tthis.hide();\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu_hsa_registration_form, menu);\n\t\treturn true;\n\t}",
"public void registerLoginMenu() {\n System.out.println(\"Do you want to Login or Register?\");\n System.out.println(\"(Enter the number without parenthesis to choose an option)\");\n System.out.println(\"Enter (1) Login, (2) Register\");\n }",
"abstract void menu(User theUser);",
"public void getAccess() {\n\t\t// Display menu options\n\t\tSystem.out.println(\n\t\t\t\"\\nWelcome to PittTours are you a:\" +\n\t\t\t\"\\n1: Administrator\" +\n\t\t\t\"\\n2: Customer\" +\n\t\t\t\"\\n3: Neither, Quit\\n\");\n\n\t\t// Get user input\n\t\tSystem.out.print(\"Enter menu choice: \");\n\t\tinputString = scan.nextLine();\n\t\t// Convert input to integer, if not convertable, set to 0 (invalid)\n\t\ttry { choice = Integer.parseInt(inputString);\n\t\t} catch(NumberFormatException e) {choice = 0;}\n\n\t\t// Handle user choices\n\t\tif(choice == 1)\n\t\t\tdisplayAdmInterface();\n\t\telse if(choice == 2)\n\t\t\tdisplayCusInterface();\n\t\telse if(choice == 3) {} // Simply drops back to main to properly exit\n\t\telse { // If invalid choice, recall method\n\t\t\tSystem.out.println(\"INVALID CHOICE\");\n\t\t\tgetAccess();\n\t\t}\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\tIntent i= new Intent(\"com.speed_alert.Password\");\r\n\t\tstartActivity(i);\r\n\t\treturn false;\r\n\t}",
"public static int getMenuOption() {\n\t Scanner input = new Scanner(System.in);\t// Create a Scanner object\r\n\t \r\n\t boolean invalid = true; \r\n\t int choice = 0;\r\n\t while(invalid){\r\n\t System.out.println(\"Menu\\n1. Add\\n2. Subtract\\n3. Multiply\\n4. Divide\\n5. Clear\\n6. Quit\"); // Prints out menu of options\r\n\t System.out.print(\"What would you like to do? \");\r\n\t choice = input.nextInt();\r\n\t invalid = (choice >= 1 && choice <=6) ? false : true; // checks if choice is valid\r\n\t if (invalid){\r\n\t System.out.println(\"I'm sorry, \" + choice + \" wasn't one of the options\\n\");\r\n\t }\r\n\r\n\t }\r\n\t return choice;\r\n\t }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.out.println(\"am in Validate click\");\n\t\t\t\t\n\t\t\t\tString u=user.getText();\n\t\t\t\n\t\t\t\tString p=pwd.getText();\n\t\t\t\tif(u.equals(\"seed\")&&p.equals(\"infotech\"))\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"You are a Valid user\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"You are a InValid user\");\n\t\t\t\n\t\t\t\t\n\t\t\t}",
"private int insertSearchMenuAnswer()\n {\n boolean valid = false;\n String answer = \"\";\n Scanner content = new Scanner(System.in);\n \n while (!valid)\n {\n menu.searchOptions();\n answer = content.nextLine().trim();\n valid = validation.integerValidation(answer, 1, 3);\n }\n \n int ans = Integer.parseInt(answer);\n return ans;\n }",
"@Override\r\n\tprotected void validateData(ActionMapping arg0, HttpServletRequest arg1) {\n\t\t\r\n\t}",
"public static int mainMenuInput(){\n System.out.println(mainMenu);\n String input = sc.nextLine();\n String[] valid = {\"1\",\"2\",\"3\"};\n if(Arrays.asList(valid).contains(input)){\n return Integer.parseInt(input);\n } else {\n return -1;\n }\n }",
"int promptOption(IMenu menu);",
"private static void mainMenuLogic() {\n\n\t\twhile(true) {\n\n\t\t\tmenuHandler.clrscr();\n\t\t\tint maxChoice = menuHandler.mainMenu();\n\n\t\t\tint userChoice = menuHandler.intRangeInput(\"Please input a number in range [1, \" + maxChoice + \"]\", 1, maxChoice);\n\n\t\t\tswitch(userChoice) {\n\t\t\tcase 1:\n\t\t\t\t// User menu\n\t\t\t\tuserMenuLogic();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t// Printer menu\n\t\t\t\tprinterMenuLogic();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t// Network menu\n\t\t\t\tnetworkMenuLogic();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tSystem.exit(0);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\n\t\t\tString name=\"\";\n\t\t\tname=view.getNameTF().getText();\n\t\t\tString price=\"\";\n\t\t\tprice=view.getPriceTF().getText();\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(name.equals(\"\") ||price.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tthrow new BadInput(\"Nu au fost completate toate casutele pentru a se putea realiza CREATE!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble p=Double.parseDouble(price);\n\t\t\t\t\n\t\t\t\tMenuItem nou=new BaseProduct(name,p);\n\t\t\t\t\n\t\t\t\trestaurant.createMenuItem(nou);\n\t\t\t\tview.updateList(name);\n\t\t\t\t\n\t\t\t}catch(NumberFormatException ex)\n\t\t\t{\n\t\t\t\tview.showError(\"Nu s-a introdus o valoare valida pentru pret!\");\n\t\t\t}\n\t\t\tcatch(BadInput ex)\n\t\t\t{\n\t\t\t\tview.showError(ex.getMessage());\n\t\t\t}\n\t\t\tcatch(AssertionError er)\n\t\t\t{\n\t\t\t\tview.showError(\"Nu se poate adauga produsul deoarece acesta EXISTA deja!!!\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}",
"public void ValidarLetra() {\n\t\t\n\t\tString valorCampo = \"\";\n\t\t\n\t\tif (campo == 1) {\n\t\t\t\n\t\t\tvalorCampo = textCampo1.getText();\n\t\t}\n\t\telse if (campo == 2) {\n\t\t\t\n\t\t\t valorCampo = textCampo2.getText();\n\t\t}\n\t\t\n\t\telse if (campo == 3) {\n\t\t\t\n\t\t\tvalorCampo = textCampo3.getText();\n\t\t}\n\t\t\n\t\telse if (campo == 4) {\n\t\t\t\n\t\t\tvalorCampo = textCampo4.getText();\n\t\t}\n\t\t\n\t\telse if (campo == 5) {\n\t\t\t\n\t\t\tvalorCampo = textCampo5.getText();\n\t\t}\n\n\t\telse if (campo == 6) {\n\t\t\t\n\t\t\tvalorCampo = textCampo6.getText();\n\t\t}\n\t\t\n\t\telse if (campo == 7) {\n\t\t\t\n\t\t\tvalorCampo = textCampo7.getText();\n\t\t}\n\t\t\n\t\telse if (campo == 8) {\n\t\t\t\n\t\t\tvalorCampo = textCampo8.getText();\n\t\t}\n\t\t\n\t\telse if (campo == 9) {\n\t\t\t\n\t\t\tvalorCampo = textCampo9.getText();\n\t\t}\n\t\t\n\t\telse if (campo == 10) {\n\t\t\t\n\t\t\tvalorCampo = textCampo10.getText();\n\t\t}\n\n\t\t \n\t\tboolean existe = palabra.contains(valorCampo);\n\t\t \n\t\t System.out.println(\" \"+existe);\n\n\n\t\t\n\t\t\n\t\tSystem.out.println(\"probando campo \"+campo);\n\t\t\n\t\t/*campo = 0;*/\n\t\t\n\t\t//System.out.println(\" inicializa \"+campo);\n\n\t}",
"public void updateMenuData(){\n if(datasetTable == null)\n return;\n boolean canEdit = dataset.getRight() == DataConstants.EXECUTIVE_RIGHT;\n if(menuItemSave != null)\n menuItemSave.setEnabled(canEdit);\n this.menuItemInsert.setEnabled(canEdit && datasetTable.canInsert());\n getMenuItemSuppr().setEnabled(canEdit &&datasetTable.canSuppr());\n getMenuItemTextLeft().setEnabled(canEdit &&datasetTable.canAlignText());\n getMenuItemTextCenter().setEnabled(canEdit &&datasetTable.canAlignText());\n getMenuItemTextRight().setEnabled(canEdit &&datasetTable.canAlignText());\n getMenuItemCopy().setEnabled(canEdit &&datasetTable.canCopy());\n getMenuItemPaste().setEnabled(canEdit &&datasetTable.canPaste());\n getMenuItemCut().setEnabled(canEdit &&datasetTable.canCut());\n getMenuItemSort().setEnabled(datasetTable.canSort());\n this.menuItemIgnore.setEnabled(canEdit &&datasetTable.canIgnore());\n if(isAllSelectionIgnore()){\n this.menuItemIgnore.setItemIcon(getCopexImage(\"Bouton-AdT-28_ignore_push.png\"));\n this.menuItemIgnore.setItemRolloverIcon(getCopexImage(\"Bouton-AdT-28_ignore_surcli.png\"));\n }else{\n this.menuItemIgnore.setItemIcon(getCopexImage(\"Bouton-AdT-28_ignore.png\"));\n this.menuItemIgnore.setItemRolloverIcon(getCopexImage(\"Bouton-AdT-28_ignore_sur.png\"));\n }\n getMenuItemUndo().setEnabled(canEdit &&datasetTable.canUndo());\n getMenuItemRedo().setEnabled(canEdit &&datasetTable.canRedo());\n boolean canOp = datasetTable.canOperations();\n this.menuItemSum.setEnabled(canEdit &&canOp);\n this.menuItemAvg.setEnabled(canEdit &&canOp);\n this.menuItemMin.setEnabled(canEdit &&canOp);\n this.menuItemMax.setEnabled(canEdit &&canOp);\n //boolean isData = isData() && dataset.getListDataHeaderDouble(true).length > 0;\n boolean isData = dataset.getListDataHeaderDouble(true).length > 0;\n this.menuItemAddGraph.setEnabled(canEdit &&isData);\n if(menuItemPrint != null)\n this.menuItemPrint.setEnabled(dataset != null);\n repaint();\n }",
"public void chooseRole()\n {\n Scanner answer = new Scanner(System.in);\n boolean valid = false;\n String role = \"\";\n \n while(!valid)\n {\n menu.displayRoles();\n role = answer.nextLine().trim();\n valid = validation.integerValidation(role, 1, 3);\n }\n \n if(role.equals(\"3\"))\n home();\n else\n createUser(role);\n }",
"public static void menu(Connection connection) throws SQLException {\r\n\r\n //scanner to get menu number from the user\r\n Scanner scan = new Scanner(System.in);\r\n System.out.println(\"TOY STORE DATABASE MENU:\\n1) Enter new toy\\n2) Update toy information\\n3) Delete item from stock\\n4) Search Database\\n5) Print Inventory\\n0) Exit\");\r\n String opt = scan.nextLine();\r\n\r\n\r\n //switch and cases for the menu 0 is exit, the others are sent to other methods (add/update/delete/search/print)\r\n switch (opt) {\r\n case \"0\":\r\n //the program remains running until user escapes from main menu\r\n System.exit(0);\r\n break;\r\n case \"1\":\r\n add(connection);\r\n break;\r\n case \"2\":\r\n update(connection);\r\n break;\r\n case \"3\":\r\n delete(connection);\r\n break;\r\n case \"4\":\r\n search(connection);\r\n break;\r\n case \"5\":\r\n Statement statement = connection.createStatement();\r\n printAllFromTable(statement, connection);\r\n break;\r\n // if the user enters an invalid menu number then the error message is displayed and the menu is repeated\r\n default:\r\n System.out.println(\"Error!!!!! Please enter a valid option from the menu (0-5)\\n\\n\");\r\n menu(connection);\r\n break;\r\n\r\n }\r\n scan.close();\r\n }",
"private static void menu() {\n\t\tboolean finished = false;\n\t\tdo {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"If you would like to view a current the movies on the movie list, please type \\\"all\\\" \\nIf you would like to see a list of the initial possible categories, please type \\\"categories\\\" \\n\\nTo search for films by category, please type the category, now\\nTo exit the program, just type \\\"no\\\"\");\n\t\t\tString menAns = read.nextLine();\n\t\t\tif (menAns.equalsIgnoreCase(\"all\")) {\n\t\t\t\tlistFormat();\n\t\t\t} else if (menAns.equalsIgnoreCase(\"categories\") || menAns.equalsIgnoreCase(\"cats\")) {\n\t\t\t\tcatList();\n\t\t\t} else if (menAns.equalsIgnoreCase(\"no\")) {\n\t\t\t\tfinished = true;\n\t\t\t} else {\n\t\t\t\tseachCats(menAns);\n\t\t\t}\n\t\t} while (!finished);\n\n\t}"
] | [
"0.6069344",
"0.6015227",
"0.59557366",
"0.5911351",
"0.59009343",
"0.57780266",
"0.5764749",
"0.5738395",
"0.57278347",
"0.5724399",
"0.56873226",
"0.5685511",
"0.5669473",
"0.5663888",
"0.559466",
"0.5550061",
"0.5549745",
"0.5534533",
"0.5520189",
"0.5501802",
"0.545948",
"0.54592544",
"0.5455891",
"0.5437828",
"0.5436841",
"0.54322547",
"0.54281014",
"0.5427415",
"0.5398366",
"0.539438",
"0.5375349",
"0.5358836",
"0.5357398",
"0.53504634",
"0.5343419",
"0.5337785",
"0.532476",
"0.53234214",
"0.53114355",
"0.53060204",
"0.5303279",
"0.52830327",
"0.52824444",
"0.5277864",
"0.52708596",
"0.5264627",
"0.52625394",
"0.52596515",
"0.5251541",
"0.52501595",
"0.524328",
"0.52402675",
"0.5237222",
"0.5233939",
"0.5232979",
"0.5229046",
"0.522534",
"0.5224579",
"0.5222895",
"0.5217859",
"0.5216161",
"0.52114487",
"0.520527",
"0.5199997",
"0.5198992",
"0.5195943",
"0.51932764",
"0.5183422",
"0.5180505",
"0.5175272",
"0.5172952",
"0.516538",
"0.51639736",
"0.51597184",
"0.51527333",
"0.51345485",
"0.5131591",
"0.5131231",
"0.51294273",
"0.512632",
"0.5123626",
"0.51230276",
"0.5120901",
"0.5111671",
"0.5110762",
"0.5107488",
"0.51059926",
"0.5102727",
"0.5101781",
"0.51004344",
"0.509907",
"0.5098873",
"0.5098521",
"0.5094023",
"0.5090911",
"0.5090773",
"0.50903034",
"0.50900793",
"0.5087134",
"0.50864553",
"0.5082303"
] | 0.0 | -1 |
add football club method | private static void addFootballClub(){
Scanner scanner = new Scanner(System.in);
boolean exit = false; // this is for exit from do-while loop
String clubType = null;
String inputClub;
/*getting inputs and validating */
do {
System.out.println("Please enter S to add School Football Club");
System.out.println("Please enter U to add University Football club");
System.out.print("Please enter your choice: ");
inputClub = scanner.nextLine();
if (inputClub.matches("^[(S|s)|(U|u)]$")){ // checks the user input using regx
clubType = inputClub;
}else{
System.out.println("Invalid Input! Try Again..");
}
}while (!inputClub.matches("^[(S|s)|(U|u)]$"));
String clubName;
String fClubName = null;
do {
System.out.print("Please enter Club Name: ");
clubName = scanner.nextLine();
if (clubName.matches("^[a-zA-Z .']+$")){
fClubName = clubName;
}else{
System.out.println("Invalid format! Try again..");
}
}while (!clubName.matches("^[a-zA-Z .']+$"));
String number;
String fANumber = null;
System.out.println("Please enter Club's Address");
do {
System.out.print("Please enter Number: ");
number = scanner.nextLine();
if (number.matches("^\\d+(\\/)?[A-Za-z]?$")){
fANumber = number;
}else{
System.out.println("Invalid Format! Try again.. (ex: 12 | 12/a)");
}
}while (!number.matches("^\\d+(\\/)?[A-Za-z]?$"));
String road;
String fARd = null;
do {
System.out.print("Please enter Road: ");
road = scanner.nextLine();
if (road.matches("^[a-zA-Z ,]+$")){
fARd = road;
}else{
System.out.println("Invalid Format! Try again..");
}
}while (!road.matches("^[a-zA-Z ,]+$"));
String town;
String fAT = null;
do {
System.out.print("Please enter Town: ");
town = scanner.nextLine();
if (town.matches("^[a-zA-Z ]+\\d{0,2}?$")){
fAT = town;
}else {
System.out.println("Invalid format! Try again..");
}
}while (!town.matches("^[a-zA-Z ]+\\d{0,2}?$"));
int fPc = 0;
String postalCode;
do {
System.out.print("Please enter Postal Code: ");
postalCode = scanner.nextLine();
if (postalCode.matches("^\\d{5}$")){
fPc = Integer.parseInt(postalCode);
}else{
System.out.println("Invalid format! try again..");
}
}while (!postalCode.matches("^\\d{5}$"));
String country;
String fCountry = null;
do {
System.out.print("Please enter Country: ");
country = scanner.nextLine();
if (country.matches("^[a-zA-Z ]+$")){
fCountry = country;
}else{
System.out.println("Invalid format! Try again..");
}
}while (!country.matches("^[a-zA-Z ]+$"));
String mName;
String fMName = null;
do {
System.out.print("Please enter School / Uni Name: ");
mName = scanner.nextLine();
if (mName.matches("^[a-zA-Z .']+$")){
fMName = mName;
}else{
System.out.println("Invalid format! Try again");
}
}while (!mName.matches("^[a-zA-Z .']+$"));
Address address = new Address(fANumber,fARd,fAT,fPc,fCountry);
// according to the user select, club added to the football clubs list
do {
switch (clubType){
case "S":
case "s":
FootballClub schoolFootballClub = new SchoolFootballClub(fMName,fClubName,address);
leagueManager.addFootballClub(schoolFootballClub);
exit = true;
break;
case "U":
case "u":
FootballClub universityFootballClub = new UniversityFootballClub(fMName,fClubName,address);
leagueManager.addFootballClub(universityFootballClub);
exit = true;
break;
default:
System.out.println("Invalid choice try again");
exit = false;
}
}while (!exit);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createNewFootballClub() {\n\n\n Scanner scan2 = new Scanner(System.in);\n\n System.out.print(\"Enter the club name : \");\n clubName = scan2.nextLine();\n System.out.print(\"Enter club location : \");\n clubLocation = scan2.nextLine();\n System.out.println(\"Enter Club Id : \");\n clubID = scan2.nextInt();\n\n //adding user data to the arraylist\n displayStatistics();\n footballClubArrayList.add(new FootballClub(clubName, clubLocation,clubID, date, numOfWins, numOfDraws, numOfDefeats, numOfGoalsScored, numOfGoalReceived, numOfPoints, numOfMatchesPlayed));\n\n //adding arraylist object to the file by fileoutput stream\n try {\n FileOutputStream fOutStr = new FileOutputStream(\"clubData.txt\");\n ObjectOutputStream objOutStr = new ObjectOutputStream(fOutStr);\n objOutStr.writeObject(footballClubArrayList);\n objOutStr.close();\n fOutStr.close();\n System.out.println(\"Club added Successfully\");\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n Sport Football = new Sport(\"Football\"); //Creating instance of Sport class (Creating football sport)\n Football RM = new Football(\"RealMadrid\"); //Creating instance of Football class (Creating football team)\n Football Monaco = new Football(\"Monaco\");//Creating instance of Football class (Creating football team)\n Football Barca = new Football(\"Barca\");//Creating instance of Football class (Creating football team)\n Football Liverpool = new Football(\"Liverpool\");//Creating instance of Football class (Creating football team)\n\n League<Football> footballLeague = new League<>(\"Football\"); //Creating arraylist with objects from Football class (Creating league)\n footballLeague.addTeamToLeague(RM); //adding team to league\n footballLeague.addTeamToLeague(Monaco);\n footballLeague.addTeamToLeague(Barca);\n footballLeague.addTeamToLeague(Liverpool);\n footballLeague.displayLeague(); //display all teams from football league\n\n System.out.println();\n\n Sport Hockey = new Sport(\"Hockey\"); //The same for hockey\n Hockey CB =new Hockey(\"Chicago Bulls\");\n Hockey CSKA =new Hockey(\"CSKA\");\n Hockey Sparta =new Hockey(\"Sparta\");\n Hockey RB =new Hockey(\"Red Bull\");\n Hockey GK =new Hockey(\"German Knights\");\n League<Hockey> hockeyLeague = new League<>(\"Hockey\");\n hockeyLeague.addTeamToLeague(CB);\n hockeyLeague.addTeamToLeague(CSKA);\n hockeyLeague.addTeamToLeague(Sparta);\n hockeyLeague.addTeamToLeague(RB);\n hockeyLeague.addTeamToLeague(GK);\n hockeyLeague.displayLeague();\n }",
"public void newTeam(Team team);",
"public void addClubSelector() {\n\n if (clubSelectorTour == null) {\n clubSelectorTour = calendarMenu.addItem(\"Set Club\", command -> {\n\n Window window = new Window(\"Select Club for Calendar Events\");\n window.setWidth(\"400px\");\n window.setHeight(\"200px\");\n getUI().addWindow(window);\n window.center();\n window.setModal(true);\n C<Club> cs = new C<>(Club.class);\n ComboBox clubs = new ComboBox(\"Club\", cs.c());\n clubs.setItemCaptionMode(ItemCaptionMode.ITEM);\n clubs.setNullSelectionAllowed(false);\n\n clubs.setFilteringMode(FilteringMode.CONTAINS);\n Button done = new Button(\"Done\");\n done.addClickListener(listener -> {\n window.close();\n Object id = clubs.getValue();\n if (id != null) {\n calendar.filterEventOwnerId(id);\n setClubName(id);\n calendar.markAsDirty();\n }\n });\n\n EVerticalLayout l = new EVerticalLayout(clubs, done);\n\n window.setContent(l);\n });\n }\n }",
"public SchoolFootballClub(String clubName, String clubLocation, int numberOfPlayers, int yearEstablished, \n\t\tint clubWins, int clubDraws, int clubDefeats, int goalsScored, int goalsReceived, String schoolName) {\n\t\tsuper(clubName, clubLocation, numberOfPlayers, yearEstablished, clubWins, clubDraws, clubDefeats, goalsScored, goalsReceived);\n\t\tthis.schoolName = schoolName;\n\t}",
"private void addClubEvent (ClubEvent clubEvent) {\n position = clubEventList.add (position.getClubEvent());\n if (position.hasValidIndex (clubEventList)) {\n writer.save(eventsFile, clubEvent, true, false);\n positionAndDisplay();\n }\n }",
"public footBall_club(String s, String s1, int f_wins, int f_draws, int f_defeat, int f_gScored, int f_gReceived, double f_numOfPoints, int f_numOfMatchesPayed){\n super();\n this.f_wins = f_wins;\n this.f_draws = f_draws;\n this.f_defeat = f_defeat;\n this.f_gScored = f_gScored;\n this.f_gReceived = f_gReceived;\n this.f_numOfPoints = f_numOfPoints;\n this.f_numOfMatchesPayed = f_numOfMatchesPayed;\n\n }",
"public void addToList() {\n loadClubList();\n\n Intent intent = getIntent();\n String name = intent.getStringExtra(AddClub.NAME);\n String description = intent.getStringExtra(AddClub.DESCRIPTION);\n int image = intent.getIntExtra(AddClub.IMAGE, 0);\n\n if (name != null & description != null & image != 0) {\n clubList.add(new Club(name, description, image));\n }\n\n saveClubList();\n }",
"protected abstract void gatherTeam();",
"public void addPlayer(HeroClass newJob){job.add(newJob);}",
"public void addingPlayedMatch() throws IOException {\n\n displayStatistics();\n Scanner scn = new Scanner(System.in);\n System.out.println(\"Enter date (dd.mm.yyyy): \");\n String scanned = scn.nextLine();\n Date date;\n try {\n date = new SimpleDateFormat(\"dd.mm.yyyy\").parse(scanned);\n } catch (ParseException ex) {\n System.out.println(\"date should in this format!!! >> mm-dd-yyyy\");\n return;\n }\n System.out.println(\"Enter Team 1: \");\n scanned = scn.nextLine();\n FootballClub team1 = null;\n for (FootballClub club : footballClubArrayList) {\n if (club.getClubName().equals(scanned))\n team1 = club;\n }\n if (team1 == null) {\n System.out.println(\"Wrong club name!!!\");\n return;\n }\n System.out.println(\"Enter Team 2: \");\n scanned = scn.nextLine();\n FootballClub team2 = null;\n for (FootballClub club : footballClubArrayList) {\n if (club.getClubName().equals(scanned))\n team2 = club;\n }\n if (team2 == null) {\n System.out.println(\"Wrong club name!!!\");\n return;\n }\n\n System.out.println(\"Team 1 goals: \");\n scanned = scn.nextLine();\n int team1Goal = -1;\n try {\n team1Goal = Integer.parseInt(scanned);\n } catch (Exception e) {\n }\n if (team1Goal == -1) {\n System.out.println(\"Enter the number of goals\");\n return;\n }\n\n System.out.println(\"Team 2 goals: \");\n scanned = scn.nextLine();\n int team2Goal = -1;\n try {\n team2Goal = Integer.parseInt(scanned);\n } catch (Exception e) {\n }\n if (team2Goal == -1) {\n System.out.println(\"Enter the number of goals\");\n return;\n }\n\n\n Match match = new Match(date,team1,team2,team1Goal,team2Goal); //setting variables when user enter number of goals\n match.setDate(date);\n match.setTeam1(team1);\n match.setTeam2(team2);\n match.setTeam1Goal(team2Goal);\n match.setTeam2Goal(team1Goal);\n matchArrayList.add(match);\n team1.setNumOfGoalsScored(team1.getNumOfGoalsScored() + team1Goal);\n team2.setNumOfGoalsScored(team2.getNumOfGoalsScored() + team2Goal);\n team1.setNumOfGoalsReceived(team1.getNumOfGoalsReceived() + team2Goal);\n team2.setNumOfGoalsReceived(team2.getNumOfGoalsReceived() + team1Goal);\n team1.setNumOfMatchesPlayed(team1.getNumOfMatchesPlayed() + 1);\n team2.setNumOfMatchesPlayed(team2.getNumOfMatchesPlayed() + 1);\n\n if (team1Goal > team2Goal) {\n team1.setNumOfPoints(team1.getNumOfPoints() + 3);\n team1.setNumOfWins(team1.getNumOfWins() + 1);\n team2.setNumOfDefeats(team2.getNumOfDefeats() + 1);\n } else if (team1Goal < team2Goal) {\n team2.setNumOfPoints(team2.getNumOfPoints() + 3);\n team2.setNumOfWins(team2.getNumOfWins() + 1);\n team1.setNumOfDefeats(team1.getNumOfDefeats() + 1);\n } else {\n team1.setNumOfPoints(team1.getNumOfPoints() + 1);\n team2.setNumOfPoints(team2.getNumOfPoints() + 1);\n team1.setNumOfDraws(team1.getNumOfDraws() + 1);\n team2.setNumOfDraws(team2.getNumOfDraws() + 1);\n }\n\n FileOutputStream fis = new FileOutputStream(\"clubData.txt\");\n ObjectOutputStream oos = new ObjectOutputStream(fis);\n oos.writeObject(footballClubArrayList);\n oos.close();\n fis.close();\n\n displayStatistics();\n matchArrayList.add(new Match(date, team1, team2, team1Goal, team2Goal));\n\n\n try {\n FileOutputStream fileOut = new FileOutputStream(\"matchData.txt\");\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut);\n objectOut.writeObject(matchArrayList);\n objectOut.close();\n fileOut.close();\n System.out.println(\"Match added Successfully\");\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n\n }",
"public ArrayList<CollegeFootballTeam> addTeam(String name, String conf, int[] v)\r\n\t{\r\n\t\tCollegeFootballTeam newTeam = new CollegeFootballTeam(name,conf, v);\r\n\t\tnewTeam.setSumOfVotes();\r\n\t\t\r\n\t\tteams.add(newTeam);\r\n\t\r\n\t\treturn teams;\r\n\t}",
"public interface LeagueManager {\n\tpublic boolean deleteClub(String name);\n\n\tpublic void addTheClub(FootballClub club, String name, String location, int wins, int draws, int defeats,\n\t\t\tint goalsReceived, int defeatsScored, int points, int mathces);\n\n\tpublic void addTheClub(FootballClub club, String name, String location);\n\n\tpublic void showTheClubs();\n\n\tpublic void showTheClubs(String name);\n\n\tpublic void displayPremierLeague();\n\n\tpublic void updateScore(String name, int score);\n\n}",
"void addMyTeam(Team team) throws HasTeamAlreadyException;",
"Team createTeam();",
"public void addHero(Hero h) {\r\n if (team.size() < MAX_MEMBER_IN_A_TEAM) {\r\n team.add(h);\r\n }\r\n }",
"public SchoolFootballClub(String clubName, String clubLocation, int numberOfPlayers, int yearEstablished, String schoolName) {\n\t\tsuper(clubName, clubLocation, numberOfPlayers, yearEstablished);\n\t\tthis.schoolName = schoolName;\n\t}",
"void addPerson(Player player);",
"@Test\n public void testAddPlayer() {\n System.out.println(\"addPlayer\");\n Player player = new Player(\"New Player\");\n Team team = new Team();\n team.addPlayer(player);\n assertEquals(player, team.getPlayers().get(0));\n }",
"private void addTeam(String teamName, String prefix, String suffix) {\n String trimmedTeamName = trimString(teamName);\n\n // If the team already exists, skip adding it.\n if (teamExist(trimmedTeamName)) return;\n\n // Register the new team\n Team team = scoreboard.registerNewTeam(trimmedTeamName);\n\n // Set the prefix.\n if (prefix != null && !prefix.isEmpty()) {\n team.setPrefix(prefix);\n }\n\n // Set ths suffix.\n if (suffix != null && !suffix.isEmpty()) {\n team.setSuffix(suffix);\n }\n }",
"void addPlayer(Player newPlayer);",
"@Override\n\tpublic void sports() {\n\t\t\n\t}",
"public FightTeam team();",
"public void addOnePointToTeamB(View view)\n {\n scoreTeamB++;\n displayTeamBScore(scoreTeamB);\n }",
"void addEventPaddle(DefaultPlayer player, DefaultBall ball);",
"@Override\n public void playFootball() {\n System.out.println(this.name+ \" is \"+this.age+ \" years old and plays as Midfielder.\");\n System.out.println(\"The Midfielder controls the game by passing the ball to the forward players to score!\");\n }",
"public static void addThief() {\r\n playerTeam.clearDead();\r\n if (playerTeam.teamSize() >= 4) {\r\n updateMessage(\"Time cheio\");\r\n return;\r\n }\r\n\r\n Thief newMember = new Thief(getPersonName(), 0);\r\n playerTeam.addMember(newMember);\r\n\r\n updateMessage(\"Adiocionado Ladrao\" + newMember.getName());\r\n }",
"public String getClubname() {\n\t\treturn clubname;\r\n\t}",
"public ArrayList<CollegeFootballTeam> rankTeams();",
"public boolean addTeam(T team){\n if (teams.contains(team)){\n System.out.println(\"Cant add team is allready in the league list.\");\n return false;\n }else{\n teams.add(team);\n return true;\n }\n }",
"public void addThreePointsToTeamB(View view)\n {\n scoreTeamB = scoreTeamB + 3;\n displayTeamBScore(scoreTeamB);\n }",
"public static ArrayList<Match> generateMatch(String season){\n LeagueManager premierLeagueManagerService = PremierLeagueManager.getInstance();\n int numberOfClubsPresent = PremierLeagueManager.getPremierLeagueFootballClubList().size();\n\n // This condition is to make sure that there is at least 2 clubs to play a match\n if(numberOfClubsPresent > 1){\n\n // there 2 or more clubs present so we can generate a match\n // loading the data from the file\n PremierLeagueManager.loadingData();\n\n // getting the clubs with the filtered matches by season\n guiSeasonFilteredClubs = getGuiSeasonFilteredClubs(season);\n\n Random random = new Random();\n\n // step 01: randomly select 2 clubs\n int randomClub_01 = random.nextInt(guiSeasonFilteredClubs.size());\n FootballClub selectedClub_O1 = guiSeasonFilteredClubs.get(randomClub_01);\n int randomClub_02 = random.nextInt(guiSeasonFilteredClubs.size());\n\n // This is to make sure that the same club is not selected again for the match\n while (randomClub_02==randomClub_01){\n randomClub_02 = random.nextInt(guiSeasonFilteredClubs.size());\n }\n FootballClub selectedClub_O2 = guiSeasonFilteredClubs.get(randomClub_02);\n\n // step 02: randomly generate the necessary data\n int numberGoalScored_club_1 = random.nextInt(7);\n int numberGoalScored_club_2 = random.nextInt(7);\n\n // setting the random date and random season depending on the randomly selected year\n int[] possibleYears = new int[2];\n\n int seasonYear = Integer.parseInt(season.split(\"-\")[0]);\n\n possibleYears[0] = seasonYear;\n possibleYears[1] = seasonYear + 1;\n\n // making sure that the months are in given range for the year select for the season\n // premier league happens every year from August to next May\n int day = random.nextInt(30)+1;\n int randomYearIndexSelected = random.nextInt(2);\n int year = possibleYears[randomYearIndexSelected];\n int month;\n\n // if randomYearIndexSelected = 0, then the months have to be in the range from 8 to 12 else 1 to 5\n if(randomYearIndexSelected==0){\n // 8 to 12\n month = random.nextInt(5) + 8;\n\n }else{\n // 1 to 5\n month = random.nextInt(5) + 1;\n\n }\n\n DateMatch date = new DateMatch(day, month, year);\n String[] matchTypes = new String[]{\"Home\", \"Away\"};\n String matchType = matchTypes[random.nextInt(2)];\n\n // step 03: call the addPlayedMatch() wisely by passing all the generated random data\n premierLeagueManagerService.addPlayedMatch(season,selectedClub_O1.getName(), selectedClub_O2.getName(),\n numberGoalScored_club_1, numberGoalScored_club_2, date, matchType);\n\n // step 04: call the save file method\n premierLeagueManagerService.saveDataIntoFile();\n\n // step 05: call the load file method\n PremierLeagueManager.loadingData();\n\n // getting the clubs with the filtered matches by season\n guiSeasonFilteredClubs = getGuiSeasonFilteredClubs(season);\n\n // getting the matches for a season and returning\n return getMatchesForSeason(guiSeasonFilteredClubs);\n }\n // if there are less than 2 clubs we can't generate a match\n return null;\n }",
"private static void deleteFootballClub(){\n Scanner scanner = new Scanner(System.in);\n System.out.print(\"Please enter Club Name: \");\n String clubName = scanner.nextLine();\n leagueManager.deleteFootballClub(clubName);\n }",
"public void addBallToBoard(Ball ball){\n\t\tballs.add(ball);\n\t\tinhabitants.add((BoardObject) ball);\n\t}",
"void update(Team team);",
"@Test\n void testNextPlayerWhenPlayerHas2Clubs() {\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n \n ArrayList<Card> clubCards;\n clubCards = new ArrayList <Card>();\n\n for (Rank rank : Rank.values()) {\n clubCards.add(new Card(Suit.CLUBS, rank, true));\n }\n \n testDealer.getUser().fillHandCards(clubCards);\n testDealer.setPlayerStarter(); \n testDealer.getTrickPlayer();\n assertEquals(testDealer.getBotA().getId(), testDealer.getNextPlayer());\n }",
"@Test\n void testUserIsNextPlayerWhenBotCHas2Clubs() {\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n \n ArrayList<Card> clubCards;\n clubCards = new ArrayList <Card>();\n\n for (Rank rank : Rank.values()) {\n clubCards.add(new Card(Suit.CLUBS, rank, true));\n }\n \n testDealer.getBotC().fillHandCards(clubCards);\n testDealer.setPlayerStarter(); \n testDealer.getTrickPlayer();\n assertEquals(testDealer.getUser().getId(), testDealer.getNextPlayer());\n }",
"@Override\r\n\tpublic ResultMessage addTeam(TeamPO oneTeam) {\n\t\treturn teams.addTeam(oneTeam) ;\r\n\t}",
"public void addToWorld(World world);",
"private ArrayList<Club> parseClubJSONInfo(String clubJSONInfo)\n\t{\n\t\tArrayList<Club> clubs = new ArrayList<Club>();\n\t\tClub c;\n\t\ttry\n\t\t{\n\t\t\tJSONObject jsonObject = new JSONObject(clubJSONInfo); //a big string of values\n\t\t\t\n\t\t\t//Club Data -- contains ALL clubs\n \t\tJSONArray clubsArray = jsonObject.getJSONArray(\"clubs\");\n \t\t\n \t\tif(clubsArray.length() > 0)\n \t\t{\n\t \t\t// Grab the first club\n \t\t\tfor(int y = 0; y < clubsArray.length(); y++) \n\t\t\t\t{\n \t\t\t\tJSONObject club = clubsArray.getJSONObject(y);\n\t\t\t\t\n\t\t\t\t\t// Take all the info from the club JSON file\n\t\t\t\t\t\n\t\t\t\t\t//get the geopoint from the lat and lon\n\t\t\t\t\tdouble latitude = Double.parseDouble(club.getString(\"lat\"));\n\t\t\t double lonitude = Double.parseDouble(club.getString(\"lon\"));\n\t\t\t LatLng marker = new LatLng(latitude, lonitude);\n\t\t\t\t\tGeoPoint geo = new GeoPoint((int) (latitude * 1E6), (int) (lonitude * 1E6));\n\t\t\t\t\t\n\t\t\t\t\tString name = club.getString(\"name\");\n\t\t\t\t\tString grounds = club.getString(\"grounds\");\n\t\t\t\t\tString description = club.getString(\"description\");\n\t\t\t\t\tString colours = club.getString(\"colours\");\n\t\t\t\t\tString website = club.getString(\"website\");\n\t\t\t\t\tString facebook = club.getString(\"facebook\");\n\t\t\t\t\tString twitter = club.getString(\"twitter\");\n\t\t\t\t\tString email = club.getString(\"email\");\n\t\t\t\t\tString phone = club.getString(\"phone\");\n\t\t\t\t\t\n\t\t\t\t\t//now fill out the description\n\t\t\t\t\tString info = \"\"; \n\t\t\t\t\tif(grounds.length() != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t//Log.i(\"log_tag\", \"Grounds = \\\"\" + grounds + \"\\\"\");\n\t\t\t\t\t\tif(info == \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinfo += grounds.toString();\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tinfo += \"\\n\" + grounds.toString();\n\t\t\t\t\t}\n\t\t\t\t\tif(description.length() != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(info == \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinfo += description.toString();\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tinfo += \"\\n\" + description.toString();\n\t\t\t\t\t}\n\t\t\t\t\tif(colours.length() != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(info == \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinfo += \"Colours: \" + colours.toString();\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tinfo += \"\\nColours: \" + colours.toString();\n\t\t\t\t\t}\n\t\t\t\t\tif(website.length() != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(info == \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinfo += \"Web: \" + website.toString();\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tinfo += \"\\nWeb: \" + website.toString();\n\t\t\t\t\t}\n\t\t\t\t\tif(facebook.length() != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(info == \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinfo += \"Facebook: \" + facebook.toString();\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tinfo += \"\\nFacebook: \" + facebook.toString();\n\t\t\t\t\t}\n\t\t\t\t\tif(twitter.length() != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(info == \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinfo += \"Twitter: \" + twitter.toString();\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tinfo += \"\\nTwitter: \" + twitter.toString();\n\t\t\t\t\t}\n\t\t\t\t\tif(email.length() != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(info == \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinfo += \"Email: \" + email.toString();\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tinfo += \"\\nEmail: \" + email.toString();\n\t\t\t\t\t}\n\t\t\t\t\tif(phone.length() != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(info == \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinfo += \"Phone: \" + phone.toString();\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tinfo += \"\\nPhone: \" + phone.toString();\n\t\t\t\t\t}\n\t\t\t\t\t//Log.i(\"log_tag\", \"Info = \\\"\" + info + \"\\\"\");\n\t\t\t\t\tc = new Club(name.toString(), info, geo, marker);\n\t\t\t\t\tclubs.add(c);\n\t \t\t}\n \t\t\t\n \t\t\tCollections.sort(clubs);\n \t\t}\n\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.e(\"log_tag\", \"Error creating JSON Objects:\" + e.toString());\n\t\t}\n\t\t\n\t\treturn clubs;\n\t}",
"public void add(Ball b) {\r\n balls.add(b);\r\n }",
"public void addToBagList(int position) {\n Club club = clubList.get(position);\n String name = club.getName();\n String description = club.getDescription();\n int image = club.getImage();\n Intent intent = new Intent(ClubList.this, MainActivity.class);\n intent.putExtra(AddClub.NAME, name);\n intent.putExtra(AddClub.DESCRIPTION, description);\n intent.putExtra(AddClub.IMAGE, image);\n startActivity(intent);\n }",
"void addEventPlayers(Player player, boolean team);",
"public void plusFoulTeamB (View view) {\r\n foulsB++;\r\n displayFoulsForTeamB(foulsB);\r\n }",
"public ArrayList<CollegeFootballTeam> getTeamList();",
"@Test\n void testBotCIsNextPlayerWhenBotBHas2Clubs() {\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n \n ArrayList<Card> clubCards;\n clubCards = new ArrayList <Card>();\n \n for (Rank rank : Rank.values()) {\n clubCards.add(new Card(Suit.CLUBS, rank, true));\n }\n \n testDealer.getBotB().fillHandCards(clubCards);\n testDealer.setPlayerStarter(); \n testDealer.getTrickPlayer();\n assertEquals(testDealer.getBotC().getId(), testDealer.getNextPlayer());\n }",
"public void addFaltasTeamB(View view) {\n faltasTeamB = faltasTeamB + 1;\n displayFaltasTeamB(faltasTeamB);\n }",
"public void addCantosTeamB(View view) {\n cantosTeamB = cantosTeamB + 1;\n displayCantosTeamB(cantosTeamB);\n }",
"public void addGoloTeamA(View view) {\n goloTeamA = goloTeamA + 1;\n displayGoloTeamA(goloTeamA);\n }",
"static Football getFootBall(){\n return new Football();\n }",
"public void addTeam(Team team){\n\t\tthis.teamList.add(team);\n\t}",
"public void addAmarelosTeamB(View view) {\n amarelosTeamB = amarelosTeamB + 1;\n displayAmarelosTeamB(amarelosTeamB);\n }",
"void addParticipant(Participant participant);",
"boolean addPlayer(String player);",
"@Test\n public void testAddPiece() {\n System.out.println(\"addPiece\");\n\n Piece piece = new Piece(PlayerColor.WHITE, 3);\n Player instance = new Player(PlayerColor.WHITE, \"\");\n\n instance.addPiece(piece);\n\n assertTrue(instance.getBagContent().contains(piece));\n }",
"void addPiece(Piece piece);",
"void addMember(final PartyMember member);",
"public void addOnePointToTeamA(View view)\n {\n scoreTeamA++;\n displayTeamAScore(scoreTeamA);\n }",
"public static void addTeam(TeamForm tf) {\n Team team;\n\n long id = tf.id;\n\n if (!isTeam(id)) {\n team = new Team(tf.teamName, tf.location, tf.teamType, tf.skillLevel, tf.roster, tf.description, tf.imageUrl);\n team.save();\n }\n else {\n team = getTeam(id);\n team.setTeamName(tf.teamName);\n team.setLocation(tf.location);\n team.setTeamType(tf.teamType);\n team.setSkillLevel(tf.skillLevel);\n team.setRoster(tf.roster);\n team.setDescription(tf.description);\n team.setImageUrl(tf.imageUrl);\n team.setWins(tf.wins);\n team.setLosses(tf.losses);\n team.setPointsFor(tf.pointsFor);\n team.setPointsAgainst(tf.pointsAgainst);\n team.save();\n }\n }",
"void create(Team team);",
"public NetworkGame(String team, ArrayList<String> fens){\n super(fens);\n this.team = team;\n }",
"@Before\n public void setUp()\n {\n hikerClub= new ClimbingClub();\n \n hikerClub.addClimb(\"Monadnock\", 274);\n hikerClub.addClimb(\"Whiteface\", 301);\n hikerClub.addClimb(\"Algonquin\", 225);\n hikerClub.addClimb(\"Monadnock\", 344);\n \n hikerClub2= new ClimbingClub();\n hikerClub2.addClimbSorted(\"Monadnock\", 274);\n hikerClub2.addClimbSorted(\"Whiteface\", 301);\n hikerClub2.addClimbSorted(\"Algonquin\", 225);\n hikerClub2.addClimbSorted(\"Monadnock\", 344);\n }",
"private void add(String name) {\n try {\n PokemonToEdit pkm = Reader.readPokemon(name);\n team.add(pkm);\n System.out.println(name + \" has been add to the team\");\n new PokemonEditTool(pkm);\n } catch (IOException e) {\n System.out.println(\"Pokemon not found natively\");\n System.out.println(\"Try looking for the pokemon online\");\n try {\n PokemonToEdit pkm = Crawler.loadPokemon(name);\n Saver.savePokemon(pkm);\n team.add(pkm);\n System.out.println(name + \" has been added to the team\");\n new PokemonEditTool(pkm);\n } catch (IOException ex) {\n System.out.println(\"Pokemon not found\");\n } catch (TeamFullException ex) {\n System.out.println(\"Team is full\");\n }\n } catch (TeamFullException e) {\n System.out.println(\"Team is full\");\n\n }\n }",
"public void addGoloTeamb(View view) {\n goloTeamB = goloTeamB + 1;\n displayGoloTeamB(goloTeamB);\n }",
"public NetworkGame(String team){\n super();\n this.team = team;\n }",
"public static void main(String[] args) \n {\n \n Team j = new Team(\"SaPKo\"); \n Player p = new Player(\"Sasf\"); \n Player a = new Player (\"gds\");\n Player s = new Player (\"asjkdh\");\n j.addPlayer(p);\n j.addPlayer(a);\n j.addPlayer(s);\n \n// System.out.println(\"array size: \" + j.getArraySize());\n \n j.printPlayers();\n }",
"void newPlayer(String name, String institution){\n Player newPlayer = new Player(name, institution,0);\n boolean x = players.add(newPlayer);\n }",
"public void addTwoPointsToTeamB(View view)\n {\n scoreTeamB = scoreTeamB + 2;\n displayTeamBScore(scoreTeamB);\n }",
"@Test\n public void testAddCity_City02() {\n\n System.out.println(\"addCity\");\n City cityTest = new City(new Pair(41.200000, -8.000000), \"cityTest\", 30);\n\n boolean result = sn10.addCity(cityTest);\n assertTrue(result);\n }",
"public static void main(String[] args) {\n\n\t\tSystem.out.println(\"\\n -----===< Club Manager >===----- \\n\");\n\t\tSystem.out.println(\"\tWelcome To The Club! \");\n\t\tprintProp(\" \tUser: \", \"user.name\");\n\t\tprintProp(\" \tOS arch: \", \"os.arch\");\n\t\tprintProp(\" \tOS name: \", \"os.name\");\n\t\tprintProp(\" \tOS version: \", \"os.version\");\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tGregorianCalendar calendar = new GregorianCalendar();\n\t\tSystem.out.println(\" \tDate: \" + sdf.format(calendar.getTime()));\n\t\tSystem.out.println(\" -----=====================-----\");\n\t\tSystem.out.println(\"\");\n\n\t\tfinal ClubHelper ch = new ClubHelper();\n\t\t\n\t\tif(args.length==0){\n\n\t\tMenu m = new Menu(ch);\n\t\tm.run();\n\n\t\t}\n/**\n*If --member is inprinted by the caller: a list of all members will be listed.\n* the method printMembersAll(); is found in CLubHelper \n*/\n\t\telse if(args[0].equals(\"--members\")){\n\t\t\tch.printMembersAll();\n\n/**\n*If --teams is inprinted by the caller: a list of all teams will be listed\n*the method printMembersAll(); is found in CLubHelper \n*/\n\t\t}\n\t\telse if(args[0].equals(\"--teams\")){\n\t\t\tch.printTeamsAll();\n\t\t\t\n\t\t}\n\t\t\n\t\t\n \t\t }",
"public void addVermelhosTeamB(View view) {\n vermelhosTeamB = vermelhosTeamB + 1;\n displayVermelhosTeamB(vermelhosTeamB);\n }",
"public ClimbingClubTest()\n {\n \n }",
"@Override\n\tpublic void add(Game game) {\n\t\t\n\t}",
"public static ArrayList<Match> getMatchesForSeason(ArrayList<FootballClub> seasonBasedClub){\n\n // these both arrayList will be of the same size\n ArrayList<Match> matchesDisplayed = new ArrayList<>();\n ArrayList<Match> allMatches = new ArrayList<>();\n\n // populating the allMatches list will all the matches from the seasonBasedClub\n // adding all the matches played for that season inside the allMatches list\n for (FootballClub footballClub: seasonBasedClub) {\n allMatches.addAll(footballClub.getMatchesPlayed());\n\n }\n\n // sort the matches in ascending order of the date\n Comparator<Match> sortByDate = (match1, match2) -> {\n\n if(match1.getDate().getYear() == match2.getDate().getYear()){\n if (match1.getDate().getMonth() == match2.getDate().getMonth()) {\n if (match1.getDate().getDay() > match2.getDate().getDay()) {\n return 1;\n }\n } else if (match1.getDate().getMonth() > match2.getDate().getMonth()) {\n return 1;\n }\n }else if (match1.getDate().getYear() > match2.getDate().getYear()) {\n return 1;\n }\n\n return -1;\n };\n allMatches.sort(sortByDate); // sorting the matches according to the date\n\n // MAIN CODE FOR EXTRACTING THE NECESSARY SET OF MATCHES (NO DUPLICATES)\n for (Match match : allMatches) {\n\n boolean matchNotAvailable = true;\n\n // NOTE THAT THIS IS TO PREVENT THE REPEATING OF MATCHES IN ALL CLUBS WHICH IS DUPLICATING\n for (Match value : matchesDisplayed) {\n if (match.getOpponentClubName().equalsIgnoreCase(value.getParticipatedCLubName())) {\n // NOTE: goal scored from the club is equal to goal received from the opponent club\n if (\n (value.getGoalReceived() == match.getGoalScored()) &&\n (value.getGoalScored() == match.getGoalReceived()) &&\n (value.getMatchType().equalsIgnoreCase(match.getMatchType())) &&\n (value.getDate().equals(match.getDate()))\n ) {\n matchNotAvailable = false;\n }\n }\n }\n // WE ADD THE NON DUPLICATED MATCHES INTO THIS LIST AND SEND IT TO THE VIEWS\n if (matchNotAvailable) {\n matchesDisplayed.add(match);\n }\n }\n return matchesDisplayed;\n }",
"public void autoAdd()\n {\n switch (this.getGameType())\n {\n case 1:\n for(int i = 0; i < this.participantNum; i++)\n {\n games.get(count - 1).addParticipant(swimmers.get(i).getId(),swimmers.get(i).compete(),swimmers.get(i).getPoints());\n }\n break;\n case 2:\n for(int i = 0; i < this.participantNum; i++)\n {\n games.get(count - 1).addParticipant(runners.get(i).getId(),runners.get(i).compete(),runners.get(i).getPoints());\n }\n break;\n case 3:\n for(int i = 0; i < this.participantNum; i++)\n {\n games.get(count - 1).addParticipant(cyclists.get(i).getId(),cyclists.get(i).compete(),cyclists.get(i).getPoints());\n }\n break;\n }\n\n }",
"public void addThreePointsToTeamA(View view)\n {\n scoreTeamA = scoreTeamA + 3;\n displayTeamAScore(scoreTeamA);\n }",
"@Override\n\tpublic void homeTeamScored(int points) {\n\t\t\n\t}",
"public void add(String name)\n/* 15: */ {\n/* 16:14 */ this.members.add(name);\n/* 17: */ }",
"void addEventGoal(DefaultGoal goal, DefaultBall ball);",
"public void board_club_insert(Board_clubDTO board_clubDTO) {\n\t\tsqlMapClientTemplate.insert(\"BoardSql.board_club_insert\", board_clubDTO);\t\r\n\t}",
"public static List<String> getSpainCoach() throws URISyntaxException, IOException {\n\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/77\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\",\"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\",\"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n Team66Pojo team66Pojo =objectMapper.readValue(response.getEntity().getContent(),Team66Pojo.class);\n List<Squad> squad = team66Pojo.getSquad();\n List<String> nameOfSpainTeamCoach= new ArrayList<>();\n for (int i = 0; i <squad.size() ; i++) {\n try {\n if(squad.get(i).getRole().equals(\"COACH\")){\n\n nameOfSpainTeamCoach.add(squad.get(i).getName());\n }\n }catch (NullPointerException e){\n continue;\n }\n\n }\n return nameOfSpainTeamCoach;\n }",
"@Override\n public void addToModel() {\n for (final Person person : team.observableTeamMembers()) {\n person.setTeam(team);\n }\n\n // Add team to project\n organisation.getTeams().add(team);\n }",
"boolean addEasyGamePlayed();",
"void addHadithChapterIntro(Object newHadithChapterIntro);",
"private ClubSearch() \r\n {\r\n in = new Scanner(System.in);\r\n db = DatabaseManager.getInstance();\r\n \r\n openPrompt = \"Would you like to search for a club, \" +\r\n \t \"filter by type of club, list clubs, or exit? (s/f/l/e)\";\r\n cDatabase = \"ClubDatabase\";\r\n cName = \"ClubName\";\r\n }",
"public Coach(String name, Sport sport) {\n this.name=name;\n this.sport=sport;\n }",
"public Team(String name) {\r\n this.name = name;\r\n team = new ArrayList<Hero>();\r\n }",
"void add(Lugar lugar);",
"public void addThreeForTeamB(View v) {\n scoreTeamB = scoreTeamB + 3;\n displayForTeamB(scoreTeamB);\n }",
"public void addTwoPointsToTeamA(View view)\n {\n scoreTeamA = scoreTeamA + 2;\n displayTeamAScore(scoreTeamA);\n }",
"void addHasCity(String newHasCity);",
"private void addPlayers(@NotNull MapHandler map, @NotNull NewGameDto newGameDto) {\n ComparableTuple<Integer, Stack<SpawnTile>> result = analyseMap(map);\n flagCount = result.key;\n Stack<SpawnTile> spawnTiles = result.value;\n if (!spawnTiles.isEmpty()) {\n for (PlayerDto player : newGameDto.players) {\n SpawnTile spawnTile = spawnTiles.pop();\n if (player.id == newGameDto.userId) {\n user = new Player(spawnTile.getX(), spawnTile.getY(), Direction.NORTH, map, new ComparableTuple<>(GameGraphics.mainPlayerName + \" (you)\", player.color), player.id);\n user.setDock(spawnTile.getSpawnNumber());\n players.add(user);\n } else {\n IPlayer onlinePlayer = new OnlinePlayer(spawnTile.getX(), spawnTile.getY(), Direction.NORTH, map, new ComparableTuple<>(player.name, player.color), player.id);\n onlinePlayer.setDock(spawnTile.getSpawnNumber());\n players.add(onlinePlayer);\n }\n }\n } else {\n for (int i = 0; i < playerCount; i++) {\n NonPlayer nonPlayer = new NonPlayer(i, 0, Direction.NORTH, map, new ComparableTuple<>(\"blue\", Color.BLUE));\n nonPlayer.setDock(i);\n players.add(nonPlayer);\n }\n }\n }",
"public void addSixForTeamB(View v) {\n scoreTeamB = scoreTeamB + 6;\n displayForTeamB(scoreTeamB);\n }",
"public abstract BossBar addPlayer(UUID player);",
"@Test\n public void testAddCity_3args02() {\n\n System.out.println(\"addCity_3args\");\n String cityName = \"cityTest\";\n Pair coordenates = new Pair(41.200000, -8.000000);\n int points = 30;\n\n boolean result = sn10.addCity(coordenates, cityName, points);\n assertTrue(result);\n }",
"int addHabit(Habit habit);",
"public void addPlayer(FootballPlayer aPlayer) {\n\t\tplayers.add(aPlayer);\n\t}",
"public void addTeamMember(String teamMember)\r\n\t{\r\n\t\tteamMembers.add(teamMember);\r\n\t}",
"public TeamCoach(){\n }",
"@Test\n void testBotBIsNextPlayerWhenBotAHas2Clubs() {\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n \n ArrayList<Card> clubCards;\n clubCards = new ArrayList <Card>();\n\n for (Rank rank : Rank.values()) {\n clubCards.add(new Card(Suit.CLUBS, rank, true));\n }\n \n testDealer.getBotA().fillHandCards(clubCards);\n testDealer.setPlayerStarter(); //botA is nextPlayer\n testDealer.getTrickPlayer();\n assertEquals(testDealer.getBotB().getId(), testDealer.getNextPlayer());\n }"
] | [
"0.61469954",
"0.611237",
"0.6094041",
"0.59416264",
"0.5881414",
"0.5843844",
"0.5828216",
"0.5827951",
"0.5812643",
"0.5806399",
"0.58048373",
"0.5691789",
"0.56892186",
"0.56842315",
"0.56819826",
"0.5681489",
"0.56431013",
"0.5626787",
"0.5623281",
"0.5603644",
"0.5575953",
"0.554529",
"0.55342424",
"0.55297863",
"0.55212766",
"0.5516194",
"0.5515611",
"0.55090153",
"0.5503391",
"0.5461337",
"0.5434239",
"0.542869",
"0.5416867",
"0.541646",
"0.538733",
"0.53859013",
"0.5381207",
"0.53795934",
"0.5377951",
"0.5359157",
"0.5353998",
"0.535032",
"0.53469115",
"0.53438205",
"0.5338506",
"0.5338083",
"0.53339756",
"0.5329027",
"0.5312067",
"0.5299587",
"0.52972186",
"0.52970904",
"0.5286786",
"0.527775",
"0.5276864",
"0.5273207",
"0.5271802",
"0.5248339",
"0.5241276",
"0.5223234",
"0.52177644",
"0.52172786",
"0.52169424",
"0.5185311",
"0.51836133",
"0.51798636",
"0.51796407",
"0.51747805",
"0.51746947",
"0.51745534",
"0.517441",
"0.51632243",
"0.51629156",
"0.5161792",
"0.5160144",
"0.51590395",
"0.51588976",
"0.51562554",
"0.51527214",
"0.51345813",
"0.5129388",
"0.512352",
"0.512115",
"0.5120462",
"0.5108649",
"0.5107461",
"0.5106825",
"0.5105755",
"0.5100097",
"0.50982034",
"0.50942624",
"0.5085848",
"0.50852203",
"0.5084148",
"0.50738233",
"0.50705016",
"0.5066524",
"0.506631",
"0.5057531",
"0.50524104"
] | 0.5716192 | 11 |
delete existing football club method | private static void deleteFootballClub(){
Scanner scanner = new Scanner(System.in);
System.out.print("Please enter Club Name: ");
String clubName = scanner.nextLine();
leagueManager.deleteFootballClub(clubName);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n\tpublic void deleteTeam() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeam \r\n\t\tTeam team_1 = new wsdm.domain.Team();\r\n\t\tservice.deleteTeam(team_1);\r\n\t}",
"void deleteClub(String actorId, String objectId, Date eventTime);",
"@Override\n public void delete(ArrayList<League> leagues) {\n\n }",
"@Override\n public void delete(JavaStudyClub javaStudyClub) {\n entityManager.remove(javaStudyClub);\n }",
"void remove(Team team);",
"int deleteByExample(SysTeamExample example);",
"@Override\n\tpublic void deleteTeam(ProjectTeamBean projectTeamBean) {\n\t\t\n\t}",
"public void deleteClub(int position) {\n clubList.remove(position);\n adapter.notifyItemRemoved(position);\n saveClubList();\n }",
"@Test\r\n\tpublic void deleteGame() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: deleteGame \r\n\t\tGame game_1 = new tsw.domain.Game();\r\n\t\tservice.deleteGame(game_1);\r\n\t}",
"public void deleteGoal(Goal goal_1);",
"private void removeClubEvent () {\n boolean okToDelete = true;\n if (CommonPrefs.getShared().confirmDeletes()) {\n int userOption = JOptionPane.showConfirmDialog(\n navToolBar, \n \"Really delete this Event?\",\n \"Delete Confirmation\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE,\n Home.getShared().getIcon());\n okToDelete = (userOption == JOptionPane.YES_OPTION);\n }\n if (okToDelete) {\n if (position.isNewClubEvent()) {\n position = new ClubEventPositioned();\n position.setIndex (clubEventList.size());\n display(); \n } else {\n noFindInProgress();\n boolean deleted = writer.delete(eventsFile, localPath);\n if (! deleted) {\n Trouble.getShared().report(this, \n \"Event could not be deleted\", \n \"Delete Failure\", \n JOptionPane.ERROR_MESSAGE);\n }\n position = clubEventList.remove (position);\n positionAndDisplay();\n currentFileModified = true;\n } // end if new ClubEvent not yet saved\n }\n \n }",
"public void deleteTeam(ActionEvent actionEvent) {}",
"@Override\n\tpublic void deletePlayer(Joueur joueur) {\n\t\t\n\t}",
"@Test\r\n\tpublic void deleteTeamTeamplayerses() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeamTeamplayerses \r\n\t\tInteger team_teamId_5 = 0;\r\n\t\tInteger related_teamplayerses_teamPlayersId = 0;\r\n\t\tTeam response = null;\r\n\t\tresponse = service.deleteTeamTeamplayerses(team_teamId_5, related_teamplayerses_teamPlayersId);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: deleteTeamTeamplayerses\r\n\t}",
"int deleteByExample(TourExample example);",
"@Test\r\n\tpublic void deleteTeamGamesForVisitorTeamFk() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeamGamesForVisitorTeamFk \r\n\t\tInteger team_teamId_1 = 0;\r\n\t\tInteger related_gamesforvisitorteamfk_gameId = 0;\r\n\t\tTeam response = null;\r\n\t\tresponse = service.deleteTeamGamesForVisitorTeamFk(team_teamId_1, related_gamesforvisitorteamfk_gameId);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: deleteTeamGamesForVisitorTeamFk\r\n\t}",
"int deleteByExample(TResearchTeachExample example);",
"int deleteByExample(CliStaffProjectExample example);",
"int deleteByExample(WstatTeachingClasshourTeacherExample example);",
"@Override\n\tpublic void deleteProjectTeam(ProjectTeamBean bean) {\n\t\t\n\t}",
"@Override\r\n\tpublic void delete(Player t) {\n\r\n\t}",
"int deleteByExample(TourstExample example);",
"@Override\n\tpublic void delete(Game game) {\n\t\t\n\t}",
"public void deleteTeamById(UUID id) {\n Optional<Teams> optionalTeam = teamRepo.findById(id);\n if (!optionalTeam.isPresent())\n throw new TeamNotFoundException(\"Team Record with id \" + id + \" is not available\");\n teamRepo.deleteById(id);\n }",
"int deleteByPrimaryKey(Integer teamId);",
"int deleteByExample(HuoDongExample example);",
"public boolean RemoveSport(Sport sport){\n\n boolean noError = true;\n\n\n\n try {\n ConnectDB();\n\n\n preparedStatement=connection.prepareStatement(\"SELECT t_clubs.FK_Sport FROM t_clubs WHERE t_clubs.FK_Sport=?\");\n preparedStatement.setInt(1, sport.getPk_sport());\n result = preparedStatement.executeQuery();\n\n if(result.next()) {\n JOptionPane pane = new JOptionPane(\"le sport est affilié a un club impossible de le supprimer\", JOptionPane.ERROR_MESSAGE);\n JDialog dialog = pane.createDialog(null,\"error\");\n dialog.setAlwaysOnTop(true);\n dialog.setVisible(true);\n dialog.dispose();\n\n }else{\n\n preparedStatement = connection.prepareStatement(\"Delete FROM `t_sports` WHERE `PK_Sport`= ? \");\n preparedStatement.setInt(1, sport.getPk_sport());\n preparedStatement.executeUpdate();}\n\n\n } catch (SQLException e) {\n e.printStackTrace();\n noError = false;\n } finally {\n CloseDB();\n }\n\n\n\n\n\n\n return noError;\n }",
"@Test\r\n\tpublic void deleteTeamGamesForHomeTeamFk() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeamGamesForHomeTeamFk \r\n\t\tInteger team_teamId_4 = 0;\r\n\t\tInteger related_gamesforhometeamfk_gameId = 0;\r\n\t\tTeam response = null;\r\n\t\tresponse = service.deleteTeamGamesForHomeTeamFk(team_teamId_4, related_gamesforhometeamfk_gameId);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: deleteTeamGamesForHomeTeamFk\r\n\t}",
"private void deleteFakeTeam(Player player) {\n\t\tPacketContainer packet = new PacketContainer(PacketType.Play.Server.SCOREBOARD_TEAM);\n\t\tpacket.getStrings().write(0, FakeTeamName);\n\t\tpacket.getIntegers().write(1, 1); // Set remove mode\n\t\t\n\t\ttry {\n\t\t\tProtocolLibrary.getProtocolManager().sendServerPacket(player, packet);\n\t\t} catch (InvocationTargetException e) {\n\t\t\t// Should never happen unless packet changes\n\t\t\tthrow new AssertionError(e);\n\t\t}\n\t}",
"int deleteByExample(TrainingCourseExample example);",
"@Override\n public boolean deleteTeamById(int id){\n teampokemondao.deleteTeamPokemonByTeam(id);\n typestatdao.deleteTypeStatByTeam(id);\n basestatdao.deleteBaseStatByTeam(id);\n \t String sql = \"DELETE FROM Team WHERE Team.teamid = \" + id;\n return jdbc.update(sql) > 0;\n }",
"@Override\n\tpublic void delete(FxzfLane entity) {\n\t\t\n\t}",
"int deleteByExample(WordSchoolExample example);",
"@Test\n public void testDeleteTeacher() {\n System.out.println(\"deleteTeacher\");\n School instance = new School();\n instance.setTeachers(teachers);\n instance.setTeacherClass(teacherClass);\n\n assertFalse(instance.deleteTeacher(teacher));\n System.out.println(\"PASS with a teacher currently teaching a class\");\n\n assertTrue(instance.deleteTeacher(teacher3));\n teachers.remove(teacher3.getId());\n assertEquals(teachers, instance.getTeachers());\n System.out.println(\"PASS with a teacher currently not teaching any classes\");\n\n System.out.println(\"PASS ALL\");\n }",
"public void deleteShotData(ActionRequest request, ActionResponse response)\r\n\t throws Exception {\r\n\r\n\t long clubKey = ParamUtil.getLong(request, \"resourcePrimKey\");\r\n\r\n\t if (Validator.isNotNull(clubKey)) {\r\n\t ESPlayerShotDataLocalServiceUtil.deleteESPlayerShotData(clubKey);\r\n\t SessionMessages.add(request, \"clubDeleted\");\r\n\t }\r\n\t else {\r\n\t SessionErrors.add(request, \"error-deleting\");\r\n\t }\r\n\t }",
"void deleteChallenge();",
"void deleteMataKuliah (int id);",
"int deleteByExample(CxBasStaffExample example);",
"int deleteByExample(HomeWorkExample example);",
"int deleteByExample(organize_infoBeanExample example);",
"@Test\r\n public void testDelete() throws Exception {\r\n bank.removePerson(p2);\r\n assertEquals(bank.viewAllPersons().size(), 1);\r\n assertEquals(bank.viewAllAccounts().size(), 1);\r\n }",
"int deleteByExample(TCpySpouseExample example);",
"@Override\n\tpublic void delete(long memberId) {\n\t\t\n\t}",
"int deleteByExample(SportAlbumPictureExample example);",
"int deleteByExample(DiscussExample example);",
"public Campus remove(long campusId) throws NoSuchCampusException;",
"@GetMapping(\"/deleteTeam/{id}\")\n public String deleteTeam(@Valid @PathVariable (value = \"id\") long id) {\n this.teamService.deleteTeamById(id);\n return \"redirect:/teamPage\";\n }",
"public void delete(String teamID) {\n Team team = get(teamID);\n \n TeamDB tdb = new TeamDB();\n PlayerDB pdb = new PlayerDB();\n GameDB gdb = new GameDB();\n \n ArrayList<String> pids = new ArrayList<>();\n List<String> gids = new ArrayList<>();\n \n List<Player> playerList = team.getPlayerList(); \n \n for (Player p : playerList) \n pids.add(p.getPlayerID());\n \n for (String s : pids) \n pdb.delete(pdb.getByPlayerID(s));\n\n for (Game g : team.getGameList()) \n gids.add(g.getGameID());\n for (Game g : team.getGameList1())\n gids.add(g.getGameID());\n \n team.getGameList().clear();\n team.getGameList1().clear();\n \n for (String s : gids)\n gdb.delete(gdb.get(s));\n \n tdb.delete(team);\n }",
"int deleteByExample(ActivityHongbaoPrizeExample example);",
"@RequestMapping(method = RequestMethod.DELETE, value = \"/teams/{id}\")\n public void deleteTeam(@PathVariable Integer id) {\n teamService.deleteTeam(id);\n }",
"int deleteByExample(CourseExample example);",
"@Test\n public void deleteDoctor() {\n\t\tList<Doctor> doctors = drepository.findByName(\"Katri Halonen\");\n\t\tassertThat(doctors).hasSize(1);\n \tdrepository.deleteById((long) 3);\n \tdoctors = drepository.findByName(\"Katri Halonen\");\n \tassertThat(doctors).hasSize(0);\n }",
"@Test\r\n\tpublic void deleteTeamProgram() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeamProgram \r\n\t\tInteger team_teamId_3 = 0;\r\n\t\tInteger related_program_programId = 0;\r\n\t\tTeam response = null;\r\n\t\tresponse = service.deleteTeamProgram(team_teamId_3, related_program_programId);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: deleteTeamProgram\r\n\t}",
"Horse deleteHorse(long id);",
"@Override\n\tpublic void deleteCoach(Coach coach) {\n\t\tthis.getHibernateTemplate().delete(coach);\n\t}",
"void deleteChallengeById(int id);",
"int deleteByExample(CountyExample example);",
"public abstract boolean deleteGame(int game_id) throws SQLException;",
"void delete(Member member);",
"public boolean deletePalvelupisteet();",
"int deleteByExample(PracticeClassExample example);",
"int deleteByExample(RepStuLearningExample example);",
"void deleteLesson(Module module, Lesson target);",
"int deleteByExample(GoodexistsingleExample example);",
"void deleteBoard(long id);",
"public String deleteResearcher(int id);",
"private void deleteBooking() \n {\n Scanner memberID=new Scanner(System.in);\n System.out.println(\"Please enter your member number: \");\n int memberId = memberID.nextInt();\n \n Member mem = sportsClub.searchMember(memberId);\n if(mem==null || mem.getBookings()==null)\n {\n System.out.println(\"Sorry! There are no members with the given ID. \");\n\n \n\n }\n else\n {\n for(Booking b : mem.getBookings())//Displays the member details n bookings\n {\n System.out.println(\"Booking Id : \" + b.hashCode()+ \" Booking made by \"+mem.getMemberName() +\" for \" + b.getBookingDate() + \" at \" + b.getBookingTime() + \" for \" + b.getBookingEndTime() + \" minutes on Court number \" + b.getCourt().getCourtId());\n\n }\n \n if(mem.getBookings().size()!=0)\n {\n Scanner inputID=new Scanner(System.in);\n System.out.println(\"Enter Booking ID: \");\n int input = inputID.nextInt();\n Iterator<Booking> itr = mem.getBookings().iterator();\n\n\n while(itr.hasNext())//delettion starts based on the ID\n { \n if(itr.next().hashCode() == input)\n {\n itr.remove();\n for(String str : mem.getSportsPlayed())\n {\n Sport sportObj = sportsClub.findSport(str);\n\n ArrayList<Court> itrCourt = sportObj.getCourtList();\n for(Court c : itrCourt)//finds the court\n {\n\n Iterator<Booking> itrBooking = c.getCourtBookings().iterator();\n while(itrBooking.hasNext())//helps to get the booking object\n {\n if(itrBooking.next().hashCode() == input)\n {\n itrBooking.remove();//removes the booking object\n System.out.println(\"Deleted Successfully\");\n }\n } \n } \n } \n }\n }\n }\n }\n\n\n\n }",
"@Override\r\n\tpublic void delete(FollowUp followup) {\n\t\t\r\n\t}",
"int deleteByExample(KaiwaExample example);",
"int deleteByExample(DishExample example);",
"int deleteByExample(OnlineExample example);",
"void delete(Exam exam);",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete College : {}\", id);\n collegeRepository.deleteById(id);\n collegeSearchRepository.deleteById(id);\n }",
"int deleteByExample(OrgMemberRecordExample example);",
"@Test\n public void testRemove() {\n System.out.println(\"remove\");\n Repositorio repo = new RepositorioImpl();\n Persona persona = new Persona();\n persona.setNombre(\"Ismael\");\n persona.setApellido(\"González\");\n persona.setNumeroDocumento(\"4475199\");\n repo.crear(persona);\n \n Persona personaAEliminar = (Persona) repo.buscar(persona.getId());\n assertNotNull(personaAEliminar);\n \n //eliminacion\n repo.eliminar(personaAEliminar);\n Persona personaEliminada = (Persona) repo.buscar(persona.getId());\n assertNull(personaEliminada);\n }",
"int deleteByExample(ProSchoolWareExample example);",
"int deleteByExample(Lbm83ChohyokanriPkeyExample example);",
"@Test\n public void testHRemoveCity() throws Exception {\n initializeCreateCity();\n doDirectDeleteRequest(\"/ws/dal/City/\" + cityId, 200);\n }",
"int delete(Subdivision subdivision);",
"int deleteByExample(BaseCountractExample example);",
"Feature delete(Long featureId);",
"@Override\n\tpublic void deleteCamping(Long idC) {\n\t\tcampingRepo.deleteById(idC);\n\t}",
"int deleteByExample(BasCountiesExample example);",
"private void delete() {\n\n\t}",
"@Test\r\n\tpublic void deleteTeamTswacct() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeamTswacct \r\n\t\tInteger team_teamId_6 = 0;\r\n\t\tInteger related_tswacct_tswAcctId = 0;\r\n\t\tTeam response = null;\r\n\t\tresponse = service.deleteTeamTswacct(team_teamId_6, related_tswacct_tswAcctId);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: deleteTeamTswacct\r\n\t}",
"int deleteByExample(OfUserWechatExample example);",
"@Test\n void testDeleteCity() {\n CityList cityList = mockCityList();\n cityList.delete(mockCity());\n\n assertFalse(cityList.hasCity(mockCity()));\n assertTrue(cityList.countCities() == 0);\n\n }",
"int deleteByExample(TVideoExample example);",
"void deleteExam(Module module, Exam target);",
"@Override\r\n\tpublic boolean delete(Station obj) {\n\t\treturn false;\r\n\t}",
"public abstract boolean deleteGame2(String creatorUsername) throws SQLException;",
"int deleteByExample(TycCompanyCheckCrawlerExample example);",
"public void deleteTeam(Team team) {\n\t\tEntityManager em = emfactory.createEntityManager();\n\t\tem.getTransaction().begin();\n\t\tTypedQuery<Team> deleteTeam = em.createQuery(\"select t from Team t where t.teamId = :selectedId\", Team.class);\n\t\tdeleteTeam.setParameter(\"selectedId\", team.getTeamId());\n\t\tdeleteTeam.setMaxResults(1);\n\t\tTeam toDelete = deleteTeam.getSingleResult();\n\t\tem.remove(toDelete);\n\t\tem.getTransaction().commit();\n\t\tem.close();\n\t}",
"int deleteByExample(CptDataStoreExample example);",
"public void deleteCrime(UUID id) {\n\n }",
"int deleteByExample(FactRoomLogExample example);",
"int deleteByExample(SmsEmployeeTeamExample example);",
"int deleteByExample(DeptExample example);",
"@Test\n public void testremovePlayer() {\n session.removePlayer(playerRemco);\n // There already was 1 player, so now there should be 0\n assertEquals(0, session.getPlayers().size());\n }",
"int deleteByExample(SrHotelRoomInfoExample example);"
] | [
"0.6943896",
"0.6939579",
"0.6770615",
"0.66261595",
"0.66098857",
"0.6571388",
"0.6340669",
"0.62974524",
"0.6284249",
"0.62046295",
"0.6195251",
"0.6171193",
"0.6159591",
"0.6115654",
"0.6111898",
"0.6106309",
"0.609626",
"0.60718954",
"0.6058455",
"0.605417",
"0.604266",
"0.6036876",
"0.6025338",
"0.6004117",
"0.5992724",
"0.5988667",
"0.5978515",
"0.5950435",
"0.5940667",
"0.5939997",
"0.59070927",
"0.5896901",
"0.58841944",
"0.58804196",
"0.587739",
"0.5875321",
"0.58738625",
"0.5871773",
"0.5864626",
"0.5860795",
"0.5859262",
"0.58433104",
"0.5839068",
"0.58339304",
"0.5833736",
"0.5830901",
"0.5828811",
"0.5823775",
"0.5820803",
"0.5819929",
"0.580931",
"0.58072716",
"0.58021003",
"0.5798886",
"0.5796475",
"0.5793774",
"0.57925975",
"0.57910204",
"0.5786128",
"0.57861245",
"0.5784349",
"0.5772569",
"0.5772472",
"0.5769359",
"0.57653844",
"0.5764645",
"0.5753599",
"0.57521385",
"0.5746147",
"0.5745913",
"0.5728343",
"0.5723407",
"0.5721234",
"0.5720395",
"0.57152414",
"0.57129276",
"0.5698939",
"0.56854635",
"0.5678739",
"0.56771904",
"0.5676801",
"0.5675334",
"0.5674724",
"0.567101",
"0.56613576",
"0.56538075",
"0.56523603",
"0.5651545",
"0.5650535",
"0.5640052",
"0.5635487",
"0.563535",
"0.56333464",
"0.5627666",
"0.56262225",
"0.56240124",
"0.5622992",
"0.5619256",
"0.5619105",
"0.5616787"
] | 0.73940074 | 0 |
display a specific club's statistics | private static void displayStatistics(){
Scanner scanner = new Scanner(System.in);
System.out.print("Please enter Club Name: ");
String clubName = scanner.nextLine();
leagueManager.displayStatistics(clubName);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void showStats() {\n\n List<String> stats = statsList.subList(Math.max(statsList.size() - 3, 0), statsList.size());\n\n System.out.println(\"Stats:\");\n for(String stat : stats){\n System.out.println(stat);\n }\n }",
"public void statistics(){\n System.out.println(this.scoreboard.toString());\n }",
"void printStats();",
"public String getClubname() {\n\t\treturn clubname;\r\n\t}",
"public static void showStatistics(){\n\n }",
"public void stats() {\n\t\tSystem.out.println(\"The score is: \" + score \n\t\t\t\t+ \"\\nNumber of Astronauts rescused: \" + rescuedAstronauts \n\t\t\t\t+ \"\\nNumber of Astronauts roaming: \" + roamingAstronauts\n\t\t\t\t+ \"\\nNumber of Aliens rescued: \" + rescuedAliens\n\t\t\t\t+ \"\\nNumber of Aliens roaming: \" + roamingAliens);\n\t}",
"public void displayStats() {\n VisitorDAO visitorDAO = new VisitorDAO();\n Object countAllVisitors = visitorDAO.getCountAllVisitors();\n Object countNewSubscribers = visitorDAO.getCountNewSubscribersForMonth(this.simpleDateFormat.format(new Date()));\n\n this.totalSubscribersText.setText(this.totalSubscribersText.getText() + countAllVisitors.toString());\n this.newSubscribersText.setText(this.newSubscribersText.getText() + countNewSubscribers.toString());\n }",
"private static void displayStat() {\n Collection<Zone> zones = Universe.getInstance().getCarte().getCarte().values();\r\n System.out.println(\"Nb de personnes créées : \" + Universe.getInstance().getCarte().getPopulation().size());\r\n\r\n\r\n System.out.println(\"Nb de personnes créées en mer : \" + getPopulationByTile(Zone.Tile.SEA));\r\n System.out.println(\"Nb de personnes créées en plaine : \" + getPopulationByTile(Zone.Tile.EARTH));\r\n System.out.println(\"Nb de personnes créées en foret : \" + getPopulationByTile(Zone.Tile.FOREST));\r\n System.out.println(\"Nb de personnes créées en ville : \" + getPopulationByTile(Zone.Tile.TOWN));\r\n\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Surface mer : \" + getSurfaceByTile(zones, Zone.Tile.SEA));\r\n System.out.println(\"Surface plaine : \" + getSurfaceByTile(zones, Zone.Tile.EARTH));\r\n System.out.println(\"Surface foret : \" + getSurfaceByTile(zones, Zone.Tile.FOREST));\r\n System.out.println(\"Surface ville : \" + getSurfaceByTile(zones, Zone.Tile.TOWN));\r\n\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Densité mer : \" + new Double(getPopulationByTile(Zone.Tile.SEA) / getSurfaceByTile(zones, Zone.Tile.SEA)));\r\n System.out.println(\"Densité plaine : \" + new Double(getPopulationByTile(Zone.Tile.EARTH)) / new Double(getSurfaceByTile(zones, Zone.Tile.EARTH)));\r\n System.out.println(\"Densité foret : \" + new Double(getPopulationByTile(Zone.Tile.FOREST)) / new Double(getSurfaceByTile(zones, Zone.Tile.FOREST)));\r\n System.out.println(\"Densité ville : \" + new Double(getPopulationByTile(Zone.Tile.TOWN)) / new Double(getSurfaceByTile(zones, Zone.Tile.TOWN)));\r\n\r\n System.out.println(\"---------------\");\r\n System.out.println(\"Surface mer deserte : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.SEA) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface plaine deserte : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.EARTH) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface foret deserte: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.FOREST) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface ville deserte: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.TOWN) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Surface mer habitée : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.SEA) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface plaine habitée : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.EARTH) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface foret habitée: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.FOREST) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface ville habitée: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.TOWN) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n }",
"public void outputStats (){\n System.out.println(\"Your sorcerer's stats:\");\n System.out.println(\"HP = \" + hp);\n System.out.println(\"Mana = \" + mana);\n System.out.println(\"Strength = \" + strength);\n System.out.println(\"Vitality = \" + vitality);\n System.out.println(\"Energy = \" + energy);\n }",
"public static void displayStats2(ArrayList<String> standings){\n\t\t\tString[] parts;\n\t\t\tdouble avg;\n\t\t\tSystem.out.println(\"-----------------------------\");\n\t\t\tSystem.out.println(\"Teams: Pct:\" );\n\t\t\tSystem.out.println(\"-----------------------------\");\n\t\t\tfor(String standing : standings){\n\t\t\t\tparts = standing.split(\"\\t\");\n\t\t\t\tavg = getAvg(standing);\n\t\t\t\tSystem.out.printf(\"%-15s%6.2f\\n \", parts[0], avg);\n\t\t\t\t//System.out.println(parts[1]);\n\t\t\t\t//System.out.println(parts[2]);\n\t\t\t\t\n\t\t\t}//end for \n\t//\t\tSystem.out.println(standings);\n\t\t}",
"public void playerDetailedInfo(Player p){\n System.out.println(\"Indicator: \" + indicator + \"\\nJoker: \"+joker);\n System.out.println(\"Winner: Player\" + p.getPlayerNo());\n System.out.println(\"Tile size: \" + p.getTiles().size());\n System.out.println(\"Joker count: \" + p.getJokerCount());\n System.out.println(\"Double score: \" + p.getDoubleCount()*2);\n System.out.println(\"All tiles in ascending order:\\t\" + p.getTiles());\n System.out.println(\"Clustered according to number: \\t\" + p.getNoClus());\n System.out.println(\"Total number clustering score: \" + p.totalNoClustering());\n System.out.println(\"Clustered according to color: \\t\" + p.getColClus());\n System.out.println(\"Total color clustering score: \" + p.totalColCluster());\n System.out.println(\"Final score of Player\"+p.getPlayerNo()+\": \" + p.getPlayerScore());\n }",
"private void calculateAndShowStatistics() {\n Map<Country, Float> countryWithMinInternetUsers = findCountryWithMinInternetUsers();\n Map<Country, Float> countryWithMinLiteracyRate = findCountryWithMinLiteracyRate();\n Map<Country, Float> countryWithMaxInternetUsers = findCountryWithMaxInternetUsers();\n Map<Country, Float> countryWithMaxLiteracyRate = findCountryWithMaxLiteracyRate();\n\n // Output header\n System.out.println(\"\\nStatistics based on the data provided in the database\\n\");\n\n // Output minimums\n screenPrinter.outputMinOrMax(\"minimum\", \"amount of Internet Users\", countryWithMinInternetUsers);\n screenPrinter.outputMinOrMax(\"minimum\", \"Adult Literacy Rate\",countryWithMinLiteracyRate);\n\n // Output maximums\n screenPrinter.outputMinOrMax(\"maximum\", \"amount of Internet Users\",countryWithMaxInternetUsers);\n screenPrinter.outputMinOrMax(\"maximum\", \"Adult Literacy Rate\",countryWithMaxLiteracyRate);\n System.out.println();\n\n // Find countries that have all the data\n List<Country> countriesWithoutMissingData = findAllCountiesWithoutMissingData();\n\n // Form two separate lists with just indicators\n List<Float> listOfInternetUsersRates = getListOfInternetUsersRates(countriesWithoutMissingData);\n List<Float> listOfLiteracyRates = getListOfLiteracyRates(countriesWithoutMissingData);\n\n // Calculate the correlation coefficient\n double correlationCoefficient = calculateCorCoeff(listOfInternetUsersRates, listOfLiteracyRates);\n// double pearsonCoefficient = calculateCoeffThirdParty(listOfInternetUsersRates, listOfLiteracyRates);\n\n // output correlation coefficient\n screenPrinter.outputCorrelation(correlationCoefficient);\n }",
"public void searchClub(String club) throws JSONException, InterruptedException{\r\n /**Database Manager Object used to access mlab.com*/\r\n db.setDataBaseDestination(cDatabase, club, false);\r\n db.accessDatabase();\r\n\r\n // club returned by search or null if no club found\r\n JSONObject clubName = db.getSingleDatabaseResults();\r\n \r\n // if club is in database, ask user if they would like to view club\r\n // else display message and return to search prompt\r\n if(clubName != null) {\r\n String name = clubName.get(cName).toString();\r\n viewPage(name);\r\n }\r\n else {\r\n logger.log(Level.INFO, \"The club you entered is \" +\r\n \"not in the database.\");\r\n displaySearch();\r\n } \r\n }",
"public void printStatistics() {\n\t// Skriv statistiken samlad så här långt\n stats.print();\n }",
"public static void displayStats(ArrayList<String> standings){\n\t\tString[] parts;\n\t\tdouble avg, gamesB; //variables for fucntion calls\n\t\tSystem.out.println(\"----------------------------------------------------------------\");\n\t\tSystem.out.println(\"Teams: Wins: Loses: Pct: Games Behind:\" );\n\t\tSystem.out.println(\"----------------------------------------------------------------\");\n\t\tfor(String standing : standings){\n\t\t\tparts = standing.split(\"\\t\");\n\t\t\tavg = getAvg(standing);\n\t\t\tSystem.out.printf(\"%-15s%-8s%-8s%6.2f \\n \", parts[0], parts[1], parts[2], avg);\n\t\t}//end for \n//\t\tSystem.out.println(standings);\n\t}",
"public double mean(int club) { //depending on which club the user chooses, different if statements will run. The reason is because different clubs have different means\n\t\tif (club == 1) {\n\t\t\treturn 230;\n\t\t} else if (club == 2) {\n\t\t\treturn 215;\n\t\t} else if (club == 3) {\n\t\t\treturn 180;\n\t\t} else if (club == 4) {\n\t\t\treturn 170;\n\t\t} else if (club == 5) {\n\t\t\treturn 155;\n\t\t} else if (club == 6) {\n\t\t\treturn 145;\n\t\t} else if (club == 7) {\n\t\t\treturn 135;\n\t\t} else if (club == 8) {\n\t\t\treturn 125;\n\t\t} else if (club == 9) {\n\t\t\treturn 110;\n\t\t} else {\n\t\t\treturn 50;\n\t\t}\n\n\t}",
"public void displayStatistics() {\n FileInputStream fInStr;\n ObjectInputStream objInStr = null;\n File file = new File(\"clubData.txt\");\n if (file.exists()) {\n try {\n fInStr = new FileInputStream(\"clubData.txt\");\n while ( fInStr.available() > 0) {\n objInStr = new ObjectInputStream( fInStr);\n ArrayList<FootballClub> readedArray = (ArrayList<FootballClub>) objInStr.readObject();\n footballClubArrayList = readedArray;\n\n\n }\n if (objInStr != null) {\n objInStr.close();\n }\n } catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n }\n\n }",
"public void printStats() {\n\n System.out.println(\"Number of Users Arrived: \" + numIn);\n System.out.println(\"Number of Users Exited: \" + numOut);\n System.out.println(\"Average Time Spent Waiting for Cab: \" + (totTimeWait / numIn));\n if (numOut != 0) {\n System.out.println(\"Average Time Spent Waiting and Travelling: \" + (totTime / numOut));\n }\n }",
"private void viewPage(String club) throws JSONException, InterruptedException {\r\n logger.log(Level.INFO, \"Would you like to view the \" + \r\n club + \" clubpage? (y/n)\");\r\n \r\n // if yes, go to club page\r\n // else return to display prompt\r\n if(\"y\".equalsIgnoreCase(in.nextLine())) {\r\n \t Club clubToView = new Club(club);\r\n \t clubToView.printClubPromptsAndInfo(PolyClubsConsole.user instanceof ClubAdmin);\r\n }\r\n \r\n else \r\n displaySearch(); \r\n }",
"public abstract void showStat();",
"public void displayStats(int lowAttack, int medAttack, int highAttack)\n\t{\n\t\tSystem.out.println (\"Summary of Combat\");\n\t\tSystem.out.println (\"Total Hits Overall: \" + numHits + \" Total Blocks Overall: \" + numBlocks);\n\t\tSystem.out.println (\"Attacker Proportions: \" + \"Low \" + lowAttack + \"% \" + \"Medium \" +\n\t\t\t\t\t\t\tmedAttack + \"% \" + \"High \" + highAttack + \"% \");\n\t\tSystem.out.print (\"Defender Proportions: \" + \"Low \");\n\t\tSystem.out.printf(\"%.2f\", (lowBlocks * 100)/(count+1));\n\t\tSystem.out.print(\"% \" + \"Medium \"); \n\t\tSystem.out.printf(\"%.2f\", ((medBlocks*100)/(count+1)));\n\t\tSystem.out.print(\"% \" + \"High \");\n\t\tSystem.out.printf(\"%.2f\", ((highBlocks*100)/(count+1)));\n\t\tSystem.out.println(\"% \");\t\t\n\t\n\t}",
"private void printSubStatistics(\n PrintStream out, Result result, ReachedSet reached,\n Configuration pConfig) {\n\n Preconditions.checkArgument(result == Result.NOT_YET_STARTED || reached != null);\n\n for (Statistics s : subStats) {\n String name = s.getName();\n if (!Strings.isNullOrEmpty(name)) {\n name = name + \" statistics\";\n out.println(name);\n out.println(Strings.repeat(\"-\", name.length()));\n }\n\n try {\n pConfig.inject(s);\n } catch (InvalidConfigurationException e) {\n logger.logUserException(Level.WARNING, e,\n \"Cannot inject the new configuration into statistics object\");\n } catch (Exception e) {\n // this class cannot be injected because it does not have @Option annotation\n }\n\n try {\n s.printStatistics(out, result, reached);\n } catch (OutOfMemoryError e) {\n logger.logUserException(Level.WARNING, e,\n \"Out of memory while generating statistics and writing output files\");\n }\n\n if (!Strings.isNullOrEmpty(name)) {\n out.println();\n }\n }\n }",
"public String getStatsOfTeams(){\n\n String res = \"\";\n\n if (teams.size() <= 0){\n return \"No team registered in tournament\";\n }\n\n for(int num=0; num<teams.size(); num++)\n {\n SoccerTeam team = teams.get(num);\n res += team.toString() + \"\\n\";\n }\n return res;\n }",
"public void showStats() {\r\n List<String> list = new ArrayList();\r\n for (int i = 1; i < 31; i++) {\r\n switch (i) {\r\n case 4:\r\n list.add(name);\r\n break;\r\n case 6:\r\n list.add(String.valueOf(stats.get(\"name\")));\r\n break;\r\n case 7:\r\n list.add(String.valueOf(stats.get(\"score\").split(\":\")[0]));\r\n break;\r\n case 8:\r\n list.add(\"Score\");\r\n break;\r\n case 9:\r\n list.add(String.valueOf(stats.get(\"score\").split(\":\")[1]));\r\n break;\r\n case 10:\r\n list.add(String.valueOf(stats.get(\"break\").split(\":\")[0]));\r\n break;\r\n case 11:\r\n list.add(\"Max Break\");\r\n break;\r\n case 12:\r\n list.add(String.valueOf(stats.get(\"break\").split(\":\")[1]));\r\n break;\r\n case 13:\r\n list.add(String.valueOf(stats.get(\"fouls\").split(\":\")[0]));\r\n break;\r\n case 14:\r\n list.add(\"Fouls\");\r\n break;\r\n case 15:\r\n list.add(String.valueOf(stats.get(\"fouls\").split(\":\")[1]));\r\n break;\r\n case 16:\r\n list.add(String.valueOf(stats.get(\"misses\").split(\":\")[0]));\r\n break;\r\n case 17:\r\n list.add(\"Misses\");\r\n break;\r\n case 18:\r\n list.add(String.valueOf(stats.get(\"misses\").split(\":\")[1]));\r\n break;\r\n case 19:\r\n list.add(String.valueOf(stats.get(\"pots\").split(\":\")[0]));\r\n break;\r\n case 20:\r\n list.add(\"Pots\");\r\n break;\r\n case 21:\r\n list.add(String.valueOf(stats.get(\"pots\").split(\":\")[1]));\r\n break;\r\n case 22:\r\n list.add(String.valueOf(stats.get(\"shots\").split(\":\")[0]));\r\n break;\r\n case 23:\r\n list.add(\"Shots\");\r\n break;\r\n case 24:\r\n list.add(String.valueOf(stats.get(\"shots\").split(\":\")[1]));\r\n break;\r\n case 25:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"potPercentage\").split(\":\")[0])) + \"%\");\r\n break;\r\n case 26:\r\n list.add(\"Pot Percentage\");\r\n break;\r\n case 27:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"potPercentage\").split(\":\")[1])) + \"%\");\r\n break;\r\n case 28:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"safetyPercentage\").split(\":\")[0])) + \"%\");\r\n break;\r\n case 29:\r\n list.add(\"Safety Percentage\");\r\n break;\r\n case 30:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"safetyPercentage\").split(\":\")[1])) + \"%\");\r\n break;\r\n default:\r\n list.add(\"\");\r\n }\r\n }\r\n\r\n GridView grid = new GridView(context);\r\n grid.setAdapter(new ArrayAdapter(context, android.R.layout.simple_list_item_1, list));\r\n grid.setNumColumns(3);\r\n\r\n new AlertDialog.Builder(context)\r\n .setNegativeButton(\"Back\", null)\r\n .setTitle(\"Match Statistics\")\r\n .setView(grid)\r\n .show();\r\n }",
"public void printStats() {\n\t\t\n\t\tif(grafo==null) {\n\t\t\t\n\t\t\tthis.createGraph();\n\t\t}\n\t\t\n\t\tConnectivityInspector <Airport, DefaultWeightedEdge> c = new ConnectivityInspector<>(grafo);\n\t\t\n\t\tSystem.out.println(c.connectedSets().size());\n\n\t}",
"private static void printStats()\r\n\t{\r\n\t\tSystem.out.println(\"Keywords found: \" + keywordHits);\r\n\t\tSystem.out.println(\"Links found: \" + SharedLink.getLinksFound());\r\n\t\tSystem.out.println(\"Pages found: \" + SharedPage.getPagesDownloaded());\r\n\t\tSystem.out.println(\"Failed downloads: \" + SharedPage.getFailedDownloads());\r\n\t\tSystem.out.println(\"Producers: \" + fetchers);\r\n\t\tSystem.out.println(\"Consumers: \" + parsers);\r\n\t}",
"public void printSummary(Team team){\r\n\t\tfor(Player player : team.getPlayers()){\r\n\t\t\tif(player.isOut() == true){\r\n\t\t\t\tthis.addCommentary(player.getName()+\" : \"+player.getRuns()+\" (\"+player.getBalls()+\" Balls)\\n\");\r\n\t\t\t}else if(player.isY2B() == true){\r\n\t\t\t\tthis.addCommentary(player.getName()+\" : DNB\\n\");\r\n\t\t\t}else{\r\n\t\t\t\tthis.addCommentary(player.getName()+\" : \"+player.getRuns()+\"* (\"+player.getBalls()+\" Balls)\\n\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tthis.addCommentary(\"\\n\");\r\n\t}",
"@Override\n public void visualize() {\n if (this.count() > 0){\n for (int i = 0; i < this.count(); i++){\n System.out.println(i + \".- \" + this.bench.get(i).getName() + \" (ID: \" + this.bench.get(i).getId() + \")\");\n }\n } else {\n System.out.println(\"La banca está vacía.\");\n }\n\n }",
"public static void main(String[] args) {\n\t\tMap<Club,Map<String,List<Player>>> complexMap = PlayerDB.fetchAllPlayers().stream()\r\n\t\t.collect(Collectors.groupingBy(Player::getClub, Collectors.groupingBy(player -> {\r\n\t\t\tPlayer p = (Player)player;\r\n\t\t\treturn p.getAge() <=33 ? \"young\": \"old\";\r\n\t\t})));\r\n\t\t\r\n\t\t//System.out.println(complexMap);\r\n\t\t\r\n\t\tMap<Club,Long> countKing = PlayerDB.fetchAllPlayers().stream()\r\n\t\t.collect(Collectors.groupingBy(Player::getClub, Collectors.counting()));\r\n\t\tSystem.out.println(countKing);\r\n\t}",
"public String getClubName(){\n\t\tInteger clubid = 0;\r\n\t\tString clubname = \"\";\r\n\t\t\r\n\t\tScahaDatabase db = (ScahaDatabase) ContextManager.getDatabase(\"ScahaDatabase\");\r\n\t\t\r\n\t\ttry{\r\n\r\n \t\t\t\r\n\t\t\tVector<Integer> v = new Vector<Integer>();\r\n\t\t\tv.add(this.getProfid());\r\n\t\t\tdb.getData(\"CALL scaha.getClubforPerson(?)\", v);\r\n\t\t \r\n\t\t\tif (db.getResultSet() != null){\r\n\t\t\t\t//need to add to an array\r\n\t\t\t\trs = db.getResultSet();\r\n\t\t\t\t\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tthis.clubid = rs.getInt(\"idclub\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\tLOGGER.info(\"We have results for club for a profile\");\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tdb.cleanup();\r\n \t\t\r\n\t\t\t//now lets retrieve club name\r\n\t\t\tv = new Vector<Integer>();\r\n\t\t\tv.add(this.clubid);\r\n\t\t\tdb.getData(\"CALL scaha.getClubNamebyId(?)\", v);\r\n\t\t \r\n\t\t\tif (db.getResultSet() != null){\r\n\t\t\t\t//need to add to an array\r\n\t\t\t\trs = db.getResultSet();\r\n\t\t\t\t\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tclubname = rs.getString(\"clubname\");\r\n\t\t\t\t}\r\n\t\t\t\tLOGGER.info(\"We have results for club name\");\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tdb.cleanup();\r\n\t\t\t\r\n \t} catch (SQLException e) {\r\n \t\t// TODO Auto-generated catch block\r\n \t\tLOGGER.info(\"ERROR IN loading club by profile\");\r\n \t\te.printStackTrace();\r\n \t\tdb.rollback();\r\n \t} finally {\r\n \t\t//\r\n \t\t// always clean up after yourself..\r\n \t\t//\r\n \t\tdb.free();\r\n \t}\r\n\t\t\r\n\t\treturn clubname;\r\n\t}",
"public double stddev(int club) {\n\t\tif (club == 1) {\n\t\t\treturn 30;\n\t\t} else if (club == 2) {\n\t\t\treturn 20;\n\t\t} else if (club == 3) {\n\t\t\treturn 20;\n\t\t} else if (club == 4) {\n\t\t\treturn 17;\n\t\t} else if (club == 5) {\n\t\t\treturn 15;\n\t\t} else if (club == 6) {\n\t\t\treturn 15;\n\t\t} else if (club == 7) {\n\t\t\treturn 15;\n\t\t} else if (club == 8) {\n\t\t\treturn 15;\n\t\t} else if (club == 9) {\n\t\t\treturn 10;\n\t\t} else {\n\t\t\treturn 10;\n\t\t}\n\t}",
"void statistics();",
"public void printPlayerStat(Player player);",
"private void displayStats(CheckListView<String> checkview, TextArea stats) {\n\t\tStringBuilder start = new StringBuilder();\n\t\tfor(String critter_name:checkview.getCheckModel().getCheckedItems()){\n\t\t\ttry {\n\t\t\t\tClass classTemp = Class.forName(this.getClass().getPackage().getName() + \".\" + critter_name);\n\t\t\t\tMethod m = classTemp.getMethod(\"runStats\", List.class); //Get method\n\t\t\t\tList<Critter> instances = Critter.getInstances(critter_name);\n\t\t\t\tString output = (String)m.invoke(null, instances); //Invoke with instances\n\t\t\t\tstart.append(output).append(\"\\n\");\n\t\t\t} catch (Exception e) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tstats.clear();\n\t\tstats.appendText(start.toString());\n\t}",
"private void show() {\n System.out.println(team.toString());\n }",
"public void getStats(){\n for (Shelf shelf : this.shelves){\n if (!shelf.isEmpty()){\n shelf.printStats();\n }\n\n }\n }",
"public boolean ShowStats(){\n if(!determineValid()){\n Main.errorNumber = WrongNumber;\n return false;\n }\n labelNames();\n groupDisplay.setText(\"\");\n groupDisplay.setText(groupDisplay.getText() + displayArray(racers.get(group.get(0))));\n\n for(int i = 1; i < group.size(); ++i){\n groupDisplay.setText(groupDisplay.getText() + \"\\n\\n\" + displayArray(racers.get(group.get(i))));\n\n }\n\n return true; //success\n }",
"public void printAllPlayerStats(List<Player> players);",
"private void callForStats() throws SQLException, ClassNotFoundException{\n\t\tString[] stats;\n\t\toutputTA.setText(\"\");\n\t\tif(custTypeCB.getSelectedIndex() == Globals.SINGLE_CUST)\n\t\t\tstats = dBConnection.getStats(Integer.parseInt(custIdTF.getText()));\n\t\telse\n\t\t\tstats = dBConnection.getStats(custTypeCB.getSelectedIndex());\n\t\t\n\t\tfor(String str : stats){\n\t if(str == null)\n\t \tcontinue;\n\t outputTA.append(str+\"\\n\");\n\t\t}\n\t}",
"@Test\n public void destiny2GetClanAggregateStatsTest() {\n Long groupId = null;\n String modes = null;\n InlineResponse20049 response = api.destiny2GetClanAggregateStats(groupId, modes);\n\n // TODO: test validations\n }",
"@Override\n public void update(Observable o, Object arg) {\n if (o instanceof ChartDataHolder)\n displayStatistics(((ChartDataHolder) o).getCMCSpecificStats(cmc - 1));\n }",
"private void filter(ArrayList<JSONObject> clubs) throws JSONException, InterruptedException {\r\n\t int index; \r\n\t String back = \"\";\r\n\t boolean done;\r\n\t \r\n\t // print clubs \r\n\t do {\r\n\t for (JSONObject c : clubs) {\r\n\t \t index = clubs.indexOf(c) + 1;\r\n\t \t logger.log(Level.INFO, index + \". \" + c.get(cName).toString());\r\n\t }\r\n\t\r\n\t index = -1;\r\n \r\n \t logger.log(Level.INFO, \"Please enter the number of the club you\" +\r\n\t\t \" would like to view or 'back' to return to the filter page\");\r\n \t \r\n \t if (in.hasNextInt()) \r\n \t index = in.nextInt();\r\n else\r\n \t back = in.nextLine();\r\n \t \r\n \t // if user wants to view club page go to page\r\n\t if (index > 0 && index <= clubs.size()) {\r\n\t \t done = true;\r\n\t \t clubs.get(index);\r\n\t }\r\n\t else if (\"back\".equals(back)) {\r\n\t \t done = true;\r\n\t \t displayFilter();\r\n\t }\r\n\t else {\r\n\t \t done = false;\r\n\t \t logger.log(Level.INFO, \"Invalid option.\\n\");\r\n\t }\r\n } while (!done);\r\n }",
"public void printStats() {\n\t\tSystem.out.println(\"========== LCMFreq v0.96r18 - STATS ============\");\n\t\tSystem.out.println(\" Freq. itemsets count: \" + frequentCount);\n\t\tSystem.out.println(\" Total time ~: \" + (endTimestamp - startTimestamp)\n\t\t\t\t+ \" ms\");\n\t\tSystem.out.println(\" Max memory:\" + MemoryLogger.getInstance().getMaxMemory());\n\t\tSystem.out.println(\"=====================================\");\n\t}",
"public void showPlayerStats(Player player) {\n pIcon = new JLabel(player.getName() + \"'s turn\");\n pIcon.setBackground(Color.white);\n pIcon.setBorder(BorderFactory.createEtchedBorder(0));\n pIcon.setBounds(icon.getIconWidth() + 10, 240, 150, 20);\n bPane.add(pIcon, new Integer(2));\n\n //JButton pRank;\n pRank = new JLabel(\"Rank: \" + player.getRank());\n pRank.setBackground(Color.white);\n pRank.setBorder(BorderFactory.createEtchedBorder(0));\n pRank.setBounds(icon.getIconWidth() + 10, 270, 150, 20);\n bPane.add(pRank, new Integer(2));\n\n //JButton pCredits;\n pCredits = new JLabel(\"Credits: \" + player.getCredits());\n pCredits.setBackground(Color.white);\n pCredits.setBorder(BorderFactory.createEtchedBorder(0));\n pCredits.setBounds(icon.getIconWidth() + 10, 300, 150, 20);\n bPane.add(pCredits, new Integer(2));\n\n //JButton pDollars;\n pDollars = new JLabel(\"Dollars: \" + player.getDollars());\n pDollars.setBackground(Color.white);\n pDollars.setBorder(BorderFactory.createEtchedBorder(0));\n pDollars.setBounds(icon.getIconWidth() + 10, 330, 150, 20);\n bPane.add(pDollars, new Integer(2));\n\n //JButton pRehearsalTokens;\n pRehearsalTokens = new JLabel(\"Rehears Toks: \" + player.getRehearsalTokens());\n pRehearsalTokens.setBackground(Color.white);\n pRehearsalTokens.setBorder(BorderFactory.createEtchedBorder(0));\n pRehearsalTokens.setBounds(icon.getIconWidth() + 10, 360, 150, 20);\n bPane.add(pRehearsalTokens, new Integer(2));\n\n //JButton pRoom;\n pRoom = new JLabel(\"Room: \" + player.getRoom());\n pRoom.setBackground(Color.white);\n pRoom.setBorder(BorderFactory.createEtchedBorder(0));\n pRoom.setBounds(icon.getIconWidth() + 10, 390, 150, 20);\n bPane.add(pRoom, new Integer(2));\n\n //JButton pRole;\n if (player.getRole() == null) {\n pRole = new JLabel(\"Role: None\");\n } else {\n pRole = new JLabel(\"Role: \" + player.getRole().getName());\n }\n pRole.setBackground(Color.white);\n pRole.setBorder(BorderFactory.createEtchedBorder(0));\n pRole.setBounds(icon.getIconWidth() + 10, 420, 150, 20);\n bPane.add(pRole, new Integer(2));\n\n pDays = new JLabel(\"Day: \"+Deadwood.getInstance().getDays());\n pDays.setBackground(Color.red);\n pDays.setOpaque(true);\n pDays.setBorder(BorderFactory.createEtchedBorder(0));\n pDays.setBounds(icon.getIconWidth() + 10, 480, 150, 20);\n bPane.add(pDays, new Integer(2));\n }",
"private void printStats()\n\t{\n\t\t// X\n\t\tSystem.out.println(\"X:\");\n\t\tfor(int i = 0; i < xPosList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(xPosList.get(i));\n\t\t}\n\n\t\t// Y\n\t\tSystem.out.println(\"Y:\");\n\t\tfor(int i = 0; i < yPosList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(yPosList.get(i));\n\t\t}\n\n\t\t// Time\n\t\tSystem.out.println(\"Time:\");\n\t\tfor(int i = 0; i < timeList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(timeList.get(i));\n\t\t}\n\t}",
"private void displayChampionshipDetails()\n {\n displayLine();\n System.out.println(\"########Formula 9131 Championship Details########\");\n displayLine();\n System.out.println(getDrivers().getChampionshipDetails());\n }",
"static void showStatistics() throws IOException {\n System.out.println(\"You entered \" + initialSlots + \" for the number of slots on your wheel.\");\n System.out.println(\"You entered \" + initialZeroes + \" for the number of 0's or 00's on your wheel.\");\n System.out.println(\"You entered \" + initialVisits + \" for the number of times you visited to the casino.\");\n System.out.println(\"You entered $\" + initialDollars + \" for the amount of money you started with at every visit to the casino.\");\n System.out.println(\"You had $\" + dollarsRisked + \" for the total amount of money you brought to the casino over your visits.\");\n System.out.println(\"You walked away with $\" + moneyCount + \" total over \" + winCount + \" wins of your \" + initialVisits + \" total visits. This is %\" + df.format(percentWon) +\n \" of the $\" + dollarsRisked + \" you brought to the casino.\");\n System.out.println(\"Your most money won on a spin was $\" + biggestGain + \" across all your visits.\");\n // Prints to console if the user never won once on all their visits to the casino, otherwise lets them know the largest amount they walked away with\n if (largestWalkedAway < 1) {\n System.out.println(\"Sorry, you never walked away a winner across all \" + initialVisits + \" visits to the casino.\");\n } else {\n System.out.println(\"The most you ever walked away with on a visit to the casino was $\" + largestWalkedAway + \".\");\n }\n System.out.println(\"You came out a loser \" + lossCount + \" times out of your \" + initialVisits + \" visits.\" );\n // Prints to console only if the user never won once on all their visits to the casino\n if (completeLoss >= 1) {\n System.out.println(\"You completely lost all of your money in \" + completeLoss + \" visits.\");\n }\n // Gives the user of their average winnings/losses per visit of the casino\n System.out.println(\"You won an average of $\" + df.format(((float)runningTotal / initialVisits))+ \" each time you visited the casino.\");\n System.out.println(\"Out of \" + initialVisits + \" visits you walked away a winner \" + winCount + \" times. You walked away a loser \" + lossCount + \" times. \" +\n \"You broke even \" + brokeEven + \" times.\\n\");\n // Prompts the user to press Enter to exit the program\n System.out.println(\"Press Enter to exit.\");\n System.in.read();\n }",
"public void printPlayerStats(PlayerStats statistics) {\r\n\t\tSystem.out.print(statistics.playerStatsToString());\r\n\t}",
"public String addStats(String heading, String subheading) {\n String output = \"<div class='result stat'>\\n\"\n + \" <div class='top'>\\n\"\n + \" <img class='icon' src='https://www.flaticon.com/svg/static/icons/svg/423/423786.svg'>\\n\"\n + \" <div class='text'>\\n\"\n + \" <a class='stat'>\" + heading + \"</a>\\n\"\n + \" <a class='desc'>\" + subheading + \"</a>\\n\"\n + \" </div>\\n\"\n + \" </div>\\n\"\n + \" </div>\";\n\n return output;\n }",
"public void displaySquad(Squad squad);",
"public void show()\n {\n System.out.println( getFullName() + \", \" +\n String.format(Locale.ENGLISH, \"%.1f\", getAcademicPerformance()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getSocialActivity()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getCommunicability()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getInitiative()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getOrganizationalAbilities())\n );\n }",
"public void displayAllInfo(){\nSystem.out.println(\"Dimensions of the room - length in feet : \" + room.getLengthInFeet() + \" width in feet :\" + room.getWidthInFeet());\nSystem.out.println(\"Price per square foot :\" + pricePerSquareFoot);\nSystem.out.println(\"Total Cost :\" + calculateTotalCost());\n}",
"public void displayStats()\n {\n if(graph == null)\n {\n clearStats();\n }\n else\n { \n pathJTextArea.setText(graph.getPathString(pathList));\n costJTextField.setText(decimal.format(graph.getPathCost(pathList)));\n timeJTextField.setText(String.valueOf(timePassed));\n }\n }",
"void showRanking(String winner, String rank);",
"protected abstract String getStatistics();",
"public void printSummary() {\n\t\tSystem.out.println(MessageFormat.format(\"\\nSummary:\\n Name: {0}\\n Range: 1 to {1}\\n\", this.name, this.numSides));\n\t}",
"private void displayAllProjects() {\n for(Project projects: Project.totalProjects){\n projects.displayProject();\n System.out.println(\"Popularity\\t\\t: \" + projects.getPopularityCounter());\n }\n }",
"public void printPlayerStatus() {\n System.out.println(getName() + \" owns \" +\n getOwnedCountries().size() + \" countries and \"\n + getArmyCount() + \" armies.\");\n\n String ownedCountries = \"\";\n for (Country c : getOwnedCountries())\n {\n ownedCountries += c.getCountryName().name() + \": \" + c.getArmyOccupied() + \"\\n\";\n }\n System.out.println (ownedCountries);\n }",
"private void displaySchalorship() {\n\n for (Scholarship scholarship : scholarshipDatabase) {\n\n stdOut.println(scholarship.toString() + \"\\n\");\n\n }\n }",
"private void doSomething(){\n System.out.println(\"Robodromo \" + theRobodrome.getName() +\n \"\\nrighe e colonne, \" + this.theRobodrome.getRowCount() +\n \", \" + this.theRobodrome.getColumnCount());\n System.out.println(theTraining.getDeck());\n }",
"public void theStats(Spy bond, Map grid, PowerUp p) {\r\n\t\tif(p != null){\r\n\t\t\tif (bond.getLives() != 0) {\r\n\t\r\n\t\t\tSystem.out.print(\"\\nThe spy has \" + bond.getLives()\r\n\t\t\t\t\t+ \" lives remaining.\");\r\n\t\t} else {\r\n\t\t\tSystem.out\r\n\t\t\t\t\t.print(\"\\nThe spy has no lives remaining! Use your last well!\");\r\n\t\t}\r\n\t\tif (p.hasBullet() == 1) {\r\n\t\t\tSystem.out.print(\"\\nThe spy has \" + p.hasBullet()\r\n\t\t\t\t\t+ \" bullet remaining.\");\r\n\t\t} else {\r\n\t\t\tSystem.out.print(\"\\nThe spy has no bullets remaining!\");\r\n\t\t}\r\n\t\tif (grid.ninjaCount() != 0) {\r\n\t\t\tSystem.out.println(\"\\nThere are \" + grid.ninjaCount()\r\n\t\t\t\t\t+ \" ninjas remaining!\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No ninjas remain! Happy briefcase hunting!\");\r\n\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void execute() {\n\t\tSystem.out.println(\"==STATISTICS FOR THE RESTAURANT==\");\n\t\tSystem.out.println(\"Most used Ingredients:\");\n\t\tmanager.printIngredients();\n\t\tSystem.out.println(\"Most ordered items:\");\n\t\tmanager.printMenuItems();\n\t\tSystem.out.println(\"==END STATISTICS==\");\n\t}",
"@Override\r\n public void display() { //implements abstract display() method from Division.java\r\n System.out.println(\"Division Name: \" + getDivisionName());\r\n System.out.println(\"Account Number: \" + getAccountNumber());\r\n\r\n System.out.println(\"Country: \" + getCountry());\r\n System.out.println(\"Language Spoken: \" + getLanguageSpoken() + \"\\n\");\r\n\r\n }",
"private void showStat() {\n\t\tSystem.out.println(\"=============================\");\n\t\tSystem.out.println(\"Your won! Congrates!\");\n\t\tSystem.out.println(\"The word is:\");\n\t\tSystem.out.println(\"->\\t\" + this.word.toString().replaceAll(\" \", \"\"));\n\t\tSystem.out.println(\"Your found the word with \" \n\t\t\t\t+ this.numOfWrongGuess + \" wrong guesses.\");\n\t}",
"public void printStatistics() {\r\n\t\tLog.info(\"*** Statistics of Sequence Selector ***\");\r\n\r\n\t\t// chains\r\n\t\tLog.info(String.format(\"Chains: %d\", chains.size()));\r\n\t\tLog.info(String.format(\"Executable Chains: %d\", execChains.size()));\r\n\t\tLog.info(String.format(\"Causal Executable Chains: %d\",\r\n\t\t\t\tcausalExecChains.size()));\r\n\r\n\t\t// bushes\r\n\t\tLog.info(String.format(\"Bushes: %d\", bushes.size()));\r\n\t\tLog.info(String.format(\"Executable Bushes: %d\", execBushes.size()));\r\n\t\tLog.info(String.format(\"Required Bushes: %d\", requiredExecBushes.size()));\r\n\t\tLog.info(String.format(\"Redundant Bushes: %d\",\r\n\t\t\t\tredundantExecBushes.size()));\r\n\r\n\t\t// total\r\n\t\tLog.info(String.format(\"Bushes in Chains: %d\", bushesInChains.size()));\r\n\t\tLog.info(String.format(\"Total Sequences: %d\", totalSequences.size()));\r\n\r\n\t\t// time\r\n\t\tLog.info(String.format(\"Total Time: %d ms\", stopWatch.getTime()));\r\n\t\tLog.info(String.format(\"Time per Event: %d ms\", stopWatch.getTime()\r\n\t\t\t\t/ events.size()));\r\n\t}",
"public static String printStats() {\n return \"Your Statistics:\" + \"\\n\" +\n \"Total Time in Game (Seconds): \" + timeElapsedSeconds + \"\\n\" +\n \"Total Points: \" + totalScore + \"\\n\" +\n \"Total Number of Taps on Screen: \" + counterClicks + \"\\n\" +\n \"Thanks for Playing!\";\n }",
"private static void displayStats() {\n\t\tint numPlay = 0;\n\t\tint numWon = 0;\n\t\tint sumGuess = 0;\n\t\tint minGuess = Integer.MAX_VALUE;\n\t\tint maxGuess = Integer.MIN_VALUE;\n\t\tdouble average = 0;\n\t\tint lastNumGuess = 0;\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(fileName));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tnumPlay++;\n\t\t\t\tlastNumGuess = Integer.parseInt(line);\n\t\t\t\tif (lastNumGuess > 0) { // a positive number of guesses indicates the user won the game\n\t\t\t\t\tnumWon++;\n\t\t\t\t\tminGuess = Math.min(minGuess, lastNumGuess);\n\t\t\t\t\tmaxGuess = Math.max(maxGuess, lastNumGuess);\n\t\t\t\t\tsumGuess += lastNumGuess;\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\t\t} catch (FileNotFoundException exception) {\n\t\t\tSystem.out.println(\"It seems that you haven't played this game before. Keep playing to gather statistics!\");\n\t\t\treturn;\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Sorry the software encountered an IO Error. Please try again later.\");\n\t\t}\n\t\tSystem.out.println(\"Below are the summary statistics: \");\n\t\tSystem.out.println(\"Number of games played: \" + numPlay);\n\t\tSystem.out.println(\"Number of games won: \" + numWon);\n\t\tSystem.out.println(String.format(\"Total number of guesses: %d\", sumGuess + 12 * (numPlay - numWon)));\n\t\tif (lastNumGuess < 1) {\n\t\t\tSystem.out.println(\"Last time you lost\");\n\t\t} else {\n\t\t\tSystem.out.println(String.format(\"Last time you won and made %d guess%s\", lastNumGuess,\n\t\t\t\t\t(lastNumGuess > 1 ? \"es\" : \"\")));\n\t\t}\n\t\tif (numWon > 0) {\n\t\t\tSystem.out.println(\"Minimum number of guesses to win: \" + minGuess);\n\t\t\tSystem.out.println(\"Maximum number of guesses to win: \" + maxGuess);\n\t\t\taverage = (double) sumGuess / numWon;\n\t\t\tSystem.out.println(String.format(\"Average number of guesses to win: %.2f\", average));\n\t\t}\n\t}",
"private void actionStatisticalData() {\n String message = getStatisticalMsg(true);\n\n JOptionPane.showMessageDialog(null, message, \"Statistical data\",\n JOptionPane.PLAIN_MESSAGE);\n }",
"public static void displayStats(int draws, int cpuWins, int playerWins, int rounds, String userName) {\n if(rounds == 1) {\n System.out.println(\"\\n\\nWe played \" + rounds + \" game of Rock Paper Scissors.\");\n }\n \n else {\n System.out.println(\"\\n\\nWe played \" + rounds + \" games of Rock Paper Scissors.\");\n }\n //Display final stats of all rounds, note the check for grammar!\n if(cpuWins == 1) {\n System.out.println(\"The computer won \" + cpuWins + \" time.\");\n }\n else {\n System.out.println(\"The computer won \" + cpuWins + \" times.\");\n }\n if(playerWins == 1) {\n System.out.println(userName + \" won \" + playerWins + \" time.\");\n }\n else {\n System.out.println(userName + \" won \" + playerWins + \" times.\");\n }\n if(draws == 1) {\n System.out.println(\"There was \" + draws + \" draw.\");\n }\n else {\n System.out.println(\"There were \" + draws + \" draws.\");\n }\n \n //if player is better than cpu\n if(playerWins > cpuWins) {\n System.out.println(\"You are a master at Rock, Paper, Scissors.\");\n }\n \n //if cpu is better than player\n if(cpuWins > playerWins) {\n System.out.println(\"I am a master at Rock, Paper, Scissors.\");\n }\n \n //if cpu and player are evenly matched\n if(playerWins == cpuWins) {\n System.out.println(\"We are evenly matched at this game.\");\n }\n }",
"private void displayTeams() {\n SwapTeamMembersController.calculateTeamConstraints();\n System.out.println(\"\\nTeams formed are:\");\n for (Team team: Team.allTeams) {\n System.out.println(Constraint.ANSI_GREEN + \"\\nThe team ID\\t\\t\\t\\t: \" + team.getTeamID() + Constraint.ANSI_RESET +\n \"\\nThe Project Assigned\\t: \" + team.getProjectAssigned().getProjectId() + \": \" + team.getProjectAssigned().getProjectTitle() +\n \"\\nThe team's fitness is\\t: \" + team.getTeamFitness());\n System.out.print(\"\\nThe Students IDs of students in this team are: \\n\");\n for (Student student: team.getStudentsInTeam()) {\n System.out.print(student.getId() + \"\\tName: \" + student.getFirstName() + \"\\t\\tGender : \" + student.getGender() + \"\\t\\tExperience : \" + student.getExperience() + \" years\\n\");\n }\n int j = 1;\n System.out.println(\"\\nConstraints met are (with weightage):\");\n for (Constraint c: team.getConstraintsMet()) {\n System.out.println(j + \". \" + c.getConstraintDescription() + \"\\t: \" + c.getWeightAge());\n j++;\n }\n }\n }",
"private void displayStatistics(ArrayList<Double> stats) {\n chart.getData().clear();\n XYChart.Series series = new XYChart.Series();\n series.setName(\"CMC\");\n\n double offset = stats.get(0);\n\n for (int index = 1; index < stats.size(); index++) {\n series.getData().add(new XYChart.Data(index + offset, stats.get(index)));\n }\n\n chart.getData().add(series);\n }",
"private void showCardStats() {\n TextView unlockedNum = findViewById(R.id.UnlockedNum);\n unlockedNum.setText(\n \" \" + this.masterDeck.retrieveUnlockedCardNames().size() +\n \" / \" + this.masterDeck.deckSize()\n );\n }",
"public static String showAllStats() {\n return showStats(allStats, \"All stats\");\n }",
"public String printResults(Athletes competitor, Game gam){\n\t\tAthletes winner1 = gam.getWinner1();\n\t\tAthletes winner2 = gam.getWinner2();\n\t\tAthletes winner3 = gam.getWinner3();\n\t\t\n\t\t\t\tif(competitor == winner1){\n\t\t\t\t\tString data = (String.format(\n\t\t\t\t\t\t\t\"ID: %-15s \\t Name: %-25s \\t Time: %-4d seconds \\t Points earned: 5\", competitor.getID(),\n\t\t\t\t\t\t\tcompetitor.getName(), competitor.getTime()));\n\t\t\t\t\treturn data;\n\t\t\t\t}else if(competitor == winner2){\n\t\t\t\t\tString data = (String.format(\n\t\t\t\t\t\t\t\"ID: %-15s \\t Name: %-25s \\t Time: %-4d seconds \\t Points earned: 3\", competitor.getID(),\n\t\t\t\t\t\t\tcompetitor.getName(), competitor.getTime()));\n\t\t\t\t\treturn data;\n\t\t\t\t}else if(competitor == winner3){\n\t\t\t\t\tString data = (String.format(\n\t\t\t\t\t\t\t\"ID: %-15s \\t Name: %-25s \\t Time: %-4d seconds \\t Points earned: 1\", competitor.getID(),\n\t\t\t\t\t\t\tcompetitor.getName(), competitor.getTime()));\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\t\t\t\t\tString data = (String.format(\n\t\t\t\t\t\t\t\"ID: %-15s \\t Name: %-25s \\t Time: %-4d seconds \\t Points earned: 0\", competitor.getID(),\n\t\t\t\t\t\t\tcompetitor.getName(), competitor.getTime()));\n\t\t\t\t\treturn data;\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"public void display() {\r\n String kind;\r\n if (profit == true) {\r\n kind = \"profit\";\r\n }\r\n\r\n else kind = \"non-profit\";\r\n System.out.println(name + \" is a \" + kind + \" organization that has\" + \" \" + revenue + \" dollars in revenue\" );\r\n }",
"public void stats() {\n\t\tSystem.out.println(\"Hash Table Stats\");\n\t\tSystem.out.println(\"=================\");\n\t\tSystem.out.println(\"Number of Entries: \" + numEntries);\n\t\tSystem.out.println(\"Number of Buckets: \" + myBuckets.size());\n\t\tSystem.out.println(\"Histogram of Bucket Sizes: \" + histogram());\n\t\tSystem.out.printf(\"Fill Percentage: %.5f%%\\n\", fillPercent());\n\t\tSystem.out.printf(\"Average Non-Empty Bucket: %.7f\\n\\n\", avgNonEmpty());\t\t\n\t}",
"public String getStatistics() throws IOException{\n initiateWordCount();\n getHamStatistics(); \n getSpamStatistics();\n return printStatistics(); \n }",
"private void showGameScore() {\n System.out.println(messageProvider.provideMessage(\"score\"));\n System.out.println(settings.getPlayers().get(0).getScore()\n + \" vs \" + settings.getPlayers().get(1).getScore());\n }",
"private ClubSearch() \r\n {\r\n in = new Scanner(System.in);\r\n db = DatabaseManager.getInstance();\r\n \r\n openPrompt = \"Would you like to search for a club, \" +\r\n \t \"filter by type of club, list clubs, or exit? (s/f/l/e)\";\r\n cDatabase = \"ClubDatabase\";\r\n cName = \"ClubName\";\r\n }",
"public void display() {\n String box = \"\\n+--------------------------------------------+\\n\";\n String header = \"| \" + name;\n String lvlStat = \"Lv\" + level;\n for (int i=0; i<42-name.length()-lvlStat.length(); i++) {\n header += \" \";\n }\n header += lvlStat + \" |\\n\";\n System.out.println(box + header + \"| \" + getHealthBar() + \" |\" + box);\n }",
"public static void showSportsman(Runner[] runners, int numberOfRunners) {\n\n System.out.println(\"спорстмены, результаты которых выше средней скорости по спортшколе\");\n for (int i = 0; i < numberOfRunners; i++) {\n if (runners[i].getAverageRun() > countAllAverage(runners, numberOfRunners)) {\n System.out.println(runners[i].toString());\n }\n\n }\n\n System.out.println(\"спорстмены, результаты которых ниже средней скорости по спортшколе\");\n\n for (int i = 0; i < numberOfRunners; i++) {\n if (runners[i].getAverageRun() <= countAllAverage(runners, numberOfRunners)) {\n System.out.println(runners[i].toString());\n }\n\n }\n\n\n }",
"@Override\n public void onBindViewHolder(@NonNull RecyclerView.ViewHolder viewHolder, int i) {\n Log.d(TAG, \"onBindViewHolder: \" + ((RecmdClubViewHolder) viewHolder).title);\n ((RecmdClubViewHolder) viewHolder).title.setText(mClubList.get(i).getName());\n //show joined clubs\n //String list of all club\n if (mClubJoined != null) {\n if (mClubList.get(i) != null) {\n if (mClubJoined.contains(mClubList.get(i).getName()))\n ((RecmdClubViewHolder) viewHolder).isJoined.setVisibility(View.VISIBLE);\n }\n }\n }",
"public void printStats() {\n\t\tSystem.out.println(\"============= RULEGROWTH - STATS ========\");\n\t\tSystem.out.println(\"Sequential rules count: \" + ruleCount);\n\t\tSystem.out.println(\"Total time: \" + (timeEnd - timeStart) + \" ms\");\n\t\tSystem.out.println(\"Max memory: \" + MemoryLogger.getInstance().getMaxMemory());\n\t\tSystem.out.println(\"==========================================\");\n\t}",
"private static void memberExport(String club, HttpServletResponse resp, PrintWriter out, HttpServletRequest req, Connection con) {\r\n\r\n \r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n \r\n //\r\n // First, verify club name and key as a security measure (all new clubs must be added here!)\r\n //\r\n if (!club.equals(\"interlachen\") || !req.getParameter(\"key\").equals(\"asdf\")) {\r\n \r\n Utilities.logError(\"dataLoader.memberExport - Unknown Club or Key: Club = \" +club+ \", key = \" +req.getParameter(\"key\")+ \", todo = memberExport\");\r\n out.print(\"Error: Improper request. Invalid club or key.\");\r\n return;\r\n }\r\n \r\n resp.setContentType(\"text/csv\"); // text-csv file\r\n resp.setHeader(\"Content-Disposition\", \"attachment;filename=\\\"\"+club+\"-login-counts.csv\\\"\"); \r\n \r\n StringBuffer sb = new StringBuffer(\"\"); // Use a stringbuffer to hold the records\r\n \r\n //\r\n // Add header row\r\n //\r\n sb.append(\"\\\"ForeTees Id\\\",\");\r\n sb.append(\"\\\"Member #\\\",\");\r\n sb.append(\"\\\"Membership\\\",\");\r\n sb.append(\"\\\"Member Type\\\",\");\r\n sb.append(\"\\\"Total Logins\\\",\");\r\n sb.append(\"\\\"Mobile Logins\\\",\");\r\n sb.append(\"\\\"App Logins\\\"\\n\");\r\n \r\n try {\r\n\r\n //\r\n // Get member info and output as table rows\r\n //\r\n if (con != null) {\r\n \r\n stmt = con.createStatement(); \r\n \r\n String sql = \"\" +\r\n \"SELECT id, username, count, m_ship, m_type, mobile_count, mobile_app_count \" +\r\n \"FROM member2b \" +\r\n \"WHERE inact=0 AND billable = 1\";\r\n \r\n rs = stmt.executeQuery(sql);\r\n \r\n while (rs.next()) {\r\n\r\n sb.append(\"\\\"\" + rs.getInt(\"id\") + \"\\\",\");\r\n sb.append(\"\\\"\" + rs.getString(\"username\") + \"\\\",\");\r\n sb.append(\"\\\"\" + rs.getString(\"m_ship\") + \"\\\",\");\r\n sb.append(\"\\\"\" + rs.getString(\"m_type\") + \"\\\",\");\r\n sb.append(\"\\\"\" + rs.getInt(\"count\") + \"\\\",\");\r\n sb.append(\"\\\"\" + rs.getInt(\"mobile_count\") + \"\\\",\");\r\n sb.append(\"\\\"\" + rs.getInt(\"mobile_app_count\") + \"\\\"\\n\");\r\n }\r\n \r\n stmt.close();\r\n }\r\n \r\n out.print(sb.toString()); // output the file\r\n \r\n } catch (Exception e) {\r\n\r\n Utilities.logError(\"Error in dataLoader.memberExport for club: \" + club + \". Exception= \" + org.apache.commons.lang.exception.ExceptionUtils.getStackTrace(e));\r\n out.print(\"Error: Database error gathering member data.\");\r\n\r\n } finally {\r\n\r\n try { rs.close(); }\r\n catch (Exception ignore) {}\r\n\r\n try { stmt.close(); }\r\n catch (Exception ignore) {}\r\n }\r\n\r\n }",
"private static void displayPlayerStats(Object[] stats, String[] helmetSlot, String[] chestSlot, String[] weaponSlot, String[] glovesSlot, String[] bootsSlot){\r\n System.out.println(\"Name: \" + stats[0]);\r\n System.out.println(\"Level: \" + stats[1]);\r\n System.out.println(\"Experience: \" + stats[2]);\r\n System.out.println(\"HP: \" + stats[3] + \"/\" + stats[4]);\r\n System.out.println(\"MP: \" + stats[5] + \"/\" + stats[6]);\r\n System.out.println(\"Attack: \" + stats[7]);\r\n System.out.println(\"Defense: \" + stats[8]);\r\n System.out.println(\"Strength: \" + stats[9]);\r\n System.out.println(\"Intelligence: \" + stats[10]);\r\n System.out.println(\"Vitality: \" + stats[11]);\r\n System.out.println(\"Stat Points Available: \" + stats[12]);\r\n System.out.println(\"Gold: \" + stats[13]);\r\n System.out.println(\"Helmet: [\" + helmetSlot[0] + \"]\" + \"{\" + getItemRarity(helmetSlot) + \"}\");\r\n System.out.println(\"Chest Plate: [\" + chestSlot[0] + \"]\" + \"{\" + getItemRarity(chestSlot) + \"}\");\r\n System.out.println(\"Gloves: [\" + glovesSlot[0] + \"]\" + \"{\" + getItemRarity(glovesSlot) + \"}\");\r\n System.out.println(\"Boots: [\" + bootsSlot[0] + \"]\" + \"{\" + getItemRarity(bootsSlot) + \"}\");\r\n System.out.println(\"Weapon: [\" + weaponSlot[0] + \"]\" + \"{\" + getItemRarity(weaponSlot) + \"}\");\r\n }",
"@Override\n public void display(){\n System.out.println(\"Student id: \"+getStudentId()+\"\\nName is: \"+getName()+\"\\nAge :\"+getAge()+\"\\nAcademic year: \"+getSchoolYear()\n +\"\\nNationality :\"+getNationality());\n }",
"private void showSpecificWobblyScore(MessageChannel channel) {\n int index = 0;\n try {\n index = Integer.parseInt(matchId) - 1;\n }\n catch(NumberFormatException e) {\n e.printStackTrace();\n }\n if(index < 0 || index > leaderboard.size() - 1) {\n channel.sendMessage(\"That's not a rank!\").queue();\n return;\n }\n WobblyScore score = leaderboard.get(index);\n Map map = score.getMap();\n\n EmbedBuilder entryEmbedBuilder = new EmbedBuilder()\n .setTitle(codManager.getGameName() + \" Wobbly Rank #\" + (index + 1))\n .setThumbnail(thumbnail)\n .setDescription(\"Use **\" + getTrigger() + \" wobblies** to view the full leaderboard.\")\n .addField(\"Name\", score.getPlayerName(), true)\n .addField(\"Date\", score.getDateString(), true)\n .addBlankField(true)\n .addField(\"Wobblies\", MatchPlayer.formatDistance(score.getWobblies(), \"wobblies\"), true)\n .addField(\"Metres\", MatchPlayer.formatDistance(score.getMetres(), \"metres\"), true)\n .addBlankField(true)\n .addField(\"Map\", score.getMap().getName(), true)\n .addField(\"Mode\", score.getMode().getName(), true)\n .addBlankField(true)\n .addField(\"Match ID\", score.getMatchId(), true)\n .setColor(EmbedHelper.PURPLE);\n\n if(map.hasImageUrl()) {\n entryEmbedBuilder.setImage(map.getImageUrl());\n }\n channel.sendMessage(entryEmbedBuilder.build()).queue();\n }",
"private void list() throws JSONException, InterruptedException {\r\n\t /**Database Manager Object used to access mlab.com*/\r\n db.setDataBaseDestination(cDatabase, null, true);\r\n db.accessDatabase();\r\n MongoCollection<Document> col = db.getEntireDatabaseResults();\r\n \r\n // iterator to go through clubs in database\r\n Iterable<Document> iter;\r\n iter = col.find();\r\n \r\n // ArrayList of clubs names \r\n ArrayList<String> clubs = new ArrayList<>();\r\n \r\n // add names to list\r\n for (Document doc : iter) {\r\n JSONObject profile = new JSONObject(doc);\r\n clubs.add(profile.get(cName).toString());\r\n }\r\n \r\n Collections.sort(clubs);\r\n \r\n for (String name : clubs)\r\n \t logger.log(Level.INFO, name);\r\n \r\n displayOpen();\r\n }",
"public void showSquareDetails(){\r\n view.printSquareDetails(model.getSideLength(), model.getColor());\r\n }",
"private void statsOutput(long startTime, long endTime ,Stat stat, int taskSize, List<Stat> listStat) {\n\n System.out.println();\n System.out.println(\" !!! END OF REQUEST !!!\");\n System.out.println();\n System.out.println(\"----------------------------------\");\n System.out.println(\" STATISTICS\");\n System.out.println(\"----------------------------------\");\n System.out.println(\"1. Number of threads: \" + taskSize);\n System.out.println(\"2. Total run time: \" + (endTime - startTime));\n System.out.println(\"3. Total request sent: \" + stat.getSentRequestsNum());\n System.out.println(\"4. Total successful request: \" + stat.getSuccessRequestsNum());\n System.out.println(\"5. Mean latency: \" + stat.getMeanLatency());\n System.out.println(\"6. Median latency: \" + stat.getMedianLatency());\n System.out.println(\"7. 95th percentile latency: \" + stat.get95thLatency());\n System.out.println(\"8. 99th percentile latency: \" + stat.get99thLatency());\n\n if(listStat!=null){\n OutputChart outputChart = new OutputChart(listStat);\n outputChart.generateChart(\"Part 1\");\n }\n\n }",
"public void printDetailedPlayer(Player player);",
"public static void printStatistics(String statFile)\r\n\t{\r\n\t\t// TODO add code here to print statistics in the output file\r\n\t}",
"public String getStatsOfGames(){\n\n String res = \"\";\n\n if (games.size() <= 0){\n return \"No game registered in tournament\";\n }\n\n for(int num=0; num<games.size(); num++)\n {\n SoccerGames game = games.get(num);\n res += \"Game Id: \" + game.getGameId() + \" \"+ game.getHostTeam().getName() + \": \" + game.goalsScored +\n \" VS \" + game.getOpponentTeam().getName() + \": \" + game.concededGoal;\n\n }\n return res;\n }",
"public void showLargestComponent()\n {\n System.out.println(\"The most sociable community: \");\n\n Iterable<User> usersList = service.getLargestComponent();\n for(User u : usersList)\n System.out.println(u.toString());\n }",
"@Override\n\tpublic void printStudent() {\n\t\tSystem.out.print(\"학번\\t국어\\t영어\\t수학\\n\");\n\t\tSystem.out.println(\"=\".repeat(60));\n\t\tint nSize = scoreList.size();\n\t\tfor(int i = 0 ; i < nSize ; i++) {\n\t\t\tScoreVO vo = new ScoreVO();\n\t\t\tSystem.out.print(vo.getNum() + \"\\t\");\n\t\t\tSystem.out.print(vo.getKor() + \"\\t\");\n\t\t\tSystem.out.print(vo.getEng() + \"\\t\");\n\t\t\tSystem.out.print(vo.getMath() + \"\\n\");\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}",
"public static Result showStats() {\n\t\tUser currentUser = SessionHelper.getCurrentUser(ctx());\n\t\tList<Blogger> bloggerList = Blogger.find.all();\n\t\tif(currentUser != null && currentUser.username.equals(\"blogger\")){\n\t\t\treturn ok(blog.render(bloggerList,currentUser));\n\t\t}\n\n\t\t// Null Catching\n\t\tif (currentUser == null) {\n\t\t\treturn redirect(routes.Application.index());\n\t\t}\n\t\t\n\t\tallProducts = ProductController.findProduct.where().eq(\"owner.username\", currentUser.username).findList();\n\t\t\n\t\tapplyTheStringViewForStats(currentUser);\n\t\n\t\treturn ok(statsproducts.render(currentUser, allProducts));\n\n\t}",
"String displayStats() throws OrderBookOrderException;",
"public void printAllResults(){\n String round = \"Rounds: \\t\\t\";\n String team1 = fight_list.get(0).t1.name + \"\\t\\t\"; //note: We assume that all the FightResults in 1 DataBag all have the same 2 teams. Gotta write that better later.\n String team2 = fight_list.get(0).t2.name + \"\\t\\t\";\n\n for(FightResult fig : this.fight_list){\n round += fig.final_round + \"\\t\";\n team1 += fig.t1_deaths + \"\\t\";\n team2 += fig.t2_deaths + \"\\t\";\n }\n\n System.out.println(round);\n System.out.println(team1);\n System.out.println(team2);\n\n //System.out.println(\"\\n--------\\n\");\n }",
"public void info() {\r\n System.out.println(\" Name: \" + name + \" Facility: \" + facility + \" Floor: \" + floor + \" Covid: \"\r\n + positive + \" Age: \" + age + \" ID: \" + id);\r\n }",
"public void printStats(boolean recalculate)\n\t{\n\t\tif (recalculate)\n\t\t\tbestIndividual(true);\n\t\tSystem.out.println(\"\\nHosts\");\n\t\tSystem.out.println(\"Best individual won \"+hFitnesses[0][1]);\n\t\tSystem.out.println(\"Worst individual won \"+hFitnesses[hFitnesses.length-1][1]);\n\t\t\n\t\tdouble avg = 0;\n\t\tfor (int i =0; i< hFitnesses.length; i++)\n\t\t\tavg=avg+hFitnesses[i][1];\n\t\tavg=avg/hFitnesses.length;\n\t\t\n\t\tSystem.out.println(\"average wins is \"+avg);\n\t\tavg = 0;\n\t\tfor (int i =0; i< hRandFitnesses.length; i++)\n\t\t\tavg=avg+hRandFitnesses[i][1];\n\t\tavg=avg/hRandFitnesses.length;\n\t\tif (recalculate)\n\t\t\thHistory.add(avg);\n\t\tSystem.out.println(\"**********************************************\");\n\t\tSystem.out.println(\"average wins against random is \"+avg);\n\t\tSystem.out.println(\"Best individual won \"+hRandFitnesses[0][1]+\" against Random\");\n\t\tSystem.out.println(\"Worst individual won \"+hRandFitnesses[hFitnesses.length-1][1]);\n\t\tSystem.out.println(\"**********************************************\");\n\t\t\n\t\tSystem.out.println(\"\\nParasites\");\n\t\tSystem.out.println(\"Best individual won \"+pFitnesses[0][1]);\n\t\tSystem.out.println(\"Worst individual won \"+pFitnesses[pFitnesses.length-1][1]);\n\t\t\n\t\tavg = 0;\n\t\tfor (int i =0; i< pFitnesses.length; i++)\n\t\t\tavg=avg+pFitnesses[i][1];\n\t\tavg=avg/pFitnesses.length;\n\t\t\n\t\tSystem.out.println(\"average wins is \"+avg);\n\t\tavg = 0;\n\t\tfor (int i =0; i< pRandFitnesses.length; i++)\n\t\t\tavg=avg+pRandFitnesses[i][1];\n\t\tavg=avg/pRandFitnesses.length;\n\t\tif (recalculate)\n\t\t\tpHistory.add(avg);\n\t\tSystem.out.println(\"**********************************************\");\n\t\tSystem.out.println(\"average wins against random is \"+avg);\n\t\tSystem.out.println(\"Best individual won \"+pRandFitnesses[0][1]+\" against Random\");\n\t\tSystem.out.println(\"Worst individual won \"+pRandFitnesses[hFitnesses.length-1][1]);\n\t\tSystem.out.println(\"**********************************************\");\n\t\t\n\t\tif (perfectParasites.size() > 0)\n\t\t\tSystem.out.println(\"There are \"+perfectParasites.size()+\" perfect scoring parasites\");\n\t\t\n\t\tif (perfectHosts.size() > 0)\n\t\t\tSystem.out.println(\"There are \"+perfectHosts.size()+\" perfect scoring hosts\");\n\t\t\t\n\t}"
] | [
"0.6408041",
"0.6314879",
"0.61380553",
"0.6052012",
"0.597644",
"0.59358644",
"0.5913384",
"0.59064466",
"0.5883582",
"0.58716536",
"0.58555835",
"0.58468336",
"0.5834261",
"0.5826393",
"0.58023643",
"0.5786225",
"0.57579017",
"0.56871724",
"0.5685899",
"0.56806105",
"0.5672825",
"0.5667128",
"0.5654045",
"0.5635926",
"0.56335753",
"0.56262743",
"0.5617786",
"0.55938816",
"0.5590048",
"0.55552614",
"0.5554431",
"0.5545056",
"0.5516828",
"0.550759",
"0.55046064",
"0.55037796",
"0.54853964",
"0.546158",
"0.54514086",
"0.5450673",
"0.5430668",
"0.54243153",
"0.5390289",
"0.53893346",
"0.5388021",
"0.537321",
"0.5366023",
"0.5360902",
"0.53527695",
"0.5345572",
"0.53429484",
"0.53292125",
"0.532309",
"0.5290097",
"0.52887434",
"0.5272387",
"0.5261577",
"0.5249591",
"0.52467847",
"0.5245394",
"0.5245319",
"0.52425396",
"0.5236638",
"0.52358615",
"0.52357095",
"0.5217893",
"0.52092206",
"0.5207371",
"0.5207084",
"0.52057534",
"0.52046156",
"0.52013797",
"0.5197432",
"0.5190133",
"0.51888233",
"0.5176465",
"0.51760024",
"0.5174728",
"0.5168234",
"0.51642567",
"0.5161491",
"0.515684",
"0.51547223",
"0.51477015",
"0.5145705",
"0.5143761",
"0.51365757",
"0.51299226",
"0.51271784",
"0.51210123",
"0.5112345",
"0.50964177",
"0.5090489",
"0.50904244",
"0.50897115",
"0.5075152",
"0.50723386",
"0.50636214",
"0.5057884",
"0.50578225"
] | 0.68814456 | 0 |
metodo que centraliza el inicio o reinicio del registro de inventario. Este metodo tambien asigna un nuevo identificador de aplicacion. Este es almacenado en el campo sAppId del registro "ari". El id de aplicacion esta compuesto por 4 caracteres en minuscula. | public static void resetStock() {
AppEntry[] apes = ResourceUtilities.getInstalledForms();
for(int c = 0; c < apes.length; c++) {
String fna = (String) apes[c].getKey();
if (fna.equals("ar-i")) {
Random rnd = new Random();
StringBuffer sai = new StringBuffer(4);
while (sai.length() < 4) {
char ch = (char) (rnd.nextInt(26) + 97);
if (Character.isLowerCase(ch)) {
sai.append(ch);
}
}
StockRecord sr = new StockRecord();
sr.setFieldValue("sForm", fna);
sr.setFieldValue("sAppId", sai.toString());
sr.setFieldValue("sCantida", new Integer(1000));
sr.setFieldValue("sFecha", new AppDate(DIMain.bundle.getString("mea")));
PrevalentSystemManager.executeCommand(new NewRecordCommand(sr));
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void registrarAuditoria(Connexion connexion,Long idUsuario,ClienteArchivo clientearchivo,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(ClienteArchivoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(clientearchivo.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ClienteArchivoDataAccess.TABLENAME, clientearchivo.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ClienteArchivoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ClienteArchivoLogic.registrarAuditoriaDetallesClienteArchivo(connexion,clientearchivo,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(clientearchivo.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!clientearchivo.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,ClienteArchivoDataAccess.TABLENAME, clientearchivo.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////ClienteArchivoLogic.registrarAuditoriaDetallesClienteArchivo(connexion,clientearchivo,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ClienteArchivoDataAccess.TABLENAME, clientearchivo.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(clientearchivo.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ClienteArchivoDataAccess.TABLENAME, clientearchivo.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ClienteArchivoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ClienteArchivoLogic.registrarAuditoriaDetallesClienteArchivo(connexion,clientearchivo,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}",
"public void setId_inventario(Integer id_inventario) {\r\n this.id_inventario = id_inventario;\r\n }",
"private void ingresarAplicacion() {\n\t\tXlinkUtils.shortTips(\"validarIngreso 11\");\r\n\t\tEquipoDataSource equipoDataSource = new EquipoDataSource(getApplicationContext());\r\n\t\tequipoDataSource.open();\r\n\t\tequipoDataSource.crearColumnas();\r\n\t\tEquipo equipoBusqueda = new Equipo();\r\n\t\tequipoBusqueda.setEstadoEquipo(EstadoDispositivoEnum.CONFIGURACION.getCodigo());\r\n\t\tArrayList<Equipo> equipos = equipoDataSource.getEquipoEstado(equipoBusqueda);\r\n\t\tequipoDataSource.close();\r\n\t\tif(equipos != null && equipos.size() > 0){\r\n\t\t\t//Cuenta activa y equipo en configuracion\r\n\t\t\tEquipo equipo = (Equipo) equipos.toArray()[0];\r\n\t\t\tdatosAplicacion.setEquipoSeleccionado(equipo);\r\n//\t\t\tIntent i = null;\r\n\t\t\tif(equipo.getTipoEquipo().equals(TipoEquipoEnum.PORTERO.getCodigo())){\r\n\t\t\t\tnumeroSerie = ((Equipo) equipos.toArray()[0]).getNumeroSerie();\r\n\t\t\t\tprimerEquipo = false;\r\n\t\t\t\tObtenerEquipoPorNumeroSerieAsyncTask numeroSerieAsyncTask = new ObtenerEquipoPorNumeroSerieAsyncTask(null, SplashActivity.this);\r\n\t\t\t\tnumeroSerieAsyncTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\r\n//\t\t\t\ti = new Intent(SplashActivity.this, InstalarEquipoActivity.class);\r\n//\t\t\t\tstartActivity(i);\r\n\t\t\t}\r\n\r\n\t\t}else{\r\n\t\t\t//Cuenta activa y no hay dispositivos configurandose\r\n\t\t\tXlinkUtils.shortTips(\"validarIngreso 12\");\r\n\t\t\tSharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\r\n\t\t\tString numeroSerie = sharedPrefs.getString(\"prefEquipo\", \"\").toString();\r\n\t\t\tequipoDataSource = new EquipoDataSource(getApplicationContext());\r\n\t\t\tequipoDataSource.open();\r\n\t\t\tequipoBusqueda = new Equipo();\r\n\t\t\tequipoBusqueda.setTipoEquipo(TipoEquipoEnum.PORTERO.getCodigo());\r\n\t\t\tequipos = equipoDataSource.getEquipoTipoEquipo(equipoBusqueda);\r\n\r\n\t\t\tif(equipos != null && equipos.size() > 0) {\r\n\t\t\t\tdatosAplicacion.setEquipoSeleccionado(equipos.get(0));\r\n\t\t\t\tdatosAplicacion.setPorteroInstalado(true);\r\n\t\t\t}else{\r\n\t\t\t\tdatosAplicacion.setPorteroInstalado(false);\r\n\t\t\t}\r\n\r\n\t\t\tequipoBusqueda = new Equipo();\r\n\t\t\tequipoBusqueda.setNumeroSerie(numeroSerie);\r\n\t\t\tEquipo equipoPreferencia = equipoDataSource.getEquipoNumSerie(equipoBusqueda);\r\n\t\t\tequipoPreferencia.setModo(YACSmartProperties.MODO_WIFI);\r\n//\t\t\tequipoPreferencia.setNombreWiFi(\"yacareWIFI\");\r\n//\t\t\tequipoDataSource.updateEquipo(equipoPreferencia);\r\n//\t\t\tequipoDataSource.close();\r\n\r\n\t\t\tif(equipoPreferencia != null && equipoPreferencia.getId() != null && equipoPreferencia.getTipoEquipo().equals(TipoEquipoEnum.PORTERO.getCodigo())) {\r\n\t\t\t\tXlinkUtils.shortTips(\"validarIngreso 13\");\r\n\t\t\t\tdatosAplicacion.setEquipoSeleccionado(equipoPreferencia);\r\n\t\t\t\tIntent i = new Intent(SplashActivity.this, Y4HomeActivity.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t}else if(equipoPreferencia != null && equipoPreferencia.getId() != null && equipoPreferencia.getTipoEquipo().equals(TipoEquipoEnum.LUCES.getCodigo())) {\r\n\t\t\t\tXlinkUtils.shortTips(\"validarIngreso 14\");\r\n\t\t\t\t\tdatosAplicacion.setEquipoSeleccionado(equipoPreferencia);\r\n\t\t\t\tIntent i = new Intent(SplashActivity.this, LucesFragment.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t}else{\r\n\t\t\t\tXlinkUtils.shortTips(\"validarIngreso 15\");\r\n\t\t\t\tif(datosAplicacion.getPorteroInstalado()){\r\n\t\t\t\t\tXlinkUtils.shortTips(\"validarIngreso 16\");\r\n\t\t\t\t\tIntent i = new Intent(SplashActivity.this, Y4HomeActivity.class);\r\n\t\t\t\t\tstartActivity(i);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tXlinkUtils.shortTips(\"validarIngreso 17\");\r\n\t\t\t\t\tequipoDataSource = new EquipoDataSource(getApplicationContext());\r\n\t\t\t\t\tequipoDataSource.open();\r\n\t\t\t\t\tequipoBusqueda = new Equipo();\r\n\t\t\t\t\tequipoBusqueda.setTipoEquipo(TipoEquipoEnum.LUCES.getCodigo());\r\n\t\t\t\t\tequipos = equipoDataSource.getEquipoTipoEquipo(equipoBusqueda);\r\n\t\t\t\t\tequipoDataSource.close();\r\n\t\t\t\t\tdatosAplicacion.setEquipoSeleccionado(equipos.get(0));\r\n\t\t\t\t\tIntent i = new Intent(SplashActivity.this, LucesFragment.class);\r\n\t\t\t\t\tstartActivity(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n//\t\t\tdatosAplicacion.getEquipoSeleccionado().setNombreWiFi(\"yacareWIFI\");\r\n//\t\t\tequipoDataSource.updateEquipo(datosAplicacion.getEquipoSeleccionado());\r\n\t\t\tequipoDataSource.close();\r\n\t\t}\r\n\t}",
"public String getInoId();",
"public static void registrarAuditoria(Connexion connexion,Long idUsuario,DatoGeneralEmpleado datogeneralempleado,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(DatoGeneralEmpleadoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(datogeneralempleado.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,DatoGeneralEmpleadoDataAccess.TABLENAME, datogeneralempleado.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(DatoGeneralEmpleadoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////DatoGeneralEmpleadoLogic.registrarAuditoriaDetallesDatoGeneralEmpleado(connexion,datogeneralempleado,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(datogeneralempleado.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!datogeneralempleado.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,DatoGeneralEmpleadoDataAccess.TABLENAME, datogeneralempleado.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////DatoGeneralEmpleadoLogic.registrarAuditoriaDetallesDatoGeneralEmpleado(connexion,datogeneralempleado,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,DatoGeneralEmpleadoDataAccess.TABLENAME, datogeneralempleado.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(datogeneralempleado.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,DatoGeneralEmpleadoDataAccess.TABLENAME, datogeneralempleado.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(DatoGeneralEmpleadoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////DatoGeneralEmpleadoLogic.registrarAuditoriaDetallesDatoGeneralEmpleado(connexion,datogeneralempleado,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}",
"ApplicationId appId();",
"public String getAppId();",
"@Override\n\tpublic String getAppId() {\n\t\treturn app.getAppId();\n\t}",
"public long getInHouseAppId() {\r\n\t\treturn inHouseAppId;\r\n\t}",
"public Long getAppId() {\n return this.AppId;\n }",
"public String getApplicationId();",
"public void setIdAutenticacao(int idAutenticacao) {\n\t\tthis.idAutenticacao = idAutenticacao;\n\t}",
"public int getId()\r\n/* 75: */ {\r\n/* 76:110 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 77: */ }",
"public void ponerUsuarioInactivo(String idUsuario);",
"public static void registrarAuditoria(Connexion connexion,Long idUsuario,ValorPorUnidad valorporunidad,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(ValorPorUnidadConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(valorporunidad.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ValorPorUnidadConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ValorPorUnidadLogic.registrarAuditoriaDetallesValorPorUnidad(connexion,valorporunidad,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(valorporunidad.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!valorporunidad.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////ValorPorUnidadLogic.registrarAuditoriaDetallesValorPorUnidad(connexion,valorporunidad,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(valorporunidad.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ValorPorUnidadConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ValorPorUnidadLogic.registrarAuditoriaDetallesValorPorUnidad(connexion,valorporunidad,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}",
"public void setIdAutenticacao(String idAutenticacao) {\n\t\tthis.idAutenticacao = idAutenticacao;\n\t}",
"public void setIdInstituicao(Integer idInstituicao) {\n\t\tthis.idInstituicao = idInstituicao;\n\t}",
"short appId();",
"public Integer getId_inventario() {\r\n return id_inventario;\r\n }",
"public abstract String getApplicationId();",
"private void setSewarageApplicationIdgenIds(SewerageConnectionRequest request) {\n\t\tList<String> applicationNumbers = new ArrayList<>();\n\t\tif (request.getSewerageConnection().getApplicationStatus() != null && request.isDisconnectRequest()) {\n\t\t\tapplicationNumbers = getIdList(request.getRequestInfo(),\n\t\t\t\t\trequest.getSewerageConnection().getTenantId(), config.getSewerageDisconnectionIdGenName(),\n\t\t\t\t\tconfig.getSewerageDisconnectionIdGenFormat(), 1);\n\t\t} else {\n\t\t\tapplicationNumbers = getIdList(request.getRequestInfo(),\n\t\t\t\t\trequest.getSewerageConnection().getTenantId(), config.getSewerageApplicationIdGenName(),\n\t\t\t\t\tconfig.getSewerageApplicationIdGenFormat(), 1);\n\t\t}\n\t\tif (CollectionUtils.isEmpty(applicationNumbers) || applicationNumbers.size() != 1) {\n\t\t\tMap<String, String> errorMap = new HashMap<>();\n\t\t\terrorMap.put(\"IDGEN ERROR \",\n\t\t\t\t\t\"The Id of SewerageConnection returned by idgen is not equal to number of SewerageConnection\");\n\t\t\tthrow new CustomException(errorMap);\n\t\t}\n\t\trequest.getSewerageConnection().setApplicationNo(applicationNumbers.listIterator().next());\n\t}",
"@Insert({ \"insert into iiot_app_list (app_id, app_name, \", \"node, status, restart_times, \", \"up_time, template, \",\n\t\t\t\"owner, note, rest3, \", \"rest4, rest5, create_time, \", \"uuid)\",\n\t\t\t\"values (#{appId,jdbcType=INTEGER}, #{appName,jdbcType=VARCHAR}, \",\n\t\t\t\"#{node,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{restartTimes,jdbcType=CHAR}, \",\n\t\t\t\"#{upTime,jdbcType=VARCHAR}, #{template,jdbcType=VARCHAR}, \",\n\t\t\t\"#{owner,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{rest3,jdbcType=VARCHAR}, \",\n\t\t\t\"#{rest4,jdbcType=VARCHAR}, #{rest5,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, \",\n\t\t\t\"#{uuid,jdbcType=CHAR})\" })\n\t@Options(useGeneratedKeys = true, keyProperty = \"appId\",keyColumn=\"app_id\" )\n\tint insertAndGetId(IiotAppList record);",
"java.lang.String getAoisId();",
"public static void registrarAuditoria(Connexion connexion,Long idUsuario,PlantillaFactura plantillafactura,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(PlantillaFacturaConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(plantillafactura.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PlantillaFacturaDataAccess.TABLENAME, plantillafactura.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(PlantillaFacturaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////PlantillaFacturaLogic.registrarAuditoriaDetallesPlantillaFactura(connexion,plantillafactura,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(plantillafactura.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!plantillafactura.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,PlantillaFacturaDataAccess.TABLENAME, plantillafactura.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////PlantillaFacturaLogic.registrarAuditoriaDetallesPlantillaFactura(connexion,plantillafactura,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PlantillaFacturaDataAccess.TABLENAME, plantillafactura.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(plantillafactura.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PlantillaFacturaDataAccess.TABLENAME, plantillafactura.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(PlantillaFacturaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////PlantillaFacturaLogic.registrarAuditoriaDetallesPlantillaFactura(connexion,plantillafactura,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}",
"public static void setAppId(String id) {\n if (Platform.appId == null) {\n Platform.appId = id;\n // reset originId\n Platform.originId = null;\n log.info(\"application instance ID set to {}\", Platform.appId);\n } else {\n throw new IllegalArgumentException(\"application instance ID is already set\");\n }\n }",
"public int getId()\r\n/* 69: */ {\r\n/* 70:103 */ return this.idAutorizacionEmpresaSRI;\r\n/* 71: */ }",
"public static void registrarAuditoria(Connexion connexion,Long idUsuario,PresuTipoProyecto presutipoproyecto,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(PresuTipoProyectoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(presutipoproyecto.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(PresuTipoProyectoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////PresuTipoProyectoLogic.registrarAuditoriaDetallesPresuTipoProyecto(connexion,presutipoproyecto,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(presutipoproyecto.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!presutipoproyecto.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////PresuTipoProyectoLogic.registrarAuditoriaDetallesPresuTipoProyecto(connexion,presutipoproyecto,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(presutipoproyecto.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(PresuTipoProyectoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////PresuTipoProyectoLogic.registrarAuditoriaDetallesPresuTipoProyecto(connexion,presutipoproyecto,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}",
"private void controladorInicio(Controlador controlador){\n this.inicioRegistro = controlador.getInicioRegistro();\n inicio.setControlRegistro(inicioRegistro);\n this.inicioLogin = controlador.getInicioLogin();\n inicio.setControlLogin(inicioLogin);\n }",
"public void setIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI(int idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI)\r\n/* 85: */ {\r\n/* 86:118 */ this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI = idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 87: */ }",
"public void setAppId(Long AppId) {\n this.AppId = AppId;\n }",
"public void setIdventa( Integer idventa ) {\n this.idventa = idventa ;\n }",
"public String getAppid() {\n return appid;\n }",
"public String getAppid() {\n return appid;\n }",
"public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}",
"public void setId_usuario(String usuario) {\n this.id_usuario = usuario;\n }",
"public static void registrarAuditoria(Connexion connexion,Long idUsuario,Caja caja,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(CajaConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(caja.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,CajaDataAccess.TABLENAME, caja.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(CajaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////CajaLogic.registrarAuditoriaDetallesCaja(connexion,caja,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(caja.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!caja.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,CajaDataAccess.TABLENAME, caja.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////CajaLogic.registrarAuditoriaDetallesCaja(connexion,caja,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,CajaDataAccess.TABLENAME, caja.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(caja.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,CajaDataAccess.TABLENAME, caja.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(CajaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////CajaLogic.registrarAuditoriaDetallesCaja(connexion,caja,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}",
"public void setIdCliente(Integer id_cliente){\n this.id_cliente=id_cliente;\n }",
"public int getIdAutenticacao() {\n\t\treturn idAutenticacao;\n\t}",
"public static void registrarAuditoria(Connexion connexion,Long idUsuario,TarjetaCredito tarjetacredito,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(TarjetaCreditoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(tarjetacredito.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(TarjetaCreditoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////TarjetaCreditoLogic.registrarAuditoriaDetallesTarjetaCredito(connexion,tarjetacredito,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(tarjetacredito.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!tarjetacredito.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////TarjetaCreditoLogic.registrarAuditoriaDetallesTarjetaCredito(connexion,tarjetacredito,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(tarjetacredito.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(TarjetaCreditoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////TarjetaCreditoLogic.registrarAuditoriaDetallesTarjetaCredito(connexion,tarjetacredito,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}",
"public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }",
"public String getAppId() {\r\n return appId;\r\n }",
"public AppID getIdentifier () ;",
"public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tISHORARIO_IDISHORARIO=\"\";\n\t\tISAULA_IDISAULA=\"\";\n\t\tISCURSO_IDISCURSO=\"\";\n\t\t\n\t}",
"public void commonBeforeLogic()\n {\n int liApplID = 0;\n\n // Default Application ID\n if (getAPPL_ID() == 0)\n {\n try\n {\n liApplID = AMSStringUtil.convertStringToInt(AMSParams.msPrimaryApplication);\n\n // Let value stay null if not valid\n if (liApplID > 0)\n {\n setAPPL_ID(liApplID);\n }\n }\n catch (Exception foException)\n {\n liApplID = 0;\n }\n } // end if (getAPPL_ID() == 0)\n }",
"private static void registrarAuditoriaDetallesClienteArchivo(Connexion connexion,ClienteArchivo clientearchivo)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(clientearchivo.getIsNew()||!clientearchivo.getid_cliente().equals(clientearchivo.getClienteArchivoOriginal().getid_cliente()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(clientearchivo.getClienteArchivoOriginal().getid_cliente()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=clientearchivo.getClienteArchivoOriginal().getid_cliente().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(clientearchivo.getid_cliente()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=clientearchivo.getid_cliente().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ClienteArchivoConstantesFunciones.IDCLIENTE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(clientearchivo.getIsNew()||!clientearchivo.getid_tipo_archivo().equals(clientearchivo.getClienteArchivoOriginal().getid_tipo_archivo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(clientearchivo.getClienteArchivoOriginal().getid_tipo_archivo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=clientearchivo.getClienteArchivoOriginal().getid_tipo_archivo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(clientearchivo.getid_tipo_archivo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=clientearchivo.getid_tipo_archivo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ClienteArchivoConstantesFunciones.IDTIPOARCHIVO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(clientearchivo.getIsNew()||!clientearchivo.getnombre().equals(clientearchivo.getClienteArchivoOriginal().getnombre()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(clientearchivo.getClienteArchivoOriginal().getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=clientearchivo.getClienteArchivoOriginal().getnombre();\r\n\t\t\t\t}\r\n\t\t\t\tif(clientearchivo.getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=clientearchivo.getnombre() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ClienteArchivoConstantesFunciones.NOMBRE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(clientearchivo.getIsNew()||!clientearchivo.getarchivo().equals(clientearchivo.getClienteArchivoOriginal().getarchivo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(clientearchivo.getClienteArchivoOriginal().getarchivo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=clientearchivo.getClienteArchivoOriginal().getarchivo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(clientearchivo.getarchivo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=clientearchivo.getarchivo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ClienteArchivoConstantesFunciones.ARCHIVO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(clientearchivo.getIsNew()||!clientearchivo.getdescripcion().equals(clientearchivo.getClienteArchivoOriginal().getdescripcion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(clientearchivo.getClienteArchivoOriginal().getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=clientearchivo.getClienteArchivoOriginal().getdescripcion();\r\n\t\t\t\t}\r\n\t\t\t\tif(clientearchivo.getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=clientearchivo.getdescripcion() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ClienteArchivoConstantesFunciones.DESCRIPCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}",
"@Attribute(order = 200, validators = { RequiredValueValidator.class })\n\t\tString applicationId();",
"public Integer getIdInstituicao() {\n\t\treturn idInstituicao;\n\t}",
"public int getRegAppid() {\n\t\t\treturn regAppid;\n\t\t}",
"public void addAppareil(Capteur capt) {\n Log.v(Constante.TAG, \"Fonction appelée -> addAppareil\");\n\n SQLiteDatabase db = this.getWritableDatabase();\n //Log.v(\"TEST\", \"SQLITE\");\n\n ContentValues values = new ContentValues();\n values.put(KEY_IDc, capt.getIdc());\n values.put(KEY_DESCRIPTION, capt.getNom());\n //values.put(KEY_ETATr, capt.getId());\n values.put(KEY_ETATd, capt.getEtat());\n //values.put(KEY_DEMANDE_TRAITEE, capt.getId());\n //values.put(KEY_PUISSc, capt.getId());\n values.put(KEY_PUISSa, capt.getConso());\n // Inserting Row\n db.insert(TABLE_LOGIN, null, values);\n //db.close(); // Closing database connection\n }",
"com.clarifai.grpc.api.UserAppIDSet getUserAppId();",
"com.clarifai.grpc.api.UserAppIDSet getUserAppId();",
"public void setIdacesso(int pIdacesso){\n this.idacesso = pIdacesso;\n }",
"public long registerClasificadoTable(Clasificacion clasifi, Usuario usuario) {\n\n AdmSQLiteOpenHelper admin;\n ContentValues registro;\n long clasificado_id = 0;\n\n try {\n admin = new AdmSQLiteOpenHelper(this.context);\n admin.createDataBase();\n\n SQLiteDatabase bd = admin.getWritableDatabase();\n registro = new ContentValues();\n registro.put(\"clasificacion_id\", clasifi.getId());\n registro.put(\"usuario_id\", usuario.getId());\n clasificado_id = bd.insert(\"clasificado\", null, registro);\n/*\n Toast.makeText(this.context, \"Se cargaron los datos de Sincronizacion\",\n Toast.LENGTH_SHORT).show();\n*/\n //admin.openDataBase();\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n Toast.makeText(this.context, \"ERR-REGSYNC datos de Sincronizacion\",\n Toast.LENGTH_SHORT).show();\n System.out.println(\"ERR-REGSYNC\" + e.getMessage());\n }\n return clasificado_id;\n\n }",
"public int elimiarAlInicio(){\n int edad = inicio.edad;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n inicio=inicio.siguiente;\n }\n return edad;\n }",
"public String getIdAutenticacao() {\n\t\treturn idAutenticacao;\n\t}",
"public int getIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI()\r\n/* 80: */ {\r\n/* 81:114 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 82: */ }",
"public void localizarDados(int idOrcamento){\n OrcamentoCursoController orcamentoCursoController = new OrcamentoCursoController();\n this.orcamentocurso = orcamentoCursoController.consultar(idOrcamento);\n if (orcamentocurso!=null){\n ClienteController clienteController = new ClienteController();\n cliente = clienteController.consultar(orcamentocurso.getCliente());\n if (cliente!=null){\n parajTextField.setText(cliente.getEmail());\n }\n }\n }",
"private void addApp(RifidiApp app) {\n\t\tsynchronized (apps) {\n\t\t\tif (apps.containsValue(app))\n\t\t\t\treturn;\n\t\t\tint appID = serviceCounter++;\n\t\t\tapps.put(appID, app);\n\t\t\tstartApp(appID, true);\n\t\t}\n\t}",
"public void setMainApp(MainApp mainApp, Usuario usuario, int opcion) {\n\t\tthis.mainApp = mainApp;\n\t\tthis.usuario = usuario;\n\t\tthis.opcion = opcion;\n\t\tthis.observableListaGrupoUsuario = FXCollections.observableArrayList();\n\t\tthis.listaGrupoUsuario = GrupoUsuarioDAO.readTodos(this.mainApp.getConnection());\n\t\tthis.listaEmpleados = EmpleadoDAO.readEmpleadosSinUsuario(this.mainApp.getConnection());\n\t\tinicializarCombos();\n\t\tmostrarDatosInterfaz();\n\t}",
"String getBusi_id();",
"Builder fromApp(ApplicationId appId);",
"public void setIdUsuario(int value) {\n this.idUsuario = value;\n }",
"public void setIdUsuario(Integer idUsuario) {\n this.idUsuario = idUsuario;\n }",
"private boolean idSaoIguais(Service servico, Service servicoAComparar) {\n return servico.getId() == servicoAComparar.getId();\n }",
"public abstract Incidencia2 registrarIncidencia(Incidencia2 obj);",
"String getComponentAppId();",
"public int getAutorizacion_Id() {\n return autorizacion_Id;\n }",
"public Builder setAoisId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n aoisId_ = value;\n onChanged();\n return this;\n }",
"public static void registrarAuditoria(Connexion connexion,Long idUsuario,GrupoBodega grupobodega,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(GrupoBodegaConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(grupobodega.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(GrupoBodegaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////GrupoBodegaLogic.registrarAuditoriaDetallesGrupoBodega(connexion,grupobodega,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(grupobodega.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!grupobodega.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////GrupoBodegaLogic.registrarAuditoriaDetallesGrupoBodega(connexion,grupobodega,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(grupobodega.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(GrupoBodegaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////GrupoBodegaLogic.registrarAuditoriaDetallesGrupoBodega(connexion,grupobodega,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}",
"@Override\n\tpublic long getApplicationId() {\n\t\treturn _userSync.getApplicationId();\n\t}",
"@Override\r\n\tpublic void iniciarSesion() {\n\t\tthis.contextoOrdenMenosUno = new Contexto();\r\n\t\t//Obtengo el orden del xml de configuración\r\n\t\tthis.orden = Constantes.ORDER_MAX_PPMC;\r\n\t\t//Creo tantos Ordenes como dice el XML\r\n\t\tthis.listaOrdenes = new ArrayList<Orden>(this.orden+1);\r\n\t\tthis.inicializarListas();\r\n\t\tthis.compresorAritmetico = new LogicaAritmetica();\r\n\t\tthis.initSession = true;\r\n\t\tthis.tiraBits = \"\";\r\n\t\tthis.bitsBuffer = new StringBuffer();\r\n\t\tthis.finalizada = false;\r\n\t\tthis.contextoPrevio = false;\r\n\t\tthis.contextoActual = new String();\r\n\t}",
"public String getOrigin() {\n if (originId == null) {\n Utility util = Utility.getInstance();\n String id = util.getUuid();\n if (Platform.appId != null) {\n byte[] hash = crypto.getSHA256(util.getUTF(Platform.appId));\n id = util.bytes2hex(hash).substring(0, id.length());\n }\n originId = util.getDateOnly(new Date()) + id;\n }\n return originId;\n }",
"public void setIdcliente(java.lang.String idcliente) {\n this.idcliente = idcliente;\n }",
"public Utilizador(){\r\n this.id = \"\";\r\n this.email = \"\";\r\n this.nome = \"\";\r\n this.password = \"\";\r\n this.morada = \"\";\r\n this.dataNasc = new GregorianCalendar();\r\n }",
"@Transient\n\t/**\n\t * @return the idInstituicao\n\t */\n\tpublic Integer getIdInstituicao() {\n\t\treturn idInstituicao;\n\t}",
"public Integer obterIdEmpresaPorRota(Rota rota) throws ErroRepositorioException;",
"UUID getInitiativeId();",
"public void setIdPtoServicio(String idPtoServicio);",
"private void addInstituicao() {\n\n if (txtNome.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Nome Invalido\");\n txtNome.grabFocus();\n return;\n } else if (txtNatureza.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Natureza Invalido\");\n txtNatureza.grabFocus();\n return;\n }\n if ((instituicao == null) || (instituicaoController == null)) {\n instituicao = new Instituicao();\n instituicaoController = new InstituicaoController();\n }\n instituicao.setNome(txtNome.getText());\n instituicao.setNatureza_administrativa(txtNatureza.getText());\n if (instituicaoController.insereInstituicao(instituicao)) {\n limpaCampos();\n JOptionPane.showMessageDialog(null, \"Instituicao Cadastrada com Sucesso\");\n }\n }",
"public String getAppID() {\n return appID;\n }",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"private static void registrarAuditoriaDetallesDatoGeneralEmpleado(Connexion connexion,DatoGeneralEmpleado datogeneralempleado)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_numero_patronal().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_numero_patronal()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_numero_patronal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_numero_patronal().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_numero_patronal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_numero_patronal().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDNUMEROPATRONAL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_tipo_afiliacion().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_afiliacion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_afiliacion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_afiliacion().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_tipo_afiliacion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_tipo_afiliacion().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDTIPOAFILIACION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getcarnet_iess().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcarnet_iess()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcarnet_iess()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcarnet_iess();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getcarnet_iess()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getcarnet_iess() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.CARNETIESS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getsectorial_iess().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getsectorial_iess()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getsectorial_iess()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getsectorial_iess();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getsectorial_iess()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getsectorial_iess() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.SECTORIALIESS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_pais().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_pais()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_pais()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_pais().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_pais()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_pais().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDPAIS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_provincia().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_provincia()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_provincia()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_provincia().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_provincia()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_provincia().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDPROVINCIA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_canton().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_canton()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_canton()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_canton().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_canton()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_canton().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDCANTON,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_parroquia().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_parroquia()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_parroquia()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_parroquia().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_parroquia()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_parroquia().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDPARROQUIA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getfecha_nacimiento().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getfecha_nacimiento()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getfecha_nacimiento()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getfecha_nacimiento().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getfecha_nacimiento()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getfecha_nacimiento().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.FECHANACIMIENTO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getfecha_fallece().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getfecha_fallece()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getfecha_fallece()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getfecha_fallece().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getfecha_fallece()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getfecha_fallece().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.FECHAFALLECE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getvalor_evaluacion().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor_evaluacion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor_evaluacion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor_evaluacion().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getvalor_evaluacion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getvalor_evaluacion().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.VALOREVALUACION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getnumero_horas().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getnumero_horas()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getnumero_horas()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getnumero_horas().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getnumero_horas()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getnumero_horas().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.NUMEROHORAS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getvalor_hora().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor_hora()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor_hora()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor_hora().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getvalor_hora()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getvalor_hora().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.VALORHORA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getsalario().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getsalario()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getsalario()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getsalario().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getsalario()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getsalario().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.SALARIO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_moneda().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_moneda()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_moneda()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_moneda().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_moneda()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_moneda().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDMONEDA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getnumero_contrato().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getnumero_contrato()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getnumero_contrato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getnumero_contrato();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getnumero_contrato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getnumero_contrato() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.NUMEROCONTRATO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_tipo_contrato().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_contrato()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_contrato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_contrato().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_tipo_contrato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_tipo_contrato().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDTIPOCONTRATO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getvalor1().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor1()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor1()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor1().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getvalor1()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getvalor1().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.VALOR1,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getvalor2().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor2()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor2()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor2().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getvalor2()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getvalor2().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.VALOR2,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getvalor3().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor3()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor3()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor3().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getvalor3()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getvalor3().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.VALOR3,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getvalor4().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor4()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor4()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor4().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getvalor4()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getvalor4().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.VALOR4,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getvalor5().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor5()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor5()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor5().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getvalor5()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getvalor5().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.VALOR5,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getvalor6().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor6()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor6()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor6().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getvalor6()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getvalor6().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.VALOR6,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getcon_aporta_seguro_social().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_aporta_seguro_social()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_aporta_seguro_social()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_aporta_seguro_social().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getcon_aporta_seguro_social()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getcon_aporta_seguro_social().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.CONAPORTASEGUROSOCIAL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getcon_recibe_horas_extras().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_recibe_horas_extras()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_recibe_horas_extras()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_recibe_horas_extras().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getcon_recibe_horas_extras()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getcon_recibe_horas_extras().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.CONRECIBEHORASEXTRAS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getcon_descuento_impuestos().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_descuento_impuestos()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_descuento_impuestos()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_descuento_impuestos().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getcon_descuento_impuestos()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getcon_descuento_impuestos().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.CONDESCUENTOIMPUESTOS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getpension_alimenticia().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getpension_alimenticia()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getpension_alimenticia()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getpension_alimenticia().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getpension_alimenticia()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getpension_alimenticia().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.PENSIONALIMENTICIA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getcon_pago_por_horas().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_pago_por_horas()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_pago_por_horas()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_pago_por_horas().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getcon_pago_por_horas()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getcon_pago_por_horas().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.CONPAGOPORHORAS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getcon_anticipo().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_anticipo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_anticipo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_anticipo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getcon_anticipo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getcon_anticipo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.CONANTICIPO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_tipo_libreta_mili().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_libreta_mili()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_libreta_mili()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_libreta_mili().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_tipo_libreta_mili()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_tipo_libreta_mili().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDTIPOLIBRETAMILI,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getlibreta_militar().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getlibreta_militar()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getlibreta_militar()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getlibreta_militar();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getlibreta_militar()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getlibreta_militar() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.LIBRETAMILITAR,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_tipo_grupo_forma_pago().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_grupo_forma_pago()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_grupo_forma_pago()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_grupo_forma_pago().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_tipo_grupo_forma_pago()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_tipo_grupo_forma_pago().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDTIPOGRUPOFORMAPAGO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_banco().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_banco()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_banco()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_banco().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_banco()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_banco().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDBANCO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_tipo_cuenta_banco_global().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_cuenta_banco_global()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_cuenta_banco_global()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_cuenta_banco_global().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_tipo_cuenta_banco_global()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_tipo_cuenta_banco_global().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDTIPOCUENTABANCOGLOBAL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getnumero_cuenta().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getnumero_cuenta()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getnumero_cuenta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getnumero_cuenta();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getnumero_cuenta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getnumero_cuenta() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.NUMEROCUENTA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_tipo_sangre().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_sangre()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_sangre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_sangre().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_tipo_sangre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_tipo_sangre().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDTIPOSANGRE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}",
"public void setIdCliente(int value) {\n this.idCliente = value;\n }",
"private void updateKeyPayIntLeaveAppTable(Long companyId) {\n\t\tLong maxLeaveApplicationId = keyPayIntLeaveApplicationDAO\n\t\t\t\t.getMaxApprovedLeaveAppId(companyId);\n\t\tif (maxLeaveApplicationId == null) {\n\t\t\tmaxLeaveApplicationId = 0l;\n\t\t}\n\t\t// maxLeaveApplicationId = 62409l;\n\n\t\t// Get Leave Approved and Leave Cancel applications (i.e. those\n\t\t// applications are not still moved to KeyPayIntLeaveApplication table)\n\t\tList<LeaveApplication> approvedLeaveForKeyPayInt = leaveApplicationDAO\n\t\t\t\t.getApprovedNCancelLeaveForKeyPayInt(maxLeaveApplicationId,\n\t\t\t\t\t\tcompanyId, PayAsiaConstants.LEAVE_STATUS_COMPLETED);\n\t\tfor (LeaveApplication leaveApplication : approvedLeaveForKeyPayInt) {\n\t\t\tKeyPayIntLeaveApplication keyPayIntLeaveApplication = new KeyPayIntLeaveApplication();\n\t\t\tkeyPayIntLeaveApplication.setLeaveApplication(leaveApplication);\n\t\t\tkeyPayIntLeaveApplication.setCompany(leaveApplication.getCompany());\n\t\t\tkeyPayIntLeaveApplication.setEmployeeNumber(leaveApplication\n\t\t\t\t\t.getEmployee().getEmployeeNumber());\n\t\t\tkeyPayIntLeaveApplication.setStartDate(leaveApplication\n\t\t\t\t\t.getStartDate());\n\t\t\tkeyPayIntLeaveApplication.setEndDate(leaveApplication.getEndDate());\n\t\t\tkeyPayIntLeaveApplication.setHours(new BigDecimal(leaveApplication\n\t\t\t\t\t.getTotalDays()));\n\t\t\tkeyPayIntLeaveApplication.setLeaveTypeName(leaveApplication\n\t\t\t\t\t.getEmployeeLeaveSchemeType().getLeaveSchemeType()\n\t\t\t\t\t.getLeaveTypeMaster().getLeaveTypeName());\n\t\t\tkeyPayIntLeaveApplication.setRemarks(leaveApplication.getReason());\n\t\t\tif (leaveApplication.getLeaveCancelApplication() == null) {\n\t\t\t\tkeyPayIntLeaveApplication\n\t\t\t\t\t\t.setLeaveStatus(PayAsiaConstants.LEAVE_STATUS_APPROVED);\n\t\t\t} else {\n\t\t\t\tkeyPayIntLeaveApplication\n\t\t\t\t\t\t.setLeaveStatus(PayAsiaConstants.LEAVE_STATUS_CANCELLED);\n\t\t\t\tkeyPayIntLeaveApplication\n\t\t\t\t\t\t.setCancelLeaveApplicationId(leaveApplication\n\t\t\t\t\t\t\t\t.getLeaveCancelApplication()\n\t\t\t\t\t\t\t\t.getLeaveApplicationId());\n\t\t\t}\n\t\t\tkeyPayIntLeaveApplication\n\t\t\t\t\t.setSyncStatus(PayAsiaConstants.PAYASIA_KEYPAY_INT_LEAVE_SYNC_STATUS_UNPROCESS);\n\t\t\tkeyPayIntLeaveApplicationDAO.save(keyPayIntLeaveApplication);\n\t\t}\n\t}",
"private String getLuisAppId() {\n return this.getString(R.string.luisAppID);\n }",
"public App create(App obj) {\n \n JsonNode node = getClient().post(Routes.APP_CREATE, toJsonNode(obj));\n App rapp = getMapper().convertValue(node, App.class);\n \n if (!node.has(\"id\")) {\n throw new ClientException(\"Missing ID on object creation\");\n }\n \n obj.merge(rapp);\n obj.setId(rapp.getId());\n\n return obj;\n }",
"public void agregarinicio(int el){\n if(!estavacia()){\n fin=new nododoble(el, inicio,null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new nododoble(el);\n }}",
"protected void volverInicio() {\n\t\tIntent i = new Intent(this, ImcActivity.class);\n\t\tthis.startActivity(i);\n\t\t\n\t}",
"public Asignacion_usuario_Perfil1() {\n int CodigoAplicacion = 120;\n initComponents();\n llenadoDeCombos();\n llenadoDeTablas();\n \n\n \n }",
"public void setAppid(String appid) {\n this.appid = appid;\n }",
"@Override\n public void onHuaweiLogoClick() {\n// HuaweiIdAuthParams authParams= new HuaweiIdAuthParamsHelper(HuaweiIdAuthParams.DEFAULT_AUTH_REQUEST_PARAM).setAccessToken().createParams();\n// HuaweiIdAuthService service = HuaweiIdAuthManager.getService (MainActivity.this, authParams);\n// startActivityForResult(service.getSignInIntent(), AppConstants.REQUEST_SIGN_IN_LOGIN_CODE);\n\n// if (AGConnectAuth.getInstance().getCurrentUser() != null) {\n// onLoginCorrect();\n// }\n\n HuaweiIdAuthParamsHelper huaweiIdAuthParamsHelper = new HuaweiIdAuthParamsHelper(HuaweiIdAuthParams.DEFAULT_AUTH_REQUEST_PARAM);\n HuaweiIdAuthParams authParams = huaweiIdAuthParamsHelper.setAccessToken().createParams();\n service = HuaweiIdAuthManager.getService(MainActivity.this, authParams);\n startActivityForResult(service.getSignInIntent(), AppConstants.REQUEST_SIGN_IN_LOGIN_CODE);\n }",
"private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}",
"public void setId_rango(java.lang.Integer newId_rango);",
"public void almacenoDatos(){\n BaseDatosSecundaria administrador= new BaseDatosSecundaria(this);\n SQLiteDatabase bdsecunadaria= administrador.getWritableDatabase();\n _valuesPedido.put(\"Producto\", this._productoNombre);\n _valuesPedido.put(\"Precio\",this._productoPrecio);\n _valuesPedido.put(\"Cantidad\",this._etAdquirir.getText().toString());\n _valuesPedido.put(\"Vendedor\",this.username);\n _valuesPedido.put(\"Id_Producto\",this._productoId);\n bdsecunadaria.insert(\"DATOS\",null,this._valuesPedido);\n bdsecunadaria.close();\n }",
"public Appointment(String appointmentTypeIn, String customerNameIn, String dateIn)\n {\n //id = id + 1;\n appointmentType = appointmentTypeIn;\n customerName = customerNameIn;\n appointmentDate = dateIn;\n appointmentDetails = \"\";\n }",
"protected String getAppID() {\n if (m_iport > 0) {\n return new String(Integer.toString(m_iport));\n } else {\n return null;\n }\n }",
"public Builder setAppId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n appId_ = value;\n onChanged();\n return this;\n }"
] | [
"0.5660381",
"0.56544733",
"0.5627418",
"0.56254435",
"0.5581993",
"0.5540696",
"0.54239404",
"0.54185563",
"0.5413499",
"0.53991115",
"0.5397147",
"0.53940547",
"0.53816336",
"0.53768307",
"0.53646654",
"0.5358361",
"0.53416383",
"0.53089607",
"0.52960455",
"0.5271287",
"0.5249719",
"0.52448386",
"0.5228093",
"0.5216527",
"0.52116776",
"0.52102935",
"0.5190375",
"0.5189254",
"0.5179635",
"0.5178658",
"0.5178228",
"0.5171928",
"0.5171928",
"0.51713026",
"0.5169562",
"0.5157906",
"0.51407653",
"0.5133384",
"0.512705",
"0.51218045",
"0.51138943",
"0.51057255",
"0.509955",
"0.5076818",
"0.5075188",
"0.50359243",
"0.50282985",
"0.50275534",
"0.49862036",
"0.49855396",
"0.49855396",
"0.49742627",
"0.4974134",
"0.49694574",
"0.496405",
"0.49557033",
"0.49515063",
"0.49501434",
"0.49447992",
"0.4942195",
"0.49257246",
"0.49221075",
"0.49218708",
"0.4908886",
"0.49049398",
"0.48992538",
"0.4895377",
"0.48952967",
"0.48945",
"0.4894458",
"0.48915175",
"0.48905244",
"0.48843482",
"0.48761684",
"0.48756152",
"0.48721284",
"0.48641342",
"0.48589593",
"0.48576355",
"0.4853854",
"0.48530513",
"0.48530513",
"0.48530513",
"0.48530513",
"0.48530513",
"0.48487815",
"0.48486584",
"0.48409626",
"0.4840809",
"0.48372757",
"0.48337024",
"0.48320973",
"0.4824246",
"0.4823868",
"0.48221147",
"0.48193315",
"0.48180214",
"0.48114693",
"0.48074988",
"0.47985786",
"0.47985494"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void modifierPrenom(int idUtilisateur, String nouveauPrenom) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
latitude String to latitude decimal | public static LatLng degreeToDecimal(String latitude, String longitude)
{
String latFirstSplit [] = latitude.split("°");
String latSecondSplit [] = latFirstSplit[1].split("\\.");
System.out.println(latSecondSplit);
String latCleanSecondSplit = latSecondSplit[1].replace("’", "");
double latDegree = Integer.parseInt(latFirstSplit[0]);
double latDecimal = Integer.parseInt(latSecondSplit[0]);
double latMinute = Integer.parseInt(latCleanSecondSplit);
double latitudeDouble = latDegree + ((latDecimal+(latMinute/10000))/60);
String lngFirstSplit [] = longitude.split("°");
String lngSecondSplit [] = lngFirstSplit[1].split("\\.");
String lngCleanSecondSplit = lngSecondSplit[1].replace("’", "");
double lngDegree = Integer.parseInt(lngFirstSplit[0]);
double lngDecimal = Integer.parseInt(lngSecondSplit[0]);
double lngMinute = Integer.parseInt(lngCleanSecondSplit);
double longitudeDouble = lngDegree + ((lngDecimal+(lngMinute/10000))/60);
return new LatLng(latitudeDouble, longitudeDouble);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static double latitudeFromString(String pLatitude)\r\n {\r\n if (!Waypoint.testLatitude(pLatitude)) return 0;\r\n double Latitude = Double.parseDouble(pLatitude.substring(1,3)); //Grade abschneiden\r\n Latitude += Double.parseDouble(pLatitude.substring(3,6))/600; //Minuten dezuzählen\r\n if(pLatitude.charAt(0)=='N') return Latitude;\r\n else if (pLatitude.charAt(0)=='S') return Latitude*(-1);\r\n return 0;\r\n }",
"private String latitudeConversion() {\n int lat = record[1];\n if (lat >= 0) {\n lat = lat & 255;\n }\n lat = (lat << 8) + (record[0] & 255);\n float flat = Float.parseFloat((\"\" + lat + \".\" + (((record[3] & 255) << 8) + (record[2] & 255))));\n int degs = (int) flat / 100;\n float min = flat - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }",
"private double _parseLatitude(String s, String d)\n {\n double _lat = StringTools.parseDouble(s, 99999.0);\n if (_lat < 99999.0) {\n double lat = (double)((long)_lat / 100L); // _lat is always positive here\n lat += (_lat - (lat * 100.0)) / 60.0;\n return d.equals(\"S\")? -lat : lat;\n } else {\n return 90.0; // invalid latitude\n }\n }",
"public String getLatitude(String s) {\n return ((latitude != FLOATNULL) ? new Float(latitude).toString() : \"\");\n }",
"BigDecimal getWgs84Latitude();",
"private static int latToX(double lat) {\n return (int) ((lat - MIN_LAT) / (MAX_LAT - MIN_LAT) * 100 * 1000);\n }",
"private String roundLatUp(String lat){\r\n\t\tdouble temp = new BigDecimal(Double.valueOf(lat))\r\n\t\t\t\t.setScale(3, BigDecimal.ROUND_HALF_UP)\r\n\t\t\t\t.doubleValue();\r\n\t\ttemp += 0.5;\r\n\r\n\t\treturn Double.toString(temp);\r\n\t}",
"Double getLatitude();",
"Double getLatitude();",
"public static String latitude(GeoPoint p) {\r\n\t\treturn Float.toString((float) p.getLatitudeE6() / (float) 1E6);\r\n\t}",
"BigDecimal getWgs84EndingLatitude();",
"public int setLatitude(String latitude) {\n try {\n setLatitude(new Float(latitude).floatValue());\n } catch (Exception e) {\n setLatitudeError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return latitudeError;\n }",
"private String longitudeConversion() {\n int lon = record[5];\n if (lon >= 0) {\n lon = lon & 255;\n }\n lon = (lon << 8) + (record[4] & 255);\n float flon = Float.parseFloat(\"\" + lon + \".\" + (((record[7] & 255) << 8) + (record[6] & 255)));\n int degs = (int) flon / 100;\n float min = flon - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }",
"public static double longitudeFromString(String pLongitude)\r\n {\r\n if (!Waypoint.testLongitude(pLongitude)) return 0;\r\n double Longitude = Double.parseDouble(pLongitude.substring(1,4)); //Grade abschneiden\r\n Longitude += Double.parseDouble(pLongitude.substring(4,7))/600; //Minuten dazuzählen\r\n if(pLongitude.charAt(0)=='E') return Longitude;\r\n else if (pLongitude.charAt(0)=='W') return Longitude*(-1);\r\n return 0;\r\n \r\n }",
"double getLatitude();",
"private String roundLatDown(String longitude){\r\n\t\tdouble temp = new BigDecimal(Double.valueOf(longitude))\r\n\t\t\t\t.setScale(3, BigDecimal.ROUND_HALF_UP)\r\n\t\t\t\t.doubleValue();\r\n\t\ttemp -= 0.5;\r\n\r\n\t\treturn Double.toString(temp);\r\n\t}",
"public static GeoPoint convertToPoint(String lat, String lon) {\n Double latitude = Double.parseDouble(lat) * 1E6;\n Double longitude = Double.parseDouble(lon) * 1E6;\n return new GeoPoint(latitude.intValue(), longitude.intValue());\n }",
"public final flipsParser.latitude_return latitude() throws RecognitionException {\n flipsParser.latitude_return retval = new flipsParser.latitude_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal521=null;\n Token char_literal522=null;\n flipsParser.numericValuePositive_return x = null;\n\n flipsParser.latitudeNorthSouth_return ns = null;\n\n flipsParser.angularUnit_return xu = null;\n\n flipsParser.integerValuePositive_return deg = null;\n\n flipsParser.numericValuePositive_return min = null;\n\n\n CommonTree char_literal521_tree=null;\n CommonTree char_literal522_tree=null;\n RewriteRuleTokenStream stream_329=new RewriteRuleTokenStream(adaptor,\"token 329\");\n RewriteRuleTokenStream stream_243=new RewriteRuleTokenStream(adaptor,\"token 243\");\n RewriteRuleSubtreeStream stream_latitudeNorthSouth=new RewriteRuleSubtreeStream(adaptor,\"rule latitudeNorthSouth\");\n RewriteRuleSubtreeStream stream_numericValuePositive=new RewriteRuleSubtreeStream(adaptor,\"rule numericValuePositive\");\n RewriteRuleSubtreeStream stream_angularUnit=new RewriteRuleSubtreeStream(adaptor,\"rule angularUnit\");\n RewriteRuleSubtreeStream stream_integerValuePositive=new RewriteRuleSubtreeStream(adaptor,\"rule integerValuePositive\");\n try {\n // flips.g:763:2: (x= numericValuePositive ns= latitudeNorthSouth -> ^( ANGLE $ns $x DEGREE ) | x= numericValuePositive xu= angularUnit ns= latitudeNorthSouth -> ^( ANGLE $ns $x $xu) | deg= integerValuePositive 'd' min= numericValuePositive '\\\\'' ns= latitudeNorthSouth -> ^( ANGLE $ns $deg DEGREE $min MINUTE ) )\n int alt204=3;\n int LA204_0 = input.LA(1);\n\n if ( ((LA204_0>=BinaryLiteral && LA204_0<=HexLiteral)) ) {\n switch ( input.LA(2) ) {\n case 243:\n {\n alt204=3;\n }\n break;\n case 330:\n case 331:\n case 332:\n case 333:\n case 334:\n case 335:\n case 336:\n case 337:\n {\n alt204=2;\n }\n break;\n case 258:\n case 265:\n case 266:\n case 267:\n {\n alt204=1;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 204, 1, input);\n\n throw nvae;\n }\n\n }\n else if ( (LA204_0==FloatingPointLiteral) ) {\n int LA204_2 = input.LA(2);\n\n if ( ((LA204_2>=330 && LA204_2<=337)) ) {\n alt204=2;\n }\n else if ( (LA204_2==258||(LA204_2>=265 && LA204_2<=267)) ) {\n alt204=1;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 204, 2, input);\n\n throw nvae;\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 204, 0, input);\n\n throw nvae;\n }\n switch (alt204) {\n case 1 :\n // flips.g:763:4: x= numericValuePositive ns= latitudeNorthSouth\n {\n pushFollow(FOLLOW_numericValuePositive_in_latitude4490);\n x=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(x.getTree());\n pushFollow(FOLLOW_latitudeNorthSouth_in_latitude4494);\n ns=latitudeNorthSouth();\n\n state._fsp--;\n\n stream_latitudeNorthSouth.add(ns.getTree());\n\n\n // AST REWRITE\n // elements: ns, x\n // token labels: \n // rule labels: retval, ns, x\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_ns=new RewriteRuleSubtreeStream(adaptor,\"rule ns\",ns!=null?ns.tree:null);\n RewriteRuleSubtreeStream stream_x=new RewriteRuleSubtreeStream(adaptor,\"rule x\",x!=null?x.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 764:2: -> ^( ANGLE $ns $x DEGREE )\n {\n // flips.g:764:5: ^( ANGLE $ns $x DEGREE )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(ANGLE, \"ANGLE\"), root_1);\n\n adaptor.addChild(root_1, stream_ns.nextTree());\n adaptor.addChild(root_1, stream_x.nextTree());\n adaptor.addChild(root_1, (CommonTree)adaptor.create(DEGREE, \"DEGREE\"));\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:765:4: x= numericValuePositive xu= angularUnit ns= latitudeNorthSouth\n {\n pushFollow(FOLLOW_numericValuePositive_in_latitude4516);\n x=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(x.getTree());\n pushFollow(FOLLOW_angularUnit_in_latitude4520);\n xu=angularUnit();\n\n state._fsp--;\n\n stream_angularUnit.add(xu.getTree());\n pushFollow(FOLLOW_latitudeNorthSouth_in_latitude4524);\n ns=latitudeNorthSouth();\n\n state._fsp--;\n\n stream_latitudeNorthSouth.add(ns.getTree());\n\n\n // AST REWRITE\n // elements: ns, x, xu\n // token labels: \n // rule labels: retval, ns, xu, x\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_ns=new RewriteRuleSubtreeStream(adaptor,\"rule ns\",ns!=null?ns.tree:null);\n RewriteRuleSubtreeStream stream_xu=new RewriteRuleSubtreeStream(adaptor,\"rule xu\",xu!=null?xu.tree:null);\n RewriteRuleSubtreeStream stream_x=new RewriteRuleSubtreeStream(adaptor,\"rule x\",x!=null?x.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 766:2: -> ^( ANGLE $ns $x $xu)\n {\n // flips.g:766:5: ^( ANGLE $ns $x $xu)\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(ANGLE, \"ANGLE\"), root_1);\n\n adaptor.addChild(root_1, stream_ns.nextTree());\n adaptor.addChild(root_1, stream_x.nextTree());\n adaptor.addChild(root_1, stream_xu.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 3 :\n // flips.g:767:4: deg= integerValuePositive 'd' min= numericValuePositive '\\\\'' ns= latitudeNorthSouth\n {\n pushFollow(FOLLOW_integerValuePositive_in_latitude4547);\n deg=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(deg.getTree());\n char_literal521=(Token)match(input,243,FOLLOW_243_in_latitude4549); \n stream_243.add(char_literal521);\n\n pushFollow(FOLLOW_numericValuePositive_in_latitude4553);\n min=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(min.getTree());\n char_literal522=(Token)match(input,329,FOLLOW_329_in_latitude4555); \n stream_329.add(char_literal522);\n\n pushFollow(FOLLOW_latitudeNorthSouth_in_latitude4559);\n ns=latitudeNorthSouth();\n\n state._fsp--;\n\n stream_latitudeNorthSouth.add(ns.getTree());\n\n\n // AST REWRITE\n // elements: min, ns, deg\n // token labels: \n // rule labels: min, retval, ns, deg\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_min=new RewriteRuleSubtreeStream(adaptor,\"rule min\",min!=null?min.tree:null);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_ns=new RewriteRuleSubtreeStream(adaptor,\"rule ns\",ns!=null?ns.tree:null);\n RewriteRuleSubtreeStream stream_deg=new RewriteRuleSubtreeStream(adaptor,\"rule deg\",deg!=null?deg.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 768:2: -> ^( ANGLE $ns $deg DEGREE $min MINUTE )\n {\n // flips.g:768:5: ^( ANGLE $ns $deg DEGREE $min MINUTE )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(ANGLE, \"ANGLE\"), root_1);\n\n adaptor.addChild(root_1, stream_ns.nextTree());\n adaptor.addChild(root_1, stream_deg.nextTree());\n adaptor.addChild(root_1, (CommonTree)adaptor.create(DEGREE, \"DEGREE\"));\n adaptor.addChild(root_1, stream_min.nextTree());\n adaptor.addChild(root_1, (CommonTree)adaptor.create(MINUTE, \"MINUTE\"));\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }",
"public Coord addressToCoord(String localisation);",
"int getLatitude();",
"public double getLatitude() {\n if (slat == GempakConstants.IMISSD) {\n return slat;\n }\n return slat / 100.;\n }",
"BigDecimal getWgs84Longitude();",
"static double geocentricToGeodetic(double geocentricLatitude) {\n return (Math.atan(Math.tan(geocentricLatitude) / (1.0 - E_ECC_SQUARED)));\n }",
"static public String toStringLat(double val, boolean includeDecimal)\r\n {\r\n _workingHolder.setData(val, true);\r\n\r\n java.text.DecimalFormat secFormat = null;\r\n if (includeDecimal)\r\n secFormat = df;\r\n else\r\n secFormat = df2;\r\n\r\n String res = \" \" + df2.format(_workingHolder.deg) + DEGREE_SYMBOL +\r\n df2.format(_workingHolder.min) + \"\\'\" +\r\n secFormat.format(_workingHolder.sec) + \"\\\"\";\r\n\r\n // just check we're not at origin\r\n if(val != 0)\r\n \t res += _workingHolder.hem + \"\";\r\n\r\n // hack: when the degs symbol appears in the third character of the string, when\r\n // we write to Metafile the following (4th) character is swapped for a y.\r\n\r\n // when the degs symbol appears as the 4th character, however, the string\r\n // writes perfectly to metafile\r\n\r\n // consequently we insert a space at the front of the string to artificially\r\n // put the deg symbol in the 4th character.\r\n\r\n return res;\r\n }",
"Double getLongitude();",
"Double getLongitude();",
"public String getLongitude(String s) {\n return ((longitude != FLOATNULL) ? new Float(longitude).toString() : \"\");\n }",
"private static boolean validateLatitude(String latitude) {\n try {\n BigDecimal bd = new BigDecimal(latitude);\n\n if ((bd.compareTo(maxLatitude) <= 0) && (bd.compareTo(minLatitude) >= 0)) {\n return true;\n }\n } catch (Exception ignored) {\n }\n\n return false;\n }",
"public String getLatitude() {\n return String.valueOf(latitude);\n }",
"public static String encode(double latitude, double longitude) {\n double[] latInterval = {-90.0, 90.0};\n double[] lngInterval = {-180.0, 180.0};\n\n final StringBuilder geohash = new StringBuilder();\n\n // the even bits are taken for the longitude code (0111110000000),\n // while the odd bits are taken for the latitude code (101111001001).\n boolean isEven = true;\n\n int bit = 0;\n int ch = 0;\n\n while (geohash.length() < PRECISION) {\n double mid = 0.0;\n if (isEven) { // for longitude\n mid = (lngInterval[0] + lngInterval[1]) / 2D;\n if (longitude > mid) { // belong to right interval\n // it means at current bit, it should be set to 1\n // because we need to write bit from left to right\n // so ch will do OR operation on high bit from BITS[]\n // for example lat: 40.5187, lng: 74.4121\n // it will calculate as 1 1 0 0 1 -> 25 -> BASE_32[25] -> t as first character\n // ch will grow if coordinate > mid at current binary reduction\n ch |= BITS[bit]; // set current bit as 1\n // System.out.println(\"EVEN \" + ch);\n lngInterval[0] = mid;\n } else {\n lngInterval[1] = mid;\n }\n } else {\n mid = (latInterval[0] + latInterval[1]) / 2D;\n if (latitude > mid) {\n // System.out.println(\"ODD \" + ch);\n // ch will grow if coordinate > mid at current binary reduction\n ch |= BITS[bit]; // set current bit as 1\n latInterval[0] = mid;\n } else {\n latInterval[1] = mid;\n }\n }\n\n isEven = !isEven;\n\n if (bit < 4) {\n bit++;\n } else { // convert to character in BASE_32 by each 5 bits\n // System.out.println(\"CURRENT \" + ch);\n geohash.append(BASE_32[ch]);\n bit = 0;\n ch = 0;\n }\n }\n return geohash.toString();\n }",
"private double _parseLongitude(String s, String d)\n {\n double _lon = StringTools.parseDouble(s, 99999.0);\n if (_lon < 99999.0) {\n double lon = (double)((long)_lon / 100L); // _lon is always positive here\n lon += (_lon - (lon * 100.0)) / 60.0;\n return d.equals(\"W\")? -lon : lon;\n } else {\n return 180.0; // invalid longitude\n }\n }",
"public BigDecimal getLatitude() {\n return latitude;\n }",
"long getLatitude();",
"float latitude() {\n switch (this) {\n case NORTH_4M:\n case NORTH_16M:\n return FastMath.HALF_PI;\n case SOUTH_4M:\n case SOUTH_16M:\n return -FastMath.HALF_PI;\n case WILTSHIRE_4M:\n case WILTSHIRE_16M:\n /*\n * Stonehenge\n */\n return 51.1788f * FastMath.DEG_TO_RAD;\n }\n throw new IllegalStateException();\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n latitude = dataSnapshot.getValue(float.class);\n Integer i = Integer.valueOf((int) (latitude*1000));\n }",
"public int getLat();",
"public static int toApproximateMeters(int microdegrees, int latitude){\n\t\treturn (int)((long)microdegrees * 11 / LONGITUDINAL_MULTIPLIER[latitude/1000000] );\n\t}",
"double getLongitude();",
"static double geodeticToGeocentric(double geodeticLatitude) {\n return (Math.atan((1.0 - E_ECC_SQUARED) * Math.tan(geodeticLatitude)));\n }",
"public float getLatitudeValue (){\n return trackLat.getValue ();\n }",
"public Double makeCoordinate(String decimalValue) {\n String leftPart, rightPart;\n Double coordinate;\n leftPart = decimalValue.substring(0, decimalValue.indexOf(\".\") - 2);\n rightPart = decimalValue.substring(decimalValue.indexOf(\".\") - 2, decimalValue.length());\n coordinate = Double.parseDouble(leftPart) + Double.parseDouble(rightPart) / 60;\n // System.out.println(\"left part: \"+leftPart + \" right part: \" + rightPart);\n return coordinate;\n }",
"public double convertDistance(double lat, double value){\n double earthRadius = 6378.137;\n double pi = Math.PI;\n double oneKMeter = (1/((2*pi/360)*earthRadius));\n\n return value * oneKMeter;\n }",
"int getLongitude();",
"public final flipsParser.latitudeLongitude_return latitudeLongitude() throws RecognitionException {\n flipsParser.latitudeLongitude_return retval = new flipsParser.latitudeLongitude_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal518=null;\n Token char_literal519=null;\n Token char_literal520=null;\n flipsParser.angularValue_return y1 = null;\n\n flipsParser.angularValue_return x1 = null;\n\n flipsParser.numericValue_return y2 = null;\n\n flipsParser.numericValue_return x2 = null;\n\n flipsParser.latitude_return y3 = null;\n\n flipsParser.longitude_return x3 = null;\n\n\n CommonTree char_literal518_tree=null;\n CommonTree char_literal519_tree=null;\n CommonTree char_literal520_tree=null;\n RewriteRuleTokenStream stream_120=new RewriteRuleTokenStream(adaptor,\"token 120\");\n RewriteRuleSubtreeStream stream_angularValue=new RewriteRuleSubtreeStream(adaptor,\"rule angularValue\");\n RewriteRuleSubtreeStream stream_longitude=new RewriteRuleSubtreeStream(adaptor,\"rule longitude\");\n RewriteRuleSubtreeStream stream_numericValue=new RewriteRuleSubtreeStream(adaptor,\"rule numericValue\");\n RewriteRuleSubtreeStream stream_latitude=new RewriteRuleSubtreeStream(adaptor,\"rule latitude\");\n try {\n // flips.g:754:2: (y1= angularValue ( ',' )? x1= angularValue -> ^( X $x1) ^( Y $y1) | y2= numericValue ( ',' )? x2= numericValue -> ^( X ^( ANGLE $x2 DEGREE ) ) ^( Y ^( ANGLE $y2 DEGREE ) ) | y3= latitude ( ',' )? x3= longitude -> ^( X $x3) ^( Y $y3) )\n int alt203=3;\n alt203 = dfa203.predict(input);\n switch (alt203) {\n case 1 :\n // flips.g:754:4: y1= angularValue ( ',' )? x1= angularValue\n {\n pushFollow(FOLLOW_angularValue_in_latitudeLongitude4379);\n y1=angularValue();\n\n state._fsp--;\n\n stream_angularValue.add(y1.getTree());\n // flips.g:754:20: ( ',' )?\n int alt200=2;\n int LA200_0 = input.LA(1);\n\n if ( (LA200_0==120) ) {\n alt200=1;\n }\n switch (alt200) {\n case 1 :\n // flips.g:754:20: ','\n {\n char_literal518=(Token)match(input,120,FOLLOW_120_in_latitudeLongitude4381); \n stream_120.add(char_literal518);\n\n\n }\n break;\n\n }\n\n pushFollow(FOLLOW_angularValue_in_latitudeLongitude4386);\n x1=angularValue();\n\n state._fsp--;\n\n stream_angularValue.add(x1.getTree());\n\n\n // AST REWRITE\n // elements: y1, x1\n // token labels: \n // rule labels: retval, y1, x1\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_y1=new RewriteRuleSubtreeStream(adaptor,\"rule y1\",y1!=null?y1.tree:null);\n RewriteRuleSubtreeStream stream_x1=new RewriteRuleSubtreeStream(adaptor,\"rule x1\",x1!=null?x1.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 755:2: -> ^( X $x1) ^( Y $y1)\n {\n // flips.g:755:5: ^( X $x1)\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(X, \"X\"), root_1);\n\n adaptor.addChild(root_1, stream_x1.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n // flips.g:755:14: ^( Y $y1)\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(Y, \"Y\"), root_1);\n\n adaptor.addChild(root_1, stream_y1.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:756:4: y2= numericValue ( ',' )? x2= numericValue\n {\n pushFollow(FOLLOW_numericValue_in_latitudeLongitude4410);\n y2=numericValue();\n\n state._fsp--;\n\n stream_numericValue.add(y2.getTree());\n // flips.g:756:20: ( ',' )?\n int alt201=2;\n int LA201_0 = input.LA(1);\n\n if ( (LA201_0==120) ) {\n alt201=1;\n }\n switch (alt201) {\n case 1 :\n // flips.g:756:20: ','\n {\n char_literal519=(Token)match(input,120,FOLLOW_120_in_latitudeLongitude4412); \n stream_120.add(char_literal519);\n\n\n }\n break;\n\n }\n\n pushFollow(FOLLOW_numericValue_in_latitudeLongitude4417);\n x2=numericValue();\n\n state._fsp--;\n\n stream_numericValue.add(x2.getTree());\n\n\n // AST REWRITE\n // elements: y2, x2\n // token labels: \n // rule labels: retval, y2, x2\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_y2=new RewriteRuleSubtreeStream(adaptor,\"rule y2\",y2!=null?y2.tree:null);\n RewriteRuleSubtreeStream stream_x2=new RewriteRuleSubtreeStream(adaptor,\"rule x2\",x2!=null?x2.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 757:2: -> ^( X ^( ANGLE $x2 DEGREE ) ) ^( Y ^( ANGLE $y2 DEGREE ) )\n {\n // flips.g:757:5: ^( X ^( ANGLE $x2 DEGREE ) )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(X, \"X\"), root_1);\n\n // flips.g:757:9: ^( ANGLE $x2 DEGREE )\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(ANGLE, \"ANGLE\"), root_2);\n\n adaptor.addChild(root_2, stream_x2.nextTree());\n adaptor.addChild(root_2, (CommonTree)adaptor.create(DEGREE, \"DEGREE\"));\n\n adaptor.addChild(root_1, root_2);\n }\n\n adaptor.addChild(root_0, root_1);\n }\n // flips.g:757:30: ^( Y ^( ANGLE $y2 DEGREE ) )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(Y, \"Y\"), root_1);\n\n // flips.g:757:34: ^( ANGLE $y2 DEGREE )\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(ANGLE, \"ANGLE\"), root_2);\n\n adaptor.addChild(root_2, stream_y2.nextTree());\n adaptor.addChild(root_2, (CommonTree)adaptor.create(DEGREE, \"DEGREE\"));\n\n adaptor.addChild(root_1, root_2);\n }\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 3 :\n // flips.g:758:4: y3= latitude ( ',' )? x3= longitude\n {\n pushFollow(FOLLOW_latitude_in_latitudeLongitude4453);\n y3=latitude();\n\n state._fsp--;\n\n stream_latitude.add(y3.getTree());\n // flips.g:758:16: ( ',' )?\n int alt202=2;\n int LA202_0 = input.LA(1);\n\n if ( (LA202_0==120) ) {\n alt202=1;\n }\n switch (alt202) {\n case 1 :\n // flips.g:758:16: ','\n {\n char_literal520=(Token)match(input,120,FOLLOW_120_in_latitudeLongitude4455); \n stream_120.add(char_literal520);\n\n\n }\n break;\n\n }\n\n pushFollow(FOLLOW_longitude_in_latitudeLongitude4460);\n x3=longitude();\n\n state._fsp--;\n\n stream_longitude.add(x3.getTree());\n\n\n // AST REWRITE\n // elements: y3, x3\n // token labels: \n // rule labels: retval, y3, x3\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_y3=new RewriteRuleSubtreeStream(adaptor,\"rule y3\",y3!=null?y3.tree:null);\n RewriteRuleSubtreeStream stream_x3=new RewriteRuleSubtreeStream(adaptor,\"rule x3\",x3!=null?x3.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 759:2: -> ^( X $x3) ^( Y $y3)\n {\n // flips.g:759:5: ^( X $x3)\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(X, \"X\"), root_1);\n\n adaptor.addChild(root_1, stream_x3.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n // flips.g:759:14: ^( Y $y3)\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(Y, \"Y\"), root_1);\n\n adaptor.addChild(root_1, stream_y3.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n longitude = dataSnapshot.getValue(float.class);\n Integer i = Integer.valueOf((int) (longitude*1000));\n\n }",
"public String getLattitude(String lat) {\n String latt = null;\n latt = lat.substring(lat.lastIndexOf(\"(\") + 1, lat.indexOf(\",\"));\n return latt;\n }",
"private static double convertToDegree(String source) {\n String[] degMinSec = source.split(\",\");\n String[] degSrc = degMinSec[0].split(\"/\");\n String[] minSrc = degMinSec[1].split(\"/\");\n String[] secSrc = degMinSec[2].split(\"/\");\n\n double deg = Double.parseDouble(degSrc[0]) / Double.parseDouble(degSrc[1]);\n double min = Double.parseDouble(minSrc[0]) / Double.parseDouble(minSrc[1]);\n double sec = Double.parseDouble(secSrc[0]) / Double.parseDouble(secSrc[1]);\n\n return deg + (min / 60) + (sec / (60 * 60)); // Fold degrees, minutes and seconds together\n }",
"public static double convertkgTOlb (double kg) {\n\tdouble lb=kg*2.2046;\n\treturn lb;\n}",
"BigDecimal getWgs84EndingLongitude();",
"public static double CHtoWGSlat(double y, double x) {\n // Converts military to civil and to unit = 1000km\n // Auxiliary values (% Bern)\n double y_aux = (y - 600000) / 1000000;\n double x_aux = (x - 200000) / 1000000;\n\n // Process lat\n double lat = (16.9023892 + (3.238272 * x_aux))\n - (0.270978 * Math.pow(y_aux, 2))\n - (0.002528 * Math.pow(x_aux, 2))\n - (0.0447 * Math.pow(y_aux, 2) * x_aux)\n - (0.0140 * Math.pow(x_aux, 3));\n\n // Unit 10000\" to 1 \" and converts seconds to degrees (dec)\n lat = (lat * 100) / 36;\n\n return lat;\n }",
"public double generateLatitude(double latitude, Double plusMinusRange);",
"protected static Point getLocationFromCoordinate(String latitude, String longitude) {\n\t \n\t\t//the coordinates corresponding to latitude and longitude\n\t\tfloat x = 0;\n\t\tfloat y = 0;\n\n\t\t/*Convert from latitude and longitude to x and y where (N90,W180) = (0,0)*/\n\t\tif (latitude.substring(0, 1).equals(\"N\")){\n\t\t\ty = 90 - Float.parseFloat(latitude.substring(1));\n\t\t}\n\t\telse if (latitude.substring(0,1).equals(\"S\")) {\n\t\t\ty = 90 + Float.parseFloat(latitude.substring(1));\n\t\t}\n\t\tif (longitude.substring(0, 1).equals(\"E\")) {\n\t\t\tx = 180 + Float.parseFloat(longitude.substring(1));\n\n\t\t}\n\t\telse if (longitude.substring(0, 1).equals(\"W\")) {\n\t\t\tx = 180 - Float.parseFloat(longitude.substring(1));\n\t\t}\n\t\t\n\t\treturn new Point(x, y);\n\t}",
"public static double[] decode(String geohash) {\n double[] latInterval = {-90.0, 90.0};\n double[] lngInterval = {-180.0, 180.0};\n\n boolean isEven = true;\n\n double latitude;\n double longitude;\n\n for (int i = 0; i < geohash.length(); i++) {\n // integer value of current character's mapping in DECODE_MAP\n final int cd = DECODE_MAP.get(Character.valueOf(geohash.charAt(i))).intValue();\n // t -> 25 -> 1 1 0 0 1\n // 0 1 2 3 4\n // 16 8 4 2 1\n //\n // 1: [0 - 180] longitude\n // 1: [0 - 90] latitude\n // 0: [0 - 90] longitude\n // 0: [0 - 45] latitude\n // 1: [45 - 90] longitude\n for (int mask : BITS) {\n if (isEven) { // decode for longitude\n if ((cd & mask) != 0) { // meas current bit is 1 and real longitude belongs to right interval\n lngInterval[0] = (lngInterval[0] + lngInterval[1]) / 2D;\n } else {\n lngInterval[1] = (lngInterval[0] + lngInterval[1]) / 2D; // belongs to left interval\n // so make right limit less\n }\n } else { // decode for latitude\n if ((cd & mask) != 0) { // meas current bit is 1 and real latitude belongs to right interval\n latInterval[0] = (latInterval[0] + latInterval[1]) / 2D;\n } else {\n latInterval[1] = (latInterval[0] + latInterval[1]) / 2D;\n }\n }\n\n isEven = !isEven;\n }\n }\n\n // at last, calculate the mean value of interval as result\n latitude = (latInterval[0] + latInterval[1]) / 2D;\n longitude = (lngInterval[0] + lngInterval[1]) / 2D;\n\n return new double[]{latitude, longitude};\n }",
"public static double getDistance(String location){\n\t\tdouble lng1 = -122.301436; \n\t\tdouble lat1 = 47.605387; \n\t\t\n\t\tint startIndex1 = location.indexOf(\"longitude\");\n\t\tlng = location.substring(startIndex1+11, startIndex1+20);\n\t\tint startIndex2 = location.indexOf(\"latitude\");\n\t\tlat = location.substring(startIndex2+10, startIndex2+17);\n\n\t\tdouble lng2 = Double.parseDouble(lng);\n\t\tdouble lat2 = Double.parseDouble(lat);\n\n\t\tdouble R = 6371; \n\t\tdouble vlat1 = lat1*Math.PI/180; \n\t\tdouble vlat2 = lat2*Math.PI/180;\n\t\tdouble changelat = (lat2-lat1)*Math.PI/180;\n\t\tdouble changelng = (lng2-lng1)*Math.PI/180;\n\t\tdouble a = Math.sin(changelat/2) * Math.sin(changelat/2) +\n\t\t Math.cos(vlat1) * Math.cos(vlat2) *\n\t\t Math.sin(changelng/2) * Math.sin(changelng/2);\n\t\tdouble c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));\n\t\tdouble d = R * c;\n\t\t\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n String dis = df.format(d);\n double dist = Double.parseDouble(dis);\n \n\t\treturn dist;\n\t}",
"@Override\n\t\tpublic Double convert(String s) {\n\t\t\treturn Double.parseDouble(s);\n\t\t}",
"public void makeLatLong(String address){\n try {\n JSONObject jsonObject = new JSONObject(address);\n JSONObject result = jsonObject.getJSONObject(\"result\");\n JSONArray addressMatches = result.getJSONArray(\"addressMatches\");\n JSONObject firstResult = addressMatches.getJSONObject(0);\n JSONObject coordinates = firstResult.getJSONObject(\"coordinates\");\n latitude = coordinates.getDouble(\"y\");\n longitude = coordinates.getDouble(\"x\");\n\n Log.i(\"CoY \", Double.toString(latitude));\n Log.i(\"CoX\", Double.toString(longitude));\n } catch (JSONException e) {\n Log.i(\"Error\", e.getMessage());\n e.printStackTrace();\n latitude = 39.7392;\n longitude = -104.9903;\n mainActivity.apiFailed(alarmName);\n }\n }",
"public Float toDegrees(String ref) {\n //EXIF data should is in DMS format, need to convert from DMS to degrees for Google Maps\n //Credit to http://android-er.blogspot.co.uk/2010/01/convert-exif-gps-info-to-degree-format.html\n\n if (ref.equals(null) || ref.equals(\"\")) {\n return 0.0f;\n }\n\n Float result = null;\n String[] DMS = ref.split(\",\", 3);\n\n String[] stringD = DMS[0].split(\"/\", 2);\n Double D0 = Double.valueOf(stringD[0]);\n Double D1 = Double.valueOf(stringD[1]);\n Double FloatD = D0 / D1;\n\n String[] stringM = DMS[1].split(\"/\", 2);\n Double M0 = Double.valueOf(stringM[0]);\n Double M1 = Double.valueOf(stringM[1]);\n Double FloatM = M0 / M1;\n\n String[] stringS = DMS[2].split(\"/\", 2);\n Double S0 = Double.valueOf(stringS[0]);\n Double S1 = Double.valueOf(stringS[1]);\n Double FloatS = S0 / S1;\n\n result = new Float(FloatD + (FloatM / 60) + (FloatS / 3600));\n\n return result;\n }",
"private String getLocationForPrint(double latitude, double longitude) {\n int latDegree = (new Double(Math.floor(latitude))).intValue();\n int longDegree = (new Double(Math.floor(longitude))).intValue();\n String latEnd = getString(R.string.latitude_south);\n String longEnd = getString(R.string.longitude_west);\n if (latDegree > 0) {\n latEnd = getString(R.string.latitude_north);\n\n }\n if (longDegree > 0) {\n longEnd = getString(R.string.longitude_east);\n }\n double latSecond = (latitude - latDegree) * 100;\n double latMinDouble = (latSecond * 3d / 5d);\n int latMinute = new Double(Math.floor(latMinDouble)).intValue();\n\n double longSecond = (longitude - longDegree) * 100;\n double longMinDouble = (longSecond * 3d / 5d);\n int longMinute = new Double(Math.floor(longMinDouble)).intValue();\n// return String.format(getString(R.string.geo_location_info), latDegree,\n// latMinute, latEnd, longDegree, longMinute, longEnd);\n return getString(R.string.geo_location_info);\n\n }",
"public int setLatitude(Float latitude) {\n try {\n setLatitude(latitude.floatValue());\n } catch (Exception e) {\n setLatitudeError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return latitudeError;\n }",
"public static Double getlng(){\n Log.e(\"LONG\",sharedPreferences.getString(USER_LNG, String.valueOf(0.0)));\n return Double.parseDouble(sharedPreferences.getString(USER_LNG, String.valueOf(0.0)));\n\n\n }",
"double lat(long v) {\n return nodes.get(v).lat;\n }",
"public double getLatitude() { return coordinates.latitude; }",
"private static float getGpaFromLine(String line) {\n\t\treturn Float.parseFloat(line.split(\" \")[1]);\n\t}",
"private String roundLongUp(String longitude){\r\n\t\tdouble temp = new BigDecimal(Double.valueOf(longitude))\r\n\t\t\t\t.setScale(3, BigDecimal.ROUND_HALF_UP).doubleValue();\r\n\t\ttemp += 0.4;\r\n\r\n\t\treturn Double.toString(temp);\r\n\t}",
"public float getLatitude() { return latitude; }",
"long getLongitude();",
"public int setLatitude(Integer latitude) {\n try {\n setLatitude(latitude.floatValue());\n } catch (Exception e) {\n setLatitudeError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return latitudeError;\n }",
"public int setLongitude(String longitude) {\n try {\n setLongitude(new Float(longitude).floatValue());\n } catch (Exception e) {\n setLongitudeError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return longitudeError;\n }",
"public static double ensureDecimal(String rawValue, int place) {\r\n\t\tString returnValue = \"\";\r\n\t\tif (rawValue.indexOf(\".\") == -1) {\r\n\t\t\treturnValue = rawValue.substring(0, (place - 1)) + \".\"\r\n\t\t\t\t\t+ rawValue.substring(place - 1);\r\n\t\t\t// System.out.println(returnValue);\r\n\t\t\treturn (Double.parseDouble(returnValue));\r\n\t\t} else\r\n\t\t\treturn Double.parseDouble(rawValue);\r\n\t}",
"public Position(String longitude, String latitude) {\n\t\tthis(Double.parseDouble(longitude.replace(',', '.')), Double.parseDouble(latitude.replace(',', '.')));\n\t}",
"public double getLat() {\r\n\t\treturn lat;\r\n\t}",
"public static String formatLat(double lat, int outputType)\n\t{\n\n\t\tString direction = \"N\";\n\t\tif (lat < 0)\n\t\t{\n\t\t\tdirection = \"S\";\n\t\t\tlat = -lat;\n\t\t}\n\n\t\treturn formatCoord(lat, outputType) + direction;\n\n\t}",
"void setLatitude(Double latitude);",
"public String getLatitude()\r\n {\r\n return latitude;\r\n }",
"public String getlat() {\n\t\treturn lat;\n\t}",
"public double getLatitude()\n {\n \treturn latitude;\n }",
"public double latitude() {\n return this.latitude;\n }",
"public double getLatitude() {\n return latitude_;\n }",
"public static double atof(String s)\n {\n int i = 0;\n int sign = 1;\n double r = 0; // integer part\n // double f = 0; // fractional part\n double p = 1; // exponent of fractional part\n int state = 0; // 0 = int part, 1 = frac part\n\n while ((i < s.length()) && Character.isWhitespace(s.charAt(i)))\n {\n i++;\n }\n\n if ((i < s.length()) && (s.charAt(i) == '-'))\n {\n sign = -1;\n i++;\n }\n else if ((i < s.length()) && (s.charAt(i) == '+'))\n {\n i++;\n }\n\n while (i < s.length())\n {\n char ch = s.charAt(i);\n\n if (('0' <= ch) && (ch <= '9'))\n {\n if (state == 0)\n {\n r = ((r * 10) + ch) - '0';\n }\n else if (state == 1)\n {\n p = p / 10;\n r = r + (p * (ch - '0'));\n }\n }\n else if (ch == '.')\n {\n if (state == 0)\n {\n state = 1;\n }\n else\n {\n return sign * r;\n }\n }\n else if ((ch == 'e') || (ch == 'E'))\n {\n long e = (int) parseLong(s.substring(i + 1), 10);\n\n return sign * r * Math.pow(10, e);\n }\n else\n {\n return sign * r;\n }\n\n i++;\n }\n\n return sign * r;\n }",
"public Coordinate (double longitude, double latitude) {\n this.longitude = new BigDecimal(longitude);\n this.latitude = new BigDecimal(latitude);\n }",
"public String getLat() {\n return lat;\n }",
"public double getLat() {\r\n\t\t\treturn lat;\r\n\t\t}",
"public static void main(String[] args) {\n\n\n String a=\"95.244522094727\";\n int score = (int)Double.parseDouble(a);\n System.out.println(score);\n }",
"public Float getLatitude() {\n return latitude;\n }",
"public void setLatitude (String strLatitude){\n this.latitude = strLatitude;\n }",
"public static double[] radiusToLonLat(String radius,String lat){\n //general approximate transformation\n double latDelta = Double.parseDouble(radius)/110.574;\n double longDelta = Double.parseDouble(radius)/(111.3*Math.cos(Math.toRadians(Double.parseDouble(lat)))); //1 deg = 111.320*cos(latitude) km\n\n return new double[] {latDelta, longDelta};\n }",
"public void setLatitude(float latitude) { this.latitude = latitude; }",
"public double getLat() {\n return lat;\n }",
"public double getLat() {\n return lat;\n }",
"public double getLat() {\n return lat;\n }",
"public double getGpsLng() {\n return gpsLng;\n }",
"protected double getLatitudeAttributeValue(XDIMEContextInternal context, \n XDIMEAttributes attributes) throws XDIMEException {\n \n double latitude = Double.NaN;\n String attrVal = attributes.getValue(\"\", \"latitude\");\n if (attrVal != null) {\n try {\n latitude = Double.parseDouble(attrVal);\n } catch (NumberFormatException nfe) {\n throw new XDIMEException(\"\\\"latitude\\\" attribute of map \"\n + \"element must be double\");\n }\n }\n \n return latitude;\n }",
"public static GeoPoint convertToPoint(Double lat, Double lon) {\n Double latitude = lat * 1E6;\n Double longitude = lon * 1E6;\n return new GeoPoint(latitude.intValue(), longitude.intValue());\n }",
"public double getLatitude(){\n if(location != null){\n latitude = location.getLatitude();\n }\n\n // return latitude\n return latitude;\n }",
"public double getLatitude(){\n if(location != null){\n latitude = location.getLatitude();\n }\n\n // return latitude\n return latitude;\n }",
"public static String convertPointToSector(Double lat, Double lon){\n if(lat > maxLat || lon > maxLon || lat < minLat || lon < minLon){\n return \"Coordinate non valide!\";\n }\n\n double number_lat = ((lat - minLat)/1.3);\n int integer_lat = (int)number_lat;\n double number_lon = ((lon - minLon)/1.075);\n int integer_lon = (int)number_lon+1;\n\n\n\n String id_lat = latID[integer_lat];\n\n String id_lon = Integer.toString(integer_lon);\n\n return id_lat+id_lon;\n\n }",
"double lat(long v) {\n return world.get(v).lat;\n }",
"int getLatE6();",
"int getLatE6();",
"double lat(long v) {\n return adj.get(v).get(0).Lat;\n }"
] | [
"0.73039365",
"0.72606504",
"0.6652371",
"0.65986234",
"0.6349687",
"0.61587185",
"0.61063915",
"0.6049521",
"0.6049521",
"0.6010557",
"0.5976213",
"0.5946708",
"0.59455043",
"0.59021246",
"0.5815434",
"0.5804924",
"0.5799855",
"0.57607186",
"0.5717177",
"0.5572822",
"0.55390114",
"0.55378973",
"0.55147046",
"0.54830784",
"0.54805243",
"0.54805243",
"0.54797775",
"0.54518956",
"0.5447696",
"0.5433564",
"0.54205686",
"0.53908575",
"0.537992",
"0.53783995",
"0.5369706",
"0.5363637",
"0.5357977",
"0.53410906",
"0.53245306",
"0.53131133",
"0.529562",
"0.5284208",
"0.5283001",
"0.52785176",
"0.5259608",
"0.5258877",
"0.5257399",
"0.5190438",
"0.51695627",
"0.5162177",
"0.5160468",
"0.51592565",
"0.5156018",
"0.5144909",
"0.5141019",
"0.5125247",
"0.51238495",
"0.51108533",
"0.5104502",
"0.509284",
"0.50806445",
"0.507329",
"0.5067048",
"0.5028755",
"0.5025457",
"0.50172126",
"0.5013819",
"0.5009683",
"0.5008376",
"0.5003037",
"0.5001136",
"0.5000483",
"0.49976575",
"0.4996646",
"0.49965748",
"0.49940965",
"0.49939632",
"0.49894094",
"0.4988358",
"0.49870905",
"0.4985644",
"0.49831244",
"0.4977335",
"0.49765956",
"0.49699613",
"0.49685985",
"0.4964431",
"0.49595043",
"0.49595043",
"0.49595043",
"0.49586174",
"0.49578556",
"0.49551517",
"0.49477878",
"0.49477878",
"0.49318624",
"0.49292272",
"0.49243835",
"0.49243835",
"0.4923495"
] | 0.7187109 | 2 |
/Rectangle rec1=new Rectangle(); Rectangle rec2=rec1; System.out.println("objects equals check "+rec1.equals(rec2)); /Rectangle rec3=new Rectangle(); Rectangle rec4=new Rectangle(); System.out.println("objects equals check "+rec3.equals(rec4)); /rec1.Area(12, 6); rec2.Circumference(12, 7); | public static void main(String[] args)
{
Rectangle rec5=new Rectangle(4,5);
Rectangle rec6=new Rectangle(4,5);
System.out.println("hashcodes "+rec5.hashCode() +" "+rec6.hashCode());
System.out.println("objects equals check "+rec5.equals(rec6));
System.out.println("objects equals check "+ (rec5==rec6));
/*Rectangle rec7=new Rectangle(4,5);
Rectangle rec8=rec7;
System.out.println("objects equals check "+rec7.equals(rec8));
System.out.println("objects equals check "+ (rec7==rec8));
*/
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String args[]) \n {\n Rectangle r1 = new Rectangle(); \n // r2 is variabel reference lainnya \n // r2 is di inisialisasi menggunakan r1: \n // r1 dan r2 sama2 mengreferensi objek yang sama \n // maka tidak mengduplikasi objek yang sama \n // dan tidak menggunakan memori alokasi tambahan\n Rectangle r2 = r1; \n r1.length = 10; \n r2.length = 20; \n System.out.println(\"Value of R1's Length : \" + r1.length); \n System.out.println(\"Value of R2's Length : \" + r2.length); \n }",
"public static void main(String[] args){ Rectangle box1 = new Rectangle(5,4);\n// System.out.println(box1.getArea());\n// System.out.println(box1.getPerimeter());\n//// Rectangle box2 = new Square(5);\n// System.out.println(box2.getArea());\n// System.out.println(box2.getPerimeter());\n//\n Measurable box1 = new Square(5);\n System.out.println(\"Square \" + box1.getPerimeter());\n System.out.println(\"Square \" + box1.getArea());\n box1 = new Rectangle(4,5);\n System.out.println(\"Rectangle \" + box1.getPerimeter());\n System.out.println(\"Rectangle \" + box1.getArea());\n }",
"public static void main(String[] args) {\n Circle circle1 = new Circle(1);\n System.out.println(circle1.toString());\n circle1.printCircle();\n System.out.println(circle1.getArea() + \" \" + circle1.getPerimeter() );\n\n System.out.println();\n System.out.println();\n\n Rectangle rec1 = new Rectangle(2,2);\n System.out.println(rec1.toString());\n System.out.println(rec1.getHeight() + \" \" + rec1.getWidth());\n System.out.println(rec1.getPerimeter() + \" \" + rec1.getArea());\n\n\n\n\n }",
"public static void main(String[] args) {\n\n Rectangle myGarden=new Rectangle(7,8);\n System.out.println(myGarden.toString());\n\n System.out.println(myGarden.getArea());\n\n Rectangle hisGarden= new Rectangle();\n hisGarden.setLenght(12);\n hisGarden.setWidths(5);\n\n hisGarden.equals(myGarden);\n\n System.out.println(myGarden.hashCode());\n\n System.out.println(Rectangle.getArea(10, 8));\n\n TriangleFactory factory = new TriangleFactory();\n Triangle fourth = TriangleFactory.create(10,1,1);\n }",
"static void testRectangle(Point a, Point b, Point c, Point d){\n Rectangle rect1 = new Rectangle(a,b,c,d);\n System.out.print(\"Perimeter of rectangle=\"+rect1.calculatePerimeter());\n System.out.printf(\"->%b\\n\", String.format(\"%.2f\", rect1.calculatePerimeter()).equals(\"16.00\"));\n System.out.print(\"Area of rectangle=\"+rect1.calculateArea());\n System.out.printf(\"->%b\\n\", String.format(\"%.2f\", rect1.calculateArea()).equals(\"16.00\"));\n System.out.println(rect1); //prints the return value from rect1.toString()\n }",
"@Test\n public void testEqualsTrue() {\n Rectangle r5 = new Rectangle(7, 4, new Color(255, 0, 0), new Position2D(50, 75));\n Rectangle r6 = new Rectangle(0, 4, new Color(255, 255, 255),\n new Position2D(-50, 75));\n Rectangle r7 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(50, -75));\n Rectangle r8 = new Rectangle(0, 0, new Color(200, 150, 133),\n new Position2D(-50, -75));\n\n assertEquals(r1, r5);\n assertEquals(r2, r6);\n assertEquals(r3, r7);\n assertEquals(r4, r8);\n }",
"public static void main(String[] args){\n Rectangle rectangle1 = new Rectangle(4,40);\n System.out.println(\"The area for the rectangle of width \" + rectangle1.width +\n \" and height \" + rectangle1.height + \"is \" + rectangle1.getArea() + \n \" and the perimeter is \" + rectangle1.getPerimeter());\n\n //Create a rectangle with width 3.5 and height 35.9\n Rectangle rectangle2 = new Rectangle(3.5, 35.9);\n System.out.println(\"The area for the rectangle of width \" + rectangle2.width +\n \" and height \" + rectangle2.height + \"is \" + rectangle2.getArea() + \n \" and the perimeter is \" + rectangle2.getPerimeter());\n }",
"public static void main(String[] args)\n {\n Rectangle rec1 = new Rectangle();\n double width = rec1.setWidth(4.0);\n double height = rec1.setHeight(40.0);\n System.out.println(\"The area of a rectangle with width \"+width+\" and height \"+height+\" is \"+rec1.getArea());\n System.out.println(\"The perimeter of this rectangle is \"+rec1.getPerimeter());\n Rectangle rec2 = new Rectangle();\n width = rec2.setWidth(3.5);\n height = rec2.setHeight(35.9);\n System.out.println(\"The area of a rectangle with width \"+width+\" and height \"+height+\" is \"+rec2.getArea());\n System.out.println(\"The perimeter of this rectangle is \"+rec2.getPerimeter());\n \n }",
"public static void main(String[] args){\n Rectangle obj1 = new Rectangle(5, 3);\n obj1.show();\n\n // passing obj1 in obj2\n Rectangle obj2 = obj1;\n obj2.show();\n }",
"public static void main(String[] args) {\n\t\tRectaangle rec = new Rectaangle();\n\t\tCircle ci = new Circle();\n\t\tArea are;\n\t\tare = rec;\n\t\tSystem.out.println(\"area of rectangle is \"+ are.calculation(15,10));\n\t\tare = ci;\n\t\tSystem.out.println(\"area of circle is \"+ are.calculation(16, 0));\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tPoint point1=new Point(10,20);\r\n\t\tPoint point2=new Point(10,20);\r\n\t\tPoint point3=point2;\r\n\t\t\r\n\t\t\r\n\t\t//==연산자에서 두개의 항이 객체 참조 변수 인 경우\r\n\t\t//두 객체의 동일 여부(동일성)\r\n\t\tSystem.out.println(point1==point2);\r\n\t\tSystem.out.println(point2==point3);\r\n\t\t\r\n\t\t//두 객체의 동질성 비교를 할때에는 equals메소드를 사용\r\n\t\t//equals가 오버라이드가 안된경우에는 == 와 완전히 동일(해쉬코드를 비교하기때문에)\r\n\t\tSystem.out.println(point1.equals(point2));\r\n\t\tSystem.out.println(point2.equals(point3));\r\n\t\t\r\n\t\tSystem.out.println(\"=================\");\r\n\t\t\r\n\t\t/*String 객체와 비교*/\r\n\t\tString s1=new String(\"hello\");\r\n\t\tString s2=new String(\"hello\");\r\n\t\tString s3=s2;\r\n\t\tSystem.out.println(s1==s2);\r\n\t\tSystem.out.println(s2==s3);\r\n\t\t\r\n\t\tSystem.out.println(s1.equals(s2));//오버라이드 되었기에 내용비교\r\n\t\tSystem.out.println(s2.equals(s3));\r\n\t\t\r\n\t\t\r\n\t\t//hashcode()비교\r\n\t\tSystem.out.println(s1.hashCode());\r\n\t\tSystem.out.println(s2.hashCode());\r\n\t\tSystem.out.println(System.identityHashCode(s1));//override했을때 hashcode의 참조값을 보고싶을떄\r\n\t\tSystem.out.println(System.identityHashCode(s2));\r\n\t\t\r\n\t\t//String Literal\r\n\t\tString str1=\"hello\";\r\n\t\tString str2=\"hello\";\r\n\t\tString str3=str2;\r\n\t\t\r\n\t\tSystem.out.println(str1==str2);//true로 나오는 이유는 String특성상 문자열상수pool에서 같은 값이 있는지 찾아보고 있으면 같은 hashcode를 써버림//Integer도 마찬가지 정수형 상수 Pool\r\n\t\tSystem.out.println(str2==str3);\r\n\t}",
"public static void main(String[] args) {\n\t\tCircle a = new Circle();\n\t\tSystem.out.println(a);\n\t\t\n\t\t//Rectangle\n\t\tRectangle b = new Rectangle(33.3, 22.2, \"green\", false);\n\t\tSystem.out.println(b);\n\t\t\n\t\t//compare a & b's areas\n\t\tSystem.out.println(equalArea(a, b)? \"\":\"not\" + \" equal\");\n\t\t\n\t\t\n\t}",
"@Test\r\n public void testRectangleDoubler() {\r\n System.out.println(\"testRectangleDoubler\");\r\n ad = new AreaDoubler();\r\n r.accept(ad);\r\n \r\n Rectangle dr = (Rectangle)ad.getFigureDoubled();\r\n double h2 = r.getHeight()* Math.sqrt(2.0);\r\n double w2 = r.getWidth()* Math.sqrt(2.0);\r\n \r\n assertEquals(h2, dr.getHeight(), 0.02);\r\n assertEquals(w2, dr.getWidth(), 0.02);\r\n\r\n }",
"@Test\n public void testcalAreaRectangle1() {\n double ex = 4;\n \n startPoint.setX(1);\n startPoint.setY(1);\n endPoint.setX(3);\n endPoint.setY(3);\n \n double ac = rec.calAreaRectangle(startPoint, endPoint);\n assertEquals(ex, ac, 0);\n }",
"public static void main(String[] args) {\n Rectangle rectangle1 = new Rectangle(4,40);\n print(rectangle1);\n \n // Create a rectangle with height set to 35.9 and width set to 3.5\n Rectangle rectangle2 = new Rectangle(3.5,35.9);\n print(rectangle2);\n\n }",
"public static void main(String[] args) {\nAddress addobj = new Address();\r\nAddress addobj2=new Address();\r\n\r\nSystem.out.println(\"addobj: \"+addobj);\r\nSystem.out.println(\"addobj2: \"+addobj2);\r\nSystem.out.println(addobj==addobj2);\r\n//System.out.println(addobj.equals(addobj2));\r\n\r\naddobj.name=\"F\";\r\naddobj.zip=94536;\r\naddobj2.name=\"F\";\r\naddobj2.zip=94536;\r\n\r\nSystem.out.println(addobj.equals(addobj2));\r\n\r\n\r\n}",
"@Test\n public void testHashCode() {\n Rectangle r5 = new Rectangle(7, 4, new Color(255, 0, 0), new Position2D(50, 75));\n Rectangle r6 = new Rectangle(0, 4, new Color(255, 255, 255),\n new Position2D(-50, 75));\n Rectangle r7 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(50, -75));\n Rectangle r8 = new Rectangle(0, 0, new Color(200, 150, 133),\n new Position2D(-50, -75));\n\n assertEquals(r1, r5);\n assertEquals(r2, r6);\n assertEquals(r3, r7);\n assertEquals(r4, r8);\n\n assertEquals(r1.hashCode(), r5.hashCode());\n assertEquals(r2.hashCode(), r6.hashCode());\n assertEquals(r3.hashCode(), r7.hashCode());\n assertEquals(r4.hashCode(), r8.hashCode());\n }",
"public void testSerialization() {\n RectangleAnchor a1 = RectangleAnchor.RIGHT;\n RectangleAnchor a2 = null;\n try {\n ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n ObjectOutput out = new ObjectOutputStream(buffer);\n out.writeObject(a1);\n out.close();\n\n ObjectInput in = new ObjectInputStream(new ByteArrayInputStream(buffer.toByteArray()));\n a2 = (RectangleAnchor) in.readObject();\n in.close();\n }\n catch (Exception e) {\n System.err.println(e.toString());\n }\n assertTrue(a1 == a2); \n }",
"public static void main(String[] args){\n\n Measurable myShape1 = new Square(5,5);\n System.out.println(myShape1.getPerimeter());\n Measurable myShape2 = new Rectangle(5,10);\n System.out.println(myShape2.getPerimeter());\n\n System.out.println(myShape2.getArea()+ \" \" + \"is the area of rectangle and , \" + myShape1.getArea()+ \" \" + \"is the area of my square.\");\n\n\n\n }",
"@Test\n\tpublic void testEqualsObject_True() {\n\t\tbook3 = new Book(DEFAULT_TITLE, DEFAULT_AUTHOR, DEFAULT_YEAR, DEFAULT_ISBN);\n\t\tassertEquals(book1, book3);\n\t}",
"public boolean equals(Object other) {\n if (this == other) {\n return true;\n }\n if (!(other instanceof Rectangle)) {\n return false;\n }\n Rectangle r = (Rectangle) other;\n return (this.name.equals(r.name))\n && (this.color.equals(r.color))\n && (this.xPos == r.xPos)\n && (this.yPos == r.yPos)\n && (Double.compare(this.width, r.width) == 0)\n && (Double.compare(this.height, r.height) == 0)\n && this.startTime == r.startTime\n && this.endTime == r.endTime;\n }",
"public static void main(String[] args) {\n\n Quadrilateral myShape = new Rectangle(7,6);\n\n System.out.println(\"myShape.getArea() = \" + myShape.getArea());\n System.out.println(\"myShape.getPerimeter() = \" + myShape.getPerimeter());\n\n\n\n\n// System.out.println(\"~~~~~~~~~~~~~~~~~~~~\");\n//\n// Rectangle box1 = new Rectangle(5, 4);\n// System.out.println(box1.getPerimeter());\n// System.out.println(box1.getArea());\n//\n// System.out.println(\"~~~~~~~~~~~~~~~~~~~~\");\n//\n// Rectangle box2 = new Square(5);\n// System.out.println(box2.getPerimeter());\n// System.out.println(box2.getArea());\n//\n// System.out.println(\"~~~~~~~~~~~~~~~~~~~~\");\n//\n// Rectangle box3 = new Rectangle(6, 9);\n// System.out.println(box3.getPerimeter());\n// System.out.println(box3.getArea());\n//\n// System.out.println(\"~~~~~~~~~~~~~~~~~~~~\");\n//\n// Rectangle box4 = new Square(8);\n// System.out.println(box4.getPerimeter());\n// System.out.println(box4.getArea());\n\n }",
"@Test\n public void testcalAreaRectangle2() {\n double ex = 4;\n \n startPoint.setX(-1);\n startPoint.setY(-1);\n endPoint.setX(-3);\n endPoint.setY(-3);\n \n double ac = rec.calAreaRectangle(startPoint, endPoint);\n assertEquals(ex, ac, 0);\n }",
"@Test\n public void testcalAreaRectangle4() {\n double ex = 4;\n \n startPoint.setX(-1);\n startPoint.setY(1);\n endPoint.setX(3);\n endPoint.setY(3);\n \n double ac = rec.calAreaRectangle(startPoint, endPoint);\n assertNotEquals(ex, ac, 0);\n }",
"@Test\r\n public void testDrawingDoubler() {\r\n System.out.println(\"testDrawingDoubler\");\r\n ad = new AreaDoubler();\r\n d.accept(ad);\r\n \r\n Drawing dd = (Drawing)ad.getFigureDoubled();\r\n Circle dd_c = (Circle) dd.getComponents().get(0);\r\n Rectangle dd_r = (Rectangle) dd.getComponents().get(1);\r\n \r\n \r\n Circle c_doubled = (Circle)d.getComponents().get(0);\r\n double c_radius_doubled = c_doubled.getRadius()* Math.sqrt(2.0);\r\n \r\n assertEquals(c_radius_doubled, dd_c.getRadius(), 0.02);\r\n \r\n Rectangle r_doubled = (Rectangle)d.getComponents().get(1);\r\n double r_height_doubled = r_doubled.getHeight()* Math.sqrt(2.0);\r\n double r_width_doubled= r_doubled.getWidth()*Math.sqrt(2.0);\r\n \r\n assertEquals(r_height_doubled, dd_r.getHeight(), 0.02);\r\n assertEquals(r_width_doubled, dd_r.getWidth(), 0.02);\r\n \r\n }",
"public void testEqualsObject() {\n\t\t\tTipoNodoLeisure tipo1 = new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.0\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo2= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.1\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo3= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.2\")); //$NON-NLS-1$\n\t\t\tif (tipo1 != tipo1)\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.3\")); //$NON-NLS-1$\n\t\t\tif (!tipo1.equals(tipo2))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.4\"));\t\t\t //$NON-NLS-1$\n\t\t\tif (tipo1.equals(tipo3))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.5\"));\t //$NON-NLS-1$\n\t\t}",
"@Test\r\n\tpublic void testEquality(){\n\t\t assertEquals(object1, object2);\r\n\t}",
"public static void main(String[] args) {\n\n Rectangle rectangle = new Rectangle(10.5,10.5,100.5,100.5);\n if(rectangle instanceof Shape){\n rectangle.getParams();\n// rectangle.move1();\n// rectangle.getParams();\n } else {\n System.out.println(\"Это не объект фигуры!\");\n }\n System.out.println();\n }",
"@Test\n public void testEquals() {\n System.out.println(\"Animal.equals\");\n Animal newAnimal = new Animal(252, \"Candid Chandelier\", 10, \"Cheetah\", 202);\n assertTrue(animal1.equals(newAnimal));\n assertFalse(animal2.equals(newAnimal));\n }",
"public static void main(String arg[]) {\n Shape s ;\n s= new Shape() ;\n s.draw();\n s= new Rectange();\n s.draw();\n}",
"@Test\r\n\tpublic void testObjects() {\n\t\tFlight f1 = new Flight(1001, \"BLR\", \"BOM\");\r\n\t\tFlight f2 = new Flight(1001, \"BLR\", \"BOM\");\r\n\t\t\r\n\t\t//Test here:\r\n\t\t//assertSame(\"Objects are not same\",f1,f2);\r\n\t\t//assertEquals(\"Objects are not equal\",f1,f2);\r\n\t\t//assertNull(f2);\r\n\t\tassertNotNull(f2);\r\n\t\t\r\n\t\t\r\n\t}",
"@Test\n public void testcalAreaRectangle3() {\n double ex = -4;\n \n startPoint.setX(1);\n startPoint.setY(1);\n endPoint.setX(3);\n endPoint.setY(3);\n \n double ac = rec.calAreaRectangle(startPoint, endPoint);\n assertNotEquals(ex, ac, 0);\n }",
"@Test\r\n public void testEquals() {\r\n System.out.println(\"equals\");\r\n Object obj = null;\r\n RevisorParentesis instance = null;\r\n boolean expResult = false;\r\n boolean result = instance.equals(obj);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"public void testEquals() {\n assertTrue(RectangleAnchor.TOP.equals(RectangleAnchor.TOP));\n }",
"public static void main(String[] args) {\n Student student1 = new Student(10000, 20000, \"Sang\", \"Shin\", \"Good School\");\r\n \r\n // You can assign the object instance to\r\n // StudentInterface type.\r\n StudentInterface studentinterface1 = student1;\r\n \r\n // Display data from student1 and studentinterface1.\r\n // Observe that they refer to the same object instance.\r\n System.out.println(\"student1.getName() = \" + student1.getName() + \",\" +\r\n \" student1.computeTotalWealth() = \" + student1.computeTotalWealth()+ \",\" +\r\n \" student1.findSchool() = \" + student1.findSchool());\r\n \r\n System.out.println(\"studentinterface1.getName() = \" + studentinterface1.getName() + \",\" +\r\n \" studentinterface1.computeTotalWealth() = \" + studentinterface1.computeTotalWealth()+ \",\" +\r\n \" studentinterface1.findSchool() = \" + studentinterface1.findSchool());\r\n \r\n // Check of object instance that is referred by student1 and\r\n // studentinterface1 is the same object instance.\r\n boolean b1 = (student1 == studentinterface1);\r\n System.out.println(\"Do student1 and studentinterface1 point to the same object instance? \" + b1);\r\n \r\n }",
"public static void main(String args[]) {\n\t\tRectanglew r = new Rectanglew(9, 5);\n\t\tTrianglew t = new Trianglew(10, 8);\n\t\t//Figureg figref; // this is OK, no object is created\n\t\t//figref = r;\n\t\tSystem.out.println(\"Area is \" + r.area());\n\t\t//figref = t;\n\t\tSystem.out.println(\"Area is \" + t.area());\n\t}",
"public static void main(String[] args) {\n\t\tShape s=new Shape();\n\t\ts.getArea();\n\t\tShape[] shape=new Shape[]{new Rectangle(3.0,4.0), new RightTriangle(6.0,4.0), new Circle(2.0)};\n\t\tfor(int i=0;i<3;i++){\n\t\t\tSystem.out.println(shape[i].getArea());\n\t\t\t}\n\t\tSystem.out.println(\"Triangle Rectangle: \"+ shape[0].equals(shape[1]));\n\t\tSystem.out.println(\"Triangle Circle: \"+ shape[1].equals(shape[2]));\n\t\tSystem.out.println(\"Circle Rectangle: \"+ shape[2].equals(shape[0]));\n\t\tSystem.out.println(\"Rectangle: \"+ shape[0].toString());\n\t\tSystem.out.println(\"Triangle: \"+ shape[1].toString());\n\t\tSystem.out.println(\"Circle: \"+ shape[2].toString());\n\t}",
"public void testEquals() {\n StandardXYBarPainter p1 = new StandardXYBarPainter();\n StandardXYBarPainter p2 = new StandardXYBarPainter();\n }",
"@Test @Graded(description=\"testAddRectangle\", marks=12)\n\tpublic void testAddRectangle() {\n\t\tRectangle r = new Rectangle(30, 5);\n\t\tlist1.add(r);\n\t\tassertEquals(5, list1.currentSize());\n\t\tassertEquals(5, list1.currentCapacity());\n\t\tassertNotNull(list1.get(0));\n\t\tassertEquals(\"10 by 5\", list1.get(0).toString());\n\t\tassertNotNull(list1.get(1));\n\t\tassertEquals(\"70 by 10\", list1.get(1).toString());\n\t\tassertNotNull(list1.get(2));\n\t\tassertEquals(\"20 by 20\", list1.get(2).toString());\n\t\tassertNotNull(list1.get(3));\n\t\tassertEquals(\"90 by 50\", list1.get(3).toString());\n\t\tassertNotNull(list1.get(4));\n\t\tassertEquals(\"30 by 5\", list1.get(4).toString());\n\n\t\tr.width = (1);\n\t\t// we wanted to add an instance copy of the object\n\t\tassertEquals(\"30 by 5\", list1.get(4).toString());\n\n\t\t// adding 6th item should have \"grown\" the list\n\t\tr = new Rectangle(100);\n\n\t\t// add test will pass after you correctly implement grow()\n\t\tlist1.add(r);\n\t\tassertEquals(6, list1.currentSize());\n\t\tassertEquals(15, list1.currentCapacity());\n\t\tassertNotNull(list1.get(0));\n\t\tassertEquals(\"10 by 5\", list1.get(0).toString());\n\t\tassertNotNull(list1.get(1));\n\t\tassertEquals(\"70 by 10\", list1.get(1).toString());\n\t\tassertNotNull(list1.get(2));\n\t\tassertEquals(\"20 by 20\", list1.get(2).toString());\n\t\tassertNotNull(list1.get(3));\n\t\tassertEquals(\"90 by 50\", list1.get(3).toString());\n\t\tassertNotNull(list1.get(4));\n\t\tassertEquals(\"30 by 5\", list1.get(4).toString());\n\t\tassertNotNull(list1.get(5));\n\t\tassertEquals(\"100 by 100\", list1.get(5).toString());\n\n\t\tr.width = (888);\n\t\t// we wanted to add an instance copy of the object\n\t\tassertEquals(\"100 by 100\", list1.get(5).toString());\n\t\tcurrentMethodName = new Throwable().getStackTrace()[0].getMethodName();\n\n\t}",
"@Test\n public void testRectangleConstructor() {\n defaultShape1 = new Rectangle(defaultColor1, defaultPosition1, defaultSize1);\n // If successful the type should be rectangle.\n assertEquals(TypeOfShape.RECTANGLE, defaultShape1.getType());\n assertNotEquals(defaultShape1.getType(), TypeOfShape.OVAL);\n }",
"@Override public boolean equals(Object o) {\r\n\t\tif (o instanceof Shape) {\r\n\t\t\treturn this.area() == ((Shape)o).area();\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Test\n public void testcalPerimeterRectangle1() {\n double ex = 8;\n \n startPoint.setX(1);\n startPoint.setY(1);\n endPoint.setX(3);\n endPoint.setY(3);\n \n double ac = rec.calPerimeterRectangle(startPoint, endPoint);\n assertEquals(ex, ac, 0);\n }",
"public static void main(final String[] args) {\r\n Shape myRec = new Rectangle(10.0f, 20.0f);\r\n System.out.println(\"Rectangle\");\r\n printAreaOf(myRec);\r\n printPerimeterOf(myRec);\r\n Shape mySqu = new Square(10.0f);\r\n System.out.println(\"Square\");\r\n printAreaOf(mySqu);\r\n printPerimeterOf(mySqu);\r\n System.out.println(\"Circle\");\r\n Shape myCir = new Circle(10.0f);\r\n printAreaOf(myCir);\r\n printPerimeterOf(myCir);\r\n System.out.println(\"Triangle\");\r\n Shape myTri = new Triangle(3.0f, 4.0f, 5.0f);\r\n printAreaOf(myTri);\r\n printPerimeterOf(myTri);\r\n System.out.println(\"Regular polygon 3 sides\");\r\n Shape rp1 = new RegularPolygon(10.0f, 3);\r\n printAreaOf(rp1);\r\n printPerimeterOf(rp1);\r\n System.out.println(\"Regular polygon 4 sides\");\r\n Shape rp2 = new RegularPolygon(new Float(5 * Math.sqrt(2f) / 2), 4);\r\n printAreaOf(rp2);\r\n printPerimeterOf(rp2);\r\n System.out.println(\"Regular polygon 999 sides\");\r\n Shape rp3 = new RegularPolygon(1f, 999);\r\n printAreaOf(rp3);\r\n printPerimeterOf(rp3);\r\n System.out.println(Math.PI * 2);\r\n try {\r\n Shape tr = new Triangle(0f, 1f, 2f);\r\n } catch (IllegalArgumentException e) {\r\n System.out.format(\"Erreur during creation of shape: %s\\n\"\r\n + e.getMessage());\r\n }\r\n\r\n }",
"public static void main(String[] args) {\n\t\t\n\t\tAnimal a1 = new Animal(\"dog\");\n\t\tAnimal a2 = new Animal(\"dog\");\n\t\t\n\t\tSystem.out.println(a1==a2);//output would be false because although values are equal but references(memory locations) of both objects are different.\n\n\t}",
"public static void main(String[] args) {\n Rectangle myRect; //ISSUE 2: No existe la clase Rectangle\n //SOLVE 2: Se creo la clase Rectangle dentro del mismo paquete\n //ISSUE 2.1: No se ha instanciado myRectangle\n myRect = new Rectangle();//SOLVE 2.1: Se instancio my Rect\n myRect.width = 40; //ISSUE 3: No existe un atributo que se llame width dentro de la clase Rectangle\n //SOLVE 3: Se creo la propiedad width a la clase rectangle\n myRect.height = 50; //ISSUE 4: No existe un atributo que se llame height dentro de la clase Rectangle\n //SOLVE 4: Se creo la propiedad hright a la clase rectangle\n System.out.println(\"myRect's area is \" + myRect.area()); //ISSUE 5: No existe el metodo Area dentro de la clase Rectangle\n //SOLVE 5: Se creo el metodo Area en la clase rectangle que multiplica width por height\n }",
"public void testEqualsObject()\n {\n // Null check\n assertFalse(b1.equals(null));\n // Type mismatch\n assertFalse(b1.equals(\"a\"));\n\n // Reflexive\n assertTrue(b1.equals(b1));\n\n // In general, two empty boards\n assertTrue(b1.equals(b2));\n\n // Different contents\n b1.setCell(0, 0, Cell.RED1);\n assertFalse(b1.equals(b2));\n\n // Same Contents\n b2.setCell(0, 0, Cell.RED1);\n assertTrue(b1.equals(b2));\n\n // Some more complex cases\n b1.fromString(\"RRRBEEBBE\");\n assertFalse(b1.equals(b2));\n b2.fromString(\"RRRBEEBBE\");\n assertTrue(b1.equals(b2));\n\n }",
"public void setRectDifference(PDRectangle rd) {\n/* 603 */ getCOSObject().setItem(COSName.RD, (COSObjectable)rd);\n/* */ }",
"public static void main(String[] args) {\n \n String s1 = new String(\"abc\"); // new address space created\n String s2 = new String(\"xyz\");\n String s3 = new String(\"xyz\");\n String s4 = \"xyz\";\n String s5 = \"xyz\";\n System.out.println(\"s1 == s2 \" + s1 == s2);\n System.out.println(\"s1.equals(s2) \" + s1.equals(s2));\n System.out.println(\"s2.equals(s3) \" + s2.equals(s3));\n System.out.println(\"s2 == s3 \" + s2 == s3);\n System.out.println(\"s4 == s5 \" + s4 == s5);\n System.out.println(\"s4.equals(s5) \" + s4.equals(s5));\n \n // == operator comparison with null is always false\n \n System.out.println(\"s1 == null \" + (s1 == null));\n \n // null == null comparison results in always true\n System.out.println( \"null == null \" + (null == null));\n \n // equality operators can be applied everywhere \n // boolean\n // primitives\n // objects conditions [ there should be some relation \n // between reference type else it will result in compile time error]\n \n \n //******************************************************************\n // EQUALS METHOD\n //******************************************************************\n //Equals method present in the object class is meant for reference comparison \n // if we want to content comparison then we need to over-ride the method in the child class.\n \n \n // When do we need to override equals method?\n // It is when a class has a\n // notion of logical equality that differs from mere object identity and a\n // superclass has not already overridden equals.\n \n // What is a value classes\n // Value classes are classes which represent some values such as Integer or String.\n // Over here when we want to check\n \n // A programmer who compares references to value\n // objects using the equals method expects to find out whether they are\n // logically equivalent, not whether they refer to the same object\n \n //******************************************************************\n // EQUALS METHOD RELATION WITH REFERENCE OPERATOR\n //******************************************************************\n \n // CASE 1: IF R1 == R2 is TRUE then R1.equals(R2) is always TRUE\n // CASE 2: IF R1 == R2 is FALSE then R1.equals(R2) maybe true(when equals method has been overridden) and \n // FALSE when equals method has not been overridden\n // CASE 3: IF R1.equals(R2) is TRUE then R1 == R2 maybe true (if equals method had not been overridden) and \n // false if not overridden\n // CASE 4: IF R1.equals(R2) false then R1 == R2 is always FALSE\n \n StringBuffer sb1 = new StringBuffer(\"1\");\n StringBuffer sb2 = new StringBuffer(\"1\");\n String str1 = new String (\"1\");\n System.out.println(\"str1.equals(sb1) \" + str1.equals(sb1)); \n \n //INTERESTING CONCLUSION WHEN COMPARED WITH NULL BOTH == operator and equals method will return null\n System.out.println(\"sb1 == null \" + (sb1 == null));\n System.out.println(\"sb1.equals(null) \" + sb1.equals(null));\n \n //When we want to use == operator then the reference type must have some sort of relation \n // either R1 or R2 must be of same type\n // either R1 must be parent of R2\n // either R1 must be child of R2 \n // else it will result in compilation error ie incomparable types.\n \n String s11 = new String(\"amitabh\");\n String s21 = new String(\"amitabh\");\n \n System.out.println( \"s11.equals(s21) \" + s11.equals(s21) );\n System.out.println( \"s11.hashCode() == s21.hashCode() \" + (s11.hashCode() == s21.hashCode() ));\n \n //Thus from the above we can conclude that the equals and hashcode methods have been overridden in the case\n //of string for content comparison\n \n StringBuffer sb11 = new StringBuffer(\"amitabh\");\n StringBuffer sb21 = new StringBuffer(\"amitabh\");\n \n System.out.println( \"sb11.equals(s21) \" + sb11.equals(sb21) );\n System.out.println( \"sb11.hashCode() == sb21.hashCode() \" + (sb11.hashCode() == sb21.hashCode() ));\n \n // Thus from the above we can conclude that the equals method is not overridden for content comparison \n // and hashcode methods has also not been overridden in the case\n // of string for content comparison\n }",
"public static void main(String[] args) {\n\t\tLinkedList lit = new LinkedList();\n\t\t\n\t\t// insert the value in object1\n\t\tlit.insert(10);\n\t\tlit.insert(20);\n\t\tlit.insert(30);\n\t\tlit.insert(40);\n\t\tlit.show();\n\t\t\n\t\t// create the object2 of LinkedList \n\t\tLinkedList lit1 = new LinkedList();\n\t\t\n\t\t// insert the value in object2\n\t\tlit1.insert(10);\n\t\tlit1.insert(20);\n\t\tlit1.insert(30);\n\t\tlit1.insert(40);\n\t\tlit1.show();\n\t\t\n\t\t//check the condition of equality is true false\n\t\tSystem.out.println(lit.equals(lit1));\n\t\t\n\t\t//check the condition of equality with another object is true false\n\t\tLinkedList lit2 = lit;\n\t\tSystem.out.println(lit.equals(lit2));\n\t}",
"@Test\n public void equals_DifferentObjects_Test() {\n Assert.assertFalse(bq1.equals(ONE));\n }",
"public boolean mojeEquals(Obj o1, Obj o2) {\r\n\t\t//System.out.println(o1.getName() + \" \" + o2.getName());\r\n\t\tboolean sameRight = true; // 21.06.2020. provera prava pristupa\r\n\t\tboolean sameName = true;\t// 22.06.2020. ako nisu metode ne moraju da imaju isto ime\r\n\t\tboolean sameArrayType = true; //22.6.2020 ako je parametar niz mora isti tip niza da bude\r\n\t\t\r\n\t\tif (o1.getKind() == Obj.Meth && o2.getKind() == Obj.Meth) {\r\n\t\t\tsameRight = o1.getFpPos() == o2.getFpPos()+10; \r\n\t\t\tsameName = o1.getName().equals(o2.getName());\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (o1.getType().getKind() == Struct.Array && o2.getType().getKind() == Struct.Array) {\r\n\t\t\t\tif (!(o1.getType().getElemType() == o2.getType().getElemType())) { // ZA KLASE MOZDA TREBA equals\r\n\t\t\t\t\tsameArrayType = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// 16.08.2020.\r\n//\t\tif (o1.getType().getKind() == Struct.Class || o1.getType().getKind() == Struct.Interface)\r\n//\t\t\treturn true;\r\n\t\t\r\n\t\t\r\n\t\treturn o1.getKind() == o2.getKind() \r\n\t\t\t\t&& sameName\r\n\t\t\t\t&& o1.getType().equals(o2.getType())\r\n\t\t\t\t&& /*adr == other.adr*/ o1.getLevel() == o2.getLevel()\r\n\t\t\t\t&& equalsCompleteHash(o1.getLocalSymbols(), o2.getLocalSymbols())\r\n\t\t\t\t&& sameRight // 21.06.2020. provera prava pristupa\r\n\t\t\t\t&& sameArrayType; //22.6.2020 ako je parametar niz mora isti tip niza da bude\r\n\t}",
"public static void main(String[] args) {\n\n Person Iffy = new Person(\"Iffy\");\n System.out.println(\"Iffy.personName = \" + Iffy.personName);\n System.out.println(\"Iffy.getName() = \" + Iffy.getName());\n System.out.println(\"Iffy.sayHello() = \" + Iffy.sayHello());\n Iffy.setName(\"Irfa\");\n System.out.println(\"Iffy.personName = \" + Iffy.personName);\n\n// Person person1 = new Person(\"John\");\n// Person person2 = new Person(\"John\");\n// System.out.println(person1.getName().equals(person2.getName()));\n// System.out.println(person1 == person2);\n\n// Person person1 = new Person(\"John\");\n// Person person2 = person1;\n// System.out.println(person1 == person2);\n\n Person person1 = new Person(\"John\");\n Person person2 = person1;\n System.out.println(person1.getName());\n System.out.println(person2.getName());\n person2.setName(\"Jane\");\n System.out.println(person1.getName());\n System.out.println(person2.getName());\n\n\n }",
"public static void main(String[] args) {\n Rectangle r1 = new Rectangle(); //Instantiates a Rectangle object\n\n System.out.println(\"The first rectangle's length is \" + r1.getLength() + \" FT\"); //Prints information about the object\n System.out.println(\"The first rectangle's width is \" + r1.getWidth() + \" FT\");\n System.out.println(\"The first rectangle's area is \" + r1.calculateArea()+ \" SQFT\");\n System.out.println(\"The first rectangle's perimeter is \" + r1.calculatePerimeter() + \" FT\");\n\n System.out.println(\"\\nChanging r1's length using a String argument...\");\n r1.setLength(\"15\"); //Changes r1's length using the overloaded setLength method\n\n System.out.println(\"\\nThe first rectangle's length is \" + r1.getLength() + \" FT\"); //Prints information about the object\n System.out.println(\"The first rectangle's width is \" + r1.getWidth() + \" FT\");\n System.out.println(\"The first rectangle's area is \" + r1.calculateArea()+ \" SQFT\");\n System.out.println(\"The first rectangle's perimeter is \" + r1.calculatePerimeter() + \" FT\");\n }",
"@Test\n void equals1() {\n Student s1=new Student(\"emina\",\"milanovic\",18231);\n Student s2=new Student(\"emina\",\"milanovic\",18231);\n assertEquals(true,s1.equals(s2));\n }",
"@Test\n public void testcalPerimeterRectangle2() {\n double ex = 8;\n \n startPoint.setX(-1);\n startPoint.setY(-1);\n endPoint.setX(-3);\n endPoint.setY(-3);\n \n double ac = rec.calPerimeterRectangle(startPoint, endPoint);\n assertEquals(ex, ac, 0);\n }",
"@Test\n public void evaluate() {\n Circle circle = new BlueCircle();\n\n Square square = new RedSquare();\n\n assertNotNull(\"Circle object is not created!\", circle);\n\n circle.applyColor();\n\n assertNotNull(\"Square object is not created!\", circle);\n\n square.applyColor();\n }",
"public static void main(String[] args) {\n Rectangle rectangle = new Rectangle(\"red \",4,3);\n// System.out.println(rectangle.area());\n\n Square square = new Square(\"green \",3);\n// System.out.println(square.area());\n Circle circle = new Circle(\"blue \", 4);\n\n// System.out.println(square.getColor());\n\n Shape[] shapes = {rectangle, square, circle};\n for (Shape shape: shapes) {\n shape.showColorAndArea();\n }\n\n }",
"public PDRectangle getRectDifference() {\n/* 615 */ COSBase base = getCOSObject().getDictionaryObject(COSName.RD);\n/* 616 */ if (base instanceof COSArray)\n/* */ {\n/* 618 */ return new PDRectangle((COSArray)base);\n/* */ }\n/* 620 */ return null;\n/* */ }",
"public void testObjEqual()\n {\n assertEquals( true, Util.objEqual(null,null) );\n assertEquals( false,Util.objEqual(this,null) );\n assertEquals( false,Util.objEqual(null,this) );\n assertEquals( true, Util.objEqual(this,this) );\n assertEquals( true, Util.objEqual(\"12\",\"12\") );\n }",
"@Test\n public void testEqualsFalse() {\n Rectangle r5 = new Rectangle(7, 5, new Color(255, 0, 0), new Position2D(50, 75));\n Rectangle r6 = new Rectangle(0, 4, new Color(255, 255, 254),\n new Position2D(-50, 75));\n Rectangle r7 = new Rectangle(0, 4, new Color(255, 155, 255),\n new Position2D(-50, 75));\n Rectangle r8 = new Rectangle(0, 4, new Color(0, 255, 255),\n new Position2D(-50, 75));\n Rectangle r9 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(50, 75));\n Rectangle r10 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(51, -75));\n Rectangle r11 = new Rectangle(1, 0, new Color(200, 150, 133),\n new Position2D(-50, -75));\n Rectangle r12 = new Rectangle(1, 100, new Color(199, 155, 13),\n new Position2D(50, 0));\n\n assertNotEquals(r1, r5);\n assertNotEquals(r2, r6);\n assertNotEquals(r2, r7);\n assertNotEquals(r2, r8);\n assertNotEquals(r3, r9);\n assertNotEquals(r3, r10);\n assertNotEquals(r4, r11);\n assertNotEquals(r4, r12);\n }",
"public void testEquals(PCEPObject object1, PCEPObject object2) {\n \tInteger test1=new Integer(2);\n\t\tobject1.equals(test1);\n \t//Test same object\n \tobject1.equals(object1);\n \t//Test change in parent\n \tobject2.setObjectClass(object1.getObjectClass()+1);\n \tobject1.equals(object2);\n \tobject2.setObjectClass(object1.getObjectClass());\n \t//Test changes in fields\n\t\tList<Field> fieldListNS = new ArrayList<Field>();\n\t\tList<Field> fieldList= Arrays.asList(object1.getClass().getDeclaredFields());\n\t\tfor (Field field : fieldList) {\n\t\t\tfieldListNS.add(field);\n\t\t\tType ty=field.getGenericType();\n\t\t\tif (!java.lang.reflect.Modifier.isStatic(field.getModifiers())) {\n\t\t\t\tif (ty instanceof Class){\n\t\t\t\t\tClass c =(Class)ty;\n\t\t\t\t\tSystem.out.println(\"XXXXXXXXXXXXXXXXXClass name: \"+c.getName()); \n\t\t\t\t\tMethod method;\n\t\t\t\t\tMethod methods;\n\t\t\t\t\tif (c.isPrimitive()){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (c.getName().equals(\"boolean\")) {\n\t\t\t\t\t\t\tmethod = object1.getClass().getMethod(\"is\"+field.getName().replaceFirst(field.getName().substring(0, 1), field.getName().substring(0, 1).toUpperCase()));\n\t\t\t\t\t\t\tmethods = object2.getClass().getMethod(\"set\"+field.getName().replaceFirst(field.getName().substring(0, 1), field.getName().substring(0, 1).toUpperCase()),boolean.class);\n\t\t\t\t\t\t\tif (((boolean)method.invoke(object1,null))==true) {\n\t\t\t\t\t\t\t\tmethods.invoke(object2,false);\n\t\t\t\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tmethods.invoke(object2,true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tobject1.equals(object2);\n\t\t\t\t\t\t\tmethods.invoke(object2,(boolean)method.invoke(object1,null));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tmethod = object1.getClass().getMethod(\"get\"+field.getName().replaceFirst(field.getName().substring(0, 1), field.getName().substring(0, 1).toUpperCase()));\n\t\t\t\t\t\t\tmethods = object2.getClass().getMethod(\"set\"+field.getName().replaceFirst(field.getName().substring(0, 1), field.getName().substring(0, 1).toUpperCase()),c);\n\t\t\t\t\t\t\tmethods.invoke(object2,77);\n\t\t\t\t\t\t\tobject1.equals(object2);\n\t\t\t\t\t\t\tmethods.invoke(object2,method.invoke(object1,null));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \t\n }",
"@Test\n public void testEquals() {\n Coctail c1 = new Coctail(\"coctail\", new Ingredient[]{ \n new Ingredient(\"ing1\"), new Ingredient(\"ing2\")});\n Coctail c2 = new Coctail(\"coctail\", new Ingredient[]{ \n new Ingredient(\"ing1\"), new Ingredient(\"ing2\")});\n assertEquals(c1, c2);\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tShape2 s = null;\r\n\t\t\r\n\t\ts = new Rectangle2(123.123,87.98);\r\n\t\tSystem.out.println(s.area());\r\n\t\t\r\n\t\ts = new Triangle2(54.54,88.88);\r\n\t\tSystem.out.println(s.area());\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n Circle c1 = new Circle(1.0f);\n Circle c2 = new Circle(1.0f);\n\n System.out.println(c1 == c2); // false!\n\n System.out.println(c1.equals(c2)); // true!\n\n List<Circle> arr = new ArrayList();\n arr.add(c1);\n boolean c = arr.contains(new Circle(1.0f)); // true\n // c would be false if we did not override the equals method\n System.out.println(c);\n }",
"@Test\n\tpublic void testEqualsObject_False() {\n\t\tassertNotEquals(book1, book2);;\n\t}",
"double area() {\nSystem.out.println(\"Inside Area for Rectangle.\");\nreturn dim1 * dim2;\n }",
"public void testHashCode() {\r\n System.out.println(\"hashCode\");\r\n\r\n ParametricLine2d instance = new ParametricLine2d();\r\n ParametricLine2d instanceTwo = new ParametricLine2d();\r\n\r\n assertEquals(instance.hashCode(), instanceTwo.hashCode());\r\n\r\n instance.point.x += Double.MIN_VALUE;\r\n assertTrue(instance.hashCode() != instanceTwo.hashCode());\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Calibrationdiagram)) {\r\n return false;\r\n }\r\n Calibrationdiagram other = (Calibrationdiagram) object;\r\n if ((this.iddiagram == null && other.iddiagram != null) || (this.iddiagram != null && !this.iddiagram.equals(other.iddiagram))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Receta instance = new Receta();\n instance.setNombre(\"nom1\");\n Receta instance2 = new Receta();\n instance.setNombre(\"nom2\");\n boolean expResult = false;\n boolean result = instance.equals(instance2);\n assertEquals(expResult, result);\n }",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t\tRectangle R1 = new Rectangle();\n\t\tSystem.out.println(R1.length); // who is giving me default values?\n\t\tSystem.out.println(R1.width);\n\t\t\n\t\tR1.length=5.4;\n\t\tR1.width=3.2;\n\t\t\n\t\tR1.getArea(); //17.28\n\t\t\n\t\t//Scanner sc = new Scanner (Syste,in); new invokes here constructer from scanner\n\t\t\n\t\tRectangle R2 = new Rectangle();\n\t\tR2.getArea(); // 0.0 default\n\t\tR2.length=2.7;\n\t\tR2.width=12.5;\n\t\t\n\t\tR2.getArea(); //33.75\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//method(); //no argument method\n\t\t\n\t\tmethodA(1,2);\n\t\t\n\t\n\t\t\n\t}",
"public static void main(String[] args){\n\t\tString s1=\"mohan\";\r\n\t\tString s2=\"mohan\";\r\n\t\t\r\n\t\tif(s1.equals(s2)) System.out.println(\"Two string objects has same hash value\");\r\n\t\telse System.out.println(\"Two Strings objects has different hash value\");\r\n\t\t\r\n\t\tif(s1==s2) System.out.println(\"s1 and s2 point to same Objects\");\r\n\t\telse System.out.println(\"s1 and s2 point to different Objects\");\r\n\t\t\r\n\t\tString a1 = new String(\"krish\");\r\n\t\tString a2 = new String(\"krish\");\r\n\t\t\r\n\t\tif(a1==a2 && a1.equals(a2)) \r\n\t\t\tSystem.out.println(\"a1 and a2 point to same strings object and has same value\");\r\n\t\telse if(a1!=a2 && a1.equals(a2))\r\n\t\t\tSystem.out.println(\"a1 and a2 point to different strings objects but have same value\");\r\n\t\telse if(a1!=a2 && !a1.equals(a2))\r\n\t\t\tSystem.out.println(\"a1 and a2 point to different strings objects and have different values\");\r\n\r\n\t\tint i1=10;\r\n\t\tint i2=10;\r\n\t\t\r\n\t\tif(i1==i2) System.out.println(\"Two variable have same value w.r.t ==\");\r\n\t\telse System.out.println(\"values different\");\r\n\r\n\t\tif(new Integer(i1).equals(new Integer(i1))) {\r\n\t\t\tSystem.out.println(\"Two Integer vars pointing to same object\");\r\n\t\t}\r\n\t\tInteger I1 = new Integer(i1);\r\n\t\tInteger I2 = new Integer(i2);\r\n\t\t//For integer Objects \"values\" are compared instead of references. Integer class overrides equals() method from Object class\r\n\t\tif(I1.equals(I2)) {\r\n\t\t\tSystem.out.println(\"Two Integer Objects are same\");\r\n\t\t} else System.out.println(\"Not Same Objects\");\r\n\t\t\r\n\t\tif(I1==I2) System.out.println(\"Two Objects same(referencing same w.r.t == operator\");\r\n\t\telse System.out.println(\"Two Objects Different w.r.t == operator\");\r\n\t}",
"public static void main(String[] args) {\r\n\t\t \r\n\t\t String obj1 = \"geeks\"; \r\n\t\t String obj2 = new String(\"geeks\");\r\n\t\t \r\n\t\t if(obj1.hashCode() == obj2.hashCode()) \r\n\t\t System.out.println(\"hashCode of object1 is equal to object2\"); \r\n\t\t \r\n\t\t if(obj1 == obj2) \r\n\t\t System.out.println(\"memory address of object1 is same as object2\"); \r\n\t\t \r\n\t\t if(obj1.equals(obj2)) \r\n\t\t System.out.println(\"value of object1 is equal to object2\"); \r\n\t\t }",
"public void testEquals() {\n XYBlockRenderer r1 = new XYBlockRenderer();\n XYBlockRenderer r2 = new XYBlockRenderer();\n r1.setBlockHeight(2.0);\n r2.setBlockHeight(2.0);\n r1.setBlockWidth(2.0);\n r2.setBlockWidth(2.0);\n r1.setPaintScale(new GrayPaintScale(0.0, 1.0));\n r2.setPaintScale(new GrayPaintScale(0.0, 1.0));\n }",
"@Test\n public void testcalPerimeterRectangle4() {\n double ex = 8;\n \n startPoint.setX(-1);\n startPoint.setY(-1);\n endPoint.setX(3);\n endPoint.setY(3);\n \n double ac = rec.calPerimeterRectangle(startPoint, endPoint);\n assertNotEquals(ex, ac, 0);\n }",
"public static void main(String[] args) {\n\t\tPoint p = new Point();\n\t\tSystem.out.println(p.getClass());\n\t\tSystem.out.println(p.hashCode());\n\t\tSystem.out.println(p.toString());\n\t\tSystem.out.println(p);\n\t\tSystem.out.println(0x15db9742);\n\t\t\n\t\tPoint p2 = new Point();\n\t\tSystem.out.println(p2.getClass());\n\t\tSystem.out.println(p2.hashCode());\n\t\tSystem.out.println(p2.toString());\n\t\tSystem.out.println(p2);\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println(p2.getClass().getName()+\" \"+ Integer.toHexString(p2.hashCode()));\n\t\t\n\t\tPoint p3 =new Point();\n\t\tif(p.hashCode() == p3.hashCode()) {\n\t\t\tSystem.out.println(\"same\");\n\t\t} else {\n\t\t\tSystem.out.println(\"diff\");\n\t\t}\n\t\t//\n\t\t//\n\t\tPoint p4;\n\t\tp4 = p;\n\t\tif(p.hashCode() == p4.hashCode()) {\n\t\t\tSystem.out.println(\"same\");\n\t\t} else {\n\t\t\tSystem.out.println(\"diff\");\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n Measurable myShape; // define data type of Measureable and variable name myShape\n\n myShape = new Square(5);\n\n// System.out.println(box1.getPerimeter()); // 18\n// System.out.println(box1.getArea()); // 20\n// System.out.println(\"\");\n// System.out.println(box2.getPerimeter()); // 20\n// System.out.println(box2.getArea()); // 25\n\n System.out.println(myShape.getArea());\n System.out.println(myShape.getPerimeter());\n\n myShape = new Rectangle(5,4);\n\n System.out.println(myShape.getPerimeter());\n System.out.println(myShape.getArea());\n\n\n }",
"@Test\n public void test_Copy() {\n //This tests the method with default values.\n System.out.println(\"Testing MeasuredRatioModel's copy()\");\n MeasuredRatioModel instance = new MeasuredRatioModel();\n MeasuredRatioModel expectedResult = instance;\n MeasuredRatioModel result = instance.copy();\n assertEquals(expectedResult, result);\n\n //This tests the method with specified values.\n instance=new MeasuredRatioModel(\"hello\",new BigDecimal(\"3.87695\"),\"ABS\",new BigDecimal(\"1.25\"),false,true);\n expectedResult = instance;\n result = instance.copy();\n assertEquals(expectedResult, result);\n }",
"@Test\n public void testEqualsObject() {\n \n BSPJobID jobId1 = new BSPJobID(jtIdentifier, 2);\n System.out.println(jobId.equals(jobId1));\n assertEquals(false, jobId.equals(jobId1));\n }",
"@Test\n public void testEquals() {\n\tLoadCategoriesForm obj = new LoadCategoriesForm();\n\tobj.setLoadCategory(new LoadCategories());\n\tLoadCategoriesForm instance = new LoadCategoriesForm();\n\tinstance.setLoadCategory(new LoadCategories());\n\tboolean expResult = true;\n\tboolean result = instance.equals(obj);\n\tassertEquals(expResult, result);\n }",
"double area() {\nSystem.out.println(\"Inside Area for Rectangle.\");\nreturn dim1 * dim2;\n}",
"public static void main(String[] args) {\r\n\t\t\r\n\t\tPen p1 = new Pen(\"Abc\", \"blue\",1);\r\n\t\tPen p2 = new Pen(\"Dbc\", \"Black\",1);\r\n\t\tPen p3 = new Pen(\"abc\", \"blue\",2);\r\n\t\tPen p4 = new Pen(\"Abc\", \"blue\",1);\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"Details of P1\" + p1 + \"...\" + p1.hashCode());\r\n\t\tSystem.out.println(\"Details of P2\" + p2 + \"...\" + p2.hashCode());\r\n\t\tSystem.out.println(\"Details of P3\" + p3 + \"...\" + p3.hashCode());\r\n\t\tSystem.out.println(\"Details of P4\" + p4 + \"...\" + p4.hashCode());\r\n\t\t\r\n\t\t/*\t Step 2 - BEfore overriding Equals Method :\r\n\t \t\t\t\t\t\tDetails of P1Pen@15db9742...366712642\r\n\t\t\t\t\t\t\tDetails of P2Pen@6d06d69c...1829164700\r\n\t\t\t\t\t\t\tDetails of P3Pen@7852e922...2018699554\r\n\t\t\t\t\t\t\t[Comparisons p1 && p2 ::] false\r\n\t\t \t\t\t\t\t[Comparisons p2 && p3 ::] false\r\n\t\t \t\t\t\t\t[Comparisons p1 && p3 ::] false \t\t\t\t\t\t\t\t\t*/\r\n\r\n\t\t /* Step 3 - Contradicts to real Time Scenario i.e Two pens are same if they have same color and same Brand.\r\n\t\t \t So, To avoid Contradiction We Override Equals Method.\r\n\t\t \t Override equals Method in such a way that objects are equal if they have same State. */\r\n\r\n\t\t/* Step 4 - After Overriding Equals Method :\r\n\t\t \t\t\t\t\tDetails of P1Pen@15db9742...366712642\r\n\t\t\t\t\t\t\tDetails of P2Pen@6d06d69c...1829164700\r\n\t\t\t\t\t\t\tDetails of P3Pen@7852e922...2018699554\r\n\t\t\t\t\t\t\t[Comparisons p1 && p2 ::] false\r\n\t\t \t\t\t\t\t[Comparisons p2 && p3 ::] false\r\n\t\t \t\t\t\t\t[Comparisons p1 && p3 ::] true\t\t\t\t\t\t\t\t\t\t\t\t*/\r\n\r\n\t\t\r\n\t\t/* Step 5 -\tWe got the desired Output as P1 and p3 are Equal . are we good now ? we aren't. \r\n\t\t\t\tStep 1 statement Fails . \r\n\t\t \t\ti.e as hashCode is different but objects are equal, which is illegal.\r\n\t\t\t\tTo avoid such conflicts we override HashCode method.\r\n\t\t\t\tHence we can conclude and proved that,if Two objects are equal,then they should have same HashCode.\r\n\t\t\t\tThis is the First Statement of HashCode and Equals Contract. */\r\n\t\t\r\n\t\t/* Step 6 - \tNow the Converse Statement.. If Two Objects have same HashCode then can we say that Objects are Equal?? \r\n\t\t \t\tdoesnt the statement seems Silly !! How can we conclude the equality of two objects based on their \r\n\t\t \t\thashCode(which is just a Memory Location and no concept of Object pooling here)\r\n\t\t \t\twithout comparing their state ?? */\r\n\t\t\r\n\t\t/* Step 7 - Finally, If Two Objects have Same HashCode then objects may or may not be Equal */\r\n\t}",
"@Test\r\n public void ObjectsAreNotTheSame() {\n try_scorers = new Try_Scorers(\"Sharief\",\"Roman\",3,9);\r\n Assert.assertNotSame(try_scorers ,try_scorers.updateGamesPlayed(4),\"The Objects are the same\"); \r\n \r\n }",
"@Test\n public void equals() {\n Grade mathsCopy = new GradeBuilder(MATHS_GRADE).build();\n assertTrue(MATHS_GRADE.equals(mathsCopy));\n\n // same object -> returns true\n assertTrue(MATHS_GRADE.equals(MATHS_GRADE));\n\n // null -> returns false\n assertFalse(MATHS_GRADE.equals(null));\n\n // different type -> returns false\n assertFalse(MATHS_GRADE.equals(5));\n\n // different person -> returns false\n assertFalse(MATHS_GRADE.equals(SCIENCE_GRADE));\n\n // different subject name -> returns false\n Grade editedMaths = new GradeBuilder(MATHS_GRADE)\n .withSubject(VALID_SUBJECT_NAME_SCIENCE).build();\n assertFalse(MATHS_GRADE.equals(editedMaths));\n\n // different graded item -> returns false\n editedMaths = new GradeBuilder(MATHS_GRADE)\n .withGradedItem(VALID_GRADED_ITEM_SCIENCE).build();\n assertFalse(MATHS_GRADE.equals(editedMaths));\n\n // different grade -> returns false\n editedMaths = new GradeBuilder(MATHS_GRADE)\n .withGrade(VALID_GRADE_SCIENCE).build();\n assertFalse(MATHS_GRADE.equals(editedMaths));\n }",
"public static void main(String[] args) {\n\t\tArrayList<Shape> list = new ArrayList<Shape>();\r\n\t\tRectangle rt1 = new Rectangle(4, 7, 5);\r\n\t\tRectangle rt2 = new Rectangle(5, 4, 6);\r\n\t\tCircle cir1 = new Circle(6, 6, 7);\r\n\t\tCircle cir2 = new Circle(7, 8, 3);\r\n\t\t\r\n\t\tlist.add(rt1);\r\n\t\tlist.add(rt2);\r\n\t\tlist.add(cir1);\r\n\t\tlist.add(cir2);\r\n\t\t\r\n\t\tSystem.out.println(\"구분 \\t\\t 길이 \\tx좌표\\t y좌료\\t Area\\t Circumference\");\r\n\t\tfor(Shape s : list){\r\n\t\t\tif(s instanceof Rectangle){\r\n\t\t\t\tRectangle rt = (Rectangle)s;\r\n\t\t\tSystem.out.println(rt.getClass().getSimpleName()+ \"\\t\"+\r\n\t\t\t\t\trt.wideth+\"\\t\"+rt.point.x+\"\\t\"+rt.point.y+\r\n\t\t\t\t\t\"\\t\"+rt.getArea()+\"\\t\"+rt.getCircumference());\r\n\t\t\t}else if(s instanceof Circle){\r\n\t\t\t\tCircle cir = (Circle) s;\r\n\t\t\t\tSystem.out.println(cir.getClass().getSimpleName()+ \"\\t\\t\"+\r\n\t\t\t\t\t\tcir.radius+\"\\t\"+cir.point.x+\"\\t\"+cir.point.y+\r\n\t\t\t\t\t\t\"\\t\"+cir.getArea()+\"\\t\"+cir.getCircumference());\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tfor(Shape s : list){\r\n\t\t\tif(s instanceof Rectangle){\r\n\t\t\t\tRectangle rt = (Rectangle)s;\r\n\t\t\t\trt.move(10, 10);\r\n\t\t\t}else if(s instanceof Circle){\r\n\t\t\t\tCircle cir = (Circle) s;\r\n\t\t\t\tcir.move(10, 10);\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tfor(Shape s : list){\r\n\t\t\tif(s instanceof Rectangle){\r\n\t\t\t\tRectangle rt = (Rectangle)s;\r\n\t\t\tSystem.out.println(rt.getClass().getSimpleName()+ \"\\t\"+\r\n\t\t\t\t\trt.wideth+\"\\t\"+rt.point.x+\"\\t\"+rt.point.y);\r\n\t\t\t}else if(s instanceof Circle){\r\n\t\t\t\tCircle cir = (Circle) s;\r\n\t\t\t\tSystem.out.println(cir.getClass().getSimpleName()+ \"\\t\\t\"+\r\n\t\t\t\t\t\tcir.radius+\"\\t\"+cir.point.x+\"\\t\"+cir.point.y);\r\n\t\t\t}\t\r\n\t\t}\r\n\t}",
"public static void main(String[] args) \r\n\t{\nBAssociation b= new BAssociation();\r\nb.a= new Aassociation();\r\nb.a.areaofRectangle(5, 6);\r\n\t\t\r\n\t}",
"double area() {\n System.out.println(\"Inside Area for Rectangle.\");\n return dim1 * dim2;\n }",
"public static void main(String[] args) {\n\n Shape circle = new Circle(5);\n System.out.println(circle.getArea());\n System.out.println(circle.getCircuit());\n Shape triangle = new Triangle(3,5,4,3);\n System.out.println(triangle.getCircuit());\n System.out.println(triangle.getArea());\n Shape square = new Square(5);\n System.out.println(square.getArea());\n System.out.println(square.getCircuit());\n\n Person person = new Person(\"Grzegorz\",40,new Medical(1111,\"Kierowanie Karetką\"));\n System.out.println(person.getResponsibilities());\n\n }",
"@Test\r\n public void testCircleDoubler() {\r\n System.out.println(\"testCircleDoubler\");\r\n ad = new AreaDoubler();\r\n c.accept(ad);\r\n \r\n Circle dc = (Circle)ad.getFigureDoubled();\r\n double r2 = c.getRadius()* Math.sqrt(2.0);\r\n assertEquals(r2, dc.getRadius(), 0.02);\r\n\r\n }",
"@Test\n public void testEquals() {\n \n Beneficiaire instance = ben2;\n Beneficiaire unAutreBeneficiaire = ben3;\n boolean expResult = false;\n boolean result = instance.equals(unAutreBeneficiaire);\n assertEquals(expResult, result);\n\n unAutreBeneficiaire = ben2;\n expResult = true;\n result = instance.equals(unAutreBeneficiaire);\n assertEquals(expResult, result);\n }",
"public void testEqualsObject()\n {\n Mana meme = new Mana( myMise );\n Assert.assertEquals( myMise, meme );\n \n System.out.println( myMise.toString());\n Mana autre = new Mana( 49 );\n Assert.assertFalse( myMise.equals( autre ));\n autre = new Mana( 50 );\n Assert.assertTrue( myMise.equals( autre ));\n }",
"@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tif(obj.equals(radius)){\r\n\t\treturn super.equals(obj);\r\n\t\t}else {\r\n\t\t\treturn !super.equals(obj);\r\n\t\t}\r\n\t}",
"public void testCreateRectangle() {\n Size2D s = new Size2D(3.0, 8.0);\n assertEquals(new Rectangle2D.Double(-0.5, -2.0, 3.0, 8.0), \n RectangleAnchor.createRectangle(s, 1.0, 2.0, RectangleAnchor.CENTER));\n assertEquals(new Rectangle2D.Double(1.0, -2.0, 3.0, 8.0), \n RectangleAnchor.createRectangle(s, 1.0, 2.0, RectangleAnchor.LEFT));\n assertEquals(new Rectangle2D.Double(-2.0, -2.0, 3.0, 8.0), \n RectangleAnchor.createRectangle(s, 1.0, 2.0, RectangleAnchor.RIGHT));\n assertEquals(new Rectangle2D.Double(-0.5, 2.0, 3.0, 8.0), \n RectangleAnchor.createRectangle(s, 1.0, 2.0, RectangleAnchor.TOP));\n assertEquals(new Rectangle2D.Double(1.0, 2.0, 3.0, 8.0), \n RectangleAnchor.createRectangle(s, 1.0, 2.0, RectangleAnchor.TOP_LEFT));\n assertEquals(new Rectangle2D.Double(-2.0, 2.0, 3.0, 8.0), \n RectangleAnchor.createRectangle(s, 1.0, 2.0, RectangleAnchor.TOP_RIGHT));\n assertEquals(new Rectangle2D.Double(-0.5, -6.0, 3.0, 8.0), \n RectangleAnchor.createRectangle(s, 1.0, 2.0, RectangleAnchor.BOTTOM));\n assertEquals(new Rectangle2D.Double(1.0, -6.0, 3.0, 8.0), \n RectangleAnchor.createRectangle(s, 1.0, 2.0, RectangleAnchor.BOTTOM_LEFT));\n assertEquals(new Rectangle2D.Double(-2.0, -6.0, 3.0, 8.0), \n RectangleAnchor.createRectangle(s, 1.0, 2.0, RectangleAnchor.BOTTOM_RIGHT));\n }",
"public static void main(String[] args) {\n\t\tInterview interview = new Interview();\r\n\t\tinterview.addName(\"MARY\");\r\n\t\tinterview.addName(\"JOE\");\r\n\t\tinterview.addName(\"SIENNA\");\r\n\t\tinterview.addName(\"PETER\");\t\t\r\n\t\tInterview a = new Interview(1);\r\n\t\tInterview c=a;\r\n\t\tInterview b = new Interview(1);\r\n System.out.println(a.equals(b));\r\n\t\tinterview.displayNameAndAge();\r\n\t\t\r\n\t\tSystem.out.println(\"Test 1\");\r\n\t\t\r\n\t}",
"@Test\n @DisplayName(\"Test should detect equality between equal states.\")\n public void testShouldResultInEquality() {\n ObjectBag os1 = new ObjectBag(null, \"Hi\");\n ObjectBag os2 = new ObjectBag(null, \"Hi\");\n\n Assertions.assertThat(os1).isEqualTo(os2);\n }",
"public static void main(String[] args) {\n\t\t\tBook b2=Book.getinstanceof();\r\n\t\t\t\r\n\t\t\tBook b3=Book.getinstanceof();\r\n\t\t\tSystem.out.println(b2==b3);\r\n\t\t\r\n\t}",
"@Test\n public void testcalPerimeterRectangle3() {\n double ex = -8;\n \n startPoint.setX(1);\n startPoint.setY(1);\n endPoint.setX(3);\n endPoint.setY(3);\n \n double ac = rec.calPerimeterRectangle(startPoint, endPoint);\n assertNotEquals(ex, ac, 0);\n }",
"@Test\n public void testEquals02() {\n System.out.println(\"equals\");\n Object otherObject = new SocialNetwork();\n boolean result = sn10.equals(otherObject);\n assertFalse(result);\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Area)) {\r\n return false;\r\n }\r\n Area other = (Area) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public static void main(String[] args) {\n Test2 t2 = new Test2(\"Supriya\");// memory\r\n Test2 t3 = new Test2(\"Supriya\");//memory\r\n \r\n \r\n //Compares the memory allocation of objects\r\n System.out.println(t2.equals(t3));\r\n System.out.println(t2.hashCode());\r\n System.out.println(t3.hashCode());\r\n \r\n\t}",
"public static void main(String[] args){\n Rectangle obj = new Rectangle();\n }"
] | [
"0.72310495",
"0.72174156",
"0.7168144",
"0.711846",
"0.70915675",
"0.6671569",
"0.65779865",
"0.6577126",
"0.64526206",
"0.64213103",
"0.63755953",
"0.63658905",
"0.6311113",
"0.62739867",
"0.6235268",
"0.6229052",
"0.6226292",
"0.6200872",
"0.6186948",
"0.61478007",
"0.61426675",
"0.61350983",
"0.6134163",
"0.61246145",
"0.6108596",
"0.60878086",
"0.60841495",
"0.6074301",
"0.6017847",
"0.60084105",
"0.5969113",
"0.59618235",
"0.5953704",
"0.59362173",
"0.58987004",
"0.5888501",
"0.588279",
"0.5854447",
"0.58451253",
"0.58397585",
"0.5838441",
"0.58288676",
"0.58248234",
"0.5822985",
"0.5817911",
"0.5813405",
"0.5809152",
"0.57672787",
"0.57661295",
"0.57403725",
"0.57394725",
"0.5733376",
"0.57259464",
"0.57116836",
"0.5703448",
"0.57030845",
"0.5694268",
"0.5687862",
"0.5680269",
"0.56754893",
"0.5671425",
"0.56654334",
"0.565524",
"0.5653877",
"0.5653501",
"0.5649593",
"0.5649061",
"0.5645695",
"0.5644726",
"0.5642455",
"0.56400007",
"0.5638232",
"0.5637947",
"0.5634092",
"0.561791",
"0.56143415",
"0.56135756",
"0.5612668",
"0.5605661",
"0.5604475",
"0.5603634",
"0.559968",
"0.5597817",
"0.55958146",
"0.5593447",
"0.5590059",
"0.5575871",
"0.5570595",
"0.5569895",
"0.5557462",
"0.55405164",
"0.5537227",
"0.55293584",
"0.5522327",
"0.55168074",
"0.5514155",
"0.551312",
"0.5509483",
"0.55015105",
"0.5500792"
] | 0.78165114 | 0 |
Gets the cantHoras value for this DtCurso. | public java.lang.Integer getCantHoras() {
return cantHoras;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCantHoras(java.lang.Integer cantHoras) {\n this.cantHoras = cantHoras;\n }",
"public int getHoras() {\n return horas;\n }",
"public int getHoras() {\r\n\t\treturn super.getHoras()*2;\r\n\t}",
"public List<HorarioAtencionEntity> getHorariosAtencion ()\r\n {\r\n return this.horariosAtencion;\r\n }",
"public List<HorarioAsig> getHorario() {\n return Horario;\n }",
"public int getCantidadColores() {\n\t\treturn cantColores;\n\t}",
"public void setHoras(int horas) {\n this.horas = horas;\n }",
"public int cantHijosIzquierdosR() {\n return this.cantHijosIzquierdosR(this.raiz);\n }",
"public int getHorX() {\r\n return horX;\r\n }",
"public java.lang.Integer getCantAnulacion() {\r\n return cantAnulacion;\r\n }",
"@AutoEscape\n\tpublic String getHorario();",
"public int cantHijosIzquierdos() {\n if (NodoBinario.esNodoVacio(this.raiz)) {\n return 0;\n }\n int cantHijosIzq = 0;\n Queue<NodoBinario<T>> colaDeNodos = new LinkedList<>();\n colaDeNodos.offer(this.raiz);\n while (!colaDeNodos.isEmpty()) {\n NodoBinario<T> nodoActual = colaDeNodos.poll();\n if (!nodoActual.esHijoIzquiedoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoIzquierdo());\n cantHijosIzq++;\n }\n if (!nodoActual.esHijoDerechoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoDerecho());\n }\n }\n return cantHijosIzq;\n }",
"public Integer cantidadCompras(){\n\t\t// Implementar\n\t\treturn this.compras.size();\n\t}",
"public String getHorario() {\n return horario;\n }",
"public Map<String, Integer> verCarritoConCantidades(){\n\t\treturn this.datosCompras;\n\t}",
"public java.lang.Integer getCantReversoAnulacion() {\r\n return cantReversoAnulacion;\r\n }",
"public String getHorario() {\n\t\treturn this.horario;\n\t}",
"@Override\n\tpublic int horas_trabajo() {\n\t\treturn 1000;\n\t}",
"public java.lang.Integer getCantidad() {\r\n return cantidad;\r\n }",
"public static int[] getRecorridoAntiHorarioAdayacentes(int direccion, int ventana){\r\n\t\tint cant = 2 * ventana + 1;\r\n\t\tif (direccion < 0)\r\n\t\t\tdireccion = 8 + direccion;\r\n\t\tif (cant > 8)\r\n\t\t\tcant = 8;\r\n\t\tint[] direcciones = new int[cant];\r\n\t\tint inicio = (direccion + ventana) % 8;\r\n\t\tint dir = inicio;\r\n\t\tfor (int i = 0; i < cant; i++){\r\n\t\t\tdirecciones[i] = dir;\r\n\t\t\tdir--;\r\n\t\t\tif (dir < 0)\r\n\t\t\t\tdir = 8 + dir;\r\n\t\t}\r\n\t\treturn direcciones;\r\n\t}",
"public java.lang.String getHorInicio() {\n return horInicio;\n }",
"private int obstaculos() {\n\t\treturn this.quadricula.length * this.quadricula[0].length - \n\t\t\t\tthis.ardiveis();\n\t}",
"public int getCantidadAristas() {\n\t\treturn cantAristas;\n\t}",
"public Integer getCantidadDisponible() {\n return cantidadDisponible;\n }",
"public java.lang.String getHorTermino() {\n return horTermino;\n }",
"public int darCantidadHijos( )\r\n {\r\n return hijos != null ? hijos.darLongitud( ) : 0;\r\n }",
"public int getCantidad() {\n\t\treturn cantidad;\n\t}",
"public int getCantidad() {\n\t\treturn cantidad;\n\t}",
"public Integer plazasDisponibles() {\n\t\treturn cupo;\n\t}",
"public int cuantosCursos(){\n return inscripciones.size();\n }",
"public int getHorSTX() {\r\n return horSTX;\r\n }",
"public int getCantidadNodos() {\n\t\treturn cantNodos;\n\t}",
"public int getDiasTrabajados() {\n return diasTrabajados;\n }",
"public int numeroCanciones() {\r\n\r\n\t\treturn misCanciones.size();\r\n\t}",
"public int getCantidad() {\n return cantidad;\n }",
"public int getHorY() {\r\n return horY;\r\n }",
"public int[] VerifierPlagesHorairesTournee() {\r\n\t\tint nbLivraisons = getListeLivraison().size();\r\n\t\tint[] tableauPlageHoraire = new int[nbLivraisons]; // initialiser taille\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// a nombre de liv\r\n\r\n\t\tfor (int i = 0; i < nbLivraisons; i++) {\r\n\t\t\tint valeurPH = VerifierPlagesHorairesUneLiv(getListeLivraison().get(i));\r\n\t\t\ttableauPlageHoraire[i] = valeurPH;\r\n\t\t}\r\n\r\n\t\treturn tableauPlageHoraire;\r\n\t}",
"public static int[] getRecorridoHorarioAdayacentes(int direccion, int ventana){\r\n\t\tint cant = 2 * ventana + 1;\r\n\t\tdireccion = direccion % 8;\r\n\t\tif (cant > 8)\r\n\t\t\tcant = 8;\r\n\t\tint[] direcciones = new int[cant];\r\n\t\tint inicio = direccion - ventana;\r\n\t\tif (inicio < 0){\r\n\t\t\tinicio = 8 + inicio;\r\n\t\t}\r\n\t\tint dir = inicio;\r\n\t\tfor (int i = 0; i < cant; i++){\r\n\t\t\tdirecciones[i] = dir;\r\n\t\t\tdir = (dir + 1) % 8;\r\n\t\t}\r\n\t\t\t\r\n\t\treturn direcciones;\r\n\t}",
"public int cuentaCelulas()\r\n\t{\r\n\t\treturn this.dondeHayCelulas().length;\r\n\t}",
"public BoundedRangeModel getHorizontalVisibility() {\n return visibility;\n }",
"@Override\n public int contarHojas(){\n return (super.contarHojas());\n }",
"public Long getCantidadInforme() {\r\n\t\treturn cantidadInforme;\r\n\t}",
"public Integer getCantidad() {\n return this.cantidad.get();\n }",
"public int numeroHojas(){\n\t int N=0, ni=0, nd=0;\n\t Arbol <T> aux=null;\n\t if (!vacio()) {\n\t if ((aux=getHijoIzq())!=null) ni = aux.numeroHojas();\n\t if ((aux=getHijoDer())!=null) nd = aux.numeroHojas();\n\t if ((aux=getHijoDer())==null && (aux=getHijoIzq())==null)N = 1;\n\t else N = ni + nd;\n\t }\n\t\treturn N;\n\t}",
"public void setHorariosAtencion (List<HorarioAtencionEntity> pHorariosAtencion)\r\n {\r\n this.horariosAtencion = pHorariosAtencion;\r\n }",
"public int getPosicionCero(){\n\t\tint posicionDelCero = -1;\n\t\tint i = 0;\n\t\twhile(i < celdas.size()){\n\t\t\tif(celdas.get(i).getValor() == 0){\n\t\t\t\tposicionDelCero = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn posicionDelCero;\n\t}",
"public int getHorSTY() {\r\n return horSTY;\r\n }",
"public static int cantNodosHojas(Nodo raiz)\r\n {\r\n if(raiz == null)\r\n {\r\n return 0;\r\n }\r\n else if(raiz.ramaDerecha == null && raiz.ramaIzquierda == null)\r\n {\r\n return 1;\r\n }\r\n else\r\n {\r\n return (cantNodosHojas(raiz.subArbolIzquierdo())) + (cantNodosHojas(raiz.subArbolDerecho()));\r\n }\r\n }",
"public Long getNumContaCorrente() {\n\t\treturn numContaCorrente;\n\t}",
"public byte affected() {\n\t\tbyte a = 0;\n\t\t// Top row does not affect bottom row\n\t\tif (up() == null) {\n\t\t\ta |= (byte) (SW.flags | S.flags | SE.flags);\n\t\t}\n\t\t// Bottom row does not affect top row\n\t\tif (down() == null) {\n\t\t\ta |= (byte) (NW.flags | N.flags | NE.flags);\n\t\t}\n\t\t// Right row does not affect left row\n\t\tif (right() == null) {\n\t\t\ta |= (byte) (NW.flags | W.flags | SW.flags);\n\t\t}\n\t\t// Left row does not affect right row\n\t\tif (left() == null) {\n\t\t\ta |= (byte) (NE.flags | E.flags | SE.flags);\n\t\t}\n\t\treturn (byte) ~a;\n\t}",
"public int[] getMinimos()\n {\n return brazo.getMinimos();\n }",
"public int AmbosHijos() { //Hecho por mi\n if (this.esArbolVacio()) {\n return 0; //Arbol vacio\n }\n int ambos = 0;\n Queue<NodoBinario<T>> colaDeNodos = new LinkedList<>();\n colaDeNodos.offer(raiz);\n while (!colaDeNodos.isEmpty()) {\n NodoBinario<T> nodoActual = colaDeNodos.poll();\n if (!NodoBinario.esNodoVacio(nodoActual.getHijoIzquierdo())\n && !NodoBinario.esNodoVacio(nodoActual.getHijoDerecho())) {\n ambos++;\n }\n if (!nodoActual.esHijoIzquiedoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoIzquierdo());\n }\n if (!nodoActual.esHijoDerechoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoDerecho());\n }\n }\n return ambos;\n }",
"public void setHorario (List<HorarioAsig> val) {\n this.Horario = val;\n }",
"@GetMapping(\"/horario/mostrarLista\")\n\tpublic List<Horario> mostrarHorarioLista() {\n List<Horario> IsHorario = null;\n try\n {\n IsHorario = horarioServicio.listarHorarios();\n }\n catch (Exception e)\n {\n throw new ResponseStatusException(HttpStatus.BAD_REQUEST, \"No se pudieron listar los veterinarios..\");\n }\n return IsHorario;\n\t}",
"public LinkedList<HorseData> getHorsesList() {\n\t\treturn manager.getFileManager().getList();\n\t}",
"public int getValoracionDelCurso() {\n return valoracionDelCurso;\n }",
"public int getCuerdas(){\n\treturn this.cuerdas;\n }",
"public int getCantCalif() {\n\t\tint calificacion = 0;\n\t\tfor (Episodio episodio : this.episodios) {\n\t\t\tif (episodio.isFlag()) {\n\t\t\t\tcalificacion += episodio.getCalificacion();\n\t\t\t}\n\t\t}\n\t\treturn calificacion;\n\t}",
"public int getEgresosPorCompras(){\n return this.egresosPorCompras;\n }",
"public ContratoDosimetro getContratoDosimetro(Long conDosi)\n throws Exception;",
"public List<Tipo> getTiposOrdenadosNumerosEventosDecrescente() {\n\t\tList<Tipo> listaOrdenada = new ArrayList<Tipo>();\n\n\t\ttry {\n\t\t\tverificaTiposOrdenados(listaOrdenada);\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"[ERRO] Arquivo não encontrado no caminho: '\" + ARQUIVO_CSV + \"'\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[ERRO] Erro ao ler arquivo csv.\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tfechaBuffer();\n\t\t}\n\t\treturn listaOrdenada;\n\t}",
"public String getHorzDatum() {\n\t\treturn horzDatum;\n\t}",
"public int getButacas() {\r\n\t\treturn butacas;\r\n\t}",
"public int getUVelosDispos() {\n\t\treturn UVelosDispos;\n\t}",
"public int getNroCitasRealizadas() {\n\t\treturn NroCitasRealizadas;\n\t}",
"public HorsesExecutor getHorsesExecutor() {\n\t\treturn horsesExecutor;\n\t}",
"public int getConto() {\n return (Integer)this.getCampo(nomeConto).getValore();\n }",
"@Override\n public double calculaArancel(int cantDias) throws DiasInvalidosException {\n if (cantDias > 0) {\n if (cantDias == 1)\n return costoAsignacion + costoInicial;\n else if (cantDias <= 5)\n return cantDias * costoAsignacion * 1.3 + costoInicial;\n else\n return cantDias * costoAsignacion * 2 + costoInicial;\n } else\n throw new DiasInvalidosException(\"Dias menores a 0\", cantDias);\n }",
"public ResultSet MostrarHoras() throws SQLException {\n\t\t\n\t\tString sql = \"SELECT * FROM horas\"; // sentencia busqueda SALA\n\t\t\n\t\ttry {\n\t\t\tconn = conexion.getConexion(); // nueva conexion a la bbdd CREARLO EN TODOS LOS METODOS\n\t\t\tst=(Statement) conn.createStatement();\n\t\t\tresultado = st.executeQuery(sql);\n\t\t\t\t//st.close();\n\t\t\t\t//con.close();\n\t\t}\n\t\tcatch(SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}",
"public int getTramitacao(){\n\t\treturn this.tramitacao;\n\t}",
"public int getClientePorHora() {\r\n return clientePorHora;\r\n }",
"int getCantidad();",
"public int getMinHours() {\r\n return minHours;\r\n }",
"public HashMap<Integer, CancelledOrder> getCancelledOrders(){\n\t\treturn hmCancelledOrder;\n\t}",
"public static int getContador() {\r\n\t\treturn contador;\r\n\t}",
"public float getHlado() {\r\n return (this.lado);\r\n }",
"public int getNonMovers();",
"public int obtenerHoraMasAccesos()\n {\n int numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora = 0;\n int horaConElNumeroDeAccesosMaximo = -1;\n\n if(archivoLog.size() >0){\n for(int horaActual=0; horaActual < 24; horaActual++){\n int totalDeAccesosParaHoraActual = 0;\n //Miramos todos los accesos\n for(Acceso acceso :archivoLog){\n if(horaActual == acceso.getHora()){\n totalDeAccesosParaHoraActual++;\n }\n }\n if(numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora<=totalDeAccesosParaHoraActual){\n numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora =totalDeAccesosParaHoraActual;\n horaConElNumeroDeAccesosMaximo = horaActual;\n }\n }\n }\n else{\n System.out.println(\"No hay datos\");\n }\n return horaConElNumeroDeAccesosMaximo;\n }",
"public java.lang.Integer getCableres() throws java.rmi.RemoteException;",
"public Ciudad ciudadMayorHabitantes() {\r\n \treturn Collections.max(ciudades, new HabitantesComparator());\r\n \r\n }",
"private void cuentaminas() {\n\t//TODO: falta por hacer que calcule lasminas en el borde exterior\n\t//Probar a hacerlo con un try catch\n\tint minas = 0;\n\n\tfor (int i = 0; i < filas; i++) {\n\t for (int j = 0; j < columnas; j++) {\n\t\t//\t1 2 3\n\t\t//\t4 X 5\n\t\t//\t6 7 8\n\t\ttry {\n\t\t minas += arrayBotones[i - 1][j - 1].getMina();//1\n\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i - 1][j].getMina();//2\n\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i - 1][j + 1].getMina();//3\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i][j - 1].getMina();//4\n\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i][j + 1].getMina();//5\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i + 1][j - 1].getMina();//6 \t\t \n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i + 1][j].getMina();//7\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i + 1][j + 1].getMina();//8\n\t\t} catch (Exception e) {\n\t\t}\n\t\tarrayBotones[i][j].setNumeroMinasAlrededor(minas);\n\t\t//TODO: comentar la siguiente parte para que no aparezcan los numeros al iniciar\n//\t\tif (arrayBotones[i][j].getMina() == 0 && minas != 0) {\n//\t\t arrayBotones[i][j].setText(String.valueOf(minas));\n//\t\t}\n\t\tminas = 0;\n\t }\n\t}\n }",
"public List<Integer> getLegalMoves()\n\t{\n\t\tArrayList<Integer> moves = new ArrayList<Integer>();\n\t\tfor (int col = 0; col < cols; col++)\n\t\t{\n\t\t\tif (isEmpty(0,col))\n\t\t\t\tmoves.add(col);\n\t\t}\n\t\treturn moves;\n\t}",
"public int getIngresosPorVentas(){\n return this.ingresosPorVentas;\n }",
"public int verificarCantidadGanadores() {\n\t\t if(ganador.size() == 1 && !ganador.contains(\"dealer\")) {\n\t\t\t return 20;\n\t\t }else if(ganador.size() == 2 && !ganador.contains(\"dealer\")) {\n\t\t\t return 10;\n\t\t }else if(ganador.size() == 3 && !ganador.contains(\"dealer\")){\n\t\t\t return 0;\n\t\t }else if(ganador.size() == 1 && ganador.contains(\"dealer\")) {\n\t\t\t return 30;\n\t\t }\n\t\t return 0;\n\t }",
"private void checkHorozontalWin() throws VictoryException {\n\n for (int x = 0; x < 7; x += 3) {\n if (myGame.myBoard[x].getText().toUpperCase().length() > 0) {\n didAnyoneWin = (myGame.myBoard[x].getText().toUpperCase().\n equals(myGame.myBoard[x + 1].getText()) && myGame.myBoard[x].getText()\n .toUpperCase().equals(myGame.myBoard[x + 2].getText().toUpperCase()));\n }\n\n if (didAnyoneWin) {\n throw (new VictoryException());\n }\n }\n }",
"private void setObservacoesHoras(\n\t\t\tint historicoAlterado, int exclusao, int inclusao,\n\t\t\tint horasAcima15m, int horasAcima30m, int horasAcima1h, int horasAcima3h, int horasAcima7h, int horasAcima12h, int horasAcima23h, \n\t\t\tint horasAbaixo15m, int horasAbaixo30m, int horasAbaixo1h, int horasAbaixo3h, int horasAbaixo5h) {\n\t\t\n\t\tString observacaoHorasInconsistencia = setObservacaoHorasInconsistentes();\n\t\t\n\t\tString observacaoInclusao = \"\";\n\t\tif (inclusao > 1) {\n\t\t\tobservacaoInclusao = (inclusao == 2 ? \"1 inclusão manual\" : ((inclusao-1) + \" inclusões manual\"));\n\t\t}\n\t\t\n\t\tString observacaoExclusao = \"\";\n\t\tif (exclusao > 1) {\n\t\t\tobservacaoExclusao = (exclusao == 2 ? \"1 apagado\" : ((exclusao-1) + \" apagados\"));\n\t\t}\n\t\t\n\t\tString historicoAlteracao = \"\";\n\t\tif (historicoAlterado > 1) {\n\t\t\thistoricoAlteracao = (historicoAlterado == 2 ? \"1 histórico alteração\" : ((historicoAlterado-1) + \" históricos de alterações\"));\n\t\t}\n\n\t\tthis.observacaoHoras = \"\";\n\t\t//this.observacaoHoras += observacaoHorasAcima == \"\" ? \"\" : \"<br>\"+observacaoHorasAcima;\n\t\t//this.observacaoHoras += observacaoHorasAbaixo == \"\" ? \"\" : \"<br>\"+observacaoHorasAbaixo;\n\t\tthis.observacaoHoras += observacaoHorasInconsistencia == \"\" ? \"\" : \"<br>\"+observacaoHorasInconsistencia; \n\t\tthis.observacaoHoras += observacaoInclusao == \"\" ? \"\" : \"<br>\"+observacaoInclusao;\n\t\tthis.observacaoHoras += observacaoExclusao == \"\" ? \"\" : \"<br>\"+observacaoExclusao;\n\t\tthis.observacaoHoras += historicoAlteracao == \"\" ? \"\" : \"<br>\"+historicoAlteracao;\n\t\t\n\t\tif (this.ausenciaSolicitacoes != null && !this.ausenciaSolicitacoes.isEmpty()) {\n\t\t\tList<AusenciaSolicitacao> ferias = this.ausenciaSolicitacoes.stream().filter(x->x.getMotivoAusencia().getNome().toLowerCase()==\"férias\").collect(Collectors.toList());\n\t\t\t\n\t\t\tList<AusenciaSolicitacao> ausencias = this.ausenciaSolicitacoes.stream().filter(x->x.getMotivoAusencia().getNome().toLowerCase()!=\"férias\").collect(Collectors.toList());\n\t\t}\n\t\t// folgas / ferias\n\t}",
"public int getDiasVacaciones() {\r\n\t\treturn super.getDiasVacaciones()/2;\r\n\t}",
"public Integer getDistanciaVivienda() {\n return distanciaVivienda;\n }",
"public int darTamanoHourly()\n\t{\n\t\treturn queueHourly.darNumeroElementos();\n\t}",
"@Override\n public int cantAlumnosXidCurso(int curso) throws Exception {\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n int cantAlumnos = 0;\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"select count(a.id) as cant from alumno a, curso cu \"\n + \"where a.idCurso = cu.idcurso \"\n + \"and cu.idcurso = ?\");\n pstmt.setInt(1, curso); \n rs = pstmt.executeQuery();\n\n while (rs.next()) { \n cantAlumnos = rs.getInt(\"cant\");\n } \n return cantAlumnos;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return cantAlumnos;\n }",
"public java.math.BigInteger getCantidadCUVErrado(){\n return localCantidadCUVErrado;\n }",
"public Coordinates getVerHor();",
"public int getIntHora(int antelacio)\n {\n int hsel = 1;\n //int nhores = CoreCfg.horesClase.length;\n \n Calendar cal2 = null;\n Calendar cal = null;\n \n for(int i=1; i<14; i++)\n {\n cal = Calendar.getInstance();\n cal.setTime(cfg.getCoreCfg().getIesClient().getDatesCollection().getHoresClase()[i-1]);\n cal.set(Calendar.YEAR, m_cal.get(Calendar.YEAR));\n cal.set(Calendar.MONTH, m_cal.get(Calendar.MONTH));\n cal.set(Calendar.DAY_OF_MONTH, m_cal.get(Calendar.DAY_OF_MONTH));\n\n cal2 = Calendar.getInstance();\n cal2.setTime(cfg.getCoreCfg().getIesClient().getDatesCollection().getHoresClase()[i]);\n cal2.set(Calendar.YEAR, m_cal.get(Calendar.YEAR));\n cal2.set(Calendar.MONTH, m_cal.get(Calendar.MONTH));\n cal2.set(Calendar.DAY_OF_MONTH, m_cal.get(Calendar.DAY_OF_MONTH));\n\n cal.add(Calendar.MINUTE, -antelacio);\n cal2.add(Calendar.MINUTE, -antelacio);\n\n if(cal.compareTo(m_cal)<=0 && m_cal.compareTo(cal2)<=0 )\n {\n hsel = i;\n break;\n }\n }\n\n if(m_cal.compareTo(cal2)>0) {\n hsel = 14;\n }\n\n \n return hsel;\n }",
"public int getNotReservedShoes(){\r\n\t\treturn this.numOfOrderedShoes-this.numOfReservedShoes;\r\n\t}",
"public int getColDamage() {\n return collision_damage;\n }",
"@JsonProperty(PROP_NOT_ICMP_CODES)\n public SortedSet<SubRange> getNotIcmpCodes() {\n return _notIcmpCodes;\n }",
"public int ovejaMasCercana(int wolf){\r\n \r\n int x1 = losLobos.get(wolf).getX();\r\n int y1 = losLobos.get(wolf).getY();\r\n int ovejaMasCercana = 0; // se compara la distancia de un lobo con todas\r\n int distanciaOvejaMasCercana=2000; // las ovejas para saber cúal es la mas cercana\r\n for(int i = 0;i<lasOvejas.size();i++){\r\n int dist = distancia(x1,y1,lasOvejas.get(i).getX(),lasOvejas.get(i).getY());\r\n if(dist < distanciaOvejaMasCercana){\r\n distanciaOvejaMasCercana = dist;\r\n ovejaMasCercana = i; \r\n }\r\n }\r\n return ovejaMasCercana;\r\n }",
"int defaultHorizontal() {\n int horizontal;\n if (isDate(clazz) || isDateTime(clazz)\n || isLocalDate(clazz) || isLocalDateTime(clazz)\n || isTime(clazz) || isLocalTime(clazz)\n || isChar(clazz) || isBool(clazz)) {\n horizontal = Horizontals.CENTER;\n } else if (isInt(clazz) || isLong(clazz)\n || isFloat(clazz) || isDouble(clazz)\n || isBigDecimal(clazz)) {\n horizontal = Horizontals.RIGHT;\n } else {\n horizontal = Horizontals.LEFT;\n }\n return horizontal;\n }",
"public Collection findTrasllatsNoCompletados() throws InfrastructureException {\r\n\t\tCollection col;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tlogger.debug(\"findTrasllatsNoCompletados ini\");\r\n\t\t\tString q = \"from Trasllat tdi \" +\r\n\t\t\t\t\t\"where tdi.valid = true and tdi.id not in (select tra.id from Trasllat tra \" +\r\n\t\t\t\t\t\"where (tdi.acceptatTrasllat = true and tdi.retornatEstablimentOrigen = true and tdi.traslladant = true) \" +\r\n\t\t\t\t\t\"or (tdi.acceptatTrasllat = false and tdi.retornatEstablimentOrigen = false and tdi.traslladant = false))\";\t\r\n\t\t\t\r\n\t\t\tcol = getHibernateTemplate().find(q);\r\n\t\t\t\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"findTrasllatsNoCompletados failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\r\n\t\tlogger.debug(\"findTrasllatsNoCompletados fin\");\r\n\t\treturn col;\r\n\t}",
"private Integer calculaDiasSemanaTrabajoProyecto() {\r\n Integer dias = 0;\r\n List<ConfiguracionProyecto> configuracionProyectos = configuracionProyectoService.buscar(new ConfiguracionProyecto(\r\n docenteProyectoDM.getDocenteProyectoDTOSeleccionado().getDocenteProyecto().getProyectoId(), null, null,\r\n ConfiguracionProyectoEnum.DIASSEMANA.getTipo(), null));\r\n for (ConfiguracionProyecto cf : configuracionProyectos) {\r\n dias = Integer.parseInt(cf.getValor());\r\n break;\r\n }\r\n return dias;\r\n }"
] | [
"0.72340655",
"0.6510592",
"0.6242132",
"0.57869136",
"0.56866366",
"0.55279595",
"0.55118567",
"0.54843175",
"0.54072994",
"0.54027516",
"0.5365854",
"0.5351607",
"0.5323739",
"0.5302866",
"0.5298861",
"0.5253574",
"0.5227998",
"0.52185565",
"0.5202759",
"0.51738054",
"0.5148047",
"0.5145533",
"0.5120662",
"0.50562346",
"0.49598047",
"0.49352887",
"0.491077",
"0.491077",
"0.4890213",
"0.48593506",
"0.48576242",
"0.48510876",
"0.4838992",
"0.48190728",
"0.48086926",
"0.47726232",
"0.47645658",
"0.4755593",
"0.47515625",
"0.47359157",
"0.47332427",
"0.472525",
"0.4691557",
"0.46778956",
"0.4668666",
"0.466221",
"0.465892",
"0.46518525",
"0.4635771",
"0.46330008",
"0.462502",
"0.4618657",
"0.46136823",
"0.46102548",
"0.46065333",
"0.46021542",
"0.46017528",
"0.45916465",
"0.45538446",
"0.45518592",
"0.45437488",
"0.45338276",
"0.4530897",
"0.45261687",
"0.4473257",
"0.44717303",
"0.44625652",
"0.44540432",
"0.44467962",
"0.4424315",
"0.44221297",
"0.43993017",
"0.43925986",
"0.4387198",
"0.43791708",
"0.43780795",
"0.43656385",
"0.43649623",
"0.43618402",
"0.4357625",
"0.43564653",
"0.43555954",
"0.4355031",
"0.43500963",
"0.4341456",
"0.433981",
"0.43360054",
"0.43315023",
"0.433097",
"0.4329666",
"0.4328312",
"0.43240407",
"0.43236846",
"0.4303721",
"0.43002492",
"0.42985582",
"0.42980322",
"0.4296746",
"0.42939797",
"0.42927265"
] | 0.81087655 | 0 |
Sets the cantHoras value for this DtCurso. | public void setCantHoras(java.lang.Integer cantHoras) {
this.cantHoras = cantHoras;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setHoras(int horas) {\n this.horas = horas;\n }",
"public java.lang.Integer getCantHoras() {\n return cantHoras;\n }",
"public void setHorariosAtencion (List<HorarioAtencionEntity> pHorariosAtencion)\r\n {\r\n this.horariosAtencion = pHorariosAtencion;\r\n }",
"public void setHorario (List<HorarioAsig> val) {\n this.Horario = val;\n }",
"public void setHorX(int horX) {\r\n this.horX = horX;\r\n }",
"private void setObservacoesHoras(\n\t\t\tint historicoAlterado, int exclusao, int inclusao,\n\t\t\tint horasAcima15m, int horasAcima30m, int horasAcima1h, int horasAcima3h, int horasAcima7h, int horasAcima12h, int horasAcima23h, \n\t\t\tint horasAbaixo15m, int horasAbaixo30m, int horasAbaixo1h, int horasAbaixo3h, int horasAbaixo5h) {\n\t\t\n\t\tString observacaoHorasInconsistencia = setObservacaoHorasInconsistentes();\n\t\t\n\t\tString observacaoInclusao = \"\";\n\t\tif (inclusao > 1) {\n\t\t\tobservacaoInclusao = (inclusao == 2 ? \"1 inclusão manual\" : ((inclusao-1) + \" inclusões manual\"));\n\t\t}\n\t\t\n\t\tString observacaoExclusao = \"\";\n\t\tif (exclusao > 1) {\n\t\t\tobservacaoExclusao = (exclusao == 2 ? \"1 apagado\" : ((exclusao-1) + \" apagados\"));\n\t\t}\n\t\t\n\t\tString historicoAlteracao = \"\";\n\t\tif (historicoAlterado > 1) {\n\t\t\thistoricoAlteracao = (historicoAlterado == 2 ? \"1 histórico alteração\" : ((historicoAlterado-1) + \" históricos de alterações\"));\n\t\t}\n\n\t\tthis.observacaoHoras = \"\";\n\t\t//this.observacaoHoras += observacaoHorasAcima == \"\" ? \"\" : \"<br>\"+observacaoHorasAcima;\n\t\t//this.observacaoHoras += observacaoHorasAbaixo == \"\" ? \"\" : \"<br>\"+observacaoHorasAbaixo;\n\t\tthis.observacaoHoras += observacaoHorasInconsistencia == \"\" ? \"\" : \"<br>\"+observacaoHorasInconsistencia; \n\t\tthis.observacaoHoras += observacaoInclusao == \"\" ? \"\" : \"<br>\"+observacaoInclusao;\n\t\tthis.observacaoHoras += observacaoExclusao == \"\" ? \"\" : \"<br>\"+observacaoExclusao;\n\t\tthis.observacaoHoras += historicoAlteracao == \"\" ? \"\" : \"<br>\"+historicoAlteracao;\n\t\t\n\t\tif (this.ausenciaSolicitacoes != null && !this.ausenciaSolicitacoes.isEmpty()) {\n\t\t\tList<AusenciaSolicitacao> ferias = this.ausenciaSolicitacoes.stream().filter(x->x.getMotivoAusencia().getNome().toLowerCase()==\"férias\").collect(Collectors.toList());\n\t\t\t\n\t\t\tList<AusenciaSolicitacao> ausencias = this.ausenciaSolicitacoes.stream().filter(x->x.getMotivoAusencia().getNome().toLowerCase()!=\"férias\").collect(Collectors.toList());\n\t\t}\n\t\t// folgas / ferias\n\t}",
"public void setCantAnulacion(java.lang.Integer cantAnulacion) {\r\n this.cantAnulacion = cantAnulacion;\r\n }",
"public void setCantidad(int cantidad) {\n\t\tif(cantidad>=0) {\n\t\t\tthis.cantidad = cantidad;\n\t\t}else {\n\t\t\tthis.cantidad = 0;\n\t\t}\n\t}",
"public void setHorario(String horario);",
"public void setVisibilidadContinuar(){\n int cantidadDeElementos = clasesSeleccionadasLista.getModel().getSize();\n\n if(cantidadDeElementos <= 0){\n continuar.setEnabled(false);\n } else {\n continuar.setEnabled(true);\n }\n }",
"public void setCantReversoAnulacion(java.lang.Integer cantReversoAnulacion) {\r\n this.cantReversoAnulacion = cantReversoAnulacion;\r\n }",
"public void setVerHor(Coordinates currentVerHor);",
"public void setCantidad(int value) {\n this.cantidad = value;\n }",
"public void setHorario(String horario) {\n this.horario = horario;\n }",
"private void setTableHeaderNotMoveable() {\n stuffTable.getTableHeader().setReorderingAllowed(false);\n employeeTable.getTableHeader().setReorderingAllowed(false);\n sellerTable.getTableHeader().setReorderingAllowed(false);\n salesmanTable.getTableHeader().setReorderingAllowed(false);\n customerTable.getTableHeader().setReorderingAllowed(false);\n commisionerTable.getTableHeader().setReorderingAllowed(false);\n WarehouseTB.getTableHeader().setReorderingAllowed(false);\n ContainerTB.getTableHeader().setReorderingAllowed(false);\n ProducerTable.getTableHeader().setReorderingAllowed(false);\n SaleTable.getTableHeader().setReorderingAllowed(false);\n PurchaseTable.getTableHeader().setReorderingAllowed(false);\n SalaryTable.getTableHeader().setReorderingAllowed(false);\n IncomeTable.getTableHeader().setReorderingAllowed(false);\n OutcomeTable.getTableHeader().setReorderingAllowed(false);\n DebtTable.getTableHeader().setReorderingAllowed(false);\n CreditTable.getTableHeader().setReorderingAllowed(false);\n }",
"public int getHoras() {\n return horas;\n }",
"public void setCantidad(java.lang.Integer cantidad) {\r\n this.cantidad = cantidad;\r\n }",
"public void setFlores(int avenida, int calle, int cant);",
"public void setTentos (int tentos) {\n this.tentos = tentos;\n }",
"public void TicTac()\n {\n if(minutos<=59)\n {\n minutos=minutos+1;\n \n }\n else\n {\n minutos=00;\n horas+=1;\n \n }\n if(horas>23)\n {\n horas=00;\n \n }\n else\n {\n minutos+=1;\n }\n }",
"public void setObstaculo(int avenida, int calle);",
"public void setCantidad(Integer cantidad) {\n this.cantidad.set(cantidad);\n }",
"public ClientesCadastrados() {\n initComponents();\n tabelaClientes();\n Tabela.setRowSelectionAllowed(false);\n Tabela.getTableHeader().setReorderingAllowed(false);\n setIcone();\n }",
"public void setHorInicio(java.lang.String horInicio) {\n this.horInicio = horInicio;\n }",
"private void setNumeros(Set<Integer> numeros) {\n\t\tthis.numeros = new Vector<Integer>(numeros);\n\t}",
"public void setButacas(int butacas) {\r\n\t\tthis.butacas = butacas;\r\n\t}",
"public void setNoDamageTicks ( int ticks ) {\n\t\texecute ( handle -> handle.setNoDamageTicks ( ticks ) );\n\t}",
"public void setValoracionDelCurso(int value) {\n this.valoracionDelCurso = value;\n }",
"public void controllore() {\n if (puntiVita > maxPunti) puntiVita = maxPunti;\n if (puntiFame > maxPunti) puntiFame = maxPunti;\n if (puntiFelicita > maxPunti) puntiFelicita = maxPunti;\n if (soldiTam < 1) {\n System.out.println(\"Hai finito i soldi\");\n System.exit(3);\n }\n //controlla che la creatura non sia morta, se lo è mette sonoVivo a false\n if (puntiVita <= minPunti && puntiFame <= minPunti && puntiFelicita <= minPunti) sonoVivo = false;\n }",
"private void ignorarIndexVazioAgendaHorario(ProfissionalFullForm form) {\r\n if ( !CollectionUtils.isEmpty(form.getClinicas()) ){\r\n for (ClinicaForm c : form.getClinicas()){\r\n c.setAgendaHorarios(this.ignorarIndexVazioAgendaHorario(c.getAgendaHorarios()));\r\n }\r\n }\r\n }",
"public void Dios()\r\n {\r\n \tif(!dios)\r\n \t\tgrafico.cambiarA(0);\r\n \telse\r\n \t\tgrafico.cambiarA(1);\r\n dios=!dios;\r\n }",
"public void setCuerdas(int cuerdas){\n\tthis.cuerdas = cuerdas;\n }",
"public int getHoras() {\r\n\t\treturn super.getHoras()*2;\r\n\t}",
"public void setHorY(int horY) {\r\n this.horY = horY;\r\n }",
"private void cuentaminas() {\n\t//TODO: falta por hacer que calcule lasminas en el borde exterior\n\t//Probar a hacerlo con un try catch\n\tint minas = 0;\n\n\tfor (int i = 0; i < filas; i++) {\n\t for (int j = 0; j < columnas; j++) {\n\t\t//\t1 2 3\n\t\t//\t4 X 5\n\t\t//\t6 7 8\n\t\ttry {\n\t\t minas += arrayBotones[i - 1][j - 1].getMina();//1\n\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i - 1][j].getMina();//2\n\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i - 1][j + 1].getMina();//3\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i][j - 1].getMina();//4\n\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i][j + 1].getMina();//5\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i + 1][j - 1].getMina();//6 \t\t \n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i + 1][j].getMina();//7\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i + 1][j + 1].getMina();//8\n\t\t} catch (Exception e) {\n\t\t}\n\t\tarrayBotones[i][j].setNumeroMinasAlrededor(minas);\n\t\t//TODO: comentar la siguiente parte para que no aparezcan los numeros al iniciar\n//\t\tif (arrayBotones[i][j].getMina() == 0 && minas != 0) {\n//\t\t arrayBotones[i][j].setText(String.valueOf(minas));\n//\t\t}\n\t\tminas = 0;\n\t }\n\t}\n }",
"public void setCadastro() {\n jb_novo1.setEnabled(false);\n }",
"public void modCasella(Tauler t){\n if(valor != -1){\n this.setBackground(Color.RED);\n valor = -1;\n t.subMov();\n }\n else{\n valor = 0;\n this.setBackground(color);\n t.addMov();\n }\n }",
"@Override\n\t\tpublic void afectarPorNebulosaDeAndromeda(int cantidadturnos) {\n\t\t}",
"@Override\n\t\tpublic void afectarPorNebulosaDeAndromeda(int cantidadturnos) {\n\t\t}",
"@Override\n\t\tpublic void afectarPorNebulosaDeAndromeda(int cantidadturnos) {\n\t\t}",
"public void guardarBloquesHorariosSeleccionado(){\n\t\tif(bloquesHorariosSeleccionadoEditar.getIdbloqueshorarios() == 0){\n\t\t\tbloquesHorariosFacade.create(bloquesHorariosSeleccionadoEditar);\n\t\t}else{\n\t\t\tbloquesHorariosFacade.edit(bloquesHorariosSeleccionadoEditar);\n\t\t}\n\t\tdataListBloquesHorarios = null;\n\t}",
"public void ukloniHranu() {\n\t\tthis.tabla[iHrana][jHrana] = '.';\t\t\n\t}",
"public void darCoordenadasIniciales() \r\n\t{\t\r\n\t\tint coordenadasX = 0;\r\n\t\tint coordenadasY = 1;\r\n\t\tint orientacion = 2;\r\n\t\t\r\n\t\tfor (int x = 0; x<palabras.size();x++) \r\n\t\t{\r\n\t\t\tpalabras.get(x).get(0).setX(Integer.parseInt(manejadorArchivos.getPalabras().get(coordenadasX)));\r\n\t\t\tpalabras.get(x).get(0).setY(Integer.parseInt(manejadorArchivos.getPalabras().get(coordenadasY)));\r\n\t\t\tpalabras.get(x).get(0).setOrientacion(manejadorArchivos.getPalabras().get(orientacion));\r\n\t\t\t\r\n\t\t\t coordenadasX = coordenadasX +4;\r\n\t\t\t coordenadasY = coordenadasY + 4;\r\n\t\t\t orientacion = orientacion + 4;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic int horas_trabajo() {\n\t\treturn 1000;\n\t}",
"public List<HorarioAtencionEntity> getHorariosAtencion ()\r\n {\r\n return this.horariosAtencion;\r\n }",
"public void setMaximumNoDamageTicks ( int ticks ) {\n\t\texecute ( handle -> handle.setMaximumNoDamageTicks ( ticks ) );\n\t}",
"private void populaHorarioAula()\n {\n Calendar hora = Calendar.getInstance();\n hora.set(Calendar.HOUR_OF_DAY, 18);\n hora.set(Calendar.MINUTE, 0);\n HorarioAula h = new HorarioAula(hora, \"Segunda e Quinta\", 1, 3, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Terca e Sexta\", 1, 3, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 15);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 10);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Quarta e Sexta\", 3, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Sexta\", 1, 1, 2);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 19);\n h = new HorarioAula(hora, \"Sexta\", 2, 1, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Segunda\", 3, 6, 4);\n horarioAulaDAO.insert(h);\n\n }",
"public TelaDasRotas() throws Exception {\n initComponents();\n jTextFieldIdRotas.setEnabled(false);\n jComboBoxHorasChegada.setEnabled(false);\n ComboBoxMinutosChegada.setEnabled(false);\n jFormattedDataChegada.setEnabled(false);\n adicionaListaDeOnibusJComboBox(onibusPersistencia.recuperaOnibusAtivo());\n this.iniciar();\n jButtonAlterar.setEnabled(false);\n\n }",
"public void construirTercerSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet3ReglaCompleja = new JComboBox(dominio);// creamos el Tercer combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet3ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el Tercer item\n\t\titemscomboDominiosSet3ReglaCompleja = new JComboBox();// creamo el Tercer combo, vacio\n\t\titemscomboDominiosSet3ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el Tercer Dominio de regla compleja\");\n\t\tpanelCentral.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboDominiosSet3ReglaCompleja);\n\t\tcomboDominiosSet1ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelCentral.add(itemscomboDominiosSet3ReglaCompleja);\n\t\titemscomboDominiosSet3ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet4ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}",
"public PanelVentas() {\n initComponents();\n \n this.scpContenedor.getVerticalScrollBar().setUnitIncrement(Recursos.scpDesplazamiento);\n this.scpContenedor.getHorizontalScrollBar().setUnitIncrement(Recursos.scpDesplazamiento);\n \n }",
"public Truck()\r\n {\r\n super.setVehIs(VEHICLE_IS);\r\n // this.showMenu();\r\n }",
"public void setCantidadDisponible(Integer cantidadDisponible) {\n this.cantidadDisponible = cantidadDisponible;\n }",
"public void setHora(int hora, int minutos, int segundos)\r\n\t{\r\n\t\tthis.reloj.setTime(hora,minutos,segundos,00);\r\n\t}",
"public void controlla_collisioni() {\n\n for (int i = punti; i > 0; i--) {\n\n if ((i > 4) && (x[0] == x[i]) && (y[0] == y[i])) {\n in_gioco = false;\n }\n }\n\n if (y[0] >= ALTEZZA+85) { //devo aggungere +85 perche' l'area di gioco comincia dal punto 100,100\n in_gioco = false;\n }\n\n if (y[0] <= 100) {\n in_gioco = false;\n }\n\n if (x[0] >= LARGHEZZA+85) {\n in_gioco = false;\n }\n\n if (x[0] <= 100) {\n in_gioco = false;\n }\n }",
"public void setPermisos(int permisos) {\n\t\tthis.permisos = permisos;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel2 = new javax.swing.JLabel();\n combo_dia = new javax.swing.JComboBox<>();\n jLabel3 = new javax.swing.JLabel();\n spin_inicio = new javax.swing.JSpinner();\n jLabel4 = new javax.swing.JLabel();\n spin_final = new javax.swing.JSpinner();\n jScrollPane1 = new javax.swing.JScrollPane();\n tabla_horario = new javax.swing.JTable();\n btn_agregar = new javax.swing.JButton();\n btn_guardar = new javax.swing.JButton();\n btn_eliminar = new javax.swing.JButton();\n btn_editar = new javax.swing.JButton();\n btn_limpiar = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n\n setClosable(true);\n setTitle(\"Horario de Servicio Social\");\n setVisible(true);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel2.setText(\"Dia de la semana:\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, -1, -1));\n\n getContentPane().add(combo_dia, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 40, 210, -1));\n\n jLabel3.setText(\"Hora de Inicio:\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 20, -1, -1));\n\n spin_inicio.setModel(new javax.swing.SpinnerNumberModel(0, 0, 23, 1));\n getContentPane().add(spin_inicio, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 40, 110, -1));\n\n jLabel4.setText(\"Hora de finalizacion:\");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 20, -1, -1));\n\n spin_final.setModel(new javax.swing.SpinnerNumberModel(0, 0, 23, 1));\n getContentPane().add(spin_final, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 40, 120, -1));\n\n tabla_horario.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null}\n },\n new String [] {\n \"Lunes\", \"Martes\", \"Miercoles\", \"Jueves\", \"Viernes\", \"Sabado\", \"Domingo\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class\n };\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false, false, false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tabla_horario.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jScrollPane1.setViewportView(tabla_horario);\n\n getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 140, 630, 110));\n\n btn_agregar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/imagenes/add.png\"))); // NOI18N\n btn_agregar.setText(\"Agregar\");\n btn_agregar.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n getContentPane().add(btn_agregar, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 80, -1, -1));\n\n btn_guardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/imagenes/save.png\"))); // NOI18N\n btn_guardar.setText(\"Guardar\");\n getContentPane().add(btn_guardar, new org.netbeans.lib.awtextra.AbsoluteConstraints(530, 260, -1, -1));\n\n btn_eliminar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/imagenes/delete.png\"))); // NOI18N\n btn_eliminar.setText(\"Eliminar\");\n getContentPane().add(btn_eliminar, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 80, -1, -1));\n\n btn_editar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/imagenes/edit.png\"))); // NOI18N\n btn_editar.setText(\"Editar\");\n getContentPane().add(btn_editar, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 80, -1, -1));\n\n btn_limpiar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/imagenes/clean.png\"))); // NOI18N\n btn_limpiar.setText(\"Limpiar Horario\");\n getContentPane().add(btn_limpiar, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 80, -1, -1));\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/imagenes/bg7.jpg\"))); // NOI18N\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 650, 310));\n\n pack();\n }",
"public void setMinHours(int minHours) throws IllegalHoursException {\r\n if (minHours < 0 || Double.isNaN(minHours)){\r\n throw new IllegalHoursException();\r\n }\r\n this.minHours = minHours;\r\n }",
"public MovimientoPantallaCocina() {\n initComponents();\n \n //COLOCAR FONOD EN LA PANTALLA PARA LA COCINA\n try{\n pnlOrdenes.setBorder(new ImagenCocina());\n } catch (IOException e){\n Logger.getLogger(MovimientoPantallaCocina.class.getName()).log(Level.SEVERE, null, e);\n }\n \n //VISUALIZAR TODAS LAS ORDENES ACTIVAS\n hilo p = new hilo(\"ordenes\");\n p.start();\n }",
"private void setNumberMines(int setNumberMines)\n\t{\n\t\tif(setNumberMines <= 0) myNumberMines = 1;\n\t\telse if(setNumberMines > ((mySizeX * mySizeY)-9))\n\t\t\tmyNumberMines = (mySizeX * mySizeY) - 9;\n\t\telse myNumberMines = setNumberMines;\n\t}",
"public void setHoraCompra() {\n LocalTime hora=LocalTime.now();\n this.horaCompra = hora;\n }",
"public void setSeguros(Set<Integer> seguros){\n\tthis.seguros.clear();\n\tfor(Integer i : seguros){\n\t this.seguros.add(i);\n\t}\n }",
"public void setNumMinCotasInteg(Integer numMinCotasInteg) {\n\t\tthis.numMinCotasInteg = numMinCotasInteg;\n\t}",
"public void setClearMines(boolean b);",
"public void limitarCantidad(int cantidad) {\n int cantidadAnterior = nodos.size();\n \n nodos = nodos.subList(0, cantidad);\n \n fireIntervalRemoved(this, cantidad, cantidadAnterior);\n }",
"public void darCoordenadas() {\r\n\t\t\r\n\t\tfor(int x = 0; x<palabras.size(); x++) {\r\n\t\t\t\r\n\t\t\tif (palabras.get(x).get(0).getOrientacion().equals(\"V\")) {\r\n\t\t\t\tint coordenadaX = palabras.get(x).get(0).getX();\r\n\t\t\t\tint coordenadaY = palabras.get(x).get(0).getY();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 1; y < palabras.get(x).size(); y++) \r\n\t\t\t\t{\r\n\t\t\t\t\tcoordenadaY++;\r\n\t\t\t\t\tpalabras.get(x).get(y).setX(coordenadaX);\r\n\t\t\t\t\tpalabras.get(x).get(y).setY(coordenadaY);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (palabras.get(x).get(0).getOrientacion().equals(\"H\") ) {\r\n\t\t\t\t\r\n\t\t\t\tint coordenadaX = palabras.get(x).get(0).getX();\r\n\t\t\t\tint coordenadaY = palabras.get(x).get(0).getY();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 1; y < palabras.get(x).size(); y++) \r\n\t\t\t\t{\r\n\t\t\t\t\tcoordenadaX++;\r\n\t\t\t\t\tpalabras.get(x).get(y).setX(coordenadaX);\r\n\t\t\t\t\tpalabras.get(x).get(y).setY(coordenadaY);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void setCantidadAvenidasYCalles(int avenidas, int calles);",
"public CentrosTrabajo() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public void construirCuartoSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet4ReglaCompleja = new JComboBox(dominio);// creamos el Cuarto combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet4ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el Cuarto item\n\t\titemscomboDominiosSet4ReglaCompleja = new JComboBox();// creamo el Cuarto combo, vacio\n\t\titemscomboDominiosSet4ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el Cuarto Dominio de regla compleja\");\n\t\tpanelDerecho.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelDerecho.add(comboDominiosSet4ReglaCompleja);\n\t\tcomboDominiosSet4ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelDerecho.add(itemscomboDominiosSet4ReglaCompleja);\n\t\titemscomboDominiosSet4ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelDerecho.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet4ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}",
"private void resetPieza() {\n for (int i = 0; i < altoTablero * anchoTablero; ++i) {\r\n piezas[i] = PiezasTetris.NoPieza;\r\n }\r\n }",
"private void setStatusTelaExibir () {\n setStatusTelaExibir(-1);\n }",
"public void setComando(int comando) {\n\t\tthis.comando = comando;\n\t}",
"public void setar_campos()\n {\n int setar = tblCliNome.getSelectedRow();\n txtCliId.setText(tblCliNome.getModel().getValueAt(setar, 0).toString());\n txtCliNome.setText(tblCliNome.getModel().getValueAt(setar, 1).toString());\n txtCliRua.setText(tblCliNome.getModel().getValueAt(setar, 2).toString());\n txtCliNumero.setText(tblCliNome.getModel().getValueAt(setar, 3).toString());\n txtCliComplemento.setText(tblCliNome.getModel().getValueAt(setar, 4).toString());\n txtCliBairro.setText(tblCliNome.getModel().getValueAt(setar, 5).toString());\n txtCliCidade.setText(tblCliNome.getModel().getValueAt(setar, 6).toString());\n txtCliUf.setText(tblCliNome.getModel().getValueAt(setar, 7).toString());\n txtCliFixo.setText(tblCliNome.getModel().getValueAt(setar, 8).toString());\n txtCliCel.setText(tblCliNome.getModel().getValueAt(setar, 9).toString());\n txtCliMail.setText(tblCliNome.getModel().getValueAt(setar, 10).toString());\n txtCliCep.setText(tblCliNome.getModel().getValueAt(setar, 11).toString());\n \n // A LINHA ABAIXO DESABILITA O BOTÃO ADICIONAR PARA QUE O CADASTRO NÃO SEJA DUPLICADO\n btnAdicionar.setEnabled(true);\n \n }",
"public void setDatossolicitudBfcodigoCanalDealer(int value) {\n this.datossolicitudBfcodigoCanalDealer = value;\n }",
"protected void setPlateauBlocked() {\r\n\t\tint idx = 0;\r\n\t\tfor (int i = 0; i < plateau4par4.getPlateau().length; i++) {\r\n\t\t\tfor (int j = 0; j < plateau4par4.getPlateau()[i].length; j++) {\r\n\t\t\t\tplateau4par4.getPlateau()[i][j] = new Case(new CaseContent(++idx));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setINVALIDNORMALORDERS(java.lang.CharSequence value) {\n validate(fields()[9], value);\n this.INVALID_NORMAL_ORDERS = value;\n fieldSetFlags()[9] = true;\n return this;\n }",
"public void excluirDados() {\n\n int linha;\n\n if (verificarAbaAtiva() == 0) {\n linha = HorarioDeTrabalho.getSelectedRow();\n modHT = (DefaultTableModel) HorarioDeTrabalho.getModel();\n tratDados.excluirDadosTabela(modHT, linha);\n txtEntrada_Horario.requestFocus();\n } else {\n linha = MarcacoesFeitas.getSelectedRow();\n modMF = (DefaultTableModel) MarcacoesFeitas.getModel();\n tratDados.excluirDadosTabela(modMF, linha);\n txtEntrada_Marcacoes.requestFocus();\n }\n \n //Limpa as tabelas de Atraso e Extras\n modAt.setRowCount(0);\n modEx.setRowCount(0);\n }",
"public Tiempo(int horas, int minutos, int segundos, String displayTiempo) {\r\n\t\tthis.horas = horas;\r\n\t\tif(minutos >= 0 && minutos <= 59){\r\n\t\t\tthis.minutos = minutos;\r\n\t\t}else{\r\n\t\t\tthis.minutos = 0;\r\n\t\t}\r\n\t\tif(segundos >=0 && segundos <=59){\r\n\t\t\tthis.segundos = segundos;\r\n\t\t}else{\r\n\t\t\tthis.segundos = 0;\r\n\t\t}\r\n\t\tthis.displayTiempo = displayTiempo;\r\n\t}",
"public INICIOTENDENCIAS() {\n initComponents();\n setResizable(false);\n }",
"public void setCodTienda(Integer codTienda);",
"public void setHoraIni(int horaIni) {\n this.horaIni = horaIni;\n }",
"boolean canSet(Coordinates coord, double horizon, long time) throws AstrometryException;",
"public void setVictimas(List<Victima> listaVictimas) {\n\t\tif ( visorEscenario != null )\n\t\t\tvisorEscenario.setVictimas(listaVictimas);\n\t}",
"public void iluminarCarro( int pPuesto )\n {\n for( JButton puesto : puestos )\n {\n puesto.setBorder( new LineBorder( Color.GRAY ) );\n }\n puestos[ pPuesto ].setBorder( new LineBorder( Color.ORANGE, 5 ) );\n }",
"public void restarAlInventario(int cantidad) {\n\t\tint aux=this.cantidad - cantidad;\n\t\tif(aux>=0) {\n\t\t\tthis.cantidad = aux;\n\t\t}else {\n\t\t\tthis.cantidad = 0;\n\t\t}\n\t}",
"public CalculoNotaBimestral() {\n initComponents();\n NotadaProva.setEnabled(false);\n Resultado.setEnabled(false);\n }",
"public void setSueldoBase(int salarioBase) throws Throwable {\n\n\t\tint ayuda;\n\t\t\n\t\tif (salarioBase <= 300) {\n\t\t\t\n\t\t\tayuda = JOptionPane.showOptionDialog(null, \"Ayuda governal\", \"Tiene ayuda governal?\",\n\t\t\t\t\tJOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, new Object[] { \"No\", \"Sí\" },\n\t\t\t\t\t\"Sí\");\n\t\t\t\n\t\t\tthis.sueldoBase = ayuda > 0 ? salarioBase : 0;\t\t\t\t\n\t\t} \n\t\telse {\n\t\t\tthrow new Exception();\n\n\t\t}\n\t}",
"public void setDeffectSection() {\n linearLayoutBottomButtons.setVisibility(View.VISIBLE);\n scroolViewScanner.setVisibility(View.GONE);\n scroolViewDefect.setVisibility(View.VISIBLE);\n linLayOverView.setVisibility(View.GONE);\n scroolViewSharWin.setVisibility(View.GONE);\n\n // set buttons background\n buttonBarScaner.setBackgroundColor(ContextCompat.getColor(ActivityScreans.this, R.color.colorBackgroundGray200));\n buttonBarScaner.setTextColor(ContextCompat.getColor(ActivityScreans.this, R.color.colorBlack));\n buttonBarDefect.setBackgroundColor(ContextCompat.getColor(ActivityScreans.this, R.color.colorPrimaryDarkBlue900));\n buttonBarDefect.setTextColor(ContextCompat.getColor(ActivityScreans.this, R.color.colorWhite));\n buttonBarOverView.setBackgroundColor(ContextCompat.getColor(ActivityScreans.this, R.color.colorBackgroundGray200));\n buttonBarOverView.setTextColor(ContextCompat.getColor(ActivityScreans.this, R.color.colorBlack));\n buttonBarShareWin.setBackgroundColor(ContextCompat.getColor(ActivityScreans.this, R.color.colorBackgroundGray200));\n buttonBarShareWin.setTextColor(ContextCompat.getColor(ActivityScreans.this, R.color.colorBlack));\n }",
"public void construirPrimerSetDeDominios() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet1 = new JComboBox(dominio);// creamos el primer combo, y\n\t\t\t\t\t\t\t\t\t\t\t\t\t// le\n\t\t// pasamos un array de cadenas\n\t\tcomboDominiosSet1.setSelectedIndex(0);// por defecto quiero visualizar\n\t\t\t\t\t\t\t\t\t\t\t\t// el\n\t\t// primer item\n\t\titemsComboDominiosSet1 = new JComboBox();// creamo el segundo combo,\n\t\t\t\t\t\t\t\t\t\t\t\t\t// vacio\n\t\titemsComboDominiosSet1.setEnabled(false);// //por defecto q aparesca\n\t\t\t\t\t\t\t\t\t\t\t\t\t// desabilidado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el primer Dominio\");\n\t\tpanelCentral.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboDominiosSet1);\n\t\tcomboDominiosSet1.setBounds(100, 30, 150, 24);\n\t\tpanelCentral.add(itemsComboDominiosSet1);\n\t\titemsComboDominiosSet1.setBounds(100, 70, 150, 24);\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);// le\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// pasamos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// como\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// argumento\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// esta\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// misma\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ventana\n\t\tcomboDominiosSet1.addActionListener(controlDemoCombo);// agregamos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// escuchas\n\n\t}",
"public void pocetHran(int pocet){\n\t\tthis.hrana = new Hrana[pocet];\n\t\tfor(int i = 0;i < hrana.length ; i++ ){\n\t\t\thrana[i] = null;\n\t\t}\n\t}",
"public TelaPernas() {\n initComponents();\n lblTipo.setVisible(false);\n lblCobra.setVisible(false);\n lblSaci.setVisible(false);\n lblBipede.setVisible(false);\n lblMiniBoi.setVisible(false);\n lblFormiga.setVisible(false);\n lblMiranha.setVisible(false);\n lblEt.setVisible(false);\n \n }",
"public boolean isSetHorzBwMin() {\n return (this.horzBwMin != null ? this.horzBwMin.isSetValue() : false);\n }",
"public static int[] getRecorridoAntiHorarioAdayacentes(int direccion, int ventana){\r\n\t\tint cant = 2 * ventana + 1;\r\n\t\tif (direccion < 0)\r\n\t\t\tdireccion = 8 + direccion;\r\n\t\tif (cant > 8)\r\n\t\t\tcant = 8;\r\n\t\tint[] direcciones = new int[cant];\r\n\t\tint inicio = (direccion + ventana) % 8;\r\n\t\tint dir = inicio;\r\n\t\tfor (int i = 0; i < cant; i++){\r\n\t\t\tdirecciones[i] = dir;\r\n\t\t\tdir--;\r\n\t\t\tif (dir < 0)\r\n\t\t\t\tdir = 8 + dir;\r\n\t\t}\r\n\t\treturn direcciones;\r\n\t}",
"public void enableContours(boolean on)\n throws VisADException, RemoteException {\n boolean change = (mainContours != on);\n mainContours = on;\n if (change) changeControl(true);\n }",
"public PanCoperti() {\n /* rimanda al costruttore della superclasse */\n super(Layout.ORIENTAMENTO_ORIZZONTALE);\n\n\n try { // prova ad eseguire il codice\n\n /* regolazioni iniziali di riferimenti e variabili */\n this.inizia();\n\n } catch (Exception unErrore) { // intercetta l'errore\n new Errore(unErrore);\n }// fine del blocco try-catch\n }",
"private void compruebaMinas(boolean add, int i, int j) {\n\tif (add) {\n\t contadorInterrogaciones++;\n\t if (arrayBotones[i][j].getMina() == 1) {\n\t\tcontadorMinas++;\n\t }\n\t} else {\n\t contadorInterrogaciones--;\n\t if (arrayBotones[i][j].getMina() == 1) {\n\t\tcontadorMinas--;\n\t }\n\t}\n\tif ((contadorMinas == numMinas) && (contadorInterrogaciones == numMinas)) {\n\t this.setVisible(false);\n\t ventanaReset.setVisible(true);\n\t labelGanador.setVisible(true);\n\t}\n }",
"private void inizia() throws Exception {\n this.setNomeChiave(CHIAVE_NAV);\n this.setUsaNuovo(false);\n this.setUsaElimina(false);\n this.setUsaRicerca(true);\n this.setUsaSelezione(true);\n this.setUsaStampaLista(false);\n this.setUsaProietta(false);\n this.setAggiornamentoTotaliContinuo(true);\n }",
"@Override\n\tpublic void initMostrar_datos(Object historia_clinica) {\n\t\tif (opciones_via_ingreso.equals(Opciones_via_ingreso.MOSTRAR)) {\n\t\t\tFormularioUtil.deshabilitarComponentes(groupboxEditar, true,\n\t\t\t\t\tnew String[] { \"northEditar\" });\n\t\t\ttoolbarbuttonTipo_historia\n\t\t\t\t\t.setLabel(\"Mostrando Historia de Urgencia\");\n\t\t} else {\n\t\t\ttoolbarbuttonTipo_historia\n\t\t\t\t\t.setLabel(\"Modificando Historia de Urgencia\");\n\t\t}\n\t}",
"public Secante() {\n initComponents();\n this.setLocationRelativeTo(null);\n //Hacer el metodo\n int intentos;\n double a, b, c, d, raiz1, raiz2;\n Interfaza inter = new Interfaza();\n a=inter.a;\n b=inter.b;\n c=inter.c;\n d=inter.d;\n raiz1=inter.metd3a;\n raiz2=inter.metd3b;\n intentos=inter.intentos;\n //COdigo para hacer la tabla\n DefaultTableModel modelo1 = (DefaultTableModel) tblFormula1.getModel();\n hacertabla(intentos, raiz1, raiz2, a, b, c, d, modelo1, txtInformacion);\n }",
"public void construirSegundoSetDeDominios() {\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\titemsComboDominiosSet2 = new JComboBox(dominio);// creamos el primer\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// combo, y le\n\t\t// pasamos un array de cadenas\n\t\titemsComboDominiosSet2.setSelectedIndex(0);// por defecto quiero\n\t\t\t\t\t\t\t\t\t\t\t\t\t// visualizar el\n\t\t// primer item\n\t\tcomboDominiosSet2 = new JComboBox();// creamo el segundo combo, vacio\n\t\tcomboDominiosSet2.setEnabled(false);// //por defecto q aparesca\n\t\t\t\t\t\t\t\t\t\t\t// desabilidado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el segundo Dominio\");\n\t\tpanelDerecho.add(labeltituloSeleccionDominios);\n\n\t\tpanelDerecho.add(itemsComboDominiosSet2);\n\n\t\tpanelDerecho.add(comboDominiosSet2);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);// le\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// pasamos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// como\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// argumento\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// esta\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// misma\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ventana\n\t\titemsComboDominiosSet2.addActionListener(controlDemoCombo);// agregamos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// escuchas\n\n\t}"
] | [
"0.65364635",
"0.6189752",
"0.5411436",
"0.54084206",
"0.5263288",
"0.5161285",
"0.5097489",
"0.5057614",
"0.48977235",
"0.48863012",
"0.48845756",
"0.4845076",
"0.47932163",
"0.47414377",
"0.4729419",
"0.47244653",
"0.46907315",
"0.46803927",
"0.46671316",
"0.46533197",
"0.46523398",
"0.46251905",
"0.46244898",
"0.45993018",
"0.45856985",
"0.45830667",
"0.45400468",
"0.45345816",
"0.45252812",
"0.45171714",
"0.44826272",
"0.44446555",
"0.44212523",
"0.44027513",
"0.4393473",
"0.43558803",
"0.43450257",
"0.43273604",
"0.43273604",
"0.43273604",
"0.43168625",
"0.43049198",
"0.43017092",
"0.4299242",
"0.42861965",
"0.4274802",
"0.42728984",
"0.42415",
"0.42385718",
"0.42375422",
"0.42368183",
"0.42241356",
"0.42205644",
"0.4219959",
"0.42105436",
"0.42075586",
"0.420662",
"0.42044508",
"0.420292",
"0.41987288",
"0.41961923",
"0.41863385",
"0.4180678",
"0.4170831",
"0.41666493",
"0.4160412",
"0.41586238",
"0.41538587",
"0.4146453",
"0.4144541",
"0.41420752",
"0.41401073",
"0.41330236",
"0.41216606",
"0.41174972",
"0.41168806",
"0.41134414",
"0.4111305",
"0.41100606",
"0.41093084",
"0.41089818",
"0.410278",
"0.410274",
"0.41026986",
"0.40860167",
"0.40836474",
"0.4080027",
"0.40789175",
"0.40695333",
"0.40647724",
"0.40636417",
"0.4055153",
"0.4054538",
"0.40542054",
"0.40540192",
"0.40532252",
"0.40506434",
"0.40434003",
"0.40364859",
"0.40320045"
] | 0.7943806 | 0 |
Gets the creditos value for this DtCurso. | public java.lang.Integer getCreditos() {
return creditos;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int[] getCO() {return co;}",
"public int getValoracionDelCurso() {\n return valoracionDelCurso;\n }",
"public double getCapacidadeCarga() {\n return capacidadeCarga;\n }",
"public long getCas() {\n return casValue.getCas();\n }",
"public int getCuerdas(){\n\treturn this.cuerdas;\n }",
"public BigDecimal getCredit() {\n return credit;\n }",
"public Comentarios getCom() {\r\n\t\treturn com;\r\n\t}",
"public int cuantosCursos(){\n return inscripciones.size();\n }",
"public long getCosto() {\n return costo;\n }",
"public int getCredit() {\n return this.credit;\n }",
"public BigDecimal getACC_CY() {\r\n return ACC_CY;\r\n }",
"public Integer getCedula() {return cedula;}",
"public Integer getIdCurso() {\r\n return idCurso;\r\n }",
"public BigDecimal getCouid() {\n return couid;\n }",
"public java.lang.Double getValorComissao() {\n return valorComissao;\n }",
"public float getBusC() {\r\n return costs.get(Transports.BUS);\r\n }",
"public Long getCreditNum() {\n return creditNum;\n }",
"public com.spirit.sri.reoc.Compras getCompras()\r\n {\r\n return this._compras;\r\n }",
"public List<CntConfiguracionCentrocosto> getListaCntConfiguracionCentrocosto() {\n return listaCntConfiguracionCentrocosto;\n }",
"public double getValorComercial() {\r\n return valorComercial;\r\n }",
"public ArrayList<CreditCard> getCreditCards() {\n\t\treturn this.creditCards;\n\t}",
"public int getCosto() {\n\t\treturn producto.getCosto();\n\t}",
"public ValueNamePair[] getCreditCards() {\n return getCreditCards(getPayAmt());\n }",
"public java.lang.Integer getCDS() {\n return CDS;\n }",
"public long getCredits()\n {\n return credits;\n }",
"public String getCUSU_CODIGO(){\n\t\treturn this.myCusu_codigo;\n\t}",
"public int getCC() {\n\t\treturn CC;\n\t}",
"public java.math.BigDecimal getCrvComittedAmount () {\n\t\treturn crvComittedAmount;\n\t}",
"public PairVector getCCs(){\r\n\t\treturn mccabe.getCCs(javaclass);\r\n\t}",
"public int getCedula() {\n return cedula;\n }",
"public void setCreditos(java.lang.Integer creditos) {\n this.creditos = creditos;\n }",
"public double getCuota() {\n return cuota;\n }",
"public int getCredits()\n {\n return credits;\n }",
"public Integer getC() {\n return c;\n }",
"public String getComentarios() {\n return comentarios;\n }",
"@Column(name=\"ValorCota\")\n\tpublic BigDecimal getValorCota() {\n\t\treturn valorCota;\n\t}",
"public int getCredits() {\n return credits;\n }",
"public String getCurrencies() {\n\n\t\treturn getJson(API_VERSION, PUBLIC, \"getcurrencies\");\n\t}",
"public java.util.List<teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil> getCazuriList() {\n return cazuri_;\n }",
"public final TradeGoods[] getCargo() {\n return cargo;\n }",
"public int getCaixa() {\n\t\treturn controlador.getCaixa();\n\t}",
"public double getCash() {\n return cash;\n }",
"public Integer getCreditid() {\n return creditid;\n }",
"public double getCena() {\r\n\t\treturn cena;\r\n\t}",
"public double[] getCot() { return Cot; }",
"public List<Currcycnct> getCurrcycnct()\n/* */ {\n/* 68 */ return this.currcycnct;\n/* */ }",
"public List<String> getCc() {\n return cc;\n }",
"public int credits() {\n ////\n return credits;\n }",
"public List<String> getCcs() {\r\n\t\treturn ccs;\r\n\t}",
"public String getCurp(){\r\n return beneficiario[0].toString();\r\n }",
"public Integer getCapacidad() {\n return capacidad;\n }",
"public int getConto() {\n return (Integer)this.getCampo(nomeConto).getValore();\n }",
"public float getCilindradas() {\n return cilindradas;\n }",
"public ArrayList<Integer> getValue() {\n return this.diccionario.valor;\n }",
"public double getTcCosto() {\r\n return tcCosto;\r\n }",
"int getAllowedCredit();",
"public Double getCash() {\n\t\treturn cash;\n\t}",
"public String getCROSG_CODIGO(){\n\t\treturn this.myCrosg_codigo;\n\t}",
"public int getCoeficienteBernua()\n {\n return potenciaCV;\n }",
"public double getCustoAluguel(){\n return 2 * cilindradas;\n }",
"public BigDecimal getCashMoney() {\n return cashMoney;\n }",
"@Generated\n public List<Comentario> getComentario() {\n if (comentario == null) {\n __throwIfDetached();\n ComentarioDao targetDao = daoSession.getComentarioDao();\n List<Comentario> comentarioNew = targetDao._queryUsuarios_Comentario(id);\n synchronized (this) {\n if(comentario == null) {\n comentario = comentarioNew;\n }\n }\n }\n return comentario;\n }",
"public V getCValue();",
"public int getComienza() {\n\t\treturn comienza;\n\t}",
"public int getCaixa() {\n\t\treturn caixa;\n\t}",
"public int getCaixa() {\n\t\treturn caixa;\n\t}",
"java.util.List<teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil>\n getCazuriList();",
"public double getC() {\n return c;\n }",
"public String getCod_catedratico() {\n return cod_catedratico;\n }",
"public int getCreditCardNumber() {\n return creditCardNumber;\n }",
"public Date getCcrq() {\n return ccrq;\n }",
"public double getTcCliente() {\r\n return tcCliente;\r\n }",
"public int getConceito(int posicao)\n\t{\n\t\treturn gradeConceitos[posicao];\n\t}",
"public String getOrgCreditQuantid() {\n return orgCreditQuantid;\n }",
"public String getCuacctCls() {\n return cuacctCls;\n }",
"public int[] getCarte() {\n\t\tint[] carte = new int[6];\n\t\tcarte[0] = numAGRICOLI;\n\t\tcarte[1] = numARIDI;\n\t\tcarte[2] = numFIUMI;\n\t\tcarte[3] = numFORESTE;\n\t\tcarte[4] = numMONTAGNE;\n\t\tcarte[5] = numPRATI;\n\t\treturn carte;\n\t}",
"public int getCCN(){\n\t\treturn ccn;\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getCdcs() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(CDCS_PROP.get());\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getCdcs() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(CDCS_PROP.get());\n }",
"public Long getTotalcommission() {\n return totalcommission;\n }",
"public double getPrecioCompra() {\n return precioCompra;\n }",
"public List<String> retornaDatasComprasDeClientes () {\n return this.contasClientes\n .values()\n .stream()\n .flatMap((Conta conta) -> conta.retornaDatasDasCompras().stream())\n .collect(Collectors.toList());\n }",
"public Float getCourseCredit() {\n return courseCredit;\n }",
"public int getConsecutivoCdp() { return this.consecutivoCdp; }",
"public double getCurrentCash() {\r\n return currentCash;\r\n }",
"public String getCashNumber() {\n return cashNumber;\n }",
"public Integer[] getCompanyValues() {\n return companyValues;\n }",
"public static String getCuenta() {\r\n return cuenta;\r\n }",
"public int getC() {\n return c_;\n }",
"public double getCreditLimit(){\n return creditLine;\n }",
"public double getCash()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to getCash : \" + \"Agent\");\r\n/* 219 */ return this.cash;\r\n/* */ }",
"public Double getCtr() {\r\n return ctr;\r\n }",
"public int getC() {\n return c_;\n }",
"public Integer getCcn()\r\n {\r\n return (Integer) ( (IntegerMetricBO) getMetrics().get( CCN ) ).getValue();\r\n }",
"public Integer getCusTime() {\r\n return cusTime;\r\n }",
"public String getCsc() {\r\n\t\treturn csc;\r\n\t}",
"public int CCID() {\n\t\treturn this.creditCardIDNum;\n\t}",
"public java.lang.String getNumeroCredito() {\n return numeroCredito;\n }",
"public int getCiclo() { return this.ciclo; }",
"public String getCODIGO() {\r\n return CODIGO;\r\n }"
] | [
"0.62785107",
"0.6103992",
"0.6103428",
"0.60845697",
"0.60408986",
"0.6016456",
"0.5997051",
"0.59637845",
"0.591778",
"0.5905483",
"0.5874721",
"0.5842913",
"0.5790926",
"0.5789795",
"0.5780326",
"0.5764004",
"0.5758742",
"0.57357776",
"0.5725377",
"0.572057",
"0.57140565",
"0.5712693",
"0.57058734",
"0.5692351",
"0.56845474",
"0.56783897",
"0.56727546",
"0.563708",
"0.5636242",
"0.56194615",
"0.5614382",
"0.5603635",
"0.5598415",
"0.55983514",
"0.55979234",
"0.5586233",
"0.55821353",
"0.5567517",
"0.55666447",
"0.55656004",
"0.55642754",
"0.5561245",
"0.55574334",
"0.5549555",
"0.5546405",
"0.5539357",
"0.5537337",
"0.5523708",
"0.551919",
"0.55162615",
"0.5504455",
"0.5500561",
"0.54921246",
"0.54873484",
"0.5479391",
"0.5475551",
"0.5472181",
"0.5467476",
"0.5457134",
"0.5452932",
"0.54508257",
"0.54503953",
"0.54499817",
"0.54476374",
"0.5442702",
"0.5442702",
"0.54320455",
"0.5416837",
"0.5411089",
"0.54025793",
"0.5388573",
"0.53860706",
"0.5385547",
"0.53821576",
"0.53817695",
"0.5381633",
"0.5381256",
"0.53777105",
"0.536603",
"0.53613776",
"0.5353799",
"0.5352833",
"0.53497845",
"0.53486407",
"0.5347522",
"0.5346144",
"0.5338357",
"0.5338302",
"0.53352845",
"0.5332909",
"0.5331069",
"0.5328323",
"0.53277725",
"0.53276336",
"0.5327629",
"0.5319665",
"0.5317532",
"0.5316266",
"0.5313627",
"0.53129935"
] | 0.76425683 | 0 |
Sets the creditos value for this DtCurso. | public void setCreditos(java.lang.Integer creditos) {
this.creditos = creditos;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void creditar(int valor){\r\n this.contaCorrente.creditar(valor);\r\n }",
"public void setCredit(int credit) {\n this.credit = credit;\n }",
"public java.lang.Integer getCreditos() {\n return creditos;\n }",
"public void setCredit(BigDecimal credit) {\n this.credit = credit;\n }",
"public void setValoracionDelCurso(int value) {\n this.valoracionDelCurso = value;\n }",
"public void setPaymentInfoInCart(CreditCard cc);",
"public void setCredits(double credits) {\n this.credits = credits;\n }",
"public void setCedula(int value) {\n this.cedula = value;\n }",
"public void initialiseCred() {\n t1Cred = 0;\n t2Cred = 0;\n t1Sel.getItems().forEach(m -> t1Cred += m.getCredits());\n t2Sel.getItems().forEach(m -> t2Cred += m.getCredits());\n yrSel.getItems().forEach(m -> t1Cred += (m.getCredits() / 2));\n yrSel.getItems().forEach(m -> t2Cred += (m.getCredits() / 2)); //adds yr long credits split to both terms\n txtt1Cred.setText(\"\" + t1Cred);\n txtt2Cred.setText(\"\" + t2Cred);\n }",
"public void setCreditNum(Long creditNum) {\n this.creditNum = creditNum;\n }",
"public void setTarjetasCredito(List<TarjetaCreditoEntity> tarjetasCredito) {\r\n this.tarjetasCredito = tarjetasCredito;\r\n }",
"public void setValorCalculo(ValoresCalculo valorCalculo)\r\n/* 93: */ {\r\n/* 94:111 */ this.valorCalculo = valorCalculo;\r\n/* 95: */ }",
"public void setServicioCreditoTributario(ServicioCreditoTributario servicioCreditoTributario)\r\n/* 96: */ {\r\n/* 97:117 */ this.servicioCreditoTributario = servicioCreditoTributario;\r\n/* 98: */ }",
"public void setCCInformation(HashMap<String, String> params) {\n\t\tPAYMENT_TYPE = \"CREDIT\";\n\t\tCARD_NUM = params.get(\"cardNumber\");\n\t\tCARD_EXPIRE = params.get(\"expirationDate\");\n\t\tCVCCVV2 = params.get(\"cvv2\");\n\t}",
"public void setRefundedCredits(float val) {\n // ProtectBlock setRefundedCredits\n // ProtectBlock End\n this.refundedCredits = val;\n }",
"@Override\n public void credit(Long idClient, Double value) {\n log.info(\"methode credit\");\n Optional<Compte> compteClient = getByIdClient(idClient);\n\n if (compteClient.isPresent()) {\n\n Double solde = compteClient.get().getSolde();\n compteClient.get().setSolde(solde + value);\n log.info(\"Methode credit : \" + compteClient.get().toString());\n\n update(compteClient.get());\n }\n }",
"public void setCuerdas(int cuerdas){\n\tthis.cuerdas = cuerdas;\n }",
"public void setCurrcycnct(List<Currcycnct> currcycnct)\n/* */ {\n/* 76 */ this.currcycnct = currcycnct;\n/* */ }",
"public void setCurrentCash(double value) {\r\n this.currentCash = value;\r\n }",
"public void setCuentaContable(CuentaContable cuentaContable)\r\n/* 83: */ {\r\n/* 84:103 */ this.cuentaContable = cuentaContable;\r\n/* 85: */ }",
"public void setCuentaContableCierre(CuentaContable cuentaContableCierre)\r\n/* 103: */ {\r\n/* 104:119 */ this.cuentaContableCierre = cuentaContableCierre;\r\n/* 105: */ }",
"public Builder setAllowedCredit(int value) {\n bitField0_ |= 0x00000001;\n allowedCredit_ = value;\n onChanged();\n return this;\n }",
"public void setInitilaCash(int noOfBills) throws java.lang.Exception;",
"public void setCaixa(int caixa) {\n\t\tthis.caixa += caixa;\n\t}",
"public void setCdcs(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(CDCS_PROP.get(), value);\n }",
"public void setCdcs(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(CDCS_PROP.get(), value);\n }",
"public void setCLNO(int value) {\n this.clno = value;\n }",
"public void setAgregaCC(boolean agregaCC)\r\n/* 369: */ {\r\n/* 370:426 */ this.agregaCC = agregaCC;\r\n/* 371: */ }",
"public void setCedula(Integer cedula) {this.cedula = cedula;}",
"public void setCuentaContable(CuentaContable cuentaContable)\r\n/* 304: */ {\r\n/* 305:371 */ this.cuentaContable = cuentaContable;\r\n/* 306: */ }",
"public void setCanceledServiceDelivery(CanceledServiceDelivery val) {\n // ProtectBlock setCanceledServiceDelivery\n \tfloat cancelCredits = 0.0f;\n \tfor(ServiceCreditPayment payment: val.getPaymentItems()){\n \t\tcancelCredits+=payment.getCredits();\n \t}\n \tthis.refundedCredits=cancelCredits;\n \tthis.canceledCountryCode=ShoppingCartUtility.getISO3CountryCode(val.getCountryCode());\n // ProtectBlock End\n this.canceledServiceDelivery = val;\n }",
"private void actualizarComboboxCursos() {\n\t\tint curso;\n\n\t\tDefaultComboBoxModel dcbm = new DefaultComboBoxModel();\n\t\tdcbm.removeAllElements();\n\n\t\tLinkedHashSet<Integer> resultado = modelo.obtenerCursos();\n\t\tIterator it = resultado.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tcurso = (int) it.next();\n\n\t\t\tdcbm.addElement(curso);\n\t\t}\n\t\tjfad.cBCursos.setModel(dcbm);\n\t\tjfad.cBCursosMod.setModel(dcbm);\n\t\tSystem.out.println(dcbm.getSelectedItem());\n\t}",
"public void setNUMCOPIAS(int value) {\n this.numcopias = value;\n }",
"public void setTarjeta(Payment cuenta){\n this.cuenta = cuenta;\n }",
"public void setDtCuentaContable(DataTable dtCuentaContable)\r\n/* 314: */ {\r\n/* 315:379 */ this.dtCuentaContable = dtCuentaContable;\r\n/* 316: */ }",
"public void setDatossolicitudBftipoDeConvenio(int value) {\n this.datossolicitudBftipoDeConvenio = value;\n }",
"public void setCreditHours(int creditHours) {\n this.creditHours = creditHours;\n }",
"public void simulerCreditConso(Client client, float emprunt, int nbMois) {\n\t\tSystem.out.println(\"Proposition de credit consommation : \");\n\t\tCredit creditconso = new Credit(emprunt, nbMois);\n\t\tcreditconso.CreditConso(emprunt, nbMois);\n\t\t\n\t\t\n\t}",
"public void setCuota(double cuota) {\n this.cuota = cuota;\n }",
"public void setComentarios(String comentarios) {\n this.comentarios = comentarios;\n }",
"public void limpiarCamposCita() {\r\n try {\r\n visitaRealizada = false;\r\n fechaNueva = null;\r\n observacionReasignaCita = \"\";\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".limpiarCamposCita()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }",
"public void setCreditid(Integer creditid) {\n this.creditid = creditid;\n }",
"public void setCantidad(int value) {\n this.cantidad = value;\n }",
"void setSolicitarCredito(com.soa.SolicitarCreditoDocument.SolicitarCredito solicitarCredito);",
"private void llenarEntidadConLosDatosDeLosControles() {\n clienteActual.setNombre(txtNombre.getText());\n clienteActual.setApellido(txtApellido.getText());\n clienteActual.setDui(txtDui.getText());\n //clienteActual.setNumero(txtNumero.getText());\n //clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n }",
"void setDiscount(float sconto);",
"public Builder setTransferSerials(java.util.List<TransferSerial> value) {\n validate(fields()[3], value);\n this.TransferSerials = value;\n fieldSetFlags()[3] = true;\n return this; \n }",
"private void controladorAtras(Controlador controlador){\n this.contAtras = controlador.getAtras();\n registro.setControlAtras(contAtras);\n login.setControlAtras(contAtras);\n }",
"public void setCc(Address... cc) {\n setAddressList(FieldName.CC, cc);\n }",
"public void setContratos(List<ContratoDTO> contratos) {\r\n this.contratos = contratos;\r\n }",
"public void setCantidadCUVErrado(java.math.BigInteger param){\n \n this.localCantidadCUVErrado=param;\n \n\n }",
"public void setCalorias(int calorias) {this.calorias = calorias;}",
"public void setDeci(int c){\n this.deci = c;\n }",
"public void setCreditCardType (String CreditCardType);",
"void setPosiblesValores(int[] valores);",
"public void addCredito(double montante) {\r\n\t\tcredito += montante;\r\n\t}",
"public Cobra()\r\n {\r\n super();\r\n corpo = new ArrayList<CorpoCobra>();\r\n\r\n porCrescer = 0;\r\n ovosComidos = 0;\r\n vidas = 3;\r\n tonta = 0;\r\n }",
"public void setar_campos()\n {\n int setar = tblCliNome.getSelectedRow();\n txtCliId.setText(tblCliNome.getModel().getValueAt(setar, 0).toString());\n txtCliNome.setText(tblCliNome.getModel().getValueAt(setar, 1).toString());\n txtCliRua.setText(tblCliNome.getModel().getValueAt(setar, 2).toString());\n txtCliNumero.setText(tblCliNome.getModel().getValueAt(setar, 3).toString());\n txtCliComplemento.setText(tblCliNome.getModel().getValueAt(setar, 4).toString());\n txtCliBairro.setText(tblCliNome.getModel().getValueAt(setar, 5).toString());\n txtCliCidade.setText(tblCliNome.getModel().getValueAt(setar, 6).toString());\n txtCliUf.setText(tblCliNome.getModel().getValueAt(setar, 7).toString());\n txtCliFixo.setText(tblCliNome.getModel().getValueAt(setar, 8).toString());\n txtCliCel.setText(tblCliNome.getModel().getValueAt(setar, 9).toString());\n txtCliMail.setText(tblCliNome.getModel().getValueAt(setar, 10).toString());\n txtCliCep.setText(tblCliNome.getModel().getValueAt(setar, 11).toString());\n \n // A LINHA ABAIXO DESABILITA O BOTÃO ADICIONAR PARA QUE O CADASTRO NÃO SEJA DUPLICADO\n btnAdicionar.setEnabled(true);\n \n }",
"public void setDatossolicitudBfcodigoCanalDealer(int value) {\n this.datossolicitudBfcodigoCanalDealer = value;\n }",
"private void setearOpcionesMenuCobros()\r\n\t{\r\n\t\tArrayList<FormularioVO> lstFormsMenuCobros = new ArrayList<FormularioVO>();\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t/*Buscamos los Formulairos correspondientes a este TAB*/\r\n\t\tfor (FormularioVO formularioVO : this.permisos.getLstPermisos().values()) {\r\n\t\t\t\r\n\t\t\tif(\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_COBRO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_COBRO_OTRO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_EGRESO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_GASTOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_DEPOSITO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_CONCILIACION) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_EGRESO_OTRO))\r\n\t\t\t\t\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tlstFormsMenuCobros.add(formularioVO);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/*Si hay formularios para el tab*/\r\n\t\tif(lstFormsMenuCobros.size()> 0)\r\n\t\t{\r\n\r\n\t\t\tthis.layoutMenu = new VerticalLayout();\r\n\t\t\t//this.tabMantenimientos.setMargin(true);\r\n\t\t\t\r\n\t\t\tthis.lbCobros.setVisible(true);\r\n\t\t\tthis.layoutMenu.addComponent(this.lbCobros);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (FormularioVO formularioVO : lstFormsMenuCobros) {\r\n\t\t\t\t\r\n\t\t\t\tswitch(formularioVO.getCodigo())\r\n\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_COBRO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_COBRO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarIngresoCobro();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.ingCobro);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_COBRO_OTRO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_COBRO_OTRO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarOtroCobro();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.otroCobro);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_EGRESO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_EGRESO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarIngresoEgreso();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.ingEgreso);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_EGRESO_OTRO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_EGRESO_OTRO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarOtroEgreso();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.otroEgreso);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_GASTOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_GASTOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarGastos();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.gastos);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\r\n\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_DEPOSITO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_DEPOSITO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarDeposito();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.deposito);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_CONCILIACION:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CONCILIACION, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarConciliacion();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.conciliacion);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.menuItems.addComponent(this.layoutMenu);\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public void setACC_CY(BigDecimal ACC_CY) {\r\n this.ACC_CY = ACC_CY;\r\n }",
"private void setCC(int CC) {\n\t\tCMN.CC = CC;\n\t}",
"void setCurrency(Currency currency);",
"public void setC_Currency_ID (int C_Currency_ID);",
"@SuppressWarnings(\"null\")\n private void setIDCupon() {\n int id_opinion = 1;\n ResultSet rs = null;\n Statement s = null;\n //cb_TS.addItem(\"Seleccione una opinion...\");\n //Creamos la query\n try {\n s = conexion.createStatement();\n } catch (SQLException se) {\n System.out.println(\"probando conexion de consulta\");\n }\n try {\n rs = s.executeQuery(\"SELECT id_cupon FROM cupon order by id_cupon desc LIMIT 1\");\n while (rs.next()) {\n id_opinion = Integer.parseInt(rs.getString(1))+1;\n }\n tf_ID.setText(Integer.toString(id_opinion));\n } catch (SQLException ex) {\n Logger.getLogger(N_Opinion.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void setCreditCard(eBLBaseComponents.apis.ebay.CreditCardDetailsType creditCard) {\r\n this.creditCard = creditCard;\r\n }",
"public void setCuadrícula(Número[][] cuad) {\r\n\t\tthis.cuadrícula=cuad;\r\n\t}",
"public void setCash(double cash_input) {\n cash = cash_input;\n }",
"public void novoDebito(Debitos debitos, String conCodigo, Contas contaComSaldo) throws SQLException {\r\n String sqls = \"select * from contas where concodigo = \" + conCodigo + \" \";\r\n\r\n PreparedStatement psc = null;\r\n ResultSet rsc = null;\r\n try {\r\n psc = connection.prepareStatement(sqls);\r\n rsc = psc.executeQuery();\r\n while (rsc.next()) {\r\n contaComSaldo.setConCodigo(rsc.getInt(\"concodigo\"));\r\n contaComSaldo.setConDescricao(rsc.getString(\"condescricao\"));\r\n contaComSaldo.setTipoCodigo(rsc.getInt(\"tipocodigo\"));\r\n contaComSaldo.setConSaldo(rsc.getDouble(\"consaldo\"));\r\n }\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(ContaDAO.class.getName()).log(Level.SEVERE, null, e);\r\n\r\n }\r\n\r\n String sqlUltimoCredito = \"select * from creditos order by crecodigo desc limit 1\";\r\n\r\n PreparedStatement pscUltimoCredito = null;\r\n ResultSet rscUltimoCredito = null;\r\n\r\n Creditos creditos = new Creditos();\r\n\r\n try {\r\n\r\n pscUltimoCredito = connection.prepareStatement(sqlUltimoCredito);\r\n rscUltimoCredito = pscUltimoCredito.executeQuery();\r\n while (rscUltimoCredito.next()) {\r\n\r\n creditos.setCreCodigo(rscUltimoCredito.getInt(\"crecodigo\"));\r\n creditos.setCreData(rscUltimoCredito.getDate(\"credata\"));\r\n creditos.setConCodigo(rscUltimoCredito.getInt(\"concodigo\"));\r\n creditos.setCreValor(rscUltimoCredito.getInt(\"crevalor\"));\r\n creditos.setCreHistorico(rscUltimoCredito.getString(\"crehistorico\"));\r\n creditos.setConSaldo(rscUltimoCredito.getDouble(\"consaldo\"));\r\n }\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(DebitoDAO.class.getName()).log(Level.SEVERE, null, e);\r\n\r\n }\r\n\r\n String sql = \"insert into debitos (debdata,concodigo,debvalor,debhistorico,consaldo,creditoid) values (?,?,?,?,?,?)\";\r\n PreparedStatement ps = null;\r\n try {\r\n ps = connection.prepareStatement(sql);\r\n ps.setDate(1, new java.sql.Date(debitos.getDebData().getTime()));\r\n ps.setInt(2, debitos.getConCodigo());\r\n ps.setDouble(3, debitos.getDebValor() * -1);\r\n ps.setString(4, debitos.getDebHistorico());\r\n ps.setDouble(5, contaComSaldo.getConSaldo());\r\n ps.setInt(6, creditos.getCreCodigo());\r\n\r\n ps.execute();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(CreditoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n connection.close();\r\n ps.close();\r\n }\r\n }",
"private void setCardPayment(boolean res) {\n txtCardAmount.setEnabled(res);\n cmboCardBank.setEnabled(res);\n txtCardNo.setEnabled(res);\n if (res) {\n\n txtPayAmount.setCValue(txtPayAmount.getCValue() + txtCardAmount.getCValue());\n } else {\n txtPayAmount.setCValue(txtPayAmount.getCValue() - txtCardAmount.getCValue());\n }\n txtNewBalance.setCValue(txtInvoiceValue.getCValue() - txtPayAmount.getCValue());\n }",
"public void setDatossolicitudBfclasificacionConvenio(int value) {\n this.datossolicitudBfclasificacionConvenio = value;\n }",
"public void setLBR_TaxAmtCredit (BigDecimal LBR_TaxAmtCredit);",
"public void setCompras(com.spirit.sri.reoc.Compras compras)\r\n {\r\n this._compras = compras;\r\n }",
"public void teclas() {\r\n\t\tif (app.key == '1') {\r\n\t\t\ttipoCom = 1;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso1.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '2') {\r\n\t\t\ttipoCom = 2;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso2.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '3') {\r\n\t\t\ttipoCom = 3;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso3.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '4') {\r\n\t\t\ttipoCom = 4;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso4.addAll(persona);\r\n\t\t}\r\n\t}",
"public void setLBR_TaxRateCredit (BigDecimal LBR_TaxRateCredit);",
"public void setDoCategoryOptionCombos(org.dhis2.ns.schema.dxf2.DoCategoryOptionCombosDocument.DoCategoryOptionCombos.Enum doCategoryOptionCombos)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DOCATEGORYOPTIONCOMBOS$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DOCATEGORYOPTIONCOMBOS$0);\n }\n target.setEnumValue(doCategoryOptionCombos);\n }\n }",
"public void setBitcoins(double Bitcoins){\r\n bitcoins = Bitcoins;\r\n }",
"public void setDmaValue(int value);",
"public void setCreditMemoService(CreditMemoService creditMemoService) {\r\n this.creditMemoService = creditMemoService;\r\n }",
"public void limpiarCamposActividadesYRecord() {\r\n try {\r\n opcionTableroControlSeguim = \"\";\r\n estadoPanelMisActivid = false;\r\n estadoPanelMisRecordat = false;\r\n estadoPanelActividAsign = false;\r\n estadoPanelRecordatAsign = false;\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".limpiarCamposCita()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }",
"public void setListaCreditoTributarioSRI(List<CreditoTributarioSRI> listaCreditoTributarioSRI)\r\n/* 136: */ {\r\n/* 137:149 */ this.listaCreditoTributarioSRI = listaCreditoTributarioSRI;\r\n/* 138: */ }",
"public CreditCard(int pin, String number, String holder, Date expiryDate, int cvc){\r\n this.pin = pin;\r\n this.number = number;\r\n this.holder = holder;\r\n this.expiryDate = expiryDate;\r\n this.cvc = cvc;\r\n}",
"public void setC_Payment_ID (int C_Payment_ID);",
"public void setTcCosto(double value) {\r\n this.tcCosto = value;\r\n }",
"public Builder dtcs(Integer dtcs) {\n obj.setDtcs(dtcs);\n return this;\n }",
"@SuppressWarnings(\"static-access\")\n\tvoid setPersonajes_creados (int personajes_creados)\n\t{\n\t\tthis.personajes_creados = personajes_creados;\n\t}",
"public void setButacas(int butacas) {\r\n\t\tthis.butacas = butacas;\r\n\t}",
"public void setDatossolicitudBfcodigoEjecutivo(int value) {\n this.datossolicitudBfcodigoEjecutivo = value;\n }",
"public void setNumeroCuotas(Long numeroCuotas) {\n this.numeroCuotas = numeroCuotas;\n }",
"public void setPaymentMethods(final List<BrainTreePaymentInfo> value)\n\t{\n\t\tsetPaymentMethods( getSession().getSessionContext(), value );\n\t}",
"public Long getCreditNum() {\n return creditNum;\n }",
"public void setIdpostecontrole(BigDecimal value) {\n setAttributeInternal(IDPOSTECONTROLE, value);\n }",
"public void setCuenta(String cuenta) {\r\n this.cuenta = cuenta;\r\n }",
"public void setNumeroDeAlunos(int valor)\n\t{\n\t\tnumAlunos = valor;\n\t\tSystem.out.printf(\"Modificado o Número de alunos %s\\n\", inicioCurso.getHoraAtual());\n\t}",
"public void setCreditCard(String creditCard)\n\t{\n\t\tm_creditCard = creditCard;\n\t}",
"public void setClientData(COPSPdpOSReqStateMan man, List<COPSClientSI> reqSIs);",
"public void setlado(int lado) {\r\n this.lado = lado;\r\n }",
"public void setTcCliente(double value) {\r\n this.tcCliente = value;\r\n }",
"public void setCom(int com) {\n\t\tthis.com = com;\n\t}",
"public void setCustomerCompany(\n @Nonnull\n final List<CustomerCompany> value) {\n if (toCustomerCompany == null) {\n toCustomerCompany = Lists.newArrayList();\n }\n toCustomerCompany.clear();\n toCustomerCompany.addAll(value);\n }"
] | [
"0.5895297",
"0.57304764",
"0.56446993",
"0.5578818",
"0.5533515",
"0.5505267",
"0.54275423",
"0.53929585",
"0.53222007",
"0.5246932",
"0.52376753",
"0.5235091",
"0.5184466",
"0.516479",
"0.5153612",
"0.51534534",
"0.5142137",
"0.5141337",
"0.5134208",
"0.5131431",
"0.5128205",
"0.5118595",
"0.5108376",
"0.5088589",
"0.50767004",
"0.5071831",
"0.5045887",
"0.5027215",
"0.50062406",
"0.49849778",
"0.49721566",
"0.49527988",
"0.493371",
"0.49236885",
"0.49162596",
"0.4913718",
"0.48978674",
"0.48829204",
"0.48806813",
"0.48784536",
"0.48734063",
"0.48653334",
"0.48605415",
"0.48556057",
"0.4847363",
"0.48402333",
"0.4833871",
"0.4832183",
"0.48219597",
"0.48135704",
"0.47788873",
"0.47772634",
"0.4775083",
"0.47640806",
"0.474957",
"0.47494107",
"0.4748918",
"0.47418335",
"0.47383797",
"0.47249517",
"0.47166502",
"0.47157875",
"0.47095403",
"0.47094405",
"0.47075516",
"0.47048882",
"0.46986982",
"0.46965727",
"0.468943",
"0.46808264",
"0.4678933",
"0.46597895",
"0.46462238",
"0.4645925",
"0.46455863",
"0.46450013",
"0.463187",
"0.46297416",
"0.46273303",
"0.46225432",
"0.46151468",
"0.46067014",
"0.46033874",
"0.46021912",
"0.45997256",
"0.45980358",
"0.4597553",
"0.45863968",
"0.4585493",
"0.458174",
"0.45816234",
"0.4577755",
"0.45754322",
"0.45672405",
"0.4562244",
"0.45581535",
"0.455496",
"0.45535904",
"0.45523956",
"0.4550673"
] | 0.7203623 | 0 |
Gets the descripcion value for this DtCurso. | public java.lang.String getDescripcion() {
return descripcion;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDescripcion() {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getDescripcion() - start\");\n\t\t}\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getDescripcion() - end\");\n\t\t}\n\t\treturn descripcion;\n\t}",
"public String getDescripcion() {\r\n\t\treturn descripcion;\r\n\t}",
"public String getDescripcion() {\n\t\treturn descripcion;\n\t}",
"public String getDescripcion() {\n\t\treturn descripcion;\n\t}",
"public String getDescripcion() {\n return descripcion;\n }",
"public String getDescripcion() \n\t{\n\t\treturn descripcion;\n\t}",
"public String getDescripcion() {\r\n return descripcion;\r\n }",
"public String getDescripcion() {\r\n return descripcion;\r\n }",
"public String getDescripcion() {\n return descripcion;\n }",
"public String getDescrizione() {\r\n\t\treturn descrizione;\r\n\t}",
"public String getDescripcion() {\r\n return Descripcion;\r\n }",
"public String getDescrizione() {\n\t\treturn descrizione;\n\t}",
"public String getDescripcion() {\n return this.descripcion.get();\n }",
"@Override\n\tpublic String getDescripcion() {\n\t\treturn descripcion;\n\t}",
"public java.lang.String getDescrizione() {\r\n return descrizione;\r\n }",
"public String getDescription() {\n return (desc);\n }",
"public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}",
"public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}",
"public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}",
"public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}",
"public String getDescription(){\n return getString(KEY_DESCRIPTION);\n }",
"public String getDescricao() {\n\t\treturn this.descricao;\n\t}",
"public String getDescricao() {\n\t\treturn descricao;\n\t}",
"public String getDescricao() {\n\t\treturn descricao;\n\t}",
"public String getDescripcion()\n {\n return descripcion;\n }",
"public String getDescription() {\n return desc;\n }",
"public String getDescription() {\n if (description == null) {\n description = Description.getDescription(this);\n }\n return description;\n }",
"public String getDescription() {\n return getString(KEY_DESCRIPTION);\n }",
"public String getDescription() {\n return desc;\n }",
"public String getcDescription() {\n return cDescription;\n }",
"@Override\r\n public String getDescripcion() {\r\n return this.descripcion;\r\n }",
"public String getDescricao() {\n\t\treturn null;\n\t}",
"public String getDescription() {\n return sdesc;\n }",
"public String getDesc() {\r\n\t\treturn desc;\r\n\t}",
"public String getDesc() {\r\n\t\treturn desc;\r\n\t}",
"public String getDescription() {\n return getProperty(Property.DESCRIPTION);\n }",
"public String getDescription() {\n return getGenericFieldValue(\"Description\");\n }",
"public String obtenirDesription() {\n String description = new String(\"\");\n switch (typePlancher) {\n case CERAMIQUE:\n description = CERAMIQUE_DESC;\n break;\n case TUILESDEVINYLE:\n description = TUILESDEVINYLE_DESC;\n break;\n case LINOLEUM:\n description = LINOLEUM_DESC;\n break;\n case BOISFRANC:\n description = BOISFRANC_DESC;\n break;\n case FLOTTANT:\n description = FLOTTANT_DESC;\n }\n return description;\n }",
"public java.lang.String getDescricao() {\r\n return descricao;\r\n }",
"public String getDesc() {\n\t return desc;\n\t }",
"public String getDescription() {\n return (String)getAttributeInternal(DESCRIPTION);\n }",
"public String getDescription() {\n return (String)getAttributeInternal(DESCRIPTION);\n }",
"@Nullable\n public String getDescription() {\n return this.description;\n }",
"public java.lang.String getDesc() {\r\n return desc;\r\n }",
"public String getDesc() {\n return desc;\n }",
"public String getDesc() {\n return desc;\n }",
"public String getDesc() {\n return desc;\n }",
"public String getDesc() {\n return desc;\n }",
"public String getDesc() {\n return desc;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n\n return this.description;\n }",
"public java.lang.String getDescription() {\n return this._description;\n }",
"public String getDescripcion() { return (this.descripcion == null) ? \"\" : this.descripcion; }",
"public java.lang.String getDescription() {\r\n return this._description;\r\n }",
"public java.lang.String getDescription() {\r\n return this._description;\r\n }",
"public String getDesc(){\r\n\t\treturn this.desc;\r\n\t}",
"public String getDescription() {\n\t\treturn this.description;\n\t}",
"public java.lang.String getDescripcion() {\n\t\treturn dataCacheEntry.getDescripcion();\n\t}",
"public String getDescription() {\r\n\t\treturn this.description;\r\n\t}",
"public String getDescription() {\r\n\t\treturn this.description;\r\n\t}",
"public String getDescription() {\r\n\t\treturn this.description;\r\n\t}",
"public String getDescription() {\r\n\t\treturn this.description;\r\n\t}",
"public String getDescription() {\r\n\t\treturn this.description;\r\n\t}",
"public java.lang.Object getDescription() {\n return description;\n }",
"public String getDescription() {\n return this.Description;\n }",
"public String getDescription()\n {\n return this.mDescription;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription()\r\n {\r\n\treturn desc;\r\n }",
"public String getDescription() {\r\n return this.description;\r\n }",
"public String getDescription() {\r\n return this.description;\r\n }",
"public String getDescription() { \n\t\treturn getDescriptionElement().getValue();\n\t}",
"public String getDescription() { \n\t\treturn getDescriptionElement().getValue();\n\t}",
"public java.lang.String getDescription()\n {\n return this._description;\n }",
"public CharSequence getDescription() {\n return description;\n }",
"public java.lang.String getDescripcionCaracterizacion() {\n return descripcionCaracterizacion;\n }",
"@Override\n\tpublic java.lang.String getDescription() {\n\t\treturn _lineaGastoCategoria.getDescription();\n\t}",
"public String getDescription() {\n return _description;\n }",
"public String getDescription() {\n return _description;\n }",
"public String getRecapitoDesc() {\n\t\treturn this.recapitoDesc;\n\t}",
"public String getDescricao() {\n return descricao;\n }",
"public String getDescricao() {\n return descricao;\n }",
"public String getDescription(){\r\n \tString retVal = this.description;\r\n return retVal;\r\n }",
"public String description() {\n return this.descr;\n }"
] | [
"0.7781433",
"0.7646526",
"0.7633754",
"0.7633754",
"0.759475",
"0.75714064",
"0.7509301",
"0.7509301",
"0.74964195",
"0.7477469",
"0.7465438",
"0.7453567",
"0.744887",
"0.7445155",
"0.7384335",
"0.7342788",
"0.73249763",
"0.73249763",
"0.73249763",
"0.73249763",
"0.729407",
"0.728204",
"0.7279775",
"0.7279775",
"0.7258469",
"0.7250803",
"0.72359216",
"0.7234803",
"0.7226421",
"0.72115016",
"0.72032267",
"0.7188622",
"0.7177684",
"0.71670794",
"0.71670794",
"0.7164406",
"0.7149358",
"0.7142755",
"0.71280545",
"0.7126139",
"0.7125777",
"0.7125777",
"0.7125179",
"0.711819",
"0.7117943",
"0.7117943",
"0.7117943",
"0.7117943",
"0.7117943",
"0.7117905",
"0.7117872",
"0.7115896",
"0.71156675",
"0.7114461",
"0.7114461",
"0.7111909",
"0.71055746",
"0.71029586",
"0.7102374",
"0.7102374",
"0.7102374",
"0.7102374",
"0.7102374",
"0.7097757",
"0.7097156",
"0.70944774",
"0.7081758",
"0.7081758",
"0.7081758",
"0.7081758",
"0.7081758",
"0.7081758",
"0.7081758",
"0.7081758",
"0.7081758",
"0.7081758",
"0.7081758",
"0.7081758",
"0.7081758",
"0.7081758",
"0.7081758",
"0.7081758",
"0.7081758",
"0.7081758",
"0.7071404",
"0.7066881",
"0.7066881",
"0.7061726",
"0.7061726",
"0.70610386",
"0.7055269",
"0.7054717",
"0.70487463",
"0.7046812",
"0.7046812",
"0.70404583",
"0.70394975",
"0.70394975",
"0.70371866",
"0.7035627"
] | 0.7577608 | 5 |
Sets the descripcion value for this DtCurso. | public void setDescripcion(java.lang.String descripcion) {
this.descripcion = descripcion;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDescripcion(String descripcion) {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"setDescripcion(String) - start\");\n\t\t}\n\n\t\tthis.descripcion = descripcion;\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"setDescripcion(String) - end\");\n\t\t}\n\t}",
"public void setDescripcion(String descripcion) {\r\n this.descripcion = descripcion;\r\n }",
"public void setDescripcion(String descripcion) {\r\n this.descripcion = descripcion;\r\n }",
"public void setDescripcion(String descripcion) {\n this.descripcion = descripcion;\n }",
"public void setDescripcion(String descripcion){\r\n this.descripcion = descripcion;\r\n }",
"public void setDescripcion(String descripcion)\r\n/* 168: */ {\r\n/* 169:309 */ this.descripcion = descripcion;\r\n/* 170: */ }",
"public void setCategoriaDescripcion(String descripcion);",
"public void setDescripcion(String descripcion) {\n this.descripcion.set(descripcion);\n }",
"public void setDescrizione (String descrizione) {\r\n\t\tthis.descrizione=descrizione;\r\n\t}",
"@Override\n\tpublic void setDescripcion(String descripcion) {\n\t\tmodel.setDescripcion(descripcion);\n\t}",
"public void setDescripcion(String s) { this.descripcion = s; }",
"public void setDescrizione(String descrizione) {\r\n\t\tthis.descrizione = descrizione;\r\n\t}",
"public void setDescrizione(String descrizione) {\n\t\tthis.descrizione = descrizione;\n\t}",
"public void setDescripcion(String p) { this.descripcion = p; }",
"public void setDescrizione(java.lang.String descrizione) {\r\n this.descrizione = descrizione;\r\n }",
"public void setDescripcion(@NotNull String descripcion) {\n this.descripcion = descripcion;\n }",
"public void setDescripcion(String descripcion) {\n this.descripcion = descripcion;\n \n switch (descripcion) {\n case \"REFORMA\": {\n this.id = 1;\n break;\n }\n case \"CASA\": {\n this.id = 2;\n break;\n }\n case \"EDIFICIO\": {\n this.id = 3;\n break;\n }\n case \"VIAL\": {\n this.id = 4;\n break;\n }\n default : this.id = 0;\n }\n }",
"public void setDescription(String desc) {\n sdesc = desc;\n }",
"public final void setDescription(final String desc) {\n mDescription = desc;\n }",
"public void setDescription(String desc) {\n this.desc = desc;\n }",
"public void setDescription(String desc) {\n description = desc;\n }",
"@Override\n\tpublic void setDescription(java.lang.String description) {\n\t\t_lineaGastoCategoria.setDescription(description);\n\t}",
"public void setDescription(String value) {\n this.description = value;\n }",
"public void setDescription(String value) {\r\n this.description = value;\r\n }",
"public void setDescription(String desc)\r\n {\r\n\tthis.desc = desc;\r\n }",
"public void setDescricao(java.lang.String descricao) {\r\n this.descricao = descricao;\r\n }",
"public void setDescripcionCaracterizacion(java.lang.String descripcionCaracterizacion) {\n this.descripcionCaracterizacion = descripcionCaracterizacion;\n }",
"void setDesc(java.lang.String desc);",
"public void setDescription(java.lang.String value) {\n this.description = value;\n }",
"public void setDescription(String des) {\r\n\t\tthis.description = des;\r\n\t}",
"public TipoOperacaoParcialUpdate descricao(String descricao) {\n this.descricao = descricao;\n return this;\n }",
"public void setDescription(String des){\n description = des;\n }",
"public void setPerfilDescripcion(String descripcion);",
"public void setDescripcion(java.lang.String newDescripcion) {\n\t\tif (instanceExtension.needValuesOnMarkDirty())\n\t\t\tinstanceExtension.markDirty(3,getDescripcion(),newDescripcion);\n\t\telse\n\t\t\tinstanceExtension.markDirty(3);\n\t\tdataCacheEntry.setDescripcion(newDescripcion);\n\t}",
"public void setDescription(String desc);",
"public void setDescription(String value) {\n setAttributeInternal(DESCRIPTION, value);\n }",
"public void setDescription(String value) {\n setAttributeInternal(DESCRIPTION, value);\n }",
"public void setDescription(String value) {\n setAttributeInternal(DESCRIPTION, value);\n }",
"public void setDescription(CharSequence value) {\n this.description = value;\n }",
"public String getDescripcion() {\r\n\t\treturn descripcion;\r\n\t}",
"public Builder setDescription(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n description_ = value;\n onChanged();\n return this;\n }",
"public String getDescripcion() {\n return descripcion;\n }",
"public Builder setDescriptionBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n description_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }",
"public String getDescripcion() {\n\t\treturn descripcion;\n\t}",
"public String getDescripcion() {\n\t\treturn descripcion;\n\t}",
"public void setDescription(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(DESCRIPTION_PROP.get(), value);\n }",
"public Builder setDescription(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }",
"public void setDescription(String desc) {\n description = desc.trim();\n if (description.equals(\"\")) {\n description = \"NODESC\";\n }\n }",
"public Builder setDescription(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000080;\n onChanged();\n return this;\n }",
"public Builder setDescription(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n description_ = value;\n onChanged();\n return this;\n }",
"public void setDescription(String Description) {\n this.Description = Description;\n }",
"public Builder setDescription(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }",
"public Builder setDescription(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }",
"public void setDescription(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(DESCRIPTION_PROP.get(), value);\n }",
"public void setDescription(final String description);",
"public void setDescription(String tmp) {\n this.description = tmp;\n }",
"public void setDescription(String tmp) {\n this.description = tmp;\n }",
"public void setDescricao(String descricao) {\n this.validador.validaNulleVazio(descricao, \"Descricao nao pode ser nula ou vazia.\");\n if (this.ativada == false) {\n this.validador.lancaExcecao(\"Pesquisa desativada.\");\n }\n this.descricao = descricao;\n }",
"public void setDescription(String desc) {\n // space check provided by:\n // https://stackoverflow.com/questions/3247067/how-do-i-check-that-a-java-string-is-not-all-whitespaces\n if (desc == null || desc.trim().length() == 0) {\n description = NO_DESCRIPTION;\n } else {\n description = desc;\n }\n }",
"public void setDesc(String desc) {\n\t this.desc = desc;\n\t }",
"public Builder setDescription(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.description = newDesc;\n }",
"public void setDesc(String desc) {\n this.desc = desc;\n }",
"public void setDesc(String desc) {\n this.desc = desc;\n }",
"public Builder setDescription(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }",
"public String getDescripcion() {\r\n return descripcion;\r\n }",
"public String getDescripcion() {\r\n return descripcion;\r\n }",
"public String getDescripcion() \n\t{\n\t\treturn descripcion;\n\t}",
"public void setDesc(String desc) {\r\n\t\tthis.desc = desc;\r\n\t}",
"public void setDesc(String desc) {\r\n\t\tthis.desc = desc;\r\n\t}",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String descr);",
"protected void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(final String description) {\n this.description = description;\n }",
"public String getDescripcion() {\n return descripcion;\n }",
"public void setDescription(String description){\n this.description = description;\n }",
"public void setDescription(String description) {\n mDescription = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public Builder setDescriptionBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n description_ = value;\n onChanged();\n return this;\n }",
"public void setDescription(String paramDesc) {\n\tstrDesc = paramDesc;\n }",
"void setDescription(final String description);",
"public void setDescription(String description)\n {\n this.description = description;\n }",
"void setDescription(java.lang.String description);",
"public void setRecapitoDesc(String recapitoDesc) {\n\t\tthis.recapitoDesc = recapitoDesc;\n\t}",
"public CompraResponse descricaoProduto(String descricaoProduto) {\n this.descricaoProduto = descricaoProduto;\n return this;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }"
] | [
"0.74282104",
"0.7308538",
"0.7308538",
"0.7267877",
"0.72648716",
"0.7256205",
"0.72393876",
"0.72043097",
"0.7094372",
"0.70261",
"0.6969183",
"0.694283",
"0.69263303",
"0.69036686",
"0.6885983",
"0.6867586",
"0.6840824",
"0.681783",
"0.6769233",
"0.67528605",
"0.6749658",
"0.67154515",
"0.67053235",
"0.66997075",
"0.66668844",
"0.66399884",
"0.6625489",
"0.66043466",
"0.6588969",
"0.65358824",
"0.65300363",
"0.6525118",
"0.6516177",
"0.6495869",
"0.6481267",
"0.6470392",
"0.6470392",
"0.6470392",
"0.6439867",
"0.6429634",
"0.6427252",
"0.64260155",
"0.6422114",
"0.6420633",
"0.6420633",
"0.6417976",
"0.6413881",
"0.6410637",
"0.64026886",
"0.6398626",
"0.639831",
"0.6391826",
"0.6391826",
"0.6390884",
"0.63857526",
"0.6374847",
"0.6374847",
"0.63727385",
"0.6371201",
"0.6369956",
"0.63616335",
"0.63612187",
"0.635463",
"0.63485056",
"0.63485056",
"0.6347395",
"0.6347208",
"0.6347208",
"0.6338222",
"0.63368815",
"0.63368815",
"0.63314694",
"0.63314694",
"0.63314694",
"0.63314694",
"0.63314694",
"0.6329054",
"0.6329054",
"0.6329054",
"0.6329054",
"0.6329054",
"0.63258326",
"0.63246953",
"0.63170666",
"0.6315316",
"0.63142574",
"0.6310427",
"0.6305338",
"0.6304986",
"0.6299219",
"0.629908",
"0.62979627",
"0.6297302",
"0.62971354",
"0.6292873",
"0.62901175",
"0.62901175",
"0.62901175",
"0.62901175",
"0.62901175"
] | 0.7252789 | 6 |
Gets the duracion value for this DtCurso. | public java.lang.Integer getDuracion() {
return duracion;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getDuracao() {\n\t\treturn duracao;\n\t}",
"public int getValoracionDelCurso() {\n return valoracionDelCurso;\n }",
"public Timestamp getDeCriacao() {\n return dataDeCriacao;\n }",
"public void setDuracion(java.lang.Integer duracion) {\n this.duracion = duracion;\n }",
"@Override\n\tpublic int getDouleur() {\n\t\treturn intDouleur;\n\t}",
"public String getFinalCurso()\n\t{\n\t\treturn finalCurso.getDate();\n\t}",
"public int getTempoSec() {\n return tempoSec;\n }",
"public long getDuration() {\n return mDuration;\n }",
"public Integer getDuration() {\n return duration;\n }",
"public int getDebut() {\n\t\treturn this.debut;\n\t}",
"public int getDuration() {\n\t\treturn this.Duration;\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getDuration() {\n return (java.math.BigDecimal)__getInternalInterface().getFieldValue(DURATION_PROP.get());\n }",
"public Integer getCalendarDd() {\r\n return calendarDd;\r\n }",
"public DeltaSeconds getDuration() { \n return duration ;\n }",
"public Integer getCusTime() {\r\n return cusTime;\r\n }",
"public Date getDelTime() {\n return delTime;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getDuration() {\n return (java.math.BigDecimal)__getInternalInterface().getFieldValue(DURATION_PROP.get());\n }",
"@Nullable\n public Long getDuration() {\n return mDuration;\n }",
"public double getDuration() {\n\t\treturn duration;\n\t}",
"public Duration getDuration()\r\n {\r\n return (m_duration);\r\n }",
"public int getDato() {\r\n return dato;\r\n }",
"public long getDuration() {\n return duration;\n }",
"public org.apache.axis2.databinding.types.Duration getDuration() {\n return localDuration;\n }",
"public String getDia() {\n\t\treturn this.dia;\n\t}",
"public Long getDuration()\r\n {\r\n return duration;\r\n }",
"public Date getDeldte() {\r\n return deldte;\r\n }",
"public String getDuration() {\n return duration;\n }",
"public int getDuration() {\n return this.duration;\n }",
"public int getDuration() {\n\t\treturn duration;\n\t}",
"public long getDurasi(Waktu waktu) {\n waktu.setJamKeluar(Instant.now());\n long dur;\n dur = Duration.between(waktu.getJamMasuk(), waktu.getJamKeluar()).getSeconds();\n return dur;\n }",
"Duration getDuration();",
"public long getDuration() {\n return duration;\n }",
"public int getDuration() {\n return duration;\n }",
"public int getDuration() {\n return duration;\n }",
"public int getDuration() {\n return duration;\n }",
"public String getDuration() {\n return this.duration;\n }",
"public int getDtVenda() {\n return dtVenda;\n }",
"public String getDurationUnit() {\n\t\treturn (String) get_Value(\"DurationUnit\");\n\t}",
"public int getDuration() {\n return duration_;\n }",
"public float getDuration() {\n\t\treturn duration;\n\t}",
"public int getDuration() {\n return duration_;\n }",
"public float getDuration()\n\t{\n\t\treturn duration;\n\t}",
"public IDado getDado() {\n\t\ttry {\r\n\t\t\treturn juego.getDado();\r\n\t\t} catch (RemoteException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public long getDuration()\n {\n return duration;\n }",
"public java.util.Calendar getDT() {\n return DT;\n }",
"public int getmDuration() {\n return mDuration;\n }",
"public DurationBean getEventDuration() {\n// return getEventDates().getDuration();\n DurationBean db = getEventDates().getDuration();\n if (debug()) {\n debug(\"Event duration=\" + db);\n }\n\n return db;\n }",
"public String getCod_catedratico() {\n return cod_catedratico;\n }",
"java.lang.String getDuration();",
"public Integer periodSeconds() {\n return this.periodSeconds;\n }",
"public java.util.Calendar getDArrTime() {\n return dArrTime;\n }",
"public java.lang.String getPeriodicidad() {\n return periodicidad;\n }",
"public T getDato() {\n\t\treturn dato;\n\t}",
"public Integer getIdCurso() {\r\n return idCurso;\r\n }",
"public int getDtRegistro() {\n return dtRegistro;\n }",
"public Integer getDiasAsueto() {\n return diasAsueto;\r\n }",
"public String getCDT() {\n\t\treturn CDT;\n\t}",
"public double getDuration () {\n return duration;\n }",
"public final int getDD()\n {\n return dd;\n }",
"public Date getDataDeCadastro() {\n\t\treturn this.dataDeCadastro;\n\t}",
"public T getDato(int posicion) {\n return this.listaDeDatos.get(posicion);\n }",
"Posn getDuration();",
"public int getSDT() {\n return sdt;\n }",
"public int tiempoTotal() {\r\n\r\n\t\tint duracionTotal = 0;\r\n\t\tfor (int i = 0; i < misCanciones.size(); i++) {\r\n\t\t\tduracionTotal = duracionTotal + misCanciones.get(i).getDuracionS();\r\n\t\t}\r\n\t\t\r\n\t\treturn duracionTotal;\r\n\r\n\t}",
"public long getCiudadDestino() {\r\n\t\treturn ciudadDestino;\r\n\t}",
"public int getDificultat() {\r\n\t\treturn dificultat;\r\n\t}",
"public Integer getDurationEndDay() {\n return durationEndDay;\n }",
"public int getD() {\n return d_;\n }",
"public java.lang.Double getValorCadastro() {\n return valorCadastro;\n }",
"public int getD() {\n\t\treturn d;\n\t}",
"public Integer getCantidad() {\n return this.cantidad.get();\n }",
"public int getD() {\n return d_;\n }",
"public Double getCalificacion() {\n return calificacion;\n }",
"public Date getDisintegratortime() {\n return disintegratortime;\n }",
"public String getD() {\n return d;\n }",
"public Optional<BigInteger> getDuration() {\n return duration;\n }",
"public double getValorComercial() {\r\n return valorComercial;\r\n }",
"public double getDuration() {\n if (null == firstTime) {\n return 0.0;\n }\n return lastTime.timeDiff_ns(firstTime);\n }",
"public Rational getDuration ()\r\n {\r\n if (this.isWholeDuration()) {\r\n return null;\r\n } else {\r\n Rational raw = getRawDuration();\r\n\r\n if (tupletFactor == null) {\r\n return raw;\r\n } else {\r\n return raw.times(tupletFactor);\r\n }\r\n }\r\n }",
"public byte obtenerDano(){\n\treturn dano;\n }",
"public String getUnitcd() {\r\n return unitcd;\r\n }",
"public int getDiasTrabajados() {\n return diasTrabajados;\n }",
"public String getDc()\n {\n return dc;\n }",
"public Date getCadastro() {\n\n\t\treturn this.cadastro;\n\t}",
"public java.lang.String getDsCidade() {\n return dsCidade;\n }",
"public long getId_donacion() {\n\t\treturn id_donacion;\n\t}",
"public java.lang.Double getValorComissao() {\n return valorComissao;\n }",
"public Comentarios getCom() {\r\n\t\treturn com;\r\n\t}",
"public Integer getDurationStartDay() {\n return durationStartDay;\n }",
"public String getContCD() {\n return contCD;\n }",
"public int getSaldo() {\r\n return this.contaCorrente.getSaldo();\r\n }",
"public TDAPrioridad getDato(int pos) {\r\n return datos[pos];\r\n }",
"public String getTimeOut() {\n return prop.getProperty(TIMEOUT_KEY);\n }",
"public double getDy() {\n return dy;\n }",
"org.apache.xmlbeans.GDuration getDuration();",
"public int getMoral() {\n\t\treturn moral;\n\t}",
"public java.lang.Integer getCantidad() {\r\n return cantidad;\r\n }",
"public int getDatossolicitudBftipoDeConvenio() {\n return datossolicitudBftipoDeConvenio;\n }",
"public int getPontosTimeMandante() {\r\n return pontosTimeMandante;\r\n }",
"public String getDydj() {\n return dydj;\n }"
] | [
"0.725293",
"0.6600095",
"0.6060993",
"0.58545244",
"0.58502024",
"0.58450234",
"0.56808233",
"0.566295",
"0.56608176",
"0.56575847",
"0.56443816",
"0.5636908",
"0.5631278",
"0.5627387",
"0.56254816",
"0.5623584",
"0.5595996",
"0.55904347",
"0.5576062",
"0.5576021",
"0.5542213",
"0.55316514",
"0.55197924",
"0.5515667",
"0.5506099",
"0.5496536",
"0.54889244",
"0.54828006",
"0.54817224",
"0.5481094",
"0.5465735",
"0.546235",
"0.5457553",
"0.5457553",
"0.5457553",
"0.54513246",
"0.5448841",
"0.54484355",
"0.54438514",
"0.5436355",
"0.5424694",
"0.5408319",
"0.5405676",
"0.5398355",
"0.53934646",
"0.5388942",
"0.5374667",
"0.5358498",
"0.53511333",
"0.534969",
"0.5334163",
"0.53312844",
"0.5329546",
"0.53077585",
"0.5304783",
"0.53030723",
"0.52934206",
"0.5284581",
"0.528435",
"0.5280122",
"0.5271962",
"0.5261053",
"0.5253921",
"0.52511257",
"0.5250513",
"0.5235183",
"0.523348",
"0.5218951",
"0.5217033",
"0.52107966",
"0.5208512",
"0.52067447",
"0.5194522",
"0.5192486",
"0.5187482",
"0.5185553",
"0.51808375",
"0.5179371",
"0.5177742",
"0.51762176",
"0.51695883",
"0.5167422",
"0.5167101",
"0.51662236",
"0.5165612",
"0.51636994",
"0.5162167",
"0.5156313",
"0.51522714",
"0.51427025",
"0.5141853",
"0.5135169",
"0.51314646",
"0.5103238",
"0.5101291",
"0.51007694",
"0.5095196",
"0.50941986",
"0.5088453",
"0.5084927"
] | 0.7689528 | 0 |
Sets the duracion value for this DtCurso. | public void setDuracion(java.lang.Integer duracion) {
this.duracion = duracion;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.Integer getDuracion() {\n return duracion;\n }",
"protected void setDuraction(int seconds) {\n duration = seconds * 1000L;\n }",
"public void setDeci(int c){\n this.deci = c;\n }",
"public void setValoracionDelCurso(int value) {\n this.valoracionDelCurso = value;\n }",
"public void setDebut(int d) {\n\t\tthis.debut = d;\n\t}",
"@Override\n\tpublic void setDurchmesser(int d) {\n\n\t}",
"public int getDuracao() {\n\t\treturn duracao;\n\t}",
"public void setDtRegistro(int dtRegistro) {\n this.dtRegistro = dtRegistro;\n }",
"public void setDataSituacao(DateTimeDB dataSituacao) {\n this.dataSituacao = dataSituacao;\n }",
"public void setDuration(DeltaSeconds d) {\n duration = d ;\n }",
"public Disco(String titulo, String autor, String formato, int duracion, String genero){\n\t\tsuper(autor, titulo, formato, duracion);\n\t\tthis.genero = genero;\n\t}",
"public void setDtVenda(int dtVenda) {\n this.dtVenda = dtVenda;\n }",
"public void setTempoSec(int tempoSec) {\n this.tempoSec = tempoSec;\n }",
"public void setClassDajie(int classseq) {\n LectureTime lectureTime = ClassUtil.getLectureTime(classseq);\n class_dajie.setText(String.format(\"%s (%s)\",lectureTime.getDajie(),lectureTime.getTime()));\n }",
"void setDuration(int duration);",
"public Movimiento(int idCuenta, String operacion, double cantidad, Date fecha) {\r\n\t\tsuper();\r\n\t\tthis.idCuenta = idCuenta;\r\n\t\tthis.operacion = operacion;\r\n\t\tthis.cantidad = cantidad;\r\n\t\tthis.fecha = fecha;\r\n\t}",
"public void setDato(int dato) {\r\n this.dato = dato;\r\n }",
"public void setDuration(int val){this.duration = val;}",
"void setDadosDoacao(String date, String hora, String cpfDoador, String nomeDoador, String fator) {\n this.fator = fator;\n this.date = date;\n this.cpf = cpfDoador;\n this.nome = nomeDoador;\n this.hora = hora;\n }",
"void setDuration(org.apache.xmlbeans.GDuration duration);",
"public void setDtMotivoLlamadoAtencion(DataTable dtMotivoLlamadoAtencion)\r\n/* 139: */ {\r\n/* 140:144 */ this.dtMotivoLlamadoAtencion = dtMotivoLlamadoAtencion;\r\n/* 141: */ }",
"public void setDuration(int duration) {\n if (this.duration != duration) {\n this.duration = duration;\n }\n }",
"public void setTipoFecha(int tipoFecha)\n {\n tipFecha=tipoFecha;\n }",
"public void setDia(int dia){\n if(dia > 31 || dia < 0){\n System.out.println(\"Dia inválido\");\n }else {\n this.dia = dia;\n }\n }",
"public void setDado(Integer dado) {\r\n\t\tthis.dado = dado;\r\n\t}",
"public void setDuration(int duration)\r\n\t{\r\n\t\tif (duration < 0) { throw new IllegalArgumentException(\"duration muss groesser als 0 sein\"); }\r\n\t\tthis.duration = duration;\r\n\t}",
"public Movimiento(int idMovimiento,int idCuenta, String operacion, double cantidad, Date fecha) {\r\n\t\tsuper();\r\n\t\tthis.idMovimiento = idMovimiento;\r\n\t\tthis.idCuenta = idCuenta;\r\n\t\tthis.operacion = operacion;\r\n\t\tthis.cantidad = cantidad;\r\n\t\tthis.fecha = fecha;\r\n\t}",
"public void setCtaPadre(CuentaContable ctaPadre) {\n\t\tinstance.setCuentaPadre(ctaPadre);\n\t\tinstance.setTipoCuenta(ctaPadre.getTipoCuenta());\n\t}",
"public void setFecha(Fecha fecha) {\r\n this.fecha = fecha;\r\n }",
"public void setDuration( Long duration );",
"public void setCantidad(int cantidad) {\n\t\tif(cantidad>=0) {\n\t\t\tthis.cantidad = cantidad;\n\t\t}else {\n\t\t\tthis.cantidad = 0;\n\t\t}\n\t}",
"public void setHorarioDpto(String dpto, Time entrada, Time salida) {\r\n\t\tcontrolador.setHorarioDpto(dpto, entrada, salida);\r\n\t}",
"public void setDtCuentaContable(DataTable dtCuentaContable)\r\n/* 314: */ {\r\n/* 315:379 */ this.dtCuentaContable = dtCuentaContable;\r\n/* 316: */ }",
"void setTempo(int tempo);",
"public final void setDominio() {\r\n this.limite[0] = BigInteger.ZERO;\r\n this.limite[1] = this.primoGrande;\r\n }",
"public void setDuration(int duration) {\n mDuration = duration;\n }",
"public void setDuration(Duration duration)\r\n {\r\n m_duration = duration;\r\n }",
"@Override\n\tpublic void setSituacion(String situacion) {\n\t\tmodel.setSituacion(situacion);\n\t}",
"@Override\n public void setTempo(int tempo) {\n }",
"public void setComentario (String val) {\n this.comentario = val;\n }",
"@Override\n public void setFecha(java.util.Date fecha) {\n _partido.setFecha(fecha);\n }",
"public void setDuration(int duration){\n this.duration = duration;\n }",
"public void setDuration(Integer duration) {\n this.duration = duration;\n }",
"public void setGDM(GestorDeMovimientos mov){\n gdm.copiarTablero(mov);\n }",
"public void setDireccion(Direccion direccion) {\n this.direccion = direccion;\n }",
"public void setDuration(Number duration) {\n this.duration = duration;\n }",
"public void setFechaDesde(Date fechaDesde)\r\n/* 169: */ {\r\n/* 170:293 */ this.fechaDesde = fechaDesde;\r\n/* 171: */ }",
"public Tienda(String direccion,float dinero){\n\t\tthis.direccion = direccion;\n\t\tthis.dinero = dinero;\n\t\tnumeroTiendas++;\n\t\ttotalDinero+=dinero;\n\t}",
"public void setFechaHasta(Date fechaHasta)\r\n/* 179: */ {\r\n/* 180:312 */ this.fechaHasta = fechaHasta;\r\n/* 181: */ }",
"public void setFecha(java.util.Calendar fecha)\r\n {\r\n this.fecha = fecha;\r\n }",
"public Video(Integer id,String titulo, Double costo, Integer duracion) {\n\t\tsuper(id, titulo, costo);\n\t\tthis.duracion = duracion;\n\t}",
"public abstract void setFecha_termino(java.lang.String newFecha_termino);",
"public void setDuration(Integer duration) {\n this.duration = duration;\n }",
"public void setDelTime(Date delTime) {\n this.delTime = delTime;\n }",
"@Autowired\n\tpublic void setDuration(@Value(\"${repair.duration}\") Duration duration) {\n\t\tthis.duration = DurationConverter.oneOrMore(duration);\n\t}",
"public void setEstado(String estado){\n cabeza.setEstado(estado);\n \n }",
"void setDuration(java.lang.String duration);",
"public void setCreacion(Date creacion) {\r\n this.creacion = creacion;\r\n }",
"public void setIdCurso(Integer idCurso) {\r\n this.idCurso = idCurso;\r\n }",
"public void setComando(int comando) {\n\t\tthis.comando = comando;\n\t}",
"public void setDuration(int duration) {\n this.duration = duration;\n }",
"public void setDuration(int duration) {\n this.duration = duration;\n }",
"public void setTesto(){\n \n if(sec < 10){\n this.testo = min + \":0\" + sec + \":\" + deci;\n }\n else{\n this.testo = min + \":\" + sec + \":\" + deci;\n }\n \n }",
"public void setCantidad(Integer cantidad) {\n this.cantidad.set(cantidad);\n }",
"public int getValoracionDelCurso() {\n return valoracionDelCurso;\n }",
"public void setValorCalculo(ValoresCalculo valorCalculo)\r\n/* 93: */ {\r\n/* 94:111 */ this.valorCalculo = valorCalculo;\r\n/* 95: */ }",
"public Builder dtcs(Integer dtcs) {\n obj.setDtcs(dtcs);\n return this;\n }",
"public void setCantidad(int value) {\n this.cantidad = value;\n }",
"public void setSeccion(Integer seccion) {\r\n this.seccion = seccion;\r\n }",
"void setSalario(double salario);",
"public void setEstablecimiento(String establecimiento)\r\n/* 119: */ {\r\n/* 120:198 */ this.establecimiento = establecimiento;\r\n/* 121: */ }",
"public void setFinalCurso(String novoFim)\n\t{\n\t\t\n\t\tfinalCurso.setTimeOfString(novoFim);\n\t}",
"public void setCodTienda(Integer codTienda);",
"public void setDuration(int duration) {\r\n this.duration = duration;\r\n if (connections.get(lightIndex).getTrafficLight().getSignal()\r\n == TrafficSignal.YELLOW) {\r\n connections.get(lightIndex).getTrafficLight().setSignal\r\n (TrafficSignal.GREEN);\r\n }\r\n currentGreenTime = 0;\r\n currentYellowTime = 0;\r\n }",
"public void SetDuration(int duration)\n {\n TimerMax = duration;\n if (Timer > TimerMax)\n {\n Timer = TimerMax;\n }\n }",
"public Comida(String nombre, double valor){\n super(nombre, valor);\n this.calorias = 10;\n }",
"public void setDuration(java.math.BigDecimal value) {\n __getInternalInterface().setFieldValue(DURATION_PROP.get(), value);\n }",
"public void denda()\n {\n transaksi.setDenda(true);\n }",
"public void setObstaculo(int avenida, int calle);",
"public void setDataPreventivo(Date dataPreventivo) {\n this.dataPreventivo = dataPreventivo;\n }",
"public void setDireccion(String direccion) {\n this.direccion = direccion;\n }",
"public void setDireccion(String direccion) {\n this.direccion = direccion;\n }",
"public void setTransactionTimeout(Period period)\n {\n _transactionTimeout = period.getPeriod();\n }",
"public void setSeparacion(double separacion) {\r\n\t\tthis.separacion = separacion;\r\n\t}",
"public void setEstado(String estado) throws BaseDeDatosExcepcion, ConexionExcepcion {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"setEstado(String) - start\");\n\t\t}\n\n\t\ttry {\n\t\t\tthis.estado = estado;\n\t\t\tthis.nombreEstado = MediadorBD.obtenerNombreEstado(estado);\n\t\t\tMediadorBD.setEstadoCaja(estado);\n\t\t\tif(CR.me != null)\n\t\t\t\tCR.me.mostrarEstadoCaja(nombreEstado);\n\t\t} catch (BaseDeDatosExcepcion e) {\n\t\t\tlogger.error(\"setEstado(String)\", e);\n\n\t\t\tAuditoria.registrarAuditoria(\"Falla acceso a BD al actualizar estado de la caja\", 'E');\n\t\t} catch (ConexionExcepcion e) {\n\t\t\tlogger.error(\"setEstado(String)\", e);\n\n\t\t\tAuditoria.registrarAuditoria(\"Falla conexión a BD al actualizar estado de la caja\", 'E');\n\t\t}\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"setEstado(String) - end\");\n\t\t}\n\t}",
"public void setPeriodicidad(java.lang.String periodicidad) {\n this.periodicidad = periodicidad;\n }",
"public void setCantidad(java.lang.Integer cantidad) {\r\n this.cantidad = cantidad;\r\n }",
"public void setMoral(int moral) {\n\t\tthis.moral = moral;\n\t}",
"public void setTitulo(String titulo) {\n\t\tif (\"\".equalsIgnoreCase(titulo)){\r\n\t\t\tthis.titulo = TITULO_POR_DEFECTO;\r\n\t\t}else{\r\n\t\t\tthis.titulo = titulo;\r\n\t\t}\r\n\t}",
"public void setDireccion(String direccion) {\r\n this.direccion = direccion;\r\n }",
"public Trimestre(){\n id_trimestre=0;\n numero=0;\n debut_trimestre= new Date(2012,8,12);\n fin_trimestre=new Date(2013,1,13);\n id_anneeScolaire=0;\n }",
"public void setGioBatDau(Date gioBatDau);",
"public void setDuration(java.math.BigDecimal value) {\n __getInternalInterface().setFieldValue(DURATION_PROP.get(), value);\n }",
"public Tarea (String descripcion, String prioridad, int duracion){\n this.codigo = Tarea.usarCodigo();\n this.descripcion = descripcion;\n this.prioridad = prioridad;\n this.duracion = duracion;\n this.estado = 0;\n Tarea.setTiempoPendiente(Tarea.getTiempoPendiente() + (long)duracion);\n }",
"public void setDuration (int sec) {\n String hoursText = \"\", minutesText = \"\", synthez = \"\";\n\n if (sec < 60) {\n synthez = \"less than one minute\";\n synthez = String.format(TEMPLATE, synthez);\n setText(Html.fromHtml(synthez)+\".\", BufferType.SPANNABLE);\n return;\n }\n\n if (sec >= 3600) {\n hoursText += sec/3600+\" Hour\";\n if (sec/3600 > 1) {\n hoursText+=\"s\";\n }\n hoursText+=\" \";\n }\n if (((sec%3600)/ 60) > 0) {\n minutesText+= ((sec%3600)/ 60)+ \" minute\";\n if (((sec%3600)/ 60 ) > 1) {\n minutesText+=\"s\";\n }\n minutesText+=\" \";\n }\n synthez = hoursText+minutesText;\n synthez = String.format(TEMPLATE, synthez);\n setText(Html.fromHtml(synthez)+\".\", BufferType.SPANNABLE);\n }",
"public void setDelay(long d){delay = d;}",
"public void setTimeUnit(TimeUnit timeUnit);",
"public Delay(int sd){\n super(\"delay\");\n delay = sd;\n\n }",
"public void setDataCadastroCota(Date dataCadastroCota) {\n\t\tif(dataCadastroCota != null){\n\t\t\tthis.dataCadastroCota = new DateTimeDB(dataCadastroCota.getTime());\n\t\t} else{\n\t\t\tthis.dataCadastroCota = null;\t\n\t\t}\n\t}",
"public void setDate(int dt) {\n date = dt;\n }"
] | [
"0.5239334",
"0.51719093",
"0.5127497",
"0.5109291",
"0.50231713",
"0.49989405",
"0.49887446",
"0.49220943",
"0.4849324",
"0.48441765",
"0.4826622",
"0.4823262",
"0.47916397",
"0.47408578",
"0.47318727",
"0.4707885",
"0.4686641",
"0.46526626",
"0.4629975",
"0.4616422",
"0.46054423",
"0.45748806",
"0.45577934",
"0.45534003",
"0.4552218",
"0.45421237",
"0.45365846",
"0.45190313",
"0.45127052",
"0.45026904",
"0.4493912",
"0.44907463",
"0.44889465",
"0.44818395",
"0.44746453",
"0.44725403",
"0.44724858",
"0.44686583",
"0.4455457",
"0.44530082",
"0.44525582",
"0.44468257",
"0.44449127",
"0.44416204",
"0.4441345",
"0.44298956",
"0.44295967",
"0.44257185",
"0.4422219",
"0.44089496",
"0.44087416",
"0.44020957",
"0.4397644",
"0.43891504",
"0.43890205",
"0.43876544",
"0.43839955",
"0.43818536",
"0.43754604",
"0.4367381",
"0.4355577",
"0.4355577",
"0.4347321",
"0.43457907",
"0.4341134",
"0.43365183",
"0.43338025",
"0.43282932",
"0.43256718",
"0.43209517",
"0.43170026",
"0.42953035",
"0.42851847",
"0.4284593",
"0.42765138",
"0.42702445",
"0.42654452",
"0.425997",
"0.4242931",
"0.42403546",
"0.42394722",
"0.42394722",
"0.4237703",
"0.42324114",
"0.42313653",
"0.4231355",
"0.42276847",
"0.42231715",
"0.42190498",
"0.42159313",
"0.42141518",
"0.4210427",
"0.42102993",
"0.41932598",
"0.41871953",
"0.41863957",
"0.4186018",
"0.41859233",
"0.41850424",
"0.4183932"
] | 0.6855962 | 0 |
Gets the fechaReg value for this DtCurso. | public java.util.Calendar getFechaReg() {
return fechaReg;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getRegDate() {\r\n\t\treturn regDate;\r\n\t}",
"public Date getRegistDt() {\n return registDt;\n }",
"public java.util.Date getFechaRegistro() {\n\t\treturn this.fechaRegistro;\n\t}",
"public String getREGN_DATE() {\r\n return REGN_DATE;\r\n }",
"public Date getRegtime() {\n return regtime;\n }",
"public Date getRegtime() {\r\n\t\treturn regtime;\r\n\t}",
"public Date getFecRegistro() {\n return fecRegistro;\n }",
"public int getDtRegistro() {\n return dtRegistro;\n }",
"public void setFechaReg(java.util.Calendar fechaReg) {\n this.fechaReg = fechaReg;\n }",
"public java.sql.Timestamp getRegdate()\n {\n return regdate; \n }",
"public Fecha getFecha() {\n\t\treturn mFecha;\n\t}",
"@Override\r\n\tpublic Date getAttr_reg_dt() {\n\t\treturn super.getAttr_reg_dt();\r\n\t}",
"public String getRegtime() {\n return regtime;\n }",
"public java.time.LocalDateTime getFechaCreacion() {\n return fechaCreacion.get();\n }",
"public long getRegTime() {\n\t\t\treturn regTime;\n\t\t}",
"public String getFecha() {\n return Fecha;\n }",
"public Fecha getFecha() {\r\n return fecha;\r\n }",
"public java.lang.String getFechaDeRecibido() {\n return fechaDeRecibido;\n }",
"public Date getDataCreazione() {\n\t\treturn dataCreazione;\n\t}",
"public java.util.Calendar getFecha()\r\n {\r\n return this.fecha;\r\n }",
"public String getFechaInicio(){\n\n\t\treturn campoInicio.getText();\n\n\t}",
"public Date getRegisterDatime() {\r\n return registerDatime;\r\n }",
"public Date getRegisterDatime() {\r\n return registerDatime;\r\n }",
"public Fecha getFechaRetiro(){\n return this.fechaRetiro;\n }",
"public String getFecha() {\n Calendar calendario = new GregorianCalendar();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(calendario.getTime());\n }",
"public Date getFechaCreacion() {\r\n return fechaCreacion;\r\n }",
"public java.util.Calendar getFechaFacturado(){\n return localFechaFacturado;\n }",
"public Timestamp getFechaReserva() {\n return this.fechaReserva.get();\n }",
"public java.util.Calendar getDRGPRICEYDAT() {\n return DRGPRICEYDAT;\n }",
"public Long getRegId() {\n return regId;\n }",
"public Date getRegisterDate() {\n return registerDate;\n }",
"public String getFinalCurso()\n\t{\n\t\treturn finalCurso.getDate();\n\t}",
"public Date getFecModificacion() {\n return fecModificacion;\n }",
"public java.util.Date getCertificateOfRegistryDate() {\n\t\treturn _tempNoTiceShipMessage.getCertificateOfRegistryDate();\n\t}",
"public void get_fecha(){\n //Obtenemos la fecha\n Calendar c1 = Calendar.getInstance();\n fecha.setCalendar(c1);\n }",
"public Date getFechaconsulta() {\r\n return fechaconsulta;\r\n }",
"@Override\n public java.util.Date getFecha() {\n return _partido.getFecha();\n }",
"public String getFecha(){\r\n return fechaInicial.get(Calendar.DAY_OF_MONTH)+\"/\"+(fechaInicial.get(Calendar.MONTH)+1)+\"/\"+fechaInicial.get(Calendar.YEAR);\r\n }",
"public LocalDate getFecha() {\n\t\treturn fecha;\n\t}",
"public Timestamp getDeCriacao() {\n return dataDeCriacao;\n }",
"public Calendar getFechaMatriculacion() {\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.set(Integer.parseInt(cbox_ano.getSelectedItem().toString()), cbox_mes.getSelectedIndex(),\r\n\t\t\t\tInteger.parseInt(cbox_dia.getSelectedItem().toString()));\r\n\t\treturn c;\r\n\t}",
"public Date gettCgthdate() {\n return tCgthdate;\n }",
"public Date getCadastro() {\n\n\t\treturn this.cadastro;\n\t}",
"@Override\n public java.util.Date getRegistrationDate() {\n return _entityCustomer.getRegistrationDate();\n }",
"Date getFechaNacimiento();",
"public Date getDataDeCadastro() {\n\t\treturn this.dataDeCadastro;\n\t}",
"public java.util.Calendar getUlt_credito() {\n return ult_credito;\n }",
"public String getFechaEvento() {\n return fechaEvento;\n }",
"public Date getDataConsegna() {\n\t\t\treturn dataConsegna;\n\t\t}",
"public Date getDateFinContrat() {\r\n return dateFinContrat;\r\n }",
"public Timestamp getFechaEntrega() {\n return this.fechaEntrega.get();\n }",
"public int getValoracionDelCurso() {\n return valoracionDelCurso;\n }",
"public Fecha getFechaIngreso(){\n return this.fechaIngreso;\n }",
"public Date getCreacion() {\r\n return creacion;\r\n }",
"public String getCod_catedratico() {\n return cod_catedratico;\n }",
"public Registro getRegistro();",
"public Date getSupEntRegdate() {\n return supEntRegdate;\n }",
"public Date getFechaNacim() {\r\n return fechaNacim;\r\n }",
"public GregorianCalendar getReturnDate(){\n\n\t\treturn ReturnDate;\n\t}",
"public String getFechaInicio() {\n return fechaInicio;\n }",
"public java.util.Date getFechaModificacion() {\n\t\treturn this.fechaModificacion;\n\t}",
"public Date getDataCancellazione() {\n\t\treturn dataCancellazione;\n\t}",
"public LocalDate getDato() {\n\t\treturn dato;\n\t}",
"public Date getFechaSistema() {\n\t\tfechaSistema = new Date();\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.setTime(fechaSistema);\n\t\tcalendar.add(Calendar.HOUR, (-3));\n\t\tfechaSistema = calendar.getTime();\n\t\treturn fechaSistema;\n\t}",
"public java.util.Calendar getFechaPago() {\n return fechaPago;\n }",
"public Integer getFecRealizacion() {\n\t\treturn fecRealizacion;\n\t}",
"public GregorianCalendar getDate() { return date; }",
"public long getRegType() {\r\n return regType;\r\n }",
"public java.util.Calendar getFechaSolicitud(){\n return localFechaSolicitud;\n }",
"public Date getRegisterTime() {\r\n return registerTime;\r\n }",
"public LocalDate GetFechaUltimoCambio() throws RemoteException;",
"public Date getFechaAutorizacionGastoExpediente() {\r\n return fechaAutorizacionGastoExpediente;\r\n }",
"public Date getFechaNacimiento() {\r\n\t\treturn fechaNacimiento;\r\n\t}",
"public String obtenerFechaSistema() {\n Calendar fecha = new GregorianCalendar();\r\n//Obtenemos el valor del año, mes, día,\r\n//hora, minuto y segundo del sistema\r\n//usando el método get y el parámetro correspondiente\r\n int anio = fecha.get(Calendar.YEAR);\r\n int mes = fecha.get(Calendar.MONTH)+1;\r\n int dia = fecha.get(Calendar.DAY_OF_MONTH);\r\n// int hora = fecha.get(Calendar.HOUR_OF_DAY);\r\n// int minuto = fecha.get(Calendar.MINUTE);\r\n// int segundo = fecha.get(Calendar.SECOND);\r\n// String ff = \"\" + dia + \"/\" + (mes + 1) + \"/\" + anio;\r\n String ff;\r\n// = System.out.println(\"Fecha Actual: \"\r\n// + dia + \"/\" + (mes + 1) + \"/\" + año);\r\n// System.out.printf(\"Hora Actual: %02d:%02d:%02d %n\",\r\n// hora, minuto, segundo);\r\n// ff = hora + \":\" + minuto + \":\" + segundo + \".0\";\r\n ff = anio + \"-\" + mes + \"-\" + dia;\r\n return ff;\r\n }",
"public HTMLElement getElementFechaModificacionEd() { return this.$element_FechaModificacionEd; }",
"public int getFECHAOPRCN() {\n return fechaoprcn;\n }",
"public int getReg() {\n\t\treturn -1;\n\t}",
"public java.util.Calendar getCustIdExpDt() {\n return custIdExpDt;\n }",
"public java.util.Calendar getDRGPRICEYCDAT() {\n return DRGPRICEYCDAT;\n }",
"public String getFechaNacimiento() {\n return fechaNacimiento;\n }",
"public Double getCalificacion() {\n return calificacion;\n }",
"public int getFECHAECVACT() {\n return fechaecvact;\n }",
"public int getRegNum() {\n return regNum;\n }",
"public String getFechaFinal(){\n\n\t\treturn campoFinal.getText();\n\n\t}",
"public Date getModificacao() {\n\n\t\treturn this.modificacao;\n\t}",
"public LocalDate getGenDate() {\n\t\treturn genDate;\n\t}",
"public int getFECHAECVACT() {\n return fechaecvact;\n }",
"public abstract java.lang.String getFecha_inicio();",
"public XMLGregorianCalendar getDatetime() {\r\n\t\treturn datetime;\r\n\t}",
"public Date getFechaActual() {\r\n\t\treturn controlador.getFechaActual();\r\n\t}",
"public Date getRegisterDateTime() { return registerDateTime; }",
"public String getRegName() {\r\n\t\treturn regName;\r\n\t}",
"final public long getDateTime() {\n return crtime ;\n }",
"public abstract String getRegime();",
"public Date getDataModifica() {\n\t\treturn dataModifica;\n\t}",
"public Date getResDate() {\r\n\t\treturn resDate;\r\n\t}",
"public java.lang.String getFecInicio() {\n return fecInicio;\n }",
"public Integer getRegistid() {\n return registid;\n }",
"public double getGregorianChange() {\n\t\treturn this.jdCO;\n\t}",
"public void setRegistDt(Date registDt) {\n this.registDt = registDt;\n }"
] | [
"0.7005441",
"0.680634",
"0.6718556",
"0.66777176",
"0.66308147",
"0.662489",
"0.6595701",
"0.64532316",
"0.6329596",
"0.61530465",
"0.6130029",
"0.6107801",
"0.6103488",
"0.61014915",
"0.60546297",
"0.6051103",
"0.60272163",
"0.6025125",
"0.6016777",
"0.60071117",
"0.59997076",
"0.59975886",
"0.59975886",
"0.5980129",
"0.5901292",
"0.5900679",
"0.5856772",
"0.58031493",
"0.5783597",
"0.5772896",
"0.57612914",
"0.5754202",
"0.57513577",
"0.57434744",
"0.5735401",
"0.57245123",
"0.57153326",
"0.56983787",
"0.56924254",
"0.5666733",
"0.56649286",
"0.56547755",
"0.565374",
"0.5641474",
"0.56381017",
"0.56229496",
"0.5619854",
"0.56119025",
"0.5610081",
"0.56023806",
"0.55990136",
"0.5594213",
"0.55942017",
"0.5588805",
"0.55885214",
"0.55658436",
"0.5565511",
"0.55305934",
"0.5527822",
"0.55227834",
"0.5520464",
"0.55152285",
"0.5495435",
"0.54531306",
"0.5452327",
"0.5448484",
"0.54457146",
"0.5444628",
"0.5435632",
"0.5429556",
"0.5422185",
"0.5416387",
"0.54006374",
"0.53987396",
"0.53959495",
"0.5381806",
"0.5381391",
"0.53775465",
"0.5376337",
"0.5370903",
"0.53678215",
"0.53634644",
"0.53578275",
"0.53534895",
"0.5323121",
"0.5321813",
"0.53188664",
"0.53064084",
"0.5303491",
"0.5296716",
"0.5293889",
"0.52849954",
"0.5267628",
"0.5264382",
"0.52632976",
"0.5255383",
"0.5255146",
"0.52544844",
"0.52543",
"0.5251384"
] | 0.7848381 | 0 |
Sets the fechaReg value for this DtCurso. | public void setFechaReg(java.util.Calendar fechaReg) {
this.fechaReg = fechaReg;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRegistDt(Date registDt) {\n this.registDt = registDt;\n }",
"public void setRegDate(Date regDate) {\r\n\t\tthis.regDate = regDate;\r\n\t}",
"public java.util.Calendar getFechaReg() {\n return fechaReg;\n }",
"public void setRegtime(Date regtime) {\n this.regtime = regtime;\n }",
"public void setDtRegistro(int dtRegistro) {\n this.dtRegistro = dtRegistro;\n }",
"public void setRegtime(Date regtime) {\r\n\t\tthis.regtime = regtime;\r\n\t}",
"public void setFechaRegistro(java.util.Date fechaRegistro1) {\n\t\tthis.fechaRegistro = fechaRegistro1;\n\n\t}",
"public void setFecha(java.util.Calendar fecha)\r\n {\r\n this.fecha = fecha;\r\n }",
"public void setFechaCompra() {\n LocalDate fecha=LocalDate.now();\n this.fechaCompra = fecha;\n }",
"@Override\n public void setFecha(java.util.Date fecha) {\n _partido.setFecha(fecha);\n }",
"public void setFecha(Fecha fecha) {\r\n this.fecha = fecha;\r\n }",
"public void setFecRegistro(Date fecRegistro) {\n this.fecRegistro = fecRegistro;\n }",
"public void setRegdate(long newVal) {\n setRegdate(new java.sql.Timestamp(newVal));\n }",
"public void setRegdate(java.sql.Timestamp newVal) {\n if ((newVal != null && this.regdate != null && (newVal.compareTo(this.regdate) == 0)) || \n (newVal == null && this.regdate == null && regdate_is_initialized)) {\n return; \n } \n this.regdate = newVal; \n regdate_is_modified = true; \n regdate_is_initialized = true; \n }",
"public void setFecha(String Fecha) {\n this.Fecha = Fecha;\n }",
"public Date getRegDate() {\r\n\t\treturn regDate;\r\n\t}",
"public void setFechaReserva(Timestamp fechaReserva) {\n this.fechaReserva.set(fechaReserva);\n }",
"public void setFechaFacturado(java.util.Calendar param){\n \n this.localFechaFacturado=param;\n \n\n }",
"public void setFechaCreacion(Date fechaCreacion) {\r\n this.fechaCreacion = fechaCreacion;\r\n }",
"public void setFechaCheque(final Date fecha){\t}",
"@Override\n public void setObjectRegistry(ObjectRegistry oReg) {\n COMPSsRuntimeImpl.oReg = oReg;\n }",
"public void setRegisterDatime(Date registerDatime) {\r\n this.registerDatime = registerDatime;\r\n }",
"public void setRegisterDatime(Date registerDatime) {\r\n this.registerDatime = registerDatime;\r\n }",
"public void setFechaDesde(Date fechaDesde)\r\n/* 169: */ {\r\n/* 170:293 */ this.fechaDesde = fechaDesde;\r\n/* 171: */ }",
"public void setFechaSolicitud(java.util.Calendar param){\n \n this.localFechaSolicitud=param;\n \n\n }",
"public Date getRegistDt() {\n return registDt;\n }",
"@Override\n public void setRegistrationDate(java.util.Date registrationDate) {\n _entityCustomer.setRegistrationDate(registrationDate);\n }",
"public void setFecha(String fecha) {\r\n\t\tthis.fecha = fecha;\r\n\t}",
"public void setFechaHasta(Date fechaHasta)\r\n/* 179: */ {\r\n/* 180:312 */ this.fechaHasta = fechaHasta;\r\n/* 181: */ }",
"public void setRegisterDate(Date registerDate) {\n this.registerDate = registerDate;\n }",
"public void setFechaNacimiento(Date fechaNacimiento)\r\n/* 138: */ {\r\n/* 139:252 */ this.fechaNacimiento = fechaNacimiento;\r\n/* 140: */ }",
"public void setCreacion(Date creacion) {\r\n this.creacion = creacion;\r\n }",
"public void setFechaInclusion(Date fechaInclusion)\r\n/* 155: */ {\r\n/* 156:174 */ this.fechaInclusion = fechaInclusion;\r\n/* 157: */ }",
"public void setFecha(LocalDate fecha) {\n\t\tthis.fecha = fecha;\n\t}",
"public abstract void setFecha_termino(java.lang.String newFecha_termino);",
"public void setDataCreazione(Date dataCreazione) {\n\t\tthis.dataCreazione = dataCreazione;\n\t}",
"public void setRegisterDateTime(Date dateTime) { this.registerDateTime = dateTime; }",
"public void setFechaEntrega(Timestamp fechaEntrega) {\n this.fechaEntrega.setValue(fechaEntrega);\n }",
"public void setRegtime(String regtime) {\n this.regtime = regtime;\n }",
"public void setGioBatDau(Date gioBatDau);",
"public abstract void setFecha_inicio(java.lang.String newFecha_inicio);",
"public void get_fecha(){\n //Obtenemos la fecha\n Calendar c1 = Calendar.getInstance();\n fecha.setCalendar(c1);\n }",
"@Test\n\tpublic void testSetFecha2(){\n\t\tPlataforma.logout();\n\t\tPlataforma.login(Plataforma.alumnos.get(0).getNia(), Plataforma.alumnos.get(0).getPassword());\n\t\tLocalDate fin = Plataforma.fechaActual.plusDays(10);\n\t\tLocalDate ini = Plataforma.fechaActual.plusDays(2);\n\t\tassertFalse(ej1.setFechaFin(fin));\n\t\tassertFalse(ej1.setFechaIni(ini));\n\t}",
"@Test\n\tpublic void testSetFecha7(){\n\t\tPlataforma.closePlataforma();\n\t\t\n\t\tfile = new File(\"./data/plataforma\");\n\t\tfile.delete();\n\t\tPlataforma.openPlataforma();\n\t\tPlataforma.login(\"1\", \"contraseniaprofe\");\n\t\t\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(2));\n\t\tej1.responderEjercicio(nacho, array);\n\t\t\t\t\n\t\tLocalDate fin = Plataforma.fechaActual.plusDays(10);\n\t\tLocalDate ini = Plataforma.fechaActual.plusDays(3);\n\t\tassertTrue(ej1.setFechaFin(fin));\n\t\tassertFalse(ej1.setFechaIni(ini));\n\t}",
"public void setFechaconsulta(Date fechaconsulta) {\r\n this.fechaconsulta = fechaconsulta;\r\n }",
"void setDate(Date data);",
"@Test\n public void testSetFechaFin() {\n System.out.println(\"setFechaFin\");\n Date fechaFin = null;\n Reserva instance = new Reserva();\n instance.setFechaFin(fechaFin);\n \n }",
"void setDadosDoacao(String date, String hora, String cpfDoador, String nomeDoador, String fator) {\n this.fator = fator;\n this.date = date;\n this.cpf = cpfDoador;\n this.nome = nomeDoador;\n this.hora = hora;\n }",
"public void setRegistrationDate(Date registrationDate)\n {\n this.registrationDate = registrationDate;\n }",
"public Date getRegtime() {\n return regtime;\n }",
"public void setTempoGeral(LocalDateTime tempoGeral) {\n this.tempoGeral = tempoGeral;\n }",
"public Date getRegtime() {\r\n\t\treturn regtime;\r\n\t}",
"@Test\n public void testSetFecha() {\n System.out.println(\"setFecha\");\n Date fecha = null;\n Reserva instance = new Reserva();\n instance.setFecha(fecha);\n \n }",
"public void setFechaNacim(Date fechaNacim) {\r\n this.fechaNacim = fechaNacim;\r\n }",
"public Date getFecRegistro() {\n return fecRegistro;\n }",
"public void setRegVigente(boolean regVigente) {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"setRegVigente(boolean) - start\");\n\t\t}\n\n\t\tthis.regVigente = regVigente;\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"setRegVigente(boolean) - end\");\n\t\t}\n\t}",
"public void setTipoFecha(int tipoFecha)\n {\n tipFecha=tipoFecha;\n }",
"public void setFechaInicio(final Date fechaInicio) {\n\t\tthis.fechaInicio = fechaInicio;\n\t}",
"public void setDataConsegna(Date dataConsegna) {\n\t\t\tthis.dataConsegna = dataConsegna;\n\t\t}",
"public void setFechaPago(java.util.Calendar fechaPago) {\n this.fechaPago = fechaPago;\n }",
"public void setRegTime(long regTime) {\n\t\t\tthis.regTime = regTime;\n\t\t}",
"public java.util.Date getFechaRegistro() {\n\t\treturn this.fechaRegistro;\n\t}",
"public void setFechaExclusion(Date fechaExclusion)\r\n/* 165: */ {\r\n/* 166:182 */ this.fechaExclusion = fechaExclusion;\r\n/* 167: */ }",
"public void setFechaInicio(Timestamp fechaInicio) {\n this.fechaInicio = fechaInicio;\n }",
"public REGISTRARSE()\n {\n \t this.datos=new DATOS();\n }",
"public void setResDate(Date resDate) {\r\n\t\tthis.resDate = resDate;\r\n\t}",
"public Restauracion(Date fecha) {\r\n this.fecha = fecha;\r\n }",
"public void setFecha(java.sql.Timestamp newFecha);",
"public void setFecModificacion(Date fecModificacion) {\n this.fecModificacion = fecModificacion;\n }",
"public void setFechaInicio(String fechaInicio) {\n this.fechaInicio = fechaInicio;\n }",
"public RegistrarPagoCXC() {\n initComponents();\n HoraFecha ob2 = new HoraFecha();\n jdfecha.setDate(ob2.obtenerFechamascienanos());\n Buscar_cxc.restropagocxcCxpexitoso = false;\n Buscar_cxp.restropagocxpCxpexitoso = false;\n\n//// spinerDiasCredito.setValue(30);\n//// HoraFecha ob2 = new HoraFecha();\n//// fecha = ob2.obtenerFecha();\n//// jDateChooser1.setDate(fecha);\n//// \n//// jDateChooser1.setDate(sumarRestarDiasFecha(fecha, Integer.valueOf(spinerDiasCredito.getValue().toString())));\n//// txt_entrada.grabFocus(); \n//// txt_entrada.selectAll();\n//// \n ////formas de pago\n fp = OperacionesForms.FormasPagoCXC_seExceptualaformadePago_Credito(jComboBox1);\n\n//OperacionesForms.getAllComponents(this)\n// jComboBox1.setSelectedItem(Principal.formadepagopredeterminada);\n /// HoraFecha.fecha(fecha)\n }",
"public void setFechaPresentacion(es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.RangoFechaPresentacionType fechaPresentacion) {\r\n this.fechaPresentacion = fechaPresentacion;\r\n }",
"public void doSetRegisterId(String regId) {\n\t this.regId = regId;\n\t return;\n\t }",
"public void setDataModifica(Date dataModifica) {\n\t\tthis.dataModifica = dataModifica;\n\t}",
"public void setRegisterTime(Date registerTime) {\r\n this.registerTime = registerTime;\r\n }",
"public void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);",
"public void setRegisNo(String regisNo)\n {\n // put your code here\n this.regisNo = regisNo;\n }",
"public void setFechaEvento(String fechaEvento) {\n this.fechaEvento = fechaEvento;\n }",
"public void setDate(int day,int month,int year){\n this.day=day;\n this.month=month;\n this.year=year;\n }",
"public void setSupEntRegdate(Date supEntRegdate) {\n this.supEntRegdate = supEntRegdate;\n }",
"public void setFecha_envio(java.sql.Timestamp newFecha_envio);",
"public void setDate( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), DATE, value);\r\n\t}",
"public void setGregorianChange(int year, int month, int day) {\n\t\tthis.year = year;\n\t\tthis.month = month;\n\t\tthis.day = day;\n\t\tdeltatIsValid = false;\n\t\tthis.calType = SE_GREG_CAL;\n\t\tif (this.year < year || (this.year == year && this.month < month)\n\t\t\t\t|| (this.year == year && this.month == month && this.day < day)) {\n\t\t\tthis.calType = SE_JUL_CAL;\n\t\t}\n\t\tthis.jdCO = swe_julday(year, month, day, 0., SE_GREG_CAL);\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType);\n\t}",
"public void setCreDate(Date creDate) {\n this.creDate = creDate;\n }",
"public String getREGN_DATE() {\r\n return REGN_DATE;\r\n }",
"public void setFechaFin(Timestamp fechaFin) {\n this.fechaFin = fechaFin;\n }",
"public void setValor(Date novoValor){\r\n\t\t\ttry {\r\n\t\t\t\tDateDocument doc = (DateDocument) getDocument();\r\n\t\t\t\tdoc.getDateFormat().parse(getText(0, doc.getLength()));\r\n\t\t\t\tsetText(doc.getDateFormat().format(novoValor));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}",
"@Override\n\tpublic void setRegantes(long regantes) {\n\t\tmodel.setRegantes(regantes);\n\t}",
"private void setCurrentDateOnButton() {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tyear = c.get(Calendar.YEAR);\n\t\t\tmonth = c.get(Calendar.MONTH);\n\t\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\t\t\t//set current date to registration button\n\t\t\tbtnRegDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t\t//set current date to FCRA registration button\n\t\t\tbtnFcraDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t}",
"public void setDateStart_CouponsTab_Marketing() {\r\n\t\tthis.dateStart_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tString today1 = (String) (formattedDate.format(c.getTime()));\r\n\t\tthis.dateStart_CouponsTab_Marketing.sendKeys(today1);\r\n\t}",
"public void setDate(java.util.Calendar value) {\r\n\t\tBase.set(this.model, this.getResource(), DATE, value);\r\n\t}",
"public void setfPeticion(Date fPeticion) {\r\n this.fPeticion = fPeticion;\r\n }",
"public void setCurDate(Date curDate) {\n this.curDate = curDate;\n }",
"public void setRegId(Long regId) {\n this.regId = regId;\n }",
"public final void setDominio() {\r\n this.limite[0] = BigInteger.ZERO;\r\n this.limite[1] = this.primoGrande;\r\n }",
"public void setDate(int year, int month, int dayOfMonth)\n {\n this.date = new GregorianCalendar(year, month-1, dayOfMonth);\n }",
"private void setRegNum(int regNum) {\n this.regNum = regNum;\n }",
"public abstract void setFecha_ingreso(java.sql.Timestamp newFecha_ingreso);",
"public void setRegIp(String regIp) {\n\t\t\tthis.regIp = regIp;\n\t\t}",
"public void setFechaAutorizacionGastoExpediente(Date fechaAutorizacionGastoExpediente) {\r\n this.fechaAutorizacionGastoExpediente = fechaAutorizacionGastoExpediente;\r\n }"
] | [
"0.67309123",
"0.6728203",
"0.62255144",
"0.62050915",
"0.6144761",
"0.6140885",
"0.60364825",
"0.60143495",
"0.5889721",
"0.5837573",
"0.57992285",
"0.5777572",
"0.5702652",
"0.56970936",
"0.5678719",
"0.567457",
"0.56587225",
"0.56563914",
"0.5643168",
"0.55626816",
"0.5539493",
"0.5521616",
"0.5521616",
"0.54665196",
"0.5457888",
"0.5453723",
"0.5444517",
"0.544113",
"0.54210144",
"0.536106",
"0.53302866",
"0.5324976",
"0.5302944",
"0.52947944",
"0.528136",
"0.5248173",
"0.52294827",
"0.5229254",
"0.52060515",
"0.5182513",
"0.51817346",
"0.5160333",
"0.51280487",
"0.5114459",
"0.5106722",
"0.5097727",
"0.50835073",
"0.50635487",
"0.506337",
"0.50613046",
"0.50428474",
"0.50345683",
"0.5020124",
"0.50013953",
"0.49935666",
"0.49864727",
"0.4976483",
"0.4975356",
"0.4974866",
"0.49672177",
"0.4940521",
"0.493505",
"0.4935042",
"0.49228",
"0.49204323",
"0.49102727",
"0.49089584",
"0.4908841",
"0.48838052",
"0.4876651",
"0.4868639",
"0.48578796",
"0.48531866",
"0.48506576",
"0.48500922",
"0.48484698",
"0.4845004",
"0.48446512",
"0.4828381",
"0.48265553",
"0.4822622",
"0.4820437",
"0.4820404",
"0.48201042",
"0.48197353",
"0.4818489",
"0.48179096",
"0.4815618",
"0.48120055",
"0.4803532",
"0.47914988",
"0.47913632",
"0.47897342",
"0.47856578",
"0.47748068",
"0.47675055",
"0.47666812",
"0.47586697",
"0.47503752",
"0.4740497"
] | 0.77918386 | 0 |
Gets the foto value for this DtCurso. | public java.lang.String getFoto() {
return foto;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public byte[] getFoto() {\n\t\treturn foto;\n\t}",
"public File getFoto() {\r\n\t\treturn temp;\r\n\t}",
"public abstract String getFotoPath();",
"public ParseFile getPicture(){\n return getParseFile(KEY_PICTURE);\n }",
"public ParseFile getProfilePicture() {\n return getParseFile(KEY_IMAGE);\n }",
"public String getPhoto() {\r\n\t\treturn photo;\r\n\t}",
"@Override\n public String getPicPhoto() {\n return pic_filekey;\n }",
"public String getPhoto() {\n\t\treturn photo;\n\t}",
"public String getPhoto() {\n\t\treturn photo;\n\t}",
"public String getPhoto() {\r\n return photo;\r\n }",
"public String getPhoto() {\r\n return photo;\r\n }",
"public String getAvatar() {\n return getString(AVKey.KEY_AVATAR);\n }",
"public String getPhoto() {\n return photo;\n }",
"public String getPhoto() {\n return photo;\n }",
"public String getImageFile() {\n\t\treturn imagefile;\n\t}",
"public String getCurrentUserPicture() {\n\t\treturn currentUser.getPicture();\n\t}",
"public javax.activation.DataHandler getCsp_Photo() {\n return csp_Photo;\n }",
"public byte[] getPhoto() {\n\t\treturn photo;\n\t}",
"public byte[] getPhoto() {\n return photo;\n }",
"public UploadedFileDTO getFile() {\r\n\t\ttype(ConfigurationItemType.FILE);\r\n\t\treturn fileValue;\r\n\t}",
"public Optional<String> avatar() {\n this.use();\n\n return Optional.ofNullable(avatar);\n }",
"@ApiModelProperty(value = \"Photo URL, you'll need to add the token to the url (as ?access_token=) or use the header like you would normally\")\n public String getPhoto() {\n return photo;\n }",
"public float getIMG(){\n return profile.getImg();\n }",
"public String getAvatar()\n\t{\n\t\treturn this.avatar;\n\t}",
"public String getPhotoUrl() {\n return fullPhoto.getPhotoUrl();\n }",
"String getAvatar();",
"public String getUserPhotoUrl() {\n return mSharedPreferences.getString(USER_PHOTO_URL, null);\n }",
"public String getPicture() {\r\n return picture;\r\n }",
"public String getUserImg() {\r\n return userImg;\r\n }",
"public File getFileForPicture() {\r\n\t\tif(!isReady) prepare();\r\n\t\tif(!isReady) {\r\n\t\t\tLog.e(TAG,\"Not ready when taking picture\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tcurrentFile = new File(directory,getFileName());\r\n\t\treturn currentFile;\r\n\t}",
"java.lang.String getProfileImage();",
"public File getFileValue();",
"public java.lang.String getPhotoUri() {\n return localPhotoUri;\n }",
"public String getPhotoURL() {\n return photoURL;\n }",
"@Override\n public String getProfilePhoto(String userId) throws Exception {\n return null;\n }",
"public String getFile() {\n return \"null\"; // getFileTopic().getCompositeValue().getTopic(FILE_PATH);\n }",
"public String getPhotoPath() {\n return photoPath;\n }",
"public String getAvatar() {\n return avatar;\n }",
"public String getAvatar() {\n return avatar;\n }",
"public String getAvatar() {\n return avatar;\n }",
"public String getAvatar() {\n return avatar;\n }",
"public String getUserProfileImg() {\n return userProfileImg;\n }",
"public static String getBiblioImagenUsuario() {\n\t\treturn \"imagenUsuario\";\n\t}",
"public Image getOne();",
"public final CommonsMultipartFile getLogoImage() {\n\t\treturn logoImage;\n\t}",
"public File getFile() {\n // some code goes here\n return this.f;\n }",
"public String getPhotoUrl() {\n try {\n ParseFile pic = fetchIfNeeded().getParseFile(\"pic\");\n return pic.getUrl();\n }\n catch (ParseException e) {\n Log.d(TAG, \"Error in getting photo from Parse: \" + e);\n return null;\n }\n }",
"public String getMyProfileAvatarPath() {\n return sp.getString(MYPROFILE_AVATAR_PATH_GALLERY, null);\n }",
"public String getCurrentPhotoPath() { return mCurrentPhotoPath; }",
"public String getAvatar() {\n\t\treturn avatar;\n\t}",
"public ColorImage getImagem(){\n\t\treturn copiaFoto(this.fotografia);\n\t}",
"public int getAvatar() {\n return avatar_;\n }",
"public String getImage() {\n return image;\n }",
"public String fotoToNick() {\r\n if (fotoFile == null) {\r\n foto = \"avatar.png\";\r\n } else {\r\n String nombreString = fotoFile.getName();\r\n String[] extensionStrings = nombreString.split(\"\\\\.\");\r\n foto = nick + \".\" + (extensionStrings[extensionStrings.length - 1]);\r\n }\r\n return foto;\r\n }",
"public String getPhotoUrl() {\n\t\treturn photoUrl;\n\t}",
"public File getFile() {\n // some code goes here\n return m_f;\n }",
"public Image getImage() {\n if (tamagoStats.getAge() <= 0) {\n return images.get(\"oeuf\").get(\"noeuf\");\n } else if (tamagoStats.getAge() <= 3) {\n return images.get(\"bebe\").get(\"metamorph\");\n } else if (tamagoStats.getAge() <= 7) {\n return images.get(\"enfant\").get(\"evoli\");\n } else {\n return images.get(\"adulte\").get(\"noctali\");\n }\n }",
"public String getImage()\n {\n return image;\n }",
"public String getUploader() {\n return fullPhoto.getUploader();\n }",
"Blob getBlob(BlobStoreContext blobStoreContext, CloudPath path, GetOptionFileAttribute getOption);",
"public String getPic() {\n return pic;\n }",
"public String getPic() {\n return pic;\n }",
"public byte[] getProfilePicture(){\n return profile_picture;\n }",
"public java.lang.String getWeatherImage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(WEATHERIMAGE$2, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public int getAvatar() {\n return avatar_;\n }",
"public String getImage() {\n return image;\n }",
"public String getImage() {\n return image;\n }",
"public String getImage() {\n return image;\n }",
"public String getImage() {\n return image;\n }",
"public ImageInfo getImage() {\n return image;\n }",
"public String getImage() {\n return this.Image;\n }",
"public File getPictureFromCache() {\n if (context != null) {\n File file = new File(context.getExternalFilesDir(null), pictureName);\n return file;\n }\n return null;\n }",
"java.lang.String getImagePath();",
"public StreamedContent getPhoto(Patient p) {\n FacesContext context = FacesContext.getCurrentInstance();\n if (context.getRenderResponse()) {\n return new DefaultStreamedContent();\n } else if (p == null) {\n return new DefaultStreamedContent();\n } else {\n if (p.getId() != null && p.getBaImage() != null) {\n //////System.out.println(\"giving image\");\n InputStream targetStream = new ByteArrayInputStream(p.getBaImage());\n StreamedContent str = DefaultStreamedContent.builder().contentType(p.getFileType()).name(p.getFileName()).stream(() -> targetStream).build();\n return str;\n// return new DefaultStreamedContent(new ByteArrayInputStream(p.getBaImage()), p.getFileType(), p.getFileName());\n } else {\n return new DefaultStreamedContent();\n }\n }\n\n }",
"public String getLoggedPlayerAvatar() {\r\n return ctrlDomain.getLoggedPlayerAvatar();\r\n }",
"@Override\n\tpublic String getUserPicture() {\n\t\treturn super.getUserPicture();\n\t}",
"public String getAvatarUrl() {\n return avatarUrl;\n }",
"public String getImage() {\n\t\treturn null;\n\t}",
"public String getImage() {\n\t\treturn image;\n\t}",
"public String getImage() {\n\t\treturn image;\n\t}",
"public File getImageFile() throws IOException {\n String timeStamp=new SimpleDateFormat(\"yyyymmdd_HHmmss\").format(new Date());\n String imageName=timeStamp;\n File storageDir=getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File imageFile=File.createTempFile(imageName,\".jpg\",storageDir);\n currentImagePath=imageFile.getAbsolutePath();\n imguri.setText(currentImagePath);\n return imageFile;\n }",
"public File getFile() {\n return this.path != null ? this.path.toFile() : null;\n }",
"public Part getFotoPerfil(){\n return fotoPerfil;\n }",
"public javax.activation.DataHandler getPicture() {\r\n return localPicture;\r\n }",
"public com.google.protobuf.ByteString getPicture() {\n return picture_;\n }",
"String getFile() {\n\t\treturn file;\n\t}",
"public Cursor getLogoImagePath() {\n\n\t\ttry {\n\t\t\tString sql = \"SELECT LogoPath FROm Logos\";\n\n\t\t\tCursor mCur = mDb.rawQuery(sql, null);\n\t\t\treturn mCur;\n\n\t\t} catch (SQLException mSQLException) {\n\t\t\tLog.e(TAG, \"getTestData >>\" + mSQLException.toString());\n\t\t\tthrow mSQLException;\n\t\t}\n\t}",
"String getAvatarUrl();",
"java.lang.String getPictureUri();",
"public com.google.protobuf.ByteString getPicture() {\n return picture_;\n }",
"byte[] getProfileImage();",
"public RandomAccessFile getFile()\n {\n \treturn f;\n }",
"public String getFlickrUrl() {\n return flickrUrl;\n }",
"com.google.protobuf.ByteString getPicture();",
"public Picture picture() {\n return pic;\n }",
"File getFile() { return user_file; }",
"public xPIC getPic() {\r\n return pic_;\r\n }",
"public String getImage() {\n\t\tString ans=\"Data/NF.png\";\n\t\tif(image!=null)\n\t\t\tans=\"Data/Users/Pics/\"+image;\n\t\treturn ans;\n\t}",
"public String getImageURL()\n\t{\n\t\treturn imageURL;\n\t}",
"public String getPhotoFileName() {\n return \"IMG_\" + getId().toString() + \".jpg\";\n }"
] | [
"0.7193217",
"0.6825412",
"0.64838284",
"0.6024559",
"0.597123",
"0.5939317",
"0.5891226",
"0.5877611",
"0.5877611",
"0.58730686",
"0.58730686",
"0.58488554",
"0.58064467",
"0.58064467",
"0.5785734",
"0.5775152",
"0.5750991",
"0.5699486",
"0.56935203",
"0.5693392",
"0.5686909",
"0.56705254",
"0.5665743",
"0.5655682",
"0.55716115",
"0.5565326",
"0.5547271",
"0.5511312",
"0.5491519",
"0.54787153",
"0.54765207",
"0.54640913",
"0.5460809",
"0.5450116",
"0.54473597",
"0.544404",
"0.5440905",
"0.5438601",
"0.5438601",
"0.5438601",
"0.5438601",
"0.54281443",
"0.54240775",
"0.53901327",
"0.537911",
"0.53720915",
"0.5370227",
"0.5370077",
"0.53630537",
"0.535831",
"0.53564465",
"0.5343009",
"0.5341016",
"0.5327981",
"0.531485",
"0.53145224",
"0.5309534",
"0.53081393",
"0.53066933",
"0.53056073",
"0.5303352",
"0.5303352",
"0.5296247",
"0.52865994",
"0.528479",
"0.52734697",
"0.52734697",
"0.52734697",
"0.52734697",
"0.5259858",
"0.52574116",
"0.52483",
"0.5236345",
"0.5234596",
"0.520191",
"0.520151",
"0.5199617",
"0.5194168",
"0.5193461",
"0.5193461",
"0.5190363",
"0.5187004",
"0.51869166",
"0.51828706",
"0.5180624",
"0.517944",
"0.517711",
"0.5171709",
"0.51684844",
"0.51683474",
"0.51663333",
"0.5155249",
"0.51503474",
"0.5137709",
"0.5126174",
"0.51233166",
"0.5122844",
"0.51188195",
"0.5115674",
"0.511445"
] | 0.7381701 | 0 |
Sets the foto value for this DtCurso. | public void setFoto(java.lang.String foto) {
this.foto = foto;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFotoPerfil(Part foto){\n if(foto == null){\n throw new IllegalArgumentException(\"Foto de perfil de usuario igual a null\");\n }\n fotoPerfil = foto;\n }",
"public void setFile(UploadedFileDTO value) {\r\n\t\ttype(ConfigurationItemType.FILE);\r\n\t\tthis.fileValue = value;\r\n\t}",
"public void setPicture(ParseFile file){\n put(KEY_PICTURE, file);\n }",
"public void setFileType( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), FILETYPE, value);\r\n\t}",
"public byte[] getFoto() {\n\t\treturn foto;\n\t}",
"public void setPhoto(String aPhoto) {\n photo = aPhoto;\n }",
"public java.lang.String getFoto() {\n return foto;\n }",
"private void setPhotoAttcher() {\n\n }",
"private void setImage() throws FileNotFoundException {\n\t\timage = new Image(new FileInputStream(path));\n\t}",
"public void setFile(File f) { file = f; }",
"void setImageFromFile(File imageFile);",
"public void setPhoto(String photo) {\r\n this.photo = photo;\r\n }",
"public void setPhoto(String photo) {\r\n this.photo = photo;\r\n }",
"public void setFile(PDFileSpecification f) {\n/* 409 */ this.stream.setItem(COSName.F, (COSObjectable)f);\n/* */ }",
"public void setFile(PDFileSpecification f)\n {\n stream.setItem(COSName.F, f);\n }",
"public static void setFileType( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, FILETYPE, value);\r\n\t}",
"protected void setPic() {\n }",
"public void setPhoto(String photo) {\r\n\t\tthis.photo = photo;\r\n\t}",
"public File getFoto() {\r\n\t\treturn temp;\r\n\t}",
"void setImageLocation(URL imageLocation) throws IOException;",
"void set(File local,String name,UserFileType ft)\n{\n user_file = local;\n if (user_file != null && (name == null || name.length() == 0)) \n name = user_file.getName();\n if (name.startsWith(\"/s6/\")) {\n name = name.substring(4);\n }\n else if (name.startsWith(\"s:\")) {\n name = name.substring(2);\n }\n access_name = name;\n file_mode = ft;\n}",
"public void setPhotoUri(java.lang.String param) {\n localPhotoUriTracker = true;\n\n this.localPhotoUri = param;\n }",
"public void setOriginalFilename( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALFILENAME, value);\r\n\t}",
"@Accessor(qualifier = \"singleFile\", type = Accessor.Type.SETTER)\n\tpublic void setSingleFile(final Boolean value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(SINGLEFILE, value);\n\t}",
"public void setProfilePic(ParseFile image) {\n put(KEY_IMAGE, image);\n }",
"@Override\n public void set(T value) throws Exception {\n _curator.setData().forPath(_zkPath, toZkBytes(value));\n }",
"@Generated\n @Selector(\"setImage:\")\n public native void setImage(@Nullable UIImage value);",
"public void setFile(File file);",
"public void setImg() {\n\t\tif (custom) {\n\t\t\tImage img1;\n\t\t\ttry {\n\t\t\t\timg1 = new Image(new FileInputStream(\"tmpImg.png\"));\n\t\t\t\tmainAvatar.setImage(img1); // Sets main user avatar as the custom image\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void setOwnerPhotoURL(String photoURL){\n mEditor.putString(USER_PHOTO_URL, photoURL);\n mEditor.commit();\n }",
"public void setUploadUrl( String url_ ) {\n\t\tif (url_ != null) {\n\t\t\tphotoUrl = url_;\n\t\t} else {\n\t\t\tphotoUrl = \"http://199.58.116.35:8081/fotaflo-test/pictures/upload\";\n\t\t}\n\t\tlog( \"photoUrl \" + photoUrl, Log.Level.Information );\n\t}",
"private void setProfilePic() {\n ParseFile image = (ParseFile) user.get(User.KEY_PROFILE_PIC);\n\n if (image != null)\n Glide.with(getContext()).load(image.getUrl()).circleCrop().into(mProfilePicImageView);\n else\n Glide.with(getContext()).load(R.drawable.no_profile_pic)\n .circleCrop().into(mProfilePicImageView);\n }",
"public void setPhoto(byte[] photo) {\n\t\tthis.photo = photo;\n\t}",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setFileInfo(com.opentext.bn.converters.avro.entity.PayloadRef value) {\n validate(fields()[15], value);\n this.fileInfoBuilder = null;\n this.fileInfo = value;\n fieldSetFlags()[15] = true;\n return this;\n }",
"public Builder setAvatar(int value) {\n bitField0_ |= 0x00000001;\n avatar_ = value;\n onChanged();\n return this;\n }",
"@Override\n public void setFile(File f) {\n \n }",
"public void setCurrentUserPicture(String picture) {\n\t\tcurrentUser.setPicture(picture);\n\t\tuserCatalog.modifyUser(currentUser);\n\t}",
"void updateProfilePhoto(int userId, String filename);",
"public void setPhoto(String photo) {\n\t\tthis.photo = photo;\n\t}",
"public void setPhoto(String photo) {\n\t\tthis.photo = photo;\n\t}",
"public static void setOriginalFilename( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, ORIGINALFILENAME, value);\r\n\t}",
"public abstract String getFotoPath();",
"private void setFile() {\n\t}",
"public static void setFileType(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, FILETYPE, value);\r\n\t}",
"public void setFile(String key, File value) {\n\t\tif (value != null && !value.equals(getDefault(key)))\n\t\t\tinternal.setProperty(key, value.getAbsolutePath());\n\t\telse\n\t\t\tinternal.remove(key);\n\t}",
"public void setImage(byte[] value) {\n this.image = ((byte[]) value);\n }",
"void setFileId(DriveRequest<?> request, String fileId);",
"public void setImage(String tmp) {\n this.image = tmp;\n }",
"public void setProfileImg() {\n }",
"public Builder setS3(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n s3_ = value;\n onChanged();\n return this;\n }",
"public UserEntity(){\n putFile(\"coverPhoto\");\n putFile(\"profilePhoto\");\n }",
"public Builder setImage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n image_ = value;\n onChanged();\n return this;\n }",
"public Builder setObjectFile(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n objectFile_ = value;\n onChanged();\n return this;\n }",
"public void seleccionarFotoPerfil(View v) {\n //Crea un Intent\n Intent intent = new Intent();\n //con intent.setType(\"image/*\") indicamos que en la nueva actividad solo se mostraran imagenes\n intent.setType(\"image/*\");\n //Muestra contenido que el usuario puede escoger, y que devolvera una URI resultante\n intent.setAction(Intent.ACTION_GET_CONTENT);\n //Inicia una nueva actividad que mostrara el seleccionador de imagenes\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"void setImage(TokenEntry entry, @NonNull String newImage);",
"public void setFile(String value){\n ((MvwDefinitionDMO) core).setFile(value);\n }",
"public void setPic(byte[] data) {\n ParseFile pic = new ParseFile(getObjectId().toString()+ \".jpg\", data);\n //SAVE PIC THEN ONCE DONE, PERFORM SAVE ON THE PHOTO OBJECT\n pic.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if (e != null) {\n Log.d(TAG, \"Error in uploading photo to Parse: \" + e);\n }\n }\n }, new ProgressCallback() {\n @Override\n public void done(Integer percentDone) {\n\n }\n });\n put(\"pic\", pic);\n saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if (e != null) {\n Log.d(TAG, \"Error saving photo to Parse: \" + e);\n }\n }\n });\n }",
"void setAvatarUrl(String avatarUrl);",
"void setImagePath(String path);",
"public Builder setPicture(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n picture_ = value;\n onChanged();\n return this;\n }",
"public void setProductPicture(String file){\r\n\r\n\t\t\tFileUploader.uploadFileName(driver, \"@class\", \"x-panel-noborder\", file);\r\n\t\t\t\r\n\t\t\twaitForExtJSAjaxComplete(25);\r\n\t\t\t\r\n\t\t\tReporter.log(\"Setting Picture for Product in Picture Tab\", true);\r\n\t\t}",
"void setImage(String image);",
"public UploadOperation(DropboxAccess srv, File f, long pid, long fid) {\n super(srv, pid, fid);\n file = new File(f.getPath());\n }",
"public UploadOperation(DropboxAccess srv, String f, long pid, long fid) {\n super(srv, pid, fid);\n file = new File(f);\n }",
"void setImageFromURL(String imageURL);",
"public void setFile(File file) {\n this.path = file != null ? file.toPath() : null;\n }",
"public void setOfficialFileWebpage( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), OFFICIALFILEWEBPAGE, value);\r\n\t}",
"private void SetPictureLabel(String label) {\r\n fileInfoLabel.setText(label);\r\n }",
"public void setFile(Object value) throws DmcValueException {\n ((MvwDefinitionDMO) core).setFile(value);\n }",
"private void transiccionFoto() {\n\t\tFadeTransition ft = new FadeTransition(Duration.seconds(5), fotoLogin);\n\t\tft.setFromValue(0);\n\t\tft.setToValue(1);\n\t\tft.play();\n\t}",
"@Override\n public void setProfileImage(String s, String s1) {\n }",
"public void setAvatar(String avatar) {\n this.avatar = avatar;\n }",
"public void setAvatar(String avatar) {\n this.avatar = avatar;\n }",
"public void setFileUpload(FileUpload fileUpload) {\r\n this.fileUpload = fileUpload;\r\n }",
"public void setImage(Image img) {\r\n this.img = img;\r\n }",
"public void setCsp_Photo(javax.activation.DataHandler csp_Photo) {\n this.csp_Photo = csp_Photo;\n }",
"public void setAnoFilmagem(String anoFilmagem);",
"public void setFileType(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), FILETYPE, value);\r\n\t}",
"private void putProfPic(Blob gbPhoto) throws SQLException, FileNotFoundException, IOException {\n if(gbPhoto == null){\n ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();\n File file = new File(externalContext.getRealPath(\"\")+\"\\\\resources\\\\images\\\\user_default.png\");\n imagePic = new OracleSerialBlob(FileUtils.getBytes(file));\n Long size = imagePic.length();\n photo_profile = new ByteArrayContent(imagePic.getBytes(1, size.intValue()));\n }else{\n imagePic = gbPhoto;\n Long size = gbPhoto.length();\n photo_profile = new ByteArrayContent(gbPhoto.getBytes(1, size.intValue()));\n }\n }",
"public void setPicture(String picture) {\n this.picture = picture;\n }",
"private File setUpPhotoFile() throws IOException {\n\n File f = createImageFile();\n mCurrentPhotoPath = f.getAbsolutePath();\n\n return f;\n }",
"public void setPicture(javax.activation.DataHandler param) {\r\n localPictureTracker = param != null;\r\n\r\n this.localPicture = param;\r\n }",
"@Override\n\tvoid postarFoto() {\n\n\t}",
"public static void setOriginalFilename(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, ORIGINALFILENAME, value);\r\n\t}",
"public void setOfficialFileWebpage(org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.set(this.model, this.getResource(), OFFICIALFILEWEBPAGE, value);\r\n\t}",
"public void setActive(boolean b)\r\n\t //@ requires File(?fid, _, ?info);\r\n\t //@ ensures File(fid, b, info);\r\n\t{\r\n\t\t////@ open File(fid, _, info); // auto\r\n\t\t////@ open DedicatedFile(fid, ?d1, _, ?siblist, ?info2); // auto\r\n\t\tFile thiz = this;\r\n\t\t////@ open thiz.File(fid, _, ?info3); // auto\r\n\t\tactive = b;\r\n\t\t////@ close thiz.File(fid, b, info3); // auto\r\n\t\t////@ close DedicatedFile(fid, d1, b, siblist, info2); // auto\r\n\t\t////@ close File(fid, b, info); // auto\r\n\t}",
"void setImageResource(String imageResource) throws IOException;",
"private void setProfileImage() {\n if(mCurrentUser!= null && mCurrentUser.getProfileImageUrl() != null) {\n //Glide.with(getContext()).load(mCurrentUser.getProfileImageUrl())\n // .placeholder(R.drawable.ic_photo)\n // .error(R.drawable.ic_camera)\n // .fitCenter()\n // .into(mIvComposeUserProfilePicture);\n\n Picasso.with(getContext()).load(mCurrentUser.getProfileImageUrl())\n .transform(new RoundedCornersTransformation(2,2))\n .placeholder(R.drawable.ic_photo)\n .error(R.drawable.ic_camera)\n .into(mIvComposeUserProfilePicture);\n }\n }",
"public void setFile(File file)\n {\n this.file = file;\n }",
"public Photo() {\n\t\tthis(UUID.randomUUID().toString() + \".jpg\");\n\t}",
"private void guardarFoto() {\n if (foto != null && is != null) {\n\n Image foto_Nueva;\n foto_Nueva = foto.getScaledInstance(frmPersona.getLblFoto().getWidth(), frmPersona.getLblFoto().getHeight(), Image.SCALE_SMOOTH);\n frmPersona.getLblFoto().setIcon(new ImageIcon(foto_Nueva));\n cancelarFoto();\n ctrFrmPersona.pasarFoto(is);\n } else {\n JOptionPane.showMessageDialog(vtnWebCam, \"Aun no se a tomado una foto.\");\n }\n\n }",
"public void setFile(DefaultStreamedContent file) {\n this.file = file;\n }",
"public void setOriginalArtist(Contact value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALARTIST, value);\r\n\t}",
"public static void setOfficialFileWebpage( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, OFFICIALFILEWEBPAGE, value);\r\n\t}",
"public void setUpDefaultAvatar(User user) throws IOException,\n\t\t\tURISyntaxException;",
"protected final void setFileInformation( FileInfo fInfo) {\n\t\tm_info = fInfo;\n\t}",
"public void setFileId(Long fileId) {\n/* 31:31 */ this.fileId = fileId;\n/* 32: */ }",
"public Builder setFile(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n file_ = value;\n onChanged();\n return this;\n }",
"public void setFileUrl(String fileUrl);",
"public void setFilmImagePath(Film film, String newImagePath) {\n filmEdit.setFilmImagePath(film, newImagePath);\n }"
] | [
"0.5908851",
"0.5542126",
"0.52767044",
"0.52643526",
"0.52450705",
"0.52287763",
"0.52103454",
"0.5205919",
"0.5164473",
"0.5135823",
"0.5128644",
"0.5128402",
"0.5128402",
"0.512068",
"0.5104686",
"0.50753266",
"0.50142515",
"0.5003182",
"0.4994797",
"0.49662146",
"0.49659342",
"0.49583557",
"0.49373186",
"0.49222738",
"0.49037176",
"0.48995918",
"0.4896212",
"0.48899132",
"0.48882332",
"0.48709178",
"0.48673534",
"0.48633736",
"0.48610392",
"0.48571578",
"0.48548222",
"0.48317483",
"0.48291406",
"0.4823229",
"0.48123994",
"0.48123994",
"0.4798812",
"0.47913054",
"0.47864568",
"0.47845706",
"0.47724563",
"0.47700816",
"0.4765759",
"0.47629538",
"0.47591978",
"0.47565654",
"0.47545242",
"0.4743982",
"0.4738574",
"0.47168922",
"0.46991426",
"0.46987617",
"0.4696513",
"0.4690892",
"0.46821073",
"0.46762365",
"0.46717414",
"0.4666199",
"0.4647559",
"0.46422789",
"0.4636637",
"0.46360362",
"0.46208227",
"0.46190217",
"0.46114954",
"0.46109718",
"0.4609638",
"0.460571",
"0.460571",
"0.4592428",
"0.45788345",
"0.45777172",
"0.45741042",
"0.45710447",
"0.4568723",
"0.45687023",
"0.45626923",
"0.45611766",
"0.45576814",
"0.45479655",
"0.45406598",
"0.45391575",
"0.45274922",
"0.45241386",
"0.45139736",
"0.4509926",
"0.45090887",
"0.45083758",
"0.4500693",
"0.4498513",
"0.44976172",
"0.44945142",
"0.44934958",
"0.44887683",
"0.44882274",
"0.44879195"
] | 0.64146465 | 0 |
Gets the nombre value for this DtCurso. | public java.lang.String getNombre() {
return nombre;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getNomeCurso()\n\t{\n\t\t// Retorna o nome do Curso\n\t\treturn cursoNome;\n\t}",
"public java.lang.String getNombreComercial() {\n java.lang.Object ref = nombreComercial_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n nombreComercial_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getName()\n {\n ensureLoaded();\n return m_clzName.getValue();\n }",
"public String getNombre() {\r\n\t\treturn nombre;\r\n\t}",
"public String getNombre() {\r\n\t\treturn nombre;\r\n\t}",
"public String getNombre() {\r\n\t\treturn nombre;\r\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String nombreCanciones() {\r\n\t\t\r\n\t\tString titulo=\"\";\r\n\t\tfor(int i=0; i<misCanciones.size();i++) {\r\n\t\t\ttitulo=misCanciones.get(i).getTitulo();\r\n\t\t}\r\n\t\t\r\n\t\treturn titulo;\r\n\t\t\r\n\t}",
"public String getNombre() {\n\t\treturn this.nombre;\n\t}",
"@Override\n\tpublic String getName() {\n\t\treturn nombre;\n\t}",
"public String getCognomeNome() {\n\t\treturn this.cognome + \" \" + this.nome;\n\t}",
"public java.lang.String getCsp_Nombre() {\n return csp_Nombre;\n }",
"public String getName() {\n\t\tInteger inicio = indices.elementAt(0);\n\t\tInteger fin = (indices.size() > 1 ? indices.elementAt(1) : contenido.length());\n\t\treturn contenido.substring(inicio, fin-1);\n\t}",
"public String getNombre() {\n return this._nombre;\n }",
"@java.lang.Override\n public java.lang.String getNombreComercial() {\n java.lang.Object ref = nombreComercial_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n nombreComercial_ = s;\n return s;\n }\n }",
"public String getNombre(){\n\t\treturn nombre;\n\t}",
"@Override\n\tpublic String getNombre() {\n\t\treturn nombre;\n\t}",
"public java.lang.String getNombreCompleto()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOMBRECOMPLETO$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public String getName() {\n\t\treturn ((name != null) && !name.isEmpty()) ? name\n\t\t\t\t: (\"[\" + Long.toString(dciId) + \"]\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t}",
"public String getNombre() {\n\t\treturn producto.getNombre();\n\t}",
"@Override\n\tpublic java.lang.String getName() {\n\t\treturn _lineaGastoCategoria.getName();\n\t}",
"public String nome() {\n\t\treturn this.nome;\n\t}",
"@Column(name = \"SCNOMBRE\")\n\tpublic String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getCVCTG_NOMBRE(){\n\t\treturn this.myCvctg_nombre;\n\t}",
"public char getName(){\n\t\treturn tipo;\n\t}",
"public String getName() {\n\tif (num_comp == 0)\n\t return(\"\");\n\treturn(comp[num_comp-1]);\n }",
"public String getNombreCompleto() {\r\n return nombreCompleto;\r\n }",
"public String getNombre() {\r\n return nombre;\r\n }",
"public String getNombre() {\r\n return nombre;\r\n }",
"public String getNombre() {\r\n return nombre;\r\n }",
"public String getNombre() {\r\n return nombre;\r\n }",
"public String getNombre() {\r\n return nombre;\r\n }",
"public String getNombre() {\r\n return nombre;\r\n }",
"public String name() {\n return celestialName;\n }",
"public String getcName() {\n return cName;\n }",
"public String getNombre() {\n\t\treturn mNombre;\n\t}",
"@AutoEscape\n\tpublic String getNomDistrito();",
"public String getNomeClasse() {\n\t\treturn jlNomeClasse.getText();\n\t}",
"public String getCUSU_NOMBRES(){\n\t\treturn this.myCusu_nombres;\n\t}",
"public String getNombre() {\n return this.nombre;\n }",
"public java.lang.String getNombre()\r\n {\r\n return this.nombre;\r\n }",
"public String getName() {\n return this.id + \", \" + this.nom + \" \" + this.prenom + \", \" + this.cin;\n }",
"String getCName() {\n return nameTF.getText();\n }",
"public String name()\n {\n\tint index = indexOf();\n\treturn (index < 0 || index >= 16 || cConstantNameList == null) ? null : cConstantNameList[index];\n }",
"public String getNombre(){\r\n return beneficiario[1].toString();\r\n }",
"public String getNombre() {\r\n return Nombre;\r\n }",
"public String getNombre_servidor() {\n\t\treturn nombre_servidor;\n\t}",
"@Override\n public String getNombre(){\n \n return nombreServicio;\n }",
"public org.apache.xmlbeans.XmlString xgetNombreCompleto()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NOMBRECOMPLETO$0, 0);\n return target;\n }\n }",
"public String getNombre() {\n return nombre;\n }",
"public String getNombre() {\n return nombre;\n }",
"public String getNombre() {\n return nombre;\n }",
"public String getNombre() {\n return nombre;\n }",
"public String getNombre() {\n return nombre;\n }",
"public String getNombre() {\n return nombre;\n }",
"public String getNombre() {\n return nombre;\n }",
"public String getNombre() {\n return nombre;\n }",
"public String getNombre() {\n return nombre;\n }",
"public String getNombre() {\n return nombre;\n }",
"public String getNombre() {\n return nombre;\n }",
"public String getNombre() {\n return nombre;\n }",
"public String getNombre() {\n return nombre;\n }",
"public String getNombre() {\n return nombre;\n }",
"public String getNombre() {\n return nombre;\n }",
"public String getNombre() {\n return nombre;\n }",
"public String getComnoName() {\r\n return comnoName;\r\n }",
"public String getNomeGiocatore(int i) {\n return null;\r\n }",
"public java.lang.String getNrContrato() {\n return nrContrato;\n }",
"private static String digitarNombre() {\n\t\tString nombre;\n\t\tSystem.out.println(\"Digite el nombre del socio: \");\n\t\tnombre = teclado.next();\n\t\treturn nombre;\n\t}",
"public String getCidade() {// Retorna o nome da cidade.\r\n\t\treturn cidade;\r\n\t}",
"public String getClName() {\r\n return clName;\r\n }",
"public String getNombre()\r\n {\r\n return nombre;\r\n }",
"public String getNomor() {\n return this.nomor;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn this.nombre;\n\t}",
"public String getCognome() {\r\n return cognome;\r\n }",
"public String getName() {\r\n\t\treturn name.get();\r\n\t}",
"public String getNombreClase() { return (this.nombreClase == null) ? \"\" : this.nombreClase; }",
"public String getName() {\n return (String) getValue(NAME);\n }",
"public String getNom() {\n\t\treturn null;\r\n\t}",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getNombreComercialBytes() {\n java.lang.Object ref = nombreComercial_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n nombreComercial_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getClasz() {\r\n \t\treturn clasz;\r\n \t}",
"public String getCurp(){\r\n return beneficiario[0].toString();\r\n }",
"@Override\r\n\tpublic long getNombreOperation(String numCpte) {\n\t\treturn dao.getNombreOperation(numCpte);\r\n\t}",
"public Integer getIdCurso() {\r\n return idCurso;\r\n }",
"@Override\n public String getName() {\n return netcdfCS.getName();\n }",
"public Object getNome() {\n\t\treturn null;\n\t}",
"public String getName() {\n return name.get();\n }",
"public String getCnicNo() {\n return (String)getAttributeInternal(CNICNO);\n }"
] | [
"0.73413455",
"0.6695504",
"0.66818917",
"0.66551626",
"0.66551626",
"0.66551626",
"0.6627157",
"0.6627157",
"0.6627157",
"0.6627157",
"0.6627157",
"0.6627157",
"0.6627157",
"0.6627157",
"0.6627157",
"0.6627157",
"0.6627157",
"0.6627157",
"0.6608268",
"0.6575923",
"0.6543718",
"0.65192074",
"0.64728314",
"0.6444838",
"0.6435967",
"0.6423206",
"0.6421963",
"0.6383103",
"0.638303",
"0.63675314",
"0.63586897",
"0.6345223",
"0.6321501",
"0.6319793",
"0.63128984",
"0.6306486",
"0.6286355",
"0.62514246",
"0.6238363",
"0.6238363",
"0.6238363",
"0.6238363",
"0.6238363",
"0.6238363",
"0.6227903",
"0.62177116",
"0.62100327",
"0.62085444",
"0.62077487",
"0.6201869",
"0.61945045",
"0.616298",
"0.61399955",
"0.61352324",
"0.6129482",
"0.61011565",
"0.6098284",
"0.609059",
"0.6071996",
"0.6060943",
"0.6051811",
"0.6051811",
"0.6051811",
"0.6051811",
"0.6051811",
"0.6051811",
"0.6051811",
"0.6051811",
"0.6051811",
"0.6051811",
"0.6051811",
"0.6051811",
"0.6051811",
"0.6051811",
"0.6051811",
"0.6051811",
"0.6037479",
"0.6036889",
"0.60346407",
"0.6027011",
"0.60157204",
"0.6011419",
"0.60022324",
"0.5998565",
"0.59897643",
"0.5986127",
"0.5984958",
"0.5980644",
"0.5976437",
"0.59725726",
"0.5964969",
"0.5961179",
"0.59609824",
"0.59539443",
"0.59534395",
"0.5953245",
"0.5953051",
"0.59476423",
"0.59439033"
] | 0.6405602 | 28 |
Sets the nombre value for this DtCurso. | public void setNombre(java.lang.String nombre) {
this.nombre = nombre;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setNombre(String nombre) {// ---> SE DEBE PONER EN EL PARAMETRO EL MISMO NOMBRE DEL ATRIBUTO DECLARADO.\r\n\t\tthis.nombre = nombre;\r\n\t}",
"public void setNombre(String nombre) {\r\n this.nombre = nombre;\r\n }",
"public void setNombre(String nombre) {\r\n this.nombre = nombre;\r\n }",
"public void setNombre(String nombre) {\r\n this.nombre = nombre;\r\n }",
"public void setNombre(String nombre) {\r\n\t\tthis.nombre = nombre;\r\n\t}",
"public void setNombre(String nombre) {\r\n\t\tthis.nombre = nombre;\r\n\t}",
"public void setNombre(String nombre) {\r\n\t\tthis.nombre = nombre;\r\n\t}",
"public cABCEmpleados(String nombre) {\r\n this._Nombre = nombre;\r\n }",
"public void setNombre(String nombre){\n\tthis.nombre = nombre;\n }",
"@Override\n public void setNombre(java.lang.String nombre) {\n _partido.setNombre(nombre);\n }",
"public void setnombre(String nombre){\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n\t\tthis.nombre.set(nombre);\n\t}",
"public void setNombre(String nombre) {\n\t\tthis.nombre = nombre;\n\t}",
"public void setNombre(String nombre) {\n\t\tthis.nombre = nombre;\n\t}",
"public void setNombre(String nombre) {\n\t\tthis.nombre = nombre;\n\t}",
"public void setNombre(String nombre) {\n\t\tthis.nombre = nombre;\n\t}",
"public void setNombre(String nombre) {\n\t\tthis.nombre = nombre;\n\t}",
"public void setNombre(String nombre) {\n\t\tthis.nombre = nombre;\n\t}",
"public void setNombre(String nombre) {\n\t\tthis.nombre = nombre;\n\t}",
"public void setNomeCurso(String nome)\n\t{\n\t\tcursoNome = nome;\n\t\tSystem.out.printf(\"Modificado o nome do curso %s\\n\", inicioCurso.getHoraAtual());\n\t}",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n\t\tproducto.setNombre(nombre);\n\t}",
"public void setNombre(String Nombre) {\r\n this.Nombre = Nombre;\r\n }",
"public void setNombre (String val) {\n this.nombre = val;\n }",
"public void setNombre(String nombre)\n {\n this.nombre = nombre;\n }",
"public void setNombreCompleto(String nombreCompleto);",
"@Override\n\tpublic void setNombre(String nombre) {\n\t\tmodel.setNombre(nombre);\n\t}",
"public void setNombreClase(String nombreClase) { this.nombreClase = nombreClase; }",
"public void setNombre(String nom) {\n this.nombre = nom;\n }",
"public void setNombre(String nombre){\n if(nombre == null){\n throw new IllegalArgumentException(\"Nombre de usuario igual a null\");\n }\n this.nombre = nombre;\n }",
"public void setNombreCompleto(java.lang.String nombreCompleto)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOMBRECOMPLETO$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NOMBRECOMPLETO$0);\n }\n target.setStringValue(nombreCompleto);\n }\n }",
"public void setNombre(String nombre)\r\n/* 118: */ {\r\n/* 119:214 */ this.nombre = nombre;\r\n/* 120: */ }",
"public void setNombre(String newNombre) {\n\t\tthis.nombre = newNombre;\n\t}",
"public void setName(String name)\r\n\t{\r\n\t\tthis.nome = nome;\r\n\t}",
"public void setNombre(String nombre) {\n this.nombre = nombre == null ? null : nombre.trim();\n }",
"public void xsetNombreCompleto(org.apache.xmlbeans.XmlString nombreCompleto)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NOMBRECOMPLETO$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NOMBRECOMPLETO$0);\n }\n target.set(nombreCompleto);\n }\n }",
"public Builder setNombreComercial(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n nombreComercial_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void setNombre(String nbre) {\n\t\tthis.operande += result;\n\t\tnotifyObserver(this.operande);\n\t}",
"public void setName(String name) {\n\t\tthis.nome = name;\n\t}",
"@Override\n\tpublic void setName(java.lang.String name) {\n\t\t_lineaGastoCategoria.setName(name);\n\t}",
"public void setNombreUsuario(String nombreUsuario) {\r\n this.nombreUsuario = nombreUsuario;\r\n }",
"public void setName (String n) {\n name = n;\n }",
"public void setName(String n) {\r\n\t\tthis.name = n;\r\n\t}",
"public void setName (String n){\n\t\tname = n;\n\t}",
"Casilla(String nombre){\n this.nombre=nombre; \n }",
"public void actualizarNombrePoder(){\n\t\tString name = ( game.getCurrentSorpresa() == null )?\"No hay sorpresa\":game.getCurrentSorpresa().getClass().getName();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t}",
"public Laboratorio(String nombre) {\r\n\t\tsuper();\r\n\t\tthis.nombre = nombre;\r\n\t}",
"public void setNombre(String nombre)\r\n/* 65: */ {\r\n/* 66: 76 */ this.nombre = nombre;\r\n/* 67: */ }",
"public void setName(String n) {\r\n name = n;\r\n }",
"public void setNombre(String nombre) {this.nombre = nombre;}",
"private void actualizarNombre(Persona persona){\n \n String nombre=IO_ES.leerCadena(\"Inserte el nombre\");\n persona.setNombre(nombre);\n }",
"public void setName(String n) {\n this.name = n;\n }",
"public void setIdMuestra(String nombreMuestra) {\r\n\t\tthis.nombreMuestra = nombreMuestra;\r\n\t}",
"public bebedor(String nombre)\n {\n // initialise instance variables\n this.nombre = nombre;\n alcoholimetro = 0;\n }",
"public void setNombreParaMostrar(String nombreParaMostrar) {\n this.nombreParaMostrar = nombreParaMostrar;\n }",
"public void setNombreUsuario(String nombreUsuario){\n if(nombreUsuario == null){\n throw new IllegalArgumentException(\"Nick de usuario igual a null\");\n }\n this.nombreUsuario = nombreUsuario;\n }",
"@Override\n\tpublic String getName() {\n\t\treturn nombre;\n\t}",
"public Categoria(String pNombre){\n this.nombre = pNombre;\n }",
"public String getNombre() {\r\n\t\treturn nombre;\r\n\t}",
"public String getNombre() {\r\n\t\treturn nombre;\r\n\t}",
"public String getNombre() {\r\n\t\treturn nombre;\r\n\t}",
"public void setNombre(String nombre){\n this.nombre =nombre;\n }",
"public Comida(String nombre){\n super(nombre);\n this.calorias = 10;\n }",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public String getNombre() {\n\t\treturn nombre;\n\t}",
"public static void setName(String n){\n\t\tname = n;\n\t}",
"public void setNombreCompleto(String aNombreCompleto) {\r\n nombreCompleto = aNombreCompleto;\r\n }",
"@Column(name = \"SCNOMBRE\")\n\tpublic String getNombre() {\n\t\treturn nombre;\n\t}",
"public void setNombreLibro(String nombreNuevoLibro)\n {\n this.nombre = nombreNuevoLibro;\n }",
"public void setName(String value) {\n this.name = value;\n }",
"public Comida(String nombre, int calorias){\n super(\"Comida\");\n this.calorias = calorias;\n }",
"@Override public void setEntorno(String nombre, String valor) {\r\n TRAZADOR.info(nombre + \" = \" + valor);\r\n this.sesion.setEntorno(nombre, valor);\r\n }",
"public Ciudad(String nombre)\n {\n this.nombre = nombre;\n }",
"public void setCName(String aValue) {\n String oldValue = cName;\n cName = aValue;\n changeSupport.firePropertyChange(\"cName\", oldValue, aValue);\n }",
"public String getNombre(){\n\t\treturn nombre;\n\t}",
"public void setNom(String nouveauNom) {\r\n if (nouveauNom == null) {\r\n nom = NOM_BIDON;\r\n \r\n } else {\r\n nom = nouveauNom;\r\n }\r\n }",
"public void setName(String n){ name=n; }",
"public void setNom ( String nouveauNom ) {\n if ( nouveauNom == null ) {\n nom = NOM_BIDON;\n } else {\n nom = nouveauNom;\n }\n }"
] | [
"0.69050336",
"0.66386676",
"0.66386676",
"0.66386676",
"0.6620671",
"0.6620671",
"0.6620671",
"0.6605303",
"0.6600713",
"0.6562518",
"0.6550085",
"0.65342516",
"0.6529529",
"0.6529529",
"0.6529529",
"0.6529529",
"0.6529529",
"0.6529529",
"0.6529529",
"0.6528262",
"0.6519209",
"0.6519209",
"0.6519209",
"0.6519209",
"0.6519209",
"0.6519209",
"0.6519209",
"0.6519209",
"0.6519209",
"0.6519209",
"0.6519209",
"0.6519209",
"0.65061235",
"0.6477156",
"0.6398035",
"0.6396936",
"0.6295005",
"0.6282593",
"0.62491953",
"0.6232335",
"0.6187117",
"0.6177638",
"0.6113904",
"0.6062965",
"0.6052021",
"0.6045372",
"0.6042547",
"0.60032636",
"0.600286",
"0.5999151",
"0.59918535",
"0.59680885",
"0.5954546",
"0.5942897",
"0.59397227",
"0.5938941",
"0.593886",
"0.5935128",
"0.59299767",
"0.5907174",
"0.589847",
"0.58941203",
"0.5886299",
"0.58623385",
"0.58604133",
"0.58523095",
"0.5830546",
"0.5819802",
"0.58083284",
"0.5806383",
"0.5806383",
"0.5806383",
"0.5745876",
"0.5735766",
"0.5728874",
"0.5728874",
"0.5728874",
"0.5728874",
"0.5728874",
"0.5728874",
"0.5728874",
"0.5728874",
"0.5728874",
"0.5728874",
"0.5728874",
"0.5728874",
"0.56852585",
"0.567308",
"0.56559443",
"0.5650632",
"0.5631043",
"0.56003326",
"0.5591815",
"0.55822784",
"0.5570758",
"0.5555387",
"0.555163",
"0.5550288",
"0.5525841"
] | 0.6591171 | 10 |
Gets the URL value for this DtCurso. | public java.lang.String getURL() {
return URL;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final String getUrl() {\n return properties.get(URL_PROPERTY);\n }",
"public String getURL() {\r\n\t\treturn dURL.toString();\r\n\t}",
"public String getURL() {\n\t\treturn prop.getProperty(\"URL\");\n\t}",
"public String getUrl() {\n\t\tif (prop.getProperty(\"url\") == null)\n\t\t\treturn \"\";\n\t\treturn prop.getProperty(\"url\");\n\t}",
"@Nonnull public String getURL() {\n return url;\n }",
"public String getURL()\n {\n return getURL(\"http\");\n }",
"public String getURL(){\r\n\t\t \r\n\t\t\r\n\t\treturn rb.getProperty(\"url\");\r\n\t}",
"public String getUrl() {\n\t\t\treturn url;\n\t\t}",
"public UriDt getUrl() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}",
"public UriDt getUrl() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}",
"public UriDt getUrl() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}",
"public java.lang.String getUrl() {\n return url;\n }",
"public String getUrl() {\r\n\t\treturn url;\r\n\t}",
"public String getUrl() {\r\n\t\treturn url;\r\n\t}",
"public String getUrl() {\r\n\t\t\treturn url;\r\n\t\t}",
"public String getUrl() {\n\t\treturn url;\n\t}",
"public String getUrl() {\n\t\treturn url;\n\t}",
"public String getUrl() {\n\t\treturn url;\n\t}",
"public String getUrl() {\n\t\treturn url;\n\t}",
"public String getUrl() {\n\t\treturn url;\n\t}",
"public String getUrl() {\n\t\treturn url;\n\t}",
"public String getUrl() {\n\t\treturn url;\n\t}",
"public String getUrl() {\n\t\treturn url;\n\t}",
"public String getUrl() {\n\t\treturn url;\n\t}",
"public String getUrl() {\n\t\treturn this.url;\n\t}",
"public String getUrl() {\n return this.Url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\r\n return url;\r\n }",
"public String getUrl() {\r\n return url;\r\n }",
"public String getUrl() {\r\n return url;\r\n }",
"public String getUrl() {\r\n return url;\r\n }",
"public String getUrl() {\r\n return url;\r\n }",
"public String getUrl() {\r\n return url;\r\n }",
"public String getUrl() {\r\n return url;\r\n }",
"public String getURL() {\n return url;\n }",
"public String getUrl() {\n return this.url;\n }",
"public String getURL() {\r\n return url;\r\n }",
"public String getUrl()\n {\n return this.url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public java.lang.String getUrl () {\r\n\t\treturn url;\r\n\t}",
"public java.lang.String getUrl(){\r\n return this.url;\r\n }",
"public String getURL() {\r\n\t\treturn url;\r\n\t}",
"public java.lang.CharSequence getURL() {\n return URL;\n }",
"public String getUrl()\n {\n return url;\n }",
"public String getUrl() { /* (readonly) */\n return mUrl;\n }",
"public String getURL() {\n\t\treturn url;\n\t}",
"public String getUrl() {\n\t\tif (null != this.url) {\n\t\t\treturn this.url;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"url\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public String getURL() {\n\t\treturn URL;\n\t}",
"@Schema(description = \"Link to get this item\")\n public String getUrl() {\n return url;\n }",
"public java.lang.CharSequence getURL() {\n return URL;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"@Override\r\n public String getURL() {\n return url;\r\n }",
"@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }",
"@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }",
"@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }",
"@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }",
"public String url() {\n return this.url;\n }",
"private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}",
"public String getUrl() {\n return mUrl;\n }",
"public String getUrl() {\n return mUrl;\n }",
"public String getUrl() {\n return mUrl;\n }",
"public String getUrl() {\n return mUrl;\n }",
"public HttpUrl url() {\n return url;\n }",
"@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}",
"public String getURL() {\n return mURL;\n }",
"public String getURL();",
"public String getUrl(){\n \treturn url;\n }",
"public String getUrl() { return url; }",
"public String getURL() { return url; }",
"public UriDt getUrlElement() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}",
"public UriDt getUrlElement() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}",
"public UriDt getUrlElement() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}",
"public URL getServiceUrl() {\n return url;\n }",
"public NameValue<String, String> getDestURL() {\n return getDestURL(false);\n }",
"public URL getURL() {\n\t\treturn m_URL;\n\t}",
"public String getURL() {\n\t\treturn RequestConstants.BASE_IMAGE_URL+_url;\n\t}",
"public java.lang.String getUrl() {\n java.lang.Object ref = url_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n url_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getUrl() {\n java.lang.Object ref = url_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n url_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }"
] | [
"0.7517532",
"0.74594593",
"0.7307272",
"0.72084814",
"0.71887904",
"0.7185144",
"0.7162042",
"0.7060662",
"0.7052967",
"0.7052967",
"0.7052967",
"0.7047719",
"0.7044732",
"0.7044732",
"0.70372665",
"0.7031093",
"0.7031093",
"0.7031093",
"0.7031093",
"0.7031093",
"0.7031093",
"0.7031093",
"0.7031093",
"0.7031093",
"0.7027758",
"0.7002249",
"0.6974666",
"0.6972918",
"0.6972918",
"0.6972918",
"0.6972918",
"0.6972918",
"0.6972918",
"0.6972918",
"0.6972721",
"0.69681084",
"0.696484",
"0.69563353",
"0.6955128",
"0.6955128",
"0.6955128",
"0.6955128",
"0.6955128",
"0.6955128",
"0.6955128",
"0.6955128",
"0.6955128",
"0.6955128",
"0.6955128",
"0.6955128",
"0.6955128",
"0.6955128",
"0.6955128",
"0.6955128",
"0.6955128",
"0.6955128",
"0.6955128",
"0.6955128",
"0.6955128",
"0.6955128",
"0.69485646",
"0.6922573",
"0.69199467",
"0.6918083",
"0.69071925",
"0.6902142",
"0.68959135",
"0.6894339",
"0.68601936",
"0.6848395",
"0.6847454",
"0.68393177",
"0.68393177",
"0.67957664",
"0.67943364",
"0.67943364",
"0.6788829",
"0.6788829",
"0.67637604",
"0.6757147",
"0.673988",
"0.673988",
"0.673988",
"0.673988",
"0.6691738",
"0.66681474",
"0.6660439",
"0.6634781",
"0.662788",
"0.6600776",
"0.65886176",
"0.65768856",
"0.65768856",
"0.65768856",
"0.65304023",
"0.65285903",
"0.6515034",
"0.651345",
"0.6512754",
"0.6512754"
] | 0.7066637 | 7 |
Sets the URL value for this DtCurso. | public void setURL(java.lang.String URL) {
this.URL = URL;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public sparqles.avro.discovery.DGETInfo.Builder setURL(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.URL = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public void setURL(String url);",
"public SeriesInstance setUrl(UriDt theValue) {\n\t\tmyUrl = theValue;\n\t\treturn this;\n\t}",
"public Series setUrl(UriDt theValue) {\n\t\tmyUrl = theValue;\n\t\treturn this;\n\t}",
"public void setUrl(String url);",
"public void setUrl(String url);",
"public ImagingStudy setUrl(UriDt theValue) {\n\t\tmyUrl = theValue;\n\t\treturn this;\n\t}",
"public void setUrl(URL url)\n {\n this.url = url;\n }",
"public Builder setUrl(\n java.lang.String value) {\n copyOnWrite();\n instance.setUrl(value);\n return this;\n }",
"public Builder setUrl(\n java.lang.String value) {\n copyOnWrite();\n instance.setUrl(value);\n return this;\n }",
"public void setURL(java.lang.CharSequence value) {\n this.URL = value;\n }",
"public final GetHTTP setUrl(final String url) {\n properties.put(URL_PROPERTY, url);\n return this;\n }",
"public Builder setUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n url_ = value;\n onChanged();\n return this;\n }",
"public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n url_ = value;\n onChanged();\n return this;\n }",
"private void setUrl(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000002;\n url_ = value;\n }",
"public native final void setUrl(String url)/*-{\n this.url = url;\n }-*/;",
"public Builder setUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n url_ = value;\n onChanged();\n return this;\n }",
"public void setURL(String _url) { url = _url; }",
"public void setURL(String URL) {\n mURL = URL;\n }",
"public void setUrl(String url) {\n\t\tthis.url = url;\n\t\tthis.handleConfig(\"url\", url);\n\t}",
"public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }",
"public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }",
"public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n url_ = value;\n onChanged();\n return this;\n }",
"public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n url_ = value;\n onChanged();\n return this;\n }",
"public void setUrl(String url) {\n if(url != null && !url.endsWith(\"/\")){\n url += \"/\";\n }\n this.url = url;\n }",
"private void setUrl(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000001;\n url_ = value;\n }",
"public final native void setUrl(String url) /*-{\n this.setUrl(url);\n }-*/;",
"public void setUrl(Uri url) {\n this.urlString = url.toString();\n }",
"void setUrl(String url) {\n this.url = Uri.parse(url);\n }",
"public void setUrl(String url) {\n this.url = url;\n }",
"public void setUrl(String Url) {\n this.Url = Url;\n }",
"public void setHTTP_URL(String url) {\r\n\t\ttry {\r\n\t\t\tURL u = new URL(url);\r\n\t\t\tu.toURI();\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t} catch (URISyntaxException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t\tthis.settings.setProperty(\"HTTP_URL\", url);\r\n\t\tthis.saveChanges();\r\n\t}",
"public void setUrl( String url )\n {\n this.url = url;\n }",
"public void setUrl( String url )\n {\n this.url = url;\n }",
"@DisplayName(\"The URL for the Marketcetera Exchange Server\")\n public void setURL(@DisplayName(\"The URL for the Marketcetera Exchange Server\")\n String inURL);",
"@Override\n public void setUrl(String url) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Directory manager \" + directoryManager);\n }\n try {\n super.setUrl(directoryManager.replacePath(url));\n } catch (Exception e) {\n LOGGER.error(\"Exception thrown when setting URL \", e);\n throw new IllegalStateException(e);\n }\n }",
"public void setUrl(String url) {\r\n this.url = url;\r\n }",
"public void setUrl(String url) {\r\n this.url = url;\r\n }",
"public void setUrl(String url) {\r\n this.url = url;\r\n }",
"public void setUrl(String url){\n\t\t_url=url;\n\t}",
"public void setUrl(String url)\n {\n this.url = url;\n }",
"public void setUrl (java.lang.String url) {\r\n\t\tthis.url = url;\r\n\t}",
"public void setUrl(String url) {\n this.url = url;\n }",
"public void setUrl(String url) {\n this.url = url;\n }",
"public void setUrl(String url) {\n this.url = url;\n }",
"public void setUrl(String url) {\n this.url = url;\n }",
"public void setUrl(String url) {\n this.url = url;\n }",
"public void setUrl(String url) {\n this.url = url;\n }",
"public void setUrl(String url) {\n this.url = url;\n }",
"public void setUrl(String url) {\n this.url = url;\n }",
"public void setUrl(String url) {\r\n\t\tthis.url = url;\r\n\t}",
"public void setUrl(String url) {\r\n\t\tthis.url = url;\r\n\t}",
"private void setURL(String url) {\n try {\n URL setURL = new URL(url);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"public URL setURL(URL url) {\r\n if (url == null)\r\n throw new IllegalArgumentException(\r\n \"A null url is not an acceptable value for a PackageSite\");\r\n URL oldURL = url;\r\n myURL = url;\r\n return oldURL;\r\n }",
"public void setUrl(java.lang.String url) {\n this.url = url;\n }",
"public void setURL(String key, URL value) {\n\t\tif (value != null && !value.equals(getDefault(key)))\n\t\t\tinternal.setProperty(key, value.toString());\n\t\telse\n\t\t\tinternal.remove(key);\n\t}",
"public void setServerUrl(String newUrl) {\n if(newUrl == null){\n return;\n }\n props.setProperty(\"url\", newUrl);\n saveProps();\n }",
"public void setUrl(String url) {\r\n hc.setUrl(url);\r\n }",
"public void setUrl(String url){\n this.URL3 = url;\n }",
"public SeriesInstance setUrl( String theUri) {\n\t\tmyUrl = new UriDt(theUri); \n\t\treturn this; \n\t}",
"public void setUrl(String url) {\n this.url = url;\n }",
"public void setURL(String url) {\n\t\tthis.url = url;\n\t}",
"public void setUrl(String url) {\n\t\tthis.url = utf8URLencode(url);\n\t}",
"private void setKlarosUrl(final String value) {\n\n klarosUrl = value;\n }",
"public Series setUrl( String theUri) {\n\t\tmyUrl = new UriDt(theUri); \n\t\treturn this; \n\t}",
"public void setUrl(String url) {\n\t\tthis.url = url;\n\t}",
"public void setUrl(String url) {\n\t\tthis.url = url;\n\t}",
"public void setUrl(String url) {\n\t\tthis.url = url;\n\t}",
"public void setUrl(String url) {\n\t\tthis.url = url;\n\t}",
"public final void setUrl(final String url) {\n if (StringUtils.isNotBlank(url)) {\n this.url = url.replaceAll(\" \", \"%20\");\n }\n }",
"public void setUrl(String url) {\n\n\t\ttry {\n\t\t\tthis.url = new URL(url);\n\t\t\tif (url.startsWith(\"https\")) {\n\t\t\t\tthis.httpsEnabled = true;\n\t\t\t}\n\t\t}\n\t\tcatch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void setUrl(String newUrl) {\r\n\t\turl = newUrl;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tif (cn != null) {\r\n\t\t\t\tcn.close();\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tcn = null;\r\n\t\tinit();\r\n\t}",
"public void setURLObject(URL url) {\n\t\tthis.url = url;\n\t}",
"public void setUrlValue(org.biocatalogue.x2009.xml.rest.TagsParameters.Sort.UrlValue.Enum urlValue)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(URLVALUE$2);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(URLVALUE$2);\r\n }\r\n target.setEnumValue(urlValue);\r\n }\r\n }",
"public void setUrl(String url) {\r\n this.url = url == null ? null : url.trim();\r\n }",
"public void setUrl(String url) {\r\n this.url = url == null ? null : url.trim();\r\n }",
"public void setUrl(String url) {\r\n this.url = url == null ? null : url.trim();\r\n }",
"public void setUrl(String url) {\n\t\tthis.url = url == null ? null : url.trim();\n\t}",
"public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }",
"public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }",
"public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }",
"public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }",
"public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }",
"public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }",
"public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }",
"public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }",
"public void setURL(String url) {\n \t\tblueURL = url;\n\t}",
"@JsonIgnore\n public void setDataUrl(String dataUrl) {\n this.dataUrl = dataUrl;\n }",
"public void setURL(String url) {\n\t\tboolean changed = url==null ? this.url!=null : !url.equals(this.url);\n\t\tif (changed) {\n\t\t\tstop();\n\t\t\tthis.url = url;\n\t\t\tstart();\n\t\t}\n\t}",
"@IcalProperty(pindex = PropertyInfoIndex.PUBLISH_URL,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true)\n @NoProxy\n public void setPublishUrl(final String val) {\n replaceXproperty(BwXproperty.bedeworkPublishUrl, val);\n }",
"public void setUrl(String tmp) {\n this.url = tmp;\n }",
"Builder addUrl(String value);",
"public void setURL() {\n\t\tURL = Constant.HOST_KALTURA+\"/api_v3/?service=\"+Constant.SERVICE_KALTURA_LOGIN+\"&action=\"\n\t\t\t\t\t\t+Constant.ACTION_KALTURA_LOGIN+\"&loginId=\"+Constant.USER_KALTURA+\"&password=\"+Constant.PASSWORD_KALTURA+\"&format=\"+Constant.FORMAT_KALTURA;\n\t}",
"public void setServer(URL url) {\n\n\t}",
"T setUrlTarget(String urlTarget);",
"public Builder setVmUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n vmUrl_ = value;\n onChanged();\n return this;\n }",
"Builder addUrl(URL value);",
"@JsonProperty(\"url\")\n public void setUrl(String url) {\n this.url = url;\n }",
"@JsonProperty(\"url\")\n public void setUrl(String url) {\n this.url = url;\n }",
"public StockEvent setUrl(String url) {\n this.url = url;\n return this;\n }"
] | [
"0.74527645",
"0.7248818",
"0.71478957",
"0.7074591",
"0.7074037",
"0.7074037",
"0.707027",
"0.7011079",
"0.69624954",
"0.69624954",
"0.69587797",
"0.6950233",
"0.6899247",
"0.6883242",
"0.6857968",
"0.68577117",
"0.685117",
"0.68411046",
"0.6807549",
"0.68071824",
"0.67977023",
"0.67784405",
"0.67684627",
"0.67684627",
"0.676774",
"0.676293",
"0.6665897",
"0.6660836",
"0.66308373",
"0.65995085",
"0.6582938",
"0.6579533",
"0.6538318",
"0.6538318",
"0.6535133",
"0.65108925",
"0.6482497",
"0.6482497",
"0.6482497",
"0.64545774",
"0.64178485",
"0.6405669",
"0.64019847",
"0.64019847",
"0.64019847",
"0.64019847",
"0.64019847",
"0.64019847",
"0.64019847",
"0.64019847",
"0.63993037",
"0.63993037",
"0.63942325",
"0.6389328",
"0.6388341",
"0.63844705",
"0.6382299",
"0.6378731",
"0.63734823",
"0.63655376",
"0.6354137",
"0.63449",
"0.6338154",
"0.63287634",
"0.62760323",
"0.6269028",
"0.6269028",
"0.6269028",
"0.6269028",
"0.62637645",
"0.62636673",
"0.6249086",
"0.6204067",
"0.6195817",
"0.6189825",
"0.6189825",
"0.6189825",
"0.6186553",
"0.61865085",
"0.61865085",
"0.61865085",
"0.61865085",
"0.61865085",
"0.61865085",
"0.61865085",
"0.61865085",
"0.617237",
"0.6167224",
"0.61607057",
"0.61433965",
"0.6140851",
"0.61351955",
"0.61172765",
"0.60999584",
"0.6056195",
"0.6037948",
"0.6023606",
"0.6015053",
"0.6015053",
"0.6007775"
] | 0.66530746 | 28 |
Return type metadata object | public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MetadataType getType();",
"public MetadataType getType() {\n return type;\n }",
"public MilanoTypeMetadata.TypeMetadata getMetadata()\n {\n if (typeMetadata == null) {\n return null;\n }\n\n return typeMetadata;\n }",
"private Metadata getMetadata(RubyModule type) {\n for (RubyModule current = type; current != null; current = current.getSuperClass()) {\n Metadata metadata = (Metadata) current.getInternalVariable(\"metadata\");\n \n if (metadata != null) return metadata;\n }\n \n return null;\n }",
"public Metadata getMetadata( MetadataType type )\n\t{\n\t\tfor( Metadata metadata: mMetadata )\n\t\t{\n\t\t\tif( metadata.getMetadataType() == type )\n\t\t\t{\n\t\t\t\treturn metadata;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"Metadata getMetaData();",
"public List<TypeMetadata> getTypeMetadata() {\n return types;\n }",
"@Override\n public Class<? extends Metadata> getMetadataType() {\n throw new RuntimeException( \"Not yet implemented.\" );\n }",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"public MetaData getMetaData();",
"private Class<?> getType(final Object metadata, final ValueNode node) throws ParseException {\n if (node.type != null) {\n return readType(node);\n }\n Class type;\n if (metadata instanceof ReferenceSystemMetadata || metadata instanceof Period || metadata instanceof AbstractTimePosition || metadata instanceof Instant) {\n final Method getter = ReflectionUtilities.getGetterFromName(node.name, metadata.getClass());\n return getter.getReturnType();\n } else {\n type = standard.asTypeMap(metadata.getClass(), KeyNamePolicy.UML_IDENTIFIER, TypeValuePolicy.ELEMENT_TYPE).get(node.name);\n }\n final Class<?> special = specialized.get(type);\n if (special != null) {\n return special;\n }\n return type;\n }",
"public Map<String, Variant<?>> GetMetadata();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public TypeSummary getTypeSummary() {\r\n return type;\r\n }",
"String provideType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"public Type getType();",
"@Override\n public String toString() {\n return metaObject.getType().toString();\n }",
"public String metadataClass() {\n return this.metadataClass;\n }",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"abstract public Type getType();",
"public String type();",
"private String getType(){\r\n return type;\r\n }",
"protected abstract String getType();",
"Coding getType();",
"@Override\n TypeInformation<T> getProducedType();",
"type getType();",
"TypeDefinition createTypeDefinition();",
"abstract public String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract Type getType();",
"protected static LibMetaData createLibMetaData(LibMetaData lmd) {\n MetaData metaData = new MetaData();\r\n metaData.add(\"IsThing\", new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Items\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(0), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Number\", new Integer(1), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(THING, metaData);\r\n \r\n metaData = new MetaData(lmd.get(\"thing\"));\r\n metaData.add(\"IsItem\", new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Items\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(1), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Name\", \"Thing\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"NameType\", new Integer(Description.NAMETYPE_NORMAL), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Z\", new Integer(Thing.Z_ITEM), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(ITEM, metaData);\r\n \r\n metaData = new MetaData(lmd.get(\"thing\"));\r\n metaData.add(\"IsBeing\",new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Creatures\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(340), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"IsMobile\",new Integer(1), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"IsBlocking\", new Integer(1), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"MoveCost\", new Integer(100), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"DeathDecoration\", \"blood pool\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"NameType\", new Integer(Description.NAMETYPE_NORMAL), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Z\", new Integer(Thing.Z_MOBILE), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(BEING, metaData);\r\n \r\n lmd = createEffectMetaData(lmd);\r\n lmd = createPoisonMetaData(lmd);\r\n lmd = createFoodMetaData(lmd);\r\n lmd = createScrollMetaData(lmd);\r\n lmd = createMissileMetaData(lmd);\r\n lmd = createRangedWeaponMetaData(lmd);\r\n lmd = createPotionMetaData(lmd);\r\n lmd = createWandMetaData(lmd);\r\n lmd = createRingMetaData(lmd);\r\n lmd = createCoinMetaData(lmd);\r\n lmd = createArmourMetaData(lmd);\r\n lmd = createWeaponMetaData(lmd);\r\n lmd = createSecretMetaData(lmd);\r\n lmd = createSpellBookMetaData(lmd);\r\n lmd = createChestMetaData(lmd);\r\n lmd = createDecorationMetaData(lmd);\r\n lmd = createSceneryMetaData(lmd);\r\n lmd = createPortalMetaData(lmd);\r\n lmd = createTrapMetaData(lmd);\r\n createMonsterMetaData(lmd);\r\n createPersonMetaData(lmd);\r\n return lmd;\r\n }",
"String getTypeAsString();",
"public gov.niem.niem.structures._2_0.MetadataType getMetadata()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.niem.niem.structures._2_0.MetadataType target = null;\n target = (gov.niem.niem.structures._2_0.MetadataType)get_store().find_element_user(METADATA$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"TypeRef getType();",
"String getMetadataClassName();"
] | [
"0.7969707",
"0.7373198",
"0.7358018",
"0.7090138",
"0.67353225",
"0.67259765",
"0.66725683",
"0.65644145",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6510972",
"0.648206",
"0.6352795",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.62937546",
"0.6285329",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.627527",
"0.6265675",
"0.6235292",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6221452",
"0.6209023",
"0.6196509",
"0.61801785",
"0.6180045",
"0.6168281",
"0.61679584",
"0.6166462",
"0.6161522",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6141369",
"0.6140734",
"0.6133515",
"0.61228573",
"0.6116976",
"0.6111749"
] | 0.0 | -1 |
Validate DTO type has MappingClass annotation. | public static boolean validate(Class<?> dtoType) {
return ObjectUtils.hasAnnotation(dtoType, MappingClass.class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isClassMapping() {\n return !path.isEmpty() && !targetClass.isEmpty()\n && condAttr.isEmpty() && condAttrValue.isEmpty() && source.isEmpty()\n && sourceName.isEmpty() && targetProperty.isEmpty() && targetType.isEmpty();\n }",
"public boolean canHandleConverter(Class<?> clazz)\n {\n return ClassUtils.isAssignable(clazz, targetClass);\n }",
"boolean isSupportedMappedType(String javaTypeName);",
"@Override\r\n\t\tpublic boolean shouldSkipClass(Class<?> clazz) {\n\t\t\tif (clazz.equals(BeanPropertyBindingResult.class)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}",
"public boolean supports(Class<?> clazz) {\n\t\treturn AuthorDTO.class == clazz;\n\t}",
"public boolean supports(Class<?> clazz) {\n\t\treturn clazz.isAssignableFrom(InvoiceDTO.class);\n\t}",
"public DtoType getDto(EntityType entity, Class<DtoType> myClass) throws ClassNotFoundException, InstantiationException, IllegalAccessException;",
"private void checkIfIsAValidClass(IDatabaseClass annotationClass){\n if (annotationClass == null || annotationClass.tableName() == \"\") {\n throw new CustomException(\"No table name found in your class declaration!\");\n }\n }",
"public void testClassAnnotation() {\r\n TestHelper.assertClassAnnotation(ConfluenceManagementServiceLocal.class, Local.class);\r\n }",
"@Test\n public void shouldHaveANoArgsConstructor() {\n assertThat(AssignForceBatch.class, hasValidBeanConstructor());\n }",
"boolean isValid( ANNOTATION annotation, TYPE value );",
"@WebMethod(operationName = \"classIsValid\")\r\n public Boolean classIsValid(@WebParam(name = \"Class_ID\") int Class_ID) {\r\n //class Class_ID exists or not\r\n try {\r\n org.netbeans.xml.schema.classxmlschema.Class cla = daoService.getClassInfo(Class_ID);\r\n\r\n if (cla != null) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n\r\n } catch (Exception e) {\r\n return false;\r\n }\r\n }",
"public PersonaDTO(){}",
"@Test\n public void shouldAllowClassOnWhitelistedClassAndNonWhitelistedPackage() {\n // given\n validator.setAllowedClasses(SOME_CLASS);\n validator.setAllowedPackages(ANOTHER_PACKAGE);\n // then\n assertThat(validator.validate(SOME_CLASS)).isTrue();\n }",
"TypeDescription validated();",
"public void validateDtoIn(Object dtoIn, ErrorDefinition error) {\n ValidationResult validationResult = validator.validate(dtoIn);\n checkValidationResult(error, validationResult);\n }",
"protected ValidationComponent createClassMappingComponent (\n\t\tfinal PersistenceClassElement persistenceClass)\n\t{\n\t\treturn new ValidationComponent ()\n\t\t{\n\t\t\tpublic void validate () throws ModelValidationException\n\t\t\t{\n\t\t\t\tPersistenceFieldElement[] fields = persistenceClass.getFields();\n\t\t\t\tString className = getClassName();\n\n\t\t\t\tif ((fields == null) || fields.length == 0)\n\t\t\t\t{\n\t\t\t\t\tthrow constructClassException(\n\t\t\t\t\t\tModelValidationException.WARNING, className, null, \n\t\t\t\t\t\t\"util.validation.class_no_fields\");\t\t//NOI18N\n\t\t\t\t}\n\t\t\t\telse\t// has fields, check for primary table\n\t\t\t\t{\n\t\t\t\t\tMappingClassElement mappingClass = \n\t\t\t\t\t\tgetMappingClass(className);\n\n\t\t\t\t\tif ((mappingClass == null) || \n\t\t\t\t\t\t(mappingClass.getTables().size() == 0))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow constructClassException(\n\t\t\t\t\t\t\tModelValidationException.WARNING, className, null, \n\t\t\t\t\t\t\t\"util.validation.class_not_mapped\");\t\t//NOI18N\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}",
"public CustomBeanPropertyStructMapper(Class<T> mappedClass) {\r\n\t\tsuper(mappedClass);\r\n\t}",
"public boolean getErrorOnUseBeanInvalidClassAttribute();",
"@Override\n\tpublic boolean isObjectTypeExpected() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean canConvert(Class arg0) {\n\t\treturn arg0.equals(Page.class);\n\t}",
"public boolean isAcceptable(Class<? extends DataElement> clazz);",
"void processType(@Observes ProcessAnnotatedType<?> pat) throws InvalidAnnotationException {\n par.checkAnnotatedType(pat);\n MvcExtension.processAnnotatedType(pat);\n }",
"protected Object createBeanMatchingType(MappingContext mappingContext) {\n // clazz is never null given the only path that leads to this method already performs that check\n final Class<?> clazz = mappingContext.getTypeInformation().getSafeToWriteClass();\n try {\n return clazz.getDeclaredConstructor().newInstance();\n } catch (ReflectiveOperationException e) {\n throw new ConfigMeMapperException(mappingContext, \"Could not create object of type '\"\n + clazz.getName() + \"'. It is required to have a default constructor\", e);\n }\n }",
"@Override // solo para declarar que clase entity o pojo vamos a validar\r\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn Usuario.class.isAssignableFrom(clazz); // si la clase Usuario es la clase que se esta psando por argumento a ese tipo devuelve true\r\n\t}",
"public SchemaDto() {\n }",
"@Bean\n public TypeMap<CargoDto, Cargo> getCargoDtoCargoTypeMap() {\n return getModelMapper().createTypeMap(CargoDto.class, Cargo.class, \"CargoDtoCargo\")\n .addMappings(mapper -> mapper.when(isNotNull()).map(CargoDto::getNumber, Cargo::setNumber))\n .addMappings(mapper -> mapper.when(isNotNull()).map(CargoDto::getName, Cargo::setName))\n .addMappings(mapper -> mapper.when(isNotNull()).map(CargoDto::getDescription, Cargo::setDescription))\n .addMappings(mapper -> mapper.when(isNotNull()).map(CargoDto::getState, Cargo::setState))\n .addMappings(mapper -> mapper.when(isNotNull()).map(CargoDto::getWeight, Cargo::setWeight))\n\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(CargoDto::getCarriage, Cargo::setCarriage))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(CargoDto::getDepartureWaypoint, Cargo::setDepartureWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(CargoDto::getDestinationWaypoint, Cargo::setDestinationWaypoint));\n }",
"public AbstractTypeMapping()\n {\n super();\n }",
"@Mapper(componentModel = \"cdi\", uses = EnumMapper.class)\npublic interface DocumentoMapper {\n\n DocumentoDTO toDTO(Documento documento);\n\n Documento fromDTO(DocumentoDTO documentoDTO);\n}",
"@Bean\n public TypeMap<CarriageDto, Carriage> getCarriageDtoCarriageTypeMap() {\n return getModelMapper().createTypeMap(CarriageDto.class, Carriage.class, \"CarriageDtoCarriage\")\n .addMappings(mapper -> mapper.when(isNotNull()).map(CarriageDto::getUniqueNumber, Carriage::setUniqueNumber))\n .addMappings(mapper -> mapper.when(isNotNull()).map(CarriageDto::getStatus, Carriage::setStatus))\n .addMappings(mapper -> mapper.when(isNotNull()).map(CarriageDto::getCustomerName, Carriage::setCustomerName))\n .addMappings(mapper -> mapper.when(isNotNull()).map(CarriageDto::getInitiateDate, Carriage::setInitiateDate))\n .addMappings(mapper -> mapper.when(isNotNull()).map(CarriageDto::getFinishDate, Carriage::setFinishDate))\n .addMappings(mapper -> mapper.when(isNotNull()).map(CarriageDto::getEstimatedLeadTime, Carriage::setEstimatedLeadTime))\n\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(CarriageDto::getWaypoints, Carriage::setWaypoints))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(CarriageDto::getVehicle, Carriage::setVehicle))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(CarriageDto::getDrivers, Carriage::setDrivers))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(CarriageDto::getCargoes, Carriage::setCargoes));\n }",
"@Override\n public boolean canConvert(Class type) {\n return AbstractMap.class.isAssignableFrom(type);\n }",
"public void onScanType(Set<? extends Annotation> annotations, Class<?> clazz, Object instance);",
"boolean isHandled(Class<?> type);",
"@Test(expected = IllegalArgumentException.class)\n public void testErroneousSubclassOfTargetShape() throws IllegalArgumentException {\n GraphRequestModel requestModel = createCustomClassGraphRequestModel();\n requestModel.setSubclassOfTargetShape(SPACE);\n GraphRequestValidator.validateRequest(requestModel);\n }",
"public boolean usesTypeAnnotations() {\n return true;\n }",
"private boolean ensureXSDTypeNamespaceMappings(Object obj) {\r\n\t\t\r\n\t\tString targetNamespace = null;\r\n\t\t\r\n\t\tif (obj instanceof XSDNamedComponent ) {\r\n\t\t\tXSDNamedComponent namedComponent = (XSDNamedComponent) obj; \r\n\t\t\ttargetNamespace = namedComponent.getTargetNamespace();\r\n\t\t}\r\n\t\t\r\n\t\tif (targetNamespace == null) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\t// Now check if the target namespace has a prefix mappings.\r\n\t\tString prefix = BPELUtils.getNamespacePrefix (modelObject, targetNamespace);\r\n\t\tif (prefix != null) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\t// We have to map the namespace to a prefix. \r\n\t\tNamespaceMappingDialog dialog = new NamespaceMappingDialog(getShell(),modelObject);\r\n\t\tdialog.setNamespace( targetNamespace );\r\n\t\t\r\n\t\tif (dialog.open() == Window.CANCEL) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// define the prefix\r\n\t\tBPELUtils.setPrefix( BPELUtils.getProcess(modelObject), targetNamespace, dialog.getPrefix()); \t\t\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"protected abstract void processDTO();",
"private boolean isAnnotationPresent(Annotation[] annotations,\n Class<? extends Annotation> cls) {\n for (Annotation annotation : annotations) {\n if (cls.isInstance(annotation)) {\n return true;\n }\n }\n return false;\n }",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface AlterationDisplayTypeMapper {\n\n AlterationDisplayTypeDTO alterationDisplayTypeToAlterationDisplayTypeDTO(AlterationDisplayType alterationDisplayType);\n\n List<AlterationDisplayTypeDTO> alterationDisplayTypesToAlterationDisplayTypeDTOs(List<AlterationDisplayType> alterationDisplayTypes);\n\n @Mapping(target = \"alterations\", ignore = true)\n AlterationDisplayType alterationDisplayTypeDTOToAlterationDisplayType(AlterationDisplayTypeDTO alterationDisplayTypeDTO);\n\n List<AlterationDisplayType> alterationDisplayTypeDTOsToAlterationDisplayTypes(List<AlterationDisplayTypeDTO> alterationDisplayTypeDTOs);\n}",
"JavaTypeMapping getMapping(Class javaType);",
"@Override\n public boolean isTipoValido() {\n return true;\n }",
"private boolean validateClass(TypeElement typeElement) {\n if (!isSubtype(typeElement, ACTIVITY_FULL_NAME) && !isSubtype(typeElement, FRAGMENT_X_FULL_NAME)) {\n mLogger.error(typeElement, String.format(\"%s is not a subclass of Activity or Fragment.\",\n typeElement.getSimpleName().toString()));\n return false;\n }\n Set<Modifier> modifiers = typeElement.getModifiers();\n // abstract class.\n if (modifiers.contains(Modifier.ABSTRACT)) {\n mLogger.error(typeElement, String.format(\"The class %s is abstract. You can't annotate abstract classes with @%s.\",\n (typeElement).getQualifiedName(), Route.class.getSimpleName()));\n return false;\n }\n return true;\n }",
"public void validate() {\n\t\tClass<?> clazz = this.getModelObject().getClass();\n\t\tif (!ArenaUtils.isObservable(clazz)) {\n\t\t\tthrow new RuntimeException(\"La clase \" + clazz.getName() + \" no tiene alguna de estas annotations \" + ArenaUtils.getRequiredAnnotationForModels() + \" que son necesarias para ser modelo de una vista en Arena\");\n\t\t}\n\t\t// TODO: Validate children bindings?\n\t}",
"public static <A> void validateInputTypeInfo(TypeInformation<A> typeInfo) {\n Class<A> clazz = typeInfo.getTypeClass();\n if ((clazz.isMemberClass() && !Modifier.isStatic(clazz.getModifiers()))\n || !Modifier.isPublic(clazz.getModifiers())\n || clazz.getCanonicalName() == null) {\n throw new ValidationException(\n format(\n \"Class '%s' described in type information '%s' must be \"\n + \"static and globally accessible.\",\n clazz, typeInfo));\n }\n }",
"Class<? extends JavaTypeMapping> getMappingType(String javaTypeName);",
"@Test(expected = IllegalArgumentException.class)\n public void testErroneousClassNodeShape() throws IllegalArgumentException {\n GraphRequestModel requestModel = createCustomClassGraphRequestModel();\n requestModel.setClassNodeShape(SPACE);\n GraphRequestValidator.validateRequest(requestModel);\n }",
"private void generateSchema(final ODatabaseSession session, final Class<?> clazz,\n final Map<String, OClass> processed, final Map<String, Consumer<OClass>> postProcess) {\n String className = getClassName(clazz);\n String superClassName = null;\n if (processed.containsKey(className)) {\n return;\n }\n if (!clazz.getSuperclass().equals(Object.class)) {\n generateSchema(session, clazz.getSuperclass(), processed, postProcess);\n superClassName = getClassName(clazz.getSuperclass());\n }\n\n // If schema is generated add the OClass and return\n OClass existed = session.getClass(className);\n if (existed != null) {\n processed.put(className, existed);\n return;\n }\n\n OClass oClass = getOClass(session, clazz, className, superClassName);\n\n // Set property\n ReflectionUtils.doWithFields(clazz, field -> {\n // If the field inherits from super class, should not set it again.\n if (!field.getDeclaringClass().equals(clazz)) {\n return;\n }\n field.setAccessible(true);\n OProperty oProperty = null;\n OType oType = OType.getTypeByClass(field.getType());\n if (oType == null) {\n oType = Constants.TYPES_BY_CLASS.getOrDefault(field.getType(), OType.EMBEDDED);\n }\n\n EntityProperty entityProperty = field.getAnnotation(EntityProperty.class);\n String propertyName = getPropertyName(entityProperty, field.getName());\n\n if (field.getAnnotation(Edge.class) != null) {\n\n // edge is not a OClass property but a Edge OClass\n handleEdgeProperty(session, field.getAnnotation(Edge.class), field, processed);\n\n } else if (field.getAnnotation(FromVertex.class) != null\n || field.getAnnotation(ToVertex.class) != null\n || field.getAnnotation(OrientdbId.class) != null) {\n // fromVertex, toVertex, ID are not the Entity's property\n } else if (Constants.OBJECT_TYPE.containsKey(oType)) {\n OType actualType = getActualType(oType, field);\n OClass relateClass = processed.get(getClassName(field.getType()));\n if (relateClass != null) {\n oProperty = oClass.createProperty(propertyName, actualType, relateClass);\n } else {\n // If the relate class has not create put the processing to postProcess map\n Consumer<OClass> postCreateProperty = oc -> {\n OProperty op = oClass.createProperty(propertyName, actualType, oc);\n setPropertyConstraints(op, entityProperty);\n };\n postProcess.put(getClassName(field.getType()), postCreateProperty);\n }\n } else {\n oProperty = oClass.createProperty(propertyName, oType);\n }\n if (oProperty != null) {\n setPropertyConstraints(oProperty, entityProperty);\n }\n\n });\n processed.put(className, oClass);\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousClassBorderType() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomClassGraphRequestModel();\n\t requestModel.setClassBorderType(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}",
"public GenericSchemaValidator() {}",
"@Override\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn ProducitonYear.class.isAssignableFrom(clazz);\n\t}",
"public MappingType createMappingType() {\n\t\treturn mappingFactory.createMappingType();\n\t}",
"private static boolean validateClass(Class cls)\n {\n return PSGroupProviderInstance.class.isAssignableFrom(cls);\n }",
"MTBTypesDTO() {\n // EMPTY CONSTRUCTOR\n }",
"@Nonnull\n @Override\n public Boolean canCreate(@Nonnull Class<?> classObject) {\n return String.class.equals(classObject) || classObject.isEnum();\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testErroneousSubclassOfSourceShape() throws IllegalArgumentException {\n GraphRequestModel requestModel = createCustomClassGraphRequestModel();\n requestModel.setSubclassOfSourceShape(SPACE);\n GraphRequestValidator.validateRequest(requestModel);\n }",
"JavaTypeMapping getMapping(Class javaType, boolean serialised, boolean embedded, String fieldName);",
"@Override\n public boolean supports(Class<?> clazz) {\n return clazz == ClimbUserForm.class;\n }",
"@Mapper(componentModel = \"spring\", uses = {MatiereMapper.class})\npublic interface ClasseMapper extends EntityMapper<ClasseDTO, Classe> {\n\n\n @Mapping(target = \"professeurClasses\", ignore = true)\n Classe toEntity(ClasseDTO classeDTO);\n\n default Classe fromId(Long id) {\n if (id == null) {\n return null;\n }\n Classe classe = new Classe();\n classe.setId(id);\n return classe;\n }\n}",
"@Mappings({@Mapping(source = \"province\",target = \"province2\"),@Mapping(source = \"valid\",target = \"valid2\")})\n OaCompanyDto convert(OaCompany OaCompany);",
"public AbstractTypeSpecificValidator(Class type) {\n this.type = type;\n }",
"protected boolean isAPropertyType(Class<?> clazz) {\n return AnyProperty.class.isAssignableFrom(clazz);\n }",
"@Mapper\npublic interface SeguridadDtoMap {\n SeguridadDtoMap INSTANCE = Mappers.getMapper( SeguridadDtoMap.class );\n\n GrupoDto grupoToGrupoDto(Grupo grupo);\n\n Grupo grupoDtoToGrupo(GrupoDto grupoDto);\n}",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface SampleClassificationMapper {\n\n SampleClassificationDTO sampleClassificationToSampleClassificationDTO(SampleClassification sampleClassification);\n\n List<SampleClassificationDTO> sampleClassificationsToSampleClassificationDTOs(List<SampleClassification> sampleClassifications);\n\n SampleClassification sampleClassificationDTOToSampleClassification(SampleClassificationDTO sampleClassificationDTO);\n\n List<SampleClassification> sampleClassificationDTOsToSampleClassifications(List<SampleClassificationDTO> sampleClassificationDTOs);\n}",
"private static boolean isAnnotationPresent(Class<? extends Annotation> annotationClass, Set<Class<? extends Annotation>> processedTypes, Annotation... annotations)\n {\n for (Annotation annotation : annotations) {\n if (annotationClass.isInstance(annotation)) {\n return true;\n }\n }\n\n // are any of the annotations annotated with the specified annotation\n for (Annotation annotation : annotations) {\n if (processedTypes.add(annotation.annotationType()) && isAnnotationPresent(annotationClass, processedTypes, annotation.annotationType().getAnnotations())) {\n return true;\n }\n }\n\n return false;\n }",
"boolean supports(Class<?> valueClass);",
"public void checkLonelyValidatorAnnotation(Field field, Map<String, Class<?>> genericMap) {\n doCheckLonelyValidatorAnnotation(field, deriveFieldType(field, genericMap));\n }",
"private boolean isMappedSuperWithNoProperties(Class<?> beanClass) {\n // do not search recursive here\n MappedSuperclass annotation = AnnotationUtil.get(beanClass, MappedSuperclass.class);\n if (annotation == null) {\n return false;\n }\n Field[] fields = beanClass.getDeclaredFields();\n for (Field field : fields) {\n if (!Modifier.isStatic(field.getModifiers())\n && !Modifier.isTransient(field.getModifiers())\n && !field.isAnnotationPresent(Transient.class)) {\n return false;\n }\n }\n return true;\n }",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface TypeCentreCompositionMapper extends EntityMapper<TypeCentreCompositionDTO, TypeCentreComposition> {\n\n\n @Mapping(target = \"centreCompositions\", ignore = true)\n TypeCentreComposition toEntity(TypeCentreCompositionDTO typeCentreCompositionDTO);\n\n default TypeCentreComposition fromId(Long id) {\n if (id == null) {\n return null;\n }\n TypeCentreComposition typeCentreComposition = new TypeCentreComposition();\n typeCentreComposition.setId(id);\n return typeCentreComposition;\n }\n}",
"private static boolean interview(Class<?> clazz) {\r\n\t\tAnnotation[] classAnnotations = clazz.getDeclaredAnnotations();\r\n\t\tif (classAnnotations.length > 0) {\r\n\t\t\tfor (Annotation an : classAnnotations) {\r\n\t\t\t\tif (an instanceof TableMapperAnnotation || an instanceof Table) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Test\n\tpublic void testClassIsValidDataObject() throws Exception {\n\t\tDataObjectTester<LeaderboardRanking> tester = new DataObjectTester<>(LeaderboardRanking.class,\n\t\t\t\tleaderboardRanking);\n\t\ttester.run();\n\t}",
"boolean hasAnnotationMetadata();",
"@Override\n\tpublic boolean checkTypes() {\n\t\treturn false;\n\t}",
"@Override\n public boolean isResolvableAs(Class<?> clazz) throws ContextInitializationException {\n return clazz == null ? false : clazz.isAssignableFrom(Properties.class);\n }",
"@Override\n public boolean supports(Class<?> clazz) {\n return false;\n }",
"@Override\n public boolean supports(Class<?> clazz) {\n return false;\n }",
"public UserDto() {\n }",
"public abstract Annotations getClassAnnotations();",
"public boolean enqueueDtoMessage(Object Dto) throws Exception;",
"public ERRORDto validateBus();",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface OrganisationTypeMapper extends EntityMapper<OrganisationTypeDTO, OrganisationType> {\n\n\n @Mapping(target = \"organisations\", ignore = true)\n OrganisationType toEntity(OrganisationTypeDTO organisationTypeDTO);\n\n default OrganisationType fromId(Long id) {\n if (id == null) {\n return null;\n }\n OrganisationType organisationType = new OrganisationType();\n organisationType.setId(id);\n return organisationType;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface AccessDirectoryMapper {\n\n AccessDirectoryDTO accessDirectoryToAccessDirectoryDTO(AccessDirectory accessDirectory);\n\n AccessDirectory accessDirectoryDTOToAccessDirectory(AccessDirectoryDTO accessDirectoryDTO);\n}",
"@Override\n public <T> List<ObjectError> validate(T dto, Validator validator) {\n DataBinder binder = getDataBinder(dto, validator);\n binder.validate();\n return getValidationErrors(binder.getBindingResult());\n }",
"public void test_NUMBER_AutoMapping_DomainEntity() throws Exception {\r\n // ## Arrange ##\r\n VendorCheck vendorCheck = new VendorCheck();\r\n\r\n // ## Act & Assert ##\r\n final Integer typeOfNumberInteger = vendorCheck.getTypeOfNumberInteger();\r\n final Long typeOfNumberBigint = vendorCheck.getTypeOfNumberBigint();\r\n final BigDecimal typeOfNumberDecimal = vendorCheck.getTypeOfNumberDecimal();\r\n final Integer typeOfNumberIntegerMin = vendorCheck.getTypeOfNumberIntegerMin();\r\n final Integer typeOfNumberIntegerMax = vendorCheck.getTypeOfNumberIntegerMax();\r\n final Long typeOfNumberBigintMin = vendorCheck.getTypeOfNumberBigintMin();\r\n final Long typeOfNumberBigintMax = vendorCheck.getTypeOfNumberBigintMax();\r\n final BigDecimal typeOfNumberSuperintMin = vendorCheck.getTypeOfNumberSuperintMin();\r\n final BigDecimal typeOfNumberSuperintMax = vendorCheck.getTypeOfNumberSuperintMax();\r\n assertNull(typeOfNumberBigint);\r\n assertNull(typeOfNumberInteger);\r\n assertNull(typeOfNumberDecimal);\r\n assertNull(typeOfNumberIntegerMin);\r\n assertNull(typeOfNumberIntegerMax);\r\n assertNull(typeOfNumberBigintMin);\r\n assertNull(typeOfNumberBigintMax);\r\n assertNull(typeOfNumberSuperintMin);\r\n assertNull(typeOfNumberSuperintMax);\r\n }",
"public NewDocumentRequestDto() {\n }",
"public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}",
"public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}",
"public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}",
"RespuestaDTO<EnumCampoDireccion, EnumErrorDireccion> validarDireccion(DireccionDTO direccion,\n EnumTipoValidacionDireccion tipoValidacion);",
"public abstract ValidationResult validateDataFormat(Map<String, String[]> requestParamsMap);",
"@PrePersist\r\n @PreUpdate\r\n public void validate(Object entity) {\r\n\t\tTraversableResolver tr = new SimpleTraversableResolver();\r\n\t\tValidatorFactory vf = Validation.buildDefaultValidatorFactory();\r\n\t\tValidatorContext vc = vf.usingContext();\r\n Validator validator = vc.traversableResolver(tr).getValidator();\r\n \r\n Set<ConstraintViolation<Object>> constraintViolations = validator.validate(entity);\r\n if (constraintViolations.size() > 0) {\r\n \t\r\n Set<ConstraintViolation<?>> propagatedViolations = \r\n \t\tnew HashSet<ConstraintViolation<?>>();\r\n \r\n Set<String> classNames = new HashSet<String>();\r\n for (ConstraintViolation<?> violation : constraintViolations) {\r\n propagatedViolations.add(violation);\r\n classNames.add(violation.getLeafBean().getClass().getName());\r\n }\r\n \r\n StringBuilder builder = new StringBuilder();\r\n builder.append(\"validation failed for classes \");\r\n builder.append(classNames);\r\n throw new ConstraintViolationException(builder.toString(), propagatedViolations);\r\n }\r\n }",
"private boolean isClassConfiguration(IConfigurationAnnotation configurationAnnotation) {\n if(null == configurationAnnotation) {\n return false;\n }\n \n boolean before= (null != configurationAnnotation)\n ? configurationAnnotation.getBeforeTestClass()\n : false;\n\n boolean after= (null != configurationAnnotation)\n ? configurationAnnotation.getAfterTestClass()\n : false;\n\n return (before || after);\n }",
"TypeConstraintMappingContext<C> ignoreAllAnnotations();",
"public SchemaValidationFeature(Class<? extends ValidationErrorHandler> clazz) {\n this(true, true, clazz);\n }",
"Collection<ClassValidationAnnotationHandler> getClassHandlers();",
"public interface OrganizationMapper extends Mapper<OrganizationDTO> {\n}",
"public boolean isDomainClassRequired() {\n final boolean result = cbDomainClass.getModel().isSelected();\n paramDomainClass = result;\n return result;\n }",
"@Override\n public Set<String> validTypes() {\n return factory.validTypes();\n }",
"@Mapper(componentModel = \"spring\", uses = {ArquivoAnexoMapper.class})\npublic interface ProcessoAnexoMapper{\n\n ProcessoAnexoDTO processoAnexoToProcessoAnexoDTO(ProcessoAnexo processoAnexo);\n\n List<ProcessoAnexoDTO> processoAnexosToProcessoAnexoDTOs(List<ProcessoAnexo> processoAnexos);\n\n @Mapping(target = \"processo\", ignore = true)\n ProcessoAnexo processoAnexoDTOToProcessoAnexo(ProcessoAnexoDTO processoAnexoDTO);\n\n List<ProcessoAnexo> processoAnexoDTOsToProcessoAnexos(List<ProcessoAnexoDTO> processoAnexoDTOs);\n\n\n}",
"public boolean handlesType(Class<?> clazz);",
"private static void checkRegisterConverterArgs(Converter conv,\n Class<?> targetClass)\n {\n if (conv == null)\n {\n throw new IllegalArgumentException(\"Converter must not be null!\");\n }\n checkTargetClass(targetClass);\n }"
] | [
"0.598181",
"0.5540113",
"0.5510655",
"0.55014086",
"0.5473036",
"0.5428991",
"0.5416337",
"0.5211062",
"0.5134954",
"0.5134076",
"0.5068962",
"0.504439",
"0.50167334",
"0.5010289",
"0.49863514",
"0.4980439",
"0.4959219",
"0.49554232",
"0.49491516",
"0.49238026",
"0.49062485",
"0.48971975",
"0.48867005",
"0.48582965",
"0.4848239",
"0.48474368",
"0.48431692",
"0.48392296",
"0.48383915",
"0.4816206",
"0.47850993",
"0.47676128",
"0.47607812",
"0.47501746",
"0.4747713",
"0.47470084",
"0.47399703",
"0.47371274",
"0.47360724",
"0.47213137",
"0.47206",
"0.47201172",
"0.4717897",
"0.47148967",
"0.47134078",
"0.47126573",
"0.47099903",
"0.47045866",
"0.46903375",
"0.46852118",
"0.4684992",
"0.46832317",
"0.46731958",
"0.46722424",
"0.46625465",
"0.46510968",
"0.4629804",
"0.46288785",
"0.4622717",
"0.46203896",
"0.46172535",
"0.45999235",
"0.4581936",
"0.4576099",
"0.4571247",
"0.45698938",
"0.4568823",
"0.45645803",
"0.45609674",
"0.45595616",
"0.45573404",
"0.4553539",
"0.45501038",
"0.45468676",
"0.45468676",
"0.45403457",
"0.45394757",
"0.4535281",
"0.45349035",
"0.4533983",
"0.4531557",
"0.4530006",
"0.45240635",
"0.45213363",
"0.45130986",
"0.45130986",
"0.45130986",
"0.4504361",
"0.4501188",
"0.45010626",
"0.4494662",
"0.44943932",
"0.4489725",
"0.44795835",
"0.44786474",
"0.44777584",
"0.44761196",
"0.44742644",
"0.44723895",
"0.44688004"
] | 0.7397343 | 0 |
Validate DTO type. If DTO class don't has MappingClass annotation then throw Runtime Exception. | public static void validateThrow(Class<?> dtoType, RuntimeException thr) {
if (!validate(dtoType)) {
throw thr;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean validate(Class<?> dtoType) {\n return ObjectUtils.hasAnnotation(dtoType, MappingClass.class);\n }",
"public DtoType getDto(EntityType entity, Class<DtoType> myClass) throws ClassNotFoundException, InstantiationException, IllegalAccessException;",
"public void validateDtoIn(Object dtoIn, ErrorDefinition error) {\n ValidationResult validationResult = validator.validate(dtoIn);\n checkValidationResult(error, validationResult);\n }",
"protected abstract void processDTO();",
"@Override\n public <T> List<ObjectError> validate(T dto, Validator validator) {\n DataBinder binder = getDataBinder(dto, validator);\n binder.validate();\n return getValidationErrors(binder.getBindingResult());\n }",
"public PersonaDTO(){}",
"@SuppressWarnings(\"unchecked\")\n private Object convertToDataTransferObject(Object data, Class<?> dtoType) {\n if (Map.class.isAssignableFrom(data.getClass())) {\n return ObjectUtils.convertMapToObject((Map<String, ?>) data, dtoType);\n }\n throw new ParamInvalidException(\"Cannot parse '\" + data.getClass().getName() + \"' to '\" + dtoType.getName() + \"'\");\n }",
"public ERRORDto validateBus();",
"public boolean supports(Class<?> clazz) {\n\t\treturn clazz.isAssignableFrom(InvoiceDTO.class);\n\t}",
"public boolean enqueueDtoMessage(Object Dto) throws Exception;",
"public boolean canHandleConverter(Class<?> clazz)\n {\n return ClassUtils.isAssignable(clazz, targetClass);\n }",
"@Override\n\tpublic boolean isObjectTypeExpected() {\n\t\treturn false;\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void testErroneousSubclassOfTargetShape() throws IllegalArgumentException {\n GraphRequestModel requestModel = createCustomClassGraphRequestModel();\n requestModel.setSubclassOfTargetShape(SPACE);\n GraphRequestValidator.validateRequest(requestModel);\n }",
"TypeDescription validated();",
"@Override\r\n\t\tpublic boolean shouldSkipClass(Class<?> clazz) {\n\t\t\tif (clazz.equals(BeanPropertyBindingResult.class)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}",
"RespuestaDTO<EnumCampoDireccion, EnumErrorDireccion> validarDireccion(DireccionDTO direccion,\n EnumTipoValidacionDireccion tipoValidacion);",
"void processType(@Observes ProcessAnnotatedType<?> pat) throws InvalidAnnotationException {\n par.checkAnnotatedType(pat);\n MvcExtension.processAnnotatedType(pat);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testErroneousSubclassOfSourceShape() throws IllegalArgumentException {\n GraphRequestModel requestModel = createCustomClassGraphRequestModel();\n requestModel.setSubclassOfSourceShape(SPACE);\n GraphRequestValidator.validateRequest(requestModel);\n }",
"public boolean supports(Class<?> clazz) {\n\t\treturn AuthorDTO.class == clazz;\n\t}",
"@Override\n public boolean isTipoValido() {\n return true;\n }",
"public UserDto() {\n }",
"@Override\n\tpublic boolean checkTypes() {\n\t\treturn false;\n\t}",
"boolean isSupportedMappedType(String javaTypeName);",
"@Test(expected = IllegalArgumentException.class)\n public void testErroneousClassNodeShape() throws IllegalArgumentException {\n GraphRequestModel requestModel = createCustomClassGraphRequestModel();\n requestModel.setClassNodeShape(SPACE);\n GraphRequestValidator.validateRequest(requestModel);\n }",
"public interface OrderValidator {\n\n /**\n * Validates OrderDto entity\n *\n * @param order OrderDto entity\n * @throws EntityNotFoundException if UserDto or CertificateDto not exist\n **/\n void validateOrder(OrderDto order);\n}",
"@ValueMapping(source = \"UNKNOWN\", target = MappingConstants.NULL)\n @ValueMapping(source = \"UNRECOGNIZED\", target = MappingConstants.NULL)\n PhoneDTO.Type fromProtobuf(Customer.Phone.PhoneType type);",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousClassBorderType() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomClassGraphRequestModel();\n\t requestModel.setClassBorderType(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}",
"@Test\n public void testSimpleValidType() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(TimestampedEvent.class);\n typeList.add(GenericRecord.class);\n typeList.add(Integer.class);\n typeList.add(Object.class);\n PipelineRegisterer.validateTypes(typeList);\n }",
"public abstract D convertToDto(T entity);",
"public DTOType getDTOType() {\n return DTO_TYPE;\n }",
"protected void validateType(StateVariable stateVariable, Class type) throws LocalServiceBindingException {\n/* 306 */ Datatype.Default expectedDefaultMapping = ModelUtil.isStringConvertibleType(getStringConvertibleTypes(), type) ? Datatype.Default.STRING : Datatype.Default.getByJavaType(type);\n/* */ \n/* 308 */ log.finer(\"Expecting '\" + stateVariable + \"' to match default mapping: \" + expectedDefaultMapping);\n/* */ \n/* 310 */ if (expectedDefaultMapping != null && \n/* 311 */ !stateVariable.getTypeDetails().getDatatype().isHandlingJavaType(expectedDefaultMapping.getJavaType()))\n/* */ {\n/* */ \n/* 314 */ throw new LocalServiceBindingException(\"State variable '\" + stateVariable + \"' datatype can't handle action \" + \"argument's Java type (change one): \" + expectedDefaultMapping\n/* */ \n/* 316 */ .getJavaType());\n/* */ }\n/* */ \n/* 319 */ if (expectedDefaultMapping == null && stateVariable.getTypeDetails().getDatatype().getBuiltin() != null) {\n/* 320 */ throw new LocalServiceBindingException(\"State variable '\" + stateVariable + \"' should be custom datatype \" + \"(action argument type is unknown Java type): \" + type\n/* */ \n/* 322 */ .getSimpleName());\n/* */ }\n/* */ \n/* */ \n/* 326 */ log.finer(\"State variable matches required argument datatype (or can't be validated because it is custom)\");\n/* */ }",
"public boolean getErrorOnUseBeanInvalidClassAttribute();",
"@Test\n void cannotInferType() {\n }",
"@Test\n\tpublic void testClassIsValidDataObject() throws Exception {\n\t\tDataObjectTester<LeaderboardRanking> tester = new DataObjectTester<>(LeaderboardRanking.class,\n\t\t\t\tleaderboardRanking);\n\t\ttester.run();\n\t}",
"private void checkType(V value) {\n valueClass.cast(value);\n }",
"@Test\n\tpublic void testValidateInvalidWrongType() {\n\t\tRapidBean bean = createTestBean(\"Bl�mel\", \"Martin\", \"19641014\");\n\t\tPropertyCollection prop = this.createCollectionProperty(\n\t\t\t\t\"<property name=\\\"test\\\"\" + \" targettype=\\\"org.rapidbeans.test.TestBean\\\"\" + \" />\");\n\t\ttry {\n\t\t\tprop.validate(bean);\n\t\t\tAssert.fail(\"expected ValidationException\");\n\t\t} catch (ValidationException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t}",
"void validate(T object);",
"public SchemaDto() {\n }",
"public abstract ValidationResult validateDataFormat(Map<String, String[]> requestParamsMap);",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousObjBorderType() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomPropertyGraphRequestModel();\n\t requestModel.setObjBorderType(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}",
"private void checkIfIsAValidClass(IDatabaseClass annotationClass){\n if (annotationClass == null || annotationClass.tableName() == \"\") {\n throw new CustomException(\"No table name found in your class declaration!\");\n }\n }",
"public EntityType getCreateEntity(DtoType dto) throws ClassNotFoundException, InstantiationException, IllegalAccessException;",
"@Override\n @JsonIgnore\n public void validateRequest(Map<String, Object> map) throws EntityError {\n }",
"@Test\n void deserialize_test_with_invalid_value() {\n assertThatThrownBy(\n () -> jsonConverter.readValue(\"{\\\"transport\\\": -1}\", TestDTO.class)\n ).isInstanceOf(DataConversionException.class);\n }",
"public void test_NUMBER_AutoMapping_DomainEntity() throws Exception {\r\n // ## Arrange ##\r\n VendorCheck vendorCheck = new VendorCheck();\r\n\r\n // ## Act & Assert ##\r\n final Integer typeOfNumberInteger = vendorCheck.getTypeOfNumberInteger();\r\n final Long typeOfNumberBigint = vendorCheck.getTypeOfNumberBigint();\r\n final BigDecimal typeOfNumberDecimal = vendorCheck.getTypeOfNumberDecimal();\r\n final Integer typeOfNumberIntegerMin = vendorCheck.getTypeOfNumberIntegerMin();\r\n final Integer typeOfNumberIntegerMax = vendorCheck.getTypeOfNumberIntegerMax();\r\n final Long typeOfNumberBigintMin = vendorCheck.getTypeOfNumberBigintMin();\r\n final Long typeOfNumberBigintMax = vendorCheck.getTypeOfNumberBigintMax();\r\n final BigDecimal typeOfNumberSuperintMin = vendorCheck.getTypeOfNumberSuperintMin();\r\n final BigDecimal typeOfNumberSuperintMax = vendorCheck.getTypeOfNumberSuperintMax();\r\n assertNull(typeOfNumberBigint);\r\n assertNull(typeOfNumberInteger);\r\n assertNull(typeOfNumberDecimal);\r\n assertNull(typeOfNumberIntegerMin);\r\n assertNull(typeOfNumberIntegerMax);\r\n assertNull(typeOfNumberBigintMin);\r\n assertNull(typeOfNumberBigintMax);\r\n assertNull(typeOfNumberSuperintMin);\r\n assertNull(typeOfNumberSuperintMax);\r\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousTypeNodeShape() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomIndividualGraphRequestModel();\n\t requestModel.setClassNodeShape(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}",
"@Override // solo para declarar que clase entity o pojo vamos a validar\r\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn Usuario.class.isAssignableFrom(clazz); // si la clase Usuario es la clase que se esta psando por argumento a ese tipo devuelve true\r\n\t}",
"public AbstractTypeSpecificValidator(Class type) {\n this.type = type;\n }",
"public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}",
"public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}",
"public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}",
"private void validate() {\n\n if (this.clsname == null)\n throw new IllegalArgumentException();\n if (this.dimension < 0)\n throw new IllegalArgumentException();\n if (this.generics == null)\n throw new IllegalArgumentException();\n }",
"@Bean\n public TypeMap<CarriageDto, Carriage> getCarriageDtoCarriageTypeMap() {\n return getModelMapper().createTypeMap(CarriageDto.class, Carriage.class, \"CarriageDtoCarriage\")\n .addMappings(mapper -> mapper.when(isNotNull()).map(CarriageDto::getUniqueNumber, Carriage::setUniqueNumber))\n .addMappings(mapper -> mapper.when(isNotNull()).map(CarriageDto::getStatus, Carriage::setStatus))\n .addMappings(mapper -> mapper.when(isNotNull()).map(CarriageDto::getCustomerName, Carriage::setCustomerName))\n .addMappings(mapper -> mapper.when(isNotNull()).map(CarriageDto::getInitiateDate, Carriage::setInitiateDate))\n .addMappings(mapper -> mapper.when(isNotNull()).map(CarriageDto::getFinishDate, Carriage::setFinishDate))\n .addMappings(mapper -> mapper.when(isNotNull()).map(CarriageDto::getEstimatedLeadTime, Carriage::setEstimatedLeadTime))\n\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(CarriageDto::getWaypoints, Carriage::setWaypoints))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(CarriageDto::getVehicle, Carriage::setVehicle))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(CarriageDto::getDrivers, Carriage::setDrivers))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(CarriageDto::getCargoes, Carriage::setCargoes));\n }",
"public static <A> void validateInputTypeInfo(TypeInformation<A> typeInfo) {\n Class<A> clazz = typeInfo.getTypeClass();\n if ((clazz.isMemberClass() && !Modifier.isStatic(clazz.getModifiers()))\n || !Modifier.isPublic(clazz.getModifiers())\n || clazz.getCanonicalName() == null) {\n throw new ValidationException(\n format(\n \"Class '%s' described in type information '%s' must be \"\n + \"static and globally accessible.\",\n clazz, typeInfo));\n }\n }",
"public static <Entity,Dto> Dto entityToDTO(Entity entity,Class<Dto> classDTO)\n\t{\n\t\tModelMapper mapper = new ModelMapper();\n\t\treturn mapper.map(entity, classDTO);\n\t}",
"@Test\n public void shouldHaveANoArgsConstructor() {\n assertThat(AssignForceBatch.class, hasValidBeanConstructor());\n }",
"public void validate() {\n\t\tClass<?> clazz = this.getModelObject().getClass();\n\t\tif (!ArenaUtils.isObservable(clazz)) {\n\t\t\tthrow new RuntimeException(\"La clase \" + clazz.getName() + \" no tiene alguna de estas annotations \" + ArenaUtils.getRequiredAnnotationForModels() + \" que son necesarias para ser modelo de una vista en Arena\");\n\t\t}\n\t\t// TODO: Validate children bindings?\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void testErroneousTypeOfTargetShape() throws IllegalArgumentException {\n GraphRequestModel requestModel = createCustomIndividualGraphRequestModel();\n requestModel.setTypeOfTargetShape(SPACE);\n GraphRequestValidator.validateRequest(requestModel);\n }",
"MTBTypesDTO() {\n // EMPTY CONSTRUCTOR\n }",
"public GenericSchemaValidator() {}",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousTypeBorderType() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomIndividualGraphRequestModel();\n\t requestModel.setClassBorderType(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}",
"protected abstract boolean canConvert(Class<?> parameterType, Class<?> originalArgumentType);",
"D mapToDTO(E entity);",
"boolean isClassMapping() {\n return !path.isEmpty() && !targetClass.isEmpty()\n && condAttr.isEmpty() && condAttrValue.isEmpty() && source.isEmpty()\n && sourceName.isEmpty() && targetProperty.isEmpty() && targetType.isEmpty();\n }",
"public boolean isAcceptable(Class<? extends DataElement> clazz);",
"@Test\n @DisplayName(\"PersonDTOAssembler - Test create data transfer objects from Domain Object || Happy case\")\n void personDTOAssembler_CreateDTOFromDomainObjectTest() {\n String mariaEmail = \"maria@gmail.com\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n PersonID fatherID = null;\n PersonID motherID = null;\n\n String IS_NOT_DEFINED = \"Is Not Defined\";\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, IS_NOT_DEFINED, IS_NOT_DEFINED);\n\n //Act\n PersonDTO personDTO = PersonDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID);\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }",
"private void validateTyped(IBean bean) {\r\n \t\tSet<ITypeDeclaration> typedDeclarations = bean.getRestrictedTypeDeclaratios();\r\n \t\tif (!typedDeclarations.isEmpty()) {\r\n \t\t\tSet<IParametedType> allTypes = bean.getAllTypes();\r\n \t\t\tfor (ITypeDeclaration typedDeclaration : typedDeclarations) {\r\n \t\t\t\tIType typedType = typedDeclaration.getType();\r\n \t\t\t\tif (typedType != null) {\r\n \t\t\t\t\tboolean typeWasFound = false;\r\n \t\t\t\t\tfor (IParametedType type : allTypes) {\r\n \t\t\t\t\t\tif (type != null && typedType.getFullyQualifiedName().equals(type.getType().getFullyQualifiedName())) {\r\n \t\t\t\t\t\t\ttypeWasFound = true;\r\n \t\t\t\t\t\t\tbreak;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (!typeWasFound) {\r\n \t\t\t\t\t\tString message = bean instanceof IClassBean\r\n \t\t\t\t\t\t\t? CDIValidationMessages.ILLEGAL_TYPE_IN_TYPED_DECLARATION_IN_BEAN_CLASS\r\n \t\t\t\t\t\t\t: bean instanceof IProducerField\r\n \t\t\t\t\t\t\t? CDIValidationMessages.ILLEGAL_TYPE_IN_TYPED_DECLARATION_IN_PRODUCER_FIELD\r\n \t\t\t\t\t\t\t: bean instanceof IProducerMethod\r\n \t\t\t\t\t\t\t? CDIValidationMessages.ILLEGAL_TYPE_IN_TYPED_DECLARATION_IN_PRODUCER_METHOD\r\n \t\t\t\t\t\t\t: CDIValidationMessages.ILLEGAL_TYPE_IN_TYPED_DECLARATION;\r\n \t\t\t\t\t\taddError(message, CDIPreferences.ILLEGAL_TYPE_IN_TYPED_DECLARATION, typedDeclaration, bean.getResource());\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousSubclassOfLineType() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomClassGraphRequestModel();\n\t requestModel.setSubclassOfLineType(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}",
"public NewDocumentRequestDto() {\n }",
"@Mapper(componentModel = \"cdi\", uses = EnumMapper.class)\npublic interface DocumentoMapper {\n\n DocumentoDTO toDTO(Documento documento);\n\n Documento fromDTO(DocumentoDTO documentoDTO);\n}",
"@Validated\npublic interface RequestPayloadService {\n\n Optional<? extends BaseDTO> create(@Valid RequestPayload payload) throws InvalidValueException;\n\n Optional<? extends BaseDTO> update(@Valid RequestPayload payload) throws InvalidValueException, UserNotFoundException;\n\n}",
"public static GraknConceptException invalidCasting(Object concept, Class type) {\n return GraknConceptException.create(String.format(INVALID_OBJECT_TYPE,concept, type));\n }",
"public DatatypeDto instantiateDto(Datatype poso) {\n\t\tDatatypeDto dto = DatatypeDto.String;\n\t\treturn dto;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tprotected T checkType(Object entity) {\n\t\tif (getGenericClass().isInstance(entity)) {\n\t\t\treturn (T)entity;\n\t\t}\n\t\treturn null;\n\t}",
"protected Object createBeanMatchingType(MappingContext mappingContext) {\n // clazz is never null given the only path that leads to this method already performs that check\n final Class<?> clazz = mappingContext.getTypeInformation().getSafeToWriteClass();\n try {\n return clazz.getDeclaredConstructor().newInstance();\n } catch (ReflectiveOperationException e) {\n throw new ConfigMeMapperException(mappingContext, \"Could not create object of type '\"\n + clazz.getName() + \"'. It is required to have a default constructor\", e);\n }\n }",
"@Override\r\n\tpublic AbstractDto mapToDto() {\n\t\treturn null;\r\n\t}",
"void validate(T entity) throws ValidatorException;",
"boolean isHandled(Class<?> type);",
"public BaseDto() {\n }",
"@Nonnull\n @Override\n public Boolean canCreate(@Nonnull Class<?> classObject) {\n return String.class.equals(classObject) || classObject.isEnum();\n }",
"@ExceptionHandler({ MethodArgumentTypeMismatchException.class })\r\n\tpublic ResponseEntity<Object> handleMethodArgumentTypeMismatch(\r\n\t MethodArgumentTypeMismatchException ex, WebRequest request) {\r\n\t String error = \r\n\t ex.getName() + \" should be of type \" + ex.getRequiredType().getName();\r\n\t \r\n\t ApiError apiError = \r\n\t new ApiError(HttpStatus.BAD_REQUEST, ex.getLocalizedMessage(), error);\r\n\t return new ResponseEntity<Object>(\r\n\t apiError, new HttpHeaders(), apiError.getStatus());\r\n\t}",
"@Bean\n public TypeMap<CargoDto, Cargo> getCargoDtoCargoTypeMap() {\n return getModelMapper().createTypeMap(CargoDto.class, Cargo.class, \"CargoDtoCargo\")\n .addMappings(mapper -> mapper.when(isNotNull()).map(CargoDto::getNumber, Cargo::setNumber))\n .addMappings(mapper -> mapper.when(isNotNull()).map(CargoDto::getName, Cargo::setName))\n .addMappings(mapper -> mapper.when(isNotNull()).map(CargoDto::getDescription, Cargo::setDescription))\n .addMappings(mapper -> mapper.when(isNotNull()).map(CargoDto::getState, Cargo::setState))\n .addMappings(mapper -> mapper.when(isNotNull()).map(CargoDto::getWeight, Cargo::setWeight))\n\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(CargoDto::getCarriage, Cargo::setCarriage))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(CargoDto::getDepartureWaypoint, Cargo::setDepartureWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(CargoDto::getDestinationWaypoint, Cargo::setDestinationWaypoint));\n }",
"@WebMethod(operationName = \"classIsValid\")\r\n public Boolean classIsValid(@WebParam(name = \"Class_ID\") int Class_ID) {\r\n //class Class_ID exists or not\r\n try {\r\n org.netbeans.xml.schema.classxmlschema.Class cla = daoService.getClassInfo(Class_ID);\r\n\r\n if (cla != null) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n\r\n } catch (Exception e) {\r\n return false;\r\n }\r\n }",
"void checkDTO(final LinkDTO dto, final AccessType access) throws FunctionalException {\n\t\tLink target = null;\n\t\tView view = null;\n\t\tLinkType lt = null;\n\t\tcheckNullDTO(dto);\n\t\tcheckIdFormat(dto, access);\n\t\tcheckItemExistence(dto, access);\n\t\tcheckNameWhenRequired(dto, access);\n\t\ttarget = explorer.getLinkByID(dto.getId());\n\t\tif (access == AccessType.DELETE) {\n\t\t\tcheckNoLinkInstancesForLink(target, access);\n\t\t} else if (access == AccessType.CREATE || access == AccessType.UPDATE) {\n\t\t\tif (access == AccessType.CREATE) {\n\t\t\t\tcheckType(dto);\n\t\t\t\tlt = explorer.getLinkTypeByID(dto.getLinkType().getId());\n\t\t\t} else {\n\t\t\t\tlt = target.getType();\n\t\t\t}\n\t\t\t// Check associated view existence\n\t\t\tif (access == AccessType.CREATE) {\n\t\t\t\tcheckViewIDFormat(dto);\n\t\t\t\tview = explorer.getViewByID(dto.getView().getId());\n\t\t\t} else {// vID is ignored for access != create\n\t\t\t\tview = explorer.getViewByItem(target);\n\t\t\t}\n\t\t\tif (view == null) {\n\t\t\t\tthrow new FunctionalException(FunctionalException.Code.TARGET_NOT_FOUND, null, \"(view)\");\n\t\t\t}\n\t\t\tcheckDescriptionNotMandatory(dto.getDescription());\n\t\t\tcheckStatus(view.getViewPoint().getId(), dto.getStatus());\n\t\t\tcheckComment(dto.getComment());\n\t\t\tcheckTags(dto.getTags());\n\t\t\t// Note that sources and destinations items unicity is implicitly managed by the fact that\n\t\t\t// they are Set collections\n\t\t\tcheckSourcesAndDestinationsSize(dto);\n\t\t\tcheckSourcesAndDestinationsExistence(dto);\n\t\t\tcheckSourcesAndDestinationsConformToLT(dto, lt);\n\t\t\tif (access == AccessType.UPDATE) {\n\t\t\t\tcheckRemovedComponentsNotInUse(dto, target, view);\n\t\t\t}\n\t\t}\n\t}",
"public GrupoUsuarioDTO() {\n }",
"public void validate() throws org.apache.thrift.TException {\n if (type != null) {\n type.validate();\n }\n if (returnType != null) {\n returnType.validate();\n }\n }",
"boolean isValid( ANNOTATION annotation, TYPE value );",
"@Override\n public Set<String> validTypes() {\n return factory.validTypes();\n }",
"Persona PersonaDTOToPersona(PersonaDTO personaDTO);",
"public RegularExpressionsDTO()\n {\n //Nothing needed\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousObjPropTargetShape() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomPropertyGraphRequestModel();\n\t requestModel.setObjPropTargetShape(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}",
"@PrePersist\r\n @PreUpdate\r\n public void validate(Object entity) {\r\n\t\tTraversableResolver tr = new SimpleTraversableResolver();\r\n\t\tValidatorFactory vf = Validation.buildDefaultValidatorFactory();\r\n\t\tValidatorContext vc = vf.usingContext();\r\n Validator validator = vc.traversableResolver(tr).getValidator();\r\n \r\n Set<ConstraintViolation<Object>> constraintViolations = validator.validate(entity);\r\n if (constraintViolations.size() > 0) {\r\n \t\r\n Set<ConstraintViolation<?>> propagatedViolations = \r\n \t\tnew HashSet<ConstraintViolation<?>>();\r\n \r\n Set<String> classNames = new HashSet<String>();\r\n for (ConstraintViolation<?> violation : constraintViolations) {\r\n propagatedViolations.add(violation);\r\n classNames.add(violation.getLeafBean().getClass().getName());\r\n }\r\n \r\n StringBuilder builder = new StringBuilder();\r\n builder.append(\"validation failed for classes \");\r\n builder.append(classNames);\r\n throw new ConstraintViolationException(builder.toString(), propagatedViolations);\r\n }\r\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousObjNodeShape() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomPropertyGraphRequestModel();\n\t requestModel.setObjNodeShape(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}",
"public void validate() throws org.apache.thrift.TException {\n if (!is_set_destApp()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destApp' is unset! Struct:\" + toString());\n }\n\n if (!is_set_destPellet()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destPellet' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousDataBorderType() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomPropertyGraphRequestModel();\n\t requestModel.setDataBorderType(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}",
"@Test\n public void whenMapUsertoUserDto_thenOk() {\n\n User user = InstanceFactory.user;\n\n UserDTO userDTO = UserMapper.INSTANCE.entityToDto(user);\n\n assertEquals(user.getId(), userDTO.getId());\n assertEquals(user.getLogin(), userDTO.getLogin());\n assertEquals(user.getPassword(), userDTO.getPassword());\n\n }",
"public Dto() {\n \t\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousTypeBorderColor() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomIndividualGraphRequestModel();\n\t requestModel.setClassBorderColor(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}",
"protected void typeMismatch(Object obj) {\n\t\ttypeMismatch(obj.toString());\n\t}",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousObjPropEdgeType() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomPropertyGraphRequestModel();\n\t requestModel.setObjPropEdgeType(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}"
] | [
"0.73579854",
"0.60329753",
"0.58642364",
"0.54364043",
"0.53692627",
"0.53093344",
"0.53083026",
"0.5255913",
"0.5247721",
"0.5221707",
"0.5133999",
"0.5128238",
"0.5086113",
"0.5077901",
"0.50571454",
"0.5027604",
"0.5016097",
"0.5011486",
"0.5000109",
"0.4958266",
"0.4930763",
"0.491666",
"0.48905042",
"0.4875613",
"0.48724312",
"0.48597363",
"0.48482236",
"0.48452446",
"0.4836986",
"0.48327455",
"0.48317063",
"0.48268944",
"0.48133558",
"0.47938126",
"0.47879633",
"0.47828612",
"0.47799757",
"0.47703797",
"0.4767738",
"0.4759499",
"0.47591814",
"0.47552496",
"0.4743135",
"0.47424936",
"0.473939",
"0.47375795",
"0.4716215",
"0.47094896",
"0.47002384",
"0.47002384",
"0.47002384",
"0.46957964",
"0.46913958",
"0.46807957",
"0.4667885",
"0.46652818",
"0.46652517",
"0.46629336",
"0.46626538",
"0.46323395",
"0.4627452",
"0.4625018",
"0.4621434",
"0.46170565",
"0.46019512",
"0.4599585",
"0.4598537",
"0.45975274",
"0.45955557",
"0.45855027",
"0.45558423",
"0.45539302",
"0.45534313",
"0.4552132",
"0.45455837",
"0.4545336",
"0.4530353",
"0.4528448",
"0.45277485",
"0.4519636",
"0.45173672",
"0.45167273",
"0.45164353",
"0.4511515",
"0.4509902",
"0.4507856",
"0.44968963",
"0.44944426",
"0.44880274",
"0.4487046",
"0.44844744",
"0.44768664",
"0.44702378",
"0.44664717",
"0.4465238",
"0.44632825",
"0.44604",
"0.44582763",
"0.44579652",
"0.44578058"
] | 0.50476986 | 15 |
Get entity type is configuration of Data Transfer Object. | public static Class<? extends Audit> getEntityType(Class<?> dtoType) {
if (null != dtoType && ObjectUtils.hasAnnotation(dtoType, MappingClass.class)) {
return ObjectUtils.getAnnotation(dtoType, MappingClass.class).value();
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public EntityType getEntity_type() {\n return this.entity_type;\n }",
"public Class<T> getEntityBeanType() {\n return entityBeanType;\n }",
"public JPAEntityType getEntityType();",
"EntityConfiguration getConfiguration();",
"Class<?> getEntityClass();",
"PiEntityType entityType();",
"public Class<TTrxtypes> getEntityType() { return TTrxtypes.class; }",
"public String entityType();",
"public String getEntityType() {\n return this.entityType;\n }",
"EntityType getEntity();",
"public TEntityType getEntityType() {\n return (TEntityType) this.getElement();\n }",
"public String getConfigType() {\n\t\treturn configType;\n\t}",
"public abstract Class<BE> getBukkitEntityType();",
"public Class<?> getEntityClass() {\r\n\t\treturn entityClass;\r\n\t}",
"@XmlElement(name = \"entitytype\")\n public String getEntityType() {\n return entityType;\n }",
"public EntityType getType()\n {\n return m_type;\n }",
"public EntityType getEntityType() {\n return null;\n }",
"public EntityType getType ( ) {\n\t\treturn extract ( handle -> handle.getType ( ) );\n\t}",
"public boolean isSetEntity_type() {\n return this.entity_type != null;\n }",
"public MetadataType getType();",
"public Map<String, Class<?>> getEntityTypes() {\n return entityTypes;\n }",
"fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();",
"Type getForPersistentMapping_Type() {\n return type;\n }",
"public ConfigurationType getConfigurationType() {\n return this.configurationType;\n }",
"protected final Class<?> getEntityClass() {\n return entityClass;\n }",
"public ObjType getType () {\n\t\tif (type == null) {\n\t\t\ttype = Virtue.getInstance().getConfigProvider().getObjTypes().list(id);\n\t\t}\n\t\treturn type;\n\t}",
"public Class<T> getEntityClass() {\n\t\treturn persistentClass;\n\t}",
"protected abstract Class<T> getEntityClass();",
"protected abstract Class<T> getEntityClass();",
"Class<E> getEntityClass();",
"EntityData<?> getEntityData();",
"public static EntityType getEntityType(String name) {\n EntityType type = null;\n name = name.toLowerCase(Locale.ROOT).trim();\n if (name.contains(NAMESPACE)) {\n name = (name.split(\":\"))[1];\n }\n\n if (ConfigHandler.entities.get(name) != null) {\n type = EntityType.valueOf(name.toUpperCase(Locale.ROOT));\n }\n\n return type;\n }",
"public Class<StShhnKnyMs> getEntityType() { return StShhnKnyMs.class; }",
"public MetadataType getType() {\n return type;\n }",
"public String getEntityTypeName() { return \"jp.sourceforge.ea2ddl.dao.exentity.TTrxtypes\"; }",
"public Integer getEntityTypeId() {\n // get entity type code\n String code = getEntityTypeCode();\n // check cache, (may contain null)\n if (entityTypeIdCache.containsKey(code)) {\n return entityTypeIdCache.get(code);\n }\n // query, cache, and return metadata driven ids\n EntityType entityType = getMetadata().getEntityTypeByName(code);\n Integer id = ((entityType != null) ? entityType.getEntityTypeId() : null);\n entityTypeIdCache.put(code, id);\n return id;\n }",
"public Class<Tweet> getEntityType() { return Tweet.class; }",
"public EntityType getCreateEntity(DtoType dto) throws ClassNotFoundException, InstantiationException, IllegalAccessException;",
"@Override\n public String getCondimentType() {\n return TYPE;\n }",
"public int getType() {\n\t\treturn (config >> 2) & 0x3F;\n\t}",
"public Class<T> getSupportedOperationType();",
"public boolean isSetEntityType() {\n return this.entityType != null;\n }",
"protected abstract DbType getDatabaseType();",
"Class<? extends EntityPersister> getEntityPersisterClass(PersistentClass metadata);",
"@SuppressWarnings(\"unchecked\")\n\tprotected Class<Model> getEntityClass() {\n\t\tParameterizedType pt = (ParameterizedType) this.getClass().getGenericSuperclass();\n\t\treturn (Class<Model>) pt.getActualTypeArguments()[0];\n\t}",
"@Override\n\tpublic Class<?> getEntityClass() {\n\t\treturn null;\n\t}",
"public Type getType() {\n \t\tif(type == null) {\n \t\t\ttry {\n \t\t\t\tsetType(B3BackendActivator.instance.getBundle().loadClass(getQualifiedName()));\n \t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO: ?? Need to handle this, so the \"not found\" surfaces to the user...\n\t\t\t\t// Handled via model validation - type can not be null\n \t\t\t}\n \t\t}\n \t\treturn type;\n \t}",
"private String entityType(){\n Type t = getClass().getGenericSuperclass();\n ParameterizedType pt = (ParameterizedType)t;\n Class<T> type = (Class)pt.getActualTypeArguments()[0];\n return type.getName();\n }",
"@Override\n public DatabaseType getDatabaseType() {\n return mappings.getDatabaseType();\n }",
"public Class<DevStudio> getEntityType() {\n return DevStudio.class;\n }",
"public String getEntityType(String entitySetName) {\r\n // TODO need to check whether have another better way\r\n URIBuilder uriBuilder = odataClient.newURIBuilder(serviceRootURL).appendEntitySetSegment(\"EntityDefinitions\");\r\n uriBuilder.addQueryOption(QueryOption.SELECT, \"EntitySetName,LogicalName\");\r\n uriBuilder.filter(\"EntitySetName eq '\" + entitySetName + \"'\");\r\n ODataEntitySetIteratorRequest<ClientEntitySet, ClientEntity> request = odataClient.getRetrieveRequestFactory()\r\n .getEntitySetIteratorRequest(uriBuilder.build());\r\n this.authStrategy.configureRequest(request);\r\n\r\n ODataRetrieveResponse<ClientEntitySetIterator<ClientEntitySet, ClientEntity>> response = request.execute();\r\n try {\r\n ClientEntitySetIterator<ClientEntitySet, ClientEntity> entitySetIterator = response.getBody();\r\n if (entitySetIterator.hasNext()) {\r\n ClientProperty localName = entitySetIterator.next().getProperty(\"LogicalName\");\r\n if (localName != null && localName.getValue() != null) {\r\n return localName.getValue().toString();\r\n }\r\n }\r\n } finally {\r\n response.close();\r\n // Close reponse would also close connection. So here need recreate httpclient\r\n this.httpClientState.setNeedNewHttpClient(true);\r\n }\r\n return null;\r\n }",
"<T extends ModelEntity> T findEntityType( Class<T> entityClass, String name );",
"public void setEntityType(String entityType){\r\n this.entityType = entityType;\r\n }",
"private ConfigurationEntity getPartiallyLoadedConfigEntity() {\n\t\t\n\t\tStringBuilder builder = new StringBuilder();\n\t\tString line;\n\t\ttry(BufferedReader br = new BufferedReader(new FileReader(new ClassPathResource(\"./static/config/config.json\").getFile()))) {\n\t\t\twhile((line = br.readLine())!=null) {\n\t\t\t\tbuilder.append(line);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn new Gson().fromJson(builder.toString(), ConfigurationEntity.class);\n\t}",
"public TypeData getTypeData(MigrationType type);",
"@Transient\r\n\tpublic Class<?> getClassType() {\r\n\t\treturn TVendor.class;\r\n\t}",
"@Override\n\tpublic Class<Object> getEntityClass() {\n\t\treturn null;\n\t}",
"private boolean isEntityTypeClass(Map<String, Entity> entitiesMap, String typeName) {\r\n Entity typeEntity = entitiesMap.get(typeName);\r\n return typeEntity != null && EntityType.CLASS.equals(typeEntity.getEntityType());\r\n }",
"Type getForPersistentMapping_BaseType() {\n return baseType;\n }",
"DatastoreMetadataFactory<EntityMetadata, Discriminator> getMetadataFactory();",
"public ModelObjectType getType() {\n return type;\n }",
"@SuppressWarnings(\"rawtypes\")\n \tpublic static Class getEntityClass() {\n \t\treturn getMinecraftClass(\"Entity\");\n \t}",
"public String getEntityTypeName() { return \"com.sample.twitter.dbflute.exentity.Tweet\"; }",
"@Override\n public Class<E> getPersistentClass() {\n return entityClass;\n }",
"public DataType getType() {\n return type;\n }",
"DatabaseTypes getDatabaseType();",
"Entity getSuperType();",
"EntityBeanDescriptor createEntityBeanDescriptor();",
"@Override\r\n public Class<UserSoftware> getEntityType() {\n return null;\r\n }",
"public boolean getType() {\r\n\t\treturn type;\r\n\t}",
"public static EntityType getEntityType(int id) {\n EntityType entitytype = null;\n if (ConfigHandler.entitiesReversed.get(id) != null) {\n String name = ConfigHandler.entitiesReversed.get(id);\n if (name.contains(NAMESPACE)) {\n name = name.split(\":\")[1];\n }\n entitytype = EntityType.valueOf(name.toUpperCase(Locale.ROOT));\n }\n return entitytype;\n }",
"boolean hasStoredType();",
"public DataSourceType getDataSourceType() {\n return dataSourceType;\n }",
"@Override\n public java.lang.String getPersonType() {\n return _entityCustomer.getPersonType();\n }",
"public String getType() {\n return (String) getObject(\"type\");\n }",
"public Class<? extends Annotation> getDeploymentType()\n {\n return _deploymentType;\n }",
"public ConfigurationItemType getType() {\r\n\t\treturn type;\r\n\t}",
"String getType() {\n return type;\n }",
"public Class dataType() {\n return this.dataType;\n }",
"JpaConfig getJpaConfig();",
"public Class getType();",
"public String getDataSourceType () {\n return dataSourceType;\n }",
"public void setEntityType(String entityType) {\n this.entityType = entityType;\n }",
"@Override\n\tpublic EntityDescriptor getEntityDescriptor() {\n\t\ttry {\n\t\t\treturn DAOSystem.getEntityDescriptor(getEntityClass().getName());\n\t\t} catch (ConfigurationException e) {\n\t\t\tthrow new DataAccessException(\"Can not load EntityDescriptor\", e);\n\t\t}\n\t}",
"NegotiationTransactionType getNegotiationTransactionType();",
"@Override\n\tpublic Class<TransfersRecord> getEntityClass() {\n\t\treturn TransfersRecord.class;\n\t}",
"public int getEntityType(){\n\t\tIterator<ArrayList<String>> i = headerLines.iterator();\n\t\twhile(i.hasNext()){\n\t\t\tArrayList<String> headerLines = i.next();\n\t\t\tString headerName = headerLines.get(0);\n\t\t\tif (headerName.matches(\"Content-Type:\")){\n\t\t\t\tString headerData = headerLines.get(1);\n\t\t\t\tif(headerData.contains(\"text\")){\n\t\t\t\t\treturn TEXT;\n\t\t\t\t} else if (headerData.contains(\"pdf\")){\n\t\t\t\t\treturn PDF;\n\t\t\t\t} else if (headerData.contains(\"gif\")){\n\t\t\t\t\treturn GIF;\n\t\t\t\t} else if (headerData.contains(\"jpeg\")){\n\t\t\t\t\treturn JPEG;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"public DataStoreType getDataStoreType() {\n return dataStoreType;\n }",
"@Override\n public Class<?> getObjectType() {\n return this.type;\n }",
"public Class getContextType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();"
] | [
"0.67508423",
"0.65119743",
"0.6505593",
"0.65050983",
"0.6214423",
"0.6164584",
"0.6088439",
"0.6059386",
"0.60529506",
"0.6052283",
"0.60342425",
"0.60173243",
"0.6011167",
"0.5992035",
"0.5971935",
"0.5968416",
"0.5881966",
"0.58756536",
"0.58396906",
"0.5838746",
"0.5824181",
"0.57997996",
"0.5795329",
"0.57604134",
"0.5757164",
"0.5694352",
"0.56817734",
"0.5668372",
"0.5668372",
"0.5652355",
"0.5644158",
"0.5644134",
"0.5633329",
"0.56297195",
"0.5593265",
"0.5579742",
"0.5560209",
"0.5552935",
"0.5547352",
"0.5544884",
"0.5542708",
"0.5537467",
"0.55239",
"0.5523631",
"0.55097944",
"0.5500984",
"0.5500603",
"0.5472651",
"0.5434048",
"0.54224455",
"0.5415278",
"0.54046834",
"0.5380021",
"0.5354257",
"0.5306406",
"0.52961713",
"0.5289502",
"0.52888393",
"0.528792",
"0.52838796",
"0.5281872",
"0.5278612",
"0.5278183",
"0.52768284",
"0.52723527",
"0.5262265",
"0.526139",
"0.5261362",
"0.5255337",
"0.5243496",
"0.52427113",
"0.522806",
"0.5220443",
"0.5215783",
"0.5208117",
"0.519369",
"0.51908505",
"0.5188483",
"0.51839364",
"0.51773524",
"0.5174534",
"0.5168809",
"0.51682174",
"0.51665103",
"0.5156872",
"0.51543576",
"0.5150641",
"0.5149432",
"0.5148692",
"0.51470995",
"0.51362056",
"0.51362056",
"0.51362056",
"0.51362056",
"0.51362056",
"0.51362056",
"0.51362056",
"0.51362056",
"0.51362056",
"0.51362056"
] | 0.5246781 | 69 |
Checking field path is exist. | public static boolean fieldPathExist(Class<?> dtoType, String fieldPath) {
if (null != dtoType && !StringUtils.isEmpty(fieldPath)) {
List<String> fieldPaths = getFieldPaths(dtoType, true);
return fieldPaths.contains(fieldPath);
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_PATH:\n return isSetFilePath();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }",
"public final boolean hasPath ()\r\n {\r\n return _value.hasPath();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE:\n return isSetFile();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PATH:\n return isSetPath();\n case RECURSIVE:\n return isSetRecursive();\n case OPTIONS:\n return isSetOptions();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PATH:\n return isSetPath();\n case RECURSIVE:\n return isSetRecursive();\n case OPTIONS:\n return isSetOptions();\n }\n throw new IllegalStateException();\n }",
"@Override\n\tpublic boolean pathExists(String path) {\n\t\treturn false;\n\t}",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_PATH:\n return isSetFilePath();\n case DIR_NAME:\n return isSetDirName();\n case FILE_LENGTH:\n return isSetFileLength();\n case DK_FILE_CONF:\n return isSetDkFileConf();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_PATH:\n return isSetFilePath();\n case DIR_NAME:\n return isSetDirName();\n case FILE_LENGTH:\n return isSetFileLength();\n case DK_FILE_CONF:\n return isSetDkFileConf();\n }\n throw new java.lang.IllegalStateException();\n }",
"static FormValidation doCheckPath(@QueryParameter String value) {\n if (StringUtils.isBlank(value)) {\n return FormValidation.ok();\n }\n try {\n final FilePath filePath = new FilePath(new File(value));\n filePath.exists();\n } catch (Exception e) {\n return FormValidation.error(\"The specified value is not a valid path\");\n }\n return FormValidation.ok();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PATH:\n return isSetPath();\n case DST_PATH:\n return isSetDstPath();\n case OPTIONS:\n return isSetOptions();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PATH:\n return isSetPath();\n case OPTIONS:\n return isSetOptions();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PATH:\n return isSetPath();\n case OPTIONS:\n return isSetOptions();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PATH:\n return isSetPath();\n case OPTIONS:\n return isSetOptions();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PATH:\n return isSetPath();\n case OPTIONS:\n return isSetOptions();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PATH:\n return isSetPath();\n case OPTIONS:\n return isSetOptions();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PATH:\n return isSetPath();\n case OPTIONS:\n return isSetOptions();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PATH:\n return isSetPath();\n case OPTIONS:\n return isSetOptions();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PATH:\n return isSetPath();\n case OPTIONS:\n return isSetOptions();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PATH:\n return isSetPath();\n case OPTIONS:\n return isSetOptions();\n }\n throw new IllegalStateException();\n }",
"boolean hasFieldId();",
"public boolean hasField(String fname) {\n boolean result = false;\n\n try {\n cut.getField(fname);\n result = true;\n } catch (Exception e) {\n }\n\n return result;\n }",
"@Override\r\n\tpublic boolean propertyExists(String absPath) throws RepositoryException {\n\t\treturn false;\r\n\t}",
"boolean hasField0();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case PATH:\n return isSetPath();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case PATH:\n return isSetPath();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case PATH:\n return isSetPath();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case PATH:\n return isSetPath();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n case FILE_DATA:\n return isSetFileData();\n case DIR_NAME:\n return isSetDirName();\n case DK_FILE_CONF:\n return isSetDkFileConf();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PATH:\n return isSetPath();\n case ACTION:\n return isSetAction();\n case ENTRIES:\n return isSetEntries();\n case OPTIONS:\n return isSetOptions();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case UFS_PATH:\n return isSetUfsPath();\n case RECURSIVE:\n return isSetRecursive();\n case OPTIONS:\n return isSetOptions();\n }\n throw new IllegalStateException();\n }",
"boolean hasField3();",
"boolean hasField2();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ALLUXIO_PATH:\n return isSetAlluxioPath();\n case UFS_PATH:\n return isSetUfsPath();\n case OPTIONS:\n return isSetOptions();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ALLUXIO_PATH:\n return isSetAlluxioPath();\n case OPTIONS:\n return isSetOptions();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case UFS_PATH:\n return isSetUfsPath();\n case OPTIONS:\n return isSetOptions();\n }\n throw new IllegalStateException();\n }",
"boolean checkIfPathExists(List<WayPointDto> path);",
"public boolean isSetPath() {\n return this.path != null;\n }",
"public boolean isSetPath() {\n return this.path != null;\n }",
"public boolean isSetPath() {\n return this.path != null;\n }",
"public boolean isSetPath() {\n return this.path != null;\n }",
"public boolean isSetPath() {\n return this.path != null;\n }",
"public boolean isSetPath() {\n return this.path != null;\n }",
"public boolean isSetPath() {\n return this.path != null;\n }",
"public boolean isSetPath() {\n return this.path != null;\n }",
"public boolean isSetPath() {\n return this.path != null;\n }",
"public boolean isSetPath() {\n return this.path != null;\n }",
"public boolean isSetPath() {\n return this.path != null;\n }",
"public boolean isSetPath() {\n return this.path != null;\n }",
"public boolean isSetPath() {\n return this.path != null;\n }",
"public boolean isSetPath() {\n return this.path != null;\n }",
"public boolean isSetPath() {\n return this.path != null;\n }",
"public boolean isSetPath() {\n return this.path != null;\n }",
"public boolean isSetPath() {\n return this.path != null;\n }",
"public boolean isSetPath() {\n return this.path != null;\n }",
"public boolean isSetPath() {\n return this.path != null;\n }",
"public boolean isSetPath() {\n return this.path != null;\n }",
"boolean hasField1();",
"public boolean hasPath()\n\t{\n\t\tPathFinder as = new PathFinder(getGrid(), 625);\n \treturn (as.findPath(this, getGrid().getUser().getLocation().getRow(), getGrid().getUser().getLocation().getCol(),false).getLength() != 0);\n\n\t}",
"boolean isAgencyLogoPathValid() {\n boolean valid = true;\n\n if (defaultLogoRB.isSelected()) {\n agencyLogoPathFieldValidationLabel.setText(\"\");\n } else {\n String agencyLogoPath = agencyLogoPathField.getText();\n if (agencyLogoPath.isEmpty()) {\n agencyLogoPathFieldValidationLabel.setText(Bundle.AutopsyOptionsPanel_agencyLogoPathFieldValidationLabel_pathNotSet_text());\n valid = false;\n } else {\n File file = new File(agencyLogoPathField.getText());\n if (file.exists() && file.isFile()) {\n BufferedImage image;\n try { //ensure the image can be read\n image = ImageIO.read(file); //create it as an image first to support BMP files\n if (image == null) {\n throw new IOException(\"Unable to read file as a BufferedImage for file \" + file.toString());\n }\n agencyLogoPathFieldValidationLabel.setText(\"\");\n } catch (IOException | IndexOutOfBoundsException ignored) {\n agencyLogoPathFieldValidationLabel.setText(Bundle.AutopsyOptionsPanel_agencyLogoPathFieldValidationLabel_invalidImageSpecified_text());\n valid = false;\n }\n } else {\n agencyLogoPathFieldValidationLabel.setText(Bundle.AutopsyOptionsPanel_agencyLogoPathFieldValidationLabel_invalidPath_text());\n valid = false;\n }\n }\n }\n\n return valid;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case PATH:\n return isSetPath();\n case NAME:\n return isSetName();\n }\n throw new IllegalStateException();\n }",
"public boolean hasField(String fname, String value) {\n boolean result = false;\n\n try {\n Field f = cut.getField(fname);\n String fValue = (String) f.get(null);\n if (fValue.equals(value)) {\n result = true;\n }\n } catch (Exception e) {\n }\n\n return result;\n }",
"boolean checkIfPathExists(String startCityUID, List<WayPointDto> path);",
"@Override\r\n\tpublic boolean exists( UserFields fields ) {\n\t\treturn false;\r\n\t}",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case HOST:\n return isSetHost();\n case PATH:\n return isSetPath();\n }\n throw new IllegalStateException();\n }",
"boolean hasField4();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case PATH:\n return isSetPath();\n case FILE_NAME:\n return isSetFileName();\n case BUFFER:\n return isSetBuffer();\n }\n throw new IllegalStateException();\n }",
"Path getHasPath();",
"private boolean checkFileExists(String fPath) {\n\t\tFile file = new File(fPath);\n\t\treturn file.exists();\n\t}",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_PATH:\n return isSetFilePath();\n case OUTPUT_DIR:\n return isSetOutputDir();\n case SUBSET:\n return isSetSubset();\n case TYPES:\n return isSetTypes();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NAME:\n return isSetName();\n case FILE_BODY:\n return isSetFileBody();\n case FILE_TYPE:\n return isSetFileType();\n }\n throw new IllegalStateException();\n }",
"public boolean hasPath() {\n try {\n aStarPath();\n } catch (PathNotFoundException e){\n return false;\n }\n return true;\n }",
"private void validate(Path path) {\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }",
"boolean hasFieldNested();",
"boolean containsField(\n java.lang.String key);",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_INFO:\n return isSetUserInfo();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case REFERRAL_LOG_ID:\n return isSetReferralLogId();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }"
] | [
"0.6679666",
"0.6305472",
"0.6305472",
"0.627334",
"0.621598",
"0.6208255",
"0.6208255",
"0.61970305",
"0.6183643",
"0.6183643",
"0.6182194",
"0.61410546",
"0.6131631",
"0.6131631",
"0.6131631",
"0.6131631",
"0.6131631",
"0.6131631",
"0.6131631",
"0.6131631",
"0.6131631",
"0.6110734",
"0.60929453",
"0.60891527",
"0.6070265",
"0.60486156",
"0.60486156",
"0.60486156",
"0.60486156",
"0.6034107",
"0.6028934",
"0.60211694",
"0.6004631",
"0.5998664",
"0.59946567",
"0.59923327",
"0.5990119",
"0.59744895",
"0.59646714",
"0.59646714",
"0.59646714",
"0.59646714",
"0.59646714",
"0.59646714",
"0.59646714",
"0.59646714",
"0.59646714",
"0.59646714",
"0.59646714",
"0.59646714",
"0.59646714",
"0.59646714",
"0.59646714",
"0.59646714",
"0.59646714",
"0.59646714",
"0.59646714",
"0.59646714",
"0.5952321",
"0.59316075",
"0.5915911",
"0.5902936",
"0.5893562",
"0.58778167",
"0.5854342",
"0.584954",
"0.5846156",
"0.5836556",
"0.58026856",
"0.5784459",
"0.5772175",
"0.5766095",
"0.56731355",
"0.5667807",
"0.5649363",
"0.5649363",
"0.56284547",
"0.5628073",
"0.5623175",
"0.56224763",
"0.5612449",
"0.5612449",
"0.5612449",
"0.5612449",
"0.5612449",
"0.5612449",
"0.5612449",
"0.5612449",
"0.5612449",
"0.5612449",
"0.5612449",
"0.5612449",
"0.5612449",
"0.5612449",
"0.5612449",
"0.5612449",
"0.5612449",
"0.5612449",
"0.5612449",
"0.5612449"
] | 0.6967885 | 0 |
Get field paths of field of Data Transfer Object. | public static List<String> getFieldPaths(Field field, boolean lookingInner) {
List<String> fieldPaths = new ArrayList<>();
if (null != field) {
String fieldPath = field.getName();
Class<?> innerClass = MappingUtils.getFieldType(field);
if (lookingInner && validate(innerClass)) {
List<String> innerFieldPaths = getFieldPaths(innerClass, true);
if (!CollectionUtils.isEmpty(innerFieldPaths)) {
String finalFieldPath = fieldPath + Constants.DOT;
fieldPaths.addAll(innerFieldPaths.stream().map(finalFieldPath::concat).collect(Collectors.toList()));
}
} else {
fieldPaths.add(fieldPath);
}
}
return fieldPaths;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<String> getFieldPaths(Class<?> dtoType, boolean lookingInner) {\n List<String> fieldPaths = new ArrayList<>();\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n fieldPaths.addAll(getFieldPaths(field, lookingInner));\n }\n return fieldPaths;\n }",
"public static List<String> getEntityMappingFieldPaths(Field field, boolean lookingInner, boolean includeCollection) {\n List<String> fieldPaths = new ArrayList<>();\n if (null != field) {\n String fieldPath = field.getName();\n MappingField mappingField = ObjectUtils.getAnnotation(field, MappingField.class);\n if (null != mappingField && !StringUtils.isEmpty(mappingField.entityField())) {\n fieldPath = mappingField.entityField();\n }\n\n Class<?> innerClass = MappingUtils.getFieldType(field);\n boolean isCollection = ObjectUtils.fieldIsCollection(field);\n // Case 1: Field is normal field >> get one entity mapping field has been configuration in MappingField annotation\n // Case 2: Field is another DTO field, lookingInner = true, includeCollection = true >> looking all field of DTO field\n // Case 3: Field is another DTO field, lookingInner = true, includeCollection = false >> only non Collection field will be looking to get mapping fields\n if (lookingInner && validate(innerClass) && (includeCollection || !isCollection)) {\n List<String> innerFieldPaths = getEntityMappingFieldPaths(innerClass, true, true);\n if (!CollectionUtils.isEmpty(innerFieldPaths)) {\n String finalFieldPath = fieldPath.concat(Constants.DOT);\n fieldPaths.addAll(innerFieldPaths.stream().map(finalFieldPath::concat).collect(Collectors.toList()));\n }\n } else if (includeCollection || !isCollection) {\n fieldPaths.add(fieldPath);\n }\n }\n return fieldPaths.stream().distinct().collect(Collectors.toList());\n }",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tpublic static <T> Path<Object> getPathFromField(Root<T> root, String field) {\n\t\tString[] fieldname = field.split(\"/\");\n\t\tPath<Object> path = null;\n\t\tfor (int idx = 0; idx < fieldname.length; idx++) {\n\n\t\t\tString attributeName = fieldname[idx];\n\n\t\t\tif (path != null) {\n\t\t\t\tpath = path.get(attributeName);\n\t\t\t} else {\n\t\t\t\tpath = root.get(attributeName);\n\t\t\t}\n\n\t\t\tif ((fieldname.length - 1) > idx) {\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Set.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tJoin<T, ?> join = opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tpath = join.get(fieldname[++idx]);\n\n\t\t\t\t}\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Map.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tMapJoin join = (MapJoin) opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tString f = fieldname[++idx];\n\t\t\t\t\tif (f.equals(\"key\"))\n\t\t\t\t\t\tpath = join.key();\n\t\t\t\t\telse if (f.equals(\"value\"))\n\t\t\t\t\t\tpath = join.value();\n\t\t\t\t\telse\n\t\t\t\t\t\tthrow new FormatExceptionException(\"Only key or value you can specify in a map filter, got: \" + f);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn path;\n\t}",
"public static List<String> getEntityMappingFieldPaths(Class<?> dtoType, boolean lookingInner, boolean includeCollection) {\n List<String> fieldPaths = new ArrayList<>();\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n fieldPaths.addAll(getEntityMappingFieldPaths(field, lookingInner, includeCollection));\n }\n return fieldPaths.stream().distinct().collect(Collectors.toList());\n }",
"public static List<String> getEntityMappingFieldPaths(Class<?> dtoType) {\n return getEntityMappingFieldPaths(dtoType, false, true);\n }",
"public static String getEntityMappingFieldPath(Field field) {\n List<String> fieldPaths = getEntityMappingFieldPaths(field, false, true);\n if (fieldPaths.size() > 0) {\n return fieldPaths.get(0);\n }\n return null;\n }",
"java.lang.String getFields();",
"public static List<String> getEntityMappingFieldPathsCollection(Class<?> dtoType, boolean lookingInner) {\n List<String> fieldPaths = new ArrayList<>();\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n if (validate(MappingUtils.getFieldType(field)) && ObjectUtils.fieldIsCollection(field)) {\n fieldPaths.addAll(getEntityMappingFieldPaths(field, lookingInner, true));\n }\n }\n return fieldPaths;\n }",
"public static List<String> getEntityMappingFieldPathsCollection(Class<?> dtoType) {\n return getEntityMappingFieldPathsCollection(dtoType, false);\n }",
"PathKeys getPathKeys();",
"ISourceField[] getFields();",
"List<Field> getFields();",
"public static String getEntityMappingFieldPath(Class<?> dtoType, String fieldPath) {\n if (null != dtoType && !StringUtils.isEmpty(fieldPath)) {\n String[] paths = fieldPath.split(Constants.DOT_REGEX);\n Field field = ObjectUtils.getField(dtoType, paths[0], true);\n String entityFieldName = getEntityMappingFieldPath(field);\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (paths.length > 1 && validate(innerClass)) {\n String nextPath = fieldPath.substring(fieldPath.indexOf(Constants.DOT) + 1);\n entityFieldName = entityFieldName + Constants.DOT + getEntityMappingFieldPath(innerClass, nextPath);\n }\n return entityFieldName;\n }\n return null;\n }",
"public static List<String> getEntityMappingFieldPathsPrimary(Class<?> dtoType, boolean includeCollection) {\n // Get primary key of Entity mapping with DTO\n List<String> entityKeyFields = EntityUtils.getPrimaryKey(getEntityType(dtoType));\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n // For each field of DTO, if field is another DTO then get also.\n for (Field field : fields) {\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType) && (includeCollection || !ObjectUtils.fieldIsCollection(field))) {\n String fieldPath = getEntityMappingFieldPath(field);\n fieldPath = null != fieldPath ? fieldPath + Constants.DOT : Constants.EMPTY_STRING;\n List<String> innerKeyFieldPaths = getEntityMappingFieldPathsPrimary(fieldType, includeCollection)\n .stream().map(fieldPath::concat).collect(Collectors.toList());\n entityKeyFields.addAll(innerKeyFieldPaths);\n }\n }\n return entityKeyFields;\n }",
"List<JPAPath> getKeyPath() throws ODataJPAModelException;",
"public List<String> getIndexedFields() {\n\t\t\tList<String> indexedFields = new ArrayList<>();\n\t\t\t\n\t\t\tindexedFields.add(field);\n\t\t\tindexedFields.add(field + \".folded\");\n\t\t\t\n\t\t\treturn indexedFields;\n\t\t}",
"public Field[] getKeyFields();",
"private String[] getNameParts() {\n return field.getName().split(\"_\");\n }",
"public com.google.protobuf.ProtocolStringList\n getPathList() {\n return path_;\n }",
"public String[] getFieldNames();",
"java.util.List<Field>\n getFieldsList();",
"private String[] getDefinedFields(ObjectSet<?> pObjectSet) {\r\n\t\tString[] returnedValue = null;\r\n\t\tList<String> fieldsList = new ArrayList<String>();\r\n\t\t\r\n\t\tif (pObjectSet != null) {\r\n\t\t\tif (pObjectSet.getDataMappings().size() > 0) {\r\n\t\t\t\tfor(DataMapping mapping : pObjectSet.getDataMappings()) {\r\n\t\t\t\t\tif (!mapping.virtual && !mapping.IsCollection) {\r\n\t\t\t\t\t\tif (mapping.DataBaseDataType != Entity.DATATYPE_ENTITY) {\r\n\t\t\t\t\t\t\tfieldsList.add(mapping.DataBaseFieldName);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (fieldsList.size() > 0) {\r\n\t\t\treturnedValue = fieldsList.toArray(new String[fieldsList.size()]);\r\n\t\t}\r\n\t\t\r\n\t\treturn returnedValue;\r\n\t}",
"public String getPath() throws Exception {\n\t\t/*\n\t\t * return \"/news-oppsRecord\" + doc.selectSingleNode\n\t\t * (\"/metadataFieldInfo/field/@path\").getText();\n\t\t */\n\t\treturn doc.selectSingleNode(\"/metadataFieldInfo/field/@path\").getText();\n\t}",
"public JTextField getPathField() {\n return ((JTextField) innerSearcher.\n findComponent(new ComponentChooser() {\n @Override\n public boolean checkComponent(Component comp) {\n return (comp != null\n && comp instanceof JTextField);\n }\n\n @Override\n public String getDescription() {\n return \"JTextField\";\n }\n\n @Override\n public String toString() {\n return \"JFileChooserOperator.getPathField.ComponentChooser{description = \" + getDescription() + '}';\n }\n }));\n }",
"List<FieldNode> getFields() {\n return this.classNode.fields;\n }",
"public T caseFieldPath(FieldPath object)\n {\n return null;\n }",
"public String getFields() {\n return fields;\n }",
"abstract public FieldNames getFieldNames();",
"@Override\n public java.util.List<Field> getFieldsList() {\n return fields_;\n }",
"Map<String, PathItem> getPathItems();",
"public List<Field<T>> getFields()\r\n/* 63: */ {\r\n/* 64:84 */ return this.fields;\r\n/* 65: */ }",
"public String[] getManagedFields(String classPath)\n throws EnhancerMetaDataUserException, EnhancerMetaDataFatalError\n {\n final JDOClass clazz = getJDOClass(classPath);\n if (clazz == null) {\n return new String[]{};\n }\n\n final JDOField[] fields = clazz.getDeclaredManagedFields();\n if (fields == null) {\n return new String[]{};\n }\n affirm(fields.length == clazz.getDeclaredManagedFieldCount());\n \n final int n = fields.length;\n final String[] names = new String[n];\n for (int i = 0; i < n; i++) {\n affirm(fields[i] != null);\n affirm(fields[i].getRelativeFieldNumber() == i);\n affirm(fields[i].isManaged());\n names[i] = fields[i].getName();\n affirm(names[i] != null);\n }\n return names;\n }",
"public List<String> getFields() {\n if (!Strings.isNullOrEmpty(fields)) {\n return Arrays.asList(fields.split(\",\"));\n } else {\n return Collections.emptyList();\n }\n }",
"String getField();",
"public void clearFieldPaths() {\n this.fieldPaths_ = GeneratedMessageLite.emptyProtobufList();\n }",
"public String[] getFieldNames()\n {\n return this.fieldMap.keyArray(String.class);\n }",
"public java.lang.String[] getMappingFieldsArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(MAPPINGFIELDS$28, targetList);\n java.lang.String[] result = new java.lang.String[targetList.size()];\n for (int i = 0, len = targetList.size() ; i < len ; i++)\n result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();\n return result;\n }\n }",
"public abstract List<String> path();",
"java.util.List<java.lang.String>\n getPathsList();",
"java.util.List<com.sagas.meta.model.MetaFieldData> \n getFieldsList();",
"List<String> getListPaths();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n default:\n return null;\n }\n }",
"abstract public List<S> getPath();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // DST_PATH\n return DST_PATH;\n case 3: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public MedicalRecordDO[] getMedicalRecordPath(Integer uid);",
"public List<AliasedField> getFields() {\r\n return fields;\r\n }",
"private List<Field> getMappedFields(Mapping objectMapping, DataSourceType dataSourceType) {\n List<Field> mappedFields = null;\n if (dataSourceType == DataSourceType.SOURCE) {\n FieldGroup fg = objectMapping.getInputFieldGroup();\n if (fg != null) {\n mappedFields = fg.getField();\n } else {\n mappedFields = objectMapping.getInputField();\n }\n } else {\n mappedFields = objectMapping.getOutputField();\n }\n return mappedFields;\n }",
"public com.google.protobuf.ProtocolStringList\n getPathList() {\n return path_.getUnmodifiableView();\n }",
"@Nullable\n @Generated\n @Selector(\"relationshipKeyPathsForPrefetching\")\n public native NSArray<String> relationshipKeyPathsForPrefetching();",
"public String[] getFieldNameMapping() {\r\n return null;\r\n }",
"public List<FieldObject> getFieldObjects() {\n return _fieldObjects;\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public com.google.protobuf.ProtocolStringList\n getPathsList() {\n return paths_;\n }",
"public EAdList<EAdField<?>> getFields() {\r\n\t\treturn fields;\r\n\t}",
"@Override\n\tpublic Collection<IFieldLogic> getFkFields(final IFieldLogic fkFieldParent) {\n\t\tfinal Collection<IFieldLogic> fkFields = new ArrayList<IFieldLogic>();\n\t\tfinal Iterator<IFieldLogic> iterador = this.fieldDefSet.values().iterator();\n\t\twhile (iterador.hasNext()) {\n\t\t\tfinal IFieldLogic fieldOfMe = iterador.next();\n\t\t\tif (fieldOfMe.getParentFieldEntities() != null && fieldOfMe.getParentFieldEntities().contains(fkFieldParent)) {\n\t\t\t\tfkFields.add(fieldOfMe);\n\t\t\t}\n\t\t}\n\t\treturn fkFields;\n\t}",
"public void addAllFieldPaths(Iterable<String> iterable) {\n ensureFieldPathsIsMutable();\n AbstractMessageLite.addAll(iterable, this.fieldPaths_);\n }",
"public static String[][] getAllFieldsEx(Object object) throws Exception {\r\n\r\n\t\tClass classType = object.getClass();\r\n\t\tField fields[] = ReflectUtil.getAllFields(classType);\r\n\t\tString[][] fieldNameValuePair = new String[fields.length][2];\r\n\t\tfor (int i = 0; i < fields.length; i++) {\r\n\t\t\tField field = fields[i];\r\n\t\t\tString fieldName = field.getName();\r\n\t\t\tMethod getMethod = ReflectUtil.getFieldGetMethod(classType, field);\r\n\t\t\tObject value = getMethod.invoke(object, new Object[] {});\r\n\t\t\tfieldNameValuePair[i][0] = fieldName;\r\n\t\t\tfieldNameValuePair[i][1] = value.toString();\r\n\t\t}\r\n\t\treturn fieldNameValuePair;\r\n\t}",
"public List<String> getListFilePath() throws AncestryException {\n\t\tList<String> listFormKey = new ArrayList<String>();\n\t\tConnection con = null;\n\t\tString sql = \"\";\n\t\ttry {\n\t\t\tsql = \"SELECT filepath FROM \" + management + \" WHERE step =4 GROUP BY filepath ORDER BY filepath\";\n\t\t\tcon = db.getConnectByProject(project);\n\t\t\tlistFormKey = JdbcHelper.queryToSingleList(con, sql , true);\n\t\t} catch (Exception e) {\n\t\t\tthrow new AncestryException(\"getListFilePath : \" + e.toString() ,e);\n\t\t}\n\t\tfinally {\n\t\t\tJdbcHelper.close(con);\n\t\t}\n\t\treturn listFormKey;\n\t}",
"PathSegments getPath();",
"public abstract List<String> getControlledPaths();",
"List<Pair<String, Value>> fields();",
"public Position[] getPath() {\n\t\treturn path;\n\t}",
"public static Object getPathMessage(Descriptors.FieldDescriptor fieldDescriptor,\n DynamicMessage message,\n FieldPathUtils.PathInfo pathInfo,\n FeatureContext ctx) {\n if (FieldPathUtils.PathType.ARRAY.equals(pathInfo.getPathType())) {\n int repeatedFieldCount = message.getRepeatedFieldCount(fieldDescriptor);\n if (repeatedFieldCount > pathInfo.getIndex()) {\n return ProtoUtils.getArrayField(message, fieldDescriptor, pathInfo.getIndex());\n }\n return null;\n } else {\n return ProtoUtils.getField(message, fieldDescriptor, ctx);\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // RECURSIVE\n return RECURSIVE;\n case 3: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // RECURSIVE\n return RECURSIVE;\n case 3: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"private List<String> getFieldValuesOfResource(String resourceId, String fieldName)\n\t\t\tthrows IOException, TemplateException {\n\t\tTemplateBuilder builder = template(\"thingsByResourceIdAndFieldName.sparql\").addParam(\"resourceId\", resourceId)\n\t\t\t\t.addParam(\"fieldName\", fieldName);\n\n\t\tFusekiResponse fr = getQueryEngine().fusekiResponse(builder.build());\n\n\t\tList<String> values = new ArrayList<>();\n\t\tfor (Statement statement : fr.results.bindings) {\n\t\t\tvalues.add(statement.getObject().getValue());\n\t\t}\n\t\treturn values;\n\t}",
"public List<String> getSelectFields() {\n List<String> selectField = new ArrayList<>();\n for (SelectItem item : queryBody.getSelect().getSelectItems()) {\n if (item instanceof SingleColumn) {\n Expression expression = ((SingleColumn)item).getExpression();\n if (expression instanceof Identifier) {\n selectField.add(((Identifier)expression).getValue());\n }\n\n }\n }\n return selectField;\n }",
"public String[] listObjectNames(String path);",
"public String getFieldName();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ALLUXIO_PATH\n return ALLUXIO_PATH;\n case 2: // UFS_PATH\n return UFS_PATH;\n case 3: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public ObjectNode resolvePaths();",
"public static Field getFieldByPath(Class<?> dtoType, String fieldPath) {\n if (null != dtoType && !StringUtils.isEmpty(fieldPath)) {\n String[] paths = fieldPath.split(Constants.DOT_REGEX);\n\n Field field = ObjectUtils.getField(dtoType, paths[0], true);\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (paths.length > 1 && validate(innerClass)) {\n String nextPath = fieldPath.substring(fieldPath.indexOf(Constants.DOT) + 1);\n field = getFieldByPath(innerClass, nextPath);\n }\n return field;\n }\n return null;\n }",
"public com.google.protobuf.ProtocolStringList\n getPathsList() {\n return paths_.getUnmodifiableView();\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // ACTION\n return ACTION;\n case 3: // ENTRIES\n return ENTRIES;\n case 4: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public Set getAccessPathEdgeFields() {\n if (accessPathEdges == null) return Collections.EMPTY_SET;\n return accessPathEdges.keySet();\n }",
"@Override\n\tpublic List<String> listSearchableFields() {\n\t\tList<String> listSearchableFields = new ArrayList<String>();\n\t\tlistSearchableFields.addAll(super.listSearchableFields());\n\n\t\tlistSearchableFields.add(\"firstName\");\n\n\t\tlistSearchableFields.add(\"lastName\");\n\n\t\tlistSearchableFields.add(\"contactDetails.phone\");\n\n\t\tlistSearchableFields.add(\"contactDetails.secondaryPhone\");\n\n\t\tlistSearchableFields.add(\"contactDetails.city\");\n\n\t\treturn listSearchableFields;\n\t}",
"public MappingField[] getMappingFields() {\n List myFields = getMappingFieldsInternal();\n return (MappingField[]) myFields.toArray(\n new MappingField[myFields.size()]);\n }",
"Fields fields();",
"public List<String> getPathwayNames()\r\n\t{\r\n\t\treturn null; //To change body of implemented methods use File | Settings | File Templates.\r\n\t}",
"public Path getPath(){\n return this.path;\n }",
"Path getPath() {\n return this.path;\n }",
"public org.apache.xmlbeans.XmlString[] xgetMappingFieldsArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(MAPPINGFIELDS$28, targetList);\n org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public List<AccountingLineViewField> getFields() {\n return fields;\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // UFS_PATH\n return UFS_PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public List<String> getPaths() {\n List<String> result;\n synchronized (this.paths) {\n result = this.paths;\n }\n return result;\n }",
"public List<Path> getPaths() {\n return _thePaths;\n }",
"public abstract ArrayList<CustomPath> getAnnotationPathList();",
"public FieldDescriptor[] getFields() {\n int size = attributeDescriptors.size();\n size += elementDescriptors.size();\n if (contentDescriptor != null) ++size;\n\n FieldDescriptor[] fields = new FieldDescriptor[size];\n int c = 0;\n for (int i = 0; i < attributeDescriptors.size(); i++)\n fields[c++] = (FieldDescriptor) attributeDescriptors.get(i);\n\n for (int i = 0; i < elementDescriptors.size(); i++)\n fields[c++] = (FieldDescriptor) elementDescriptors.get(i);\n\n if (contentDescriptor != null)\n fields[c] = contentDescriptor;\n\n return fields;\n }",
"private void recurseThroughObject(Object obj, List<String> path, String currentField) {\n\n MethodAccess methodAccess = MethodAccess.get(obj.getClass());\n\n for (LogCache logCache : CacheableAccessors.getMethodIndexes(obj.getClass(), methodAccess)) {\n\n if (canLogMethod(logCache, methodAccess)) {\n\n List<String> recursivePath = Lists.newArrayList(path);\n\n Object logResult;\n\n try {\n logResult = methodAccess.invoke(obj, logCache.getIndex());\n }\n catch(IllegalAccessError er) {\n logResult = \"<Illegal Method Access Error>\";\n }\n catch (Throwable t) {\n logResult = configs.getExceptionTranslator().translate(t);\n }\n\n try {\n buildMessage(getLogMessage(logCache, logResult), recursivePath,\n formatMethod(recursivePath, methodAccess.getMethodNames()[logCache.getIndex()]));\n }\n catch (Throwable t) {\n // result is ignored, but can be captured for debugging since we've already tried to catch\n // and build\n configs.getExceptionTranslator().translate(t);\n }\n }\n }\n\n FieldAccess fieldAccess = FieldAccess.get(obj.getClass());\n\n for (LogCache logCache : CacheableAccessors.getFieldIndexes(obj.getClass(), fieldAccess)) {\n String fieldName = \"???\";\n\n try {\n if (Scope.SKIP == logCache.getLogScope()) {\n continue;\n }\n\n fieldName = fieldAccess.getFieldNames()[logCache.getIndex()];\n\n List<String> recursivePath = Lists.newArrayList(path);\n recursivePath.add(fieldName);\n\n if (!configs.getExcludesPrefixes().stream().anyMatch(fieldName::startsWith)) {\n buildMessage(getLogMessage(logCache, fieldAccess.get(obj, logCache.getIndex())), recursivePath,\n formatField(currentField, fieldName));\n }\n }\n catch (Throwable t) {\n String fieldError = configs.getExceptionTranslator().translate(t);\n\n buildMessage(getLogMessage(logCache, fieldError), path,\n formatField(currentField, fieldName));\n }\n }\n\n }",
"@SimpleFunction(description = \"Get the fields in the projects as a list\")\n public YailList GetFieldsList() {\n ArrayList<String> fieldsList = new ArrayList<String>();\n for (RProjectField j : fields) {\n fieldsList.add(j.name);\n }\n return YailList.makeList(fieldsList);\n }",
"java.lang.String getField1078();",
"public List<Field> iterateThroughAllFields() {\n\n List<Field> listOfFields = new ArrayList<Field>(fields.length * fields.length);\n // TODO: n**m complexity\n for (int i = 0; i < this.fields.length; i++) {\n for (int j = 0; j < this.fields.length; j++) {\n listOfFields.add(this.fields[i][j]);\n }\n }\n return listOfFields;\n }"
] | [
"0.6844577",
"0.68154365",
"0.6711847",
"0.6681801",
"0.6578324",
"0.62825894",
"0.61811095",
"0.61700386",
"0.6104105",
"0.61012363",
"0.60591996",
"0.6002238",
"0.5917516",
"0.5833101",
"0.5799426",
"0.5762936",
"0.5688885",
"0.56672853",
"0.56498253",
"0.5639491",
"0.5630411",
"0.55674547",
"0.5566768",
"0.55221033",
"0.54978156",
"0.54879856",
"0.5477538",
"0.54568344",
"0.5438687",
"0.54345274",
"0.54130536",
"0.5407284",
"0.53929156",
"0.53837067",
"0.5369851",
"0.53676677",
"0.5362715",
"0.53617936",
"0.5341358",
"0.53387034",
"0.5337759",
"0.5334062",
"0.53268844",
"0.53216636",
"0.5319407",
"0.5318826",
"0.5310345",
"0.5303037",
"0.5301345",
"0.53003377",
"0.52996725",
"0.52954334",
"0.52954334",
"0.52954334",
"0.52954334",
"0.52954334",
"0.52954334",
"0.52954334",
"0.52954334",
"0.52954334",
"0.5266724",
"0.5265413",
"0.5262943",
"0.5254189",
"0.52502084",
"0.5247068",
"0.52302206",
"0.52298987",
"0.5225035",
"0.52198106",
"0.52187157",
"0.52037865",
"0.52037865",
"0.5193728",
"0.5193347",
"0.51860636",
"0.5183425",
"0.51725245",
"0.5170172",
"0.5168446",
"0.5161058",
"0.51607144",
"0.51557934",
"0.51521194",
"0.51496655",
"0.51483935",
"0.5144573",
"0.5142098",
"0.5132805",
"0.5125452",
"0.5123561",
"0.5114963",
"0.5112143",
"0.51053995",
"0.5103879",
"0.5101256",
"0.50891733",
"0.5088739",
"0.50880027",
"0.5087703"
] | 0.70398754 | 0 |
Get field paths of Data Transfer Object. | public static List<String> getFieldPaths(Class<?> dtoType, boolean lookingInner) {
List<String> fieldPaths = new ArrayList<>();
List<Field> fields = ObjectUtils.getFields(dtoType, true);
for (Field field : fields) {
fieldPaths.addAll(getFieldPaths(field, lookingInner));
}
return fieldPaths;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<String> getEntityMappingFieldPaths(Class<?> dtoType) {\n return getEntityMappingFieldPaths(dtoType, false, true);\n }",
"public static List<String> getFieldPaths(Field field, boolean lookingInner) {\n List<String> fieldPaths = new ArrayList<>();\n if (null != field) {\n String fieldPath = field.getName();\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (lookingInner && validate(innerClass)) {\n List<String> innerFieldPaths = getFieldPaths(innerClass, true);\n if (!CollectionUtils.isEmpty(innerFieldPaths)) {\n String finalFieldPath = fieldPath + Constants.DOT;\n fieldPaths.addAll(innerFieldPaths.stream().map(finalFieldPath::concat).collect(Collectors.toList()));\n }\n } else {\n fieldPaths.add(fieldPath);\n }\n }\n return fieldPaths;\n }",
"public static List<String> getEntityMappingFieldPaths(Class<?> dtoType, boolean lookingInner, boolean includeCollection) {\n List<String> fieldPaths = new ArrayList<>();\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n fieldPaths.addAll(getEntityMappingFieldPaths(field, lookingInner, includeCollection));\n }\n return fieldPaths.stream().distinct().collect(Collectors.toList());\n }",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tpublic static <T> Path<Object> getPathFromField(Root<T> root, String field) {\n\t\tString[] fieldname = field.split(\"/\");\n\t\tPath<Object> path = null;\n\t\tfor (int idx = 0; idx < fieldname.length; idx++) {\n\n\t\t\tString attributeName = fieldname[idx];\n\n\t\t\tif (path != null) {\n\t\t\t\tpath = path.get(attributeName);\n\t\t\t} else {\n\t\t\t\tpath = root.get(attributeName);\n\t\t\t}\n\n\t\t\tif ((fieldname.length - 1) > idx) {\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Set.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tJoin<T, ?> join = opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tpath = join.get(fieldname[++idx]);\n\n\t\t\t\t}\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Map.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tMapJoin join = (MapJoin) opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tString f = fieldname[++idx];\n\t\t\t\t\tif (f.equals(\"key\"))\n\t\t\t\t\t\tpath = join.key();\n\t\t\t\t\telse if (f.equals(\"value\"))\n\t\t\t\t\t\tpath = join.value();\n\t\t\t\t\telse\n\t\t\t\t\t\tthrow new FormatExceptionException(\"Only key or value you can specify in a map filter, got: \" + f);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn path;\n\t}",
"PathKeys getPathKeys();",
"public static List<String> getEntityMappingFieldPaths(Field field, boolean lookingInner, boolean includeCollection) {\n List<String> fieldPaths = new ArrayList<>();\n if (null != field) {\n String fieldPath = field.getName();\n MappingField mappingField = ObjectUtils.getAnnotation(field, MappingField.class);\n if (null != mappingField && !StringUtils.isEmpty(mappingField.entityField())) {\n fieldPath = mappingField.entityField();\n }\n\n Class<?> innerClass = MappingUtils.getFieldType(field);\n boolean isCollection = ObjectUtils.fieldIsCollection(field);\n // Case 1: Field is normal field >> get one entity mapping field has been configuration in MappingField annotation\n // Case 2: Field is another DTO field, lookingInner = true, includeCollection = true >> looking all field of DTO field\n // Case 3: Field is another DTO field, lookingInner = true, includeCollection = false >> only non Collection field will be looking to get mapping fields\n if (lookingInner && validate(innerClass) && (includeCollection || !isCollection)) {\n List<String> innerFieldPaths = getEntityMappingFieldPaths(innerClass, true, true);\n if (!CollectionUtils.isEmpty(innerFieldPaths)) {\n String finalFieldPath = fieldPath.concat(Constants.DOT);\n fieldPaths.addAll(innerFieldPaths.stream().map(finalFieldPath::concat).collect(Collectors.toList()));\n }\n } else if (includeCollection || !isCollection) {\n fieldPaths.add(fieldPath);\n }\n }\n return fieldPaths.stream().distinct().collect(Collectors.toList());\n }",
"java.lang.String getFields();",
"public static List<String> getEntityMappingFieldPathsCollection(Class<?> dtoType) {\n return getEntityMappingFieldPathsCollection(dtoType, false);\n }",
"public static List<String> getEntityMappingFieldPathsCollection(Class<?> dtoType, boolean lookingInner) {\n List<String> fieldPaths = new ArrayList<>();\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n if (validate(MappingUtils.getFieldType(field)) && ObjectUtils.fieldIsCollection(field)) {\n fieldPaths.addAll(getEntityMappingFieldPaths(field, lookingInner, true));\n }\n }\n return fieldPaths;\n }",
"public com.google.protobuf.ProtocolStringList\n getPathList() {\n return path_;\n }",
"ISourceField[] getFields();",
"List<JPAPath> getKeyPath() throws ODataJPAModelException;",
"List<Field> getFields();",
"Map<String, PathItem> getPathItems();",
"java.util.List<java.lang.String>\n getPathsList();",
"public static String getEntityMappingFieldPath(Field field) {\n List<String> fieldPaths = getEntityMappingFieldPaths(field, false, true);\n if (fieldPaths.size() > 0) {\n return fieldPaths.get(0);\n }\n return null;\n }",
"public com.google.protobuf.ProtocolStringList\n getPathsList() {\n return paths_;\n }",
"public abstract List<String> getControlledPaths();",
"List<String> getListPaths();",
"public abstract List<String> path();",
"public String getPath() throws Exception {\n\t\t/*\n\t\t * return \"/news-oppsRecord\" + doc.selectSingleNode\n\t\t * (\"/metadataFieldInfo/field/@path\").getText();\n\t\t */\n\t\treturn doc.selectSingleNode(\"/metadataFieldInfo/field/@path\").getText();\n\t}",
"abstract public List<S> getPath();",
"public Path[] getPaths()\r\n\t{\r\n\t return paths;\r\n\t}",
"private String[] getDefinedFields(ObjectSet<?> pObjectSet) {\r\n\t\tString[] returnedValue = null;\r\n\t\tList<String> fieldsList = new ArrayList<String>();\r\n\t\t\r\n\t\tif (pObjectSet != null) {\r\n\t\t\tif (pObjectSet.getDataMappings().size() > 0) {\r\n\t\t\t\tfor(DataMapping mapping : pObjectSet.getDataMappings()) {\r\n\t\t\t\t\tif (!mapping.virtual && !mapping.IsCollection) {\r\n\t\t\t\t\t\tif (mapping.DataBaseDataType != Entity.DATATYPE_ENTITY) {\r\n\t\t\t\t\t\t\tfieldsList.add(mapping.DataBaseFieldName);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (fieldsList.size() > 0) {\r\n\t\t\treturnedValue = fieldsList.toArray(new String[fieldsList.size()]);\r\n\t\t}\r\n\t\t\r\n\t\treturn returnedValue;\r\n\t}",
"public String[] listObjectNames(String path);",
"public List<String> getPaths() {\n List<String> result;\n synchronized (this.paths) {\n result = this.paths;\n }\n return result;\n }",
"public List<Path> getPaths() {\n return _thePaths;\n }",
"public com.google.protobuf.ProtocolStringList\n getPathsList() {\n return paths_.getUnmodifiableView();\n }",
"public com.google.protobuf.ProtocolStringList\n getPathList() {\n return path_.getUnmodifiableView();\n }",
"public String[] getFieldNames();",
"public static List<String> getEntityMappingFieldPathsPrimary(Class<?> dtoType, boolean includeCollection) {\n // Get primary key of Entity mapping with DTO\n List<String> entityKeyFields = EntityUtils.getPrimaryKey(getEntityType(dtoType));\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n // For each field of DTO, if field is another DTO then get also.\n for (Field field : fields) {\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType) && (includeCollection || !ObjectUtils.fieldIsCollection(field))) {\n String fieldPath = getEntityMappingFieldPath(field);\n fieldPath = null != fieldPath ? fieldPath + Constants.DOT : Constants.EMPTY_STRING;\n List<String> innerKeyFieldPaths = getEntityMappingFieldPathsPrimary(fieldType, includeCollection)\n .stream().map(fieldPath::concat).collect(Collectors.toList());\n entityKeyFields.addAll(innerKeyFieldPaths);\n }\n }\n return entityKeyFields;\n }",
"public String getFields() {\n return fields;\n }",
"java.util.List<Field>\n getFieldsList();",
"public Position[] getPath() {\n\t\treturn path;\n\t}",
"public ArrayList<path> getPaths(){\r\n return paths;\r\n }",
"public ObjectNode resolvePaths();",
"public MedicalRecordDO[] getMedicalRecordPath(Integer uid);",
"public List<String> getIndexedFields() {\n\t\t\tList<String> indexedFields = new ArrayList<>();\n\t\t\t\n\t\t\tindexedFields.add(field);\n\t\t\tindexedFields.add(field + \".folded\");\n\t\t\t\n\t\t\treturn indexedFields;\n\t\t}",
"private String[] getNameParts() {\n return field.getName().split(\"_\");\n }",
"public static String[][] getAllFieldsEx(Object object) throws Exception {\r\n\r\n\t\tClass classType = object.getClass();\r\n\t\tField fields[] = ReflectUtil.getAllFields(classType);\r\n\t\tString[][] fieldNameValuePair = new String[fields.length][2];\r\n\t\tfor (int i = 0; i < fields.length; i++) {\r\n\t\t\tField field = fields[i];\r\n\t\t\tString fieldName = field.getName();\r\n\t\t\tMethod getMethod = ReflectUtil.getFieldGetMethod(classType, field);\r\n\t\t\tObject value = getMethod.invoke(object, new Object[] {});\r\n\t\t\tfieldNameValuePair[i][0] = fieldName;\r\n\t\t\tfieldNameValuePair[i][1] = value.toString();\r\n\t\t}\r\n\t\treturn fieldNameValuePair;\r\n\t}",
"public static String getEntityMappingFieldPath(Class<?> dtoType, String fieldPath) {\n if (null != dtoType && !StringUtils.isEmpty(fieldPath)) {\n String[] paths = fieldPath.split(Constants.DOT_REGEX);\n Field field = ObjectUtils.getField(dtoType, paths[0], true);\n String entityFieldName = getEntityMappingFieldPath(field);\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (paths.length > 1 && validate(innerClass)) {\n String nextPath = fieldPath.substring(fieldPath.indexOf(Constants.DOT) + 1);\n entityFieldName = entityFieldName + Constants.DOT + getEntityMappingFieldPath(innerClass, nextPath);\n }\n return entityFieldName;\n }\n return null;\n }",
"public List<String> getPathwayNames()\r\n\t{\r\n\t\treturn null; //To change body of implemented methods use File | Settings | File Templates.\r\n\t}",
"public List<String> getListFilePath() throws AncestryException {\n\t\tList<String> listFormKey = new ArrayList<String>();\n\t\tConnection con = null;\n\t\tString sql = \"\";\n\t\ttry {\n\t\t\tsql = \"SELECT filepath FROM \" + management + \" WHERE step =4 GROUP BY filepath ORDER BY filepath\";\n\t\t\tcon = db.getConnectByProject(project);\n\t\t\tlistFormKey = JdbcHelper.queryToSingleList(con, sql , true);\n\t\t} catch (Exception e) {\n\t\t\tthrow new AncestryException(\"getListFilePath : \" + e.toString() ,e);\n\t\t}\n\t\tfinally {\n\t\t\tJdbcHelper.close(con);\n\t\t}\n\t\treturn listFormKey;\n\t}",
"protected Pose[] getUserDefinedPath() {\n\t\treturn handler.getDesiredPath();\n\t}",
"public List<ApexPath> getPaths() {\n TestUtil.Config config = TestUtil.Config.Builder.get(g, sourceCode).build();\n return TestUtil.getApexPaths(config, apexPathExpanderConfig, methodName);\n }",
"public void clearFieldPaths() {\n this.fieldPaths_ = GeneratedMessageLite.emptyProtobufList();\n }",
"@Override\n public java.util.List<Field> getFieldsList() {\n return fields_;\n }",
"public List<Transform> getPath() {\n return Collections.unmodifiableList(new ArrayList<>(mPath));\n }",
"public String[] getManagedFields(String classPath)\n throws EnhancerMetaDataUserException, EnhancerMetaDataFatalError\n {\n final JDOClass clazz = getJDOClass(classPath);\n if (clazz == null) {\n return new String[]{};\n }\n\n final JDOField[] fields = clazz.getDeclaredManagedFields();\n if (fields == null) {\n return new String[]{};\n }\n affirm(fields.length == clazz.getDeclaredManagedFieldCount());\n \n final int n = fields.length;\n final String[] names = new String[n];\n for (int i = 0; i < n; i++) {\n affirm(fields[i] != null);\n affirm(fields[i].getRelativeFieldNumber() == i);\n affirm(fields[i].isManaged());\n names[i] = fields[i].getName();\n affirm(names[i] != null);\n }\n return names;\n }",
"public String getDataPath() {\n\t\treturn \"data\";\r\n\t}",
"public ArrayList<String> getPath() {\n return list;\n }",
"public void addAllFieldPaths(Iterable<String> iterable) {\n ensureFieldPathsIsMutable();\n AbstractMessageLite.addAll(iterable, this.fieldPaths_);\n }",
"public Double[][] getPaths(){\n return paths;\n }",
"List<FieldNode> getFields() {\n return this.classNode.fields;\n }",
"public Field[] getKeyFields();",
"public ArrayList<ArrayList<String>> getPathList() {\r\n\t\treturn pathList;\r\n\t}",
"PathSegments getPath();",
"public Set getAccessPathEdgeFields() {\n if (accessPathEdges == null) return Collections.EMPTY_SET;\n return accessPathEdges.keySet();\n }",
"Path getPath() {\n return this.path;\n }",
"public Path getPath(){\n return this.path;\n }",
"String getPath() {\n return this.path;\n }",
"public List<String> getFields() {\n if (!Strings.isNullOrEmpty(fields)) {\n return Arrays.asList(fields.split(\",\"));\n } else {\n return Collections.emptyList();\n }\n }",
"public List<FieldObject> getFieldObjects() {\n return _fieldObjects;\n }",
"UrlPathName[] pathNames() {\n if (null == this.pathNames) {\n final List<UrlPathName> names = Lists.array();\n\n for (final UrlPathName pathName : this.url().path().normalize()) {\n names.add(pathName);\n }\n this.pathNames = names.toArray(new UrlPathName[names.size()]);\n }\n return this.pathNames;\n }",
"java.util.List<com.sagas.meta.model.MetaFieldData> \n getFieldsList();",
"public java.lang.String[] getMappingFieldsArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(MAPPINGFIELDS$28, targetList);\n java.lang.String[] result = new java.lang.String[targetList.size()];\n for (int i = 0, len = targetList.size() ; i < len ; i++)\n result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();\n return result;\n }\n }",
"public List<String> showFields() {\n Client client = new Client();\n Class<?> objFields = client.getClass();\n List<String> list = new ArrayList<>();\n for (Field field : objFields.getDeclaredFields()) {\n list.add(field.getName());\n }\n return list;\n }",
"public SoPath getPath() {\n\t\t return path; \n\t}",
"public String[] getFieldNames()\n {\n return this.fieldMap.keyArray(String.class);\n }",
"String getPath() {\r\n\t\treturn path;\r\n\t}",
"@Nullable\n @Generated\n @Selector(\"relationshipKeyPathsForPrefetching\")\n public native NSArray<String> relationshipKeyPathsForPrefetching();",
"public List<Path> getAllPaths();",
"public abstract ScaledPathArray getPathList();",
"public T caseFieldPath(FieldPath object)\n {\n return null;\n }",
"public List<Path> getInputs()\r\n\t{\r\n\t\treturn Collections.unmodifiableList(this.inputs);\r\n\t}",
"public String getPath() {\n\t\treturn getString(\"path\");\n\t}",
"public static LinkedHashMap<String, Vector<Path>> getPaths() {\r\n\t\treturn setPaths;\r\n\t}",
"public List<AliasedField> getFields() {\r\n return fields;\r\n }",
"public float[][] getPath() {\n/* 825 */ COSBase base = getCOSObject().getDictionaryObject(COSName.PATH);\n/* 826 */ if (base instanceof COSArray) {\n/* */ \n/* 828 */ COSArray array = (COSArray)base;\n/* 829 */ float[][] pathArray = new float[array.size()][];\n/* 830 */ for (int i = 0; i < array.size(); i++) {\n/* */ \n/* 832 */ COSBase base2 = array.getObject(i);\n/* 833 */ if (base2 instanceof COSArray) {\n/* */ \n/* 835 */ pathArray[i] = ((COSArray)array.getObject(i)).toFloatArray();\n/* */ }\n/* */ else {\n/* */ \n/* 839 */ pathArray[i] = new float[0];\n/* */ } \n/* */ } \n/* 842 */ return pathArray;\n/* */ } \n/* 844 */ return (float[][])null;\n/* */ }",
"private List<Field> getMappedFields(Mapping objectMapping, DataSourceType dataSourceType) {\n List<Field> mappedFields = null;\n if (dataSourceType == DataSourceType.SOURCE) {\n FieldGroup fg = objectMapping.getInputFieldGroup();\n if (fg != null) {\n mappedFields = fg.getField();\n } else {\n mappedFields = objectMapping.getInputField();\n }\n } else {\n mappedFields = objectMapping.getOutputField();\n }\n return mappedFields;\n }",
"public String getPath() {\n return m_path;\n }",
"String getPath() {\n return path;\n }",
"public AtomicVertex[] getPaths()\n {\n return _paths;\n }",
"abstract public FieldNames getFieldNames();",
"public List<String> blobPathList() {\n return this.blobPathList;\n }",
"public FieldDescriptor[] getFields() {\n int size = attributeDescriptors.size();\n size += elementDescriptors.size();\n if (contentDescriptor != null) ++size;\n\n FieldDescriptor[] fields = new FieldDescriptor[size];\n int c = 0;\n for (int i = 0; i < attributeDescriptors.size(); i++)\n fields[c++] = (FieldDescriptor) attributeDescriptors.get(i);\n\n for (int i = 0; i < elementDescriptors.size(); i++)\n fields[c++] = (FieldDescriptor) elementDescriptors.get(i);\n\n if (contentDescriptor != null)\n fields[c] = contentDescriptor;\n\n return fields;\n }",
"public List<Field<T>> getFields()\r\n/* 63: */ {\r\n/* 64:84 */ return this.fields;\r\n/* 65: */ }",
"public String getPathName();",
"public String[] getFieldNameMapping() {\r\n return null;\r\n }",
"public String getPath(){\n\t\t\treturn this.path;\n\t\t}",
"public String getPath()\n {\n\n return _path;\n }",
"public JTextField getPathField() {\n return ((JTextField) innerSearcher.\n findComponent(new ComponentChooser() {\n @Override\n public boolean checkComponent(Component comp) {\n return (comp != null\n && comp instanceof JTextField);\n }\n\n @Override\n public String getDescription() {\n return \"JTextField\";\n }\n\n @Override\n public String toString() {\n return \"JFileChooserOperator.getPathField.ComponentChooser{description = \" + getDescription() + '}';\n }\n }));\n }",
"public ArrayList<SearchNode> getPath() {\n\treturn path;\n }",
"@JsonProperty(\"path\")\r\n public String getPath() {\r\n return path;\r\n }",
"@JsonProperty(\"path\")\r\n public String getPath() {\r\n return path;\r\n }",
"public EAdList<EAdField<?>> getFields() {\r\n\t\treturn fields;\r\n\t}",
"@JsonProperty(\"path\")\n public String getPath() {\n return path;\n }",
"public Path getPath();",
"public Path getPath() {\n return this.path;\n }",
"public abstract ArrayList<CustomPath> getAnnotationPathList();"
] | [
"0.65501374",
"0.6500174",
"0.6426605",
"0.62794685",
"0.62705475",
"0.61945003",
"0.6116032",
"0.60782164",
"0.597175",
"0.58494747",
"0.58430976",
"0.5798474",
"0.5737983",
"0.57282335",
"0.5676446",
"0.56452924",
"0.56343156",
"0.56086415",
"0.5594387",
"0.5592191",
"0.55883086",
"0.5566545",
"0.55517924",
"0.55335164",
"0.55331665",
"0.55325234",
"0.5500478",
"0.54906464",
"0.5489177",
"0.54862094",
"0.5485177",
"0.5478755",
"0.54772365",
"0.5445504",
"0.5432843",
"0.54221636",
"0.5416941",
"0.54128766",
"0.5405909",
"0.53994066",
"0.53970236",
"0.5389616",
"0.5387563",
"0.5383262",
"0.5382911",
"0.53708446",
"0.53688115",
"0.5367935",
"0.53632",
"0.5360543",
"0.53461206",
"0.5343002",
"0.53308475",
"0.53246313",
"0.53204036",
"0.53015924",
"0.5299451",
"0.5289346",
"0.5273318",
"0.5272057",
"0.52696675",
"0.5257856",
"0.5252371",
"0.5250649",
"0.5243075",
"0.52420336",
"0.52374315",
"0.52271295",
"0.52255565",
"0.52197933",
"0.52163935",
"0.5214284",
"0.5199173",
"0.51964813",
"0.51799",
"0.51794684",
"0.5174615",
"0.517408",
"0.5170982",
"0.5168268",
"0.51669466",
"0.51667047",
"0.51665115",
"0.5163757",
"0.51515245",
"0.5149351",
"0.5145374",
"0.51444566",
"0.5134325",
"0.51322937",
"0.51291203",
"0.51273227",
"0.5124133",
"0.51236755",
"0.51236755",
"0.511161",
"0.51080185",
"0.51078075",
"0.5099757",
"0.5097928"
] | 0.67283255 | 0 |
Get mapping entity path by Data Transfer Object field. Don't looking inner object. | public static String getEntityMappingFieldPath(Field field) {
List<String> fieldPaths = getEntityMappingFieldPaths(field, false, true);
if (fieldPaths.size() > 0) {
return fieldPaths.get(0);
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getEntityMappingFieldPath(Class<?> dtoType, String fieldPath) {\n if (null != dtoType && !StringUtils.isEmpty(fieldPath)) {\n String[] paths = fieldPath.split(Constants.DOT_REGEX);\n Field field = ObjectUtils.getField(dtoType, paths[0], true);\n String entityFieldName = getEntityMappingFieldPath(field);\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (paths.length > 1 && validate(innerClass)) {\n String nextPath = fieldPath.substring(fieldPath.indexOf(Constants.DOT) + 1);\n entityFieldName = entityFieldName + Constants.DOT + getEntityMappingFieldPath(innerClass, nextPath);\n }\n return entityFieldName;\n }\n return null;\n }",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tpublic static <T> Path<Object> getPathFromField(Root<T> root, String field) {\n\t\tString[] fieldname = field.split(\"/\");\n\t\tPath<Object> path = null;\n\t\tfor (int idx = 0; idx < fieldname.length; idx++) {\n\n\t\t\tString attributeName = fieldname[idx];\n\n\t\t\tif (path != null) {\n\t\t\t\tpath = path.get(attributeName);\n\t\t\t} else {\n\t\t\t\tpath = root.get(attributeName);\n\t\t\t}\n\n\t\t\tif ((fieldname.length - 1) > idx) {\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Set.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tJoin<T, ?> join = opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tpath = join.get(fieldname[++idx]);\n\n\t\t\t\t}\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Map.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tMapJoin join = (MapJoin) opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tString f = fieldname[++idx];\n\t\t\t\t\tif (f.equals(\"key\"))\n\t\t\t\t\t\tpath = join.key();\n\t\t\t\t\telse if (f.equals(\"value\"))\n\t\t\t\t\t\tpath = join.value();\n\t\t\t\t\telse\n\t\t\t\t\t\tthrow new FormatExceptionException(\"Only key or value you can specify in a map filter, got: \" + f);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn path;\n\t}",
"public T caseFieldPath(FieldPath object)\n {\n return null;\n }",
"public static List<String> getEntityMappingFieldPaths(Field field, boolean lookingInner, boolean includeCollection) {\n List<String> fieldPaths = new ArrayList<>();\n if (null != field) {\n String fieldPath = field.getName();\n MappingField mappingField = ObjectUtils.getAnnotation(field, MappingField.class);\n if (null != mappingField && !StringUtils.isEmpty(mappingField.entityField())) {\n fieldPath = mappingField.entityField();\n }\n\n Class<?> innerClass = MappingUtils.getFieldType(field);\n boolean isCollection = ObjectUtils.fieldIsCollection(field);\n // Case 1: Field is normal field >> get one entity mapping field has been configuration in MappingField annotation\n // Case 2: Field is another DTO field, lookingInner = true, includeCollection = true >> looking all field of DTO field\n // Case 3: Field is another DTO field, lookingInner = true, includeCollection = false >> only non Collection field will be looking to get mapping fields\n if (lookingInner && validate(innerClass) && (includeCollection || !isCollection)) {\n List<String> innerFieldPaths = getEntityMappingFieldPaths(innerClass, true, true);\n if (!CollectionUtils.isEmpty(innerFieldPaths)) {\n String finalFieldPath = fieldPath.concat(Constants.DOT);\n fieldPaths.addAll(innerFieldPaths.stream().map(finalFieldPath::concat).collect(Collectors.toList()));\n }\n } else if (includeCollection || !isCollection) {\n fieldPaths.add(fieldPath);\n }\n }\n return fieldPaths.stream().distinct().collect(Collectors.toList());\n }",
"public static String getFieldMappingEntityKey(Class<?> dtoType) {\n if (null != dtoType) {\n List<String> keys = EntityUtils.getPrimaryKey(getEntityType(dtoType));\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n String mappingField = getEntityMappingFieldPath(field);\n if (keys.contains(mappingField)) {\n return mappingField;\n }\n }\n }\n return null;\n }",
"public static List<String> getEntityMappingFieldPaths(Class<?> dtoType) {\n return getEntityMappingFieldPaths(dtoType, false, true);\n }",
"List<JPAPath> getKeyPath() throws ODataJPAModelException;",
"public static List<String> getEntityMappingFieldPaths(Class<?> dtoType, boolean lookingInner, boolean includeCollection) {\n List<String> fieldPaths = new ArrayList<>();\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n fieldPaths.addAll(getEntityMappingFieldPaths(field, lookingInner, includeCollection));\n }\n return fieldPaths.stream().distinct().collect(Collectors.toList());\n }",
"public static Object convertMapEntityPathAndValueToDTO(String prefix, Map<String, Object> mapData, Field field) {\n if (null != mapData && null != field) {\n String mappingField = getEntityMappingFieldPath(field);\n if (!StringUtils.isEmpty(prefix)) {\n prefix += Constants.DOT;\n }\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType)) {\n if (!ObjectUtils.fieldIsCollection(field)) {\n return convertMapEntityPathAndValueToDTO(prefix + mappingField, mapData, fieldType);\n } else {\n int length = countLengthOfArray(prefix + mappingField, mapData);\n if (length > 0) {\n try {\n @SuppressWarnings(\"unchecked\")\n Collection<Object> collection = ObjectUtils.newInstanceCollection(field.getType());\n for (int i = 0; i < length; i++) {\n Object innerEntity = convertMapEntityPathAndValueToDTO(prefix + mappingField + \"[\" + i + \"]\", mapData, fieldType);\n if (null != innerEntity) {\n collection.add(innerEntity);\n }\n }\n return collection;\n } catch (NoSuchMethodException e) {\n throw new ConstructorInvalidException(\"Cannot new collection instance for field \" + field.getName(), e);\n }\n }\n }\n } else {\n Class<?> fieldConverter = getFieldConverterType(field);\n return convertField(fieldConverter, mapData.get(prefix + mappingField));\n }\n }\n return null;\n }",
"public String getIdPath() {\n\t\tif (null != this.idPath) {\n\t\t\treturn this.idPath;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"idPath\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public static String getXpathString(By byObj) throws IllegalArgumentException, IllegalAccessException {\n\t\tObjectMap objm = new ObjectMap();\n\t\tField[]x=objm.getClass().getDeclaredFields();\n\t\tint n = objm.getClass().getDeclaredFields().length;\n\t\tString t=\"\";\n\t\tString s=\"\";\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tif (x[i].get(byObj).equals(byObj)) {\n\t\t\t\tt=x[i].get(byObj).toString();\n\t\t\t\ts =t.substring(10);\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t}",
"public static List<String> getFieldPaths(Field field, boolean lookingInner) {\n List<String> fieldPaths = new ArrayList<>();\n if (null != field) {\n String fieldPath = field.getName();\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (lookingInner && validate(innerClass)) {\n List<String> innerFieldPaths = getFieldPaths(innerClass, true);\n if (!CollectionUtils.isEmpty(innerFieldPaths)) {\n String finalFieldPath = fieldPath + Constants.DOT;\n fieldPaths.addAll(innerFieldPaths.stream().map(finalFieldPath::concat).collect(Collectors.toList()));\n }\n } else {\n fieldPaths.add(fieldPath);\n }\n }\n return fieldPaths;\n }",
"public static List<String> getEntityMappingFieldPathsPrimary(Class<?> dtoType, boolean includeCollection) {\n // Get primary key of Entity mapping with DTO\n List<String> entityKeyFields = EntityUtils.getPrimaryKey(getEntityType(dtoType));\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n // For each field of DTO, if field is another DTO then get also.\n for (Field field : fields) {\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType) && (includeCollection || !ObjectUtils.fieldIsCollection(field))) {\n String fieldPath = getEntityMappingFieldPath(field);\n fieldPath = null != fieldPath ? fieldPath + Constants.DOT : Constants.EMPTY_STRING;\n List<String> innerKeyFieldPaths = getEntityMappingFieldPathsPrimary(fieldType, includeCollection)\n .stream().map(fieldPath::concat).collect(Collectors.toList());\n entityKeyFields.addAll(innerKeyFieldPaths);\n }\n }\n return entityKeyFields;\n }",
"private Object getOffendingObject (Object field)\n\t{\n\t\treturn ((field == null) ? \n\t\t\tgetModel().getClass(getClassName(), getClassLoader()) :\n\t\t\tgetModel().getField(getClassName(), field.toString()));\n\t}",
"@Override\r\n public String getDebugPathInfo(String entityName) {\n return null;\r\n }",
"public ObjectNode resolvePaths();",
"@Override\n\tpublic String associatedEntityName(String field) {\n\t\treturn null;\n\t}",
"@Override\n public final JsonNode findPath(String fieldName)\n {\n JsonNode value = findValue(fieldName);\n if (value == null) {\n return MissingNode.getInstance();\n }\n return value;\n }",
"public String getPath() throws Exception {\n\t\t/*\n\t\t * return \"/news-oppsRecord\" + doc.selectSingleNode\n\t\t * (\"/metadataFieldInfo/field/@path\").getText();\n\t\t */\n\t\treturn doc.selectSingleNode(\"/metadataFieldInfo/field/@path\").getText();\n\t}",
"@Override\n\tpublic MappingField getFieldMapping(MappingField field) {\n\t\tString desc = field.getDesc();\n\t\tint i = desc.indexOf(\")\");\n\n\t\tif (i >= 0) {\n\t\t\tdesc = desc.substring(i + 1);\n\t\t\tfield = new MappingField(field.getOwner(), field.getSimpleName(), desc);\n\t\t}\n\n\t\tMappingField mapped = getMapping0(field, fieldMap);\n\t\tif (mapped != null) return mapped;\n\n\t\tif (field.getOwner() != null) {\n\t\t\tString newOwner = classMap.getOrDefault(field.getOwner(), field.getOwner());\n\t\t\tString newDesc;\n\n\t\t\tif (desc.endsWith(\";\")) {\n\t\t\t\tint pos = desc.indexOf('L');\n\t\t\t\tassert pos >= 0;\n\t\t\t\tString cls = desc.substring(pos + 1, desc.length() - 1);\n\t\t\t\tnewDesc = String.format(\"%s%s;\", desc.substring(0, pos + 1), classMap.getOrDefault(cls, cls));\n\t\t\t} else {\n\t\t\t\tnewDesc = desc;\n\t\t\t}\n\n\t\t\tif (!newOwner.equals(field.getOwner()) || !newDesc.equals(field.getDesc())) {\n\t\t\t\treturn new MappingField(newOwner, field.getSimpleName(), newDesc);\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}",
"public static Path getPathForObject(Object obj) {\r\n ReportsDirectory constant = fromObject(obj);\r\n return getTargetPath().resolve(constant.folder);\r\n }",
"@DialogField(fieldLabel = \"Property Relative Path\",\n fieldDescription = \"Relative path from nodes being searched to the node where their tag property is stored. For example, if searching for dam:Assets, you would set this field to 'jcr:content/metadata'. Leave blank to search for tags on result nodes themselves.\")\n @TextField\n public Optional<String> getRelativePath() {\n return get(PARAM_RELATIVE_PATH, String.class);\n }",
"public static Object getPathMessage(Descriptors.FieldDescriptor fieldDescriptor,\n DynamicMessage message,\n FieldPathUtils.PathInfo pathInfo,\n FeatureContext ctx) {\n if (FieldPathUtils.PathType.ARRAY.equals(pathInfo.getPathType())) {\n int repeatedFieldCount = message.getRepeatedFieldCount(fieldDescriptor);\n if (repeatedFieldCount > pathInfo.getIndex()) {\n return ProtoUtils.getArrayField(message, fieldDescriptor, pathInfo.getIndex());\n }\n return null;\n } else {\n return ProtoUtils.getField(message, fieldDescriptor, ctx);\n }\n }",
"public static Field getFieldByPath(Class<?> dtoType, String fieldPath) {\n if (null != dtoType && !StringUtils.isEmpty(fieldPath)) {\n String[] paths = fieldPath.split(Constants.DOT_REGEX);\n\n Field field = ObjectUtils.getField(dtoType, paths[0], true);\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (paths.length > 1 && validate(innerClass)) {\n String nextPath = fieldPath.substring(fieldPath.indexOf(Constants.DOT) + 1);\n field = getFieldByPath(innerClass, nextPath);\n }\n return field;\n }\n return null;\n }",
"private String constructPath(MetadataEntity metadataEntity) {\n StringBuilder builder = new StringBuilder();\n metadataEntity.iterator().forEachRemaining(keyValue -> {\n if (ENTITY_TYPE_TO_API_PART.containsKey(keyValue.getKey())) {\n builder.append(ENTITY_TYPE_TO_API_PART.get(keyValue.getKey()));\n } else {\n builder.append(keyValue.getKey());\n }\n builder.append(\"/\");\n builder.append(keyValue.getValue());\n builder.append(\"/\");\n });\n // remove the last /\n builder.replace(builder.length() - 1, builder.length(), \"\");\n return builder.toString();\n }",
"private static Field findFieldInHierarchy(Object object, String fieldName) {\n return findFieldInHierarchy(object, new FieldNameMatcherStrategy(fieldName));\n }",
"String getKey(Object entity);",
"private Object resolveDsfPath(Object bean, String[] dsfElements, int level)\r\n {\r\n try{\r\n Field f = bean.getClass().getField(dsfElements[level]); \r\n Object value = f.get(bean);\r\n\r\n if (++level<dsfElements.length)\r\n return resolveDsfPath(value,dsfElements, level);\r\n \r\n if (value instanceof Method)\r\n { // Not working well - Need further debug\r\n value = ((Method)value).invoke(bean, new Object[0]);\r\n return value;\r\n }\r\n \r\n return value;\r\n }\r\n catch (Exception e){}\r\n return null;\r\n }",
"@Override\n public Expression<?> getExpression(CriteriaBuilder cb) {\n return path;\n }",
"PathSegments getPath();",
"protected static String getVariablePath(String rootKey, String entityKey, String key) {\n int separatorIndex = key.indexOf(separator);\n String first = separatorIndex != -1 ? key.substring(0, separatorIndex) : key;\n String object = rootKey;\n if (first.equals(entityref)) {\n object = entityKey;\n key = key.substring(separatorIndex + 1);\n } else if (first.equals(registrationref)) {\n object = registrationref;\n key = key.substring(separatorIndex + 1);\n } else if (first.equals(effectref)) {\n object = effectref;\n key = key.substring(separatorIndex + 1);\n }\n object += \".\" + key;\n return object;\n }",
"Object getObjectField();",
"public interface PathAliasHandler {\n String toAliasedColumn(FieldExpression fieldExpression);\n}",
"private DataMapping getDataMapping(String pFieldName, ObjectSet<?> pObjectSet) {\r\n\t\t\r\n\t\tif (pFieldName != null && pFieldName.trim() != \"\") {\r\n\t\t\tif (pObjectSet != null) {\r\n\t\t\t\tif (pObjectSet.getDataMappings() != null && pObjectSet.getDataMappings().size() > 0) {\r\n\t\t\t\t\tfor(DataMapping mapping : pObjectSet.getDataMappings()) {\r\n\t\t\t\t\t\tif (mapping.DataBaseFieldName.trim().toLowerCase().equals(pFieldName.trim().toLowerCase())) {\r\n\t\t\t\t\t\t\treturn mapping;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"private String getKey (String keyBase, Object field)\n\t{\n\t\treturn ((field == null) ? keyBase : (keyBase + \"_related\"));\t//NOI18N\n\t}",
"IPath getPath();",
"public String getMappingFilePath();",
"private void recurseThroughObject(Object obj, List<String> path, String currentField) {\n\n MethodAccess methodAccess = MethodAccess.get(obj.getClass());\n\n for (LogCache logCache : CacheableAccessors.getMethodIndexes(obj.getClass(), methodAccess)) {\n\n if (canLogMethod(logCache, methodAccess)) {\n\n List<String> recursivePath = Lists.newArrayList(path);\n\n Object logResult;\n\n try {\n logResult = methodAccess.invoke(obj, logCache.getIndex());\n }\n catch(IllegalAccessError er) {\n logResult = \"<Illegal Method Access Error>\";\n }\n catch (Throwable t) {\n logResult = configs.getExceptionTranslator().translate(t);\n }\n\n try {\n buildMessage(getLogMessage(logCache, logResult), recursivePath,\n formatMethod(recursivePath, methodAccess.getMethodNames()[logCache.getIndex()]));\n }\n catch (Throwable t) {\n // result is ignored, but can be captured for debugging since we've already tried to catch\n // and build\n configs.getExceptionTranslator().translate(t);\n }\n }\n }\n\n FieldAccess fieldAccess = FieldAccess.get(obj.getClass());\n\n for (LogCache logCache : CacheableAccessors.getFieldIndexes(obj.getClass(), fieldAccess)) {\n String fieldName = \"???\";\n\n try {\n if (Scope.SKIP == logCache.getLogScope()) {\n continue;\n }\n\n fieldName = fieldAccess.getFieldNames()[logCache.getIndex()];\n\n List<String> recursivePath = Lists.newArrayList(path);\n recursivePath.add(fieldName);\n\n if (!configs.getExcludesPrefixes().stream().anyMatch(fieldName::startsWith)) {\n buildMessage(getLogMessage(logCache, fieldAccess.get(obj, logCache.getIndex())), recursivePath,\n formatField(currentField, fieldName));\n }\n }\n catch (Throwable t) {\n String fieldError = configs.getExceptionTranslator().translate(t);\n\n buildMessage(getLogMessage(logCache, fieldError), path,\n formatField(currentField, fieldName));\n }\n }\n\n }",
"public static List<String> getFieldPaths(Class<?> dtoType, boolean lookingInner) {\n List<String> fieldPaths = new ArrayList<>();\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n fieldPaths.addAll(getFieldPaths(field, lookingInner));\n }\n return fieldPaths;\n }",
"public StringDt getPathElement() { \n\t\tif (myPath == null) {\n\t\t\tmyPath = new StringDt();\n\t\t}\n\t\treturn myPath;\n\t}",
"public static List<String> getEntityMappingFieldPathsCollection(Class<?> dtoType, boolean lookingInner) {\n List<String> fieldPaths = new ArrayList<>();\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n if (validate(MappingUtils.getFieldType(field)) && ObjectUtils.fieldIsCollection(field)) {\n fieldPaths.addAll(getEntityMappingFieldPaths(field, lookingInner, true));\n }\n }\n return fieldPaths;\n }",
"protected static String getObjectPath(URI resource) {\n String objectPath = resource.getPath().isEmpty() ? \"/\" : resource.getPath();\n return String.format(\"%s%s\", resource.getAuthority(),\n objectPath.charAt(0) == '/' ? objectPath : \"/\" + objectPath);\n }",
"Entity getMappedBy();",
"public static List<String> getEntityMappingFieldPathsCollection(Class<?> dtoType) {\n return getEntityMappingFieldPathsCollection(dtoType, false);\n }",
"@Override\n public JsonNode visit(JmesPathField fieldNode, JsonNode input) {\n if (input.isObject()) {\n //TODO : CamelCase will need to change at some point\n return input.get(CamelCaseUtils.toCamelCase(fieldNode.getValue()));\n }\n return NullNode.getInstance();\n }",
"public String pathOfItem(Pathable item) {\n return null; // todo: implement this method\n }",
"public T caseFromClassOrOuterQueryPath(FromClassOrOuterQueryPath object)\n {\n return null;\n }",
"public String getPath()\r\n/* 26: */ {\r\n/* 27:57 */ return this.path;\r\n/* 28: */ }",
"public PathExpressionIF createPathExpression();",
"public List<Map<String, Object>> getAuktionPath(int objectId, int templateId);",
"@Override\n\t@XmlTransient\n\tpublic Path getPath() {\n\t\treturn path;\n\t}",
"private static <E> Path<?> getPropertyPath(Path<E> root, String propertyPath) {\n\t\tString[] pathItems = StringUtils.split(propertyPath, \".\");\n\n\t\tPath<?> path = root.get(pathItems[0]);\n\t\tfor (int i = 1; i < pathItems.length; i++) {\n\t\t\tpath = path.get(pathItems[i]);\n\t\t}\n\t\treturn path;\n\t}",
"public String toLocalPath() {\n\n String parentPath = parent.toLocalPath();\n return StringUtils.isBlank(parentPath)\n ? element.getElement()\n : new StringBuilder()\n .append(parentPath)\n .append('.')\n .append(element.getElement())\n .toString();\n }",
"public Path getPath(){\n return this.path;\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // DST_PATH\n return DST_PATH;\n case 3: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public String getPathExpression() {\n return getProperty(PATH_EXPRESSION);\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n default:\n return null;\n }\n }",
"public static Object getPathValue(DynamicMessage originMessage,\n FieldPathUtils.PathInfo pathInfo,\n FeatureContext ctx) {\n if (Objects.isNull(pathInfo) || Objects.isNull(originMessage)) {\n return null;\n }\n\n Object pathMessage = originMessage;\n Descriptors.FieldDescriptor pathDescriptor = null;\n\n for (FieldPathUtils.PathInfo nextPath = pathInfo; Objects.nonNull(nextPath); nextPath = nextPath.getNestPathInfo()) {\n if (Objects.isNull(pathMessage)) {\n return null;\n }\n Pair<Descriptors.FieldDescriptor, Object> pair = getDescriptorAndMessageByName(pathMessage, nextPath);\n pathDescriptor = pair.getKey();\n pathMessage = pair.getValue();\n\n if (Objects.isNull(pathDescriptor)) {\n return null;\n }\n pathMessage = getPathMessage(pathDescriptor, (DynamicMessage) pathMessage, nextPath, ctx);\n }\n\n if (Objects.isNull(pathMessage)) {\n return null;\n }\n\n if (Objects.isNull(pathDescriptor)) {\n throw new IllegalArgumentException(String.format(\"Path info: %s can't find descriptor type.\",\n JsonSerializer.serialize(pathInfo)));\n }\n\n return ProtoUtils.getProtoValue(pathMessage, pathDescriptor, ctx);\n }",
"static public Object getAttributeFromPath(XmlObject object, String path) throws XMLBuildException {\r\n\t\tString[] var = path.split(\"\\\\.\");\r\n\t\tObject x = null;\r\n\t\tif (var[0].equals(\"this\"))\r\n\t\t\tx = object;\r\n\t\telse\r\n\t\t\tx = object.getSymbolTable().get(var[0]);\r\n\r\n\t\tObject current = x;\r\n\t\tfor (int i = 1; i < var.length; i++) {\r\n\t\t\tcurrent = getAttributes(current, var[i]);\r\n\t\t}\r\n\t\treturn current;\r\n\t}",
"public Path getPath();",
"PathKeys getPathKeys();",
"public String getBindingItemIdPath(){\n return pathBindingSetItemId;\n }",
"private static Field findFieldInHierarchy(Object object, FieldMatcherStrategy strategy) {\n assertObjectInGetInternalStateIsNotNull(object);\n return findSingleFieldUsingStrategy(strategy, object, true, getType(object));\n }",
"String getDBQualifiedFieldName(String fieldName);",
"java.lang.String getXpath();",
"public T casePathLiteral(PathLiteral object)\n {\n return null;\n }",
"@Override\n\t\tpublic String getRealPath(String path) {\n\t\t\treturn null;\n\t\t}",
"public String getPathName();",
"public Object folderPath() {\n return this.innerTypeProperties() == null ? null : this.innerTypeProperties().folderPath();\n }",
"@Override\n\t\tpublic List<String> getPathTo(InJarResourceImpl resource) {\n\t\t\t// TODO FD4SG la ligne ci-dessous est vraiment bizarre (getChildren renvoie une liste de RepositoryFolder alors que resource est\n\t\t\t// une ressource\n\t\t\tif (!getRootFolder().getChildren().contains(resource)) {\n\t\t\t\tList<String> pathTo = new ArrayList<>();\n\t\t\t\tStringTokenizer string = new StringTokenizer(/*resource.getURI()*/resource.getEntry().getName(),\n\t\t\t\t\t\tCharacter.toString(ClasspathResourceLocatorImpl.PATH_SEP.toCharArray()[0]));\n\t\t\t\twhile (string.hasMoreTokens()) {\n\t\t\t\t\tString next = string.nextToken();\n\t\t\t\t\tif (string.hasMoreTokens()) {\n\t\t\t\t\t\tpathTo.add(next);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn pathTo;\n\t\t\t}\n\t\t\treturn null;\n\t\t}",
"public SoPath getPath() {\n\t\t return path; \n\t}",
"public Map<String, Object> getRelatedKeys() throws ODataJPAProcessorException;",
"public String getPath() {\n\t\treturn getString(\"path\");\n\t}",
"private Object decorateNestedObject(Field field) {\n\t\tDefaultElementLocatorFactory newFactory = (DefaultElementLocatorFactory) this.factory;\n\t\ttry {\n\t\t\tObject obj = newFactory.initNestedPageObject(field);\t\t\t\n\t\t\treturn obj;\n\t\t} catch (InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InvocationTargetException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"public static String getParameterPath(String rootKey, String entityKey, String key) {\n //int separatorIndex = key.indexOf(separator);\n //String first = separatorIndex != -1 ? key.substring(0, separatorIndex) : key;\n String object = getVariablePath(rootKey, entityKey, key);\n /*if (first.equals(entityref)) {\n object = entityKey;\n key = key.substring(separatorIndex + 1);\n }*/\n object = object.replaceAll(quotedSeparator, \"_\");\n return object;\n }",
"public DevicePath getDevicePath(Device device);",
"public String get(String fieldName) {\n\t\tString xpQuery = getXPathQuery(fieldName);\n\t\treturn getFieldUsingXPath(xpQuery);\n\t}",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public String getPath() { \n\t\treturn getPathElement().getValue();\n\t}",
"public abstract DrawingComponent getObjectByPathId(UUID uid);",
"public static IPath getValueAsIPath(final KiemProperty property) {\r\n String filePath = property.getFilePath();\r\n Path returnPath = new Path(filePath);\r\n return returnPath;\r\n }",
"public CustomPath getPath() {\n\t\treturn path;\n\t}",
"public JTextField getPathField() {\n return ((JTextField) innerSearcher.\n findComponent(new ComponentChooser() {\n @Override\n public boolean checkComponent(Component comp) {\n return (comp != null\n && comp instanceof JTextField);\n }\n\n @Override\n public String getDescription() {\n return \"JTextField\";\n }\n\n @Override\n public String toString() {\n return \"JFileChooserOperator.getPathField.ComponentChooser{description = \" + getDescription() + '}';\n }\n }));\n }",
"public abstract String getPath(boolean urlEncode, boolean includeOwner) throws\n\t\t\tUnsupportedEncodingException;",
"private String retrieveAbsoluteName(Object obj)\r\n {\r\n return (String) objectNames.get(obj);\r\n }",
"public String[] getFieldNameMapping() {\r\n return null;\r\n }",
"public static Map<String, Object> convertToEntityMappingFieldAndValue(Object dto, Field field) {\n Map<String, Object> mapData = new HashMap<>();\n if (null != dto && null != field) {\n Object valueOfField;\n try {\n valueOfField = ObjectUtils.getValueOfField(dto, field.getName());\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot get value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n\n if (validate(MappingUtils.getFieldType(field))) {\n if (!ObjectUtils.fieldIsCollection(field)) {\n Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(valueOfField);\n for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {\n mapData.put(field.getName() + Constants.DOT + entry.getKey(), entry.getValue());\n }\n } else {\n Collection<?> collection = (Collection<?>) valueOfField;\n int index = 0;\n if (!CollectionUtils.isEmpty(collection)) {\n for (Object innerDTO : collection) {\n Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(innerDTO);\n for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {\n mapData.put(field.getName() + \"[\" + index + \"]\" + Constants.DOT + entry.getKey(), entry.getValue());\n }\n index++;\n }\n }\n }\n } else {\n Class<?> fieldConverter = getFieldConverterType(field);\n Object convertValue = convertField(fieldConverter, valueOfField, true);\n mapData.put(getEntityMappingFieldPath(field), convertValue);\n }\n }\n return mapData;\n }",
"public synchronized String getPath(long entry) throws IOException,\n EOFException {\n long startOfEntry = IDX_START_OF_CONTENT + (entry * bytesPerSlot);\n idx.seek(startOfEntry);\n if (idx.readChar() == '\\n')\n throw new IllegalStateException(\"No data at address \" + entry);\n idx.skipBytes(bytesPerId + bytesPerType - 2);\n \n byte[] bytes = new byte[bytesPerPath];\n idx.read(bytes);\n String line = new String(bytes, \"utf-8\");\n int delimiter = line.indexOf('\\n');\n if (delimiter < 1)\n throw new IllegalStateException(\"Found path without delimiter\");\n return new String(bytes, 0, delimiter - 1);\n }",
"protected String path() {\n return path(getName());\n }",
"@SuppressWarnings(\"unchecked\")\n public Map<String, String> getMapContextPath() {\n FacesContext facesContext = FacesContext.getCurrentInstance();\n ExternalContext extenalContext = facesContext.getExternalContext();\n HttpServletRequest request = (HttpServletRequest) extenalContext.getRequest();\n return (Map<String, String>) request.getSession().getAttribute(\"MAP_CONTEXT_PATH\");\n //xxx_temp end\n }",
"CtPath getPath();",
"Path getPath() {\n return this.path;\n }"
] | [
"0.70162916",
"0.6689422",
"0.6258987",
"0.62140685",
"0.57358706",
"0.56951326",
"0.5647254",
"0.56253815",
"0.55811566",
"0.5525148",
"0.5505955",
"0.543207",
"0.540017",
"0.5328037",
"0.53063196",
"0.52761286",
"0.5267663",
"0.5230643",
"0.5192262",
"0.518562",
"0.5169381",
"0.5156833",
"0.51525795",
"0.5146598",
"0.5144579",
"0.51301324",
"0.512041",
"0.5105619",
"0.5097084",
"0.50736076",
"0.5063251",
"0.5045639",
"0.50452334",
"0.50177187",
"0.49959847",
"0.4961195",
"0.49287224",
"0.49197707",
"0.49184275",
"0.49162236",
"0.49071267",
"0.49001187",
"0.48979348",
"0.48953232",
"0.48927176",
"0.48893556",
"0.48775375",
"0.48527566",
"0.48520708",
"0.48296356",
"0.48293835",
"0.48277763",
"0.48083627",
"0.47754854",
"0.47751242",
"0.4769911",
"0.4767555",
"0.47639912",
"0.47627857",
"0.4760176",
"0.474263",
"0.47425094",
"0.4731053",
"0.47234938",
"0.47224754",
"0.4715324",
"0.47051805",
"0.46929795",
"0.46920806",
"0.4691544",
"0.46764368",
"0.46749726",
"0.46701002",
"0.46656513",
"0.46617225",
"0.46601126",
"0.46567544",
"0.46519053",
"0.46519053",
"0.46519053",
"0.46519053",
"0.46519053",
"0.46519053",
"0.46519053",
"0.46519053",
"0.46519053",
"0.46495852",
"0.4643596",
"0.46419764",
"0.46407828",
"0.46386528",
"0.46324423",
"0.46301606",
"0.46267307",
"0.46239045",
"0.46232945",
"0.46157044",
"0.461535",
"0.46141705",
"0.46139324"
] | 0.75209427 | 0 |
Get mapping entity path by Data Transfer Object field. | public static List<String> getEntityMappingFieldPaths(Field field, boolean lookingInner, boolean includeCollection) {
List<String> fieldPaths = new ArrayList<>();
if (null != field) {
String fieldPath = field.getName();
MappingField mappingField = ObjectUtils.getAnnotation(field, MappingField.class);
if (null != mappingField && !StringUtils.isEmpty(mappingField.entityField())) {
fieldPath = mappingField.entityField();
}
Class<?> innerClass = MappingUtils.getFieldType(field);
boolean isCollection = ObjectUtils.fieldIsCollection(field);
// Case 1: Field is normal field >> get one entity mapping field has been configuration in MappingField annotation
// Case 2: Field is another DTO field, lookingInner = true, includeCollection = true >> looking all field of DTO field
// Case 3: Field is another DTO field, lookingInner = true, includeCollection = false >> only non Collection field will be looking to get mapping fields
if (lookingInner && validate(innerClass) && (includeCollection || !isCollection)) {
List<String> innerFieldPaths = getEntityMappingFieldPaths(innerClass, true, true);
if (!CollectionUtils.isEmpty(innerFieldPaths)) {
String finalFieldPath = fieldPath.concat(Constants.DOT);
fieldPaths.addAll(innerFieldPaths.stream().map(finalFieldPath::concat).collect(Collectors.toList()));
}
} else if (includeCollection || !isCollection) {
fieldPaths.add(fieldPath);
}
}
return fieldPaths.stream().distinct().collect(Collectors.toList());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getEntityMappingFieldPath(Field field) {\n List<String> fieldPaths = getEntityMappingFieldPaths(field, false, true);\n if (fieldPaths.size() > 0) {\n return fieldPaths.get(0);\n }\n return null;\n }",
"public static String getEntityMappingFieldPath(Class<?> dtoType, String fieldPath) {\n if (null != dtoType && !StringUtils.isEmpty(fieldPath)) {\n String[] paths = fieldPath.split(Constants.DOT_REGEX);\n Field field = ObjectUtils.getField(dtoType, paths[0], true);\n String entityFieldName = getEntityMappingFieldPath(field);\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (paths.length > 1 && validate(innerClass)) {\n String nextPath = fieldPath.substring(fieldPath.indexOf(Constants.DOT) + 1);\n entityFieldName = entityFieldName + Constants.DOT + getEntityMappingFieldPath(innerClass, nextPath);\n }\n return entityFieldName;\n }\n return null;\n }",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tpublic static <T> Path<Object> getPathFromField(Root<T> root, String field) {\n\t\tString[] fieldname = field.split(\"/\");\n\t\tPath<Object> path = null;\n\t\tfor (int idx = 0; idx < fieldname.length; idx++) {\n\n\t\t\tString attributeName = fieldname[idx];\n\n\t\t\tif (path != null) {\n\t\t\t\tpath = path.get(attributeName);\n\t\t\t} else {\n\t\t\t\tpath = root.get(attributeName);\n\t\t\t}\n\n\t\t\tif ((fieldname.length - 1) > idx) {\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Set.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tJoin<T, ?> join = opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tpath = join.get(fieldname[++idx]);\n\n\t\t\t\t}\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Map.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tMapJoin join = (MapJoin) opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tString f = fieldname[++idx];\n\t\t\t\t\tif (f.equals(\"key\"))\n\t\t\t\t\t\tpath = join.key();\n\t\t\t\t\telse if (f.equals(\"value\"))\n\t\t\t\t\t\tpath = join.value();\n\t\t\t\t\telse\n\t\t\t\t\t\tthrow new FormatExceptionException(\"Only key or value you can specify in a map filter, got: \" + f);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn path;\n\t}",
"public T caseFieldPath(FieldPath object)\n {\n return null;\n }",
"public static String getFieldMappingEntityKey(Class<?> dtoType) {\n if (null != dtoType) {\n List<String> keys = EntityUtils.getPrimaryKey(getEntityType(dtoType));\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n String mappingField = getEntityMappingFieldPath(field);\n if (keys.contains(mappingField)) {\n return mappingField;\n }\n }\n }\n return null;\n }",
"public static List<String> getEntityMappingFieldPaths(Class<?> dtoType) {\n return getEntityMappingFieldPaths(dtoType, false, true);\n }",
"List<JPAPath> getKeyPath() throws ODataJPAModelException;",
"public String getIdPath() {\n\t\tif (null != this.idPath) {\n\t\t\treturn this.idPath;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"idPath\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public static Object convertMapEntityPathAndValueToDTO(String prefix, Map<String, Object> mapData, Field field) {\n if (null != mapData && null != field) {\n String mappingField = getEntityMappingFieldPath(field);\n if (!StringUtils.isEmpty(prefix)) {\n prefix += Constants.DOT;\n }\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType)) {\n if (!ObjectUtils.fieldIsCollection(field)) {\n return convertMapEntityPathAndValueToDTO(prefix + mappingField, mapData, fieldType);\n } else {\n int length = countLengthOfArray(prefix + mappingField, mapData);\n if (length > 0) {\n try {\n @SuppressWarnings(\"unchecked\")\n Collection<Object> collection = ObjectUtils.newInstanceCollection(field.getType());\n for (int i = 0; i < length; i++) {\n Object innerEntity = convertMapEntityPathAndValueToDTO(prefix + mappingField + \"[\" + i + \"]\", mapData, fieldType);\n if (null != innerEntity) {\n collection.add(innerEntity);\n }\n }\n return collection;\n } catch (NoSuchMethodException e) {\n throw new ConstructorInvalidException(\"Cannot new collection instance for field \" + field.getName(), e);\n }\n }\n }\n } else {\n Class<?> fieldConverter = getFieldConverterType(field);\n return convertField(fieldConverter, mapData.get(prefix + mappingField));\n }\n }\n return null;\n }",
"public static List<String> getEntityMappingFieldPathsPrimary(Class<?> dtoType, boolean includeCollection) {\n // Get primary key of Entity mapping with DTO\n List<String> entityKeyFields = EntityUtils.getPrimaryKey(getEntityType(dtoType));\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n // For each field of DTO, if field is another DTO then get also.\n for (Field field : fields) {\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType) && (includeCollection || !ObjectUtils.fieldIsCollection(field))) {\n String fieldPath = getEntityMappingFieldPath(field);\n fieldPath = null != fieldPath ? fieldPath + Constants.DOT : Constants.EMPTY_STRING;\n List<String> innerKeyFieldPaths = getEntityMappingFieldPathsPrimary(fieldType, includeCollection)\n .stream().map(fieldPath::concat).collect(Collectors.toList());\n entityKeyFields.addAll(innerKeyFieldPaths);\n }\n }\n return entityKeyFields;\n }",
"public static List<String> getEntityMappingFieldPaths(Class<?> dtoType, boolean lookingInner, boolean includeCollection) {\n List<String> fieldPaths = new ArrayList<>();\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n fieldPaths.addAll(getEntityMappingFieldPaths(field, lookingInner, includeCollection));\n }\n return fieldPaths.stream().distinct().collect(Collectors.toList());\n }",
"String getKey(Object entity);",
"public String getMappingFilePath();",
"@Override\n\tpublic String associatedEntityName(String field) {\n\t\treturn null;\n\t}",
"public static String getXpathString(By byObj) throws IllegalArgumentException, IllegalAccessException {\n\t\tObjectMap objm = new ObjectMap();\n\t\tField[]x=objm.getClass().getDeclaredFields();\n\t\tint n = objm.getClass().getDeclaredFields().length;\n\t\tString t=\"\";\n\t\tString s=\"\";\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tif (x[i].get(byObj).equals(byObj)) {\n\t\t\t\tt=x[i].get(byObj).toString();\n\t\t\t\ts =t.substring(10);\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t}",
"public static Field getFieldByPath(Class<?> dtoType, String fieldPath) {\n if (null != dtoType && !StringUtils.isEmpty(fieldPath)) {\n String[] paths = fieldPath.split(Constants.DOT_REGEX);\n\n Field field = ObjectUtils.getField(dtoType, paths[0], true);\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (paths.length > 1 && validate(innerClass)) {\n String nextPath = fieldPath.substring(fieldPath.indexOf(Constants.DOT) + 1);\n field = getFieldByPath(innerClass, nextPath);\n }\n return field;\n }\n return null;\n }",
"@Override\n\tpublic MappingField getFieldMapping(MappingField field) {\n\t\tString desc = field.getDesc();\n\t\tint i = desc.indexOf(\")\");\n\n\t\tif (i >= 0) {\n\t\t\tdesc = desc.substring(i + 1);\n\t\t\tfield = new MappingField(field.getOwner(), field.getSimpleName(), desc);\n\t\t}\n\n\t\tMappingField mapped = getMapping0(field, fieldMap);\n\t\tif (mapped != null) return mapped;\n\n\t\tif (field.getOwner() != null) {\n\t\t\tString newOwner = classMap.getOrDefault(field.getOwner(), field.getOwner());\n\t\t\tString newDesc;\n\n\t\t\tif (desc.endsWith(\";\")) {\n\t\t\t\tint pos = desc.indexOf('L');\n\t\t\t\tassert pos >= 0;\n\t\t\t\tString cls = desc.substring(pos + 1, desc.length() - 1);\n\t\t\t\tnewDesc = String.format(\"%s%s;\", desc.substring(0, pos + 1), classMap.getOrDefault(cls, cls));\n\t\t\t} else {\n\t\t\t\tnewDesc = desc;\n\t\t\t}\n\n\t\t\tif (!newOwner.equals(field.getOwner()) || !newDesc.equals(field.getDesc())) {\n\t\t\t\treturn new MappingField(newOwner, field.getSimpleName(), newDesc);\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}",
"public String getPath() throws Exception {\n\t\t/*\n\t\t * return \"/news-oppsRecord\" + doc.selectSingleNode\n\t\t * (\"/metadataFieldInfo/field/@path\").getText();\n\t\t */\n\t\treturn doc.selectSingleNode(\"/metadataFieldInfo/field/@path\").getText();\n\t}",
"public interface PathAliasHandler {\n String toAliasedColumn(FieldExpression fieldExpression);\n}",
"@DialogField(fieldLabel = \"Property Relative Path\",\n fieldDescription = \"Relative path from nodes being searched to the node where their tag property is stored. For example, if searching for dam:Assets, you would set this field to 'jcr:content/metadata'. Leave blank to search for tags on result nodes themselves.\")\n @TextField\n public Optional<String> getRelativePath() {\n return get(PARAM_RELATIVE_PATH, String.class);\n }",
"private Object getOffendingObject (Object field)\n\t{\n\t\treturn ((field == null) ? \n\t\t\tgetModel().getClass(getClassName(), getClassLoader()) :\n\t\t\tgetModel().getField(getClassName(), field.toString()));\n\t}",
"Object getObjectField();",
"private DataMapping getDataMapping(String pFieldName, ObjectSet<?> pObjectSet) {\r\n\t\t\r\n\t\tif (pFieldName != null && pFieldName.trim() != \"\") {\r\n\t\t\tif (pObjectSet != null) {\r\n\t\t\t\tif (pObjectSet.getDataMappings() != null && pObjectSet.getDataMappings().size() > 0) {\r\n\t\t\t\t\tfor(DataMapping mapping : pObjectSet.getDataMappings()) {\r\n\t\t\t\t\t\tif (mapping.DataBaseFieldName.trim().toLowerCase().equals(pFieldName.trim().toLowerCase())) {\r\n\t\t\t\t\t\t\treturn mapping;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"private String getKey (String keyBase, Object field)\n\t{\n\t\treturn ((field == null) ? keyBase : (keyBase + \"_related\"));\t//NOI18N\n\t}",
"private String constructPath(MetadataEntity metadataEntity) {\n StringBuilder builder = new StringBuilder();\n metadataEntity.iterator().forEachRemaining(keyValue -> {\n if (ENTITY_TYPE_TO_API_PART.containsKey(keyValue.getKey())) {\n builder.append(ENTITY_TYPE_TO_API_PART.get(keyValue.getKey()));\n } else {\n builder.append(keyValue.getKey());\n }\n builder.append(\"/\");\n builder.append(keyValue.getValue());\n builder.append(\"/\");\n });\n // remove the last /\n builder.replace(builder.length() - 1, builder.length(), \"\");\n return builder.toString();\n }",
"public static List<String> getEntityMappingFieldPathsCollection(Class<?> dtoType) {\n return getEntityMappingFieldPathsCollection(dtoType, false);\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n default:\n return null;\n }\n }",
"@Override\n public final JsonNode findPath(String fieldName)\n {\n JsonNode value = findValue(fieldName);\n if (value == null) {\n return MissingNode.getInstance();\n }\n return value;\n }",
"PathSegments getPath();",
"public static Object getPathMessage(Descriptors.FieldDescriptor fieldDescriptor,\n DynamicMessage message,\n FieldPathUtils.PathInfo pathInfo,\n FeatureContext ctx) {\n if (FieldPathUtils.PathType.ARRAY.equals(pathInfo.getPathType())) {\n int repeatedFieldCount = message.getRepeatedFieldCount(fieldDescriptor);\n if (repeatedFieldCount > pathInfo.getIndex()) {\n return ProtoUtils.getArrayField(message, fieldDescriptor, pathInfo.getIndex());\n }\n return null;\n } else {\n return ProtoUtils.getField(message, fieldDescriptor, ctx);\n }\n }",
"@Override\n public Expression<?> getExpression(CriteriaBuilder cb) {\n return path;\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // DST_PATH\n return DST_PATH;\n case 3: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static List<String> getFieldPaths(Field field, boolean lookingInner) {\n List<String> fieldPaths = new ArrayList<>();\n if (null != field) {\n String fieldPath = field.getName();\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (lookingInner && validate(innerClass)) {\n List<String> innerFieldPaths = getFieldPaths(innerClass, true);\n if (!CollectionUtils.isEmpty(innerFieldPaths)) {\n String finalFieldPath = fieldPath + Constants.DOT;\n fieldPaths.addAll(innerFieldPaths.stream().map(finalFieldPath::concat).collect(Collectors.toList()));\n }\n } else {\n fieldPaths.add(fieldPath);\n }\n }\n return fieldPaths;\n }",
"@Override\r\n public String getDebugPathInfo(String entityName) {\n return null;\r\n }",
"protected static String getVariablePath(String rootKey, String entityKey, String key) {\n int separatorIndex = key.indexOf(separator);\n String first = separatorIndex != -1 ? key.substring(0, separatorIndex) : key;\n String object = rootKey;\n if (first.equals(entityref)) {\n object = entityKey;\n key = key.substring(separatorIndex + 1);\n } else if (first.equals(registrationref)) {\n object = registrationref;\n key = key.substring(separatorIndex + 1);\n } else if (first.equals(effectref)) {\n object = effectref;\n key = key.substring(separatorIndex + 1);\n }\n object += \".\" + key;\n return object;\n }",
"public String getField(String field) throws RemoteException;",
"Entity getMappedBy();",
"String getDBQualifiedFieldName(String fieldName);",
"public static Path getPathForObject(Object obj) {\r\n ReportsDirectory constant = fromObject(obj);\r\n return getTargetPath().resolve(constant.folder);\r\n }",
"IPath getPath();",
"private static Field findFieldInHierarchy(Object object, String fieldName) {\n return findFieldInHierarchy(object, new FieldNameMatcherStrategy(fieldName));\n }",
"public String get_another_field(String table, String source_field, String source_value, String destination_field);",
"String getFieldName();",
"private Object resolveDsfPath(Object bean, String[] dsfElements, int level)\r\n {\r\n try{\r\n Field f = bean.getClass().getField(dsfElements[level]); \r\n Object value = f.get(bean);\r\n\r\n if (++level<dsfElements.length)\r\n return resolveDsfPath(value,dsfElements, level);\r\n \r\n if (value instanceof Method)\r\n { // Not working well - Need further debug\r\n value = ((Method)value).invoke(bean, new Object[0]);\r\n return value;\r\n }\r\n \r\n return value;\r\n }\r\n catch (Exception e){}\r\n return null;\r\n }",
"public String getPathName();",
"public String get(String fieldName) {\n\t\tString xpQuery = getXPathQuery(fieldName);\n\t\treturn getFieldUsingXPath(xpQuery);\n\t}",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ALLUXIO_PATH\n return ALLUXIO_PATH;\n case 2: // UFS_PATH\n return UFS_PATH;\n case 3: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"@Override\n public JsonNode visit(JmesPathField fieldNode, JsonNode input) {\n if (input.isObject()) {\n //TODO : CamelCase will need to change at some point\n return input.get(CamelCaseUtils.toCamelCase(fieldNode.getValue()));\n }\n return NullNode.getInstance();\n }",
"public DevicePath getDevicePath(Device device);",
"public ObjectNode resolvePaths();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_TOKEN\n return ACCESS_TOKEN;\n case 2: // PATH\n return PATH;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_TOKEN\n return ACCESS_TOKEN;\n case 2: // PATH\n return PATH;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_TOKEN\n return ACCESS_TOKEN;\n case 2: // PATH\n return PATH;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_TOKEN\n return ACCESS_TOKEN;\n case 2: // PATH\n return PATH;\n default:\n return null;\n }\n }",
"public String getPathExpression() {\n return getProperty(PATH_EXPRESSION);\n }",
"public Path resolve(String part) {\n return Paths.get(part);\n }",
"String getBlobField();",
"public String getBindingItemIdPath(){\n return pathBindingSetItemId;\n }",
"public String getPath() {\n\t\treturn getString(\"path\");\n\t}",
"public List<Map<String, Object>> getAuktionPath(int objectId, int templateId);",
"public Path getPath();",
"public String getFieldName();",
"PathKeys getPathKeys();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // ACTION\n return ACTION;\n case 3: // ENTRIES\n return ENTRIES;\n case 4: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public PathExpressionIF createPathExpression();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // UFS_PATH\n return UFS_PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static IPath getValueAsIPath(final KiemProperty property) {\r\n String filePath = property.getFilePath();\r\n Path returnPath = new Path(filePath);\r\n return returnPath;\r\n }",
"protected static String getObjectPath(URI resource) {\n String objectPath = resource.getPath().isEmpty() ? \"/\" : resource.getPath();\n return String.format(\"%s%s\", resource.getAuthority(),\n objectPath.charAt(0) == '/' ? objectPath : \"/\" + objectPath);\n }",
"public static Object getPathValue(DynamicMessage originMessage,\n FieldPathUtils.PathInfo pathInfo,\n FeatureContext ctx) {\n if (Objects.isNull(pathInfo) || Objects.isNull(originMessage)) {\n return null;\n }\n\n Object pathMessage = originMessage;\n Descriptors.FieldDescriptor pathDescriptor = null;\n\n for (FieldPathUtils.PathInfo nextPath = pathInfo; Objects.nonNull(nextPath); nextPath = nextPath.getNestPathInfo()) {\n if (Objects.isNull(pathMessage)) {\n return null;\n }\n Pair<Descriptors.FieldDescriptor, Object> pair = getDescriptorAndMessageByName(pathMessage, nextPath);\n pathDescriptor = pair.getKey();\n pathMessage = pair.getValue();\n\n if (Objects.isNull(pathDescriptor)) {\n return null;\n }\n pathMessage = getPathMessage(pathDescriptor, (DynamicMessage) pathMessage, nextPath, ctx);\n }\n\n if (Objects.isNull(pathMessage)) {\n return null;\n }\n\n if (Objects.isNull(pathDescriptor)) {\n throw new IllegalArgumentException(String.format(\"Path info: %s can't find descriptor type.\",\n JsonSerializer.serialize(pathInfo)));\n }\n\n return ProtoUtils.getProtoValue(pathMessage, pathDescriptor, ctx);\n }",
"private FieldIdItem parseAndResolveField(ClassPath.ClassDef classDef, String field) {\n String[] parts = field.split(\":\");\n if (parts.length != 2) {\n throw new RuntimeException(\"Invalid field descriptor \" + field);\n }\n \n String fieldName = parts[0];\n String fieldType = parts[1];\n \n StringIdItem fieldNameItem = StringIdItem.lookupStringIdItem(dexFile, fieldName);\n if (fieldNameItem == null) {\n return null;\n }\n \n TypeIdItem fieldTypeItem = TypeIdItem.lookupTypeIdItem(dexFile, fieldType);\n if (fieldTypeItem == null) {\n return null;\n }\n \n ClassPath.ClassDef fieldClass = classDef;\n \n do {\n TypeIdItem classTypeItem = TypeIdItem.lookupTypeIdItem(dexFile, fieldClass.getClassType());\n if (classTypeItem == null) {\n continue;\n }\n \n FieldIdItem fieldIdItem = FieldIdItem.lookupFieldIdItem(dexFile, classTypeItem, fieldTypeItem, fieldNameItem);\n if (fieldIdItem != null) {\n return fieldIdItem;\n }\n \n fieldClass = fieldClass.getSuperclass();\n } while (fieldClass != null);\n \n return null;\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // RECURSIVE\n return RECURSIVE;\n case 3: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // RECURSIVE\n return RECURSIVE;\n case 3: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"private List<Field> getMappedFields(Mapping objectMapping, DataSourceType dataSourceType) {\n List<Field> mappedFields = null;\n if (dataSourceType == DataSourceType.SOURCE) {\n FieldGroup fg = objectMapping.getInputFieldGroup();\n if (fg != null) {\n mappedFields = fg.getField();\n } else {\n mappedFields = objectMapping.getInputField();\n }\n } else {\n mappedFields = objectMapping.getOutputField();\n }\n return mappedFields;\n }",
"public static Map<String, Object> convertToEntityMappingFieldAndValue(Object dto, Field field) {\n Map<String, Object> mapData = new HashMap<>();\n if (null != dto && null != field) {\n Object valueOfField;\n try {\n valueOfField = ObjectUtils.getValueOfField(dto, field.getName());\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot get value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n\n if (validate(MappingUtils.getFieldType(field))) {\n if (!ObjectUtils.fieldIsCollection(field)) {\n Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(valueOfField);\n for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {\n mapData.put(field.getName() + Constants.DOT + entry.getKey(), entry.getValue());\n }\n } else {\n Collection<?> collection = (Collection<?>) valueOfField;\n int index = 0;\n if (!CollectionUtils.isEmpty(collection)) {\n for (Object innerDTO : collection) {\n Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(innerDTO);\n for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {\n mapData.put(field.getName() + \"[\" + index + \"]\" + Constants.DOT + entry.getKey(), entry.getValue());\n }\n index++;\n }\n }\n }\n } else {\n Class<?> fieldConverter = getFieldConverterType(field);\n Object convertValue = convertField(fieldConverter, valueOfField, true);\n mapData.put(getEntityMappingFieldPath(field), convertValue);\n }\n }\n return mapData;\n }",
"public String[] getFieldNameMapping() {\r\n return null;\r\n }",
"public String getPath(String from, String to, String pathAlgo);",
"public static Path getFilePath(DBObject _dbobject, DBManager _dbmgr){\r\n\t\tString filename = _dbmgr.getPrefixPathName()+\"_\"+_dbobject.getPrimaryKeyId();\r\n\t\tString extension = _dbmgr.getExtensionPathName();\r\n\t\tString _dbpath = _dbmgr.getUrlDbPath();\r\n\t\tString _tmpFilePath = _dbpath + \"/\"+filename + \".\"+extension;\r\n\t\tPath filePath = Paths.get(_tmpFilePath);\r\n\t\treturn filePath;\r\n\t}",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n case 2: // OUTPUT_DIR\n return OUTPUT_DIR;\n case 3: // SUBSET\n return SUBSET;\n case 4: // TYPES\n return TYPES;\n default:\n return null;\n }\n }",
"public Path getPath(){\n return this.path;\n }",
"public StringDt getPathElement() { \n\t\tif (myPath == null) {\n\t\t\tmyPath = new StringDt();\n\t\t}\n\t\treturn myPath;\n\t}",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ALLUXIO_PATH\n return ALLUXIO_PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public String pathOfItem(Pathable item) {\n return null; // todo: implement this method\n }",
"String getField();",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // OBJECT_ID\r\n return OBJECT_ID;\r\n case 2: // DIRECTION\r\n return DIRECTION;\r\n case 3: // FROM_X\r\n return FROM_X;\r\n case 4: // FROM_Y\r\n return FROM_Y;\r\n case 5: // TO_X\r\n return TO_X;\r\n case 6: // TO_Y\r\n return TO_Y;\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // OBJECT_ID\r\n return OBJECT_ID;\r\n case 2: // DIRECTION\r\n return DIRECTION;\r\n case 3: // FROM_X\r\n return FROM_X;\r\n case 4: // FROM_Y\r\n return FROM_Y;\r\n case 5: // TO_X\r\n return TO_X;\r\n case 6: // TO_Y\r\n return TO_Y;\r\n default:\r\n return null;\r\n }\r\n }",
"private String retrieveAbsoluteName(Object obj)\r\n {\r\n return (String) objectNames.get(obj);\r\n }",
"public JTextField getPathField() {\n return ((JTextField) innerSearcher.\n findComponent(new ComponentChooser() {\n @Override\n public boolean checkComponent(Component comp) {\n return (comp != null\n && comp instanceof JTextField);\n }\n\n @Override\n public String getDescription() {\n return \"JTextField\";\n }\n\n @Override\n public String toString() {\n return \"JFileChooserOperator.getPathField.ComponentChooser{description = \" + getDescription() + '}';\n }\n }));\n }",
"@Override\n public String getMappedLocation() {\n return gameMap.convertPortReferenceToName(reference);\n }",
"public static PropertyInfo getProperty(Field field)\r\n {\r\n String mapKey = field.getProperty() != null ? field.getProperty() : field.getName();\r\n return PropertyInfo.OUR_PROPERTY_INFO_MAP.get(mapKey);\r\n }",
"public String getPath()\r\n/* 26: */ {\r\n/* 27:57 */ return this.path;\r\n/* 28: */ }",
"java.lang.String getXpath();"
] | [
"0.7663521",
"0.70242983",
"0.6432811",
"0.5985702",
"0.5966408",
"0.58557814",
"0.5576728",
"0.5460348",
"0.54176235",
"0.52906406",
"0.5270865",
"0.52433836",
"0.524331",
"0.52127296",
"0.51901937",
"0.5180621",
"0.5131462",
"0.51242816",
"0.51148087",
"0.51072115",
"0.508504",
"0.505704",
"0.5056314",
"0.5013712",
"0.50128925",
"0.49993798",
"0.49966848",
"0.49811545",
"0.49766698",
"0.4971411",
"0.49675712",
"0.49544233",
"0.4936675",
"0.49315184",
"0.49191025",
"0.49171683",
"0.49106863",
"0.49027428",
"0.48991674",
"0.48708948",
"0.4866919",
"0.4834965",
"0.48220378",
"0.48030975",
"0.4802793",
"0.4800936",
"0.47943288",
"0.47943288",
"0.47943288",
"0.47943288",
"0.47943288",
"0.47943288",
"0.47943288",
"0.47943288",
"0.47943288",
"0.47908014",
"0.47907978",
"0.4785853",
"0.47798854",
"0.4762599",
"0.4762599",
"0.4762599",
"0.4762599",
"0.4732766",
"0.47252056",
"0.47220477",
"0.47034675",
"0.46994898",
"0.4695954",
"0.4692289",
"0.46873158",
"0.4680037",
"0.46797886",
"0.46750873",
"0.46748286",
"0.46740675",
"0.46661848",
"0.4665221",
"0.46634814",
"0.46537623",
"0.46537623",
"0.4648496",
"0.46427992",
"0.4636648",
"0.46315518",
"0.4629491",
"0.4611068",
"0.46005768",
"0.45908096",
"0.45904055",
"0.45860234",
"0.45848164",
"0.45837572",
"0.45837572",
"0.45780367",
"0.4574771",
"0.45724365",
"0.45720002",
"0.45657867",
"0.45656133"
] | 0.5781811 | 6 |
Get entity mapping field path. | public static String getEntityMappingFieldPath(Class<?> dtoType, String fieldPath) {
if (null != dtoType && !StringUtils.isEmpty(fieldPath)) {
String[] paths = fieldPath.split(Constants.DOT_REGEX);
Field field = ObjectUtils.getField(dtoType, paths[0], true);
String entityFieldName = getEntityMappingFieldPath(field);
Class<?> innerClass = MappingUtils.getFieldType(field);
if (paths.length > 1 && validate(innerClass)) {
String nextPath = fieldPath.substring(fieldPath.indexOf(Constants.DOT) + 1);
entityFieldName = entityFieldName + Constants.DOT + getEntityMappingFieldPath(innerClass, nextPath);
}
return entityFieldName;
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getEntityMappingFieldPath(Field field) {\n List<String> fieldPaths = getEntityMappingFieldPaths(field, false, true);\n if (fieldPaths.size() > 0) {\n return fieldPaths.get(0);\n }\n return null;\n }",
"public String getMappingFilePath();",
"public static String getFieldMappingEntityKey(Class<?> dtoType) {\n if (null != dtoType) {\n List<String> keys = EntityUtils.getPrimaryKey(getEntityType(dtoType));\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n String mappingField = getEntityMappingFieldPath(field);\n if (keys.contains(mappingField)) {\n return mappingField;\n }\n }\n }\n return null;\n }",
"public static List<String> getEntityMappingFieldPaths(Field field, boolean lookingInner, boolean includeCollection) {\n List<String> fieldPaths = new ArrayList<>();\n if (null != field) {\n String fieldPath = field.getName();\n MappingField mappingField = ObjectUtils.getAnnotation(field, MappingField.class);\n if (null != mappingField && !StringUtils.isEmpty(mappingField.entityField())) {\n fieldPath = mappingField.entityField();\n }\n\n Class<?> innerClass = MappingUtils.getFieldType(field);\n boolean isCollection = ObjectUtils.fieldIsCollection(field);\n // Case 1: Field is normal field >> get one entity mapping field has been configuration in MappingField annotation\n // Case 2: Field is another DTO field, lookingInner = true, includeCollection = true >> looking all field of DTO field\n // Case 3: Field is another DTO field, lookingInner = true, includeCollection = false >> only non Collection field will be looking to get mapping fields\n if (lookingInner && validate(innerClass) && (includeCollection || !isCollection)) {\n List<String> innerFieldPaths = getEntityMappingFieldPaths(innerClass, true, true);\n if (!CollectionUtils.isEmpty(innerFieldPaths)) {\n String finalFieldPath = fieldPath.concat(Constants.DOT);\n fieldPaths.addAll(innerFieldPaths.stream().map(finalFieldPath::concat).collect(Collectors.toList()));\n }\n } else if (includeCollection || !isCollection) {\n fieldPaths.add(fieldPath);\n }\n }\n return fieldPaths.stream().distinct().collect(Collectors.toList());\n }",
"public String getIdPath() {\n\t\tif (null != this.idPath) {\n\t\t\treturn this.idPath;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"idPath\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public static List<String> getEntityMappingFieldPaths(Class<?> dtoType) {\n return getEntityMappingFieldPaths(dtoType, false, true);\n }",
"public String[] getFieldNameMapping() {\r\n return null;\r\n }",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tpublic static <T> Path<Object> getPathFromField(Root<T> root, String field) {\n\t\tString[] fieldname = field.split(\"/\");\n\t\tPath<Object> path = null;\n\t\tfor (int idx = 0; idx < fieldname.length; idx++) {\n\n\t\t\tString attributeName = fieldname[idx];\n\n\t\t\tif (path != null) {\n\t\t\t\tpath = path.get(attributeName);\n\t\t\t} else {\n\t\t\t\tpath = root.get(attributeName);\n\t\t\t}\n\n\t\t\tif ((fieldname.length - 1) > idx) {\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Set.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tJoin<T, ?> join = opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tpath = join.get(fieldname[++idx]);\n\n\t\t\t\t}\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Map.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tMapJoin join = (MapJoin) opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tString f = fieldname[++idx];\n\t\t\t\t\tif (f.equals(\"key\"))\n\t\t\t\t\t\tpath = join.key();\n\t\t\t\t\telse if (f.equals(\"value\"))\n\t\t\t\t\t\tpath = join.value();\n\t\t\t\t\telse\n\t\t\t\t\t\tthrow new FormatExceptionException(\"Only key or value you can specify in a map filter, got: \" + f);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn path;\n\t}",
"String getFieldName();",
"public String getPath() throws Exception {\n\t\t/*\n\t\t * return \"/news-oppsRecord\" + doc.selectSingleNode\n\t\t * (\"/metadataFieldInfo/field/@path\").getText();\n\t\t */\n\t\treturn doc.selectSingleNode(\"/metadataFieldInfo/field/@path\").getText();\n\t}",
"public String getFieldName();",
"@Override\n public String getMappedLocation() {\n return gameMap.convertPortReferenceToName(reference);\n }",
"List<JPAPath> getKeyPath() throws ODataJPAModelException;",
"public String getField() {\n return field;\n }",
"@AutoEscape\n\tpublic String getFieldId();",
"public java.lang.String getFieldId() {\n return fieldId;\n }",
"public MapEntityKey getMapEntityKey() {\n\t\treturn mapEntityKey;\n\t}",
"public String getField()\n {\n return field;\n }",
"public static List<String> getEntityMappingFieldPaths(Class<?> dtoType, boolean lookingInner, boolean includeCollection) {\n List<String> fieldPaths = new ArrayList<>();\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n fieldPaths.addAll(getEntityMappingFieldPaths(field, lookingInner, includeCollection));\n }\n return fieldPaths.stream().distinct().collect(Collectors.toList());\n }",
"@DialogField(fieldLabel = \"Property Relative Path\",\n fieldDescription = \"Relative path from nodes being searched to the node where their tag property is stored. For example, if searching for dam:Assets, you would set this field to 'jcr:content/metadata'. Leave blank to search for tags on result nodes themselves.\")\n @TextField\n public Optional<String> getRelativePath() {\n return get(PARAM_RELATIVE_PATH, String.class);\n }",
"String getField();",
"@Override\r\n public String getDebugPathInfo(String entityName) {\n return null;\r\n }",
"protected String path() {\n return path(getName());\n }",
"public final String getFieldId() {\n return fieldId;\n }",
"@Override\n\tpublic MappingField getFieldMapping(MappingField field) {\n\t\tString desc = field.getDesc();\n\t\tint i = desc.indexOf(\")\");\n\n\t\tif (i >= 0) {\n\t\t\tdesc = desc.substring(i + 1);\n\t\t\tfield = new MappingField(field.getOwner(), field.getSimpleName(), desc);\n\t\t}\n\n\t\tMappingField mapped = getMapping0(field, fieldMap);\n\t\tif (mapped != null) return mapped;\n\n\t\tif (field.getOwner() != null) {\n\t\t\tString newOwner = classMap.getOrDefault(field.getOwner(), field.getOwner());\n\t\t\tString newDesc;\n\n\t\t\tif (desc.endsWith(\";\")) {\n\t\t\t\tint pos = desc.indexOf('L');\n\t\t\t\tassert pos >= 0;\n\t\t\t\tString cls = desc.substring(pos + 1, desc.length() - 1);\n\t\t\t\tnewDesc = String.format(\"%s%s;\", desc.substring(0, pos + 1), classMap.getOrDefault(cls, cls));\n\t\t\t} else {\n\t\t\t\tnewDesc = desc;\n\t\t\t}\n\n\t\t\tif (!newOwner.equals(field.getOwner()) || !newDesc.equals(field.getDesc())) {\n\t\t\t\treturn new MappingField(newOwner, field.getSimpleName(), newDesc);\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}",
"public static List<String> getEntityMappingFieldPathsPrimary(Class<?> dtoType, boolean includeCollection) {\n // Get primary key of Entity mapping with DTO\n List<String> entityKeyFields = EntityUtils.getPrimaryKey(getEntityType(dtoType));\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n // For each field of DTO, if field is another DTO then get also.\n for (Field field : fields) {\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType) && (includeCollection || !ObjectUtils.fieldIsCollection(field))) {\n String fieldPath = getEntityMappingFieldPath(field);\n fieldPath = null != fieldPath ? fieldPath + Constants.DOT : Constants.EMPTY_STRING;\n List<String> innerKeyFieldPaths = getEntityMappingFieldPathsPrimary(fieldType, includeCollection)\n .stream().map(fieldPath::concat).collect(Collectors.toList());\n entityKeyFields.addAll(innerKeyFieldPaths);\n }\n }\n return entityKeyFields;\n }",
"Entity getMappedBy();",
"public String getFieldId() {\n return this.fieldId;\n }",
"public String getEntityfilename() {\n return entityfilename;\n }",
"public String getPath() {\n\t\treturn getString(\"path\");\n\t}",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n default:\n return null;\n }\n }",
"@Override\n\tpublic String associatedEntityName(String field) {\n\t\treturn null;\n\t}",
"public String getPathExpression() {\n return getProperty(PATH_EXPRESSION);\n }",
"@Override\n public Expression<?> getExpression(CriteriaBuilder cb) {\n return path;\n }",
"public String getSqlPath() {\n return (String) get(4);\n }",
"public interface PathAliasHandler {\n String toAliasedColumn(FieldExpression fieldExpression);\n}",
"@Override\n\tpublic String getField(String key) {\n\t\treturn gp.getValue(key);\n\t}",
"public String getFieldName() {\r\n return this.strFieldName;\r\n }",
"protected static String getVariablePath(String rootKey, String entityKey, String key) {\n int separatorIndex = key.indexOf(separator);\n String first = separatorIndex != -1 ? key.substring(0, separatorIndex) : key;\n String object = rootKey;\n if (first.equals(entityref)) {\n object = entityKey;\n key = key.substring(separatorIndex + 1);\n } else if (first.equals(registrationref)) {\n object = registrationref;\n key = key.substring(separatorIndex + 1);\n } else if (first.equals(effectref)) {\n object = effectref;\n key = key.substring(separatorIndex + 1);\n }\n object += \".\" + key;\n return object;\n }",
"public String getBindingItemIdPath(){\n return pathBindingSetItemId;\n }",
"public String getFieldName() {\n return this.fieldName;\n }",
"@SuppressWarnings(\"unchecked\")\n public Map<String, String> getMapContextPath() {\n FacesContext facesContext = FacesContext.getCurrentInstance();\n ExternalContext extenalContext = facesContext.getExternalContext();\n HttpServletRequest request = (HttpServletRequest) extenalContext.getRequest();\n return (Map<String, String>) request.getSession().getAttribute(\"MAP_CONTEXT_PATH\");\n //xxx_temp end\n }",
"public List<EntityMapping> entityMappings() {\n return this.innerProperties() == null ? null : this.innerProperties().entityMappings();\n }",
"public String field() {\n\t\treturn \"_\"+methodBase();\n\t}",
"public String getFieldName() {\n return fieldName;\n }",
"String getDBQualifiedFieldName(String fieldName);",
"String getPath() {\n return this.path;\n }",
"java.lang.String getField1334();",
"String getPath() {\r\n\t\treturn path;\r\n\t}",
"public String getPath(){\n\t\t\treturn this.path;\n\t\t}",
"java.lang.String getField1489();",
"public String getFieldName()\n {\n return m_strFieldName;\n }",
"public String getcompanyMappingLocation() {\n return companyMappingLocation;\n }",
"public String getName(){\n return field.getName();\n }",
"public String get(String fieldName) {\n\t\tString xpQuery = getXPathQuery(fieldName);\n\t\treturn getFieldUsingXPath(xpQuery);\n\t}",
"public String getPathName();",
"public String getFieldName() {\n return fieldName;\n }",
"public String getFieldName() {\n return fieldName;\n }",
"public String getFieldName() {\n return fieldName;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getEntityURI() {\r\n\t\treturn entityURI;\r\n\t}",
"public static List<String> getEntityMappingFieldPathsCollection(Class<?> dtoType) {\n return getEntityMappingFieldPathsCollection(dtoType, false);\n }",
"public String getPath() {\n\t\treturn this.path;\n\t}",
"java.lang.String getField1337();",
"public String getPath() { return db.getPath(); }",
"public java.util.List<DataSourceToIndexFieldMapping> getFieldMappings() {\n return fieldMappings;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public final GF2nField getField()\n {\n return mField;\n }",
"public String getFieldName() { return databaseFieldName; }",
"public String toLocalPath() {\n\n String parentPath = parent.toLocalPath();\n return StringUtils.isBlank(parentPath)\n ? element.getElement()\n : new StringBuilder()\n .append(parentPath)\n .append('.')\n .append(element.getElement())\n .toString();\n }",
"java.lang.String getField1335();",
"public String path() {\n return this.path;\n }",
"public String path() {\n return this.path;\n }",
"public Path getPath(){\n return this.path;\n }",
"public String getPath() { \n\t\treturn getPathElement().getValue();\n\t}",
"String getJavaFieldName();",
"public String getPathName()\n {\n return getString(\"PathName\");\n }",
"@JsonValue\n\tpublic final String fieldId() {\n\t \treturn this.name().replace(\"_\", \".\");\n\t}",
"public T caseFieldPath(FieldPath object)\n {\n return null;\n }",
"public static List<String> getFieldPaths(Field field, boolean lookingInner) {\n List<String> fieldPaths = new ArrayList<>();\n if (null != field) {\n String fieldPath = field.getName();\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (lookingInner && validate(innerClass)) {\n List<String> innerFieldPaths = getFieldPaths(innerClass, true);\n if (!CollectionUtils.isEmpty(innerFieldPaths)) {\n String finalFieldPath = fieldPath + Constants.DOT;\n fieldPaths.addAll(innerFieldPaths.stream().map(finalFieldPath::concat).collect(Collectors.toList()));\n }\n } else {\n fieldPaths.add(fieldPath);\n }\n }\n return fieldPaths;\n }",
"public String sourceField() {\n return this.sourceField;\n }",
"String getPath() {\n return path;\n }",
"public String getMappingDirectory() {\n\t\treturn props.getProperty(ARGUMENT_MAPPING_DIRECTORY);\n\t}",
"@Override\n\tpublic String getFieldName()\n\t{\n\t\treturn fieldName;\n\t}",
"java.lang.String getField1016();",
"java.lang.String getField1338();",
"public java.lang.String getFieldName() {\n return fieldName;\n }",
"public CustomPath getPath() {\n\t\treturn path;\n\t}"
] | [
"0.7946955",
"0.59790397",
"0.59113795",
"0.5860806",
"0.5853589",
"0.58013743",
"0.57020134",
"0.562456",
"0.545575",
"0.54503596",
"0.5404855",
"0.53767794",
"0.5365708",
"0.53208745",
"0.5295064",
"0.52880293",
"0.52870417",
"0.52653784",
"0.5249133",
"0.5243655",
"0.5235112",
"0.52201575",
"0.5217671",
"0.52060467",
"0.52054316",
"0.5204668",
"0.5190401",
"0.5183132",
"0.516775",
"0.5146095",
"0.5114505",
"0.5112276",
"0.51056004",
"0.50810635",
"0.50559247",
"0.5051425",
"0.5039704",
"0.50379276",
"0.50288963",
"0.5026634",
"0.5016522",
"0.4995351",
"0.49893436",
"0.4982993",
"0.49822482",
"0.49807882",
"0.49732485",
"0.49662572",
"0.49639767",
"0.49588448",
"0.4950611",
"0.4945993",
"0.4941267",
"0.49395502",
"0.49393722",
"0.49381083",
"0.49281088",
"0.49281088",
"0.49281088",
"0.49275824",
"0.4924611",
"0.4921182",
"0.49202424",
"0.49139982",
"0.4907943",
"0.49070767",
"0.4906798",
"0.4906798",
"0.4906798",
"0.4906798",
"0.4906798",
"0.4906798",
"0.4906798",
"0.4906798",
"0.4906798",
"0.4906798",
"0.4906798",
"0.4906798",
"0.4906798",
"0.49063018",
"0.4901551",
"0.49004748",
"0.49002475",
"0.48972845",
"0.48972845",
"0.48971853",
"0.489198",
"0.48909894",
"0.48882887",
"0.48872328",
"0.4887102",
"0.48861372",
"0.48830676",
"0.48781076",
"0.48749465",
"0.4872489",
"0.48664993",
"0.4864934",
"0.48644733",
"0.48629"
] | 0.69589436 | 1 |
Get mapping entity path by Data Transfer Object type. Don't looking inner object. | public static List<String> getEntityMappingFieldPaths(Class<?> dtoType) {
return getEntityMappingFieldPaths(dtoType, false, true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getEntityMappingFieldPath(Class<?> dtoType, String fieldPath) {\n if (null != dtoType && !StringUtils.isEmpty(fieldPath)) {\n String[] paths = fieldPath.split(Constants.DOT_REGEX);\n Field field = ObjectUtils.getField(dtoType, paths[0], true);\n String entityFieldName = getEntityMappingFieldPath(field);\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (paths.length > 1 && validate(innerClass)) {\n String nextPath = fieldPath.substring(fieldPath.indexOf(Constants.DOT) + 1);\n entityFieldName = entityFieldName + Constants.DOT + getEntityMappingFieldPath(innerClass, nextPath);\n }\n return entityFieldName;\n }\n return null;\n }",
"public static String getFieldMappingEntityKey(Class<?> dtoType) {\n if (null != dtoType) {\n List<String> keys = EntityUtils.getPrimaryKey(getEntityType(dtoType));\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n String mappingField = getEntityMappingFieldPath(field);\n if (keys.contains(mappingField)) {\n return mappingField;\n }\n }\n }\n return null;\n }",
"public static List<String> getEntityMappingFieldPaths(Class<?> dtoType, boolean lookingInner, boolean includeCollection) {\n List<String> fieldPaths = new ArrayList<>();\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n fieldPaths.addAll(getEntityMappingFieldPaths(field, lookingInner, includeCollection));\n }\n return fieldPaths.stream().distinct().collect(Collectors.toList());\n }",
"public static String getEntityMappingFieldPath(Field field) {\n List<String> fieldPaths = getEntityMappingFieldPaths(field, false, true);\n if (fieldPaths.size() > 0) {\n return fieldPaths.get(0);\n }\n return null;\n }",
"public static List<String> getEntityMappingFieldPathsCollection(Class<?> dtoType) {\n return getEntityMappingFieldPathsCollection(dtoType, false);\n }",
"public static List<String> getEntityMappingFieldPathsCollection(Class<?> dtoType, boolean lookingInner) {\n List<String> fieldPaths = new ArrayList<>();\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n if (validate(MappingUtils.getFieldType(field)) && ObjectUtils.fieldIsCollection(field)) {\n fieldPaths.addAll(getEntityMappingFieldPaths(field, lookingInner, true));\n }\n }\n return fieldPaths;\n }",
"List<JPAPath> getKeyPath() throws ODataJPAModelException;",
"@Override\n\tpublic ESPath getPath(CharSequence dataspaceIsIgnored, Class type, CharSequence id, Object status) {\n\t\tif (type == PersonLite.class)\n\t\t\ttype = Person.class;\n\t\tString stype = type == NGO.class ? \"charity\" : type.getSimpleName().toLowerCase();\n\t\tString index = stype;\n\t\tKStatus ks = (KStatus) status;\n\t\tif (ks == null)\n\t\t\tks = KStatus.PUBLISHED;\n\t\tswitch (ks) {\n\t\tcase PUBLISHED:\n\t\tcase ARCHIVED: // lets keep archived in the published index.\n\t\tcase PUB_OR_ARC: // ...which means PUB_OR_ARC = PUB here\n\t\t\tbreak;\n\t\tcase DRAFT:\n\t\tcase PENDING:\n\t\tcase REQUEST_PUBLISH:\n\t\tcase MODIFIED:\n\t\t\tindex += \".draft\";\n\t\t\tbreak;\n\t\tcase PUB_OR_DRAFT:\n\t\tcase ALL_BAR_TRASH:\n\t\t\tString i1 = index;\n\t\t\tString i2 = index + \".draft\";\n\t\t\tESPath esp = new ESPath(new String[] { i1, i2 }, stype, id);\n\t\t\treturn esp;\n\t\tcase TRASH:\n\t\t\tindex += \".trash\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(type + \" \" + status);\n\t\t}\n\t\treturn new ESPath(index, stype, id);\n\t}",
"public String entityType();",
"private String constructPath(MetadataEntity metadataEntity) {\n StringBuilder builder = new StringBuilder();\n metadataEntity.iterator().forEachRemaining(keyValue -> {\n if (ENTITY_TYPE_TO_API_PART.containsKey(keyValue.getKey())) {\n builder.append(ENTITY_TYPE_TO_API_PART.get(keyValue.getKey()));\n } else {\n builder.append(keyValue.getKey());\n }\n builder.append(\"/\");\n builder.append(keyValue.getValue());\n builder.append(\"/\");\n });\n // remove the last /\n builder.replace(builder.length() - 1, builder.length(), \"\");\n return builder.toString();\n }",
"public static List<String> getFieldPaths(Class<?> dtoType, boolean lookingInner) {\n List<String> fieldPaths = new ArrayList<>();\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n fieldPaths.addAll(getFieldPaths(field, lookingInner));\n }\n return fieldPaths;\n }",
"public static List<String> getEntityMappingFieldPathsPrimary(Class<?> dtoType, boolean includeCollection) {\n // Get primary key of Entity mapping with DTO\n List<String> entityKeyFields = EntityUtils.getPrimaryKey(getEntityType(dtoType));\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n // For each field of DTO, if field is another DTO then get also.\n for (Field field : fields) {\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType) && (includeCollection || !ObjectUtils.fieldIsCollection(field))) {\n String fieldPath = getEntityMappingFieldPath(field);\n fieldPath = null != fieldPath ? fieldPath + Constants.DOT : Constants.EMPTY_STRING;\n List<String> innerKeyFieldPaths = getEntityMappingFieldPathsPrimary(fieldType, includeCollection)\n .stream().map(fieldPath::concat).collect(Collectors.toList());\n entityKeyFields.addAll(innerKeyFieldPaths);\n }\n }\n return entityKeyFields;\n }",
"public ObjectNode resolvePaths();",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tpublic static <T> Path<Object> getPathFromField(Root<T> root, String field) {\n\t\tString[] fieldname = field.split(\"/\");\n\t\tPath<Object> path = null;\n\t\tfor (int idx = 0; idx < fieldname.length; idx++) {\n\n\t\t\tString attributeName = fieldname[idx];\n\n\t\t\tif (path != null) {\n\t\t\t\tpath = path.get(attributeName);\n\t\t\t} else {\n\t\t\t\tpath = root.get(attributeName);\n\t\t\t}\n\n\t\t\tif ((fieldname.length - 1) > idx) {\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Set.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tJoin<T, ?> join = opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tpath = join.get(fieldname[++idx]);\n\n\t\t\t\t}\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Map.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tMapJoin join = (MapJoin) opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tString f = fieldname[++idx];\n\t\t\t\t\tif (f.equals(\"key\"))\n\t\t\t\t\t\tpath = join.key();\n\t\t\t\t\telse if (f.equals(\"value\"))\n\t\t\t\t\t\tpath = join.value();\n\t\t\t\t\telse\n\t\t\t\t\t\tthrow new FormatExceptionException(\"Only key or value you can specify in a map filter, got: \" + f);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn path;\n\t}",
"public T caseFieldPath(FieldPath object)\n {\n return null;\n }",
"Type getForPersistentMapping_Type() {\n return type;\n }",
"public static Path getPathForObject(Object obj) {\r\n ReportsDirectory constant = fromObject(obj);\r\n return getTargetPath().resolve(constant.folder);\r\n }",
"@Override\r\n public String getDebugPathInfo(String entityName) {\n return null;\r\n }",
"public String getEntityType() {\n return this.entityType;\n }",
"public Object folderPath() {\n return this.innerTypeProperties() == null ? null : this.innerTypeProperties().folderPath();\n }",
"PiEntityType entityType();",
"public T caseFromClassOrOuterQueryPath(FromClassOrOuterQueryPath object)\n {\n return null;\n }",
"protected abstract EntityPathBase<T> getDslRoot();",
"public static Object convertMapEntityPathAndValueToDTO(String prefix, Map<String, Object> mapData, Class<?> dtoType) {\n if (null != mapData && null != dtoType) {\n validateThrow(dtoType, new ConfigurationInvalidException(dtoType.getName() + \": Data Transfer Object configuration is invalid\"));\n\n Object dto;\n try {\n dto = ObjectUtils.newInstance(dtoType);\n } catch (InvocationTargetException | NoSuchMethodException | InstantiationException | IllegalAccessException e) {\n throw new ConstructorInvalidException(\"Cannot found default constructor for \" + dtoType.getSimpleName(), e);\n }\n\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n try {\n Object fieldValue = convertMapEntityPathAndValueToDTO(prefix, mapData, field);\n ObjectUtils.setValueForField(dto, field.getName(), fieldValue);\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot set value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n }\n return dto;\n }\n return null;\n }",
"EntityType getEntity();",
"private String entityType(){\n Type t = getClass().getGenericSuperclass();\n ParameterizedType pt = (ParameterizedType)t;\n Class<T> type = (Class)pt.getActualTypeArguments()[0];\n return type.getName();\n }",
"@Override\n public String getType() {\n return \"AutoPathing\";\n }",
"public static List<String> getEntityMappingFieldPaths(Field field, boolean lookingInner, boolean includeCollection) {\n List<String> fieldPaths = new ArrayList<>();\n if (null != field) {\n String fieldPath = field.getName();\n MappingField mappingField = ObjectUtils.getAnnotation(field, MappingField.class);\n if (null != mappingField && !StringUtils.isEmpty(mappingField.entityField())) {\n fieldPath = mappingField.entityField();\n }\n\n Class<?> innerClass = MappingUtils.getFieldType(field);\n boolean isCollection = ObjectUtils.fieldIsCollection(field);\n // Case 1: Field is normal field >> get one entity mapping field has been configuration in MappingField annotation\n // Case 2: Field is another DTO field, lookingInner = true, includeCollection = true >> looking all field of DTO field\n // Case 3: Field is another DTO field, lookingInner = true, includeCollection = false >> only non Collection field will be looking to get mapping fields\n if (lookingInner && validate(innerClass) && (includeCollection || !isCollection)) {\n List<String> innerFieldPaths = getEntityMappingFieldPaths(innerClass, true, true);\n if (!CollectionUtils.isEmpty(innerFieldPaths)) {\n String finalFieldPath = fieldPath.concat(Constants.DOT);\n fieldPaths.addAll(innerFieldPaths.stream().map(finalFieldPath::concat).collect(Collectors.toList()));\n }\n } else if (includeCollection || !isCollection) {\n fieldPaths.add(fieldPath);\n }\n }\n return fieldPaths.stream().distinct().collect(Collectors.toList());\n }",
"public EntityType getCreateEntity(DtoType dto) throws ClassNotFoundException, InstantiationException, IllegalAccessException;",
"public abstract String getObjectType();",
"public static String getFromModelMappingFromType(Type type) {\n switch (type.getTypeName()) {\n case CLASS_STRING:\n return STRING_FROM_MODEL;\n case CLASS_INTEGER:\n return INT_FROM_MODEL;\n case CLASS_DOUBLE:\n return DOUBLE_FROM_MODEL;\n case CLASS_LONG:\n return LONG_FROM_MODEL;\n case CLASS_BYTE:\n return BYTE_FROM_MODEL;\n case CLASS_BOOLEAN:\n return BOOL_FROM_MODEL;\n case CLASS_FLOAT:\n return FLOAT_FROM_MODEL;\n }\n String className = ((Class) type).getSimpleName();\n return className + MAPPER + DOT + FROM_MODEL + className;\n }",
"@Override\r\n public List<EntityPath> getAllEntityPaths(boolean recursive) {\n return null;\r\n }",
"public JPAEntityType getEntityType();",
"public String getMappingFilePath();",
"public static Object convertMapEntityPathAndValueToDTO(String prefix, Map<String, Object> mapData, Field field) {\n if (null != mapData && null != field) {\n String mappingField = getEntityMappingFieldPath(field);\n if (!StringUtils.isEmpty(prefix)) {\n prefix += Constants.DOT;\n }\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType)) {\n if (!ObjectUtils.fieldIsCollection(field)) {\n return convertMapEntityPathAndValueToDTO(prefix + mappingField, mapData, fieldType);\n } else {\n int length = countLengthOfArray(prefix + mappingField, mapData);\n if (length > 0) {\n try {\n @SuppressWarnings(\"unchecked\")\n Collection<Object> collection = ObjectUtils.newInstanceCollection(field.getType());\n for (int i = 0; i < length; i++) {\n Object innerEntity = convertMapEntityPathAndValueToDTO(prefix + mappingField + \"[\" + i + \"]\", mapData, fieldType);\n if (null != innerEntity) {\n collection.add(innerEntity);\n }\n }\n return collection;\n } catch (NoSuchMethodException e) {\n throw new ConstructorInvalidException(\"Cannot new collection instance for field \" + field.getName(), e);\n }\n }\n }\n } else {\n Class<?> fieldConverter = getFieldConverterType(field);\n return convertField(fieldConverter, mapData.get(prefix + mappingField));\n }\n }\n return null;\n }",
"CtPath getPath();",
"public String getIdPath() {\n\t\tif (null != this.idPath) {\n\t\t\treturn this.idPath;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"idPath\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public EntityType getEntityType() {\n return null;\n }",
"public static String getXpathString(By byObj) throws IllegalArgumentException, IllegalAccessException {\n\t\tObjectMap objm = new ObjectMap();\n\t\tField[]x=objm.getClass().getDeclaredFields();\n\t\tint n = objm.getClass().getDeclaredFields().length;\n\t\tString t=\"\";\n\t\tString s=\"\";\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tif (x[i].get(byObj).equals(byObj)) {\n\t\t\t\tt=x[i].get(byObj).toString();\n\t\t\t\ts =t.substring(10);\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t}",
"String getKey(Object entity);",
"public EntityObject getEntityObject(String language,String type) {\n\t\tEntityObject r = null;\n\t\tfor (EntityObject eo: entities) {\n\t\t\tif (eo.getLanguage().equals(language) && eo.getType().equals(type)) {\n\t\t\t\tr = eo;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn r;\n\t}",
"public List<Map<String, Object>> getAuktionPath(int objectId, int templateId);",
"IPath getPath();",
"@SuppressWarnings(\"unchecked\")\n public Map<String, String> getMapContextPath() {\n FacesContext facesContext = FacesContext.getCurrentInstance();\n ExternalContext extenalContext = facesContext.getExternalContext();\n HttpServletRequest request = (HttpServletRequest) extenalContext.getRequest();\n return (Map<String, String>) request.getSession().getAttribute(\"MAP_CONTEXT_PATH\");\n //xxx_temp end\n }",
"public T casePathLiteral(PathLiteral object)\n {\n return null;\n }",
"Entity getSuperType();",
"private String getPath(PSItemDefSummary itemDefSummary) throws PSExtensionProcessingException\n {\n Map<IPSGuid, String> itemPaths = new HashMap<>();\n String path = \"\";\n IPSGuid guid = null;\n try\n {\n\n guid = itemDefSummary.getGUID();\n IPSUiDesignWs ui = PSUiWsLocator.getUiDesignWebservice();\n path = ui.objectIdToPath(guid);\n // strip off content type name and prefix\n if (path != null && path.startsWith(CONTENTTYPES_PATH_PREFIX))\n {\n int nodeNamePosition = path.lastIndexOf(\"/\");\n path = path.substring(CONTENTTYPES_PATH_PREFIX.length(), nodeNamePosition);\n }\n else if (path == null || !path.equals(\"Navigation\"))\n {\n path = \"\";\n }\n\n return path;\n\n }\n catch (PSErrorsException e)\n {\n throw new PSExtensionProcessingException(\"Failed to obtain node path for content items \", e);\n }\n\n }",
"public static String getToModelMappingFromType(Type type) {\n switch (type.getTypeName()) {\n case CLASS_STRING:\n return STRING_TO_MODEL;\n case CLASS_INTEGER:\n return INT_TO_MODEL;\n case CLASS_DOUBLE:\n return DOUBLE_TO_MODEL;\n case CLASS_LONG:\n return LONG_TO_MODEL;\n case CLASS_BYTE:\n return BYTE_TO_MODEL;\n case CLASS_BOOLEAN:\n return BOOL_TO_MODEL;\n case CLASS_FLOAT:\n return FLOAT_TO_MODEL;\n }\n String className = ((Class) type).getSimpleName();\n return className + MAPPER + DOT + TO_MODEL + className;\n }",
"protected static String getVariablePath(String rootKey, String entityKey, String key) {\n int separatorIndex = key.indexOf(separator);\n String first = separatorIndex != -1 ? key.substring(0, separatorIndex) : key;\n String object = rootKey;\n if (first.equals(entityref)) {\n object = entityKey;\n key = key.substring(separatorIndex + 1);\n } else if (first.equals(registrationref)) {\n object = registrationref;\n key = key.substring(separatorIndex + 1);\n } else if (first.equals(effectref)) {\n object = effectref;\n key = key.substring(separatorIndex + 1);\n }\n object += \".\" + key;\n return object;\n }",
"public String getObjectTypeId();",
"public EntityType getType ( ) {\n\t\treturn extract ( handle -> handle.getType ( ) );\n\t}",
"private static <E> Path<?> getPropertyPath(Path<E> root, String propertyPath) {\n\t\tString[] pathItems = StringUtils.split(propertyPath, \".\");\n\n\t\tPath<?> path = root.get(pathItems[0]);\n\t\tfor (int i = 1; i < pathItems.length; i++) {\n\t\t\tpath = path.get(pathItems[i]);\n\t\t}\n\t\treturn path;\n\t}",
"private List<Entity> processEntities(List<Mapping> mappings, Map record) throws Exception{\n\n\t\tList<Entity> builtEnts = new ArrayList<Entity>();\n\t\t\n\t\tList<Entity> entities = buildEntities();\n\t\t\n\t\tboolean isOmitted = isOmitted(record);\n\t\t\n\t\t/*\n\t\tfor(String omkeyfull: OMISSIONS_MAP.keySet()) {\n\t\t\t\n\t\t\tString[] omkeys = omkeyfull.split(\":\");\n\t\t\t\n\t\t\tisOmitted = iterateOmkeys(Arrays.asList(omkeys), record);\n\t\t\t\n\t\t}\n*/\t\t\n\t\t\n\t\tif(!isOmitted){\n\t\t\t\n\t\t\tfor(Mapping mapping: mappings){\n\t\t\t\tList<Object> relationalValue = new ArrayList<Object>();\n\n\t\t\t\tif(!IS_DIR) {\n\t\t\t\t\t\n\t\t\t\t\tString[] array = new String[mapping.getKey().split(\":\").length - 1];\n\t\t\t\t\tarray[0] = mapping.getKey().split(\":\")[0] + \":\" + RELATIONAL_KEY;\n\t\t\t\t\trelationalValue = findValueByKey(record,array);\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tString[] array = new String[mapping.getKey().split(\":\").length - 1];\n\t\t\t\t\tarray[0] = mapping.getKey().split(\":\")[0] + \":\" + RELATIONAL_KEY;\n\t\t\t\t\trelationalValue = findValueByKey(record,array);\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tDataType dt = DataType.initDataType(StringUtils.capitalize(mapping.getDataType()));\n\t\t\t\t\n\t\t\t\tif(!mapping.getDataType().equalsIgnoreCase(\"OMIT\")){\n\t\t\t\t\tList<Object> values = new ArrayList<Object>();\n\t\t\t\t\t\n\t\t\t\t\tif(!IS_DIR) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tString[] array = new String[mapping.getKey().split(\":\").length - 1];\n\t\t\t\t\t\tarray[0] = mapping.getKey();\n\t\t\t\t\t\tvalues = findValueByKey2(record,new ArrayList(Arrays.asList(array)));\n\t\t\t\t\t\t//values = findValueByKey2(record, new ArrayList(Arrays.asList(mapping.getKey().split(\":\"))));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tString[] array = new String[mapping.getKey().split(\":\").length - 1];\n\t\t\t\t\t\tarray[0] = mapping.getKey();\n\t\t\t\t\t\tvalues = findValueByKey2(record,new ArrayList(Arrays.asList(array)));\n\t\t\t\t\t}\n\t\t\t\t\t\n\n\t\t\t\t\tMap<String,String> options = mapping.buildOptions(mapping);\n\t\t\t\t\t\n\t\t\t\t\tif(!options.isEmpty()) {\n\t\t\t\t\t\tif(options.containsKey(\"TYPE\")) {\n\t\t\t\t\t\t\tString type = options.get(\"TYPE\");\n\t\t\t\t\t\t\tif(type.equalsIgnoreCase(\"datediffin\")) {\n\n\t\t\t\t\t\t\t\tString dateDiffFrom = options.containsKey(\"DIFFFROM\") ? options.get(\"DIFFFROM\").replaceAll(\"-\",\":\"): null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString mask = options.containsKey(\"MASK\") ? options.get(\"MASK\"): null;\n\n\t\t\t\t\t\t\t\tString diffIn = options.containsKey(\"DIFFIN\") ? options.get(\"DIFFIN\"): null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLocalDate startDateInclusive = null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLocalDate endDateExclusive = null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(dateDiffFrom.equalsIgnoreCase(\"sysdate\")) {\n\t\t\t\t\t\t\t\t\tstartDateInclusive = LocalDate.now();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tObject fromO = \n\t\t\t\t\t\t\t\t\t\t\tfindValueByKey(new LinkedHashMap(record), dateDiffFrom.split(\":\")).get(0);\n\n\t\t\t\t\t\t\t\t\tif(mask != null) {\n\t\t\t\t\t\t\t\t\t\tif(fromO != null) {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tString from = fromO.toString();\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tstartDateInclusive = LocalDate.parse(from, DateTimeFormatter.ofPattern(mask) );\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} else throw new Exception(\"No mask given\");\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor(int x = 0; x < values.size(); x++) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tString value = values.get(0).toString();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tendDateExclusive = value.isEmpty() ? null: LocalDate.parse(value, DateTimeFormatter.ofPattern(mask) );\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(endDateExclusive != null) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tPeriod period = Period.between(endDateExclusive, startDateInclusive );\n\n\t\t\t\t\t\t\t\t\t\tvalues.remove(x);\n\t\t\t\t\t\t\t\t\t\tif(diffIn.equalsIgnoreCase(\"years\")) {\n\t\t\t\t\t\t\t\t\t\t\tvalues.add(x, period.getYears());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if(type.equalsIgnoreCase(\"datedifffrom\")) {\n\t\t\t\t\t\t\t\tString dateDiffFrom = options.containsKey(\"DIFFFROM\") ? options.get(\"DIFFFROM\").replaceAll(\"-\",\":\"): null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString mask = options.containsKey(\"MASK\") ? options.get(\"MASK\"): null;\n\n\t\t\t\t\t\t\t\tString diffIn = options.containsKey(\"DIFFIN\") ? options.get(\"DIFFIN\"): null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLocalDate startDateInclusive = null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLocalDate endDateExclusive = null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(dateDiffFrom.equalsIgnoreCase(\"sysdate\")) {\n\t\t\t\t\t\t\t\t\tstartDateInclusive = LocalDate.now();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tObject fromO = \n\t\t\t\t\t\t\t\t\t\t\tfindValueByKey(new LinkedHashMap(record), dateDiffFrom.split(\":\")).get(0);\n\n\t\t\t\t\t\t\t\t\tif(mask != null) {\n\t\t\t\t\t\t\t\t\t\tif(fromO != null) {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tString from = fromO.toString();\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tstartDateInclusive = LocalDate.parse(from, DateTimeFormatter.ofPattern(mask) );\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} else throw new Exception(\"No mask given\");\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor(int x = 0; x < values.size(); x++) {\n\t\t\t\t\t\t\t\t\tif(values.get(0) != null) {\n\t\t\t\t\t\t\t\t\t\tString value = values.get(0).toString();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tendDateExclusive = value.isEmpty() ? null: LocalDate.parse(value, DateTimeFormatter.ofPattern(mask) );\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif(endDateExclusive != null) {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tPeriod period = Period.between(startDateInclusive, endDateExclusive);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tvalues.remove(x);\n\t\t\t\t\t\t\t\t\t\t\tif(diffIn.equalsIgnoreCase(\"years\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tvalues.add(x, period.getYears());\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tString mappingK = mapping.getKey().split(\":\")[0];\n\t\t\t\t\tString recordK = record.keySet().iterator().next().toString().split(\":\")[0];\n\t\t\t\t\tif(mappingK.equals(recordK)) {\n\t\t\t\t\t\tif(values == null) throw new Exception(\"Following Mapping does not exist in the datafile: \\n\"\n\t\t\t\t\t\t\t\t+ mapping.toCSV() + \"\\n\" +\n\t\t\t\t\t\t\t\t\" be sure that the column and file exist.\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(relationalValue == null) throw new Exception(\"Following Mapping does not exist in the datafile: \\n\"\n\t\t\t\t\t\t\t\t+ mapping.toCSV() + \"\\n\" +\n\t\t\t\t\t\t\t\t\" be sure that the column and file exist.\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tSet<Entity> newEnts = new HashSet<Entity>();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(values.isEmpty()) {\n\t\t\t\t\t\t\tif(INCLUDE_EMPTY_VALUES == true) {\n\t\t\t\t\t\t\t\tnewEnts = dt.generateTables(mapping, entities, values, relationalValue);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnewEnts = dt.generateTables(mapping, entities, values, relationalValue);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(newEnts != null && newEnts.size() > 0){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tbuiltEnts.addAll(newEnts);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t}\n\n\t\t}\n\t\treturn builtEnts;\t\t\n\t}",
"PathSegments getPath();",
"public Object getTypeValueForInternalValue(String value) {\n\t\tObject r = null;\n\t\tString prefix = value.split(getValueConcatenator())[0] + getValueConcatenator();\n\t\tEntityObject eo = getEntityObject(prefix);\n\t\tif (eo!=null) {\n\t\t\tr = eo.getTypeValueForInternalValue(value);\n\t\t}\n\t\treturn r;\n\t}",
"<T extends ModelEntity> T findEntityType( Class<T> entityClass, String name );",
"Type getForPersistentMapping_BaseType() {\n return baseType;\n }",
"public static EntityType getEntityType(String name) {\n EntityType type = null;\n name = name.toLowerCase(Locale.ROOT).trim();\n if (name.contains(NAMESPACE)) {\n name = (name.split(\":\"))[1];\n }\n\n if (ConfigHandler.entities.get(name) != null) {\n type = EntityType.valueOf(name.toUpperCase(Locale.ROOT));\n }\n\n return type;\n }",
"public List<?> getTreePath(Object object)\n {\n LinkedList<Object> result = new LinkedList<Object>();\n result.addFirst(object);\n while ((object = getParent(object)) != null)\n {\n result.addFirst(object);\n }\n \n return result;\n }",
"Map<String, PathItem> getPathItems();",
"TypeAssociation getConcerneTraitementObjectifTraitementObjectif();",
"public String getRelatedObjectType() {\n return relatedObjectType;\n }",
"@Schema(description = \"When sub-classing, this defines the sub-class entity name\")\n\n\tpublic String getAtType() {\n\t\treturn type;\n\t}",
"public static EntityType getEntityType(int id) {\n EntityType entitytype = null;\n if (ConfigHandler.entitiesReversed.get(id) != null) {\n String name = ConfigHandler.entitiesReversed.get(id);\n if (name.contains(NAMESPACE)) {\n name = name.split(\":\")[1];\n }\n entitytype = EntityType.valueOf(name.toUpperCase(Locale.ROOT));\n }\n return entitytype;\n }",
"public K accessParentKey(T obj);",
"public Entity getDatasetEntity()\n{\n // Get parent and parent entity (just return null, if null)\n RMShape parent = getParent(); if(parent==null) return null;\n Entity parentEntity = parent.getDatasetEntity(); if(parentEntity==null) return null;\n \n // Get Property/RelationEntity for Shape.DatasetKey\n Property prop = getDatasetKey()!=null? parentEntity.getKeyPathProperty(getDatasetKey()) : null;\n Entity entity = prop!=null && prop.isRelation()? prop.getRelationEntity() : null;\n return entity!=null? entity : parentEntity;\n}",
"@Override\n\tpublic Object getObjectNameByPath(String path) throws Exception {\n\t\treturn null;\n\t}",
"public String getPathName();",
"java.lang.String getXpath();",
"public String pathOfItem(Pathable item) {\n return null; // todo: implement this method\n }",
"abstract public List<S> getPath();",
"public static Class<? extends Audit> getEntityType(Class<?> dtoType) {\n if (null != dtoType && ObjectUtils.hasAnnotation(dtoType, MappingClass.class)) {\n return ObjectUtils.getAnnotation(dtoType, MappingClass.class).value();\n }\n return null;\n }",
"protected String getTypedUrlPrefix(String urlPrefix, String idType) {\r\n if (idType.equals(Types.PROJECT.getTypeName()) || idType.equals(Types.PROJECT.name())) {\r\n return urlPrefix + urlProjectTypePrefix;\r\n } else if (idType.equals(Types.PERSON.getTypeName()) || idType.equals(Types.PERSON.name())) {\r\n return urlPrefix + urlPersonTypePrefix;\r\n } else if (idType.equals(Types.DATA_SET.getTypeName()) || idType.equals(Types.DATA_SET.name())) {\r\n return urlPrefix + urlDataSetTypePrefix;\r\n } else if (idType.equals(Types.DATA_FILE.getTypeName()) || idType.equals(Types.DATA_FILE.name())) {\r\n return urlPrefix + urlDataFileTypePrefix;\r\n } else if (idType.equals(Types.COLLECTION.getTypeName()) || idType.equals(Types.COLLECTION.name())){\r\n return urlPrefix + urlCollectionTypePrefix;\r\n } else if (idType.equals(Types.METADATA_FILE.getTypeName()) || idType.equals(Types.METADATA_FILE.name())){\r\n return urlPrefix + urlMetadataFileTypePrefix;\r\n } else {\r\n return super.getTypedUrlPrefix(urlPrefix, idType);\r\n }\r\n }",
"@Override\n\tpublic ArrayList<Edge<Object>> getPath(String startNode, String endNode) {\n\t\treturn null;\n\t}",
"public abstract Class<BE> getBukkitEntityType();",
"public static boolean object_path(PsiBuilder builder_, int level_) {\n if (!recursion_guard_(builder_, level_, \"object_path\")) return false;\n boolean result_ = false;\n boolean pinned_ = false;\n Marker marker_ = enter_section_(builder_, level_, _NONE_, \"<object path>\");\n result_ = object_path_0(builder_, level_ + 1);\n result_ = result_ && object_path_1(builder_, level_ + 1);\n pinned_ = result_; // pin = 2\n result_ = result_ && consumeToken(builder_, OBJECT_PATH_ENTITY);\n exit_section_(builder_, level_, marker_, OBJECT_PATH, result_, pinned_, null);\n return result_ || pinned_;\n }",
"public DtoType getDto(EntityType entity, Class<DtoType> myClass) throws ClassNotFoundException, InstantiationException, IllegalAccessException;",
"Path getFolder(Repository repository, @Nullable Path ownerPath, Object object);",
"Class<?> getEntityClass();",
"public abstract String getPath();",
"public abstract String getPath();",
"Report.LocationOuterClass.Location.FromType getFrom();",
"@XmlTransient\r\n @JsonIgnore\r\n public URI getType() {\r\n return this.type == null ? null : this.type.getType();\r\n }",
"public Path getPath();",
"@Override\n\t\tpublic String getPathInfo() {\n\t\t\treturn null;\n\t\t}",
"public String getPath()\r\n/* 26: */ {\r\n/* 27:57 */ return this.path;\r\n/* 28: */ }",
"@Override\n public EntitiesResponse getNavProperty(String entitySetName, OEntityKey entityKey, String navProp, QueryInfo queryInfo) {\n ExtendedPropertyModel.setQueryInfo(queryInfo);\n try {\n final List<OEntity> entities = Lists.newArrayList();\n \n // work-around for a OData4J bug whereby URLs like this: http://win7-32:8080/ovodata/Ovodata.svc/&query=Sources('674dd7f3-6a1f-4f5a-a88f-86711b725921')/EpochGroups\n // product calls like this: getNavProperty(set:&query=Sources, key:('674dd7f3-6a1f-4f5a-a88f-86711b725921'), nav:EpochGroups, \n // query:{{inlineCnt:null, top:null, skip:null, filter:null, orderBy:null, skipToken:null, customOptions:{}, expand:[], select:[]}}), model:null\n if (entitySetName != null && entitySetName.startsWith(\"&query=\")) {\n entitySetName = entitySetName.substring(\"&query=\".length());\n }\n \n // find the property-model associated with this entity set name\n ExtendedPropertyModel<?> model = ExtendedPropertyModel.getPropertyModel(entitySetName);\n \n if (_log.isInfoEnabled()) {\n _log.info(\"getNavProperty(set:\" + entitySetName + \", key:\" + entityKey + \", nav:\" + navProp \n + \", query:{\" + OData4JServerUtils.toString(queryInfo) + \"}), model:\" + model);\n }\n \n if (model == null) {\n _log.warn(\"Unable to find model for entitySetName '\" + entitySetName + \"'\");\n throw new NotFoundException(entitySetName + \" type is not found\");\n }\n \n // find root entity \n Object entity = model.getEntityByKey(entityKey);\n if (entity == null) {\n if (_log.isInfoEnabled()) {\n _log.info(\"Unable to find entity in \" + model + \" with key \" + entityKey);\n }\n throw new NotFoundException(entitySetName + \"(\" + entityKey + \") was not found\");\n }\n \n // navProp is the NAME of the entity within the element in entitySetName - need to resolve it to a TYPE\n // not ALWAYS a collection, tho, so we also have to check properties (tho it can't be both)\n Class<?> navPropType = model.getCollectionElementType(navProp);\n boolean isCollection = true;\n if (navPropType == null) {\n navPropType = model.getPropertyType(navProp);\n isCollection = false;\n if (navPropType == null) {\n _log.warn(\"Unrecognized collection/property '\" + navProp + \"' within '\" + entitySetName + \"'\");\n throw new NotFoundException(navProp + \" collection not found in '\" + entitySetName + \"'\");\n }\n }\n ExtendedPropertyModel<?> subModel = ExtendedPropertyModel.getPropertyModel(navPropType);\n if (subModel == null) {\n _log.warn(\"Unrecognized type '\" + navPropType + \"' of '\" + navProp + \"' within '\" + entitySetName + \"'\");\n throw new NotFoundException(navProp + \" collection type '\" + navPropType + \"' is not known\");\n }\n\n final EdmEntitySet subEntitySet = getMetadata().getEdmEntitySet(subModel.entityName());\n // iterate over each sub-entity of entity which matches the navProp - they will all be of the same type\n Iterable<?> iterable = isCollection ? model.getCollectionValue(entity, navProp) : CollectionUtils.makeIterable(model.getPropertyValue(entity, navProp));\n Iterator<?> iter = iterable != null ? iterable.iterator() : null;\n if (iter != null) {\n if (queryInfo.skip != null) {\n for (int numToSkip = queryInfo.skip.intValue(); numToSkip > 0 && iter.hasNext(); --numToSkip) {\n iter.next(); // skip\n }\n }\n \n // TODO - this should influence how data is returned\n//TODO List<EntitySimpleProperty> expand = queryInfo.expand; - whether or not to expand out sub-elements or leave them as references\n// BoolCommonExpression filter = queryInfo.filter; - should be used by model\n// List<OrderByExpression> orderBy = queryInfo.orderBy; - should be used by model?\n\n for (int numToReturn = queryInfo.top != null ? queryInfo.top.intValue() : Integer.MAX_VALUE; numToReturn > 0 && iter.hasNext(); --numToReturn) {\n Object o = iter.next();\n /* \n List<OProperty<?>> properties = Lists.newArrayList();\n for (String propName : subModel.getPropertyNames()) {\n Class<?> propType = subModel.getPropertyType(propName);\n EdmSimpleType edmType = EdmSimpleType.forJavaType(propType);\n String propValue = String.valueOf(subModel.getPropertyValue(o, propName));\n // FIXME - seems weird to dumb this down to a string...\n properties.add(OProperties.parse(propName, edmType.getFullyQualifiedTypeName(), propValue));\n }\n \n List<OLink> links = Lists.newArrayList();\n for (String linkName : subModel.getCollectionNames()) {\n // Class<?> linkType = subModel.getCollectionElementType(linkName);\n // Iterable<?> linkValue = subModel.getCollectionValue(o, linkName);\n String relation = \"unknown\"; // FIXME - need values for relation\n String title = linkName;\n String href = \"/\" + linkName; // FIXME absolute or relative to current URL?\n links.add(OLinks.relatedEntities(relation, title, href));\n //FIXME OLinks.relatedEntitiesInline(relation, title, href, relatedEntities); // controlled via queryInfo $inline/$expand\n //FIXME - how to select this one? OLinks.relatedEntity(relation, title, href);\n //FIXME OLinks.relatedEntityInline(relation, title, href, relatedEntity); // controlled via queryInfo $inline/$expand\n }\n */\n if (o != null) {\n entities.add(toOEntity(subEntitySet, o, queryInfo.expand));\n }\n }\n \n } else {\n // FIXME no elments found to iterate the navProp is invalid?\n _log.info(\"no elments found to iterate the navProp is invalid?\");\n }\n \n return Responses.entities(entities, subEntitySet, Integer.valueOf(entities.size()), queryInfo.skipToken);\n } finally {\n // make sure to detach the QueryInfo from the thread when we're done\n ExtendedPropertyModel.setQueryInfo(null);\n }\n }",
"public Map<String, Object> getRelatedKeys() throws ODataJPAProcessorException;",
"@AutoEscape\n\tpublic String getTipoLocacion();",
"PathKeys getPathKeys();",
"@Override\n protected Class<LineEntity> getEntityClass() {\n return null;\n }",
"@Override\n\t@XmlTransient\n\tpublic Path getPath() {\n\t\treturn path;\n\t}",
"public String getEntityTypeName() { return \"org.doxer.app.db.dbflute.exentity.StShhnKnyMs\"; }",
"@Override\r\n public Class<Doc> getEntityType() {\n return Doc.class;\r\n }",
"@XmlElement(name = \"entitytype\")\n public String getEntityType() {\n return entityType;\n }",
"public Object generatePathToRoot(EmitLang emitter, String stem)\n\t{\n\t Object result;\n\t \n\t if ( this.factoredPath != null ) {\n\t result = this.factoredPath;\n \n } else {\n\n // Build the path iteratively.\n result = stem;\n\n for ( PathElement idx: generateAccessPath() ) {\n\t result = emitter.genCallMethod(\n\t result, \n\t \"getNthChild\", \n Integer.toString(idx.index));\n }\n\t }\n\t \n\t return result;\n\t}",
"public EntityType getEntity_type() {\n return this.entity_type;\n }",
"java.lang.String getFkocs();",
"JavaTypeMapping getMapping(Class javaType);",
"private List<Field> getMappedFields(Mapping objectMapping, DataSourceType dataSourceType) {\n List<Field> mappedFields = null;\n if (dataSourceType == DataSourceType.SOURCE) {\n FieldGroup fg = objectMapping.getInputFieldGroup();\n if (fg != null) {\n mappedFields = fg.getField();\n } else {\n mappedFields = objectMapping.getInputField();\n }\n } else {\n mappedFields = objectMapping.getOutputField();\n }\n return mappedFields;\n }"
] | [
"0.6577175",
"0.60187197",
"0.6000384",
"0.575342",
"0.5708525",
"0.5698075",
"0.56870914",
"0.5679898",
"0.55821574",
"0.5462699",
"0.5449908",
"0.53821707",
"0.5354076",
"0.5285725",
"0.52276915",
"0.51443875",
"0.51023453",
"0.509915",
"0.50952685",
"0.50921077",
"0.5080974",
"0.5062126",
"0.5052171",
"0.50191075",
"0.50112504",
"0.5006575",
"0.500558",
"0.4998051",
"0.49964768",
"0.49933004",
"0.4948924",
"0.4930645",
"0.49302918",
"0.49057594",
"0.48826075",
"0.4872202",
"0.48674774",
"0.48433745",
"0.48345023",
"0.4821329",
"0.4820673",
"0.48062328",
"0.47975382",
"0.4775876",
"0.47608668",
"0.4758045",
"0.47577012",
"0.47496232",
"0.4743092",
"0.47233534",
"0.47192773",
"0.47049165",
"0.4698115",
"0.46926236",
"0.46779466",
"0.4673306",
"0.46711722",
"0.46688148",
"0.46561015",
"0.46459213",
"0.464172",
"0.4633582",
"0.4633106",
"0.4630081",
"0.46293324",
"0.46258682",
"0.4624885",
"0.462471",
"0.46223316",
"0.46215266",
"0.46193066",
"0.4618779",
"0.46145725",
"0.46080625",
"0.4606519",
"0.46023667",
"0.460011",
"0.45918334",
"0.45907262",
"0.45902398",
"0.45902398",
"0.4578578",
"0.45777047",
"0.4556612",
"0.455104",
"0.4547449",
"0.45418862",
"0.45324224",
"0.45318958",
"0.45263243",
"0.45245343",
"0.45193183",
"0.45165896",
"0.45140243",
"0.45088673",
"0.44940847",
"0.4492232",
"0.44834924",
"0.4482186",
"0.44770285"
] | 0.6366307 | 1 |
Get mapping entity path by Data Transfer Object type. | public static List<String> getEntityMappingFieldPaths(Class<?> dtoType, boolean lookingInner, boolean includeCollection) {
List<String> fieldPaths = new ArrayList<>();
List<Field> fields = ObjectUtils.getFields(dtoType, true);
for (Field field : fields) {
fieldPaths.addAll(getEntityMappingFieldPaths(field, lookingInner, includeCollection));
}
return fieldPaths.stream().distinct().collect(Collectors.toList());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<String> getEntityMappingFieldPaths(Class<?> dtoType) {\n return getEntityMappingFieldPaths(dtoType, false, true);\n }",
"public static String getEntityMappingFieldPath(Class<?> dtoType, String fieldPath) {\n if (null != dtoType && !StringUtils.isEmpty(fieldPath)) {\n String[] paths = fieldPath.split(Constants.DOT_REGEX);\n Field field = ObjectUtils.getField(dtoType, paths[0], true);\n String entityFieldName = getEntityMappingFieldPath(field);\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (paths.length > 1 && validate(innerClass)) {\n String nextPath = fieldPath.substring(fieldPath.indexOf(Constants.DOT) + 1);\n entityFieldName = entityFieldName + Constants.DOT + getEntityMappingFieldPath(innerClass, nextPath);\n }\n return entityFieldName;\n }\n return null;\n }",
"public static String getFieldMappingEntityKey(Class<?> dtoType) {\n if (null != dtoType) {\n List<String> keys = EntityUtils.getPrimaryKey(getEntityType(dtoType));\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n String mappingField = getEntityMappingFieldPath(field);\n if (keys.contains(mappingField)) {\n return mappingField;\n }\n }\n }\n return null;\n }",
"public static List<String> getEntityMappingFieldPathsCollection(Class<?> dtoType) {\n return getEntityMappingFieldPathsCollection(dtoType, false);\n }",
"public static String getEntityMappingFieldPath(Field field) {\n List<String> fieldPaths = getEntityMappingFieldPaths(field, false, true);\n if (fieldPaths.size() > 0) {\n return fieldPaths.get(0);\n }\n return null;\n }",
"public String entityType();",
"List<JPAPath> getKeyPath() throws ODataJPAModelException;",
"Type getForPersistentMapping_Type() {\n return type;\n }",
"@Override\n\tpublic ESPath getPath(CharSequence dataspaceIsIgnored, Class type, CharSequence id, Object status) {\n\t\tif (type == PersonLite.class)\n\t\t\ttype = Person.class;\n\t\tString stype = type == NGO.class ? \"charity\" : type.getSimpleName().toLowerCase();\n\t\tString index = stype;\n\t\tKStatus ks = (KStatus) status;\n\t\tif (ks == null)\n\t\t\tks = KStatus.PUBLISHED;\n\t\tswitch (ks) {\n\t\tcase PUBLISHED:\n\t\tcase ARCHIVED: // lets keep archived in the published index.\n\t\tcase PUB_OR_ARC: // ...which means PUB_OR_ARC = PUB here\n\t\t\tbreak;\n\t\tcase DRAFT:\n\t\tcase PENDING:\n\t\tcase REQUEST_PUBLISH:\n\t\tcase MODIFIED:\n\t\t\tindex += \".draft\";\n\t\t\tbreak;\n\t\tcase PUB_OR_DRAFT:\n\t\tcase ALL_BAR_TRASH:\n\t\t\tString i1 = index;\n\t\t\tString i2 = index + \".draft\";\n\t\t\tESPath esp = new ESPath(new String[] { i1, i2 }, stype, id);\n\t\t\treturn esp;\n\t\tcase TRASH:\n\t\t\tindex += \".trash\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(type + \" \" + status);\n\t\t}\n\t\treturn new ESPath(index, stype, id);\n\t}",
"public String getEntityType() {\n return this.entityType;\n }",
"private String constructPath(MetadataEntity metadataEntity) {\n StringBuilder builder = new StringBuilder();\n metadataEntity.iterator().forEachRemaining(keyValue -> {\n if (ENTITY_TYPE_TO_API_PART.containsKey(keyValue.getKey())) {\n builder.append(ENTITY_TYPE_TO_API_PART.get(keyValue.getKey()));\n } else {\n builder.append(keyValue.getKey());\n }\n builder.append(\"/\");\n builder.append(keyValue.getValue());\n builder.append(\"/\");\n });\n // remove the last /\n builder.replace(builder.length() - 1, builder.length(), \"\");\n return builder.toString();\n }",
"public JPAEntityType getEntityType();",
"public String getMappingFilePath();",
"public static String getFromModelMappingFromType(Type type) {\n switch (type.getTypeName()) {\n case CLASS_STRING:\n return STRING_FROM_MODEL;\n case CLASS_INTEGER:\n return INT_FROM_MODEL;\n case CLASS_DOUBLE:\n return DOUBLE_FROM_MODEL;\n case CLASS_LONG:\n return LONG_FROM_MODEL;\n case CLASS_BYTE:\n return BYTE_FROM_MODEL;\n case CLASS_BOOLEAN:\n return BOOL_FROM_MODEL;\n case CLASS_FLOAT:\n return FLOAT_FROM_MODEL;\n }\n String className = ((Class) type).getSimpleName();\n return className + MAPPER + DOT + FROM_MODEL + className;\n }",
"PiEntityType entityType();",
"public static List<String> getEntityMappingFieldPathsCollection(Class<?> dtoType, boolean lookingInner) {\n List<String> fieldPaths = new ArrayList<>();\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n if (validate(MappingUtils.getFieldType(field)) && ObjectUtils.fieldIsCollection(field)) {\n fieldPaths.addAll(getEntityMappingFieldPaths(field, lookingInner, true));\n }\n }\n return fieldPaths;\n }",
"public static List<String> getEntityMappingFieldPathsPrimary(Class<?> dtoType, boolean includeCollection) {\n // Get primary key of Entity mapping with DTO\n List<String> entityKeyFields = EntityUtils.getPrimaryKey(getEntityType(dtoType));\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n // For each field of DTO, if field is another DTO then get also.\n for (Field field : fields) {\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType) && (includeCollection || !ObjectUtils.fieldIsCollection(field))) {\n String fieldPath = getEntityMappingFieldPath(field);\n fieldPath = null != fieldPath ? fieldPath + Constants.DOT : Constants.EMPTY_STRING;\n List<String> innerKeyFieldPaths = getEntityMappingFieldPathsPrimary(fieldType, includeCollection)\n .stream().map(fieldPath::concat).collect(Collectors.toList());\n entityKeyFields.addAll(innerKeyFieldPaths);\n }\n }\n return entityKeyFields;\n }",
"public static String getToModelMappingFromType(Type type) {\n switch (type.getTypeName()) {\n case CLASS_STRING:\n return STRING_TO_MODEL;\n case CLASS_INTEGER:\n return INT_TO_MODEL;\n case CLASS_DOUBLE:\n return DOUBLE_TO_MODEL;\n case CLASS_LONG:\n return LONG_TO_MODEL;\n case CLASS_BYTE:\n return BYTE_TO_MODEL;\n case CLASS_BOOLEAN:\n return BOOL_TO_MODEL;\n case CLASS_FLOAT:\n return FLOAT_TO_MODEL;\n }\n String className = ((Class) type).getSimpleName();\n return className + MAPPER + DOT + TO_MODEL + className;\n }",
"public EntityType getCreateEntity(DtoType dto) throws ClassNotFoundException, InstantiationException, IllegalAccessException;",
"private String entityType(){\n Type t = getClass().getGenericSuperclass();\n ParameterizedType pt = (ParameterizedType)t;\n Class<T> type = (Class)pt.getActualTypeArguments()[0];\n return type.getName();\n }",
"EntityType getEntity();",
"public static List<String> getFieldPaths(Class<?> dtoType, boolean lookingInner) {\n List<String> fieldPaths = new ArrayList<>();\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n fieldPaths.addAll(getFieldPaths(field, lookingInner));\n }\n return fieldPaths;\n }",
"@Override\n public String getType() {\n return \"AutoPathing\";\n }",
"public static Object convertMapEntityPathAndValueToDTO(String prefix, Map<String, Object> mapData, Class<?> dtoType) {\n if (null != mapData && null != dtoType) {\n validateThrow(dtoType, new ConfigurationInvalidException(dtoType.getName() + \": Data Transfer Object configuration is invalid\"));\n\n Object dto;\n try {\n dto = ObjectUtils.newInstance(dtoType);\n } catch (InvocationTargetException | NoSuchMethodException | InstantiationException | IllegalAccessException e) {\n throw new ConstructorInvalidException(\"Cannot found default constructor for \" + dtoType.getSimpleName(), e);\n }\n\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n try {\n Object fieldValue = convertMapEntityPathAndValueToDTO(prefix, mapData, field);\n ObjectUtils.setValueForField(dto, field.getName(), fieldValue);\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot set value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n }\n return dto;\n }\n return null;\n }",
"public static Class<? extends Audit> getEntityType(Class<?> dtoType) {\n if (null != dtoType && ObjectUtils.hasAnnotation(dtoType, MappingClass.class)) {\n return ObjectUtils.getAnnotation(dtoType, MappingClass.class).value();\n }\n return null;\n }",
"public abstract String getObjectType();",
"public EntityObject getEntityObject(String language,String type) {\n\t\tEntityObject r = null;\n\t\tfor (EntityObject eo: entities) {\n\t\t\tif (eo.getLanguage().equals(language) && eo.getType().equals(type)) {\n\t\t\t\tr = eo;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn r;\n\t}",
"public String getObjectTypeId();",
"public EntityType getEntityType() {\n return null;\n }",
"public abstract Class<BE> getBukkitEntityType();",
"<T extends ModelEntity> T findEntityType( Class<T> entityClass, String name );",
"CtPath getPath();",
"public static EntityType getEntityType(int id) {\n EntityType entitytype = null;\n if (ConfigHandler.entitiesReversed.get(id) != null) {\n String name = ConfigHandler.entitiesReversed.get(id);\n if (name.contains(NAMESPACE)) {\n name = name.split(\":\")[1];\n }\n entitytype = EntityType.valueOf(name.toUpperCase(Locale.ROOT));\n }\n return entitytype;\n }",
"public EntityType getType ( ) {\n\t\treturn extract ( handle -> handle.getType ( ) );\n\t}",
"protected String getTypedUrlPrefix(String urlPrefix, String idType) {\r\n if (idType.equals(Types.PROJECT.getTypeName()) || idType.equals(Types.PROJECT.name())) {\r\n return urlPrefix + urlProjectTypePrefix;\r\n } else if (idType.equals(Types.PERSON.getTypeName()) || idType.equals(Types.PERSON.name())) {\r\n return urlPrefix + urlPersonTypePrefix;\r\n } else if (idType.equals(Types.DATA_SET.getTypeName()) || idType.equals(Types.DATA_SET.name())) {\r\n return urlPrefix + urlDataSetTypePrefix;\r\n } else if (idType.equals(Types.DATA_FILE.getTypeName()) || idType.equals(Types.DATA_FILE.name())) {\r\n return urlPrefix + urlDataFileTypePrefix;\r\n } else if (idType.equals(Types.COLLECTION.getTypeName()) || idType.equals(Types.COLLECTION.name())){\r\n return urlPrefix + urlCollectionTypePrefix;\r\n } else if (idType.equals(Types.METADATA_FILE.getTypeName()) || idType.equals(Types.METADATA_FILE.name())){\r\n return urlPrefix + urlMetadataFileTypePrefix;\r\n } else {\r\n return super.getTypedUrlPrefix(urlPrefix, idType);\r\n }\r\n }",
"public static EntityType getEntityType(String name) {\n EntityType type = null;\n name = name.toLowerCase(Locale.ROOT).trim();\n if (name.contains(NAMESPACE)) {\n name = (name.split(\":\"))[1];\n }\n\n if (ConfigHandler.entities.get(name) != null) {\n type = EntityType.valueOf(name.toUpperCase(Locale.ROOT));\n }\n\n return type;\n }",
"@Schema(description = \"When sub-classing, this defines the sub-class entity name\")\n\n\tpublic String getAtType() {\n\t\treturn type;\n\t}",
"public String getPath (Class<?> cn) {\n return PATH + cn.getSimpleName().toLowerCase() + FILE_EXTENSION;\n }",
"public Object folderPath() {\n return this.innerTypeProperties() == null ? null : this.innerTypeProperties().folderPath();\n }",
"Type getForPersistentMapping_BaseType() {\n return baseType;\n }",
"public static Path getPathForObject(Object obj) {\r\n ReportsDirectory constant = fromObject(obj);\r\n return getTargetPath().resolve(constant.folder);\r\n }",
"public String getPathName();",
"String getKey(Object entity);",
"public TypeData getTypeData(MigrationType type);",
"public EntityType getEntity_type() {\n return this.entity_type;\n }",
"@SuppressWarnings(\"unchecked\")\n public Map<String, String> getMapContextPath() {\n FacesContext facesContext = FacesContext.getCurrentInstance();\n ExternalContext extenalContext = facesContext.getExternalContext();\n HttpServletRequest request = (HttpServletRequest) extenalContext.getRequest();\n return (Map<String, String>) request.getSession().getAttribute(\"MAP_CONTEXT_PATH\");\n //xxx_temp end\n }",
"public MigratableDatabaseObject getObjectForType(MigrationType type);",
"public String getIdPath() {\n\t\tif (null != this.idPath) {\n\t\t\treturn this.idPath;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"idPath\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\r\n public String getDebugPathInfo(String entityName) {\n return null;\r\n }",
"IPath getPath();",
"public String getEntityType(String entitySetName) {\r\n // TODO need to check whether have another better way\r\n URIBuilder uriBuilder = odataClient.newURIBuilder(serviceRootURL).appendEntitySetSegment(\"EntityDefinitions\");\r\n uriBuilder.addQueryOption(QueryOption.SELECT, \"EntitySetName,LogicalName\");\r\n uriBuilder.filter(\"EntitySetName eq '\" + entitySetName + \"'\");\r\n ODataEntitySetIteratorRequest<ClientEntitySet, ClientEntity> request = odataClient.getRetrieveRequestFactory()\r\n .getEntitySetIteratorRequest(uriBuilder.build());\r\n this.authStrategy.configureRequest(request);\r\n\r\n ODataRetrieveResponse<ClientEntitySetIterator<ClientEntitySet, ClientEntity>> response = request.execute();\r\n try {\r\n ClientEntitySetIterator<ClientEntitySet, ClientEntity> entitySetIterator = response.getBody();\r\n if (entitySetIterator.hasNext()) {\r\n ClientProperty localName = entitySetIterator.next().getProperty(\"LogicalName\");\r\n if (localName != null && localName.getValue() != null) {\r\n return localName.getValue().toString();\r\n }\r\n }\r\n } finally {\r\n response.close();\r\n // Close reponse would also close connection. So here need recreate httpclient\r\n this.httpClientState.setNeedNewHttpClient(true);\r\n }\r\n return null;\r\n }",
"public static String getPath(Context context, int type, Uri uri) {\n if (type == Template.Code.FILE_MANAGER_CODE || type == Template.Code.AUDIO_CODE) {\n return getPath(context, uri);\n } else {\n return uri.getPath();\n }\n }",
"@XmlElement(name = \"entitytype\")\n public String getEntityType() {\n return entityType;\n }",
"public void setEntityType(String entityType){\r\n this.entityType = entityType;\r\n }",
"public final String getEntityScheme() {\n\t\treturn entityScheme;\n\t}",
"public DtoType getDto(EntityType entity, Class<DtoType> myClass) throws ClassNotFoundException, InstantiationException, IllegalAccessException;",
"public abstract String getPath();",
"public abstract String getPath();",
"@Override\r\n\tpublic ModelType getModelType() {\r\n\t\treturn EntityModel.ModelType.SLUG;\r\n\t}",
"private String getPath(PSItemDefSummary itemDefSummary) throws PSExtensionProcessingException\n {\n Map<IPSGuid, String> itemPaths = new HashMap<>();\n String path = \"\";\n IPSGuid guid = null;\n try\n {\n\n guid = itemDefSummary.getGUID();\n IPSUiDesignWs ui = PSUiWsLocator.getUiDesignWebservice();\n path = ui.objectIdToPath(guid);\n // strip off content type name and prefix\n if (path != null && path.startsWith(CONTENTTYPES_PATH_PREFIX))\n {\n int nodeNamePosition = path.lastIndexOf(\"/\");\n path = path.substring(CONTENTTYPES_PATH_PREFIX.length(), nodeNamePosition);\n }\n else if (path == null || !path.equals(\"Navigation\"))\n {\n path = \"\";\n }\n\n return path;\n\n }\n catch (PSErrorsException e)\n {\n throw new PSExtensionProcessingException(\"Failed to obtain node path for content items \", e);\n }\n\n }",
"JavaTypeMapping getMapping(Class javaType);",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tpublic static <T> Path<Object> getPathFromField(Root<T> root, String field) {\n\t\tString[] fieldname = field.split(\"/\");\n\t\tPath<Object> path = null;\n\t\tfor (int idx = 0; idx < fieldname.length; idx++) {\n\n\t\t\tString attributeName = fieldname[idx];\n\n\t\t\tif (path != null) {\n\t\t\t\tpath = path.get(attributeName);\n\t\t\t} else {\n\t\t\t\tpath = root.get(attributeName);\n\t\t\t}\n\n\t\t\tif ((fieldname.length - 1) > idx) {\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Set.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tJoin<T, ?> join = opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tpath = join.get(fieldname[++idx]);\n\n\t\t\t\t}\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Map.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tMapJoin join = (MapJoin) opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tString f = fieldname[++idx];\n\t\t\t\t\tif (f.equals(\"key\"))\n\t\t\t\t\t\tpath = join.key();\n\t\t\t\t\telse if (f.equals(\"value\"))\n\t\t\t\t\t\tpath = join.value();\n\t\t\t\t\telse\n\t\t\t\t\t\tthrow new FormatExceptionException(\"Only key or value you can specify in a map filter, got: \" + f);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn path;\n\t}",
"public MappingType getMappingType() {\n\t\treturn mappingType;\n\t}",
"@AutoEscape\n\tpublic String getTipoLocacion();",
"Class<?> getEntityClass();",
"public String getPath() {\n switch(this) {\n case USER: return \"users\";\n case GROUP: return \"groups\";\n case CLIENT: return \"clients\";\n case IDP: return \"identity-provider-settings\";\n case REALM_ROLE: return \"realms\";\n case CLIENT_ROLE: return \"clients\";\n default: return \"\";\n }\n }",
"public Class<TTrxtypes> getEntityType() { return TTrxtypes.class; }",
"public Class<StShhnKnyMs> getEntityType() { return StShhnKnyMs.class; }",
"public List<Map<String, Object>> getAuktionPath(int objectId, int templateId);",
"String getOrderTypeId();",
"public String getMappingDirectory() {\n\t\treturn props.getProperty(ARGUMENT_MAPPING_DIRECTORY);\n\t}",
"public ObjectNode resolvePaths();",
"public String getEntityTypeName() { return \"com.sample.twitter.dbflute.exentity.Tweet\"; }",
"public String getCutypeMapping();",
"@XmlTransient\r\n @JsonIgnore\r\n public URI getType() {\r\n return this.type == null ? null : this.type.getType();\r\n }",
"public static String classObjectName(Class<?> type) {\n return (type.getName() + \":::OBJECT\");\n }",
"public Integer getEntityTypeId() {\n // get entity type code\n String code = getEntityTypeCode();\n // check cache, (may contain null)\n if (entityTypeIdCache.containsKey(code)) {\n return entityTypeIdCache.get(code);\n }\n // query, cache, and return metadata driven ids\n EntityType entityType = getMetadata().getEntityTypeByName(code);\n Integer id = ((entityType != null) ? entityType.getEntityTypeId() : null);\n entityTypeIdCache.put(code, id);\n return id;\n }",
"FdsPosSysTask findOneByObjecttaskAndTypetask(@Param(\"object\") String object, @Param(\"type\") String type);",
"public T caseFieldPath(FieldPath object)\n {\n return null;\n }",
"public String getEntityTypeName() { return \"org.doxer.app.db.dbflute.exentity.StShhnKnyMs\"; }",
"public abstract String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException;",
"private Long getRelationTypeId(EntityRelationshipType changingRelation) {\n\t\treturn changingRelation.getEntityRelationConfigDetail().getConfigId();\n\t}",
"private List<Field> getMappedFields(Mapping objectMapping, DataSourceType dataSourceType) {\n List<Field> mappedFields = null;\n if (dataSourceType == DataSourceType.SOURCE) {\n FieldGroup fg = objectMapping.getInputFieldGroup();\n if (fg != null) {\n mappedFields = fg.getField();\n } else {\n mappedFields = objectMapping.getInputField();\n }\n } else {\n mappedFields = objectMapping.getOutputField();\n }\n return mappedFields;\n }",
"@NonNull\n\tMapped<O> get(@NonNull TypeRef type);",
"String getPathName();",
"String getPathName();",
"private <T> T getMapper(Class<T> type) {\n SqlSession session = dbSessionHandler.getSqlSession();\n return session.getMapper(type);\n }",
"public String getEntityTypeName() { return \"jp.sourceforge.ea2ddl.dao.exentity.TTrxtypes\"; }",
"public void setEntityType(String entityType) {\n this.entityType = entityType;\n }",
"private String _getRelativeName(int classType, int index) {\n String name;\n\n switch (classType) {\n case CS_C_UNIV:\n //should be unique too!\n name = CLASS_TOKEN[classType] + index;\n break;\n case CS_C_DEPT:\n name = CLASS_TOKEN[classType] + index;\n break;\n default:\n name = CLASS_TOKEN[classType] + index;\n break;\n }\n\n return name;\n }",
"Object getTipo();",
"public int getEntityIndex(String type){\n int index=0;\n double closestDist = 0;\n\n for(int i=0; i<entityList.size(); i++) {\n Entity entity = entityList.get(i);\n if (entity.entityType.equals(type)) {\n double dist = entity.getEntityCoordinates().distanceTo(player.getPlayerCoordinates());\n if(dist<closestDist || closestDist==0){\n closestDist = dist;\n index = i;\n }\n }\n }\n return index;\n }",
"public String getRelatedObjectType() {\n return relatedObjectType;\n }",
"protected abstract EntityPathBase<T> getDslRoot();",
"public TEntityType getEntityType() {\n return (TEntityType) this.getElement();\n }",
"public String getType() {\n return relationshipName;\n }",
"public abstract int getTipoByName(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;",
"public EntityType getType()\n {\n return m_type;\n }",
"public Class<Camp> getEntityType() { return Camp.class; }",
"PathSegments getPath();"
] | [
"0.661858",
"0.6459371",
"0.62624985",
"0.5913123",
"0.57040936",
"0.562439",
"0.55612403",
"0.55026627",
"0.5487349",
"0.54043406",
"0.5341395",
"0.53409225",
"0.533676",
"0.5299712",
"0.522374",
"0.5215619",
"0.5185531",
"0.51418954",
"0.5086388",
"0.50173306",
"0.501191",
"0.5007458",
"0.49992165",
"0.49735644",
"0.4967015",
"0.49566832",
"0.49521106",
"0.4935189",
"0.49188387",
"0.48993015",
"0.4891244",
"0.4876687",
"0.4868773",
"0.4839916",
"0.4819188",
"0.4811846",
"0.4809082",
"0.4805316",
"0.4800888",
"0.47974724",
"0.47949106",
"0.47920895",
"0.47912297",
"0.47858325",
"0.47765237",
"0.4762958",
"0.47390795",
"0.47294527",
"0.47274345",
"0.47242683",
"0.4721008",
"0.4718489",
"0.47145715",
"0.47129077",
"0.47083706",
"0.46989912",
"0.46951804",
"0.46951804",
"0.4674176",
"0.46715695",
"0.46695575",
"0.46632576",
"0.4655185",
"0.46506065",
"0.46420422",
"0.46397686",
"0.46335924",
"0.46297163",
"0.4625663",
"0.4625493",
"0.4624627",
"0.46242914",
"0.46238446",
"0.46202877",
"0.46167496",
"0.46060333",
"0.46013775",
"0.45948237",
"0.4594517",
"0.45846674",
"0.45846304",
"0.45843026",
"0.45835134",
"0.45743528",
"0.45672256",
"0.45672256",
"0.4565252",
"0.45569152",
"0.4548178",
"0.45414636",
"0.4538278",
"0.4534848",
"0.4533386",
"0.45281777",
"0.45212987",
"0.45204931",
"0.45202374",
"0.45182922",
"0.45139417",
"0.45004004"
] | 0.5577676 | 6 |
Get primary key fields. | public static List<String> getEntityMappingFieldPathsPrimary(Class<?> dtoType, boolean includeCollection) {
// Get primary key of Entity mapping with DTO
List<String> entityKeyFields = EntityUtils.getPrimaryKey(getEntityType(dtoType));
List<Field> fields = ObjectUtils.getFields(dtoType, true);
// For each field of DTO, if field is another DTO then get also.
for (Field field : fields) {
Class<?> fieldType = MappingUtils.getFieldType(field);
if (validate(fieldType) && (includeCollection || !ObjectUtils.fieldIsCollection(field))) {
String fieldPath = getEntityMappingFieldPath(field);
fieldPath = null != fieldPath ? fieldPath + Constants.DOT : Constants.EMPTY_STRING;
List<String> innerKeyFieldPaths = getEntityMappingFieldPathsPrimary(fieldType, includeCollection)
.stream().map(fieldPath::concat).collect(Collectors.toList());
entityKeyFields.addAll(innerKeyFieldPaths);
}
}
return entityKeyFields;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Field getPrimaryKeyField() {\n Field returnField = null;\n Field[] fieds = MetaData.class.getDeclaredFields();\n for (Field field : fieds) {\n Id annotation = field.getAnnotation(Id.class);\n EmbeddedId annotationEmb = field.getAnnotation(EmbeddedId.class);\n if (annotation != null || annotationEmb != null) {\n return field;\n }\n }\n return returnField;\n }",
"public DBField[] getKeyFields()\n {\n return this.priKeys; // should never be null\n }",
"public List<ColumnMetaData> getPrimaryKeys();",
"public PrimaryKey getPrimaryKey();",
"public String getPrimaryKey() {\n if (primaryKey == null) primaryKey = \"id\";\n return primaryKey;\n }",
"PrimaryKey getPrimarykey();",
"public Field[] getKeyFields();",
"public String getPrimaryKey() {\r\n return primaryKey;\r\n }",
"private Map getKeyFields ()\n\t\t\t{\n\t\t\t\tModel model = getModel();\n\t\t\t\tString pcClassName = getClassName();\n\t\t\t\tPersistenceClassElement pce = \n\t\t\t\t\tmodel.getPersistenceClass(pcClassName);\n\t\t\t\tPersistenceFieldElement[] fields = pce.getFields();\n\t\t\t\tMap keyFields = new HashMap();\n\n\t\t\t\tif (fields != null)\n\t\t\t\t{\n\t\t\t\t\tfor (int i = 0; i < fields.length; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tPersistenceFieldElement pfe = fields[i];\n\t\t\t\t\t\tif (pfe.isKey())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString name = pfe.getName();\n\t\t\t\t\t\t\tkeyFields.put(name, \n\t\t\t\t\t\t\t\tmodel.getField(pcClassName, name));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn keyFields;\n\t\t\t}",
"PrimaryKey getPrimaryKey();",
"public String getPrimaryKey() {\r\n\t\treturn primaryKey;\r\n\t}",
"private List<String> getPrimaryKeys(Table table) {\n\t\tlog.debug(\"getPrimaryKeys\");\n\t\tList<String> primaryKeyList = new ArrayList<String>();\n\n\t\tfor (Index index : table.getIndexes()) {\n\t\t\tfor (Index.Column column : index.getColumns()) {\n\t\t\t\tif (index.isPrimaryKey()) {\n\t\t\t\t\tprimaryKeyList.add(column.getName());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn primaryKeyList;\n\t}",
"Key getPrimaryKey();",
"public String getPrimaryKey() {\n\t\treturn primaryKey;\n\t}",
"public long getPrimaryKey() {\n return primaryKey;\n }",
"public String fetchPrimaryKey(){\n\t\treturn primaryKey;\n\t}",
"public Map<String, Object> getPrimaryKey() {\n Map<String, Object> ret = new LinkedHashMap<String, Object>(6);\n ret.put(\"atrfAudUid\", getAtrfAudUid());\n return ret;\n }",
"public Schema getKeySchema() {\n\n\t\tint num_keys = pkColumnNames.size();\n\t\tif (num_keys == 0){\n\t\t\tthrow new DataException(\"Empty primary key\");\n\t\t}\n\t\t//TODO: we always create Struct for the pKey - is there a point to just have a field if it's a single pKey?\n\t SchemaBuilder pkBuilder = SchemaBuilder.struct().name(this.pkSchemaName());\n\n\t for (String pk : this.pkColumnNames) {\n\t \t Field field = schema.field(pk);\n\t \t pkBuilder.field(field.name(), field.schema());\n\t }\n\t return pkBuilder.build();\n\t}",
"public Map<String, Object> getPrimaryKey() {\n Map<String, Object> ret = new LinkedHashMap<String, Object>(6);\n ret.put(\"idacquirente\", Integer.valueOf(getIdacquirente()));\n return ret;\n }",
"public Map<String, Object> getPrimaryKey() {\n Map<String, Object> ret = new LinkedHashMap<String, Object>(6);\n ret.put(\"btrAudUid\", getBtrAudUid());\n return ret;\n }",
"public Map<String, Object> getPrimaryKey() {\r\n Map<String, Object> ret = new LinkedHashMap<String, Object>(6);\r\n ret.put(\"idContacto\", Integer.valueOf(getIdContacto()));\r\n return ret;\r\n }",
"public Map<String, Object> getPrimaryKey() {\n Map<String, Object> ret = new LinkedHashMap<String, Object>(6);\n ret.put(\"masp\", getMasp());\n return ret;\n }",
"public String getPrimaryKey() {\n return this.getString(R.string.primaryKey);\n }",
"public KeyField getKeyField() {\n\treturn keyField;\n }",
"@Override\n public long getPrimaryKey() {\n return _partido.getPrimaryKey();\n }",
"public Map<String, Object> getPrimaryKey() {\n Map<String, Object> ret = new LinkedHashMap<String, Object>(6);\n ret.put(\"iduser\", Integer.valueOf(getIduser()));\n return ret;\n }",
"public String getPrimaryKey() {\n return getBasicChar().getPrimaryKey();\n }",
"public String getPkid() {\n return pkid;\n }",
"public Map<String, Object> getPrimaryKey() {\n Map<String, Object> ret = new LinkedHashMap<String, Object>(6);\n ret.put(\"regItemUid\", getRegItemUid());\n return ret;\n }",
"public KeyField getKey() {\n\treturn keyField;\n }",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _employee.getPrimaryKey();\n\t}",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _expandoColumn.getPrimaryKey();\n\t}",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _dictData.getPrimaryKey();\n\t}",
"public static String getPrimaryKeyName() {\r\n\t\t\treturn PRIMARY_KEY_ID;\r\n\t\t}",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn model.getPrimaryKey();\n\t}",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn model.getPrimaryKey();\n\t}",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn model.getPrimaryKey();\n\t}",
"public IEntityPK getPK() {\r\n\treturn this.pk;\r\n }",
"public static void printPrimaryKeyDetails(ResultSet pk) throws SQLException {\n/*\n ResultSetMetaData rs_meta = pk.getMetaData();\n\n for (int x = 1; x <= rs_meta.getColumnCount(); x++) {\n writeMessage(\"pk column attr: \" + rs_meta.getColumnName(x));\n }\n*/\n writeMessage(\"getPrimaryKeys(): TABLE_CAT=\" + pk.getString(\"TABLE_CAT\"));\n writeMessage(\"getPrimaryKeys(): TABLE_SCHEM=\" + pk.getString(\"TABLE_SCHEM\"));\n writeMessage(\"getPrimaryKeys(): TABLE_NAME=\" + pk.getString(\"TABLE_NAME\"));\n writeMessage(\"getPrimaryKeys(): COLUMN_NAME=\" + pk.getString(\"COLUMN_NAME\"));\n writeMessage(\"getPrimaryKeys(): KEY_SEQ=\" + pk.getString(\"KEY_SEQ\"));\n writeMessage(\"getPrimaryKeys(): PK_NAME=\" + pk.getString(\"PK_NAME\"));\n }",
"@Override\r\n\tpublic String getPrimaryKey() {\n\t\treturn \"ID\";\r\n\t}",
"public java.lang.String getPrimaryKey() {\n\t\treturn _pnaAlerta.getPrimaryKey();\n\t}",
"boolean getPrimaryKey();",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _phieugiahan.getPrimaryKey();\n\t}",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _paper.getPrimaryKey();\n\t}",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _state.getPrimaryKey();\n\t}",
"Object getPrimaryKey(Object metadataID);",
"public long getPrimaryKey() {\n\t\treturn _telefonoSolicitudProducto.getPrimaryKey();\n\t}",
"public String[] getKeyNames() \n {\n DBField f[] = this.getKeyFields();\n String kn[] = new String[f.length];\n for (int i = 0; i < f.length; i++) {\n kn[i] = f[i].getName();\n }\n return kn;\n }",
"public Integer getPknum() {\n return pknum;\n }",
"public Integer getPkId() {\n\t\treturn pkId;\n\t}",
"public IdKey getKey() {\n return idKey;\n }",
"public ObjectKey getPrimaryKey()\n {\n pks[0] = SimpleKey.keyFor(getMailId());\n pks[1] = SimpleKey.keyFor(getReceiverId());\n return comboPK;\n }",
"public double getPk()\n {\n return this.pk;\n }",
"public UniqueInfo getPrimaryUniqueInfo() {\r\n throw new UnsupportedOperationException(\"The table does not have primary key: \" + getTableDbName());\r\n }",
"public String getPrimaryKeyNames(int index) {\n return primaryKeyNames_.get(index);\n }",
"public String getPrimaryKey() throws CloneNotSupportedException {\r\n\t\tString key=\"\";\r\n\t\tfor (int i = 0; i < this.state.getSizeCol(); i++) {\r\n\t\t\tfor (int j = 0; j < this.state.getSizeRow(); j++) {\r\n\t\t\t\tkey+=this.state.getValue(new Position(i,j));\r\n\t\t\t}\r\n\t\t}\r\n\t\tkey+=\"?\"+this.state.getTractor().getPosition().toString();\r\n\t\treturn key;\r\n\t}",
"String getPrimaryKeyNames(int index);",
"@AutoEscape\n\tpublic String getFieldId();",
"public String[] getKeyColumns()\n {\n return KEY_COLUMNS;\n }",
"java.util.List<String>\n getPrimaryKeyNamesList();",
"public String getPrimaryKeyNames(int index) {\n return primaryKeyNames_.get(index);\n }",
"public com.google.protobuf.ProtocolStringList\n getPrimaryKeyNamesList() {\n return primaryKeyNames_.getUnmodifiableView();\n }",
"public com.google.protobuf.ProtocolStringList\n getPrimaryKeyNamesList() {\n return primaryKeyNames_;\n }",
"private void buildPKIndex() {\n // index PK\n Collection<DbAttribute> pks = getResolver()\n .getEntity()\n .getDbEntity()\n .getPrimaryKeys();\n this.idIndices = new int[pks.size()];\n\n // this is needed for checking that a valid index is made\n Arrays.fill(idIndices, -1);\n\n Iterator<DbAttribute> it = pks.iterator();\n for (int i = 0; i < idIndices.length; i++) {\n DbAttribute pk = it.next();\n\n for (int j = 0; j < columns.length; j++) {\n if (pk.getName().equals(columns[j].getName())) {\n idIndices[i] = j;\n break;\n }\n }\n\n // sanity check\n if (idIndices[i] == -1) {\n throw new CayenneRuntimeException(\"PK column is not part of result row: %s\", pk.getName());\n }\n }\n }",
"@Override\n\t\tpublic String getPKFieldName() {\n\t\t\treturn null;\n\t\t}",
"Object getPrimaryKey() throws IllegalStateException;",
"@Nonnull\n protected KeyExpression buildPrimaryKey() {\n return Key.Expressions.concat(\n Key.Expressions.recordType(),\n Key.Expressions.list(constituents.stream()\n .map(c -> Key.Expressions.field(c.getName()).nest(c.getRecordType().getPrimaryKey()))\n .collect(Collectors.toList())));\n }",
"public Set<FieldInfo> getKeyFieldInfos() {\n return new LinkedHashSet<FieldInfo>(_keys);\n }",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _changesetEntry.getPrimaryKey();\n\t}",
"boolean isPrimaryKey();",
"public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getId()));\n return sb.toString();\n }",
"public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getId()));\n return sb.toString();\n }",
"public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getId()));\n return sb.toString();\n }",
"public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getId()));\n return sb.toString();\n }",
"public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getId()));\n return sb.toString();\n }",
"@Override\n\tpublic org.kisti.edison.science.service.persistence.ScienceAppPaperPK getPrimaryKey() {\n\t\treturn _scienceAppPaper.getPrimaryKey();\n\t}",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _scienceApp.getPrimaryKey();\n\t}",
"public void setPrimaryKey(String primaryKey) {\r\n this.primaryKey = primaryKey;\r\n }",
"protected String getDatabasePkColumnName() {\n return this.pkColumn == null ? getPlan().getDocIdField() : this.pkColumn;\n }",
"public java.lang.String getPrimaryKey() {\n\t\treturn _primarySchoolStudent.getPrimaryKey();\n\t}",
"public void setPrimaryKey(String primaryKey) {\n this.primaryKey = primaryKey;\n }",
"public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getCode()));\n return sb.toString();\n }",
"public void setPrimaryKey(String primaryKey) {\r\n\t\tthis.primaryKey = primaryKey;\r\n\t}",
"public abstract String getPrimaryKey(String tableName);",
"public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getHashKey()));\n return sb.toString();\n }",
"public List<String> getPrimaryKeys(String tableName);",
"@Override\n public SparseArray<Field> getFieldsByID() {\n final SparseArray<Field> out = new SparseArray<Field>();\n synchronized (fields) {\n populateFieldCache();\n Collection<Field> values = fields.values();\n for (Field field : values) {\n // Cache is up-to-date at this point, so we don't need to hit the DB.\n out.put(field.getID(), field);\n }\n }\n return out;\n }",
"private boolean includePrimaryKeyColumns() {\n\t\treturn false;\r\n\t}",
"@Transient\n public Object[] getID() {\n return new Object[]{this.getTableName()};\n }",
"private static List<String> getPKColumnList(ISQLConnection sourceConn,\n ITableInfo ti) \n throws SQLException \n {\n ArrayList<String> pkColumns = new ArrayList<String>();\n DatabaseMetaData md = sourceConn.getConnection().getMetaData();\n ResultSet rs = null;\n if (md.supportsCatalogsInTableDefinitions()) {\n rs = md.getPrimaryKeys(ti.getCatalogName(), null, ti.getSimpleName());\n } else if (md.supportsSchemasInTableDefinitions()) {\n rs = md.getPrimaryKeys(null, ti.getSchemaName(), ti.getSimpleName());\n } else {\n rs = md.getPrimaryKeys(null, null, ti.getSimpleName());\n }\n while (rs.next()) {\n String keyColumn = rs.getString(4);\n if (keyColumn != null) {\n pkColumns.add(keyColumn);\n }\n }\n if (pkColumns.size() == 0) {\n return null;\n } \n return pkColumns;\n }",
"public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getBatchId()));\n sb.append(\", \");\n sb.append(f.formatAny(getNestId()));\n return sb.toString();\n }",
"@Override\n\tpublic Object getPrimaryKey() {\n\t\treturn id;\n\t}",
"PrhFree selectByPrimaryKey(Integer id);",
"PrimaryKey createPrimaryKey();",
"public int getPrimaryKeyNamesCount() {\n return primaryKeyNames_.size();\n }",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _permissionType.getPrimaryKey();\n\t}",
"@Override\n public String getPrimaryKey(String tableName) {\n return super.getPrimaryKey(tableName);\n }",
"public void setPrimaryKey(String primaryKey) {\n\t\tthis.primaryKey = primaryKey;\n\t}",
"public long getKeyID()\n {\n return keyID;\n }",
"public int getPrimaryKeyNamesCount() {\n return primaryKeyNames_.size();\n }",
"public String getKey() {\n\t\treturn id + \"\";\n\t}"
] | [
"0.7246974",
"0.7085046",
"0.7019754",
"0.70101273",
"0.69876385",
"0.6953051",
"0.6890242",
"0.6846658",
"0.6840205",
"0.6818978",
"0.67686015",
"0.6751882",
"0.67339265",
"0.67167276",
"0.669722",
"0.6690008",
"0.6677757",
"0.66179544",
"0.65814215",
"0.6515023",
"0.6481807",
"0.63892764",
"0.6344585",
"0.6337805",
"0.6336656",
"0.6326831",
"0.63195026",
"0.63183624",
"0.62651527",
"0.61713576",
"0.61438155",
"0.6120844",
"0.6112408",
"0.60785073",
"0.60636204",
"0.60636204",
"0.60636204",
"0.6063242",
"0.6031814",
"0.60296834",
"0.59755737",
"0.59612924",
"0.5952499",
"0.59428835",
"0.59394985",
"0.5926605",
"0.59260494",
"0.59260416",
"0.59145117",
"0.58987534",
"0.5877873",
"0.5875784",
"0.58583975",
"0.5842247",
"0.5839266",
"0.5833762",
"0.5830257",
"0.582636",
"0.5815361",
"0.58084935",
"0.5807493",
"0.58049774",
"0.57946014",
"0.5754679",
"0.5745461",
"0.57444304",
"0.57406133",
"0.5732793",
"0.57311845",
"0.57277554",
"0.57193416",
"0.57193416",
"0.57193416",
"0.57193416",
"0.57193416",
"0.5715553",
"0.57028145",
"0.56951374",
"0.5680781",
"0.56806356",
"0.5670813",
"0.56648934",
"0.565753",
"0.5657254",
"0.56511366",
"0.5649833",
"0.5644126",
"0.56416273",
"0.56389314",
"0.5637903",
"0.5634968",
"0.56314236",
"0.5615289",
"0.560656",
"0.55870795",
"0.5577479",
"0.55723387",
"0.55720276",
"0.5571654",
"0.5568826",
"0.5568449"
] | 0.0 | -1 |
Get entity mapping of collection field. | public static List<String> getEntityMappingFieldPathsCollection(Class<?> dtoType) {
return getEntityMappingFieldPathsCollection(dtoType, false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String[] getFieldNameMapping() {\r\n return null;\r\n }",
"public List<EntityMapping> entityMappings() {\n return this.innerProperties() == null ? null : this.innerProperties().entityMappings();\n }",
"@Override\r\n public void process() {\r\n if (isDirectEmbeddableCollection()) {\r\n ObjectArrayMapping mapping = new ObjectArrayMapping();\r\n \r\n // Add the mapping to the descriptor.\r\n setMapping(mapping);\r\n \r\n // Set the reference class name.\r\n mapping.setReferenceClassName(getReferenceClassName());\r\n \r\n // Set the attribute name.\r\n mapping.setAttributeName(getAttributeName());\r\n \r\n // Will check for PROPERTY access\r\n setAccessorMethods(mapping);\r\n \r\n mapping.setStructureName(getDatabaseType());\r\n \r\n // Process the @Column or column element if there is one.\r\n // A number of methods depend on this field so it must be\r\n // initialized before any further processing can take place.\r\n mapping.setField(new ObjectRelationalDatabaseField(getDatabaseField(getDescriptor().getPrimaryTable(), MetadataLogger.COLUMN)));\r\n } else {\r\n ArrayMapping mapping = new ArrayMapping();\r\n \r\n // Add the mapping to the descriptor.\r\n setMapping(mapping);\r\n \r\n // Set the attribute name.\r\n mapping.setAttributeName(getAttributeName());\r\n \r\n // Will check for PROPERTY access\r\n setAccessorMethods(mapping);\r\n \r\n mapping.setStructureName(getDatabaseType());\r\n \r\n // Process the @Column or column element if there is one.\r\n // A number of methods depend on this field so it must be\r\n // initialized before any further processing can take place.\r\n mapping.setField(new ObjectRelationalDatabaseField(getDatabaseField(getDescriptor().getPrimaryTable(), MetadataLogger.COLUMN)));\r\n }\r\n }",
"private static String getCollectionArgument(Map<String, Entity> entitiesMap, FieldType fieldType) {\r\n if (!fieldType.getTypeArguments().isEmpty()) {\r\n return fieldType.getTypeArguments()\r\n .stream()\r\n .map(FieldType::transformName)\r\n .filter(entitiesMap::containsKey)\r\n .findFirst()\r\n .orElse(fieldType.getTypeArguments().get(0));\r\n } else {\r\n return fieldType.getName();\r\n }\r\n }",
"public Mapping getMapping() {\n\t\t// FIXME Tranform list into mapping\n\t\treturn m;\n\t}",
"public static CodeBlock generateFromModelForCollection(Field field, GenerationPackageModel generationInfo) throws DefinitionException, InnerClassGenerationException {\n String typeName = field.getGenericType().getTypeName();\n\n if (typeName.matches(PATTERN_FOR_GENERIC_INNER_TYPES) ||\n typeName.equals(CLASS_LIST) ||\n typeName.equals(CLASS_SET) ||\n typeName.equals(CLASS_QUEUE))\n throw new DefinitionException(format(UNABLE_TO_DEFINE_GENERIC_TYPE,\n typeName,\n field.getName(),\n field.getDeclaringClass().getSimpleName(),\n FROM_MODEL + field.getDeclaringClass().getSimpleName()));\n\n String getField = GET + String.valueOf(field.getName().charAt(0)).toUpperCase() + field.getName().substring(1);\n\n if (typeName.contains(CLASS_STRING))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + STRING_COLLECTION_FIELD, field.getName(), getField)).build();\n if (typeName.contains(CLASS_INTEGER))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + INT_COLLECTION_FIELD, field.getName(), getField)).build();\n if (typeName.contains(CLASS_DOUBLE))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + DOUBLE_COLLECTION_FIELD, field.getName(), getField)).build();\n if (typeName.contains(CLASS_LONG))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + LONG_COLLECTION_FIELD, field.getName(), getField)).build();\n if (typeName.contains(CLASS_BYTE))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + BYTE_COLLECTION_FIELD, field.getName(), getField)).build();\n if (typeName.contains(CLASS_BOOLEAN))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + BOOL_COLLECTION_FIELD, field.getName(), getField)).build();\n if (typeName.contains(CLASS_FLOAT))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + FLOAT_COLLECTION_FIELD, field.getName(), getField)).build();\n\n ClassName newClassMapper = createMapperForInnerClassIfNeeded(getClassFromField(field), generationInfo);\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + ENTITY_COLLECTION_FIELD,\n field.getName(),\n getField,\n newClassMapper,\n FROM_MODEL + newClassMapper.simpleName().replace(MAPPER, EMPTY_STRING))).build();\n }",
"public MapEntity getEntity() {\n\t\treturn _entity;\n\t}",
"JPACollectionAttribute getCollectionAttribute(final String externalName) throws ODataJPAModelException;",
"public static List<String> getEntityMappingFieldPaths(Field field, boolean lookingInner, boolean includeCollection) {\n List<String> fieldPaths = new ArrayList<>();\n if (null != field) {\n String fieldPath = field.getName();\n MappingField mappingField = ObjectUtils.getAnnotation(field, MappingField.class);\n if (null != mappingField && !StringUtils.isEmpty(mappingField.entityField())) {\n fieldPath = mappingField.entityField();\n }\n\n Class<?> innerClass = MappingUtils.getFieldType(field);\n boolean isCollection = ObjectUtils.fieldIsCollection(field);\n // Case 1: Field is normal field >> get one entity mapping field has been configuration in MappingField annotation\n // Case 2: Field is another DTO field, lookingInner = true, includeCollection = true >> looking all field of DTO field\n // Case 3: Field is another DTO field, lookingInner = true, includeCollection = false >> only non Collection field will be looking to get mapping fields\n if (lookingInner && validate(innerClass) && (includeCollection || !isCollection)) {\n List<String> innerFieldPaths = getEntityMappingFieldPaths(innerClass, true, true);\n if (!CollectionUtils.isEmpty(innerFieldPaths)) {\n String finalFieldPath = fieldPath.concat(Constants.DOT);\n fieldPaths.addAll(innerFieldPaths.stream().map(finalFieldPath::concat).collect(Collectors.toList()));\n }\n } else if (includeCollection || !isCollection) {\n fieldPaths.add(fieldPath);\n }\n }\n return fieldPaths.stream().distinct().collect(Collectors.toList());\n }",
"@Deprecated\r\n\t\tpublic MappedConverter(final List<T> col) {\r\n\t\t\tmap = new HashMap<Long, T>(col.size());\r\n\t\t\tfor (T entity: col) {\r\n\t\t\t\tmap.put(entity.getId(), entity);\r\n\t\t\t}\r\n\t\t}",
"java.lang.String getCollection();",
"Entity getMappedBy();",
"String getCollection();",
"public java.util.List<DataSourceToIndexFieldMapping> getFieldMappings() {\n return fieldMappings;\n }",
"String getIdFieldName(String collectionName) {\n HashMap<String,Object> collection = getCollectionConfig(collectionName);\n if (collection == null || !collection.containsKey(\"idField\")) return null;\n String indexField = collection.get(\"idField\").toString();\n if (!collection.containsKey(\"fields\")) return null;\n HashMap<String,Object> fields = (HashMap<String,Object>)collection.get(\"fields\");\n if (!fields.containsKey(indexField)) return null;\n return indexField;\n }",
"public FumlMapping getMapping() {\r\n if (this.mapping == null) {\r\n Object element = this.getInternalElementReference().getElement();\r\n if (element != null) {\r\n this.mapping = this.fumlMap(element);\r\n }\r\n }\r\n return this.mapping;\r\n }",
"public MapEntityKey getMapEntityKey() {\n\t\treturn mapEntityKey;\n\t}",
"public final Caseless getMapping() {\n\t\treturn mappedto;\n\t}",
"public static List<String> getEntityMappingFieldPathsPrimary(Class<?> dtoType, boolean includeCollection) {\n // Get primary key of Entity mapping with DTO\n List<String> entityKeyFields = EntityUtils.getPrimaryKey(getEntityType(dtoType));\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n // For each field of DTO, if field is another DTO then get also.\n for (Field field : fields) {\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType) && (includeCollection || !ObjectUtils.fieldIsCollection(field))) {\n String fieldPath = getEntityMappingFieldPath(field);\n fieldPath = null != fieldPath ? fieldPath + Constants.DOT : Constants.EMPTY_STRING;\n List<String> innerKeyFieldPaths = getEntityMappingFieldPathsPrimary(fieldType, includeCollection)\n .stream().map(fieldPath::concat).collect(Collectors.toList());\n entityKeyFields.addAll(innerKeyFieldPaths);\n }\n }\n return entityKeyFields;\n }",
"public java.lang.String getCollection() {\n return collection_;\n }",
"Set<String> getCollectionFields(String collectionName) {\n HashMap<String,Object> fields = getCollectionFieldsConfig(collectionName);\n Set<String> result = fields.keySet();\n // result.remove(getIdFieldName(collectionName));\n return result;\n }",
"private List getMappingFieldsInternal() {\n if (fields == null) {\n fields = new ArrayList();\n }\n\n return fields;\n }",
"public Map<ID, List<Image>> getEntityImages() {\n return entityImages;\n }",
"public static Object convertMapEntityPathAndValueToDTO(String prefix, Map<String, Object> mapData, Field field) {\n if (null != mapData && null != field) {\n String mappingField = getEntityMappingFieldPath(field);\n if (!StringUtils.isEmpty(prefix)) {\n prefix += Constants.DOT;\n }\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType)) {\n if (!ObjectUtils.fieldIsCollection(field)) {\n return convertMapEntityPathAndValueToDTO(prefix + mappingField, mapData, fieldType);\n } else {\n int length = countLengthOfArray(prefix + mappingField, mapData);\n if (length > 0) {\n try {\n @SuppressWarnings(\"unchecked\")\n Collection<Object> collection = ObjectUtils.newInstanceCollection(field.getType());\n for (int i = 0; i < length; i++) {\n Object innerEntity = convertMapEntityPathAndValueToDTO(prefix + mappingField + \"[\" + i + \"]\", mapData, fieldType);\n if (null != innerEntity) {\n collection.add(innerEntity);\n }\n }\n return collection;\n } catch (NoSuchMethodException e) {\n throw new ConstructorInvalidException(\"Cannot new collection instance for field \" + field.getName(), e);\n }\n }\n }\n } else {\n Class<?> fieldConverter = getFieldConverterType(field);\n return convertField(fieldConverter, mapData.get(prefix + mappingField));\n }\n }\n return null;\n }",
"@Override\r\n public MetadataDescriptor getReferenceDescriptor() {\r\n if (isDirectEmbeddableCollection()) {\r\n return getEmbeddableAccessor().getDescriptor();\r\n } else {\r\n return super.getReferenceDescriptor();\r\n }\r\n }",
"Type getForPersistentMapping_Type() {\n return type;\n }",
"JavaTypeMapping getMapping(Table table, AbstractMemberMetaData mmd, ClassLoaderResolver clr, FieldRole fieldRole);",
"public java.lang.String getCollection() {\n return instance.getCollection();\n }",
"public Map getMapping() {\n return mapping;\n }",
"public Mapping[] getMapping() {\n return mMapping;\n }",
"public Map<String, Set<String>> getAggregatorToFields()\n {\n if (aggregatorToField != null) {\n return aggregatorToField;\n }\n\n Map<String, Set<String>> aggregatorToFields = Maps.newHashMap();\n\n for (Map.Entry<String, Set<String>> entry : fieldToAggregator.entrySet()) {\n String field = entry.getKey();\n Set<String> aggregators = entry.getValue();\n\n for (String aggregatorName : aggregators) {\n Set<String> fieldSet = aggregatorToFields.get(aggregatorName);\n\n if (fieldSet == null) {\n fieldSet = Sets.newHashSet();\n aggregatorToFields.put(aggregatorName, fieldSet);\n }\n\n fieldSet.add(field);\n }\n }\n\n aggregatorToField = Maps.newHashMap();\n\n for (Map.Entry<String, Set<String>> entry : aggregatorToFields.entrySet()) {\n aggregatorToField.put(entry.getKey(), Collections.unmodifiableSet(entry.getValue()));\n }\n\n aggregatorToField = Collections.unmodifiableMap(aggregatorToField);\n return aggregatorToField;\n }",
"public static Map<String, Object> convertToEntityMappingFieldAndValue(Object dto, Field field) {\n Map<String, Object> mapData = new HashMap<>();\n if (null != dto && null != field) {\n Object valueOfField;\n try {\n valueOfField = ObjectUtils.getValueOfField(dto, field.getName());\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot get value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n\n if (validate(MappingUtils.getFieldType(field))) {\n if (!ObjectUtils.fieldIsCollection(field)) {\n Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(valueOfField);\n for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {\n mapData.put(field.getName() + Constants.DOT + entry.getKey(), entry.getValue());\n }\n } else {\n Collection<?> collection = (Collection<?>) valueOfField;\n int index = 0;\n if (!CollectionUtils.isEmpty(collection)) {\n for (Object innerDTO : collection) {\n Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(innerDTO);\n for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {\n mapData.put(field.getName() + \"[\" + index + \"]\" + Constants.DOT + entry.getKey(), entry.getValue());\n }\n index++;\n }\n }\n }\n } else {\n Class<?> fieldConverter = getFieldConverterType(field);\n Object convertValue = convertField(fieldConverter, valueOfField, true);\n mapData.put(getEntityMappingFieldPath(field), convertValue);\n }\n }\n return mapData;\n }",
"private Map getMapping() {\n return getIndexOperations().getMapping();\n }",
"public String getCollectionClass ();",
"public Map<EntityMode,String> getTuplizerClassMap();",
"List<E> mapToEntity(List<D> dto);",
"public Map<String, Set<String>> getRelatedEntities() {\n return relatedEntities;\n }",
"public Map<String, Class<?>> getEntityTypes() {\n return entityTypes;\n }",
"public Map<String, Map<String, String>> getAggregatorToFieldToName()\n {\n if (aggregatorToFieldToName != null) {\n return aggregatorToFieldToName;\n }\n\n Map<String, Set<String>> aggregatorToFields = getAggregatorToFields();\n Map<String, Map<String, String>> tAggregatorToFieldToName = Maps.newHashMap();\n\n for (Map.Entry<String, Set<String>> entry : aggregatorToFields.entrySet()) {\n String aggregatorName = entry.getKey();\n Set<String> fields = entry.getValue();\n\n Map<String, String> fieldToName = Maps.newHashMap();\n tAggregatorToFieldToName.put(aggregatorName, fieldToName);\n\n for (String field : fields) {\n fieldToName.put(field, field +\n DimensionalConfigurationSchema.ADDITIONAL_VALUE_SEPERATOR +\n aggregatorName);\n }\n }\n\n aggregatorToFieldToName = Maps.newHashMap();\n\n for (Map.Entry<String, Map<String, String>> entry : tAggregatorToFieldToName.entrySet()) {\n aggregatorToFieldToName.put(entry.getKey(), Collections.unmodifiableMap(entry.getValue()));\n }\n\n aggregatorToFieldToName = Collections.unmodifiableMap(aggregatorToFieldToName);\n return aggregatorToFieldToName;\n }",
"public Mapping getMapping() {\n return mapping;\n }",
"public interface CollectionField extends RelationField {\n\n}",
"public Map<String, AllowableFieldEntry> getFieldMap() {\n return fieldMap;\n }",
"public java.util.List<Mapping> getMapping() { \n\t\tif (myMapping == null) {\n\t\t\tmyMapping = new java.util.ArrayList<Mapping>();\n\t\t}\n\t\treturn myMapping;\n\t}",
"public static boolean isEntityCollection(final ObjectStreamField property) {\r\n\t\t\treturn Collection.class.isAssignableFrom(property.getType());\r\n\t\t}",
"public java.util.Map<java.lang.String, java.lang.String> getFieldMap() {\n return internalGetField().getMap();\n }",
"HashMap<String,Object> getCollectionFieldsConfig(String collectionName) {\n HashMap<String,Object> collection = getCollectionConfig(collectionName);\n if (collection == null || !collection.containsKey(\"fields\") ||\n !(collection.get(\"fields\") instanceof HashMap<?,?>)) return null;\n return (HashMap<String,Object>)collection.get(\"fields\");\n }",
"java.util.Map<java.lang.String, java.lang.String>\n getFieldMap();",
"public GroupMappingService getGroupMapping();",
"public Integer getId()\r\n\t\t{ return mapping.getId(); }",
"private DataMapping getDataMapping(String pFieldName, ObjectSet<?> pObjectSet) {\r\n\t\t\r\n\t\tif (pFieldName != null && pFieldName.trim() != \"\") {\r\n\t\t\tif (pObjectSet != null) {\r\n\t\t\t\tif (pObjectSet.getDataMappings() != null && pObjectSet.getDataMappings().size() > 0) {\r\n\t\t\t\t\tfor(DataMapping mapping : pObjectSet.getDataMappings()) {\r\n\t\t\t\t\t\tif (mapping.DataBaseFieldName.trim().toLowerCase().equals(pFieldName.trim().toLowerCase())) {\r\n\t\t\t\t\t\t\treturn mapping;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public java.util.Map<java.lang.String, java.lang.String> getFieldMap() {\n return internalGetField().getMap();\n }",
"java.util.List<com.google.ads.googleads.v13.resources.AttributeFieldMapping> \n getAttributeFieldMappingsList();",
"Collection<?> idValues();",
"public Map<String, Object> getRelatedKeys() throws ODataJPAProcessorException;",
"public List<String> getFieldVector (String field, KrillCollection collection) {\n collection.setIndex(this);\n \n List fieldValues = new ArrayList<String>();\n String fieldValue;\n\n // Do not return fieldValues for token fields\n if (field.equals(\"tokens\") || field.equals(\"base\")) {\n return fieldValues;\n };\n\n \n try {\n final Filter filter = collection.toFilter();\n\n // Get from filtered index\n if (filter != null) {\n \n // Iterate over all atomic readers and collect occurrences\n for (LeafReaderContext atomic : this.reader().leaves()) {\n\n LeafReader lreader = atomic.reader();\n\n DocIdSet docids = filter.getDocIdSet(atomic, null);\n \n DocIdSetIterator docs = (docids == null) ? null : docids.iterator();\n\n if (docs == null)\n continue;\n \n while (docs.nextDoc() != DocIdSetIterator.NO_MORE_DOCS) {\n fieldValue = lreader.document(docs.docID()).get(field);\n if (fieldValue != null && fieldValue != \"\")\n fieldValues.add(fieldValue);\n };\n \n }\n } else { // Get from unfiltered index\n\n // Iterate over all atomic readers and collect occurrences\n for (LeafReaderContext atomic : this.reader().leaves()) {\n\n LeafReader lreader = atomic.reader();\n Bits live = lreader.getLiveDocs();\n\n for (int i=0; i<lreader.maxDoc(); i++) {\n if (live != null && !live.get(i))\n continue;\n \n Document doc = lreader.document(i);\n fieldValue = doc.get(field);\n if (fieldValue != null && fieldValue != \"\")\n fieldValues.add(fieldValue);\n };\n };\n };\n }\n\n // Something went wrong\n catch (IOException e) {\n log.warn(e.getLocalizedMessage());\n\t\t}\n\n // E.g. reference corpus not found\n catch (QueryException e) {\n log.warn(e.getLocalizedMessage());\n };\n\n return fieldValues;\n }",
"public Map<ProvisioningEntity, Object> getTargetEntityToTargetNativeEntity() {\n return targetEntityToTargetNativeEntity;\n }",
"public IdMap() {\n\t\tthis.add(new TextItems());\n\t\tthis.add(new DateTimeEntity());\n\t\tthis.add(EntityCreator.createJson(false));\n\t\tthis.add(EntityCreator.createJson(true));\n\t\tthis.add(new ObjectMapEntry());\n\t\tthis.add(EntityCreator.createXML());\n\t}",
"HashMap<String,Object> getFieldConfig(String collectionName,String fieldName) {\n HashMap<String,Object> fields = getCollectionFieldsConfig(collectionName);\n if (fields == null || !(fields instanceof HashMap<?,?>)|| !fields.containsKey(fieldName)) return null;\n return (HashMap<String,Object>)fields.get(fieldName);\n }",
"JavaTypeMapping getMapping(Class javaType, boolean serialised, boolean embedded, String fieldName);",
"Collection<? extends Object> getCollectionName();",
"@Override\n\tpublic String getCollection() {\n\t\treturn null;\n\t}",
"@AutoEscape\n\tpublic String getCollectionName();",
"public String getCollectionClass ()\n\t{\n\t\treturn getRelationshipImpl().getCollectionClass();\n\t}",
"Map<String, FieldInfo> getFieldMap() {\n return fieldMap;\n }",
"@Override\n\tpublic long getChangesetCollectionId() {\n\t\treturn _changesetEntry.getChangesetCollectionId();\n\t}",
"@Mapper\npublic interface LicenseDongEntityMapper {\n\n LicenseDongEntity toLicenseDongEntity(Item item);\n\n List<LicenseDongEntity> toLicenseDongEntityList(List<Item> itemList);\n\n}",
"public static String getEntityMappingFieldPath(Field field) {\n List<String> fieldPaths = getEntityMappingFieldPaths(field, false, true);\n if (fieldPaths.size() > 0) {\n return fieldPaths.get(0);\n }\n return null;\n }",
"List<Object> getCollectionProxies(PersistentCollection collection)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tEventSource session = (EventSource) sessionFactory.getCurrentSession();\r\n\r\n\t\t\tCollectionPersister persister = session.getFactory().getCollectionPersister(collection.getRole());\r\n\t\t\tif (persister instanceof AbstractCollectionPersister)\r\n\t\t\t{\r\n\t\t\t\tAbstractCollectionPersister collectionPersister = (AbstractCollectionPersister) persister;\r\n\t\t\t\tString className = collectionPersister.getElementType().getName();\r\n\t\t\t\tEntityPersister entityPersister = session.getFactory().getEntityPersister(className);\r\n\t\t\t\tCollectionProxyResolver collectionProxyResolver = getCollectionProxyResolver(collectionPersister, entityPersister);\r\n\t\t\t\tif (session instanceof Session)\r\n\t\t\t\t{\r\n\t\t\t\t\tList<IHibernateProxyDescriptor> proxyDescriptors = collectionProxyResolver.getCollectionProxies(session, collection);\r\n\r\n\t\t\t\t\t// create a new HibernateProxy for each id.\r\n\t\t\t\t\tList<Object> proxies = new ArrayList<Object>();\r\n\t\t\t\t\tfor (IHibernateProxyDescriptor proxyDescriptor : proxyDescriptors)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tASObject as = getASObject(proxyDescriptor);\r\n\t\t\t\t\t\tproxies.add(as);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn proxies;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Throwable ex)\r\n\t\t{\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public Collection getCollection() {\n return mCollection;\n }",
"public static <K, T> Map<K, T> convertCollectionToMap(Collection<T> collection, String keyPropertyName) {\r\n\t\t\r\n\t\t// Si la collection est nulle\r\n\t\tif(collection == null) return null;\r\n\t\t\r\n\t\t// Map a retourner\r\n\t\tMap<K, T> map = new HashMap<K, T>();\r\n\t\t\r\n\t\t// Si la collection est vide\r\n\t\tif(collection.size() == 0) return map;\r\n\t\t\r\n\t\t// Si la propriete cle est vide\r\n\t\tif(keyPropertyName == null || keyPropertyName.trim().length() == 0) \r\n\t\t\tthrow new JPersistenceToolsException(\"NoMapKeyPropertyException.message\");\r\n\t\t\r\n\t\t// Parcours de la collection\r\n\t\tfor (T object : collection) {\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\t\r\n\t\t\t\t// Valeur de la propriete\r\n\t\t\t\tK keyProperty = (K) DAOValidatorHelper.evaluateValueExpression(\"${\" + keyPropertyName + \"}\", object);\r\n\t\t\t\t\r\n\t\t\t\t// Ajout dans la MAP\r\n\t\t\t\tmap.put(keyProperty, object);\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t\r\n\t\t\t\t// On relance\r\n\t\t\t\tthrow new JPersistenceToolsException(\"convertCollectionToMap.error\", e);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// On retourne la MAP\r\n\t\treturn map;\r\n\t}",
"public String collectionId() {\n return collectionId;\n }",
"public Resource addToCollection(Resource collection, Resource entity) {\n Property hadMember = model.createProperty(\n ProvOntology.getHadMemberExpandedPropertyFullURI());\n model.createStatement(collection, hadMember, entity);\n return collection;\n }",
"public List<?> getMap(String columnName) {\n ListVector vector = (ListVector) table.getVector(columnName);\n return vector.getObject(rowNumber);\n }",
"public BsonJavaScript getMapFunction() {\n return mapFunction;\n }",
"@Override\n public Class<?> getKeyClass() {\n return this.isCollection() && this.getKeyDataClassDefinition() != null?this.getKeyDataClassDefinition().getDataClass():null;\n }",
"public List getGroupToAccountMappings() {\n return Collections.unmodifiableList(groupToAccountMappers);\n }",
"public Collection getGeneralization()\n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{\n \t\tCollection col = new ArrayList();\n \t\tcol = instance.getGeneralization(this.refMofId());\n \t\t\n \t\treturn col; \t\t\n \t}\n \n \treturn super_getGeneralization();\n }",
"@Nonnull\n @Override\n public FeatureType getCollectionFeatureType() {\n return collectionFeatureType;\n }",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface OrganisationTypeMapper extends EntityMapper<OrganisationTypeDTO, OrganisationType> {\n\n\n @Mapping(target = \"organisations\", ignore = true)\n OrganisationType toEntity(OrganisationTypeDTO organisationTypeDTO);\n\n default OrganisationType fromId(Long id) {\n if (id == null) {\n return null;\n }\n OrganisationType organisationType = new OrganisationType();\n organisationType.setId(id);\n return organisationType;\n }\n}",
"public Map<String, List<Object>> getDCModelMap(){\n\t\tDBCollection dcModel = db.getCollection(\"dcModel\");\n\t\tMap<String, List<Object>> varModelMap = new HashMap<String, List<Object>>();\n \tDBCursor varModelCursor = dcModel.find();\n \tfor(DBObject varModelObj: varModelCursor) {\n \t\tvarModelMap.put((String) varModelObj.get(\"v\"), (List<Object>) varModelObj.get(\"m\")); \t\t\n \t}\n \treturn varModelMap;\n\t}",
"public static Map<Long, User> mapUserById(Collection<User> collection) {\n\t\tMap<Long, User> m = new HashMap<Long, User>(collection.size());\n\t\tfor (User u : collection) {\n\t\t\tm.put(u.getId(), u);\n\t\t}\n\t\treturn m;\n\t}",
"protected abstract EntityAliases[] getEntityAliases();",
"@Override\n\tpublic List<String> getMappings() {\n\t\treturn mappings;\n\t}",
"public static CodeBlock generateToModelForMap(Field field, GenerationPackageModel generationInfo) throws DefinitionException, InnerClassGenerationException {\n if (field.getGenericType().getTypeName().equals(CLASS_MAP) || field.getGenericType().getTypeName().matches(PATTERN_FOR_GENERIC_INNER_TYPES))\n throw new DefinitionException(format(UNABLE_TO_DEFINE_GENERIC_TYPE,\n field.getGenericType().getTypeName(),\n field.getName(),\n field.getDeclaringClass().getSimpleName(),\n TO_MODEL + field.getDeclaringClass().getSimpleName()));\n Type genericType = field.getGenericType();\n ParameterizedType parameterizedType = (ParameterizedType) genericType;\n Type keyType = parameterizedType.getActualTypeArguments()[0];\n Type valueType = parameterizedType.getActualTypeArguments()[1];\n String mapGetter = calculateMapGetter(keyType.getTypeName(), valueType.getTypeName());\n\n Class keyClass = (Class) keyType;\n Class valueClass = (Class) valueType;\n\n switch (mapGetter) {\n case GET_MAP_PRIMITIVE_KEY:\n createMapperForInnerClassIfNeeded(valueClass, generationInfo);\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapGetter,\n field.getName(),\n field.getName(),\n PrimitiveMapping.class,\n getToModelMappingFromType(keyType),\n getToModelMappingFromType(valueType)))\n .build();\n case GET_MAP_PRIMITIVE_VALUE:\n createMapperForInnerClassIfNeeded(keyClass, generationInfo);\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapGetter,\n field.getName(),\n field.getName(),\n getToModelMappingFromType(keyType),\n PrimitiveMapping.class,\n getToModelMappingFromType(valueType)))\n .build();\n case GET_MAP_PRIMITIVE_KEY_VALUE:\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapGetter,\n field.getName(),\n field.getName(),\n PrimitiveMapping.class,\n getToModelMappingFromType(keyType),\n PrimitiveMapping.class,\n getToModelMappingFromType(valueType)))\n .build();\n default:\n createMapperForInnerClassIfNeeded(valueClass, generationInfo);\n createMapperForInnerClassIfNeeded(keyClass, generationInfo);\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapGetter,\n field.getName(),\n field.getName(),\n getToModelMappingFromType(keyType),\n getToModelMappingFromType(valueType)))\n .build();\n }\n }",
"public Map<String, String> getDocFieldsVsDataTypeMap() {\n\t\treturn docFieldsVsDataTypeMap;\n\t}",
"@XmlTransient\n Collection<Autore> getAutoreCollection();",
"@XmlTransient\n Collection<Tag> getTagCollection();",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<E> getEntities() {\n\t\treturn (ArrayList<E>) entities.clone();\n\t}",
"Collection<Feature> getReference();",
"JavaTypeMapping getMapping(Class javaType);",
"@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }",
"public java.math.BigInteger getNumberInCollection() {\n return numberInCollection;\n }",
"public com.google.protobuf.ByteString\n getCollectionBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(collection_);\n }",
"@Override\n public CollectionPersister[] getCollectionPersisters() {\n \t\treturn collectionPersister == null ? null : new CollectionPersister[] { collectionPersister };\n \t}",
"@Bean\n public ModelMapper modelMapper() {\n ModelMapper mapper = new ModelMapper();\n\n mapper.addMappings(new PropertyMap<Permit, PermitDto>() {\n @Override\n protected void configure() {\n Converter<List<Code>, List<Integer>> codeConverter = mappingContext -> {\n List<Integer> result = new ArrayList<>();\n mappingContext.getSource().forEach(code -> result.add(code.getId()));\n return result;\n };\n\n using(codeConverter).map(source.getCodes()).setCodeIds(null);\n }\n });\n return mapper;\n }",
"protected CollectionPersister[] getCollectionPersisters() {\n \t\treturn collectionPersisters;\n \t}",
"public MappingField[] getMappingFields() {\n List myFields = getMappingFieldsInternal();\n return (MappingField[]) myFields.toArray(\n new MappingField[myFields.size()]);\n }",
"public static Map<String, Field> makeFieldMap(Collection fields)\n {\n Map<String, Field> fieldMap = new HashMap<String, Field>();\n Field field;\n for (Iterator itr = fields.iterator(); itr.hasNext(); )\n {\n field = (Field) itr.next();\n fieldMap.put(field.name(), field);\n }\n return fieldMap;\n }",
"public static Class<?> getFieldConverterType(Field field) {\n MappingField mappingField = ObjectUtils.getAnnotation(field, MappingField.class);\n if (null != mappingField) {\n return mappingField.converter();\n }\n return null;\n }",
"private List<Object> serializeActualCollectionMembers(AbstractPersistentCollection collection)\r\n\t{\r\n\t\tList<Object> result = new ArrayList<Object>();\r\n\t\tif (!collection.wasInitialized())\r\n\t\t{\r\n\t\t\tcollection.forceInitialization();\r\n\t\t}\r\n\t\tIterator<Object> itr = collection.entries(null);\r\n\t\twhile (itr.hasNext())\r\n\t\t{\r\n\t\t\tObject next = itr.next();\r\n\t\t\tObject newObj = serialize(next);\r\n\t\t\tresult.add(newObj);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"private String[] getDefinedFields(ObjectSet<?> pObjectSet) {\r\n\t\tString[] returnedValue = null;\r\n\t\tList<String> fieldsList = new ArrayList<String>();\r\n\t\t\r\n\t\tif (pObjectSet != null) {\r\n\t\t\tif (pObjectSet.getDataMappings().size() > 0) {\r\n\t\t\t\tfor(DataMapping mapping : pObjectSet.getDataMappings()) {\r\n\t\t\t\t\tif (!mapping.virtual && !mapping.IsCollection) {\r\n\t\t\t\t\t\tif (mapping.DataBaseDataType != Entity.DATATYPE_ENTITY) {\r\n\t\t\t\t\t\t\tfieldsList.add(mapping.DataBaseFieldName);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (fieldsList.size() > 0) {\r\n\t\t\treturnedValue = fieldsList.toArray(new String[fieldsList.size()]);\r\n\t\t}\r\n\t\t\r\n\t\treturn returnedValue;\r\n\t}"
] | [
"0.5889608",
"0.5743229",
"0.5649848",
"0.562564",
"0.5464449",
"0.54025644",
"0.5395504",
"0.5387678",
"0.5382993",
"0.53611046",
"0.534553",
"0.5285933",
"0.5196647",
"0.5159247",
"0.5136699",
"0.5121562",
"0.5116647",
"0.50961566",
"0.5088278",
"0.5071642",
"0.5068416",
"0.5061215",
"0.505352",
"0.50490624",
"0.50304264",
"0.5027557",
"0.5024774",
"0.5020109",
"0.50186896",
"0.5015725",
"0.50154096",
"0.5009271",
"0.4945268",
"0.49400878",
"0.49323186",
"0.49313837",
"0.4926579",
"0.4925497",
"0.492476",
"0.49045977",
"0.48899254",
"0.48853055",
"0.48814473",
"0.4866801",
"0.4863935",
"0.48578587",
"0.4856875",
"0.48445898",
"0.48402685",
"0.4833834",
"0.48309562",
"0.48161125",
"0.48125312",
"0.48117915",
"0.48061112",
"0.4791485",
"0.47905427",
"0.47815457",
"0.47762147",
"0.47730306",
"0.47629935",
"0.47616863",
"0.47450784",
"0.47385585",
"0.47378984",
"0.471783",
"0.4714085",
"0.47070068",
"0.47043687",
"0.4701992",
"0.4698843",
"0.46930683",
"0.46908733",
"0.46883276",
"0.46817628",
"0.4677576",
"0.4673725",
"0.46717125",
"0.4664216",
"0.46623915",
"0.46591094",
"0.46585026",
"0.4650439",
"0.46466744",
"0.46463832",
"0.46357536",
"0.4623977",
"0.46194273",
"0.4609884",
"0.46096188",
"0.46086186",
"0.46070242",
"0.46038437",
"0.45952788",
"0.4590618",
"0.45891756",
"0.45875093",
"0.45721564",
"0.45719457",
"0.4571736",
"0.45702124"
] | 0.0 | -1 |
Get entity mapping of collection field (looking inner class). | public static List<String> getEntityMappingFieldPathsCollection(Class<?> dtoType, boolean lookingInner) {
List<String> fieldPaths = new ArrayList<>();
List<Field> fields = ObjectUtils.getFields(dtoType, true);
for (Field field : fields) {
if (validate(MappingUtils.getFieldType(field)) && ObjectUtils.fieldIsCollection(field)) {
fieldPaths.addAll(getEntityMappingFieldPaths(field, lookingInner, true));
}
}
return fieldPaths;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static CodeBlock generateFromModelForCollection(Field field, GenerationPackageModel generationInfo) throws DefinitionException, InnerClassGenerationException {\n String typeName = field.getGenericType().getTypeName();\n\n if (typeName.matches(PATTERN_FOR_GENERIC_INNER_TYPES) ||\n typeName.equals(CLASS_LIST) ||\n typeName.equals(CLASS_SET) ||\n typeName.equals(CLASS_QUEUE))\n throw new DefinitionException(format(UNABLE_TO_DEFINE_GENERIC_TYPE,\n typeName,\n field.getName(),\n field.getDeclaringClass().getSimpleName(),\n FROM_MODEL + field.getDeclaringClass().getSimpleName()));\n\n String getField = GET + String.valueOf(field.getName().charAt(0)).toUpperCase() + field.getName().substring(1);\n\n if (typeName.contains(CLASS_STRING))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + STRING_COLLECTION_FIELD, field.getName(), getField)).build();\n if (typeName.contains(CLASS_INTEGER))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + INT_COLLECTION_FIELD, field.getName(), getField)).build();\n if (typeName.contains(CLASS_DOUBLE))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + DOUBLE_COLLECTION_FIELD, field.getName(), getField)).build();\n if (typeName.contains(CLASS_LONG))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + LONG_COLLECTION_FIELD, field.getName(), getField)).build();\n if (typeName.contains(CLASS_BYTE))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + BYTE_COLLECTION_FIELD, field.getName(), getField)).build();\n if (typeName.contains(CLASS_BOOLEAN))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + BOOL_COLLECTION_FIELD, field.getName(), getField)).build();\n if (typeName.contains(CLASS_FLOAT))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + FLOAT_COLLECTION_FIELD, field.getName(), getField)).build();\n\n ClassName newClassMapper = createMapperForInnerClassIfNeeded(getClassFromField(field), generationInfo);\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + ENTITY_COLLECTION_FIELD,\n field.getName(),\n getField,\n newClassMapper,\n FROM_MODEL + newClassMapper.simpleName().replace(MAPPER, EMPTY_STRING))).build();\n }",
"@Override\r\n public void process() {\r\n if (isDirectEmbeddableCollection()) {\r\n ObjectArrayMapping mapping = new ObjectArrayMapping();\r\n \r\n // Add the mapping to the descriptor.\r\n setMapping(mapping);\r\n \r\n // Set the reference class name.\r\n mapping.setReferenceClassName(getReferenceClassName());\r\n \r\n // Set the attribute name.\r\n mapping.setAttributeName(getAttributeName());\r\n \r\n // Will check for PROPERTY access\r\n setAccessorMethods(mapping);\r\n \r\n mapping.setStructureName(getDatabaseType());\r\n \r\n // Process the @Column or column element if there is one.\r\n // A number of methods depend on this field so it must be\r\n // initialized before any further processing can take place.\r\n mapping.setField(new ObjectRelationalDatabaseField(getDatabaseField(getDescriptor().getPrimaryTable(), MetadataLogger.COLUMN)));\r\n } else {\r\n ArrayMapping mapping = new ArrayMapping();\r\n \r\n // Add the mapping to the descriptor.\r\n setMapping(mapping);\r\n \r\n // Set the attribute name.\r\n mapping.setAttributeName(getAttributeName());\r\n \r\n // Will check for PROPERTY access\r\n setAccessorMethods(mapping);\r\n \r\n mapping.setStructureName(getDatabaseType());\r\n \r\n // Process the @Column or column element if there is one.\r\n // A number of methods depend on this field so it must be\r\n // initialized before any further processing can take place.\r\n mapping.setField(new ObjectRelationalDatabaseField(getDatabaseField(getDescriptor().getPrimaryTable(), MetadataLogger.COLUMN)));\r\n }\r\n }",
"public List<EntityMapping> entityMappings() {\n return this.innerProperties() == null ? null : this.innerProperties().entityMappings();\n }",
"public static List<String> getEntityMappingFieldPaths(Field field, boolean lookingInner, boolean includeCollection) {\n List<String> fieldPaths = new ArrayList<>();\n if (null != field) {\n String fieldPath = field.getName();\n MappingField mappingField = ObjectUtils.getAnnotation(field, MappingField.class);\n if (null != mappingField && !StringUtils.isEmpty(mappingField.entityField())) {\n fieldPath = mappingField.entityField();\n }\n\n Class<?> innerClass = MappingUtils.getFieldType(field);\n boolean isCollection = ObjectUtils.fieldIsCollection(field);\n // Case 1: Field is normal field >> get one entity mapping field has been configuration in MappingField annotation\n // Case 2: Field is another DTO field, lookingInner = true, includeCollection = true >> looking all field of DTO field\n // Case 3: Field is another DTO field, lookingInner = true, includeCollection = false >> only non Collection field will be looking to get mapping fields\n if (lookingInner && validate(innerClass) && (includeCollection || !isCollection)) {\n List<String> innerFieldPaths = getEntityMappingFieldPaths(innerClass, true, true);\n if (!CollectionUtils.isEmpty(innerFieldPaths)) {\n String finalFieldPath = fieldPath.concat(Constants.DOT);\n fieldPaths.addAll(innerFieldPaths.stream().map(finalFieldPath::concat).collect(Collectors.toList()));\n }\n } else if (includeCollection || !isCollection) {\n fieldPaths.add(fieldPath);\n }\n }\n return fieldPaths.stream().distinct().collect(Collectors.toList());\n }",
"public String[] getFieldNameMapping() {\r\n return null;\r\n }",
"public MapEntity getEntity() {\n\t\treturn _entity;\n\t}",
"public Mapping getMapping() {\n\t\t// FIXME Tranform list into mapping\n\t\treturn m;\n\t}",
"Entity getMappedBy();",
"public interface CollectionField extends RelationField {\n\n}",
"private static String getCollectionArgument(Map<String, Entity> entitiesMap, FieldType fieldType) {\r\n if (!fieldType.getTypeArguments().isEmpty()) {\r\n return fieldType.getTypeArguments()\r\n .stream()\r\n .map(FieldType::transformName)\r\n .filter(entitiesMap::containsKey)\r\n .findFirst()\r\n .orElse(fieldType.getTypeArguments().get(0));\r\n } else {\r\n return fieldType.getName();\r\n }\r\n }",
"java.lang.String getCollection();",
"JPACollectionAttribute getCollectionAttribute(final String externalName) throws ODataJPAModelException;",
"JavaTypeMapping getMapping(Table table, AbstractMemberMetaData mmd, ClassLoaderResolver clr, FieldRole fieldRole);",
"public String getCollectionClass ();",
"@Deprecated\r\n\t\tpublic MappedConverter(final List<T> col) {\r\n\t\t\tmap = new HashMap<Long, T>(col.size());\r\n\t\t\tfor (T entity: col) {\r\n\t\t\t\tmap.put(entity.getId(), entity);\r\n\t\t\t}\r\n\t\t}",
"abstract Collection<Object> mapResultClass(Collection<Object> resultSet);",
"public Map<EntityMode,String> getTuplizerClassMap();",
"JavaTypeMapping getMapping(Class javaType, boolean serialised, boolean embedded, String fieldName);",
"public static CodeBlock generateToModelForMap(Field field, GenerationPackageModel generationInfo) throws DefinitionException, InnerClassGenerationException {\n if (field.getGenericType().getTypeName().equals(CLASS_MAP) || field.getGenericType().getTypeName().matches(PATTERN_FOR_GENERIC_INNER_TYPES))\n throw new DefinitionException(format(UNABLE_TO_DEFINE_GENERIC_TYPE,\n field.getGenericType().getTypeName(),\n field.getName(),\n field.getDeclaringClass().getSimpleName(),\n TO_MODEL + field.getDeclaringClass().getSimpleName()));\n Type genericType = field.getGenericType();\n ParameterizedType parameterizedType = (ParameterizedType) genericType;\n Type keyType = parameterizedType.getActualTypeArguments()[0];\n Type valueType = parameterizedType.getActualTypeArguments()[1];\n String mapGetter = calculateMapGetter(keyType.getTypeName(), valueType.getTypeName());\n\n Class keyClass = (Class) keyType;\n Class valueClass = (Class) valueType;\n\n switch (mapGetter) {\n case GET_MAP_PRIMITIVE_KEY:\n createMapperForInnerClassIfNeeded(valueClass, generationInfo);\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapGetter,\n field.getName(),\n field.getName(),\n PrimitiveMapping.class,\n getToModelMappingFromType(keyType),\n getToModelMappingFromType(valueType)))\n .build();\n case GET_MAP_PRIMITIVE_VALUE:\n createMapperForInnerClassIfNeeded(keyClass, generationInfo);\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapGetter,\n field.getName(),\n field.getName(),\n getToModelMappingFromType(keyType),\n PrimitiveMapping.class,\n getToModelMappingFromType(valueType)))\n .build();\n case GET_MAP_PRIMITIVE_KEY_VALUE:\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapGetter,\n field.getName(),\n field.getName(),\n PrimitiveMapping.class,\n getToModelMappingFromType(keyType),\n PrimitiveMapping.class,\n getToModelMappingFromType(valueType)))\n .build();\n default:\n createMapperForInnerClassIfNeeded(valueClass, generationInfo);\n createMapperForInnerClassIfNeeded(keyClass, generationInfo);\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapGetter,\n field.getName(),\n field.getName(),\n getToModelMappingFromType(keyType),\n getToModelMappingFromType(valueType)))\n .build();\n }\n }",
"String getCollection();",
"private List getMappingFieldsInternal() {\n if (fields == null) {\n fields = new ArrayList();\n }\n\n return fields;\n }",
"@Mapper\npublic interface LicenseDongEntityMapper {\n\n LicenseDongEntity toLicenseDongEntity(Item item);\n\n List<LicenseDongEntity> toLicenseDongEntityList(List<Item> itemList);\n\n}",
"List<E> mapToEntity(List<D> dto);",
"public final Caseless getMapping() {\n\t\treturn mappedto;\n\t}",
"public static CodeBlock generateFromModelForMap(Field field, GenerationPackageModel generationInfo) throws DefinitionException, InnerClassGenerationException {\n if (field.getGenericType().getTypeName().equals(CLASS_MAP) || field.getGenericType().getTypeName().matches(PATTERN_FOR_GENERIC_INNER_TYPES))\n throw new DefinitionException(format(UNABLE_TO_DEFINE_GENERIC_TYPE,\n field.getGenericType().getTypeName(),\n field.getName(),\n field.getDeclaringClass().getSimpleName(),\n FROM_MODEL + field.getDeclaringClass().getSimpleName()));\n String getField = GET + String.valueOf(field.getName().charAt(0)).toUpperCase() + field.getName().substring(1);\n Type genericType = field.getGenericType();\n ParameterizedType parameterizedType = (ParameterizedType) genericType;\n Type keyType = parameterizedType.getActualTypeArguments()[0];\n Type valueType = parameterizedType.getActualTypeArguments()[1];\n String mapBuilder = calculateMapBuilder(keyType.getTypeName(), valueType.getTypeName());\n\n Class keyClass = (Class) keyType;\n Class valueClass = (Class) valueType;\n\n switch (mapBuilder) {\n case MAP_FIELD_PRIMITIVE_KEY:\n createMapperForInnerClassIfNeeded(valueClass, generationInfo);\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapBuilder,\n field.getName(),\n getField,\n PrimitiveMapping.class,\n getFromModelMappingFromType(keyType),\n getFromModelMappingFromType(valueType)))\n .build();\n case MAP_FIELD_PRIMITIVE_VALUE:\n createMapperForInnerClassIfNeeded(keyClass, generationInfo);\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapBuilder,\n field.getName(),\n getField,\n getFromModelMappingFromType(keyType),\n PrimitiveMapping.class,\n getFromModelMappingFromType(valueType)))\n .build();\n case MAP_FIELD_PRIMITIVE_KEY_VALUE:\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapBuilder,\n field.getName(),\n getField,\n PrimitiveMapping.class,\n getFromModelMappingFromType(keyType),\n PrimitiveMapping.class,\n getFromModelMappingFromType(valueType)))\n .build();\n default:\n createMapperForInnerClassIfNeeded(valueClass, generationInfo);\n createMapperForInnerClassIfNeeded(keyClass, generationInfo);\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapBuilder,\n field.getName(),\n getField,\n getFromModelMappingFromType(keyType),\n getFromModelMappingFromType(valueType)))\n .build();\n }\n }",
"public static Object convertMapEntityPathAndValueToDTO(String prefix, Map<String, Object> mapData, Field field) {\n if (null != mapData && null != field) {\n String mappingField = getEntityMappingFieldPath(field);\n if (!StringUtils.isEmpty(prefix)) {\n prefix += Constants.DOT;\n }\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType)) {\n if (!ObjectUtils.fieldIsCollection(field)) {\n return convertMapEntityPathAndValueToDTO(prefix + mappingField, mapData, fieldType);\n } else {\n int length = countLengthOfArray(prefix + mappingField, mapData);\n if (length > 0) {\n try {\n @SuppressWarnings(\"unchecked\")\n Collection<Object> collection = ObjectUtils.newInstanceCollection(field.getType());\n for (int i = 0; i < length; i++) {\n Object innerEntity = convertMapEntityPathAndValueToDTO(prefix + mappingField + \"[\" + i + \"]\", mapData, fieldType);\n if (null != innerEntity) {\n collection.add(innerEntity);\n }\n }\n return collection;\n } catch (NoSuchMethodException e) {\n throw new ConstructorInvalidException(\"Cannot new collection instance for field \" + field.getName(), e);\n }\n }\n }\n } else {\n Class<?> fieldConverter = getFieldConverterType(field);\n return convertField(fieldConverter, mapData.get(prefix + mappingField));\n }\n }\n return null;\n }",
"JavaTypeMapping getMapping(Class javaType);",
"@Override\r\n public MetadataDescriptor getReferenceDescriptor() {\r\n if (isDirectEmbeddableCollection()) {\r\n return getEmbeddableAccessor().getDescriptor();\r\n } else {\r\n return super.getReferenceDescriptor();\r\n }\r\n }",
"CollectionReferenceElement createCollectionReferenceElement();",
"protected abstract EntityAliases[] getEntityAliases();",
"public FumlMapping getMapping() {\r\n if (this.mapping == null) {\r\n Object element = this.getInternalElementReference().getElement();\r\n if (element != null) {\r\n this.mapping = this.fumlMap(element);\r\n }\r\n }\r\n return this.mapping;\r\n }",
"@XmlTransient\n Collection<Tag> getTagCollection();",
"public static List<String> getEntityMappingFieldPathsPrimary(Class<?> dtoType, boolean includeCollection) {\n // Get primary key of Entity mapping with DTO\n List<String> entityKeyFields = EntityUtils.getPrimaryKey(getEntityType(dtoType));\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n // For each field of DTO, if field is another DTO then get also.\n for (Field field : fields) {\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType) && (includeCollection || !ObjectUtils.fieldIsCollection(field))) {\n String fieldPath = getEntityMappingFieldPath(field);\n fieldPath = null != fieldPath ? fieldPath + Constants.DOT : Constants.EMPTY_STRING;\n List<String> innerKeyFieldPaths = getEntityMappingFieldPathsPrimary(fieldType, includeCollection)\n .stream().map(fieldPath::concat).collect(Collectors.toList());\n entityKeyFields.addAll(innerKeyFieldPaths);\n }\n }\n return entityKeyFields;\n }",
"public MapEntityKey getMapEntityKey() {\n\t\treturn mapEntityKey;\n\t}",
"public Map<ID, List<Image>> getEntityImages() {\n return entityImages;\n }",
"public GroupMappingService getGroupMapping();",
"public IdMap() {\n\t\tthis.add(new TextItems());\n\t\tthis.add(new DateTimeEntity());\n\t\tthis.add(EntityCreator.createJson(false));\n\t\tthis.add(EntityCreator.createJson(true));\n\t\tthis.add(new ObjectMapEntry());\n\t\tthis.add(EntityCreator.createXML());\n\t}",
"public static CodeBlock generateToModelForSet(Field field, GenerationPackageModel generationInfo) throws DefinitionException, InnerClassGenerationException {\n if (field.getGenericType().getTypeName().equals(CLASS_SET) || field.getGenericType().getTypeName().matches(PATTERN_FOR_GENERIC_INNER_TYPES))\n throw new DefinitionException(format(UNABLE_TO_DEFINE_GENERIC_TYPE,\n field.getGenericType().getTypeName(),\n field.getName(),\n field.getDeclaringClass().getSimpleName(),\n TO_MODEL + field.getDeclaringClass().getSimpleName()));\n if (field.getGenericType().getTypeName().contains(CLASS_STRING))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + GET_STRING_SET, field.getName(), field.getName())).build();\n if (field.getGenericType().getTypeName().contains(CLASS_INTEGER))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + GET_INT_SET, field.getName(), field.getName())).build();\n if (field.getGenericType().getTypeName().contains(CLASS_DOUBLE))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + GET_DOUBLE_SET, field.getName(), field.getName())).build();\n if (field.getGenericType().getTypeName().contains(CLASS_LONG))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + GET_LONG_SET, field.getName(), field.getName())).build();\n if (field.getGenericType().getTypeName().contains(CLASS_BYTE))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + GET_BYTE_SET, field.getName(), field.getName())).build();\n if (field.getGenericType().getTypeName().contains(CLASS_BOOLEAN))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + GET_BOOL_SET, field.getName(), field.getName())).build();\n if (field.getGenericType().getTypeName().contains(CLASS_FLOAT))\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + GET_FLOAT_SET, field.getName(), field.getName())).build();\n\n ClassName newClassMapper = createMapperForInnerClassIfNeeded(getClassFromField(field), generationInfo);\n return CodeBlock.builder().add(of(DOUBLE_TABULATION + GET_ENTITY_SET,\n field.getName(),\n field.getName(),\n newClassMapper,\n TO_MODEL + newClassMapper.simpleName().replace(MAPPER, EMPTY_STRING))).build();\n }",
"Type getForPersistentMapping_Type() {\n return type;\n }",
"public interface MerchandiserEntities {\n\n static Entity outletEntity() {\n return new Entity(\n Entities.OUTLET_ENTITY,\n OutletModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n field(OutletModel.name),\n field(OutletModel.address),\n field(OutletModel.qrCode),\n field(OutletModel.location, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.locationGps, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.locationNetwork, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.images, JavaType.ARRAY, hasManyOutletImages())\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n Entities.OUTLET_TABLE,\n OutletTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n column(OutletModel.name, OutletTable.name),\n column(OutletModel.address, OutletTable.address),\n column(OutletModel.qrCode, OutletTable.qr_code)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n ArrayBuilder.<RelationMapping>create()\n .addAll(ImmutableList.of(\n Entities.locationMapping(OutletModel.location, OutletTable.location_id),\n Entities.locationMapping(OutletModel.locationGps, OutletTable.location_id_gps),\n Entities.locationMapping(OutletModel.locationNetwork, OutletTable.location_id_network),\n outletImagesMapping()\n ))\n .addAll(Arrays.asList(Entities.baseRelationMappingsArray()))\n .build(list -> list.toArray(new RelationMapping[list.size()]))\n )\n );\n }\n\n static Relationship hasOneLocation() {\n return new Relationship(\n Relationship.Type.MANY_TO_ONE,\n Relationship.Name.HAS_ONE,\n Entities.LOCATION_ENTITY\n );\n }\n\n static Relationship hasManyOutletImages() {\n return new Relationship(\n Relationship.Type.ONE_TO_MANY,\n Relationship.Name.HAS_MANY,\n Entities.OUTLET_IMAGE_ENTITY\n );\n }\n\n static VirtualRelationMappingImpl outletImagesMapping() {\n return new VirtualRelationMappingImpl(\n Entities.OUTLET_IMAGE_TABLE,\n Entities.OUTLET_IMAGE_ENTITY,\n ImmutableList.of(\n new ForeignColumnMapping(\n OutletImageTable.outlet_id,\n OutletTable.id\n )\n ),\n OutletModel.images,\n new RelationMappingOptionsImpl(\n RelationMappingOptions.CascadeUpsert.YES,\n RelationMappingOptions.CascadeDelete.YES,\n true\n )\n );\n }\n\n static Entity outletImageEntity() {\n return new Entity(\n Entities.OUTLET_IMAGE_ENTITY,\n OutletImageModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n field(OutletImageModel.title),\n field(OutletImageModel.description),\n field(OutletImageModel.uri),\n field(OutletImageModel.file),\n field(OutletImageModel.fileName),\n field(OutletImageModel.height),\n field(OutletImageModel.width),\n field(OutletImageModel.outlet, JavaType.OBJECT, hasOneOutlet())\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n Entities.OUTLET_IMAGE_TABLE,\n OutletImageTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n column(OutletImageModel.title, OutletImageTable.title),\n column(OutletImageModel.description, OutletImageTable.description),\n column(OutletImageModel.uri, OutletImageTable.uri),\n column(OutletImageModel.file, OutletImageTable.file),\n column(OutletImageModel.fileName, OutletImageTable.file_name),\n column(OutletImageModel.height, OutletImageTable.height),\n column(OutletImageModel.width, OutletImageTable.width)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n ArrayBuilder.<RelationMapping>create()\n .addAll(ImmutableList.of(\n new DirectRelationMappingImpl(\n OUTLET_TABLE,\n OUTLET_ENTITY,\n ImmutableList.of(\n new ForeignColumnMapping(\n OutletImageTable.outlet_id,\n OutletTable.id\n )\n ),\n OutletImageModel.outlet,\n new DirectRelationMappingOptionsImpl(\n RelationMappingOptions.CascadeUpsert.NO,\n RelationMappingOptions.CascadeDelete.NO,\n true,\n DirectRelationMappingOptions.LoadAndDelete.LOAD_AND_DELETE\n )\n )\n ))\n .addAll(Arrays.asList(Entities.baseRelationMappingsArray()))\n .build(list -> list.toArray(new RelationMapping[list.size()]))\n )\n );\n }\n\n static Relationship hasOneOutlet() {\n return new Relationship(\n Relationship.Type.MANY_TO_ONE,\n Relationship.Name.HAS_ONE,\n OUTLET_ENTITY\n );\n }\n\n static Entity locationEntity() {\n return new Entity(\n LOCATION_ENTITY,\n LocationModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n Entities.field(LocationModel.lat),\n Entities.field(LocationModel.lng),\n Entities.field(LocationModel.accuracy)\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n LOCATION_TABLE,\n LocationTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n Entities.column(LocationModel.lat, LocationTable.lat),\n Entities.column(LocationModel.lng, LocationTable.lng),\n Entities.column(LocationModel.accuracy, LocationTable.accuracy)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n Entities.baseRelationMappingsArray()\n )\n );\n }\n}",
"@XmlTransient\n Collection<Autore> getAutoreCollection();",
"private List<Object> serializeActualCollectionMembers(AbstractPersistentCollection collection)\r\n\t{\r\n\t\tList<Object> result = new ArrayList<Object>();\r\n\t\tif (!collection.wasInitialized())\r\n\t\t{\r\n\t\t\tcollection.forceInitialization();\r\n\t\t}\r\n\t\tIterator<Object> itr = collection.entries(null);\r\n\t\twhile (itr.hasNext())\r\n\t\t{\r\n\t\t\tObject next = itr.next();\r\n\t\t\tObject newObj = serialize(next);\r\n\t\t\tresult.add(newObj);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public Map<String, Set<String>> getRelatedEntities() {\n return relatedEntities;\n }",
"public Map<ProvisioningEntity, Object> getTargetEntityToTargetNativeEntity() {\n return targetEntityToTargetNativeEntity;\n }",
"public Collection getGeneralization()\n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{\n \t\tCollection col = new ArrayList();\n \t\tcol = instance.getGeneralization(this.refMofId());\n \t\t\n \t\treturn col; \t\t\n \t}\n \n \treturn super_getGeneralization();\n }",
"public static Map<String, Object> convertToEntityMappingFieldAndValue(Object dto, Field field) {\n Map<String, Object> mapData = new HashMap<>();\n if (null != dto && null != field) {\n Object valueOfField;\n try {\n valueOfField = ObjectUtils.getValueOfField(dto, field.getName());\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot get value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n\n if (validate(MappingUtils.getFieldType(field))) {\n if (!ObjectUtils.fieldIsCollection(field)) {\n Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(valueOfField);\n for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {\n mapData.put(field.getName() + Constants.DOT + entry.getKey(), entry.getValue());\n }\n } else {\n Collection<?> collection = (Collection<?>) valueOfField;\n int index = 0;\n if (!CollectionUtils.isEmpty(collection)) {\n for (Object innerDTO : collection) {\n Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(innerDTO);\n for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {\n mapData.put(field.getName() + \"[\" + index + \"]\" + Constants.DOT + entry.getKey(), entry.getValue());\n }\n index++;\n }\n }\n }\n } else {\n Class<?> fieldConverter = getFieldConverterType(field);\n Object convertValue = convertField(fieldConverter, valueOfField, true);\n mapData.put(getEntityMappingFieldPath(field), convertValue);\n }\n }\n return mapData;\n }",
"public String getCollectionClass ()\n\t{\n\t\treturn getRelationshipImpl().getCollectionClass();\n\t}",
"@Override\n public Class<?> getKeyClass() {\n return this.isCollection() && this.getKeyDataClassDefinition() != null?this.getKeyDataClassDefinition().getDataClass():null;\n }",
"Collection<? extends Object> getCollectionName();",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<E> getEntities() {\n\t\treturn (ArrayList<E>) entities.clone();\n\t}",
"List<Object> getCollectionProxies(PersistentCollection collection)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tEventSource session = (EventSource) sessionFactory.getCurrentSession();\r\n\r\n\t\t\tCollectionPersister persister = session.getFactory().getCollectionPersister(collection.getRole());\r\n\t\t\tif (persister instanceof AbstractCollectionPersister)\r\n\t\t\t{\r\n\t\t\t\tAbstractCollectionPersister collectionPersister = (AbstractCollectionPersister) persister;\r\n\t\t\t\tString className = collectionPersister.getElementType().getName();\r\n\t\t\t\tEntityPersister entityPersister = session.getFactory().getEntityPersister(className);\r\n\t\t\t\tCollectionProxyResolver collectionProxyResolver = getCollectionProxyResolver(collectionPersister, entityPersister);\r\n\t\t\t\tif (session instanceof Session)\r\n\t\t\t\t{\r\n\t\t\t\t\tList<IHibernateProxyDescriptor> proxyDescriptors = collectionProxyResolver.getCollectionProxies(session, collection);\r\n\r\n\t\t\t\t\t// create a new HibernateProxy for each id.\r\n\t\t\t\t\tList<Object> proxies = new ArrayList<Object>();\r\n\t\t\t\t\tfor (IHibernateProxyDescriptor proxyDescriptor : proxyDescriptors)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tASObject as = getASObject(proxyDescriptor);\r\n\t\t\t\t\t\tproxies.add(as);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn proxies;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Throwable ex)\r\n\t\t{\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public static List<String> getEntityMappingFieldPaths(Class<?> dtoType, boolean lookingInner, boolean includeCollection) {\n List<String> fieldPaths = new ArrayList<>();\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n fieldPaths.addAll(getEntityMappingFieldPaths(field, lookingInner, includeCollection));\n }\n return fieldPaths.stream().distinct().collect(Collectors.toList());\n }",
"public Map<String, Class<?>> getEntityTypes() {\n return entityTypes;\n }",
"JavaTypeMapping getMappingWithColumnMapping(Class javaType, boolean serialised, boolean embedded, ClassLoaderResolver clr);",
"public java.lang.String getCollection() {\n return collection_;\n }",
"private Map getMapping() {\n return getIndexOperations().getMapping();\n }",
"public Mapping[] getMapping() {\n return mMapping;\n }",
"public Map getMapping() {\n return mapping;\n }",
"public java.lang.String getCollection() {\n return instance.getCollection();\n }",
"@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }",
"public Map<String, Set<String>> getAggregatorToFields()\n {\n if (aggregatorToField != null) {\n return aggregatorToField;\n }\n\n Map<String, Set<String>> aggregatorToFields = Maps.newHashMap();\n\n for (Map.Entry<String, Set<String>> entry : fieldToAggregator.entrySet()) {\n String field = entry.getKey();\n Set<String> aggregators = entry.getValue();\n\n for (String aggregatorName : aggregators) {\n Set<String> fieldSet = aggregatorToFields.get(aggregatorName);\n\n if (fieldSet == null) {\n fieldSet = Sets.newHashSet();\n aggregatorToFields.put(aggregatorName, fieldSet);\n }\n\n fieldSet.add(field);\n }\n }\n\n aggregatorToField = Maps.newHashMap();\n\n for (Map.Entry<String, Set<String>> entry : aggregatorToFields.entrySet()) {\n aggregatorToField.put(entry.getKey(), Collections.unmodifiableSet(entry.getValue()));\n }\n\n aggregatorToField = Collections.unmodifiableMap(aggregatorToField);\n return aggregatorToField;\n }",
"@XmlTransient\n Collection<Copiaelettronica> getCopiaelettronicaCollection();",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface OrganisationTypeMapper extends EntityMapper<OrganisationTypeDTO, OrganisationType> {\n\n\n @Mapping(target = \"organisations\", ignore = true)\n OrganisationType toEntity(OrganisationTypeDTO organisationTypeDTO);\n\n default OrganisationType fromId(Long id) {\n if (id == null) {\n return null;\n }\n OrganisationType organisationType = new OrganisationType();\n organisationType.setId(id);\n return organisationType;\n }\n}",
"@Mapper(componentModel = \"spring\")\npublic interface SaleMapper extends EntityMapper<SaleDto, Sale> {\n\n @Mapping(source = \"client.id\", target = \"clientId\")\n @Mapping(source = \"client.name\", target = \"clientName\")\n SaleDto toDto(Sale sale);\n\n @Mapping(source = \"clientId\", target = \"client.id\")\n Sale toEntity(SaleDto saleDTO);\n\n default Sale fromId(Long id) {\n if (id == null) {\n return null;\n }\n Sale sale = new Sale();\n sale.setId(id);\n return sale;\n }\n\n}",
"public Map<String, Map<String, String>> getAggregatorToFieldToName()\n {\n if (aggregatorToFieldToName != null) {\n return aggregatorToFieldToName;\n }\n\n Map<String, Set<String>> aggregatorToFields = getAggregatorToFields();\n Map<String, Map<String, String>> tAggregatorToFieldToName = Maps.newHashMap();\n\n for (Map.Entry<String, Set<String>> entry : aggregatorToFields.entrySet()) {\n String aggregatorName = entry.getKey();\n Set<String> fields = entry.getValue();\n\n Map<String, String> fieldToName = Maps.newHashMap();\n tAggregatorToFieldToName.put(aggregatorName, fieldToName);\n\n for (String field : fields) {\n fieldToName.put(field, field +\n DimensionalConfigurationSchema.ADDITIONAL_VALUE_SEPERATOR +\n aggregatorName);\n }\n }\n\n aggregatorToFieldToName = Maps.newHashMap();\n\n for (Map.Entry<String, Map<String, String>> entry : tAggregatorToFieldToName.entrySet()) {\n aggregatorToFieldToName.put(entry.getKey(), Collections.unmodifiableMap(entry.getValue()));\n }\n\n aggregatorToFieldToName = Collections.unmodifiableMap(aggregatorToFieldToName);\n return aggregatorToFieldToName;\n }",
"@Override\n\tpublic String getCollection() {\n\t\treturn null;\n\t}",
"public static boolean isEntityCollection(final ObjectStreamField property) {\r\n\t\t\treturn Collection.class.isAssignableFrom(property.getType());\r\n\t\t}",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface TypeCentreCompositionMapper extends EntityMapper<TypeCentreCompositionDTO, TypeCentreComposition> {\n\n\n @Mapping(target = \"centreCompositions\", ignore = true)\n TypeCentreComposition toEntity(TypeCentreCompositionDTO typeCentreCompositionDTO);\n\n default TypeCentreComposition fromId(Long id) {\n if (id == null) {\n return null;\n }\n TypeCentreComposition typeCentreComposition = new TypeCentreComposition();\n typeCentreComposition.setId(id);\n return typeCentreComposition;\n }\n}",
"java.util.Map<java.lang.String, java.lang.String>\n getFieldMap();",
"Collect getColl();",
"HashMap<String,Object> getCollectionFieldsConfig(String collectionName) {\n HashMap<String,Object> collection = getCollectionConfig(collectionName);\n if (collection == null || !collection.containsKey(\"fields\") ||\n !(collection.get(\"fields\") instanceof HashMap<?,?>)) return null;\n return (HashMap<String,Object>)collection.get(\"fields\");\n }",
"@XmlTransient\n Collection<Libro> getLibroCollection1();",
"public Mapping getMapping() {\n return mapping;\n }",
"public Resource addToCollection(Resource collection, Resource entity) {\n Property hadMember = model.createProperty(\n ProvOntology.getHadMemberExpandedPropertyFullURI());\n model.createStatement(collection, hadMember, entity);\n return collection;\n }",
"@Mapper(componentModel = \"spring\", uses = {ProvinciaMapper.class})\npublic interface CodigoPostalMapper extends EntityMapper<CodigoPostalDTO, CodigoPostal> {\n\n @Mapping(source = \"provincia.id\", target = \"provinciaId\")\n @Mapping(source = \"provincia.nombreProvincia\", target = \"provinciaNombreProvincia\")\n CodigoPostalDTO toDto(CodigoPostal codigoPostal);\n\n @Mapping(source = \"provinciaId\", target = \"provincia\")\n CodigoPostal toEntity(CodigoPostalDTO codigoPostalDTO);\n\n default CodigoPostal fromId(Long id) {\n if (id == null) {\n return null;\n }\n CodigoPostal codigoPostal = new CodigoPostal();\n codigoPostal.setId(id);\n return codigoPostal;\n }\n}",
"@Override\n public Class<E> getPersistentClass() {\n return entityClass;\n }",
"public java.util.List<Mapping> getMapping() { \n\t\tif (myMapping == null) {\n\t\t\tmyMapping = new java.util.ArrayList<Mapping>();\n\t\t}\n\t\treturn myMapping;\n\t}",
"Set<String> getCollectionFields(String collectionName) {\n HashMap<String,Object> fields = getCollectionFieldsConfig(collectionName);\n Set<String> result = fields.keySet();\n // result.remove(getIdFieldName(collectionName));\n return result;\n }",
"public Collection getCollection() {\n return mCollection;\n }",
"public Integer getId()\r\n\t\t{ return mapping.getId(); }",
"protected Collection createCollectionMatchingType(MappingContext mappingContext) {\n Class<?> collectionType = mappingContext.getTypeInformation().getSafeToWriteClass();\n if (collectionType.isAssignableFrom(ArrayList.class)) {\n return new ArrayList();\n } else if (collectionType.isAssignableFrom(LinkedHashSet.class)) {\n return new LinkedHashSet();\n } else {\n throw new ConfigMeMapperException(mappingContext, \"Unsupported collection type '\" + collectionType + \"'\");\n }\n }",
"E mapToEntity(D dto);",
"public Map<String, Object> getRelatedKeys() throws ODataJPAProcessorException;",
"@Mapper(componentModel = \"spring\", uses = {OgWorkPlaceTypesMapper.class})\npublic interface OgWorkPlacesMapper extends EntityMapper<OgWorkPlacesDTO, OgWorkPlaces> {\n\n @Mapping(source = \"idParent.id\", target = \"idParentId\")\n @Mapping(source = \"idParent.name\", target = \"idParentName\")\n @Mapping(source = \"idWorkPlaceTypes.id\", target = \"idWorkPlaceTypesId\")\n @Mapping(source = \"idWorkPlaceTypes.name\", target = \"idWorkPlaceTypesName\")\n OgWorkPlacesDTO toDto(OgWorkPlaces ogWorkPlaces);\n\n @Mapping(source = \"idParentId\", target = \"idParent\")\n @Mapping(source = \"idWorkPlaceTypesId\", target = \"idWorkPlaceTypes\")\n OgWorkPlaces toEntity(OgWorkPlacesDTO ogWorkPlacesDTO);\n\n default OgWorkPlaces fromId(Long id) {\n if (id == null) {\n return null;\n }\n OgWorkPlaces ogWorkPlaces = new OgWorkPlaces();\n ogWorkPlaces.setId(id);\n return ogWorkPlaces;\n }\n}",
"public interface IEmigOclElementMapping<ReferenceType> extends it.univaq.coevolution.emfmigrate.EmigOcl.resource.EmigOcl.IEmigOclReferenceMapping<ReferenceType> {\n\t\n\t/**\n\t * Returns the target object the identifier is mapped to.\n\t */\n\tpublic ReferenceType getTargetElement();\n}",
"public List<DefectEntity> getDefectEntity();",
"@Mapper(componentModel = \"spring\")\npublic interface DataDictItemMapping {\n DataDictItemVo asDataDictItemVo(DataDictItem entity);\n\n DataDictItemOrdinaryVo asOrdinary(DataDictItem entity);\n\n @Mapping(target = \"priority\", ignore = true)\n @Mapping(target = \"lastUpdater\", ignore = true)\n @Mapping(target = \"lastUpdatedAt\", ignore = true)\n @Mapping(target = \"id\", ignore = true)\n @Mapping(target = \"dictId\", ignore = true)\n @Mapping(target = \"creator\", ignore = true)\n @Mapping(target = \"createdAt\", ignore = true)\n DataDictItem asDataDictItem(DataDictItemInsertRo ro);\n\n DataDictItemComplexVo asComplex(DataDictItem entity);\n\n DataDictItem asDataDictItem(DataDictItemUpdateRo ro);\n}",
"public abstract P toEntity();",
"public java.util.List<DataSourceToIndexFieldMapping> getFieldMappings() {\n return fieldMappings;\n }",
"@Override\n\tpublic MappingField getFieldMapping(MappingField field) {\n\t\tString desc = field.getDesc();\n\t\tint i = desc.indexOf(\")\");\n\n\t\tif (i >= 0) {\n\t\t\tdesc = desc.substring(i + 1);\n\t\t\tfield = new MappingField(field.getOwner(), field.getSimpleName(), desc);\n\t\t}\n\n\t\tMappingField mapped = getMapping0(field, fieldMap);\n\t\tif (mapped != null) return mapped;\n\n\t\tif (field.getOwner() != null) {\n\t\t\tString newOwner = classMap.getOrDefault(field.getOwner(), field.getOwner());\n\t\t\tString newDesc;\n\n\t\t\tif (desc.endsWith(\";\")) {\n\t\t\t\tint pos = desc.indexOf('L');\n\t\t\t\tassert pos >= 0;\n\t\t\t\tString cls = desc.substring(pos + 1, desc.length() - 1);\n\t\t\t\tnewDesc = String.format(\"%s%s;\", desc.substring(0, pos + 1), classMap.getOrDefault(cls, cls));\n\t\t\t} else {\n\t\t\t\tnewDesc = desc;\n\t\t\t}\n\n\t\t\tif (!newOwner.equals(field.getOwner()) || !newDesc.equals(field.getDesc())) {\n\t\t\t\treturn new MappingField(newOwner, field.getSimpleName(), newDesc);\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}",
"public List getGroupToAccountMappings() {\n return Collections.unmodifiableList(groupToAccountMappers);\n }",
"protected SimpleTypeImpl getSimpleCollection() {\n // Single property collection retrieve\n SimpleTypeImpl simpleCollectionString = new SimpleTypeImpl(\"simpleNameSpace\", SIMPLE_TYPE_NAME, null, true, null, null, null);\n return simpleCollectionString;\n }",
"ReferenceContainer<E> remap(UnaryOperator<PropertySymbol> mapper);",
"public Map method_1884() {\r\n return this.field_1677;\r\n }",
"void readAssociations() {\n // proxy the collections for lazy loading\n Class c = getClass();\n for (Field f : c.getDeclaredFields()) {\n for (Annotation a : f.getAnnotations()) {\n if (a.annotationType().equals(HasMany.class)) {\n HasManyProxy proxyHandler = new HasManyProxy(this, f, (HasMany) a);\n associationProxies.add(proxyHandler);\n Classes.setFieldValue(this, f.getName(), Proxy.newProxyInstance(List.class.getClassLoader(),\n new Class[]{List.class}, proxyHandler));\n } else if (a.annotationType().equals(HasAndBelongsToMany.class)) {\n // TODO implement\n } else if (a.annotationType().equals(HasOne.class)) {\n // TODO implement\n } else if (a.annotationType().equals(BelongsTo.class)) {\n BelongsTo belongsTo = (BelongsTo) a;\n if (!(f.getGenericType() instanceof Class))\n throw new IllegalAnnotationException(\"@BelongsTo can only be applied to non-generic fields\");\n ActiveRecord ar = (ActiveRecord) Classes.newInstance(f.getGenericType());\n String fk = ActiveRecords.foriegnKey(f.getGenericType());\n if (!belongsTo.foreignKey().equals(\"\")) fk = belongsTo.foreignKey();\n System.out.println(\"foriegn key = \" + fk);\n Object fkValue = Classes.getFieldValue(this, fk);\n if (fkValue != null) {\n ar.read(fkValue);\n Classes.setFieldValue(this, f.getName(), ar);\n }\n }\n }\n }\n }",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface CountryMapper extends EntityMapper<CountryDTO, Country> {\n\n\n @Mapping(target = \"cities\", ignore = true)\n @Mapping(target = \"countryLanguages\", ignore = true)\n Country toEntity(CountryDTO countryDTO);\n\n default Country fromId(Long id) {\n if (id == null) {\n return null;\n }\n Country country = new Country();\n country.setId(id);\n return country;\n }\n}",
"public TransientMap<K, V> asTransient() {\n IEditableCollection asEditable = (IEditableCollection) delegate;\n ITransientCollection asTransient = asEditable.asTransient();\n return new TransientMap<>((ITransientMap) asTransient);\n }",
"Collection<Class<?>> registerEntities();",
"List<D> mapToDTO(List<E> entity);",
"@Override\n\tprotected void cutOffLazyCollections(Direction entity) {\n\t}"
] | [
"0.60577923",
"0.59084976",
"0.5869129",
"0.5749103",
"0.5632085",
"0.55911463",
"0.54207385",
"0.54007494",
"0.53481823",
"0.5343749",
"0.53403205",
"0.53251535",
"0.5297487",
"0.5291264",
"0.52545285",
"0.52490455",
"0.52463454",
"0.5242151",
"0.5215781",
"0.5202221",
"0.5186499",
"0.5160022",
"0.51429385",
"0.51342946",
"0.51261634",
"0.5110859",
"0.5100948",
"0.50868756",
"0.50848466",
"0.508105",
"0.50798607",
"0.5070731",
"0.50638306",
"0.5046969",
"0.50445366",
"0.50209266",
"0.5009935",
"0.49899814",
"0.49899057",
"0.49801365",
"0.4976898",
"0.49721983",
"0.4960745",
"0.49591854",
"0.49584928",
"0.4948223",
"0.49374875",
"0.49199662",
"0.49151155",
"0.4910444",
"0.49064592",
"0.4903929",
"0.49017614",
"0.4900858",
"0.48970175",
"0.48873764",
"0.48856688",
"0.4876167",
"0.48737755",
"0.48687133",
"0.486371",
"0.4850059",
"0.48310858",
"0.48289746",
"0.48242018",
"0.48159933",
"0.48113492",
"0.48074704",
"0.48022464",
"0.47940114",
"0.47929126",
"0.4792577",
"0.47909787",
"0.47894287",
"0.47871402",
"0.478351",
"0.47760326",
"0.47691882",
"0.47679594",
"0.47678554",
"0.47632316",
"0.4753508",
"0.47422266",
"0.4736128",
"0.4730433",
"0.47297397",
"0.4725478",
"0.47226548",
"0.47221723",
"0.47202393",
"0.4714832",
"0.4713668",
"0.47132725",
"0.47124067",
"0.47088614",
"0.4703823",
"0.46932244",
"0.46748224",
"0.4667075",
"0.46603665"
] | 0.46596882 | 100 |
Get key value of entity (data from map). | public static String getKey(String prefix, Class<?> dtoType, Map<String, Object> record) {
StringBuilder finalKey = new StringBuilder(Constants.EMPTY_STRING);
List<String> keys = EntityUtils.getPrimaryKey(getEntityType(dtoType));
for (String key : keys) {
if (!StringUtils.isEmpty(prefix)) {
key = prefix + Constants.DOT + key;
}
Object value = record.get(key);
finalKey.append(null != value ? value.toString() : Constants.EMPTY_STRING)
.append(Constants.UNDERSCORE);
}
return finalKey.deleteCharAt(finalKey.length() - 1).toString(); // remove last underscore
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getKey(Object entity);",
"Object getKey();",
"public Value get(Key key);",
"public Value get(Key key) ;",
"<T> T getValue(DataKey<T> key);",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"public V get(Object key) { return _map.get(key); }",
"public Object get(String key);",
"@Override\n\tpublic V get(Object key) {\n\t\treturn map.get(key);\n\t}",
"public MapEntityKey getMapEntityKey() {\n\t\treturn mapEntityKey;\n\t}",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"Object get(Object key);",
"Object get(String key);",
"Object get(String key);",
"protected abstract T retrieveEntry(PersistentEntity persistentEntity, Serializable key);",
"V get(Object key);",
"String get(Integer key);",
"public K getKey();",
"public K getKey();",
"K getKey();",
"K getKey();",
"K getKey();",
"K getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"public String getKey()\r\n {\r\n return getValue().toString();\r\n }",
"public Object getKey() {\r\n return key;\r\n }",
"abstract public String getKey();",
"public Object getKey()\n {\n return key;\n }",
"int getKey();",
"int getKey();",
"private DataValue getValueForKey(String key) {\n DataValue value = valueMap.get(key);\n if (value == null) {\n return DataValue.NO_VALUE;\n } else {\n return value;\n }\n }",
"String getValue(String type, String key);",
"public T get(K key);",
"public V getValue(K key);",
"public V getValue(K key);",
"TemplateModel getKey();",
"public <K, V> V getSpecific(K key, MappingValueKey<V> valueKey);",
"V getEntry(K key);",
"public <T> T get(TypedKey<T> key)\n\t{\n\t\tObject value = map.get(Objects.requireNonNull(key));\n\t\treturn (value == null) ? key.getDefaultValue() : key.cast(value);\n\t}",
"public V get(K key);",
"private <T, E> T getKeyByValue(Map<T, E> map, E value) {\n for (Map.Entry<T, E> entry : map.entrySet()) {\n if (value.equals(entry.getValue())) {\n return entry.getKey();\n }\n }\n return null;\n }",
"public String get(String key) {\n return this.map.get(key);\n }",
"public String get(int key) {\n String sql = \"SELECT data_val FROM data_map WHERE data_key = ?\";\n\n String value = null;\n try (Connection con = this.connect();\n PreparedStatement pstmt = con.prepareStatement(sql)) {\n pstmt.setInt(1, key);\n ResultSet rs = pstmt.executeQuery();\n\n if (!rs.isClosed()) {\n value = rs.getString(\"data_val\");\n rs.close();\n }\n }\n catch (SQLException e) {\n value = null;\n }\n\n return value;\n }",
"org.apache.calcite.avatica.proto.Common.DatabaseProperty getKey();",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"public Object get(String key) {\n return objectMap.get(key);\n }",
"private int entityValue(String name)\n\t{\n\t\treturn map.value(name);\n\t}",
"public String get(int key){\n\t\treturn(hashMap[key]);\t\t\n\t}",
"public String get(String key) {\n return getData().get(key);\n }",
"@Override\n\t\tpublic K getKey(){\n\t\t\treturn key;\n\t\t}",
"public Object getKey() {\n return key;\n }",
"public Object get(String key) {\r\n\t\treturn objectMap.get(key);\r\n\t}",
"V get(final K key);",
"@Override\r\n\t\tpublic K getKey() {\n\t\t\treturn pair.getFirst();\r\n\t\t}",
"String getKey(int index);",
"public String getKey() { \n\t\treturn getKeyElement().getValue();\n\t}",
"MongoDBEntry<K, V> get(byte[] key);",
"BListKey getKey();",
"T get(String key);",
"public <K> Object getSpecific(K key, String valueKey);",
"public V get(String key);",
"@Override\n public int getKey() {\n return this.key;\n }",
"public abstract V get(K key);",
"public Object getKey() { return name; }",
"public Object get(String key){ \r\n\t\treturn this.context.getValue(key);\r\n\t}",
"@Override\n\t\tpublic K getKey() {\n\t\t\treturn k;\n\t\t}",
"public abstract T get(String key);",
"protected abstract Object _get(String key);",
"StoragePrimitive get(String key);",
"public V get(K key)\r\n\t{\r\n\t\tEntry retrieve = data.get(new Entry(key, null));\r\n\t\t\r\n\t\tif(retrieve != null)\r\n\t\t{\r\n\t\t\treturn retrieve.value;\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"public K getKey(V value);",
"com.google.protobuf.ByteString getKeyBytes();",
"com.google.protobuf.ByteString getKeyBytes();",
"public K getKey() {\n return key;\n }",
"public Integer getKey()\r\n {\r\n return key;\r\n }"
] | [
"0.76912075",
"0.71706027",
"0.70179033",
"0.69140357",
"0.68663347",
"0.68397224",
"0.68397224",
"0.68397224",
"0.68397224",
"0.68397224",
"0.68397224",
"0.68337864",
"0.6704783",
"0.6699968",
"0.6672874",
"0.6642266",
"0.6642266",
"0.6642266",
"0.6642266",
"0.6632736",
"0.6631391",
"0.6631391",
"0.6587117",
"0.656162",
"0.65506476",
"0.65405464",
"0.65405464",
"0.65343666",
"0.65343666",
"0.65343666",
"0.65343666",
"0.6532526",
"0.6532526",
"0.6532526",
"0.6532526",
"0.6532526",
"0.6532526",
"0.6532526",
"0.6532526",
"0.6532526",
"0.6532526",
"0.6532526",
"0.6532526",
"0.6532526",
"0.6525517",
"0.64496386",
"0.64495045",
"0.63759685",
"0.6367682",
"0.6367682",
"0.63661903",
"0.6365274",
"0.63570166",
"0.63334125",
"0.63334125",
"0.63238204",
"0.63233054",
"0.6319406",
"0.6313616",
"0.63121337",
"0.6294055",
"0.62916183",
"0.62875503",
"0.62734514",
"0.6259351",
"0.6259351",
"0.6259351",
"0.6259351",
"0.6259351",
"0.6259351",
"0.6259351",
"0.62540245",
"0.6233269",
"0.6229694",
"0.6216665",
"0.62135243",
"0.620858",
"0.6196974",
"0.6180778",
"0.61649346",
"0.61603665",
"0.6156505",
"0.6141885",
"0.6140933",
"0.6140902",
"0.6134082",
"0.61326206",
"0.6124486",
"0.61095417",
"0.6108062",
"0.6101887",
"0.606183",
"0.6049435",
"0.6038225",
"0.60321933",
"0.60321015",
"0.6029845",
"0.6024802",
"0.6024802",
"0.602473",
"0.6014097"
] | 0.0 | -1 |
Get Field mapping with Entity key. | public static String getFieldMappingEntityKey(Class<?> dtoType) {
if (null != dtoType) {
List<String> keys = EntityUtils.getPrimaryKey(getEntityType(dtoType));
List<Field> fields = ObjectUtils.getFields(dtoType, true);
for (Field field : fields) {
String mappingField = getEntityMappingFieldPath(field);
if (keys.contains(mappingField)) {
return mappingField;
}
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public KeyField getKeyField() {\n\treturn keyField;\n }",
"String getKey(Object entity);",
"public abstract FieldKey getParticipantIDFieldKey(Map<LinkToStudyKeys, FieldKey> fieldKeyMap);",
"public MapEntityKey getMapEntityKey() {\n\t\treturn mapEntityKey;\n\t}",
"public KeyField getKey() {\n\treturn keyField;\n }",
"protected Field getPrimaryKeyField() {\n Field returnField = null;\n Field[] fieds = MetaData.class.getDeclaredFields();\n for (Field field : fieds) {\n Id annotation = field.getAnnotation(Id.class);\n EmbeddedId annotationEmb = field.getAnnotation(EmbeddedId.class);\n if (annotation != null || annotationEmb != null) {\n return field;\n }\n }\n return returnField;\n }",
"private Object getKeyClassField (String keyClassName, \n\t\t\t\tString keyClassFieldName)\n\t\t\t{\n\t\t\t\tModel model = getModel();\n\t\t\t\tObject keyClassField = \n\t\t\t\t\tmodel.getField(keyClassName, keyClassFieldName);\n\n\t\t\t\tif (keyClassField == null)\t// this is an inherited field\n\t\t\t\t{\n\t\t\t\t\tkeyClassField = model.getInheritedField(\n\t\t\t\t\t\tkeyClassName, keyClassFieldName);\n\t\t\t\t}\n\n\t\t\t\treturn keyClassField;\n\t\t\t}",
"private Map getKeyFields ()\n\t\t\t{\n\t\t\t\tModel model = getModel();\n\t\t\t\tString pcClassName = getClassName();\n\t\t\t\tPersistenceClassElement pce = \n\t\t\t\t\tmodel.getPersistenceClass(pcClassName);\n\t\t\t\tPersistenceFieldElement[] fields = pce.getFields();\n\t\t\t\tMap keyFields = new HashMap();\n\n\t\t\t\tif (fields != null)\n\t\t\t\t{\n\t\t\t\t\tfor (int i = 0; i < fields.length; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tPersistenceFieldElement pfe = fields[i];\n\t\t\t\t\t\tif (pfe.isKey())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString name = pfe.getName();\n\t\t\t\t\t\t\tkeyFields.put(name, \n\t\t\t\t\t\t\t\tmodel.getField(pcClassName, name));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn keyFields;\n\t\t\t}",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // KEY\n return KEY;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // KEY\n return KEY;\n default:\n return null;\n }\n }",
"public Field[] getKeyFields();",
"@Override\n\tpublic String getField(String key) {\n\t\treturn gp.getValue(key);\n\t}",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 2: // KEY\n return KEY;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 2: // KEY\n return KEY;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // ENTITY\r\n return ENTITY;\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // ENTITY_IDS\n return ENTITY_IDS;\n default:\n return null;\n }\n }",
"private com.hps.july.persistence.CarKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.CarKey keyClass = new com.hps.july.persistence.CarKey();\n keyClass.car = f0;\n return keyClass;\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // IDENTIFIER\n return IDENTIFIER;\n case 2: // KEY\n return KEY;\n default:\n return null;\n }\n }",
"java.util.Map<java.lang.String, java.lang.String>\n getFieldMap();",
"Entity getMappedBy();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // ENTITY_ID\n return ENTITY_ID;\n case 3: // START_TIME\n return START_TIME;\n case 4: // END_TIME\n return END_TIME;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // ENTITY_ID\r\n return ENTITY_ID;\r\n default:\r\n return null;\r\n }\r\n }",
"public static String getEntityMappingFieldPath(Class<?> dtoType, String fieldPath) {\n if (null != dtoType && !StringUtils.isEmpty(fieldPath)) {\n String[] paths = fieldPath.split(Constants.DOT_REGEX);\n Field field = ObjectUtils.getField(dtoType, paths[0], true);\n String entityFieldName = getEntityMappingFieldPath(field);\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (paths.length > 1 && validate(innerClass)) {\n String nextPath = fieldPath.substring(fieldPath.indexOf(Constants.DOT) + 1);\n entityFieldName = entityFieldName + Constants.DOT + getEntityMappingFieldPath(innerClass, nextPath);\n }\n return entityFieldName;\n }\n return null;\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // ENTITY_ID\n return ENTITY_ID;\n case 3: // PART_ID\n return PART_ID;\n case 4: // START_TIME\n return START_TIME;\n case 5: // END_TIME\n return END_TIME;\n default:\n return null;\n }\n }",
"public String[] getFieldNameMapping() {\r\n return null;\r\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 2: // KEY\n return KEY;\n case 3: // VALUE\n return VALUE;\n default:\n return null;\n }\n }",
"public static Map<String, Object> getField(Map<String, Object> model, String fieldName) {\n\n Map<String, Object> targetField = null;\n for (Map<String, Object> field : getFields(model)) {\n if (fieldName.equals(field.get(ModelConstant.NAME))) {\n targetField = field;\n break;\n }\n }\n return targetField;\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PKTABLE_DB\n return PKTABLE_DB;\n case 2: // PKTABLE_NAME\n return PKTABLE_NAME;\n case 3: // PKCOLUMN_NAME\n return PKCOLUMN_NAME;\n case 4: // FKTABLE_DB\n return FKTABLE_DB;\n case 5: // FKTABLE_NAME\n return FKTABLE_NAME;\n case 6: // FKCOLUMN_NAME\n return FKCOLUMN_NAME;\n case 7: // KEY_SEQ\n return KEY_SEQ;\n case 8: // UPDATE_RULE\n return UPDATE_RULE;\n case 9: // DELETE_RULE\n return DELETE_RULE;\n case 10: // FK_NAME\n return FK_NAME;\n case 11: // PK_NAME\n return PK_NAME;\n case 12: // ENABLE_CSTR\n return ENABLE_CSTR;\n case 13: // VALIDATE_CSTR\n return VALIDATE_CSTR;\n case 14: // RELY_CSTR\n return RELY_CSTR;\n case 15: // CAT_NAME\n return CAT_NAME;\n default:\n return null;\n }\n }",
"java.lang.String getFieldOrThrow(\n java.lang.String key);",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // ENTITY_IDS\n return ENTITY_IDS;\n case 3: // START_TIME\n return START_TIME;\n case 4: // END_TIME\n return END_TIME;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // ENTITY_IDS\n return ENTITY_IDS;\n case 3: // START_TIME\n return START_TIME;\n case 4: // END_TIME\n return END_TIME;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // ENTITY_IDS\n return ENTITY_IDS;\n case 3: // START_TIME\n return START_TIME;\n case 4: // END_TIME\n return END_TIME;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // ENTITY_IDS\n return ENTITY_IDS;\n case 3: // START_TIME\n return START_TIME;\n case 4: // END_TIME\n return END_TIME;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // ENTITY_IDS\n return ENTITY_IDS;\n case 3: // START_TIME\n return START_TIME;\n case 4: // END_TIME\n return END_TIME;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // DATA_MAP\n return DATA_MAP;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // DATA_MAP\n return DATA_MAP;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // DATA_MAP\n return DATA_MAP;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // DATA_MAP\n return DATA_MAP;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // DATA_MAP\n return DATA_MAP;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // DATA_MAP\n return DATA_MAP;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // DATA_MAP\n return DATA_MAP;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // DATA_MAP\n return DATA_MAP;\n default:\n return null;\n }\n }",
"public static String getEntityMappingFieldPath(Field field) {\n List<String> fieldPaths = getEntityMappingFieldPaths(field, false, true);\n if (fieldPaths.size() > 0) {\n return fieldPaths.get(0);\n }\n return null;\n }",
"public Object getFieldValue(String fieldName, Object entity) {\n try {\n return new PropertyDescriptor(fieldName, entity.getClass()).getReadMethod()\n .invoke(entity);\n } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException\n | IntrospectionException | SecurityException e) {\n return null;\n }\n }",
"public String getMappedFieldName(String cn)\n { // map old name to a new name\n return DBProvider.translateColumnName(cn);\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_PROFILE_ID\n return USER_PROFILE_ID;\n case 2: // ENTITY_ID\n return ENTITY_ID;\n case 3: // ENTITY_TYPE\n return ENTITY_TYPE;\n default:\n return null;\n }\n }",
"String getFieldName();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ENTRY_ID\n return ENTRY_ID;\n case 2: // BROKER_ID\n return BROKER_ID;\n case 3: // PLATFORM\n return PLATFORM;\n case 4: // ENG_NAME\n return ENG_NAME;\n case 5: // CN_NAME\n return CN_NAME;\n case 6: // NOTE\n return NOTE;\n case 10: // TECH_PLATFORM_ENV\n return TECH_PLATFORM_ENV;\n case 11: // ACCESS_NAME\n return ACCESS_NAME;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 2: // TARGET_KEY\n return TARGET_KEY;\n case 3: // SUB_ACCOUNT_ID\n return SUB_ACCOUNT_ID;\n case 4: // TARGET_TYPE\n return TARGET_TYPE;\n case 5: // LONG_POSITION\n return LONG_POSITION;\n case 6: // SHORT_POSITION\n return SHORT_POSITION;\n case 7: // NET_POSITION\n return NET_POSITION;\n case 8: // POSITION_AVG_PRICE\n return POSITION_AVG_PRICE;\n case 20: // CREATE_TIMESTAMP_MS\n return CREATE_TIMESTAMP_MS;\n case 21: // LASTMODIFY_TIMESTAMP_MS\n return LASTMODIFY_TIMESTAMP_MS;\n default:\n return null;\n }\n }",
"@AutoEscape\n\tpublic String getFieldId();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // QUERY\n return QUERY;\n case 3: // DATA_MAP\n return DATA_MAP;\n default:\n return null;\n }\n }",
"public String getFieldName();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PARAM_MAP\n return PARAM_MAP;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EXTRA_DATA_MAP\n return EXTRA_DATA_MAP;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EXAM_ID\n return EXAM_ID;\n case 2: // PARAM\n return PARAM;\n default:\n return null;\n }\n }",
"public QueryColumnToEntityFieldMapping(int columnIndex, Object domainFieldId) {\n this(columnIndex, domainFieldId, null, null);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EXAM_ID\n return EXAM_ID;\n default:\n return null;\n }\n }",
"@Override\n\tpublic Field get(Integer entityID) {\n\t\treturn null;\n\t}",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACTIVATION_CODEE\n return ACTIVATION_CODEE;\n case 2: // BIND_EMAIL_SOURCE\n return BIND_EMAIL_SOURCE;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ROWKEY\n return ROWKEY;\n case 2: // START_TIME\n return START_TIME;\n case 3: // END_TIME\n return END_TIME;\n case 4: // DEVICE_NAME\n return DEVICE_NAME;\n case 5: // MATERIAL_NAME\n return MATERIAL_NAME;\n case 6: // GROUP\n return GROUP;\n case 7: // SHFIT\n return SHFIT;\n case 8: // ITEMS\n return ITEMS;\n default:\n return null;\n }\n }",
"String getJavaFieldName();",
"com.google.privacy.dlp.v2.FieldId getFieldId();",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // POSITION_ID\n return POSITION_ID;\n case 3: // TYPE\n return TYPE;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PARSE_ID\n return PARSE_ID;\n case 2: // CONSTITUENT_INDEX\n return CONSTITUENT_INDEX;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // OBJECT_ID\r\n return OBJECT_ID;\r\n case 2: // DIRECTION\r\n return DIRECTION;\r\n case 3: // FROM_X\r\n return FROM_X;\r\n case 4: // FROM_Y\r\n return FROM_Y;\r\n case 5: // TO_X\r\n return TO_X;\r\n case 6: // TO_Y\r\n return TO_Y;\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // OBJECT_ID\r\n return OBJECT_ID;\r\n case 2: // DIRECTION\r\n return DIRECTION;\r\n case 3: // FROM_X\r\n return FROM_X;\r\n case 4: // FROM_Y\r\n return FROM_Y;\r\n case 5: // TO_X\r\n return TO_X;\r\n case 6: // TO_Y\r\n return TO_Y;\r\n default:\r\n return null;\r\n }\r\n }",
"Object getKey();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // NAME\n return NAME;\n case 3: // DESCRIPTION\n return DESCRIPTION;\n case 4: // KEY_VALUE_MAPS\n return KEY_VALUE_MAPS;\n case 5: // IDENTIFIED_RISKS\n return IDENTIFIED_RISKS;\n case 6: // CONTROLS\n return CONTROLS;\n case 7: // CONSIDERED_ASSETS\n return CONSIDERED_ASSETS;\n case 8: // CONSIDERED_THREAT_AGENTS\n return CONSIDERED_THREAT_AGENTS;\n default:\n return null;\n }\n }",
"@Override\n\tpublic MappingField getFieldMapping(MappingField field) {\n\t\tString desc = field.getDesc();\n\t\tint i = desc.indexOf(\")\");\n\n\t\tif (i >= 0) {\n\t\t\tdesc = desc.substring(i + 1);\n\t\t\tfield = new MappingField(field.getOwner(), field.getSimpleName(), desc);\n\t\t}\n\n\t\tMappingField mapped = getMapping0(field, fieldMap);\n\t\tif (mapped != null) return mapped;\n\n\t\tif (field.getOwner() != null) {\n\t\t\tString newOwner = classMap.getOrDefault(field.getOwner(), field.getOwner());\n\t\t\tString newDesc;\n\n\t\t\tif (desc.endsWith(\";\")) {\n\t\t\t\tint pos = desc.indexOf('L');\n\t\t\t\tassert pos >= 0;\n\t\t\t\tString cls = desc.substring(pos + 1, desc.length() - 1);\n\t\t\t\tnewDesc = String.format(\"%s%s;\", desc.substring(0, pos + 1), classMap.getOrDefault(cls, cls));\n\t\t\t} else {\n\t\t\t\tnewDesc = desc;\n\t\t\t}\n\n\t\t\tif (!newOwner.equals(field.getOwner()) || !newDesc.equals(field.getDesc())) {\n\t\t\t\treturn new MappingField(newOwner, field.getSimpleName(), newDesc);\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}",
"private FieldIdItem parseAndResolveField(ClassPath.ClassDef classDef, String field) {\n String[] parts = field.split(\":\");\n if (parts.length != 2) {\n throw new RuntimeException(\"Invalid field descriptor \" + field);\n }\n \n String fieldName = parts[0];\n String fieldType = parts[1];\n \n StringIdItem fieldNameItem = StringIdItem.lookupStringIdItem(dexFile, fieldName);\n if (fieldNameItem == null) {\n return null;\n }\n \n TypeIdItem fieldTypeItem = TypeIdItem.lookupTypeIdItem(dexFile, fieldType);\n if (fieldTypeItem == null) {\n return null;\n }\n \n ClassPath.ClassDef fieldClass = classDef;\n \n do {\n TypeIdItem classTypeItem = TypeIdItem.lookupTypeIdItem(dexFile, fieldClass.getClassType());\n if (classTypeItem == null) {\n continue;\n }\n \n FieldIdItem fieldIdItem = FieldIdItem.lookupFieldIdItem(dexFile, classTypeItem, fieldTypeItem, fieldNameItem);\n if (fieldIdItem != null) {\n return fieldIdItem;\n }\n \n fieldClass = fieldClass.getSuperclass();\n } while (fieldClass != null);\n \n return null;\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_EMPLOYEE_DOS\n return USER_EMPLOYEE_DOS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"public MappingField getMappingField(String name) {\n Iterator fieldIterator = getMappingFieldsInternal().iterator();\n\n while (fieldIterator.hasNext()) {\n MappingField field = (MappingField) fieldIterator.next();\n\n if (name.equals(field.getName())) {\n return field;\n }\n }\n\n return null;\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_TOKEN\n return ACCESS_TOKEN;\n case 2: // PATH\n return PATH;\n case 3: // NAME\n return NAME;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // TOKEN_NUM\n return TOKEN_NUM;\n case 2: // TOKEN\n return TOKEN;\n case 3: // OFFSETS\n return OFFSETS;\n case 4: // SENTENCE_POS\n return SENTENCE_POS;\n case 5: // LEMMA\n return LEMMA;\n case 6: // POS\n return POS;\n case 7: // ENTITY_TYPE\n return ENTITY_TYPE;\n case 8: // MENTION_ID\n return MENTION_ID;\n case 9: // EQUIV_ID\n return EQUIV_ID;\n case 10: // PARENT_ID\n return PARENT_ID;\n case 11: // DEPENDENCY_PATH\n return DEPENDENCY_PATH;\n case 12: // LABELS\n return LABELS;\n case 13: // MENTION_TYPE\n return MENTION_TYPE;\n default:\n return null;\n }\n }",
"private String getKey (String keyBase, Object field)\n\t{\n\t\treturn ((field == null) ? keyBase : (keyBase + \"_related\"));\t//NOI18N\n\t}",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // PRODUCT_ID\n return PRODUCT_ID;\n case 3: // DESCRIPTION\n return DESCRIPTION;\n case 4: // MARKET_PRICE\n return MARKET_PRICE;\n case 5: // PRICE\n return PRICE;\n case 6: // AMOUNT\n return AMOUNT;\n case 7: // ORDER\n return ORDER;\n case 8: // SALED_NUM\n return SALED_NUM;\n case 9: // CODE\n return CODE;\n case 10: // TYPE\n return TYPE;\n case 11: // DISPLAY\n return DISPLAY;\n case 12: // SPEC_MAP\n return SPEC_MAP;\n case 13: // IMG\n return IMG;\n case 14: // IMG_WIDTH\n return IMG_WIDTH;\n case 15: // IMG_HEIGHT\n return IMG_HEIGHT;\n default:\n return null;\n }\n }",
"private Field getFieldByIndex(List<Field> mappedFields, int fieldIndex) {\n for (Field field : mappedFields) {\n if (field.getIndex().intValue() == fieldIndex) {\n return field;\n }\n }\n return null;\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_TOKEN\n return ACCESS_TOKEN;\n case 2: // EXPERIMENT_ID\n return EXPERIMENT_ID;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_TOKEN\n return ACCESS_TOKEN;\n case 2: // EXPERIMENT_ID\n return EXPERIMENT_ID;\n default:\n return null;\n }\n }",
"public QueryColumnToEntityFieldMapping(int columnIndex, QueryColumnToEntityFieldMapping foreignIdColumnMapping, Object foreignEntityFieldId) {\n this(columnIndex, foreignEntityFieldId, null, foreignIdColumnMapping);\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // INSTITUTION_ID\n return INSTITUTION_ID;\n case 2: // PRODUCTIDS\n return PRODUCTIDS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMAIL_ID\n return EMAIL_ID;\n case 2: // NAME\n return NAME;\n case 3: // PASSWORD\n return PASSWORD;\n case 4: // COUNTRY\n return COUNTRY;\n case 5: // PHONE\n return PHONE;\n case 6: // LAST_LOGGED_IN\n return LAST_LOGGED_IN;\n case 7: // ACTIVE\n return ACTIVE;\n case 8: // NEWSLETTER\n return NEWSLETTER;\n case 9: // REGISTERED\n return REGISTERED;\n default:\n return null;\n }\n }",
"public java.lang.String getFieldId() {\n return fieldId;\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_TOKEN\n return ACCESS_TOKEN;\n case 2: // PATH\n return PATH;\n default:\n return null;\n }\n }"
] | [
"0.6366806",
"0.63017136",
"0.62952375",
"0.62418664",
"0.6234043",
"0.6122273",
"0.59791464",
"0.5929422",
"0.59225553",
"0.59225553",
"0.5874106",
"0.5870285",
"0.58563846",
"0.58563846",
"0.5851669",
"0.58503723",
"0.5780109",
"0.5769939",
"0.57692415",
"0.57624936",
"0.5756626",
"0.57552904",
"0.57483524",
"0.57470363",
"0.5739889",
"0.57299405",
"0.57196563",
"0.5698329",
"0.5687113",
"0.56823784",
"0.56823784",
"0.56823784",
"0.56823784",
"0.56823784",
"0.5672783",
"0.5672783",
"0.5672783",
"0.5672783",
"0.5672783",
"0.5672783",
"0.5672783",
"0.5672783",
"0.56594735",
"0.56278044",
"0.5623419",
"0.55966306",
"0.55938184",
"0.5586351",
"0.5577308",
"0.5577308",
"0.5577308",
"0.5567427",
"0.5559899",
"0.555793",
"0.5557846",
"0.5535253",
"0.55303174",
"0.5529155",
"0.5528271",
"0.55197316",
"0.5517617",
"0.5517617",
"0.5517617",
"0.5517617",
"0.5517617",
"0.5517617",
"0.5517617",
"0.55173534",
"0.5515436",
"0.55116653",
"0.5502632",
"0.54966164",
"0.54846793",
"0.5483997",
"0.54795235",
"0.54720956",
"0.5469567",
"0.5469567",
"0.5465353",
"0.5460936",
"0.54595834",
"0.5458675",
"0.5454677",
"0.54511255",
"0.54511255",
"0.54416925",
"0.5430233",
"0.5430233",
"0.54289865",
"0.54227185",
"0.54221994",
"0.5413487",
"0.54038036",
"0.53971165",
"0.53971165",
"0.53936136",
"0.5391061",
"0.5386455",
"0.5379622",
"0.5379412"
] | 0.68964356 | 0 |
Get key value of entity (data from object). | public static String getKey(Class<?> dtoType, Object record) {
StringBuilder finalKey = new StringBuilder(Constants.EMPTY_STRING);
List<String> keys = EntityUtils.getPrimaryKey(getEntityType(dtoType));
for (String key : keys) {
try {
Object value = ObjectUtils.getValueOfField(record, key);
finalKey.append(null != value ? value.toString() : Constants.EMPTY_STRING)
.append(Constants.UNDERSCORE);
} catch (IllegalAccessException e) {
throw new FieldInaccessibleException("Cannot get value for field "
+ record.getClass().getSimpleName() + "." + key, e);
}
}
return finalKey.deleteCharAt(finalKey.length() - 1).toString(); // remove last underscore
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getKey(Object entity);",
"Object getKey();",
"public Value get(Key key);",
"<T> T getValue(DataKey<T> key);",
"public Value get(Key key) ;",
"public String getKey(Object obj) {\n\t\tString result = null;\n\t\ttry {\n\t\t\tint pos = this.keyValue.indexOfValue(obj);\n\t\t\tif (pos >= 0) {\n\t\t\t\treturn this.keyValue.getKeyByIndex(pos);\n\t\t\t}\n\t\t} catch (ConcurrentModificationException e) {\n\t\t}\n\t\treturn result;\n\t}",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"public Object get(String key);",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"Object get(Object key);",
"V get(Object key);",
"public Object getKey() {\r\n return key;\r\n }",
"public String getKey()\r\n {\r\n return getValue().toString();\r\n }",
"Object get(String key);",
"Object get(String key);",
"public Object getKey()\n {\n return key;\n }",
"public K getKey();",
"public K getKey();",
"TemplateModel getKey();",
"K getKey();",
"K getKey();",
"K getKey();",
"K getKey();",
"public Object getObject(String key);",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"protected abstract T retrieveEntry(PersistentEntity persistentEntity, Serializable key);",
"public Object getKey() {\n return key;\n }",
"abstract public String getKey();",
"public Object getKey() { return name; }",
"String get(Integer key);",
"public T get(K key);",
"int getKey();",
"int getKey();",
"@Override\n\t\tpublic K getKey(){\n\t\t\treturn key;\n\t\t}",
"public V getValue(K key);",
"public V getValue(K key);",
"org.apache.calcite.avatica.proto.Common.DatabaseProperty getKey();",
"public V get(K key);",
"String getValue(String type, String key);",
"ISObject get(String key);",
"public String getKey() {\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tif (getLineNo() != null) {\r\n\t\t\tbuilder.append(getLineNo());\r\n\t\t} else if (this.getEntityId() != null) {\r\n\t\t\tbuilder.append(getEntityId());\r\n\t\t}\r\n\t\treturn builder.toString();\r\n\t}",
"protected K getKey() {\n return this.key;\n }",
"Object getClientProperty(Object key);",
"public <T> T readKey() {\n return readObject();\n }",
"MongoDBEntry<K, V> get(byte[] key);",
"public <K> Object getSpecific(K key, String valueKey);",
"public MapEntityKey getMapEntityKey() {\n\t\treturn mapEntityKey;\n\t}",
"public Object getTransient(Object key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"public CompoundValue getValue(Object key);",
"public K getKey() {\n return key;\n }",
"BListKey getKey();",
"public V get(String key);",
"String getKey(int index);",
"public K getKey(V value);",
"StoragePrimitive get(String key);",
"@Override\n\t\tpublic K getKey() {\n\t\t\treturn k;\n\t\t}",
"@Override\n public int getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"V getEntry(K key);",
"public Object get(String key){ \r\n\t\treturn this.context.getValue(key);\r\n\t}",
"Resolvable<String> getKey(int index);",
"public K getKey()\r\n\t\t{\r\n\t\t\treturn key;\r\n\t\t}",
"public Object get(Object key) {\n byte[] byteKey = keySerde.toBytes(key);\n byte[] result = null;\n try {\n result = db.get(byteKey);\n } catch (RocksDBException e) {\n log.error(\"can not get the value for key: \" + key);\n }\n\n if (result == null) {\n log.info(key + \" does not exist in the rocksDb\");\n return null;\n } else {\n return valueSerde.fromBytes(result);\n }\n }",
"public Object get(String key) {\r\n\t\treturn objectMap.get(key);\r\n\t}",
"public Object getGenericEntityByPrimaryKey(Class ent, Serializable key) throws RepositoryException{\n\t\treturn DatanucleusCRUDUtils.getById(ent, key);\n\t}",
"public String getKey() {\n if (model == null)\n return strKey;\n return model.getKey();\n }",
"public Object get(String key) {\n return objectMap.get(key);\n }",
"V get(final K key);",
"protected abstract Object _get(String key);",
"public Integer getKey()\r\n {\r\n return key;\r\n }",
"T get(String key);",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }"
] | [
"0.81916046",
"0.7396458",
"0.69614124",
"0.69156927",
"0.6857407",
"0.6742802",
"0.6720838",
"0.6720838",
"0.6720838",
"0.6720838",
"0.67061347",
"0.67055845",
"0.67055845",
"0.67055845",
"0.67055845",
"0.67055845",
"0.67055845",
"0.66980284",
"0.66899383",
"0.6674348",
"0.66232896",
"0.66165346",
"0.66165346",
"0.6607904",
"0.65793425",
"0.65793425",
"0.6571468",
"0.6569519",
"0.6569519",
"0.6569519",
"0.6569519",
"0.6553871",
"0.6505442",
"0.6505442",
"0.6505442",
"0.6505442",
"0.6505442",
"0.6505442",
"0.6505442",
"0.6505442",
"0.6505442",
"0.6505442",
"0.6505442",
"0.6505442",
"0.6505442",
"0.6473848",
"0.6459206",
"0.6456664",
"0.6444362",
"0.63553244",
"0.63420314",
"0.6320487",
"0.6320487",
"0.62980497",
"0.62945557",
"0.62945557",
"0.6293568",
"0.62901926",
"0.6284321",
"0.62816",
"0.62782514",
"0.62606853",
"0.62566954",
"0.6249951",
"0.62344277",
"0.62077373",
"0.620291",
"0.620132",
"0.61955994",
"0.61955994",
"0.61955994",
"0.61955994",
"0.61955994",
"0.61955994",
"0.61955994",
"0.6193717",
"0.6169547",
"0.61652076",
"0.6138647",
"0.61303484",
"0.61278105",
"0.6125388",
"0.6123135",
"0.61137486",
"0.61083055",
"0.610463",
"0.60914284",
"0.6091424",
"0.60880893",
"0.6077858",
"0.60720164",
"0.60626405",
"0.60616624",
"0.6057516",
"0.60564446",
"0.60563827",
"0.60554427",
"0.6044669",
"0.6037859",
"0.6037859",
"0.6037859"
] | 0.0 | -1 |
Check field has data or not. | private static boolean hasData(Map<String, Object> record, String prefix, String fieldName) {
boolean hasData = false;
if (!StringUtils.isEmpty(prefix)) {
fieldName = prefix + Constants.DOT + fieldName;
}
for (String key : record.keySet()) {
if (null != record.get(key) &&
(key.equals(fieldName) || key.startsWith(fieldName.concat(Constants.DOT)))) {
hasData = true;
break;
}
}
return hasData;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean isValid(SchemaField field, Data data) {\n\t\treturn false;\n\t}",
"public boolean hasDataFields() {\n\t\tif (this.dataFields.size() > 0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"boolean hasField3();",
"boolean hasField1();",
"boolean hasField0();",
"private boolean haveEmptyField() {\n return getTextID(FIRST_NAME).isEmpty() ||\n getTextID(LAST_NAME).isEmpty() ||\n getTextID(ADDRESS).isEmpty();\n }",
"@java.lang.Override\n public boolean hasData() {\n return data_ != null;\n }",
"boolean hasField4();",
"@java.lang.Override\n public boolean hasData() {\n return data_ != null;\n }",
"boolean hasField2();",
"private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}",
"@Override\n\tpublic boolean checkData() {\n\t\treturn false;\n\t}",
"public boolean hasFieldErrors();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case DATA:\n return isSetData();\n case FILE_ID:\n return isSetFileID();\n case SIZE:\n return isSetSize();\n }\n throw new java.lang.IllegalStateException();\n }",
"boolean hasFieldId();",
"public boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"protected boolean isValidData() {\n return true;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }",
"public boolean isDataValid() {\r\n boolean dataValid = true;\r\n\r\n if (this.needDefaultValue) {\r\n try {\r\n this.getDefaultValue();\r\n } catch (Exception e) {\r\n dataValid = false;\r\n }\r\n }\r\n\r\n if (this.nameTextField.getText() == null || this.nameTextField.getText().length() == 0) {\r\n dataValid = false;\r\n }\r\n\r\n return dataValid;\r\n\r\n }",
"public boolean hasData() {\n return dataBuilder_ != null || data_ != null;\n }",
"public boolean isMaybePresentData() {\n checkNotUnknown();\n if (isPolymorphic())\n return (flags & PRESENT_DATA) != 0;\n else\n return (flags & PRIMITIVE) != 0 || num != null || str != null || object_labels != null;\n }",
"public boolean hasData() {\n return dataBuilder_ != null || data_ != null;\n }",
"boolean hasData()\n {\n logger.info(\"server: \" + server + \" addr: \" + addr + \"text:\" + text);\n return server != null && addr != null && text != null;\n }",
"public boolean isSetData() {\n return this.data != null;\n }",
"public boolean is_set_data() {\n return this.data != null;\n }",
"public boolean is_set_data() {\n return this.data != null;\n }",
"public void checkFields(){\n }",
"public boolean verifyData()\n {\n if(jTextFieldName.getText().equals(\"\") && jTextFieldNumber.getText().equals(\"\") \n || jTextFieldSupplier.getText().equals(\"\") || jTextArea1.getText().equals(\"\") || jTextFieldModel.getText().equals(\"\"))\n {\n JOptionPane.showMessageDialog(null, \"One or More Fields Are Empty\");\n return false;\n }\n \n else\n {\n return true;\n }\n \n }",
"public boolean fieldsAreFilled(){\r\n boolean filled = true;\r\n if(txtFName.getText().trim().isEmpty() | txtFEmail.getText().trim().isEmpty() | txtFPhone.getText().trim().isEmpty()){\r\n filled = false;\r\n }\r\n return filled;\r\n }",
"private boolean checkFields() {\n boolean test = true;\n if (fname.isEmpty()) {\n test = false;\n }\n if (lname.isEmpty()) {\n test = false;\n }\n if (cin.isEmpty()) {\n test = false;\n }\n if (typeCompte.equals(\"Bancaire\")) {\n if (decouvertNF.isEmpty())\n test = false;\n } else if (typeCompte.equals(\"Epargne\")) {\n if (tauxInteretNF.isEmpty())\n test = false;\n }\n if (s_datePK.getValue() == null) {\n s_datePK.setStyle(\"-fx-border-color:red;-fx-border-radius:3px;-fx-border-size: 1px;\");\n test = false;\n }\n\n return test;\n }",
"public boolean checkInput(){\n if(spelerIDField.getText().equals(\"\") || typeField.getText().equals(\"\") || codeField.getText().equals(\"\") || heeftBetaaldField.getText().equals(\"\")){\n return true;\n } else { return false; }\n }",
"private void checkForEmptyFields() throws EmptyTextFieldException {\n\n if (date == null || title.equals(\"\") || function.equals(\"\") || protagonist.equals(\"\")\n || source.equals(\"\") || references.equals(\"\") || description.equals(\"\")) {\n throw new EmptyTextFieldException();\n }\n }",
"@Test\n public void fieldData() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n FieldData field = (FieldData) builder.insertField(FieldType.FIELD_DATA, true);\n Assert.assertEquals(\" DATA \", field.getFieldCode());\n //ExEnd\n\n TestUtil.verifyField(FieldType.FIELD_DATA, \" DATA \", \"\", DocumentHelper.saveOpen(doc).getRange().getFields().get(0));\n }",
"private boolean fieldsAreFilled(){\n return !textboxName.isEnabled() && !textboxInitialValue.isEnabled();\n }",
"public boolean validateData(){\n boolean dataOk=true;\n if (etName.getText().toString().equals(\"\")){\n Log.i(\"ProfileEditActivity\",\"Name field is void.\");\n dataOk=false;\n }\n if (etSurname.getText().toString().equals(\"\")){\n Log.i(\"ProfileEditActivity\",\"Surname field is void.\");\n dataOk=false;\n }\n if (etDescription.getText().toString().equals(\"\")){\n Log.i(\"ProfileEditActivity\",\"Description field is void.\");\n dataOk=false;\n }\n return dataOk;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case EXTRA_DATA_MAP:\n return isSetExtraDataMap();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"boolean hasSecondField();",
"public boolean hasData() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"private boolean fieldsFilled(){\n return !editTextEmail.getText().toString().isEmpty() &&\n !editTextPassword.getText().toString().isEmpty();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case EXPERIMENT_ID:\n return isSetExperimentId();\n case FILE_NAME:\n return isSetFileName();\n case BUFFER:\n return isSetBuffer();\n }\n throw new IllegalStateException();\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case CIPHERTEXT:\n return isSetCiphertext();\n }\n throw new IllegalStateException();\n }",
"public boolean dataComplete() {\n return !item_category.getText().toString().isEmpty() && !item_name.getText().toString().isEmpty()\n && !item_price.getText().toString().isEmpty() && !item_description.getText().toString().isEmpty();\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TWEET:\n return isSetTweet();\n }\n throw new IllegalStateException();\n }",
"private boolean checkfields() {\n try {\n Integer.parseInt(checknum.getText().toString());\n Integer.parseInt(banknum.getText().toString());\n Integer.parseInt(branchnum.getText().toString());\n Integer.parseInt(accountnum.getText().toString()); //was commented\n\n } catch (NumberFormatException e) { // at least one of these numbers is not Integer\n return false;\n }\n\n if (checknum.getText().toString().equals(null) || banknum.getText().toString().equals(null) ||branchnum.getText().toString().equals(null)|| accountnum.getText().toString().equals(null))\n return false; // At least one of the fields is empty\n\n return true;\n }",
"private void validateData() {\n }",
"private boolean checkFields() {\n if (editTxtName.getText().equals(\"\")) return false;//name\n if (editTxtDesc.getText().equals(\"\")) return false;//desc\n if (editClrColor.getValue() == null) return false;//color\n if (oldEnvironment == null) return false;//environment is null\n return true;//everything is valid\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case INNER_STR:\n return isSetInner_str();\n case INNER_DOUBLE:\n return isSetInner_double();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }",
"public boolean isDataValid() {\r\n return validData;\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case PATH:\n return isSetPath();\n case FILE_NAME:\n return isSetFileName();\n case BUFFER:\n return isSetBuffer();\n }\n throw new IllegalStateException();\n }",
"private boolean verifyObligedFields() {\n if(label.getText().toString().isEmpty() || label.getText().toString().equals(\"\"))\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.label_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(category.getSelectedItem().toString().isEmpty())\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.category_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(cost.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.cost_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(dateDue.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.date_due_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }",
"boolean hasData1();",
"boolean hasData1();",
"public boolean hasData() {\n return (tags != null && tags.length() > 0);\n }",
"public boolean isData();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_INFO:\n return isSetUserInfo();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case TOKEN_INDEX:\n return isSetTokenIndex();\n case TEXT:\n return isSetText();\n case TEXT_SPAN:\n return isSetTextSpan();\n case RAW_TEXT_SPAN:\n return isSetRawTextSpan();\n case AUDIO_SPAN:\n return isSetAudioSpan();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }"
] | [
"0.7308302",
"0.7183556",
"0.70597696",
"0.6950589",
"0.6931473",
"0.68763375",
"0.68602467",
"0.68588424",
"0.6809597",
"0.6777366",
"0.67130214",
"0.670839",
"0.6682182",
"0.66672313",
"0.6658924",
"0.66334766",
"0.6624092",
"0.6624092",
"0.6624092",
"0.6624092",
"0.6624092",
"0.6624092",
"0.6624092",
"0.65706795",
"0.65600175",
"0.6555537",
"0.6555205",
"0.6539821",
"0.6520031",
"0.6495545",
"0.6479292",
"0.6428515",
"0.6428515",
"0.6417596",
"0.6403294",
"0.63966477",
"0.6384336",
"0.6359481",
"0.63501155",
"0.63387316",
"0.6301495",
"0.6286866",
"0.62746245",
"0.6263163",
"0.6263163",
"0.6224224",
"0.62223345",
"0.6219514",
"0.6214153",
"0.62130636",
"0.62054414",
"0.6200203",
"0.61965835",
"0.61942285",
"0.61935765",
"0.6193353",
"0.61828387",
"0.6181375",
"0.6177741",
"0.61734915",
"0.61728394",
"0.616069",
"0.61540055",
"0.61525744",
"0.61525744",
"0.615148",
"0.61451006",
"0.61421585",
"0.6128291",
"0.6128291",
"0.61187243",
"0.6115464",
"0.6111885",
"0.6106205",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61060494",
"0.61036325",
"0.61036325",
"0.61036325",
"0.61036325",
"0.61036325"
] | 0.0 | -1 |
Convert data in map to Data Transfer Object. | public static Object convertToDataTransferObject(Object dto, String prefix, Map<String, Object> record,
Class<?> dtoType, String[] filter) {
if (null != record && null != dtoType) {
if (null == dto) {
dto = newDataTransferObjectInstance(dtoType);
}
List<Field> dtoFields = ObjectUtils.getFields(dtoType, true);
for (Field dtoField : dtoFields) {
try {
Object value = null;
if (hasData(record, prefix, getEntityMappingFieldPath(dtoField))) {
value = convertToFieldOfDataTransferObject(dto, prefix, record, dtoField, filter);
}
ObjectUtils.setValueForField(dto, dtoField.getName(), value, true);
} catch (IllegalAccessException e) {
throw new FieldInaccessibleException("Cannot set value for field "
+ dtoType.getSimpleName() + "." + dtoField.getName(), e);
}
}
}
return dto;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract T toObject(String uuid, Map<String, Object> data);",
"@SuppressWarnings(\"unchecked\")\n private Object convertToDataTransferObject(Object data, Class<?> dtoType) {\n if (Map.class.isAssignableFrom(data.getClass())) {\n return ObjectUtils.convertMapToObject((Map<String, ?>) data, dtoType);\n }\n throw new ParamInvalidException(\"Cannot parse '\" + data.getClass().getName() + \"' to '\" + dtoType.getName() + \"'\");\n }",
"@Override\n\tpublic void convertitMap(Map<String, Object> map) {\n\t\t\n\t}",
"public abstract void setData(Map<ID, T> data);",
"public static Object convertMapEntityPathAndValueToDTO(String prefix, Map<String, Object> mapData, Class<?> dtoType) {\n if (null != mapData && null != dtoType) {\n validateThrow(dtoType, new ConfigurationInvalidException(dtoType.getName() + \": Data Transfer Object configuration is invalid\"));\n\n Object dto;\n try {\n dto = ObjectUtils.newInstance(dtoType);\n } catch (InvocationTargetException | NoSuchMethodException | InstantiationException | IllegalAccessException e) {\n throw new ConstructorInvalidException(\"Cannot found default constructor for \" + dtoType.getSimpleName(), e);\n }\n\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n try {\n Object fieldValue = convertMapEntityPathAndValueToDTO(prefix, mapData, field);\n ObjectUtils.setValueForField(dto, field.getName(), fieldValue);\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot set value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n }\n return dto;\n }\n return null;\n }",
"public void consumeDataModel(final Map<String, Object> dataModel);",
"public Map<String, Object> toMap(Object data) {\n\n try {\n String dataF = null;\n if (!(data instanceof String)) {\n dataF = toString(data);\n }\n// else {\n// dataF = objectMapper.writeValueAsString(data);\n// }\n return objectMapper.readValue(dataF, new TypeReference<Map<String, Object>>() {\n });\n } catch (IOException e) {\n logger.error(e.getMessage(), e);\n }\n return null;\n }",
"public static Map<String, Object> mapData(Object data) {\n\t\tMap<String, Object> modelMap = new HashMap<String,Object>(2);\n\t\tmodelMap.put(\"data\", data);\n\t\tmodelMap.put(\"success\", true);\n\t\t\n\t\treturn modelMap;\n\t}",
"ProcessOperation<Map<String, Object>> map();",
"public abstract Map<String, Object> toMap(T object);",
"public Map toMap(Map<String, Object> map) {\n return super.toMap(map);\n }",
"public void setData(Map<E, String> data) {\n\t\tthis.data = data;\n\t}",
"public Map<T, V> copyData(Map<T, V> map) {\n Map<T, V> newMap = new HashMap<>();\n for (Map.Entry<T, V> entrySet : map.entrySet()) {\n T key = entrySet.getKey();\n V value = entrySet.getValue();\n newMap.put(key, value);\n }\n return newMap;\n }",
"public abstract Map<String, Serializable> toMap();",
"public void getData(String filePath, Map<String, Object> map) {\n\t\treturn;\n\t}",
"public static Object convertMapEntityPathAndValueToDTO(String prefix, Map<String, Object> mapData, Field field) {\n if (null != mapData && null != field) {\n String mappingField = getEntityMappingFieldPath(field);\n if (!StringUtils.isEmpty(prefix)) {\n prefix += Constants.DOT;\n }\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType)) {\n if (!ObjectUtils.fieldIsCollection(field)) {\n return convertMapEntityPathAndValueToDTO(prefix + mappingField, mapData, fieldType);\n } else {\n int length = countLengthOfArray(prefix + mappingField, mapData);\n if (length > 0) {\n try {\n @SuppressWarnings(\"unchecked\")\n Collection<Object> collection = ObjectUtils.newInstanceCollection(field.getType());\n for (int i = 0; i < length; i++) {\n Object innerEntity = convertMapEntityPathAndValueToDTO(prefix + mappingField + \"[\" + i + \"]\", mapData, fieldType);\n if (null != innerEntity) {\n collection.add(innerEntity);\n }\n }\n return collection;\n } catch (NoSuchMethodException e) {\n throw new ConstructorInvalidException(\"Cannot new collection instance for field \" + field.getName(), e);\n }\n }\n }\n } else {\n Class<?> fieldConverter = getFieldConverterType(field);\n return convertField(fieldConverter, mapData.get(prefix + mappingField));\n }\n }\n return null;\n }",
"private void fillData() {\n\t\tfor(Entry<String, HashMap<String, Double>> entry : m.map.entrySet()) {\n\t\t\tfor(Entry<String, Double> subEntry : entry.getValue().entrySet()) {\n\t\t\t\tMappingData item = new MappingData(entry.getKey(), subEntry.getKey(), subEntry.getValue());\n\t\t\t\tdataList.add(item);\n\t\t\t}\n\t\t}\n\t}",
"private void convert(Map map) {\n if (map == null)\n return;\n\n for (Object key : valueTypes.keySet()) {\n MessagePackObject mpo = (MessagePackObject) map.get(key);\n if (mpo != null)\n map.put(key, mpo.convert(Templates.tNullable(\n TemplateRegistry.lookup(valueTypes.get(key)))));\n }\n\n }",
"private static void convertPayload(Map<String, String> source, Map<String, Object> target) {\n for (Entry<String, String> ent : source.entrySet()) {\n try {\n target.put(ent.getKey(), coder.decode(ent.getValue(), Object.class));\n\n } catch (CoderException e) {\n logger.warn(\"cannot decode JSON value {}: {}\", ent.getKey(), ent.getValue(), e);\n }\n }\n }",
"Map<String, PrimitiveTypeProvider> convert(T data);",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default Map<String, IData> asMap() {\n \n return notSupportedCast(\"IData[string]\");\n }",
"@Override\r\n\tpublic Map<String, Object> returnData(Map<String, Object> map,Model model, HttpServletRequest request) {\n\t\treturn null;\r\n\t}",
"void writeObject(Map<Object, Object> map);",
"private IMapData<Integer, String> getHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }",
"String parseMapToJson(Map<String, Object> data);",
"private MapTransformer(Map map) {\n super();\n iMap = map;\n }",
"public abstract T convertToEntity(D dto);",
"@Mapper(componentModel = \"spring\")\npublic interface DataDictItemMapping {\n DataDictItemVo asDataDictItemVo(DataDictItem entity);\n\n DataDictItemOrdinaryVo asOrdinary(DataDictItem entity);\n\n @Mapping(target = \"priority\", ignore = true)\n @Mapping(target = \"lastUpdater\", ignore = true)\n @Mapping(target = \"lastUpdatedAt\", ignore = true)\n @Mapping(target = \"id\", ignore = true)\n @Mapping(target = \"dictId\", ignore = true)\n @Mapping(target = \"creator\", ignore = true)\n @Mapping(target = \"createdAt\", ignore = true)\n DataDictItem asDataDictItem(DataDictItemInsertRo ro);\n\n DataDictItemComplexVo asComplex(DataDictItem entity);\n\n DataDictItem asDataDictItem(DataDictItemUpdateRo ro);\n}",
"public static <T> T map2pojo(Map map, Class<T> clazz) {\n return objectMapper.convertValue(map, clazz);\n }",
"public interface DataTransformation {\n /**\n * Provide a data transformation on the supplied feed data. The type of processing is arbitrary and based on the context\n * in which the method is invoked.\n * @param data for the parameters in the given time range\n * @param startTime for the data request, this may not correspond to any times in the data set.\n * @param endTime for the data request, this may not correspond to any times in the data set.\n */\n void transform(Map<String, List<Map<String,String>>> data, long startTime, long endTime);\n }",
"public abstract D convertToDto(T entity);",
"private IMapData<Integer, String> getHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"a\"),\n KeyValueNode.make(3, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }",
"private Object deserializeMap(Object datum, Schema fileSchema, Schema mapSchema, MapTypeInfo columnType)\n throws AvroSerdeException {\n Map<String, Object> map = new HashMap<String, Object>();\n Map<CharSequence, Object> mapDatum = (Map)datum;\n Schema valueSchema = mapSchema.getValueType();\n TypeInfo valueTypeInfo = columnType.getMapValueTypeInfo();\n for (CharSequence key : mapDatum.keySet()) {\n Object value = mapDatum.get(key);\n map.put(key.toString(), worker(value, fileSchema == null ? null : fileSchema.getValueType(),\n valueSchema, valueTypeInfo));\n }\n\n return map;\n }",
"public static Object fromMap(Class clazz, Map map) {\n try {\n \tObject bean = JSONDeserializer.read(clazz, map);\n \treturn bean;\n } catch (Exception e) {\n throw new RuntimeException(\"Unable to populate \" + clazz.getName() + \" from \" + map, e);\n }\n\t\t\n\t}",
"@Override\n public void record2Map(final Map<String, Integer> map) {\n }",
"protected abstract void processDTO();",
"protected abstract Object toObject(ByteBuffer content, Type targetType) throws BeanConversionException;",
"private static Object mapValueToJava(Object value) {\n if (value instanceof Map) {\n value = ((Map<?, ?>) value).toMap();\n } else if (value instanceof Sequence) {\n value = ((Sequence<?>) value).toMappedList();\n } else if (value instanceof net.ssehub.easy.instantiation.core.model.vilTypes.Set<?>) {\n value = ((net.ssehub.easy.instantiation.core.model.vilTypes.Set<?>) value).toMappedSet();\n }\n return value;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic static Map<String, Object> getData(Map<String, Object> mapJson) {\n\t\treturn (Map<String, Object>) mapJson.get(\"data\");\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t/**\n\t * Read data and store\n\t * @param data\n\t * \t\t\t\tThe map to store data read from ser file\n\t * @return Map<String, T>\n\t * \t\t\ta map of data that has all the ser file data\n\t * @throws ClassNotFoundException\n\t * @throws IOException\n\t */\n\tprotected Map<String, T> readFromFile(Map<String, T> data) throws ClassNotFoundException, IOException {\n\t\t\n\t\tInputStream file = new FileInputStream(filePath);\n\t\tInputStream buffer = new BufferedInputStream(file);\n\t\tObjectInput input = new ObjectInputStream(buffer);\n\n\t\t//deserialize the Map\n\t\tdata = (HashMap<String, T>) input.readObject();\n\t\tinput.close();\n\t\treturn data;\n\t}",
"void transform(Map<String, List<Map<String,String>>> data, long startTime, long endTime);",
"private Map toMap(Scriptable scriptable) {\n \t\tif (scriptable instanceof MapWrapper)\n \t\t\treturn (Map) ((MapWrapper) scriptable).unwrap();\n \t\treturn new MapAdapter(scriptable);\n \t}",
"private static Map<String, String> extractDataMap(Map<String, String> dataMap) {\n Map<String, String> processedDataMap = new HashMap<String, String>();\n int humid = Integer.parseInt(dataMap.get(\"humidity\"));\n int temp = Integer.parseInt(dataMap.get(\"humidity\"));\n\n double discomfortness = 0.81 * temp + 0.01 * humid * (0.99 * temp - 14.3) + 46.3;\n\n processedDataMap.put(\"Discomfortness\", String.valueOf(discomfortness));\n processedDataMap = addLocation(processedDataMap);\n\n return processedDataMap;\n }",
"public Object map(String key, Object input);",
"private IMapData<Integer, String> getLinkedHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }",
"public abstract void updateFromFeed(Map<String,List<Map<String,String>>> data);",
"@ApiStatus.Internal\n @NotNull\n public Map<String, Object> getData() {\n return data;\n }",
"private IMapData<Integer, String> getLinkedHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(1, \"c\"),\n KeyValueNode.make(1, \"b\"),\n KeyValueNode.make(1, \"a\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(1, \"a\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }",
"E mapToEntity(D dto);",
"public MapData(String mapName) {\n this.mapName = mapName;\n readFile();\n}",
"public DataTableDto convertToDto(DataTable dataTable) {\n DataTableDto dataTableDto = modelMapper.map(dataTable, DataTableDto.class);\n return dataTableDto;\n }",
"protected abstract Object toObject(InputStream inputStream, Type targetType) throws BeanConversionException;",
"Map<String, ?> getOutputData();",
"public Map<String, String> parseFrom(Map map) {\n Map<String, String> data = new HashMap<>();\n for (Object key : map.keySet()) {\n Object value = map.get(key);\n if (value instanceof Map) {\n data.putAll(parseFrom((Map) value)); //Recursion FTW\n } else if (value != null) {\n data.put((String) key, value.toString());\n }\n }\n\n return data;\n }",
"public static Map<String, String> getMapping() {\r\n\t\treturn data.get();\r\n\t}",
"public static Map<String, Object> convertToEntityMappingFieldAndValue(Object dto) {\n Map<String, Object> mapData = new HashMap<>();\n if (null != dto) {\n List<Field> fields = ObjectUtils.getFields(dto.getClass(), true);\n for (Field field : fields) {\n mapData.putAll(convertToEntityMappingFieldAndValue(dto, field));\n }\n }\n return mapData;\n }",
"protected O bytesToObject(ByteBuffer data) throws OBException,\r\n InstantiationException, IllegalAccessException, IllegalIdException {\r\n return bytesToObject(data.array());\r\n }",
"static Map<Name, ObjectConverter> createConversionMap (final FeatureType input, final FeatureType toConvert) throws NonconvertibleObjectException{\n\n if(input.equals(toConvert)){\n return null;\n }\n final Map<Name, ObjectConverter> map = new HashMap<Name, ObjectConverter>();\n\n for (PropertyDescriptor toConvertDesc : toConvert.getDescriptors()) {\n for(PropertyDescriptor inputDesc : input.getDescriptors()){\n\n //same property name\n if(toConvertDesc.getName().equals(inputDesc.getName())){\n\n final Class inputClass = inputDesc.getType().getBinding();\n final Class toConvertClass = toConvertDesc.getType().getBinding();\n if(toConvertClass.equals(inputClass)){\n //same name and same type\n map.put(toConvertDesc.getName(), null);\n }else{\n //same name but different type\n if(toConvertDesc instanceof GeometryDescriptor){\n map.put(toConvertDesc.getName(), new GeomConverter(toConvertClass, inputClass));\n }else{\n map.put(toConvertDesc.getName(), ConverterRegistry.system().converter(toConvertClass, inputClass));\n }\n }\n }\n }\n }\n return map;\n\n }",
"void updateMap(MapData map);",
"public interface SysDictDataMapper\n{\n /**\n * Query dictionary data page by condition\n * \n * @param dictData Dictionary data information\n * @return Dictionary data collection information\n */\n public List<SysDictData> selectDictDataList(SysDictData dictData);\n\n /**\n * Query dictionary data according to dictionary type\n * \n * @param dictType Dictionary type\n * @return Dictionary data collection information\n */\n public List<SysDictData> selectDictDataByType(String dictType);\n\n /**\n * Query dictionary data information according to dictionary type and dictionary key value\n * \n * @param dictType Dictionary type\n * @param dictValue Dictionary key\n * @return Dictionary tag\n */\n public String selectDictLabel(@Param(\"dictType\") String dictType, @Param(\"dictValue\") String dictValue);\n\n /**\n * Query information based on dictionary data ID\n * \n * @param dictCode Dictionary data ID\n * @return Dictionary data\n */\n public SysDictData selectDictDataById(Long dictCode);\n\n /**\n * Query dictionary data\n * \n * @param dictType Dictionary type\n * @return Dictionary data\n */\n public int countDictDataByType(String dictType);\n\n /**\n * Delete dictionary data information by dictionary ID\n * \n * @param dictCode Dictionary data ID\n * @return result\n */\n public int deleteDictDataById(Long dictCode);\n\n /**\n * Delete dictionary data in bulk\n * \n * @param ids Data to be deleted\n * @return result\n */\n public int deleteDictDataByIds(String[] ids);\n\n /**\n * New dictionary data information\n * \n * @param dictData Dictionary data information\n * @return result\n */\n public int insertDictData(SysDictData dictData);\n\n /**\n * Modify dictionary data information\n * \n * @param dictData Dictionary data information\n * @return result\n */\n public int updateDictData(SysDictData dictData);\n\n /**\n * Synchronously modify dictionary type\n * \n * @param oldDictType Old dictionary type\n * @param newDictType New and old dictionary types\n * @return result\n */\n public int updateDictDataType(@Param(\"oldDictType\") String oldDictType, @Param(\"newDictType\") String newDictType);\n}",
"public Object[] adapt( Map<String, Object> objs, Object arg );",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n getHome_aDataFromMap((Map<String,Object>) dataSnapshot.getValue());\n }",
"public static void prepareData(Map<String, Object> data, String message) {\r\n\t\tdata.put(MESSAGE, message);\r\n\t}",
"@PUT\n @Consumes({\"application/xml\", \"application/json\"})\n public void put(SourceInterestMapConverter data) {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n EntityManager em = persistenceSvc.getEntityManager();\n updateEntity(getEntity(), data.resolveEntity(em));\n persistenceSvc.commitTx();\n } finally {\n persistenceSvc.close();\n }\n }",
"public Object toPojo(Entity entity) {\n return ofy().load().fromEntity(entity);\n }",
"OrderDto map(Order order);",
"protected abstract T parseMap(Map<String, Object> values);",
"public Map<String, Object> getData() {\n\t\treturn this.data;\n\t}",
"@Override\n\tpublic void updateDataListMap(List<Map<String, Object>> dataList) {\n\t\t\n\t}",
"public static List<StockTradeData> convertToStockTradeData(Map<String, Object> map) {\n List<StockTradeData> stockTradeDataList = new ArrayList<>();\n\n Map<String, Object> dataMap = (Map<String, Object>) map.get(\"data\");\n\n for (Map.Entry<String, Object> entry : dataMap.entrySet()) {\n String stockCode = entry.getKey();\n Map<String, Object> qfqDayMap = (Map<String, Object>) entry.getValue();\n\n Object obj = qfqDayMap.get(\"day\");\n\n if (obj == null) {\n obj = qfqDayMap.get(\"qfqday\");\n }\n\n List<List<String>> stockDailyList = (List<List<String>>) obj;\n\n for (List<String> stockDaily: stockDailyList) {\n StockTradeData stockTradeData = new StockTradeData();\n stockTradeData.setCode(stockCode);\n stockTradeData.setDate(LocalDate.parse(stockDaily.get(0)));\n stockTradeData.setOpenPrice(convertToBigDecimal(stockDaily.get(1)));\n stockTradeData.setClosePrice(convertToBigDecimal(stockDaily.get(2)));\n stockTradeData.setHighPrice(convertToBigDecimal(stockDaily.get(3)));\n stockTradeData.setLowPrice(convertToBigDecimal(stockDaily.get(4)));\n stockTradeData.setVolume(convertToBigDecimal(stockDaily.get(5)));\n stockTradeDataList.add(stockTradeData);\n }\n }\n\n return stockTradeDataList;\n }",
"protected void addDataMap(DataMap map, DataMap currentMap) {\n\n ProjectController mediator = getProjectController();\n\n if (currentMap != null) {\n // merge with existing map... have to memorize map state before and after\n // to do the right events\n\n Collection<ObjEntity> originalOE = new ArrayList<>(currentMap.getObjEntities());\n Collection<DbEntity> originalDE = new ArrayList<>(currentMap.getDbEntities());\n Collection<QueryDescriptor> originalQueries = new ArrayList<>(currentMap.getQueryDescriptors());\n\n currentMap.mergeWithDataMap(map);\n map = currentMap;\n\n // postprocess changes\n Collection<ObjEntity> newOE = new ArrayList<>(currentMap.getObjEntities());\n Collection<DbEntity> newDE = new ArrayList<>(currentMap.getDbEntities());\n Collection<QueryDescriptor> newQueries = new ArrayList<>(currentMap.getQueryDescriptors());\n\n EntityEvent entityEvent = new EntityEvent(Application.getFrame(), null);\n QueryEvent queryEvent = new QueryEvent(Application.getFrame(), null);\n\n // 1. ObjEntities\n Collection<ObjEntity> addedOE = new ArrayList<>(newOE);\n addedOE.removeAll(originalOE);\n for (ObjEntity e : addedOE) {\n entityEvent.setEntity(e);\n entityEvent.setId(MapEvent.ADD);\n mediator.fireObjEntityEvent(entityEvent);\n }\n\n Collection<ObjEntity> removedOE = new ArrayList<>(originalOE);\n removedOE.removeAll(newOE);\n for (ObjEntity e : removedOE) {\n entityEvent.setEntity(e);\n entityEvent.setId(MapEvent.REMOVE);\n mediator.fireObjEntityEvent(entityEvent);\n }\n\n // 2. DbEntities\n Collection<DbEntity> addedDE = new ArrayList<>(newDE);\n addedDE.removeAll(originalDE);\n for(DbEntity e: addedDE) {\n entityEvent.setEntity(e);\n entityEvent.setId(MapEvent.ADD);\n mediator.fireDbEntityEvent(entityEvent);\n }\n\n Collection<DbEntity> removedDE = new ArrayList<>(originalDE);\n removedDE.removeAll(newDE);\n for(DbEntity e: removedDE) {\n entityEvent.setEntity(e);\n entityEvent.setId(MapEvent.REMOVE);\n mediator.fireDbEntityEvent(entityEvent);\n }\n\n // 3. queries\n Collection<QueryDescriptor> addedQueries = new ArrayList<>(newQueries);\n addedQueries.removeAll(originalQueries);\n for(QueryDescriptor q: addedQueries) {\n queryEvent.setQuery(q);\n queryEvent.setId(MapEvent.ADD);\n mediator.fireQueryEvent(queryEvent);\n }\n\n Collection<QueryDescriptor> removedQueries = new ArrayList<>(originalQueries);\n removedQueries.removeAll(newQueries);\n for(QueryDescriptor q: removedQueries) {\n queryEvent.setQuery(q);\n queryEvent.setId(MapEvent.REMOVE);\n mediator.fireQueryEvent(queryEvent);\n }\n\n mediator.fireDataMapDisplayEvent(new DataMapDisplayEvent(Application\n .getFrame(), map, (DataChannelDescriptor) mediator\n .getProject()\n .getRootNode(), mediator.getCurrentDataNode()));\n }\n else {\n // fix DataMap name, as there maybe a map with the same name already\n ConfigurationNode root = mediator.getProject().getRootNode();\n map.setName(NameBuilder\n .builder(map, root)\n .baseName(map.getName())\n .name());\n\n // side effect of this operation is that if a node was created, this DataMap\n // will be linked with it...\n mediator.addDataMap(Application.getFrame(), map);\n }\n }",
"public Object transform(Object input) {\n return iMap.get(input);\n }",
"@Test\n\tpublic void testPersonToPersonDtoMap() {\n\t\t\n\t\t// prepare \n\t\tPerson person = this.getFakePersonToMap();\n\t\tAddress address = person.getAddress();\n\t\tContactDetail contactDetail = person.getContactDetail();\n\t\t\n\t\t// sut (system / class under test)\n\t\tMapper testee = new Mapper();\n\t\t\n\t\t// act\t\t\n\t\tPersonDto personDto = testee.map(person, PersonDto.class);\n\t\t\n\t\t// tests\n\t\t// address\n\t\tassertEquals(personDto.getAddressCity(), address.getCity());\n\t\tassertEquals(personDto.getAddressCountry(), address.getCountry());\n\t\t\n\t\t// contact details\n\t\tassertEquals(personDto.getPhoneNumber1(), contactDetail.getPhoneNumber1());\n\t\tassertEquals(personDto.getPhoneNumber2(), contactDetail.getPhoneNumber2());\n\t\tassertEquals(personDto.getPhoneNumber3(), contactDetail.getPhoneNumber3());\n\t\tassertEquals(personDto.getFax(), contactDetail.getFax());\n\t\t\n\t}",
"public interface Converter {\n Map<String,Map<String, Object>> convert(Map<String, Object> doc);\n}",
"public <K> Map<K, JAVATYPE> convertMap(Map<K, JAVATYPE> oldMap, final METATYPE meta);",
"@Override\r\n\tpublic AbstractDto mapToDto() {\n\t\treturn null;\r\n\t}",
"private void getDataFromEmployeeDataCreate(Map<String, Object> empData,\n CustomerDataTypeDTO data,\n List<FileInfosDTO> listFiles, String formatDate) throws JsonProcessingException {\n if (FieldTypeEnum.FILE.getCode().equals(data.getFieldType())) {\n if (listFiles != null) {\n List<BaseFileInfosDTO> listSaveDb = new ArrayList<>();\n listFiles.forEach(file -> {\n BaseFileInfosDTO fileSaveDb = new BaseFileInfosDTO();\n fileSaveDb.setFileName(file.getFileName());\n fileSaveDb.setFilePath(file.getFilePath());\n listSaveDb.add(fileSaveDb);\n });\n empData.put(data.getKey(), objectMapper.writeValueAsString(listSaveDb));\n }\n } else if (StringUtils.isNotBlank(data.getValue()) && !STRING_ARRAY_EMPTY.equals(data.getValue())) {\n if (FieldTypeEnum.PULLDOWN.getCode().equals(data.getFieldType())\n || FieldTypeEnum.RADIO.getCode().equals(data.getFieldType())) {\n empData.put(data.getKey(), Long.valueOf(data.getValue()));\n } else if (FieldTypeEnum.MULTIPLE_PULLDOWN.getCode().equals(data.getFieldType())\n || FieldTypeEnum.CHECKBOX.getCode().equals(data.getFieldType())\n || FieldTypeEnum.RELATION.getCode().equals(data.getFieldType())) {\n List<Long> fValue = null;\n try {\n TypeReference<ArrayList<Long>> typeRef = new TypeReference<ArrayList<Long>>() {\n };\n fValue = objectMapper.readValue(data.getValue(), typeRef);\n } catch (IOException e) {\n log.error(e.getLocalizedMessage());\n }\n empData.put(data.getKey(), fValue);\n } else if (FieldTypeEnum.NUMBER.getCode().equals(data.getFieldType())) {\n if (CheckUtil.isNumeric(data.getValue())) {\n empData.put(data.getKey(), Long.valueOf(data.getValue()));\n } else {\n empData.put(data.getKey(), Double.valueOf(data.getValue()));\n }\n } else if (FieldTypeEnum.DATE.getCode().equals(data.getFieldType())) {\n getSystemDate(empData, formatDate, data.getValue(), data.getKey(), null);\n } else if (FieldTypeEnum.TIME.getCode().equals(data.getFieldType())) {\n getSystemTime(empData, DateUtil.FORMAT_HOUR_MINUTE, data.getValue(), data.getKey());\n } else if (FieldTypeEnum.DATETIME.getCode().equals(data.getFieldType())) {\n String date = data.getValue().substring(0, formatDate.length());\n String hour = data.getValue().substring(formatDate.length());\n getSystemDate(empData, formatDate, date, data.getKey(), hour);\n } else if (FieldTypeEnum.SELECT_ORGANIZATION.getCode().equals(data.getFieldType())) {\n List<Object> fValue = null;\n try {\n TypeReference<ArrayList<Object>> typeRef = new TypeReference<ArrayList<Object>>() {};\n fValue = objectMapper.readValue(data.getValue(), typeRef);\n } catch (IOException e) {\n log.error(e.getLocalizedMessage());\n }\n empData.put(data.getKey(), fValue);\n } else if (FieldTypeEnum.LINK.getCode().equals(data.getFieldType())\n || FieldTypeEnum.ADDRESS.getCode().equals(data.getFieldType())) {\n Map<String, String> fValue = new HashMap<>();\n try {\n TypeReference<Map<String, String>> typeRef = new TypeReference<Map<String, String>>() {};\n fValue = objectMapper.readValue(data.getValue(), typeRef);\n empData.put(data.getKey(), fValue);\n } catch (Exception e) {\n log.error(e.getLocalizedMessage());\n }\n } else {\n empData.put(data.getKey(), data.getValue());\n }\n }\n }",
"public interface DataConverter<JAVATYPE,METATYPE extends FieldDefinition> {\n /** Method invoked for a single JAVATYPE */\n JAVATYPE convert(JAVATYPE oldValue, final METATYPE meta);\n\n /** Method invoked for a JAVATYPE List. This can be used to alter the list length / add / remove elements after processing.\n * Please note that the converter is only invoked on the list itself, not on the individual elements. */\n List <JAVATYPE> convertList(List<JAVATYPE> oldList, final METATYPE meta);\n\n /** Method invoked for a JAVATYPE Set. This can be used to alter the set size / add / remove elements after processing.\n * Please note that the converter is only invoked on the list itself, not on the individual elements. */\n Set <JAVATYPE> convertSet(Set<JAVATYPE> oldSet, final METATYPE meta);\n\n /** Method invoked for an array of JAVATYPEs. This can be used to alter the list length / add / remove elements after processing.\n * Please note that the converter is only invoked on the array itself, not on the individual elements. */\n JAVATYPE [] convertArray(JAVATYPE [] oldArray, final METATYPE meta);\n\n /** Map-type methods. The tree walker converses the value parts of the map only. */\n public <K> Map<K, JAVATYPE> convertMap(Map<K, JAVATYPE> oldMap, final METATYPE meta);\n}",
"protected abstract Map<String, Map<String, Object>> getData(String columnFamilyName);",
"Object getData();",
"Object getData();",
"public void setData(Object oData) { m_oData = oData; }",
"public MyFinalTableModel(Map<String, Double> map) {\n\n\t\tdata = new Object[map.size()][2];\n\n\t\tint idx = 0;\n\n\t\tfor (String key : map.keySet()) {\n\n\t\t\tdata[idx][0] = key;\n\t\t\tdata[idx][1] = map.get(key);\n\t\t\tidx++;\n\n\t\t}\n\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic static <T> T convertData(Data data, Class<T> targetClass) {\n\t\tif (data.getType().getName().equals(\"string\")) {\n\t\t\tString string;\n\t\t\ttry {\n\t\t\t\tstring = new DataInputStream(data.getValue()).readUTF();\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(\"Fix this IOException passing\", e);\n\t\t\t}\n\t\t\tif (targetClass.equals(String.class)) {\n\t\t\t\treturn (T) string;\n\t\t\t} else if (targetClass.equals(Integer.class) || targetClass.equals(Integer.TYPE)) {\n\t\t\t\treturn (T) Integer.valueOf(string);\n\t\t\t} else if (targetClass.equals(Double.class) || targetClass.equals(Double.TYPE)) {\n\t\t\t\treturn (T) Double.valueOf(string);\n\t\t\t}\n\t\t} else if (data.getType().getName().equals(\"int32\")) {\n\t\t\tint integer;\n\t\t\ttry {\n\t\t\t\tinteger = new DataInputStream(data.getValue()).readInt();\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(\"Fix this IOException passing\", e);\n\t\t\t}\n\t\t\tif (targetClass.equals(String.class)) {\n\t\t\t\treturn (T) String.valueOf(integer);\n\t\t\t} else if (targetClass.equals(Integer.class) || targetClass.equals(Integer.TYPE)) {\n\t\t\t\treturn (T) Integer.valueOf(integer);\n\t\t\t} else if (targetClass.equals(Double.class) || targetClass.equals(Double.TYPE)) {\n\t\t\t\treturn (T) Double.valueOf(integer);\n\t\t\t}\n\t\t}\n\t\tthrow new RuntimeException(\"Conversion for \" + data.getType().getName() + \" to \" + targetClass\n\t\t\t\t+ \" not implemented yet\");\n\t}",
"public static Map<String, Object> parseFromDT(Map<String, String[]> paramsMap) {\r\n\t\tMap<String, Object> res = new HashMap<>();\r\n\r\n\t\tString[] arr = paramsMap.get(\"draw\");\r\n\t\tif (arr == null || arr.length == 0) { // fast fail\r\n\t\t\treturn res;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tInteger pgDraw = Integer.valueOf(arr[0]);\r\n\t\t\tInteger pgStart = Integer.valueOf(paramsMap.get(\"start\")[0]);\r\n\t\t\tInteger pgLen = Integer.valueOf(paramsMap.get(\"length\")[0]);\r\n\t\t\tres.put(\"pg\", true);\r\n\t\t\tres.put(\"pgDraw\", pgDraw);\r\n\t\t\tres.put(\"pgStart\", pgStart);\r\n\t\t\tres.put(\"pgLen\", pgLen);\r\n\r\n\t\t\tString[] arr2 = paramsMap.get(\"order[0][column]\");\r\n\t\t\tif (arr2 != null && arr2.length > 0) {\r\n\t\t\t\tInteger orderColIdx = Integer.valueOf(arr2[0]);\r\n\t\t\t\tString orderColKey = \"columns[\" + orderColIdx + \"][data]\";\r\n\t\t\t\tString orderFld = paramsMap.get(orderColKey)[0];\r\n\t\t\t\tString orderDir = paramsMap.get(\"order[0][dir]\")[0];\r\n\t\t\t\torderDir = (\"desc\".equals(orderDir) ? \"DESC\" : \"ASC\");\r\n\t\t\t\tres.put(\"order\", 1);\r\n\t\t\t\tres.put(\"orderFld\", orderFld);\r\n\t\t\t\tres.put(\"orderDir\", orderDir);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.debug(e);\r\n\t\t}\r\n\t\treturn res;\r\n\t}",
"protected abstract D createData();",
"private static Map<Integer, Integer> unmapType(\n\t Map<Class<? extends TrackedMessage>, Map<Integer, Integer>> map,\n\t Class<? extends TrackedMessage> classType)\n\t throws NullPointerException {\n\tif ((null == map) || (null == classType))\n\t throw new NullPointerException(\"map or message cannot be null\");\n\n\tMap<Integer, Integer> dataMap = map.get(classType);\n\tif (null == dataMap) {\n\t dataMap = new HashMap<Integer, Integer>();\n\t map.put(classType, dataMap);\n\t}\n\n\treturn dataMap;\n }",
"public void addProductInspect(String accessKey, Map<String,String> dataMap) throws org.apache.thrift.TException;",
"protected void fromDBObject(DBObject data) {\n /* Get all public fields of the class */\n Field[] fields = this.getClass().getFields();\n for(Field field : fields) {\n String name = field.getName();\n \n if(data.containsField(name)) {\n if(Modifier.isFinal(field.getModifiers()))\n field.setAccessible(true);\n\n Object value = data.get(name);\n \n try {\n field.set(this, convertDBToField(value, field));\n } catch (IllegalAccessException | IllegalArgumentException ex) {\n throw new MongomanException(ex);\n }\n }\n }\n \n _id = (ObjectId) data.get(\"_id\");\n loaded = data;\n }",
"public PointData translate(PointData data) {\n return data;\n }",
"D mapToDTO(E entity);",
"public Object convert(Object fromValue) {\n RawObject oldDataRawObject = (RawObject) fromValue;\n RawObject oldKeyRawObject = (RawObject)oldDataRawObject.\n getSuper().getValues().get(\"keys\");\n Object[] oldDataKeyValue = \n (Object[])oldKeyRawObject.getElements();\n RawObject oldValueRawObject = (RawObject)oldDataRawObject.\n getSuper().getValues().get(\"values\");\n \n ArrayList<RawObject> newDataKeyValue = \n new ArrayList<RawObject>();\n RawObject myEnumRawObject = new RawObject(myEnumType, \"DATA\");\n newDataKeyValue.add(myEnumRawObject);\n \n RawObject newKeyRawObject = new RawObject\n (oldKeyRawObject.getType(), newDataKeyValue.toArray());\n Map<String, Object> \n newDataSuperValue = new HashMap<String, Object>();\n newDataSuperValue.put(\"keys\", newKeyRawObject);\n newDataSuperValue.put(\"values\", oldValueRawObject);\n RawObject newDataSuperRawObject = \n new RawObject(newDataSuperType, newDataSuperValue, null);\n Map<String, Object> newDataValue = \n new HashMap<String, Object>();\n RawObject newDataRawObject = \n new RawObject(newDataType, newDataValue, \n newDataSuperRawObject);\n return newDataRawObject;\n }",
"public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"Id\", this.Id);\n this.setParamSimple(map, prefix + \"Title\", this.Title);\n this.setParamSimple(map, prefix + \"Name\", this.Name);\n this.setParamSimple(map, prefix + \"Type\", this.Type);\n this.setParamSimple(map, prefix + \"Description\", this.Description);\n this.setParamSimple(map, prefix + \"Schema\", this.Schema);\n this.setParamSimple(map, prefix + \"CmsProject\", this.CmsProject);\n this.setParamSimple(map, prefix + \"PkgId\", this.PkgId);\n this.setParamSimple(map, prefix + \"SchemaVersion\", this.SchemaVersion);\n this.setParamSimple(map, prefix + \"CreatorId\", this.CreatorId);\n this.setParamSimple(map, prefix + \"CreatedAt\", this.CreatedAt);\n this.setParamSimple(map, prefix + \"UpdatedAt\", this.UpdatedAt);\n this.setParamSimple(map, prefix + \"EnvId\", this.EnvId);\n this.setParamSimple(map, prefix + \"DataSourceVersion\", this.DataSourceVersion);\n this.setParamArrayObj(map, prefix + \"AppUsageList.\", this.AppUsageList);\n this.setParamSimple(map, prefix + \"PublishedAt\", this.PublishedAt);\n this.setParamArraySimple(map, prefix + \"ChildDataSourceIds.\", this.ChildDataSourceIds);\n this.setParamSimple(map, prefix + \"Fun\", this.Fun);\n this.setParamSimple(map, prefix + \"ScfStatus\", this.ScfStatus);\n this.setParamSimple(map, prefix + \"Methods\", this.Methods);\n this.setParamArraySimple(map, prefix + \"ChildDataSourceNames.\", this.ChildDataSourceNames);\n this.setParamSimple(map, prefix + \"IsNewDataSource\", this.IsNewDataSource);\n this.setParamSimple(map, prefix + \"ViewId\", this.ViewId);\n this.setParamSimple(map, prefix + \"Configuration\", this.Configuration);\n this.setParamSimple(map, prefix + \"TemplateCode\", this.TemplateCode);\n this.setParamSimple(map, prefix + \"Source\", this.Source);\n this.setParamSimple(map, prefix + \"PublishVersion\", this.PublishVersion);\n this.setParamSimple(map, prefix + \"PublishViewId\", this.PublishViewId);\n this.setParamSimple(map, prefix + \"SubType\", this.SubType);\n this.setParamSimple(map, prefix + \"AuthStatus\", this.AuthStatus);\n this.setParamObj(map, prefix + \"AuthInfo.\", this.AuthInfo);\n\n }",
"public Object getData() \n {\n return data;\n }",
"public abstract Object getData();",
"@Override\n\tpublic String update(Map<String, Object> entityMap)\n\t\t\tthrows DataAccessException {\n\t\treturn null;\n\t}",
"Map getSPEXDataMap();",
"public interface CodDataService {\n\n /**\n * 获取配置\n * @return 全部配置\n */\n Map<String, String> getConfig();\n\n /**\n * 获取数据\n */\n String getDataValue(String key);\n\n /**\n *\n * @param key\n * @return\n */\n CodDataConfigDto getData(String key);\n\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n */\n void setData(String key, String value);\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n * @param name 配置名称\n */\n void setData(String key, String value, String name);\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n * @param name 配置名称\n * @param sort 序号\n */\n void setData(String key, String value, String name, String sort);\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n * @param name 配置名称\n * @param sort 序号\n * @param desc 描述\n */\n void setData(String key, String value, String name, String desc, String sort);\n\n /**\n * 删除\n * @param key key\n */\n void delete(String key);\n\n}",
"public Map<String, Object> getMapData(int iusid, int timeperiodid);",
"public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"TrafficAmount\", this.TrafficAmount);\n this.setParamSimple(map, prefix + \"TrafficPackageCount\", this.TrafficPackageCount);\n\n }"
] | [
"0.6783912",
"0.67222464",
"0.66083705",
"0.63693315",
"0.61616075",
"0.615096",
"0.60312337",
"0.6024333",
"0.60152525",
"0.58741987",
"0.5868957",
"0.57955974",
"0.57823414",
"0.5763308",
"0.57386273",
"0.57337606",
"0.572762",
"0.56470597",
"0.55726457",
"0.55569893",
"0.55556685",
"0.5529723",
"0.5526052",
"0.55175394",
"0.5516822",
"0.54994905",
"0.5483284",
"0.5462006",
"0.54572517",
"0.5453671",
"0.54529226",
"0.54388964",
"0.54251325",
"0.54109097",
"0.5395925",
"0.5391678",
"0.53916687",
"0.537751",
"0.53674954",
"0.53596514",
"0.5355064",
"0.5348123",
"0.5320735",
"0.5272262",
"0.52629805",
"0.52619046",
"0.5260572",
"0.5249159",
"0.5206214",
"0.52031314",
"0.5198967",
"0.5196736",
"0.5187464",
"0.5172307",
"0.516793",
"0.5161676",
"0.51492256",
"0.51484686",
"0.51383907",
"0.5134537",
"0.5132564",
"0.51310414",
"0.5125511",
"0.5118135",
"0.5114696",
"0.5099573",
"0.5079176",
"0.50714916",
"0.5068512",
"0.5064649",
"0.5063553",
"0.5043777",
"0.5039723",
"0.5035293",
"0.5030197",
"0.50270194",
"0.502464",
"0.502298",
"0.50186366",
"0.5017944",
"0.5017944",
"0.50111496",
"0.50051457",
"0.49924207",
"0.49911964",
"0.49892548",
"0.4985921",
"0.49839768",
"0.49839026",
"0.49804416",
"0.4973384",
"0.49717614",
"0.4970759",
"0.4961347",
"0.4959658",
"0.49559757",
"0.49543208",
"0.494828",
"0.49465683",
"0.49460047"
] | 0.5083859 | 66 |
Get value of field of Data Transfer Object. | @SuppressWarnings({"unchecked", "rawtypes"})
public static Object convertToFieldOfDataTransferObject(Object dto, String prefix, Map<String, Object> record, Field field, String[] filter) {
Object reValue = null;
if (null != record && null != field) {
String entityFieldPath = getEntityMappingFieldPath(field);
if (!StringUtils.isEmpty(prefix)) {
entityFieldPath = prefix + Constants.DOT + entityFieldPath;
}
Class<?> fieldType = MappingUtils.getFieldType(field);
if (validate(fieldType)) {
Object innerDTO = null;
try {
if (ObjectUtils.fieldIsCollection(field)) {
Collection collection = ObjectUtils.getValueOfField(dto, field.getName(), Collection.class);
if (null == collection) {
collection = ObjectUtils.newInstanceCollection(field.getType());
} else {
for (Object obj : collection) {
String keyOne = getKey(fieldType, obj);
String keyTwo = getKey(entityFieldPath, fieldType, record);
if (keyOne.equals(keyTwo)) {
innerDTO = obj;
break;
}
}
}
Object value = convertToDataTransferObject(innerDTO, entityFieldPath, record, fieldType, filter);
if (null == innerDTO) {
collection.add(value);
}
reValue = collection;
} else {
reValue = convertToDataTransferObject(null, entityFieldPath, record, fieldType, filter);
}
} catch (NoSuchMethodException e) {
throw new ConstructorInvalidException("Cannot new collection instance for field "
+ dto.getClass().getSimpleName() + "." + field.getName(), e);
} catch (IllegalAccessException e) {
throw new FieldInaccessibleException("Cannot get value for field "
+ dto.getClass().getSimpleName() + "." + field.getName(), e);
}
} else if (MappingUtils.isKeepField(entityFieldPath, filter)) {
Class<?> fieldConverter = getFieldConverterType(field);
reValue = convertField(fieldConverter, record.get(entityFieldPath));
}
}
return reValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Nullable\n\tObject getFieldValue(String field);",
"abstract public String getValue(String fieldname);",
"Object getValueFrom();",
"private Object getFieldValue(Field field){\n\t\tObject value = null;\n//\t\tPropertyDescriptor pd;\n//\t\ttry {\n//\t\t\t//to new a PropertyDescriptor, you MUST have getter and setter method in the class,\n//\t\t\t//otherwise it will throw out java.beans.IntrospectionException: Method not found: setId\n//\t\t\tpd = new PropertyDescriptor (field.getName(), getClass());\n//\t\t\tMethod getterMethod = pd.getReadMethod();\n//\t\t\tif(pd!=null){\n//\t\t\t\ttry {\n//\t\t\t\t\tvalue = getterMethod.invoke(this);\n//\t\t\t\t} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {\n//\t\t\t\t\tlog.debug(\"Failed to get value for field '\"+field.getName()+\"'\",e);\n//\t\t\t\t\tfield.setAccessible(true);\n//\t\t\t\t\ttry {\n//\t\t\t\t\t\tvalue = field.get(this);\n//\t\t\t\t\t} catch (IllegalArgumentException | IllegalAccessException e1) {\n//\t\t\t\t\t\tlog.debug(\"Failed to get value for field '\"+field.getName()+\"'\",e1);\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n//\t\t} catch (IntrospectionException e) {\n//\t\t\tlog.debug(\"Failed to get value for field '\"+field.getName()+\"'\",e);\n//\t\t}\n\t\ttry {\n\t\t\t//Firstly try to get it with getter method\n\t\t\t//PropertyUtils needs commons-beanutils.jar on the classpath, otherwise it throw out NoClassDefFoundError,\n\t\t\t//we catch NoClassDefFoundError and let java reflection to do the work\n\t\t\tvalue = PropertyUtils.getProperty(this, field.getName());\n\t\t} catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException | java.lang.NoClassDefFoundError e) {\n\t\t\tlog.warn(\"Failed to get value for field '\"+field.getName()+\"'\",e);\n\t\t\tfield.setAccessible(true);\n\t\t\ttry {\n\t\t\t\t//try to get directly the field's value by java reflection\n\t\t\t\tvalue = field.get(this);\n\t\t\t} catch (IllegalArgumentException | IllegalAccessException e1) {\n\t\t\t\tlog.warn(\"Failed to get value for field '\"+field.getName()+\"'\",e1);\n\t\t\t}\n\t\t}\n\n\t\treturn value;\n\t}",
"public String getFieldValue() {\n return this.fieldValue;\n }",
"public java.lang.String getFieldValue() {\n return fieldValue;\n }",
"public Object getValue(String fieldName) {\n try {\n Field field = FieldUtils.getField(object.getClass(), fieldName, true);\n if (field != null) {\n return FieldUtils.readField(field, object, true);\n } else {\n logger.error(\"Unable to get value of field because the field does not exits on class: \" + object.getClass());\n }\n } catch (IllegalAccessException e) {\n logger.error(e);\n }\n return null;\n }",
"Object getObjectField();",
"public Object getValue(Object obj) throws ReflectiveOperationException {\r\n return fieldAccess.get(obj);\r\n }",
"public Object getValue();",
"public Object getValue();",
"public Object getValue();",
"public Object getValue();",
"public Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"private static Object getFieldValue(ETApiObject row, String fieldName) {\n try {\n Method method = row.getClass().getMethod(createGetterName(fieldName));\n return method.invoke(row);\n } catch (Exception e) {\n LOG.error(String.format(\"Error while fetching %s.%s value\", row.getClass().getSimpleName(), fieldName), e);\n return null;\n }\n }",
"public Object getValue()\r\n\t{\r\n\t\treturn m_value;\r\n\t}",
"public Object getValue()\r\n {\r\n return this.value;\r\n }",
"public Object getValue() { return this.value; }",
"public Object getValue() {\n return value;\n }",
"public Object getValue() {\n return value;\n }",
"public Object getValue() {\n return value;\n }",
"public Object getValue() {\n return value;\n }",
"public Object getValue() {\n return value;\n }",
"public Object getValue() { return _value; }",
"public Object getValue() {\r\n return value;\r\n }",
"public Object getValue()\n {\n return value;\n }",
"public String getFieldValue() {\n return TF_Field_Value;\n }",
"public String getValue() {\n\t\tString value;\n\t\ttry {\n\t\t\tvalue = this.getString(\"value\");\n\t\t} catch (Exception e) {\n\t\t\tvalue = null;\n\t\t}\n\t\treturn value;\n\t}",
"org.apache.calcite.avatica.proto.Common.TypedValue getValue();",
"public Object getValue() {\n\t\treturn value;\n\t}",
"public Object getValue() {\n\t\treturn value;\n\t}",
"public Object getValue() {\n\t\t\treturn value;\n\t\t}",
"public Object getValue() {\r\n return oValue;\r\n }",
"public Object getValue(){\n \treturn this.value;\n }",
"public Object getValue()\n {\n\treturn value;\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return userId;\n case 1: return tweedId;\n case 2: return edgeType;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public final Object getValue()\n {\n return m_Value;\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return shipmentId;\n case 1: return address;\n case 2: return shippingServiceOption;\n case 3: return trackingDetails;\n case 4: return recipientName;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public T getField()\r\n {\r\n return this.field;\r\n }",
"@SuppressWarnings(\"unchecked\")\n @Nullable\n public T getValue() {\n Object data = mData;\n if (data != NOT_SET) {\n return (T) data;\n }\n return null;\n }",
"public String getValue() {\n return getMethodValue(\"value\");\n }",
"public Object get(int field$) {\n switch (field$) {\n case 0: return accountID;\n case 1: return brokerId;\n case 2: return createDate;\n case 3: return TransferSerials;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public String getValue () { return value; }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return username;\n case 2: return email_address;\n case 3: return phone_number;\n case 4: return first_name;\n case 5: return last_name;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return localId;\n case 2: return serviceId;\n case 3: return args;\n case 4: return inputs;\n case 5: return outputs;\n case 6: return timestamp;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public String getValue()\n {\n String v = (String)this.getFieldValue(FLD_value);\n return StringTools.trim(v);\n }",
"public String getValue()\n {\n return value;\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return responding_product_id;\n case 1: return requesting_product_id;\n case 2: return module;\n case 3: return operation;\n case 4: return suboperation;\n case 5: return target_object_uri;\n case 6: return object_size;\n case 7: return execution_time;\n case 8: return status;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public Object getFieldValue(String fieldName, Object entity) {\n try {\n return new PropertyDescriptor(fieldName, entity.getClass()).getReadMethod()\n .invoke(entity);\n } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException\n | IntrospectionException | SecurityException e) {\n return null;\n }\n }",
"@Override\r\n public Object getValue() {\r\n return value;\r\n }",
"public String getValue()\n {\n return fValue;\n }",
"public T getValue() {\n\t\t\treturn this.entry.value;\n\t\t}",
"@SuppressWarnings(\"unchecked\")\n\tdefault Object getFieldValue(F field) {\n\t\t// piggyback on pull (from self)\n\t\treturn pull(field, (C) this, FieldGraph.noneOf(getFieldsClass()));\n\t}",
"public Object getValue() {\n\t\treturn object;\n\t}",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"public String getValue() { return value; }",
"public String getValue(){\n\t\treturn _value;\n\t}",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return timestamp;\n case 1: return millis;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"@Override\n public Object getValue()\n {\n return value;\n }",
"public String getFieldValue() {\r\n\t\tString value = textBox.getValue();\r\n\t\t\t\r\n\t\treturn value;\r\n\t}",
"public T getValue() {\n return this.value;\n }",
"public final Object get() {\n return getValue();\n }",
"public String getValue() {\n return value;\n }",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return contentFileId;\n case 1: return documentId;\n case 2: return envelopeId;\n case 3: return errorId;\n case 4: return errorInfo;\n case 5: return errorLevel;\n case 6: return offset;\n case 7: return position;\n case 8: return processId;\n case 9: return taskId;\n case 10: return transactionId;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"@Override\n\tObject getValue() {\n\t try {\n\t\tObject value = getField.get(object);\n\t\tif (value instanceof Enum)\n\t\t return value.toString();\n\t\treturn value;\n\t }\n\t catch (IllegalAccessException ex) {\n\t\treturn null;\n\t }\n\t}",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return relatedIMEventOriginalID;\n case 2: return userID;\n case 3: return occurredMillis;\n case 4: return validFromMillis;\n case 5: return validToMillis;\n case 6: return role;\n case 7: return fullPriceTableRef;\n case 8: return relatedIMEventMsg;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"protected Object doGetValue() {\n\t\treturn value;\n\t}",
"public String getValue() {\n\t\treturn (String) get_Value(\"Value\");\n\t}",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return kullaniciTur_id;\n case 1: return kullanici_adi;\n case 2: return kullanici_id;\n case 3: return kullanici_soyadi;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public String getValue()\n {\n return value;\n }",
"public String getValue()\n {\n return value;\n }",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue()\n {\n return this.value;\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return businessDocumentId;\n case 1: return containingParentId;\n case 2: return containingParentType;\n case 3: return containingParentLevel;\n case 4: return controlNumber;\n case 5: return controlNumberLevel1;\n case 6: return controlNumberLevel2;\n case 7: return contentKeys;\n case 8: return documentId;\n case 9: return documentStandard;\n case 10: return documentStandardVersion;\n case 11: return documentType;\n case 12: return envelopeVersion;\n case 13: return eventId;\n case 14: return eventTimestamp;\n case 15: return fileInfo;\n case 16: return introspectionSource;\n case 17: return introspectionType;\n case 18: return processId;\n case 19: return receiverAddress;\n case 20: return senderAddress;\n case 21: return sentDate;\n case 22: return sentTime;\n case 23: return taskId;\n case 24: return transactionId;\n case 25: return senderAddressEnvelopeLevel1;\n case 26: return receiverAddressEnvelopeLevel1;\n case 27: return functionalCodeEnvelopeLevel1;\n case 28: return senderAddressEnvelopeLevel2;\n case 29: return receiverAddressEnvelopeLevel2;\n case 30: return functionalCodeEnvelopeLevel2;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public Object get(int field$) {\n switch (field$) {\n case 0: return transferId;\n case 1: return brokerId;\n case 2: return accountID;\n case 3: return accountAuthId;\n case 4: return accountPassword;\n case 5: return fundPassword;\n case 6: return tradeCode;\n case 7: return bankID;\n case 8: return bankBranchID;\n case 9: return bankPassword;\n case 10: return currencyID;\n case 11: return secuPwdFlag;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public String getValue()\r\n\t{\r\n\t\treturn value;\r\n\t}"
] | [
"0.73474485",
"0.69042635",
"0.6825209",
"0.6770848",
"0.6665449",
"0.6622267",
"0.6618661",
"0.65873945",
"0.6576469",
"0.6559138",
"0.6559138",
"0.6559138",
"0.6559138",
"0.6559138",
"0.65584934",
"0.65584934",
"0.65584934",
"0.65584934",
"0.65584934",
"0.65584934",
"0.65584934",
"0.6557146",
"0.6546416",
"0.65413874",
"0.65359867",
"0.6522369",
"0.6522369",
"0.6522369",
"0.6522369",
"0.6522369",
"0.65181947",
"0.65036714",
"0.650024",
"0.6496778",
"0.649545",
"0.6476918",
"0.6476368",
"0.6476368",
"0.64720553",
"0.6444628",
"0.64326054",
"0.6422508",
"0.6418074",
"0.64055455",
"0.64038956",
"0.63952625",
"0.6390459",
"0.6387752",
"0.63846785",
"0.63727325",
"0.6371267",
"0.63678324",
"0.63615036",
"0.63551366",
"0.6346045",
"0.63435286",
"0.634341",
"0.6336605",
"0.63330615",
"0.6327244",
"0.6323121",
"0.63159966",
"0.63159966",
"0.63159966",
"0.63159966",
"0.63159966",
"0.63159966",
"0.6311207",
"0.63097465",
"0.63003486",
"0.6291111",
"0.62838113",
"0.62834334",
"0.6282983",
"0.62762684",
"0.62697107",
"0.62697107",
"0.62697107",
"0.62697107",
"0.62697107",
"0.6269106",
"0.6268415",
"0.62671316",
"0.6266654",
"0.62636596",
"0.62616813",
"0.62573016",
"0.62573016",
"0.62435365",
"0.62435365",
"0.62435365",
"0.62435365",
"0.62435365",
"0.62435365",
"0.62435365",
"0.62435365",
"0.62435365",
"0.6239264",
"0.62340426",
"0.6233988",
"0.6233478"
] | 0.0 | -1 |
Convert field from Data Transfer Object to Entity. | public static Object convertField(Class<?> fieldConverterType, Object value) {
return convertField(fieldConverterType, value, false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract T convertToEntity(D dto);",
"E toEntity(V dto);",
"public Entity toEntity(Object pojo) {\n return ofy().save().toEntity(pojo);\n }",
"public void toEntity(){\n\n }",
"public abstract P toEntity();",
"E mapToEntity(D dto);",
"Object toDomain(Object entity, Settings settings);",
"<T> void toEntity(T entity, int type);",
"protected <T> T convertForEntity(Object value, Class<T> type) {\r\n return typeConversionManager.convert(value, type);\r\n }",
"@Test\n\tpublic void testConvertToEntity() throws Exception {\n\t\tODocument document = new ODocument(\"Source\")\n\t\t\t\t.field(\"shortTitle\", \"shortTitle\")\n\t\t\t\t.field(\"shortTitleasc\", \"shortTitle\")\n\t\t\t\t.field(\"shortRef\", \"shortRef\")\n\t\t\t\t.field(\"sourceType\", \"sourceType\")\n\t\t\t\t.field(\"url\", \"url\")\n\t\t\t\t.field(\"productCode\", \"productCode\")\n\t\t\t\t.field(\"author\", \"author\")\n\t\t\t\t.field(\"citation\", \"citation\")\n\t\t\t\t.field(\"longTitle\", \"longTitle\")\n\t\t\t\t.field(\"copyright\", \"copyright\")\n\t\t\t\t.field(\"description\", \"Description\")\n\t\t\t\t.field(\"descriptionMarkup\", \"default\")\n\t\t\t\t.field(\"color\", 0x123456)\n\t\t\t\t.field(\"created\", 1L)\n\t\t\t\t.field(\"modified\", 2L);\n\t\t// persist to database to create id\n\t\tdocument.save();\n\n\t\tISource node = repository.convertToEntity(document);\n\n\t\tassertEquals(\"shortTitle\", node.getShortTitle());\n\t\tassertEquals(\"sourceType\", node.getSourceType());\n\t\tassertEquals(\"shortRef\", node.getShortRef());\n\t\tassertEquals(\"url\", node.getUrl());\n\t\tassertEquals(\"productCode\", node.getProductCode());\n\t\tassertEquals(\"author\", node.getAuthor());\n\t\tassertEquals(\"citation\", node.getCitation());\n\t\tassertEquals(\"longTitle\", node.getTitle());\n\t\tassertEquals(\"copyright\", node.getCopyright());\n\t\tassertEquals(\"Description\", node.getDescription());\n\t\tassertEquals(\"default\", node.getDescriptionMarkup());\n\t\tassertEquals(new Integer(0x123456), node.getColor());\n\t\tassertEquals(new Long(1L), node.getCreated());\n\t\tassertEquals(new Long(2L), node.getModified());\n\n\t\tassertEquals(document.getIdentity().toString(), node.getId());\n\t}",
"@Override\r\n public BlogEntity toEntity() {\r\n BlogEntity entity = super.toEntity();\r\n if(cliente !=null) entity.setCliente(this.cliente.toEntity());\r\n if(evento !=null) entity.setEvento(this.evento.toEntity());\r\n \r\n return entity;\r\n }",
"public CuentaEntity toEntity() {\r\n CuentaEntity cuentaE = super.toEntity();\r\n if (this.tarjeta != null) {\r\n if (!this.tarjeta.isEmpty()) {\r\n List<TarjetaEntity> tarjetasEntity = new ArrayList<>();\r\n for (TarjetaDTO dtoTarjeta : tarjeta) {\r\n tarjetasEntity.add(dtoTarjeta.toEntity());\r\n }\r\n cuentaE.setTarjeta(tarjetasEntity);\r\n }\r\n }\r\n if (this.ordenPagos != null) {\r\n if (!this.ordenPagos.isEmpty()) {\r\n List<OrdenPagoEntity> ordenesEntity = new ArrayList<>();\r\n for (OrdenPagoDTO dtoOrdenPago : ordenPagos) {\r\n ordenesEntity.add(dtoOrdenPago.toEntity());\r\n }\r\n cuentaE.setOrdenPagos(ordenesEntity);\r\n }\r\n }\r\n \r\n if (this.estudiante != null) {\r\n System.out.println(\"---------------------------------------------------343434343\");\r\n EstudianteEntity es = estudiante.toEntity();\r\n cuentaE.setEstudiante(es);\r\n System.out.println(es.getDocumento());\r\n System.out.println(cuentaE.getEstudiante());\r\n System.out.println(cuentaE.getEstudiante().getDocumento());\r\n }\r\n\r\n return cuentaE;\r\n }",
"private Object convertDBToField(Object value, Field field) {\n if(value == null)\n return null;\n \n Class<?> clazz = field.getType();\n \n if(Enum.class.isAssignableFrom(clazz))\n return Enum.valueOf((Class<Enum>)clazz, value.toString());\n \n if(Base.class.isAssignableFrom(clazz))\n return createInstance((Class<? extends Base>)clazz, (DBObject) value);\n \n if(value instanceof BasicDBList) {\n BasicDBList list = (BasicDBList)value;\n\n if(Collection.class.isAssignableFrom(clazz))\n return convertDBToCollectionField(list, field);\n \n if(clazz.isArray())\n return convertDBToArrayField(list, clazz);\n \n return value;\n }\n \n if(value instanceof BasicDBObject) {\n BasicDBObject map = (BasicDBObject)value;\n\n if(Map.class.isAssignableFrom(clazz))\n return convertDBToMapField(map, field);\n \n return value; \n }\n \n return clazz.isPrimitive() ? convertPrimitiveType(value, clazz) : value;\n }",
"@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n public static Object convertField(Class<?> fieldConverterType, Object value, boolean convertToEntity) {\n if (null != fieldConverterType) {\n if (FieldConverter.class.isAssignableFrom(fieldConverterType)) {\n try {\n FieldConverter fieldConverter = (FieldConverter) ObjectUtils.newInstance(fieldConverterType);\n if (!convertToEntity) {\n value = fieldConverter.convertToFieldDataTransferObject(value);\n } else {\n value = fieldConverter.convertToFieldEntity(value);\n }\n } catch (InvocationTargetException | NoSuchMethodException | InstantiationException | IllegalAccessException e) {\n throw new ConverterFieldException(\"Cannot convert field \" + value.getClass().getName() + \" with \" + fieldConverterType.getName() + \" converter\");\n }\n }\n }\n return value;\n }",
"@Override\r\n public AseoEntity toEntity() {\r\n AseoEntity entity = new AseoEntity();\r\n entity.setBanho(this.banho);\r\n entity.setDientes(this.dientes);\r\n entity.setPeluqueria(this.peluqueria);\r\n entity.setCosto(this.getCosto());\r\n entity.setDuracion(this.getDuracion());\r\n entity.setEstado(this.isEstado());\r\n entity.setFecha(this.getFecha());\r\n entity.setRango(this.getRango());\r\n entity.setId(this.id);\r\n if (this.cliente != null) {\r\n entity.setCliente(cliente.toEntity());\r\n }\r\n if (this.mascota != null) {\r\n entity.setMascota(mascota.toEntity());\r\n }\r\n if (this.empleado != null) {\r\n entity.setEmpleado(empleado.toEntity());\r\n }\r\n if (this.factura != null) {\r\n entity.setFactura(factura.toEntity());\r\n }\r\n if (this.calificacion != null) {\r\n entity.setCalificacion(calificacion.toEntity());\r\n }\r\n if (this.getVeterinaria() != null) {\r\n entity.setVeterinaria(this.getVeterinaria().toEntity());\r\n }\r\n return entity;\r\n }",
"private History convertDTOToEntity(HistoryDTO historyDto) {\n\t\tHistory history = modelMapper.map(historyDto, History.class);\n\t\treturn history;\n\t}",
"Object toExternal (Object entity, Settings settings);",
"public AtendimentoJuridicoEntity toEntity(AtendimentoJuridicoDTO dto){\n\t\tAtendimentoJuridicoEntity entity = new AtendimentoJuridicoEntity();\n\t\tBeanUtils.copyProperties(dto, entity);\n\t\treturn entity;\n\t}",
"public Representante toEntity(RepresentanteDTO dto) {\n return toEntity(dto, Representante.builder().build());\n }",
"public CoordinadorEntity toEntity(){\n \n CoordinadorEntity entity = new CoordinadorEntity(); \n entity.setId_coordinador(this.id_coodinador);\n entity.setNombres(this.nombres);\n entity.setApellidos(this.apellidos);\n entity.setGenero(this.genero);\n entity.setEmail(this.email);\n entity.setTipoDocumento(tipo_documento_id);\n entity.setNro_documento(this.nro_documento);\n \n return entity;\n }",
"public static <S extends BaseBean, D extends BaseEntity> D parserBeanToEntity(S sourceObject, Class<D> destinationType) {\n\t\treturn dozerMapper.map(sourceObject, destinationType);\n\t}",
"EntityData<?> getEntityData();",
"public EventoEntity toEntity() {\n EventoEntity entity = new EventoEntity();\n entity.setId(this.id);\n entity.setCapacidad(this.capacidad);\n entity.setDistanciaVivienda(this.distanciaVivienda);\n entity.setFechaEvento(this.fechaEvento);\n entity.setNombreEvento(this.nombreEvento);\n entity.setPrivado(this.privado);\n entity.setTipoEvento(this.tipoEvento);\n entity.setUbicacionLat(this.ubicacionLat);\n entity.setUbicacionLon(this.ubicacionLon);\n return entity;\n }",
"public Object toPojo(Entity entity) {\n return ofy().load().fromEntity(entity);\n }",
"@Test\n public void convertToEntity() {\n application = getApplicationBuilder().addBaseApplication().setPerson().build();\n\n // When converting\n converter.convertToEntity(application, entity);\n\n // Then is successful\n assertEquals(new Integer(1), entity.getNoOfBadges());\n assertEquals(ValidValues.DOB, entity.getDob());\n // And nino is uppercase with no spaces\n assertEquals(ValidValues.NINO_FORMATTED, entity.getNino());\n assertEquals(ValidValues.BADGE_HOLDER_NAME, entity.getHolderName());\n assertEquals(ValidValues.BADGE_HOLDER_NAME_AT_BIRTH, entity.getHolderNameAtBirth());\n assertEquals(ValidValues.GENDER.name(), entity.getGenderCode());\n }",
"public FacturaEntity toEntity() {\n FacturaEntity entity = new FacturaEntity();\n entity.setCosto(this.getCosto());\n entity.setId(this.getId());\n return entity;\n }",
"public Representante toEntity(RepresentanteDTO dto, Representante entity) {\n\n entity.setIdRepresentante(dto.getIdRepresentante());\n entity.setNome(dto.getNome());\n entity.setTelefone(dto.getTelefone());\n entity.setSexo(dto.getSexo());\n entity.setEmail(dto.getEmail());\n\n return entity;\n }",
"T onBeforeConvert(T entity, String spaceName);",
"@Override\n protected E dtoToEntity( final D dto )\n {\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n final E entity = super.dtoToEntity( dto );\n /*\n * Convert the notes source ID to UUID\n */\n if ( dto instanceof NotesSourceIdContainer &&\n entity instanceof NotesSourceUuidContainer )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer) dto;\n /*\n * Check for new sources\n */\n this.stockNoteSourceService.checkForNewSource( notesSourceIdContainer );\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n /*\n * Convert the String UUID to a real uuid if present\n */\n if ( notesSourceIdContainer.getNotesSourceId() != null &&\n !notesSourceIdContainer.getNotesSourceId().isEmpty() )\n {\n final StockNoteSourceEntity stockNoteSourceEntity = this.stockNoteSourceService\n .getStockNoteSource( ((CustomerUuidContainer)entity).getCustomerUuid(),\n notesSourceIdContainer.getNotesSourceId() );\n notesSourceUuidContainer.setNotesSourceEntity( stockNoteSourceEntity );\n }\n }\n //logMethodEnd( methodName, entity );\n return entity;\n }",
"@Override\n\tpublic void convertDaoToFrom(CommonEntity ent) {\n\t\tMovie dao=(Movie) ent;\n\t\tthis.setBackgroundImage(dao.getBackgroundImage());\n\t\tthis.setDesc(dao.getDescription());\n\t\tthis.setEmbed(dao.getEmbed());\n\t\tthis.setFeatured(dao.isFeatured());\n\t\tthis.setLatitude(dao.getMap().getLattitude());\n\t\tthis.setLongitude(dao.getMap().getLongitude());\n\t\tthis.setName(dao.getTitle());\n\t\tthis.setRank(dao.getRank());\n\t\t\n\t\t\n\t}",
"public abstract D convertToDto(T entity);",
"public static Ingredient convertToEntity(IngredientDTO ingredientDTO) {\n Ingredient ingredient = new Ingredient();\n if(ingredientDTO.getSearchString()!=null) {\n ingredient.setSearchString(ingredientDTO.getSearchString().toLowerCase());\n }\n if(ingredientDTO.getImageurl()!=null) {\n ingredient.setImageurl(ingredientDTO.getImageurl());\n }\n if(ingredientDTO.getName()!=null) {\n ingredient.setName(ingredientDTO.getName());\n }\n if(ingredientDTO.getReference()!=null) {\n ingredient.setReference(ingredientDTO.getReference());\n }\n if(ingredientDTO.getRejectionPercent()!=null) {\n ingredient.setRejectionPercent(ingredientDTO.getRejectionPercent());\n }\n return ingredient;\n }",
"Comment dtoToEntity(CommentDto commentDto);",
"@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n public static Object convertToFieldOfDataTransferObject(Object dto, String prefix, Map<String, Object> record, Field field, String[] filter) {\n Object reValue = null;\n if (null != record && null != field) {\n String entityFieldPath = getEntityMappingFieldPath(field);\n if (!StringUtils.isEmpty(prefix)) {\n entityFieldPath = prefix + Constants.DOT + entityFieldPath;\n }\n\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType)) {\n Object innerDTO = null;\n try {\n if (ObjectUtils.fieldIsCollection(field)) {\n Collection collection = ObjectUtils.getValueOfField(dto, field.getName(), Collection.class);\n if (null == collection) {\n collection = ObjectUtils.newInstanceCollection(field.getType());\n } else {\n for (Object obj : collection) {\n String keyOne = getKey(fieldType, obj);\n String keyTwo = getKey(entityFieldPath, fieldType, record);\n if (keyOne.equals(keyTwo)) {\n innerDTO = obj;\n break;\n }\n }\n }\n\n Object value = convertToDataTransferObject(innerDTO, entityFieldPath, record, fieldType, filter);\n\n if (null == innerDTO) {\n collection.add(value);\n }\n reValue = collection;\n } else {\n reValue = convertToDataTransferObject(null, entityFieldPath, record, fieldType, filter);\n }\n } catch (NoSuchMethodException e) {\n throw new ConstructorInvalidException(\"Cannot new collection instance for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot get value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n } else if (MappingUtils.isKeepField(entityFieldPath, filter)) {\n Class<?> fieldConverter = getFieldConverterType(field);\n reValue = convertField(fieldConverter, record.get(entityFieldPath));\n }\n }\n return reValue;\n }",
"public static Reading mapToEntity(ReadingDTO readingDTO) {\n if (Objects.isNull(readingDTO)) {\n return null;\n }\n return new Reading(readingDTO.getValue(), readingDTO.getDateTime());\n }",
"V toDto(E entity);",
"public ViviendaEntity toEntity() {\r\n ViviendaEntity entity = new ViviendaEntity();\r\n entity.setIdVivienda(this.getIdVivienda());\r\n entity.setCiudad(this.getCiudad());\r\n entity.setDescripcion(this.getDescripcion());\r\n entity.setDireccion(this.getDireccion());\r\n entity.setCapacidad(this.getCapacidad());\r\n \r\n entity.setValorDiario(this.getValorDiario());\r\n entity.setImagen(this.getImagen());\r\n entity.setNumeroHabitaciones (this.getNumeroHabitaciones());\r\n return entity;\r\n }",
"private IngredienteDTO converteIngredienteEntityEmDTO(final IngredienteEntity ingredienteEntity) {\n\n IngredienteDTO ingredienteDTO = new IngredienteDTO();\n\n ingredienteDTO.setCodigoIngrediente(ingredienteEntity.getCodigoIngrediente());\n ingredienteDTO.setNomeIngrediente(ingredienteEntity.getNomeIngrediente());\n ingredienteDTO.setValorIngrediente(ingredienteDTO.getValorIngrediente());\n\n return ingredienteDTO;\n }",
"@Override\n public D entityToDTO( final E entity )\n {\n //final String methodName = \"cachedDataToDTO\";\n //logMethodBegin( methodName, entity );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n D dto = super.entityToDTO( entity );\n /*\n * I think this is a good use of instanceof...although I am not convinced, I'll have to think about this...\n * If any stock DTO is a stock company container, it will be populated automatically with the stock company\n * information. No need for any sub cvl\n *\n * NEED TO SERIOUSLY THINK ABOUT A BETTER SOLUTION HERE....5/9/2017 Mike.\n *\n * Need to develop some sort of \"conversion\" registration so that subclasses can register \"converters\" to be\n * run on entity.\n *\n /*\n * StockPriceQuoteContainers contain everything in a StockPriceContainer so get that instead\n */\n /*\n if ( dto instanceof StockQuoteDTOContainer )\n {\n this.stockQuoteEntityService\n .setQuoteInformation( dto );\n }\n */\n /*\n * The quote contains the company name\n */\n /*\n else if ( dto instanceof StockCompanyEntityContainer )\n {\n this.stockCompanyEntityService\n .setCompanyInformation( (StockCompanyDTOContainer) dto );\n }\n if ( dto instanceof StockPriceQuoteDTOContainer )\n {\n this.stockPriceQuoteService\n .setStockPriceQuote( dto, ASYNCHRONOUS );\n }\n */\n\n /*\n * Convert the UUID to a string and get the notes source name for the UUID\n */\n if ( entity instanceof NotesSourceUuidContainer &&\n dto instanceof NotesSourceIdContainer )\n {\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n if ( notesSourceUuidContainer.getNotesSourceEntity().isPresent() )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer)dto;\n final StockNoteSourceEntity stockNoteSourceEntity = notesSourceUuidContainer.getNotesSourceEntity().get();\n notesSourceIdContainer.setNotesSourceName( stockNoteSourceEntity.getName() );\n notesSourceIdContainer.setNotesSourceId( stockNoteSourceEntity.getUuid().toString() );\n }\n }\n\n if ( dto instanceof TagsContainer )\n {\n final TagsContainer tagsContainer = (TagsContainer)dto;\n tagsContainer.setTags( this.stockTagService.findStockTags( UUIDUtil.uuid( tagsContainer.getCustomerId() ),\n StockTagEntity.StockTagReferenceType.STOCK_TO_BUY,\n UUIDUtil.uuid( tagsContainer.getEntityId() ) ) );\n }\n //logMethodEnd( methodName, dto );\n return dto;\n }",
"public FilmType convertDtoToEntity(FilmTypeDto dto){\n\t\tFilmType entity = new FilmType();\n\t\tif(dto!=null){\n\t\t\tentity.setId(dto.getId());\n\t\t\tentity.setVersion(dto.getVersion());\n\t\t\tentity.setDescription(dto.getDescription());\n\t\t}\n\t\treturn entity;\n\t}",
"public static <DTO,Entity> Entity dtoToEntity(DTO dto,Class<Entity> classEntity)\n\t{\n\t\tModelMapper mapper = new ModelMapper();\n\t\treturn mapper.map(dto, classEntity);\n\t}",
"@Override\n public Endpoint convertToEntityAttribute(final String s) {\n try {\n return serializer.deserialize(s, Endpoint.class);\n } catch (IOException e) {\n log.error(e.getMessage(), e);\n return null;\n }\n }",
"EntityType getEntity();",
"private DoctorEntity convertModeltoEntity(Doctor doctor) {\n\t\tDoctorEntity doctorEntity = new DoctorEntity();\n\t\tdoctorEntity.setDoctorId(doctor.getDoctorId());\n\t\tdoctorEntity.setDoctorName(doctor.getDoctorName());\n\t\tdoctorEntity.setDoctorContact(doctor.getDoctorContact());\n\t\tdoctorEntity.setDoctorDepartment(doctor.getDoctorDepartment());\n\t\tdoctorEntity.setDoctorEmail(doctor.getDoctorEmail());\n\t\tdoctorEntity.setDoctorExperience(doctor.getDoctorExperience());\n\t\tdoctorEntity.setDoctorGender(doctor.getDoctorGender());\n\t\tdoctorEntity.setDoctorQualification(doctor.getDoctorQualification());\n\t\tdoctorEntity.setDoctorAddress(doctor.getDoctorAddress());\n\t\tdoctorEntity.setDoctorUserName(doctor.getDoctorUserName());\n\t\tdoctorEntity.setDoctorPassword(doctor.getDoctorPassword());\n\t\treturn doctorEntity;\n\t}",
"@Override\n public CalificacionEntity toEntity() {\n CalificacionEntity calificacionEntity = super.toEntity();\n if (this.getHospedaje() != null) {\n calificacionEntity.setHospedaje(this.getHospedaje().toEntity());\n }\n return calificacionEntity;\n }",
"Object getConvertedValue() throws ConversionException;",
"public static IncomingDelivery mapToEntity(IncomingDeliveryDTO dto) throws Exception {\r\n\r\n\t\tif(dto==null)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tIncomingDelivery entity = new IncomingDelivery();\r\n\r\n\r\n\t\tentity.setIncomingDeliveryId(dto.getIncomingDeliveryId());\r\n\t\tentity.setDeliveryNr(dto.getDeliveryNr());\r\n\r\n\t\t// organisation must be set outside of the mapper (the static functions require a static dataBaseService which is not supported and permanently return null)\r\n\t\t// lastEditor must be set outside of the mapper (the static functions require a static dataBaseService which is not supported and permanently return null)\r\n\r\n\t\tentity.setDeliveryNr(dto.getDeliveryNr());\r\n\r\n\t\ttry {\r\n\t\t\tentity.setDate(df.parse(dto.getDate()));\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// set current Date if parsing fails\r\n\t\t\tentity.setDate(new Date(System.currentTimeMillis()));\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// updateTimestamp does not have to be delivered by the frontend\r\n\t\tif (dto.getUpdateTimestamp() != null)\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tentity.setUpdateTimestamp(df.parse(dto.getUpdateTimestamp()));\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\t// set current Date if parsing fails\r\n\t\t\t\tentity.setUpdateTimestamp(new Date(System.currentTimeMillis()));\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tentity.setComment(dto.getComment());\r\n\r\n\t\t// set archived Flag only by function, not by object\r\n\t\t// entity.setArchived(dto.getArchived());\r\n\t\t// booked status does not have to be set, because it is generated by Hibernate when getting the entity\r\n\r\n\t\tSet<IncomingArticle> incomingArticles = new HashSet<IncomingArticle>();\r\n\t\tfor(IncomingArticleDTO incomingArticleDTO : dto.getIncomingArticleDTOs())\r\n\t\t{\r\n\t\t\tincomingArticles.add(IncomingArticleMapper.mapToEntity(incomingArticleDTO));\r\n\t\t}\r\n\r\n\t\tentity.setIncomingArticles(incomingArticles);\r\n\r\n\t\treturn entity;\r\n\r\n\t}",
"protected abstract Serializable getEntity();",
"public static Map<String, Object> convertToEntityMappingFieldAndValue(Object dto, Field field) {\n Map<String, Object> mapData = new HashMap<>();\n if (null != dto && null != field) {\n Object valueOfField;\n try {\n valueOfField = ObjectUtils.getValueOfField(dto, field.getName());\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot get value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n\n if (validate(MappingUtils.getFieldType(field))) {\n if (!ObjectUtils.fieldIsCollection(field)) {\n Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(valueOfField);\n for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {\n mapData.put(field.getName() + Constants.DOT + entry.getKey(), entry.getValue());\n }\n } else {\n Collection<?> collection = (Collection<?>) valueOfField;\n int index = 0;\n if (!CollectionUtils.isEmpty(collection)) {\n for (Object innerDTO : collection) {\n Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(innerDTO);\n for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {\n mapData.put(field.getName() + \"[\" + index + \"]\" + Constants.DOT + entry.getKey(), entry.getValue());\n }\n index++;\n }\n }\n }\n } else {\n Class<?> fieldConverter = getFieldConverterType(field);\n Object convertValue = convertField(fieldConverter, valueOfField, true);\n mapData.put(getEntityMappingFieldPath(field), convertValue);\n }\n }\n return mapData;\n }",
"ObjectField createObjectField();",
"public MuseologicalObjectDO getEntity(){\r\n\t\tMuseologicalObjectDO objDO = new MuseologicalObjectDO();\r\n\t\tif(objectId != null) objDO.setId(objectId);\r\n\t\tobjDO.setName(name);\r\n\t\tobjDO.setDate(date.getTime());\r\n\t\tobjDO.setObjectType(objectType);\r\n\t\treturn objDO;\r\n\t}",
"public static Promotion dtoToEntity(PromotionDTO dto) {\n if(dto != null) {\n Promotion entity = new Promotion();\n entity.setDiscount(dto.getDiscount());\n entity.setId(dto.getId());\n entity.setAlias(dto.getAlias());\n return entity;\n }\n return null;\n }",
"public Object getFieldValue(String fieldName, Object entity) {\n try {\n return new PropertyDescriptor(fieldName, entity.getClass()).getReadMethod()\n .invoke(entity);\n } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException\n | IntrospectionException | SecurityException e) {\n return null;\n }\n }",
"protected Category convertToEntity(CategoryDto categoryDto) {\n if (categoryDto == null) {\n return null;\n }\n return modelMapper.map(categoryDto, Category.class);\n }",
"public DomicilioEntity toEntity() {\r\n DomicilioEntity domicilioEntity = new DomicilioEntity();\r\n domicilioEntity.setId(this.id);\r\n domicilioEntity.setIdZona(this.idZona);\r\n return domicilioEntity;\r\n }",
"@Override\r\n public ViviendaEntity toEntity() {\r\n ViviendaEntity viviendaEntity = super.toEntity();\r\n if (contratos != null) {\r\n List<ContratoEntity> contratosEntity = new ArrayList<>();\r\n for (ContratoDTO dtoContrato : contratos) {\r\n contratosEntity.add(dtoContrato.toEntity());\r\n }\r\n viviendaEntity.setContratos(contratosEntity);\r\n }\r\n\r\n if (cuartos != null) {\r\n List<CuartoEntity> cuartoEntities = new ArrayList<>();\r\n for (CuartoDTO dto : cuartos) {\r\n cuartoEntities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setCuartos(cuartoEntities);\r\n }\r\n\r\n if (sitiosDeInteres != null) {\r\n List<SitioInteresEntity> entities = new ArrayList<>();\r\n for (SitioInteresDTO dto : sitiosDeInteres) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setSitiosDeInteres(entities);\r\n }\r\n\r\n if (calificaciones != null) {\r\n List<CalificacionEntity> entities = new ArrayList<>();\r\n for (CalificacionDTO dto : calificaciones) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setCalificaciones(entities);\r\n }\r\n\r\n if (serviciosOfrecidos != null) {\r\n viviendaEntity.setServiciosIncluidos(serviciosOfrecidos);\r\n }\r\n\r\n if (serviciosAdicionales != null) {\r\n List<ServicioAdicionalEntity> entities = new ArrayList<>();\r\n for (ServicioAdicionalDTO dto : serviciosAdicionales) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setServiciosAdicionales(entities);\r\n }\r\n\r\n return viviendaEntity;\r\n }",
"public Object convert(Object fromValue) {\n RawObject oldDataRawObject = (RawObject) fromValue;\n Object[] oldElements = oldDataRawObject.getElements();\n Map<String, Object> integerClassValues = \n new HashMap<String, Object>();\n integerClassValues.put(\"data\", oldElements[0]);\n RawObject integerClassObject = \n new RawObject(integerClassType, integerClassValues, null);\n RawObject[] newElements = new RawObject[1];\n newElements[0] = integerClassObject;\n RawObject newDataRawObject = \n new RawObject(newDataType, newElements);\n return newDataRawObject;\n }",
"public Pet convertToEntity(PetDTO petDTO) {\n\t\tPet pet = new Pet();\n\t\tOptional<Advertisement> advertisement = advertisementRepository.findById(pet.getAdvertisement().getId());\n\t\tif (advertisement.isPresent()) {\n\t\t\tpet.setAdvertisement(advertisement.get());\n\t\t} else {\n\t\t\tpet.setAdvertisement(null);\n\t\t}\n\t\tpet.setGender(petDTO.getGender());\n\t\tpet.setId(petDTO.getId());\n\t\tpet.setSpecies(petDTO.getSpecies());\n\t\tpet.setDescription(petDTO.getDescription());\n\t\tpet.setDateOfBirth(petDTO.getDateOfBirth());\n\t\tpet.setBreed(petDTO.getBreed());\n\t\tpet.setName(petDTO.getName());\n\t\tpet.setPicture(petDTO.getPicture());\n\t\treturn pet;\n\t}",
"Object getObjectField();",
"public OrderDetailEntity toEntity (DetailDTO detailDTO,OrderDetailEntity orderDetailEntity) {\n\t\t\n\t\tShoesEntity shoesEntity = shoesRepository.findOne(detailDTO.getShoesID());\n\t\torderDetailEntity.setShoesEntity(shoesEntity);\n\t\torderDetailEntity.setShoesName(shoesEntity.getShoesName());\n\t\torderDetailEntity.setPrice(detailDTO.getPrice());\n\t\torderDetailEntity.setQuantity(detailDTO.getQuantity());\n\t\treturn orderDetailEntity;\n\t}",
"D mapToDTO(E entity);",
"@Override\n public Preparation mapToEntity(PreparationDto dto) {\n return null;\n }",
"protected T getEntity() {\r\n\t\treturn entity;\r\n\t}",
"public E getEntity();",
"public ClientProperty mapToEntity(ClientPropertyDto dto)\r\n\t{\r\n\t\tClientProperty property = new ClientProperty();\r\n\t\tproperty.setId(dto.getId());\r\n\t\tproperty.setKey(dto.getKey());\r\n\t\tproperty.setValue(dto.getValue());\r\n\t\tproperty.setClient(clientMapper.mapToEntity(dto.getClient()));\r\n\r\n\t\tClientProperty persistentProperty = propertyRepo.findOne(property.getId());\r\n\t\tif (persistentProperty != null)\r\n\t\t{\r\n\t\t\treturn persistentProperty.bind(property);\r\n\t\t}\r\n\r\n\t\treturn property;\r\n\t}",
"void buildFromEntity(E entity);",
"private RecipeEntity mapToRecipeEntity(Recipe recipe) {\n\t\tRecipeEntity rEntity = new RecipeEntity();\n\t\t//Map primitive fields\n\t\trEntity.setId(recipe.getId());\n\t\trEntity.setName(recipe.getName());\n\t\trEntity.setType(recipe.getType());\n\t\trEntity.setServingCapacity(recipe.getServingCapacity());\n\t\t\n\t\t//Save current date time into recipe instance, if not given\n\t\tif(recipe.getCreationDateTime() == null) {\n\t\t\tOptional<Date> currentDateTime = Util.getCurrentDateTime();\n\t\t\tif(currentDateTime.isPresent())\n\t\t\t\tlog.debug(\"Current DateTime to be set in recipe entity: \"+currentDateTime.toString());\n\t\t\telse\n\t\t\t\tlog.warn(\"Setting null to current date time field in recipe entity\");\n\t\t\trEntity.setCreationDateTime(currentDateTime.get());\n\t\t} else {\n\t\t\tlog.debug(\"Retaining given creation date time value into recipe entity\");\n\t\t\trEntity.setCreationDateTime(recipe.getCreationDateTime());\n\t\t}\n\t\t\n\t\t//Convert ingredients list into String and set to recipe entity\n\t\tlog.debug(\"Number of ingredients to convert to string: \"+recipe.getIngredientsList().size());\n\t\tString ingredients = Util.convertToJSONString(recipe.getIngredientsList());\n\t\tlog.debug(\"Ingredients String: \"+ingredients);\n\t\trEntity.setIngredients(ingredients);\n\t\t\n\t\trEntity.setInstructions(recipe.getInstructions());\n\t\t\n\t\treturn rEntity;\n\t}",
"protected void fromDBObject(DBObject data) {\n /* Get all public fields of the class */\n Field[] fields = this.getClass().getFields();\n for(Field field : fields) {\n String name = field.getName();\n \n if(data.containsField(name)) {\n if(Modifier.isFinal(field.getModifiers()))\n field.setAccessible(true);\n\n Object value = data.get(name);\n \n try {\n field.set(this, convertDBToField(value, field));\n } catch (IllegalAccessException | IllegalArgumentException ex) {\n throw new MongomanException(ex);\n }\n }\n }\n \n _id = (ObjectId) data.get(\"_id\");\n loaded = data;\n }",
"public static <S extends BaseEntity,D extends BaseBean> D parserEntityToBean(S sourceObject, Class<D> destinationType) {\n\t\treturn dozerMapper.map(sourceObject, destinationType);\n\t}",
"@Test\n public void convertToEntity_WhenOrg() {\n application = getApplicationBuilder().addBaseApplication().setOrganisation().build();\n\n // When converting\n converter.convertToEntity(application, entity);\n\n // Nothing happens\n assertNull(entity.getDob());\n }",
"private void copyDtoToEntity(UserDTO dto, User entity) {\n\t\tentity.setFullName(dto.getFullName());\n\t\tentity.setEmail(dto.getEmail());\n\t\tentity.setCpf(dto.getCpf());\n\t\tentity.setBirthDate(dto.getBirthDate());\n\t}",
"public abstract List<T> convertToEntities(List<D> dtos);",
"public Object toNuxeoEntity(Object object, Class<?> klass, String type) {\n if (object instanceof List) {\n @SuppressWarnings(\"unchecked\")\n List<Object> list = (List<Object>) object;\n return list.stream().map(o -> toNuxeoEntity(o, klass, type)).collect(toList());\n } else if (object instanceof Object[]) {\n Object[] array = (Object[]) object;\n return Arrays.stream(array).map(o -> toNuxeoEntity(o, klass, type)).collect(toList());\n }\n if (klass.isAssignableFrom(object.getClass())) {\n return Map.of(ENTITY_TYPE, type, VALUE, object);\n }\n throw new NuxeoException(object.getClass().getName() + \" is not a \" + klass.getName());\n }",
"public PrestadorEntity toEntity() {\r\n PrestadorEntity prestadorEntity = new PrestadorEntity();\r\n prestadorEntity.setId(this.id);\r\n prestadorEntity.setNombre(this.nombre);\r\n prestadorEntity.setCedula(this.cedula);\r\n prestadorEntity.setCorreo(this.correo);\r\n prestadorEntity.setContrasena(this.contrasena);\r\n if(this.hojaDeVida != null)\r\n prestadorEntity.setHojaDeVida(this.hojaDeVida.toEntity());\r\n return prestadorEntity;\r\n }",
"BeanPedido fromEntity(PedidosEntity entity);",
"public Object convertValue(Field field) throws IllegalAccessException\n {\n if (field.getType().equals(Boolean.TYPE))\n {\n return (field.getBoolean(this) ? Boolean.TRUE : Boolean.FALSE);\n }\n if (field.getType().equals(Integer.TYPE))\n {\n return new Integer(field.getInt(this));\n }\n if (field.getType().equals(Short.TYPE))\n {\n return new Short(field.getShort(this));\n }\n if (field.getType().equals(Float.TYPE))\n {\n return new Double(field.getFloat(this));\n }\n if (field.getType().equals(Double.TYPE))\n {\n return new Double(field.getDouble(this));\n }\n //System.out.println(\"ohoh...\");\n return null; //and good luck with it :-) ...\n }",
"public OrderDetailEntity toEntity (DetailDTO detailDTO) {\n\t\t\n\t\tOrderDetailEntity orderDetailEntity = new OrderDetailEntity();\n\t\tShoesEntity shoesEntity = shoesRepository.getShoesById(detailDTO.getShoesID());\n\t\torderDetailEntity.setShoesEntity(shoesEntity);\n\t\torderDetailEntity.setShoesName(shoesEntity.getShoesName());\n\t\torderDetailEntity.setPrice(detailDTO.getPrice());\n\t\torderDetailEntity.setQuantity(detailDTO.getQuantity());\n\t\torderDetailEntity.setDeleted(detailDTO.getDeleted());\n\t\t\n\t\treturn orderDetailEntity;\n\t}",
"public static Map<String, Object> convertToEntityMappingFieldAndValue(Object dto) {\n Map<String, Object> mapData = new HashMap<>();\n if (null != dto) {\n List<Field> fields = ObjectUtils.getFields(dto.getClass(), true);\n for (Field field : fields) {\n mapData.putAll(convertToEntityMappingFieldAndValue(dto, field));\n }\n }\n return mapData;\n }",
"@Override\r\n public Share convertToEntity(InstrumentDto dto) {\r\n LocalDateTime stDate = getDateTimePersistenceConverter().convertToEntityAttribute(dto.getPaymentStartingDate());\r\n LocalDateTime endDate = getDateTimePersistenceConverter().convertToEntityAttribute(dto.getPaymentEndingDate());\r\n \r\n Share entity = new Share();\r\n entity.setId(dto.getId());\r\n entity.setInstrumentName(dto.getInstrumentName());\r\n entity.setStartOfPaymentPeriod(stDate);\r\n entity.setEndOfPaymentPeriod(endDate);\r\n \r\n return entity;\r\n }",
"TO fromObject(CONTEXT context, final FROM obj);",
"public BUserDto convertEntityToDto(BUser entity){\n\t\tBUserDto dto = new BUserDto();\n\t\tif(entity!=null){\n\t\t\tdto.setId(entity.getId());\n\t\t\tdto.setUsername(entity.getUsername());\n\t\t}\n\t\treturn dto;\n\t}",
"@Override\n public RuntimeException convert(PersistenceException exception, Object entity) {\n return exception;\n }",
"public Member copyDtoToEntity(MemberDto dto, Member entity) {\r\n reflectFormalizedDatetimeToEntity(dto, entity);\r\n reflectMemberIdToEntity(dto, entity);\r\n reflectMemberNameToEntity(dto, entity);\r\n reflectUpdateDatetimeToEntity(dto, entity);\r\n\r\n return entity;\r\n }",
"public EntityType getCreateEntity(DtoType dto) throws ClassNotFoundException, InstantiationException, IllegalAccessException;",
"private ManagedObject adopt(final EntityChangeTracker entityChangeTracker, final Object fetchedObject) {\n if(fetchedObject instanceof Persistable) {\n // an entity\n val entity = objectManager.adapt(fetchedObject);\n //fetchResultHandler.initializeEntityAfterFetched((Persistable) fetchedObject);\n entityChangeTracker.recognizeLoaded(entity);\n return entity;\n } else {\n // a value type\n return objectManager.adapt(fetchedObject);\n }\n }",
"private HistoryDTO convertEntityToDTO(History history) {\n\t\tHistoryDTO historyDto = modelMapper.map(history, HistoryDTO.class);\n\t\treturn historyDto;\n\t}",
"@Override\n\tpublic LocalDate convertToEntityAttribute(Date dbData) {\n\t\treturn dbData.toLocalDate();\n\t}",
"public E copyFromEntity(@Nonnull E value, @Nullable FileEntity file)\n {\n if(file == null)\n {\n value = _setFile.apply(value, null);\n }\n else\n {\n value = _saveValue.apply(value);\n FileEntityFileItem fileItem = new FileEntityFileItem(file);\n FileEntity copy = _fileSystemDAO.copy(file, _getDirectory.apply(value, fileItem),\n _getFileName.apply(value, fileItem), null, FileSystemEntityCreateMode.overwrite);\n value = _setFile.apply(value, copy);\n }\n value = _saveValue.apply(value);\n return value;\n }",
"public static Dia toLevel0Entity(DiaDTO dto, Dia entidad) {\n if (null == entidad) {\n entidad = new Dia();\n }\n entidad.setId(dto.getId());\n entidad.setNombre(dto.getNombre());\n entidad.setSigla(dto.getSigla());\n entidad.setActivo(dto.getActivo());\n entidad.setCodigo(dto.getCodigo());\n entidad.setDescripcion(dto.getDescripcion());\n return entidad;\n }",
"@Override\n\tpublic Exam toEntity(ExamDTO examDTO) {\n\t\treturn null;\n\t}",
"public OpenEcompComponentEntity toEntity() {\n OpenEcompComponentEntity destination = new OpenEcompComponentEntity();\n destination.setId(this.getId());\n destination.setName(this.getName());\n return destination;\n }",
"Serializable extractId(Object entity);",
"@Override\n public SystemResource pojoToEntity(SystemResourcePojo pojo){\n SystemResource entity = new SystemResource();\n\n entity.setName(pojo.getName());\n entity.setPath(pojo.getPath());\n entity.setType(pojo.getType());\n entity.setOriginalFileName(pojo.getOriginalFileName());\n entity.setUrl(pojo.getUrl());\n entity.setPublicKey(pojo.getPublicKey());\n return entity;\n }",
"void mapToExistingEntity(D dto, @MappingTarget E entity);",
"public EntityType initUpdateEntity(DtoType dto) throws ClassNotFoundException, IllegalArgumentException, IllegalAccessException;",
"Persona PersonaDTOToPersona(PersonaDTO personaDTO);",
"List<E> mapToEntity(List<D> dto);",
"protected abstract Object toObject(ByteBuffer content, Type targetType) throws BeanConversionException;",
"public E getEntity() {\n return this.entity;\n }",
"@Override\n public Comment toEntity(CommentDTO dto) {\n Comment entity = new Comment();\n entity.setId(dto.getId());\n entity.setStatus(dto.getStatus());\n entity.setSenderId(dto.getSender().getId());\n entity.setSenderName(dto.getSender().getName());\n entity.setText(dto.getText());\n// entity.setRentInfo(rentInfoDtoMapper.toEntity(dto.getRentInfo()));\n return entity;\n }",
"public <T> T toObject(Class<T> type, String source) {\n return toObject(String.class, new EntityType<T>(type), source);\n }"
] | [
"0.70582134",
"0.6874999",
"0.654458",
"0.65417564",
"0.63713616",
"0.6371296",
"0.6370469",
"0.63184124",
"0.62596315",
"0.6236341",
"0.62128425",
"0.62076825",
"0.6196973",
"0.61767894",
"0.6136881",
"0.6110385",
"0.6101431",
"0.6075987",
"0.6057847",
"0.6030954",
"0.6029225",
"0.60191023",
"0.6001673",
"0.5989785",
"0.59578055",
"0.5921356",
"0.5908346",
"0.5894474",
"0.5869958",
"0.58489025",
"0.5842039",
"0.5841301",
"0.5799309",
"0.5796494",
"0.57956815",
"0.575752",
"0.57444227",
"0.57348734",
"0.5732632",
"0.57132214",
"0.5697692",
"0.56866187",
"0.5676327",
"0.56428057",
"0.5639464",
"0.5610427",
"0.56040657",
"0.56013227",
"0.56003267",
"0.5597412",
"0.5575166",
"0.5560508",
"0.5557311",
"0.5557046",
"0.5554248",
"0.5552605",
"0.55510503",
"0.5523095",
"0.55141604",
"0.55108786",
"0.5496483",
"0.549192",
"0.54858637",
"0.5482295",
"0.5462012",
"0.545016",
"0.54420674",
"0.5433868",
"0.54328024",
"0.54307973",
"0.5424816",
"0.54155463",
"0.5412615",
"0.5397575",
"0.5387579",
"0.5382428",
"0.5381494",
"0.5377073",
"0.5376154",
"0.5369739",
"0.53417706",
"0.53337973",
"0.5333136",
"0.533024",
"0.53205115",
"0.53149265",
"0.5300518",
"0.5294873",
"0.5290475",
"0.52879554",
"0.52760065",
"0.5272271",
"0.5270708",
"0.52674985",
"0.52662915",
"0.5265844",
"0.5259782",
"0.52566326",
"0.5240631",
"0.52350396",
"0.52347857"
] | 0.0 | -1 |
Convert field from Data Transfer Object to Entity. | @SuppressWarnings({"unchecked", "rawtypes"})
public static Object convertField(Class<?> fieldConverterType, Object value, boolean convertToEntity) {
if (null != fieldConverterType) {
if (FieldConverter.class.isAssignableFrom(fieldConverterType)) {
try {
FieldConverter fieldConverter = (FieldConverter) ObjectUtils.newInstance(fieldConverterType);
if (!convertToEntity) {
value = fieldConverter.convertToFieldDataTransferObject(value);
} else {
value = fieldConverter.convertToFieldEntity(value);
}
} catch (InvocationTargetException | NoSuchMethodException | InstantiationException | IllegalAccessException e) {
throw new ConverterFieldException("Cannot convert field " + value.getClass().getName() + " with " + fieldConverterType.getName() + " converter");
}
}
}
return value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract T convertToEntity(D dto);",
"E toEntity(V dto);",
"public Entity toEntity(Object pojo) {\n return ofy().save().toEntity(pojo);\n }",
"public void toEntity(){\n\n }",
"public abstract P toEntity();",
"E mapToEntity(D dto);",
"Object toDomain(Object entity, Settings settings);",
"<T> void toEntity(T entity, int type);",
"protected <T> T convertForEntity(Object value, Class<T> type) {\r\n return typeConversionManager.convert(value, type);\r\n }",
"@Test\n\tpublic void testConvertToEntity() throws Exception {\n\t\tODocument document = new ODocument(\"Source\")\n\t\t\t\t.field(\"shortTitle\", \"shortTitle\")\n\t\t\t\t.field(\"shortTitleasc\", \"shortTitle\")\n\t\t\t\t.field(\"shortRef\", \"shortRef\")\n\t\t\t\t.field(\"sourceType\", \"sourceType\")\n\t\t\t\t.field(\"url\", \"url\")\n\t\t\t\t.field(\"productCode\", \"productCode\")\n\t\t\t\t.field(\"author\", \"author\")\n\t\t\t\t.field(\"citation\", \"citation\")\n\t\t\t\t.field(\"longTitle\", \"longTitle\")\n\t\t\t\t.field(\"copyright\", \"copyright\")\n\t\t\t\t.field(\"description\", \"Description\")\n\t\t\t\t.field(\"descriptionMarkup\", \"default\")\n\t\t\t\t.field(\"color\", 0x123456)\n\t\t\t\t.field(\"created\", 1L)\n\t\t\t\t.field(\"modified\", 2L);\n\t\t// persist to database to create id\n\t\tdocument.save();\n\n\t\tISource node = repository.convertToEntity(document);\n\n\t\tassertEquals(\"shortTitle\", node.getShortTitle());\n\t\tassertEquals(\"sourceType\", node.getSourceType());\n\t\tassertEquals(\"shortRef\", node.getShortRef());\n\t\tassertEquals(\"url\", node.getUrl());\n\t\tassertEquals(\"productCode\", node.getProductCode());\n\t\tassertEquals(\"author\", node.getAuthor());\n\t\tassertEquals(\"citation\", node.getCitation());\n\t\tassertEquals(\"longTitle\", node.getTitle());\n\t\tassertEquals(\"copyright\", node.getCopyright());\n\t\tassertEquals(\"Description\", node.getDescription());\n\t\tassertEquals(\"default\", node.getDescriptionMarkup());\n\t\tassertEquals(new Integer(0x123456), node.getColor());\n\t\tassertEquals(new Long(1L), node.getCreated());\n\t\tassertEquals(new Long(2L), node.getModified());\n\n\t\tassertEquals(document.getIdentity().toString(), node.getId());\n\t}",
"@Override\r\n public BlogEntity toEntity() {\r\n BlogEntity entity = super.toEntity();\r\n if(cliente !=null) entity.setCliente(this.cliente.toEntity());\r\n if(evento !=null) entity.setEvento(this.evento.toEntity());\r\n \r\n return entity;\r\n }",
"public CuentaEntity toEntity() {\r\n CuentaEntity cuentaE = super.toEntity();\r\n if (this.tarjeta != null) {\r\n if (!this.tarjeta.isEmpty()) {\r\n List<TarjetaEntity> tarjetasEntity = new ArrayList<>();\r\n for (TarjetaDTO dtoTarjeta : tarjeta) {\r\n tarjetasEntity.add(dtoTarjeta.toEntity());\r\n }\r\n cuentaE.setTarjeta(tarjetasEntity);\r\n }\r\n }\r\n if (this.ordenPagos != null) {\r\n if (!this.ordenPagos.isEmpty()) {\r\n List<OrdenPagoEntity> ordenesEntity = new ArrayList<>();\r\n for (OrdenPagoDTO dtoOrdenPago : ordenPagos) {\r\n ordenesEntity.add(dtoOrdenPago.toEntity());\r\n }\r\n cuentaE.setOrdenPagos(ordenesEntity);\r\n }\r\n }\r\n \r\n if (this.estudiante != null) {\r\n System.out.println(\"---------------------------------------------------343434343\");\r\n EstudianteEntity es = estudiante.toEntity();\r\n cuentaE.setEstudiante(es);\r\n System.out.println(es.getDocumento());\r\n System.out.println(cuentaE.getEstudiante());\r\n System.out.println(cuentaE.getEstudiante().getDocumento());\r\n }\r\n\r\n return cuentaE;\r\n }",
"private Object convertDBToField(Object value, Field field) {\n if(value == null)\n return null;\n \n Class<?> clazz = field.getType();\n \n if(Enum.class.isAssignableFrom(clazz))\n return Enum.valueOf((Class<Enum>)clazz, value.toString());\n \n if(Base.class.isAssignableFrom(clazz))\n return createInstance((Class<? extends Base>)clazz, (DBObject) value);\n \n if(value instanceof BasicDBList) {\n BasicDBList list = (BasicDBList)value;\n\n if(Collection.class.isAssignableFrom(clazz))\n return convertDBToCollectionField(list, field);\n \n if(clazz.isArray())\n return convertDBToArrayField(list, clazz);\n \n return value;\n }\n \n if(value instanceof BasicDBObject) {\n BasicDBObject map = (BasicDBObject)value;\n\n if(Map.class.isAssignableFrom(clazz))\n return convertDBToMapField(map, field);\n \n return value; \n }\n \n return clazz.isPrimitive() ? convertPrimitiveType(value, clazz) : value;\n }",
"@Override\r\n public AseoEntity toEntity() {\r\n AseoEntity entity = new AseoEntity();\r\n entity.setBanho(this.banho);\r\n entity.setDientes(this.dientes);\r\n entity.setPeluqueria(this.peluqueria);\r\n entity.setCosto(this.getCosto());\r\n entity.setDuracion(this.getDuracion());\r\n entity.setEstado(this.isEstado());\r\n entity.setFecha(this.getFecha());\r\n entity.setRango(this.getRango());\r\n entity.setId(this.id);\r\n if (this.cliente != null) {\r\n entity.setCliente(cliente.toEntity());\r\n }\r\n if (this.mascota != null) {\r\n entity.setMascota(mascota.toEntity());\r\n }\r\n if (this.empleado != null) {\r\n entity.setEmpleado(empleado.toEntity());\r\n }\r\n if (this.factura != null) {\r\n entity.setFactura(factura.toEntity());\r\n }\r\n if (this.calificacion != null) {\r\n entity.setCalificacion(calificacion.toEntity());\r\n }\r\n if (this.getVeterinaria() != null) {\r\n entity.setVeterinaria(this.getVeterinaria().toEntity());\r\n }\r\n return entity;\r\n }",
"private History convertDTOToEntity(HistoryDTO historyDto) {\n\t\tHistory history = modelMapper.map(historyDto, History.class);\n\t\treturn history;\n\t}",
"Object toExternal (Object entity, Settings settings);",
"public AtendimentoJuridicoEntity toEntity(AtendimentoJuridicoDTO dto){\n\t\tAtendimentoJuridicoEntity entity = new AtendimentoJuridicoEntity();\n\t\tBeanUtils.copyProperties(dto, entity);\n\t\treturn entity;\n\t}",
"public Representante toEntity(RepresentanteDTO dto) {\n return toEntity(dto, Representante.builder().build());\n }",
"public CoordinadorEntity toEntity(){\n \n CoordinadorEntity entity = new CoordinadorEntity(); \n entity.setId_coordinador(this.id_coodinador);\n entity.setNombres(this.nombres);\n entity.setApellidos(this.apellidos);\n entity.setGenero(this.genero);\n entity.setEmail(this.email);\n entity.setTipoDocumento(tipo_documento_id);\n entity.setNro_documento(this.nro_documento);\n \n return entity;\n }",
"public static <S extends BaseBean, D extends BaseEntity> D parserBeanToEntity(S sourceObject, Class<D> destinationType) {\n\t\treturn dozerMapper.map(sourceObject, destinationType);\n\t}",
"EntityData<?> getEntityData();",
"public EventoEntity toEntity() {\n EventoEntity entity = new EventoEntity();\n entity.setId(this.id);\n entity.setCapacidad(this.capacidad);\n entity.setDistanciaVivienda(this.distanciaVivienda);\n entity.setFechaEvento(this.fechaEvento);\n entity.setNombreEvento(this.nombreEvento);\n entity.setPrivado(this.privado);\n entity.setTipoEvento(this.tipoEvento);\n entity.setUbicacionLat(this.ubicacionLat);\n entity.setUbicacionLon(this.ubicacionLon);\n return entity;\n }",
"public Object toPojo(Entity entity) {\n return ofy().load().fromEntity(entity);\n }",
"@Test\n public void convertToEntity() {\n application = getApplicationBuilder().addBaseApplication().setPerson().build();\n\n // When converting\n converter.convertToEntity(application, entity);\n\n // Then is successful\n assertEquals(new Integer(1), entity.getNoOfBadges());\n assertEquals(ValidValues.DOB, entity.getDob());\n // And nino is uppercase with no spaces\n assertEquals(ValidValues.NINO_FORMATTED, entity.getNino());\n assertEquals(ValidValues.BADGE_HOLDER_NAME, entity.getHolderName());\n assertEquals(ValidValues.BADGE_HOLDER_NAME_AT_BIRTH, entity.getHolderNameAtBirth());\n assertEquals(ValidValues.GENDER.name(), entity.getGenderCode());\n }",
"public FacturaEntity toEntity() {\n FacturaEntity entity = new FacturaEntity();\n entity.setCosto(this.getCosto());\n entity.setId(this.getId());\n return entity;\n }",
"public Representante toEntity(RepresentanteDTO dto, Representante entity) {\n\n entity.setIdRepresentante(dto.getIdRepresentante());\n entity.setNome(dto.getNome());\n entity.setTelefone(dto.getTelefone());\n entity.setSexo(dto.getSexo());\n entity.setEmail(dto.getEmail());\n\n return entity;\n }",
"T onBeforeConvert(T entity, String spaceName);",
"@Override\n protected E dtoToEntity( final D dto )\n {\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n final E entity = super.dtoToEntity( dto );\n /*\n * Convert the notes source ID to UUID\n */\n if ( dto instanceof NotesSourceIdContainer &&\n entity instanceof NotesSourceUuidContainer )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer) dto;\n /*\n * Check for new sources\n */\n this.stockNoteSourceService.checkForNewSource( notesSourceIdContainer );\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n /*\n * Convert the String UUID to a real uuid if present\n */\n if ( notesSourceIdContainer.getNotesSourceId() != null &&\n !notesSourceIdContainer.getNotesSourceId().isEmpty() )\n {\n final StockNoteSourceEntity stockNoteSourceEntity = this.stockNoteSourceService\n .getStockNoteSource( ((CustomerUuidContainer)entity).getCustomerUuid(),\n notesSourceIdContainer.getNotesSourceId() );\n notesSourceUuidContainer.setNotesSourceEntity( stockNoteSourceEntity );\n }\n }\n //logMethodEnd( methodName, entity );\n return entity;\n }",
"@Override\n\tpublic void convertDaoToFrom(CommonEntity ent) {\n\t\tMovie dao=(Movie) ent;\n\t\tthis.setBackgroundImage(dao.getBackgroundImage());\n\t\tthis.setDesc(dao.getDescription());\n\t\tthis.setEmbed(dao.getEmbed());\n\t\tthis.setFeatured(dao.isFeatured());\n\t\tthis.setLatitude(dao.getMap().getLattitude());\n\t\tthis.setLongitude(dao.getMap().getLongitude());\n\t\tthis.setName(dao.getTitle());\n\t\tthis.setRank(dao.getRank());\n\t\t\n\t\t\n\t}",
"public abstract D convertToDto(T entity);",
"public static Ingredient convertToEntity(IngredientDTO ingredientDTO) {\n Ingredient ingredient = new Ingredient();\n if(ingredientDTO.getSearchString()!=null) {\n ingredient.setSearchString(ingredientDTO.getSearchString().toLowerCase());\n }\n if(ingredientDTO.getImageurl()!=null) {\n ingredient.setImageurl(ingredientDTO.getImageurl());\n }\n if(ingredientDTO.getName()!=null) {\n ingredient.setName(ingredientDTO.getName());\n }\n if(ingredientDTO.getReference()!=null) {\n ingredient.setReference(ingredientDTO.getReference());\n }\n if(ingredientDTO.getRejectionPercent()!=null) {\n ingredient.setRejectionPercent(ingredientDTO.getRejectionPercent());\n }\n return ingredient;\n }",
"Comment dtoToEntity(CommentDto commentDto);",
"public static Reading mapToEntity(ReadingDTO readingDTO) {\n if (Objects.isNull(readingDTO)) {\n return null;\n }\n return new Reading(readingDTO.getValue(), readingDTO.getDateTime());\n }",
"@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n public static Object convertToFieldOfDataTransferObject(Object dto, String prefix, Map<String, Object> record, Field field, String[] filter) {\n Object reValue = null;\n if (null != record && null != field) {\n String entityFieldPath = getEntityMappingFieldPath(field);\n if (!StringUtils.isEmpty(prefix)) {\n entityFieldPath = prefix + Constants.DOT + entityFieldPath;\n }\n\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType)) {\n Object innerDTO = null;\n try {\n if (ObjectUtils.fieldIsCollection(field)) {\n Collection collection = ObjectUtils.getValueOfField(dto, field.getName(), Collection.class);\n if (null == collection) {\n collection = ObjectUtils.newInstanceCollection(field.getType());\n } else {\n for (Object obj : collection) {\n String keyOne = getKey(fieldType, obj);\n String keyTwo = getKey(entityFieldPath, fieldType, record);\n if (keyOne.equals(keyTwo)) {\n innerDTO = obj;\n break;\n }\n }\n }\n\n Object value = convertToDataTransferObject(innerDTO, entityFieldPath, record, fieldType, filter);\n\n if (null == innerDTO) {\n collection.add(value);\n }\n reValue = collection;\n } else {\n reValue = convertToDataTransferObject(null, entityFieldPath, record, fieldType, filter);\n }\n } catch (NoSuchMethodException e) {\n throw new ConstructorInvalidException(\"Cannot new collection instance for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot get value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n } else if (MappingUtils.isKeepField(entityFieldPath, filter)) {\n Class<?> fieldConverter = getFieldConverterType(field);\n reValue = convertField(fieldConverter, record.get(entityFieldPath));\n }\n }\n return reValue;\n }",
"V toDto(E entity);",
"public ViviendaEntity toEntity() {\r\n ViviendaEntity entity = new ViviendaEntity();\r\n entity.setIdVivienda(this.getIdVivienda());\r\n entity.setCiudad(this.getCiudad());\r\n entity.setDescripcion(this.getDescripcion());\r\n entity.setDireccion(this.getDireccion());\r\n entity.setCapacidad(this.getCapacidad());\r\n \r\n entity.setValorDiario(this.getValorDiario());\r\n entity.setImagen(this.getImagen());\r\n entity.setNumeroHabitaciones (this.getNumeroHabitaciones());\r\n return entity;\r\n }",
"private IngredienteDTO converteIngredienteEntityEmDTO(final IngredienteEntity ingredienteEntity) {\n\n IngredienteDTO ingredienteDTO = new IngredienteDTO();\n\n ingredienteDTO.setCodigoIngrediente(ingredienteEntity.getCodigoIngrediente());\n ingredienteDTO.setNomeIngrediente(ingredienteEntity.getNomeIngrediente());\n ingredienteDTO.setValorIngrediente(ingredienteDTO.getValorIngrediente());\n\n return ingredienteDTO;\n }",
"@Override\n public D entityToDTO( final E entity )\n {\n //final String methodName = \"cachedDataToDTO\";\n //logMethodBegin( methodName, entity );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n D dto = super.entityToDTO( entity );\n /*\n * I think this is a good use of instanceof...although I am not convinced, I'll have to think about this...\n * If any stock DTO is a stock company container, it will be populated automatically with the stock company\n * information. No need for any sub cvl\n *\n * NEED TO SERIOUSLY THINK ABOUT A BETTER SOLUTION HERE....5/9/2017 Mike.\n *\n * Need to develop some sort of \"conversion\" registration so that subclasses can register \"converters\" to be\n * run on entity.\n *\n /*\n * StockPriceQuoteContainers contain everything in a StockPriceContainer so get that instead\n */\n /*\n if ( dto instanceof StockQuoteDTOContainer )\n {\n this.stockQuoteEntityService\n .setQuoteInformation( dto );\n }\n */\n /*\n * The quote contains the company name\n */\n /*\n else if ( dto instanceof StockCompanyEntityContainer )\n {\n this.stockCompanyEntityService\n .setCompanyInformation( (StockCompanyDTOContainer) dto );\n }\n if ( dto instanceof StockPriceQuoteDTOContainer )\n {\n this.stockPriceQuoteService\n .setStockPriceQuote( dto, ASYNCHRONOUS );\n }\n */\n\n /*\n * Convert the UUID to a string and get the notes source name for the UUID\n */\n if ( entity instanceof NotesSourceUuidContainer &&\n dto instanceof NotesSourceIdContainer )\n {\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n if ( notesSourceUuidContainer.getNotesSourceEntity().isPresent() )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer)dto;\n final StockNoteSourceEntity stockNoteSourceEntity = notesSourceUuidContainer.getNotesSourceEntity().get();\n notesSourceIdContainer.setNotesSourceName( stockNoteSourceEntity.getName() );\n notesSourceIdContainer.setNotesSourceId( stockNoteSourceEntity.getUuid().toString() );\n }\n }\n\n if ( dto instanceof TagsContainer )\n {\n final TagsContainer tagsContainer = (TagsContainer)dto;\n tagsContainer.setTags( this.stockTagService.findStockTags( UUIDUtil.uuid( tagsContainer.getCustomerId() ),\n StockTagEntity.StockTagReferenceType.STOCK_TO_BUY,\n UUIDUtil.uuid( tagsContainer.getEntityId() ) ) );\n }\n //logMethodEnd( methodName, dto );\n return dto;\n }",
"public FilmType convertDtoToEntity(FilmTypeDto dto){\n\t\tFilmType entity = new FilmType();\n\t\tif(dto!=null){\n\t\t\tentity.setId(dto.getId());\n\t\t\tentity.setVersion(dto.getVersion());\n\t\t\tentity.setDescription(dto.getDescription());\n\t\t}\n\t\treturn entity;\n\t}",
"public static <DTO,Entity> Entity dtoToEntity(DTO dto,Class<Entity> classEntity)\n\t{\n\t\tModelMapper mapper = new ModelMapper();\n\t\treturn mapper.map(dto, classEntity);\n\t}",
"@Override\n public Endpoint convertToEntityAttribute(final String s) {\n try {\n return serializer.deserialize(s, Endpoint.class);\n } catch (IOException e) {\n log.error(e.getMessage(), e);\n return null;\n }\n }",
"EntityType getEntity();",
"private DoctorEntity convertModeltoEntity(Doctor doctor) {\n\t\tDoctorEntity doctorEntity = new DoctorEntity();\n\t\tdoctorEntity.setDoctorId(doctor.getDoctorId());\n\t\tdoctorEntity.setDoctorName(doctor.getDoctorName());\n\t\tdoctorEntity.setDoctorContact(doctor.getDoctorContact());\n\t\tdoctorEntity.setDoctorDepartment(doctor.getDoctorDepartment());\n\t\tdoctorEntity.setDoctorEmail(doctor.getDoctorEmail());\n\t\tdoctorEntity.setDoctorExperience(doctor.getDoctorExperience());\n\t\tdoctorEntity.setDoctorGender(doctor.getDoctorGender());\n\t\tdoctorEntity.setDoctorQualification(doctor.getDoctorQualification());\n\t\tdoctorEntity.setDoctorAddress(doctor.getDoctorAddress());\n\t\tdoctorEntity.setDoctorUserName(doctor.getDoctorUserName());\n\t\tdoctorEntity.setDoctorPassword(doctor.getDoctorPassword());\n\t\treturn doctorEntity;\n\t}",
"@Override\n public CalificacionEntity toEntity() {\n CalificacionEntity calificacionEntity = super.toEntity();\n if (this.getHospedaje() != null) {\n calificacionEntity.setHospedaje(this.getHospedaje().toEntity());\n }\n return calificacionEntity;\n }",
"Object getConvertedValue() throws ConversionException;",
"public static IncomingDelivery mapToEntity(IncomingDeliveryDTO dto) throws Exception {\r\n\r\n\t\tif(dto==null)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tIncomingDelivery entity = new IncomingDelivery();\r\n\r\n\r\n\t\tentity.setIncomingDeliveryId(dto.getIncomingDeliveryId());\r\n\t\tentity.setDeliveryNr(dto.getDeliveryNr());\r\n\r\n\t\t// organisation must be set outside of the mapper (the static functions require a static dataBaseService which is not supported and permanently return null)\r\n\t\t// lastEditor must be set outside of the mapper (the static functions require a static dataBaseService which is not supported and permanently return null)\r\n\r\n\t\tentity.setDeliveryNr(dto.getDeliveryNr());\r\n\r\n\t\ttry {\r\n\t\t\tentity.setDate(df.parse(dto.getDate()));\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// set current Date if parsing fails\r\n\t\t\tentity.setDate(new Date(System.currentTimeMillis()));\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// updateTimestamp does not have to be delivered by the frontend\r\n\t\tif (dto.getUpdateTimestamp() != null)\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tentity.setUpdateTimestamp(df.parse(dto.getUpdateTimestamp()));\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\t// set current Date if parsing fails\r\n\t\t\t\tentity.setUpdateTimestamp(new Date(System.currentTimeMillis()));\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tentity.setComment(dto.getComment());\r\n\r\n\t\t// set archived Flag only by function, not by object\r\n\t\t// entity.setArchived(dto.getArchived());\r\n\t\t// booked status does not have to be set, because it is generated by Hibernate when getting the entity\r\n\r\n\t\tSet<IncomingArticle> incomingArticles = new HashSet<IncomingArticle>();\r\n\t\tfor(IncomingArticleDTO incomingArticleDTO : dto.getIncomingArticleDTOs())\r\n\t\t{\r\n\t\t\tincomingArticles.add(IncomingArticleMapper.mapToEntity(incomingArticleDTO));\r\n\t\t}\r\n\r\n\t\tentity.setIncomingArticles(incomingArticles);\r\n\r\n\t\treturn entity;\r\n\r\n\t}",
"protected abstract Serializable getEntity();",
"public static Map<String, Object> convertToEntityMappingFieldAndValue(Object dto, Field field) {\n Map<String, Object> mapData = new HashMap<>();\n if (null != dto && null != field) {\n Object valueOfField;\n try {\n valueOfField = ObjectUtils.getValueOfField(dto, field.getName());\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot get value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n\n if (validate(MappingUtils.getFieldType(field))) {\n if (!ObjectUtils.fieldIsCollection(field)) {\n Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(valueOfField);\n for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {\n mapData.put(field.getName() + Constants.DOT + entry.getKey(), entry.getValue());\n }\n } else {\n Collection<?> collection = (Collection<?>) valueOfField;\n int index = 0;\n if (!CollectionUtils.isEmpty(collection)) {\n for (Object innerDTO : collection) {\n Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(innerDTO);\n for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {\n mapData.put(field.getName() + \"[\" + index + \"]\" + Constants.DOT + entry.getKey(), entry.getValue());\n }\n index++;\n }\n }\n }\n } else {\n Class<?> fieldConverter = getFieldConverterType(field);\n Object convertValue = convertField(fieldConverter, valueOfField, true);\n mapData.put(getEntityMappingFieldPath(field), convertValue);\n }\n }\n return mapData;\n }",
"ObjectField createObjectField();",
"public MuseologicalObjectDO getEntity(){\r\n\t\tMuseologicalObjectDO objDO = new MuseologicalObjectDO();\r\n\t\tif(objectId != null) objDO.setId(objectId);\r\n\t\tobjDO.setName(name);\r\n\t\tobjDO.setDate(date.getTime());\r\n\t\tobjDO.setObjectType(objectType);\r\n\t\treturn objDO;\r\n\t}",
"public static Promotion dtoToEntity(PromotionDTO dto) {\n if(dto != null) {\n Promotion entity = new Promotion();\n entity.setDiscount(dto.getDiscount());\n entity.setId(dto.getId());\n entity.setAlias(dto.getAlias());\n return entity;\n }\n return null;\n }",
"public Object getFieldValue(String fieldName, Object entity) {\n try {\n return new PropertyDescriptor(fieldName, entity.getClass()).getReadMethod()\n .invoke(entity);\n } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException\n | IntrospectionException | SecurityException e) {\n return null;\n }\n }",
"protected Category convertToEntity(CategoryDto categoryDto) {\n if (categoryDto == null) {\n return null;\n }\n return modelMapper.map(categoryDto, Category.class);\n }",
"public DomicilioEntity toEntity() {\r\n DomicilioEntity domicilioEntity = new DomicilioEntity();\r\n domicilioEntity.setId(this.id);\r\n domicilioEntity.setIdZona(this.idZona);\r\n return domicilioEntity;\r\n }",
"@Override\r\n public ViviendaEntity toEntity() {\r\n ViviendaEntity viviendaEntity = super.toEntity();\r\n if (contratos != null) {\r\n List<ContratoEntity> contratosEntity = new ArrayList<>();\r\n for (ContratoDTO dtoContrato : contratos) {\r\n contratosEntity.add(dtoContrato.toEntity());\r\n }\r\n viviendaEntity.setContratos(contratosEntity);\r\n }\r\n\r\n if (cuartos != null) {\r\n List<CuartoEntity> cuartoEntities = new ArrayList<>();\r\n for (CuartoDTO dto : cuartos) {\r\n cuartoEntities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setCuartos(cuartoEntities);\r\n }\r\n\r\n if (sitiosDeInteres != null) {\r\n List<SitioInteresEntity> entities = new ArrayList<>();\r\n for (SitioInteresDTO dto : sitiosDeInteres) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setSitiosDeInteres(entities);\r\n }\r\n\r\n if (calificaciones != null) {\r\n List<CalificacionEntity> entities = new ArrayList<>();\r\n for (CalificacionDTO dto : calificaciones) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setCalificaciones(entities);\r\n }\r\n\r\n if (serviciosOfrecidos != null) {\r\n viviendaEntity.setServiciosIncluidos(serviciosOfrecidos);\r\n }\r\n\r\n if (serviciosAdicionales != null) {\r\n List<ServicioAdicionalEntity> entities = new ArrayList<>();\r\n for (ServicioAdicionalDTO dto : serviciosAdicionales) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setServiciosAdicionales(entities);\r\n }\r\n\r\n return viviendaEntity;\r\n }",
"public Object convert(Object fromValue) {\n RawObject oldDataRawObject = (RawObject) fromValue;\n Object[] oldElements = oldDataRawObject.getElements();\n Map<String, Object> integerClassValues = \n new HashMap<String, Object>();\n integerClassValues.put(\"data\", oldElements[0]);\n RawObject integerClassObject = \n new RawObject(integerClassType, integerClassValues, null);\n RawObject[] newElements = new RawObject[1];\n newElements[0] = integerClassObject;\n RawObject newDataRawObject = \n new RawObject(newDataType, newElements);\n return newDataRawObject;\n }",
"public Pet convertToEntity(PetDTO petDTO) {\n\t\tPet pet = new Pet();\n\t\tOptional<Advertisement> advertisement = advertisementRepository.findById(pet.getAdvertisement().getId());\n\t\tif (advertisement.isPresent()) {\n\t\t\tpet.setAdvertisement(advertisement.get());\n\t\t} else {\n\t\t\tpet.setAdvertisement(null);\n\t\t}\n\t\tpet.setGender(petDTO.getGender());\n\t\tpet.setId(petDTO.getId());\n\t\tpet.setSpecies(petDTO.getSpecies());\n\t\tpet.setDescription(petDTO.getDescription());\n\t\tpet.setDateOfBirth(petDTO.getDateOfBirth());\n\t\tpet.setBreed(petDTO.getBreed());\n\t\tpet.setName(petDTO.getName());\n\t\tpet.setPicture(petDTO.getPicture());\n\t\treturn pet;\n\t}",
"Object getObjectField();",
"public OrderDetailEntity toEntity (DetailDTO detailDTO,OrderDetailEntity orderDetailEntity) {\n\t\t\n\t\tShoesEntity shoesEntity = shoesRepository.findOne(detailDTO.getShoesID());\n\t\torderDetailEntity.setShoesEntity(shoesEntity);\n\t\torderDetailEntity.setShoesName(shoesEntity.getShoesName());\n\t\torderDetailEntity.setPrice(detailDTO.getPrice());\n\t\torderDetailEntity.setQuantity(detailDTO.getQuantity());\n\t\treturn orderDetailEntity;\n\t}",
"D mapToDTO(E entity);",
"@Override\n public Preparation mapToEntity(PreparationDto dto) {\n return null;\n }",
"protected T getEntity() {\r\n\t\treturn entity;\r\n\t}",
"public E getEntity();",
"public ClientProperty mapToEntity(ClientPropertyDto dto)\r\n\t{\r\n\t\tClientProperty property = new ClientProperty();\r\n\t\tproperty.setId(dto.getId());\r\n\t\tproperty.setKey(dto.getKey());\r\n\t\tproperty.setValue(dto.getValue());\r\n\t\tproperty.setClient(clientMapper.mapToEntity(dto.getClient()));\r\n\r\n\t\tClientProperty persistentProperty = propertyRepo.findOne(property.getId());\r\n\t\tif (persistentProperty != null)\r\n\t\t{\r\n\t\t\treturn persistentProperty.bind(property);\r\n\t\t}\r\n\r\n\t\treturn property;\r\n\t}",
"void buildFromEntity(E entity);",
"private RecipeEntity mapToRecipeEntity(Recipe recipe) {\n\t\tRecipeEntity rEntity = new RecipeEntity();\n\t\t//Map primitive fields\n\t\trEntity.setId(recipe.getId());\n\t\trEntity.setName(recipe.getName());\n\t\trEntity.setType(recipe.getType());\n\t\trEntity.setServingCapacity(recipe.getServingCapacity());\n\t\t\n\t\t//Save current date time into recipe instance, if not given\n\t\tif(recipe.getCreationDateTime() == null) {\n\t\t\tOptional<Date> currentDateTime = Util.getCurrentDateTime();\n\t\t\tif(currentDateTime.isPresent())\n\t\t\t\tlog.debug(\"Current DateTime to be set in recipe entity: \"+currentDateTime.toString());\n\t\t\telse\n\t\t\t\tlog.warn(\"Setting null to current date time field in recipe entity\");\n\t\t\trEntity.setCreationDateTime(currentDateTime.get());\n\t\t} else {\n\t\t\tlog.debug(\"Retaining given creation date time value into recipe entity\");\n\t\t\trEntity.setCreationDateTime(recipe.getCreationDateTime());\n\t\t}\n\t\t\n\t\t//Convert ingredients list into String and set to recipe entity\n\t\tlog.debug(\"Number of ingredients to convert to string: \"+recipe.getIngredientsList().size());\n\t\tString ingredients = Util.convertToJSONString(recipe.getIngredientsList());\n\t\tlog.debug(\"Ingredients String: \"+ingredients);\n\t\trEntity.setIngredients(ingredients);\n\t\t\n\t\trEntity.setInstructions(recipe.getInstructions());\n\t\t\n\t\treturn rEntity;\n\t}",
"protected void fromDBObject(DBObject data) {\n /* Get all public fields of the class */\n Field[] fields = this.getClass().getFields();\n for(Field field : fields) {\n String name = field.getName();\n \n if(data.containsField(name)) {\n if(Modifier.isFinal(field.getModifiers()))\n field.setAccessible(true);\n\n Object value = data.get(name);\n \n try {\n field.set(this, convertDBToField(value, field));\n } catch (IllegalAccessException | IllegalArgumentException ex) {\n throw new MongomanException(ex);\n }\n }\n }\n \n _id = (ObjectId) data.get(\"_id\");\n loaded = data;\n }",
"public static <S extends BaseEntity,D extends BaseBean> D parserEntityToBean(S sourceObject, Class<D> destinationType) {\n\t\treturn dozerMapper.map(sourceObject, destinationType);\n\t}",
"@Test\n public void convertToEntity_WhenOrg() {\n application = getApplicationBuilder().addBaseApplication().setOrganisation().build();\n\n // When converting\n converter.convertToEntity(application, entity);\n\n // Nothing happens\n assertNull(entity.getDob());\n }",
"private void copyDtoToEntity(UserDTO dto, User entity) {\n\t\tentity.setFullName(dto.getFullName());\n\t\tentity.setEmail(dto.getEmail());\n\t\tentity.setCpf(dto.getCpf());\n\t\tentity.setBirthDate(dto.getBirthDate());\n\t}",
"public abstract List<T> convertToEntities(List<D> dtos);",
"public Object toNuxeoEntity(Object object, Class<?> klass, String type) {\n if (object instanceof List) {\n @SuppressWarnings(\"unchecked\")\n List<Object> list = (List<Object>) object;\n return list.stream().map(o -> toNuxeoEntity(o, klass, type)).collect(toList());\n } else if (object instanceof Object[]) {\n Object[] array = (Object[]) object;\n return Arrays.stream(array).map(o -> toNuxeoEntity(o, klass, type)).collect(toList());\n }\n if (klass.isAssignableFrom(object.getClass())) {\n return Map.of(ENTITY_TYPE, type, VALUE, object);\n }\n throw new NuxeoException(object.getClass().getName() + \" is not a \" + klass.getName());\n }",
"public PrestadorEntity toEntity() {\r\n PrestadorEntity prestadorEntity = new PrestadorEntity();\r\n prestadorEntity.setId(this.id);\r\n prestadorEntity.setNombre(this.nombre);\r\n prestadorEntity.setCedula(this.cedula);\r\n prestadorEntity.setCorreo(this.correo);\r\n prestadorEntity.setContrasena(this.contrasena);\r\n if(this.hojaDeVida != null)\r\n prestadorEntity.setHojaDeVida(this.hojaDeVida.toEntity());\r\n return prestadorEntity;\r\n }",
"BeanPedido fromEntity(PedidosEntity entity);",
"public Object convertValue(Field field) throws IllegalAccessException\n {\n if (field.getType().equals(Boolean.TYPE))\n {\n return (field.getBoolean(this) ? Boolean.TRUE : Boolean.FALSE);\n }\n if (field.getType().equals(Integer.TYPE))\n {\n return new Integer(field.getInt(this));\n }\n if (field.getType().equals(Short.TYPE))\n {\n return new Short(field.getShort(this));\n }\n if (field.getType().equals(Float.TYPE))\n {\n return new Double(field.getFloat(this));\n }\n if (field.getType().equals(Double.TYPE))\n {\n return new Double(field.getDouble(this));\n }\n //System.out.println(\"ohoh...\");\n return null; //and good luck with it :-) ...\n }",
"public OrderDetailEntity toEntity (DetailDTO detailDTO) {\n\t\t\n\t\tOrderDetailEntity orderDetailEntity = new OrderDetailEntity();\n\t\tShoesEntity shoesEntity = shoesRepository.getShoesById(detailDTO.getShoesID());\n\t\torderDetailEntity.setShoesEntity(shoesEntity);\n\t\torderDetailEntity.setShoesName(shoesEntity.getShoesName());\n\t\torderDetailEntity.setPrice(detailDTO.getPrice());\n\t\torderDetailEntity.setQuantity(detailDTO.getQuantity());\n\t\torderDetailEntity.setDeleted(detailDTO.getDeleted());\n\t\t\n\t\treturn orderDetailEntity;\n\t}",
"public static Map<String, Object> convertToEntityMappingFieldAndValue(Object dto) {\n Map<String, Object> mapData = new HashMap<>();\n if (null != dto) {\n List<Field> fields = ObjectUtils.getFields(dto.getClass(), true);\n for (Field field : fields) {\n mapData.putAll(convertToEntityMappingFieldAndValue(dto, field));\n }\n }\n return mapData;\n }",
"@Override\r\n public Share convertToEntity(InstrumentDto dto) {\r\n LocalDateTime stDate = getDateTimePersistenceConverter().convertToEntityAttribute(dto.getPaymentStartingDate());\r\n LocalDateTime endDate = getDateTimePersistenceConverter().convertToEntityAttribute(dto.getPaymentEndingDate());\r\n \r\n Share entity = new Share();\r\n entity.setId(dto.getId());\r\n entity.setInstrumentName(dto.getInstrumentName());\r\n entity.setStartOfPaymentPeriod(stDate);\r\n entity.setEndOfPaymentPeriod(endDate);\r\n \r\n return entity;\r\n }",
"TO fromObject(CONTEXT context, final FROM obj);",
"public BUserDto convertEntityToDto(BUser entity){\n\t\tBUserDto dto = new BUserDto();\n\t\tif(entity!=null){\n\t\t\tdto.setId(entity.getId());\n\t\t\tdto.setUsername(entity.getUsername());\n\t\t}\n\t\treturn dto;\n\t}",
"@Override\n public RuntimeException convert(PersistenceException exception, Object entity) {\n return exception;\n }",
"public Member copyDtoToEntity(MemberDto dto, Member entity) {\r\n reflectFormalizedDatetimeToEntity(dto, entity);\r\n reflectMemberIdToEntity(dto, entity);\r\n reflectMemberNameToEntity(dto, entity);\r\n reflectUpdateDatetimeToEntity(dto, entity);\r\n\r\n return entity;\r\n }",
"public EntityType getCreateEntity(DtoType dto) throws ClassNotFoundException, InstantiationException, IllegalAccessException;",
"private ManagedObject adopt(final EntityChangeTracker entityChangeTracker, final Object fetchedObject) {\n if(fetchedObject instanceof Persistable) {\n // an entity\n val entity = objectManager.adapt(fetchedObject);\n //fetchResultHandler.initializeEntityAfterFetched((Persistable) fetchedObject);\n entityChangeTracker.recognizeLoaded(entity);\n return entity;\n } else {\n // a value type\n return objectManager.adapt(fetchedObject);\n }\n }",
"private HistoryDTO convertEntityToDTO(History history) {\n\t\tHistoryDTO historyDto = modelMapper.map(history, HistoryDTO.class);\n\t\treturn historyDto;\n\t}",
"@Override\n\tpublic LocalDate convertToEntityAttribute(Date dbData) {\n\t\treturn dbData.toLocalDate();\n\t}",
"public E copyFromEntity(@Nonnull E value, @Nullable FileEntity file)\n {\n if(file == null)\n {\n value = _setFile.apply(value, null);\n }\n else\n {\n value = _saveValue.apply(value);\n FileEntityFileItem fileItem = new FileEntityFileItem(file);\n FileEntity copy = _fileSystemDAO.copy(file, _getDirectory.apply(value, fileItem),\n _getFileName.apply(value, fileItem), null, FileSystemEntityCreateMode.overwrite);\n value = _setFile.apply(value, copy);\n }\n value = _saveValue.apply(value);\n return value;\n }",
"public static Dia toLevel0Entity(DiaDTO dto, Dia entidad) {\n if (null == entidad) {\n entidad = new Dia();\n }\n entidad.setId(dto.getId());\n entidad.setNombre(dto.getNombre());\n entidad.setSigla(dto.getSigla());\n entidad.setActivo(dto.getActivo());\n entidad.setCodigo(dto.getCodigo());\n entidad.setDescripcion(dto.getDescripcion());\n return entidad;\n }",
"@Override\n\tpublic Exam toEntity(ExamDTO examDTO) {\n\t\treturn null;\n\t}",
"public OpenEcompComponentEntity toEntity() {\n OpenEcompComponentEntity destination = new OpenEcompComponentEntity();\n destination.setId(this.getId());\n destination.setName(this.getName());\n return destination;\n }",
"Serializable extractId(Object entity);",
"@Override\n public SystemResource pojoToEntity(SystemResourcePojo pojo){\n SystemResource entity = new SystemResource();\n\n entity.setName(pojo.getName());\n entity.setPath(pojo.getPath());\n entity.setType(pojo.getType());\n entity.setOriginalFileName(pojo.getOriginalFileName());\n entity.setUrl(pojo.getUrl());\n entity.setPublicKey(pojo.getPublicKey());\n return entity;\n }",
"void mapToExistingEntity(D dto, @MappingTarget E entity);",
"public EntityType initUpdateEntity(DtoType dto) throws ClassNotFoundException, IllegalArgumentException, IllegalAccessException;",
"Persona PersonaDTOToPersona(PersonaDTO personaDTO);",
"List<E> mapToEntity(List<D> dto);",
"protected abstract Object toObject(ByteBuffer content, Type targetType) throws BeanConversionException;",
"public E getEntity() {\n return this.entity;\n }",
"@Override\n public Comment toEntity(CommentDTO dto) {\n Comment entity = new Comment();\n entity.setId(dto.getId());\n entity.setStatus(dto.getStatus());\n entity.setSenderId(dto.getSender().getId());\n entity.setSenderName(dto.getSender().getName());\n entity.setText(dto.getText());\n// entity.setRentInfo(rentInfoDtoMapper.toEntity(dto.getRentInfo()));\n return entity;\n }",
"public <T> T toObject(Class<T> type, String source) {\n return toObject(String.class, new EntityType<T>(type), source);\n }"
] | [
"0.70582145",
"0.68749785",
"0.65443444",
"0.65418977",
"0.63714075",
"0.63712037",
"0.6370198",
"0.63179296",
"0.6258626",
"0.62359047",
"0.6213217",
"0.62079656",
"0.61960834",
"0.61376",
"0.61111444",
"0.6101084",
"0.6076535",
"0.605844",
"0.60313153",
"0.60297847",
"0.6020623",
"0.6002759",
"0.5989164",
"0.5957429",
"0.5922455",
"0.59085715",
"0.5893508",
"0.5869186",
"0.58476144",
"0.5841212",
"0.5840768",
"0.5798827",
"0.5796213",
"0.5795686",
"0.5756842",
"0.57456917",
"0.573457",
"0.57317674",
"0.57134145",
"0.569787",
"0.5687001",
"0.5677053",
"0.56432027",
"0.5640076",
"0.5610386",
"0.5603905",
"0.5601395",
"0.55997443",
"0.55972785",
"0.5576222",
"0.5560777",
"0.55584335",
"0.5556995",
"0.5555316",
"0.55528325",
"0.55504453",
"0.5522533",
"0.55146366",
"0.55109864",
"0.5496173",
"0.5491066",
"0.54868895",
"0.54840523",
"0.5461018",
"0.54498315",
"0.54397416",
"0.5434493",
"0.5432286",
"0.5430122",
"0.54239595",
"0.54158026",
"0.5412545",
"0.5397807",
"0.5387242",
"0.53825605",
"0.53819084",
"0.5376664",
"0.5375986",
"0.536828",
"0.53408253",
"0.5332039",
"0.53319234",
"0.5330179",
"0.532125",
"0.5314993",
"0.5300668",
"0.52940404",
"0.5291389",
"0.5289299",
"0.5277301",
"0.5272768",
"0.52682203",
"0.5267161",
"0.5265622",
"0.52653885",
"0.52598375",
"0.525687",
"0.52426076",
"0.5234657",
"0.52337354"
] | 0.6176159 | 13 |
New instance of Data Transfer Object. | public static Object newDataTransferObjectInstance(Class<?> dtoType) {
try {
return ObjectUtils.newInstance(dtoType);
} catch (InvocationTargetException | NoSuchMethodException | InstantiationException | IllegalAccessException e) {
throw new ConstructorInvalidException("Cannot found default constructor for " + dtoType.getSimpleName(), e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Data() {}",
"public TradeData() {\r\n\r\n\t}",
"public Data() {\n }",
"public Data() {\n }",
"public Data() {\n \n }",
"public abstract DataType<T> newInstance();",
"protected abstract D createData();",
"public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public DesastreData() { //\r\n\t}",
"public NetworkData() {\n }",
"public DataManage() {\r\n\t\tsuper();\r\n\t}",
"public static EpitrelloDataServerice creator() {\n\t\tif(dataServerice == null) {\n\t\t\tdataServerice = new DataService();\n\t\t}\n\t\treturn dataServerice;\n\t}",
"public static DataModelBuilder create() {\n return new DataModelBuilder();\n }",
"public DataFactoryImpl() {\n\t\tsuper();\n\t}",
"DataModel createDataModel();",
"private DTOFactory() {\r\n \t}",
"public DeviceDataRequestCommand()\n {\n }",
"private synchronized static void createInstance() {\n if (INSTANCE == null) { \n INSTANCE = new DataConnection();\n }\n }",
"public InitialData(){}",
"public DataModel()\r\n {\r\n System.out.println(\"New DataModel created\");\r\n \r\n languageList = new LanguageList();\r\n }",
"public DataBean() {\r\n \r\n }",
"private DataManager() {\n }",
"public Datos(){\n }",
"public MoneyTransfer() {\n }",
"public DataAdapter() {\n }",
"public EntityTypeTransfer() {\n this(null, null, null, null, null, null, null, null);\n }",
"public SensorData() {\n\n\t}",
"public RegisterNewData() {\n }",
"CreationData creationData();",
"public TurbineRunDataService()\n {\n super();\n }",
"public DataManager() {\n\t\tthis(PUnit == null ? \"eElectionsDB\" : PUnit);\n\t}",
"DataHRecordData() {}",
"public Dto() {\n \t\n }",
"public Model(DataHandler data){\n //assign the data parameter to the instance\n //level variable data. The scope of the parameter\n //is within the method and that is where the JVM \n //looks first for a variable or parameter so we \n //need to specify that the instance level variable \n //is to be used by using the keyword 'this' followed \n //by the '.' operator.\n this.data = data;\n }",
"public Duke() {\n ui = new Ui();\n storage = new Storage();\n try {\n taskList = new TaskList(TaskList.deserialize(storage.loadData()));\n } catch (DukeException | IOException e) {\n ui.printMessage(e.getMessage());\n taskList = new TaskList();\n storage.createNewData(ui);\n }\n }",
"public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }",
"public mainData() {\n }",
"public UserData() {\n }",
"public TestDataBean() {\n\t}",
"public ObjectFactory() {\n\t}",
"public ObjectFactory() {\r\n\t}",
"public Transportista() {\n }",
"DataFlow createDataFlow();",
"public static FileData createEntity() {\n FileData fileData = Reflections.createObj(FileData.class, Lists.newArrayList(\n\t\t FileData.F_NAME\n\t\t,FileData.F_PATH\n\t\t,FileData.F_SIZE\n\t\t,FileData.F_TYPE\n\t\t,FileData.F_DESCRIPTION\n ),\n\n\t\t DEFAULT_NAME\n\n\t\t,DEFAULT_PATH\n\n\t\t,DEFAULT_SIZE\n\n\t\t,DEFAULT_TYPE\n\n\n\n\n\n\n\t\t,DEFAULT_DESCRIPTION\n\n\t);\n return fileData;\n }",
"public Factory() {\n this(getInternalClient());\n }",
"public CLONDATAFactoryImpl() {\n\t\tsuper();\n\t}",
"public abstract DataType<T> newInstance(String format);",
"public Duke() {\n this.ui = new Ui();\n this.storage = new Storage();\n this.tasks = new TaskList();\n this.parse = new Parser();\n this.lists = new ArrayList<Task>();\n\n }",
"public Produit() {\n }",
"public AzureDataLakeStoreDataset() {\n }",
"public BudgetData(final Budget entity) {\r\n\t\tsuper(entity);\r\n\t\tthis.entity = entity;\r\n\t\tinitialize();\r\n\t}",
"DataList createDataList();",
"public CompanyData() {\r\n }",
"DataType createDataType();",
"FData createFData();",
"public WorkDataFile()\n\t{\n\t\tsuper();\n\t}",
"private TradeForDataGen initializeData(String type,String t,String securityName,String securityType, int quantity, double price, String traderName, String brokerName) {\n\t\tTradeForDataGen tempTrade = new TradeForDataGen();\n\t\tTimestamp timestamp = Timestamp.valueOf(t);\n\t\ttempTrade.setType(type);\n\t\ttempTrade.setTimestamp(timestamp);\n\t\ttempTrade.setQuantity(quantity);\n\t\ttempTrade.setBrokerName(brokerName);\n\t\ttempTrade.setPrice(price);\n\t\ttempTrade.setSecurityName(securityName);\n\t\ttempTrade.setTraderName(traderName);\n\t\ttempTrade.setSecurityType(securityType);\n\t\treturn tempTrade;\n\t}",
"public TransferMarket() {\n }",
"public static IngestHelperInterface create() {\n ClassLoader cl = SimpleDataTypeHelper.class.getClassLoader();\n return (IngestHelperInterface) Proxy.newProxyInstance(cl, new Class[] {IngestHelperInterface.class}, new SimpleDataTypeHelper());\n }",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"DataPackage createDataPackage();",
"public LiveBusData() {\n mData = NOT_SET;\n mVersion = START_VERSION;\n }",
"public DaoConnection() {\n\t\t\n\t}",
"public MdrCreater()\n {\n super();\n client = new RawCdrAccess();\n }",
"public static void createInstance()\n {\n if (instance == null) {\n // Create the instance\n instance = new SalesOrderDataSingleton();\n }\n }",
"public ProdutoDTO()\n {\n super();\n }",
"public HGDClient() {\n \n \t}",
"private DataModelBuilder() {\n }",
"public CMObject newInstance();",
"Data() {\n\t\t// dia = 01;\n\t\t// mes = 01;\n\t\t// ano = 1970;\n\t\tthis(1, 1, 1970); // usar um construtor dentro de outro\n\t}",
"public DataRepository() throws IOException {\n\t\tthis.init();\n\t}",
"public ProductoDTO(){\r\n\t\t\r\n\t}",
"public WeatherNewListData() {\n\t}",
"public MetaDataContract()\n {\n }",
"public BasicDriveTeleOp() {\n\n }",
"public itemDBContract(){}",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }"
] | [
"0.6542454",
"0.64749116",
"0.64229935",
"0.64229935",
"0.64115894",
"0.6400708",
"0.6360985",
"0.6313916",
"0.630135",
"0.6269168",
"0.62362534",
"0.6210949",
"0.61640084",
"0.6138412",
"0.61237633",
"0.610744",
"0.610196",
"0.60821325",
"0.60802716",
"0.6046335",
"0.60358953",
"0.5950142",
"0.5937363",
"0.5922273",
"0.5877672",
"0.5861441",
"0.5856226",
"0.58498365",
"0.58182126",
"0.581302",
"0.5800365",
"0.5791523",
"0.5767508",
"0.570899",
"0.570723",
"0.570227",
"0.5700418",
"0.56818414",
"0.56806654",
"0.5667552",
"0.5666882",
"0.5657108",
"0.56532586",
"0.565267",
"0.565157",
"0.5650878",
"0.5649712",
"0.5640932",
"0.56371593",
"0.5637018",
"0.563245",
"0.5620312",
"0.5615542",
"0.5612137",
"0.5609231",
"0.5604276",
"0.56036216",
"0.560274",
"0.56010425",
"0.5600246",
"0.5600246",
"0.5600246",
"0.55919975",
"0.559118",
"0.55870897",
"0.55830455",
"0.5574235",
"0.5562676",
"0.55582106",
"0.5550316",
"0.55419725",
"0.5538451",
"0.5523878",
"0.5509903",
"0.5498914",
"0.5496979",
"0.5491342",
"0.5487977",
"0.54839057",
"0.54839057",
"0.54839057",
"0.54839057",
"0.54839057",
"0.54839057",
"0.54839057",
"0.54839057",
"0.54839057",
"0.54839057",
"0.54839057",
"0.54839057",
"0.54839057",
"0.54839057",
"0.54839057",
"0.54839057",
"0.54839057",
"0.54839057",
"0.54839057",
"0.54839057",
"0.54839057",
"0.54839057"
] | 0.55374837 | 72 |
Get Field of Data Transfer Object by path. | public static Field getFieldByPath(Class<?> dtoType, String fieldPath) {
if (null != dtoType && !StringUtils.isEmpty(fieldPath)) {
String[] paths = fieldPath.split(Constants.DOT_REGEX);
Field field = ObjectUtils.getField(dtoType, paths[0], true);
Class<?> innerClass = MappingUtils.getFieldType(field);
if (paths.length > 1 && validate(innerClass)) {
String nextPath = fieldPath.substring(fieldPath.indexOf(Constants.DOT) + 1);
field = getFieldByPath(innerClass, nextPath);
}
return field;
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object get(String path)\n {\n return DataObjectUtil.get(this, path);\n }",
"public String getField(String field) throws RemoteException;",
"public String get(String jPath) throws NoSuchFieldException {\n throw new NotSupportedMethodException(\n \"get method is not supported in \" + this.getClass().getSimpleName());\n }",
"String getField();",
"Object getObjectField();",
"public static String getEntityMappingFieldPath(Class<?> dtoType, String fieldPath) {\n if (null != dtoType && !StringUtils.isEmpty(fieldPath)) {\n String[] paths = fieldPath.split(Constants.DOT_REGEX);\n Field field = ObjectUtils.getField(dtoType, paths[0], true);\n String entityFieldName = getEntityMappingFieldPath(field);\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (paths.length > 1 && validate(innerClass)) {\n String nextPath = fieldPath.substring(fieldPath.indexOf(Constants.DOT) + 1);\n entityFieldName = entityFieldName + Constants.DOT + getEntityMappingFieldPath(innerClass, nextPath);\n }\n return entityFieldName;\n }\n return null;\n }",
"default Object get(String path) {\n return get(path, null);\n }",
"Field_decl getField();",
"String getFieldName();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n default:\n return null;\n }\n }",
"public String getField()\n {\n return field;\n }",
"public String getField() {\n return field;\n }",
"public static Object getObj(String path){\n int index = Integer.parseInt(path.substring(6).split(\"\\\\.\")[0]) % maxBufferSize;\n if (buffer[index] != null && buffer[index].getPath().equals(path)) {\n return buffer[index];\n }\n return deserialize(path);\n }",
"java.lang.String getField1337();",
"public T caseFieldPath(FieldPath object)\n {\n return null;\n }",
"@Nullable\n\tObject getFieldValue(String field);",
"public static Optional<FieldInfo> findField(ClassPath path, ClassDescriptor clazz, FieldDescriptor descriptor) {\n return findField(path, clazz, fi -> fi.getDescriptor().equals(descriptor));\n }",
"public String getFieldName();",
"@SuppressWarnings(\"unchecked\")\n public static Optional<FieldInfo> findField(ClassPath path,\n ClassDescriptor clazz,\n BiPredicate<ClassNode, FieldNode> condition) {\n return find(path,\n path.findClass(clazz).get(),\n cn -> ((List<FieldNode>) cn.fields)\n .stream()\n .filter(fn -> condition.test(cn, fn))\n .map(fn -> new FieldInfo(new ClassDescriptor(cn.name),\n FieldDescriptor.create(fn.name, fn.desc)))\n .findFirst());\n }",
"java.lang.String getField1334();",
"java.lang.String getField1335();",
"@Override\n\tpublic String getField(String key) {\n\t\treturn gp.getValue(key);\n\t}",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // DST_PATH\n return DST_PATH;\n case 3: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public BCField getField() {\n String dec = getFieldDeclarerName();\n if (dec == null) \n return null;\n\n BCClass bc = getProject().loadClass(dec, getClassLoader());\n BCField[] fields = bc.getFields(getFieldName());\n if (fields.length == 0)\n return null;\n return fields[0];\n }",
"java.lang.String getField1077();",
"java.lang.String getField1336();",
"public MessageField getCorrespondingField();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"java.lang.String getField1277();",
"public T getField()\r\n {\r\n return this.field;\r\n }",
"java.lang.String getField1339();",
"public Field getField() {\n return field;\n }",
"java.lang.String getField1042();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_TOKEN\n return ACCESS_TOKEN;\n case 2: // PATH\n return PATH;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_TOKEN\n return ACCESS_TOKEN;\n case 2: // PATH\n return PATH;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_TOKEN\n return ACCESS_TOKEN;\n case 2: // PATH\n return PATH;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_TOKEN\n return ACCESS_TOKEN;\n case 2: // PATH\n return PATH;\n default:\n return null;\n }\n }",
"java.lang.String getField1333();",
"java.lang.String getField1046();",
"java.lang.String getField1089();",
"public DatabaseField getField() {\n return field;\n }",
"java.lang.String getField1076();",
"java.lang.String getField1177();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // UFS_PATH\n return UFS_PATH;\n case 2: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"java.lang.String getField1087();",
"java.lang.String getField1001();",
"java.lang.String getField1033();",
"java.lang.String getField1044();",
"java.lang.String getField1507();",
"java.lang.String getField1142();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ALLUXIO_PATH\n return ALLUXIO_PATH;\n case 2: // UFS_PATH\n return UFS_PATH;\n case 3: // OPTIONS\n return OPTIONS;\n default:\n return null;\n }\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return contentFileId;\n case 1: return documentId;\n case 2: return envelopeId;\n case 3: return errorId;\n case 4: return errorInfo;\n case 5: return errorLevel;\n case 6: return offset;\n case 7: return position;\n case 8: return processId;\n case 9: return taskId;\n case 10: return transactionId;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"java.lang.String getField1054();",
"java.lang.String getField1047();",
"java.lang.String getField1017();",
"java.lang.String getField1079();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_TOKEN\n return ACCESS_TOKEN;\n case 2: // PATH\n return PATH;\n case 3: // FILE_NAME\n return FILE_NAME;\n case 4: // BUFFER\n return BUFFER;\n default:\n return null;\n }\n }",
"java.lang.String getField1254();",
"java.lang.String getField1069();",
"java.lang.String getField1577();",
"java.lang.String getField1034();",
"private static Object getFieldValue(ETApiObject row, String fieldName) {\n try {\n Method method = row.getClass().getMethod(createGetterName(fieldName));\n return method.invoke(row);\n } catch (Exception e) {\n LOG.error(String.format(\"Error while fetching %s.%s value\", row.getClass().getSimpleName(), fieldName), e);\n return null;\n }\n }",
"java.lang.String getField1542();",
"java.lang.String getField1067();",
"java.lang.String getField1045();",
"java.lang.String getField1242();",
"java.lang.String getField1094();",
"java.lang.String getField1587();",
"java.lang.String getField1212();",
"java.lang.String getField1088();",
"java.lang.String getField1289();",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return businessDocumentId;\n case 1: return containingParentId;\n case 2: return containingParentType;\n case 3: return containingParentLevel;\n case 4: return controlNumber;\n case 5: return controlNumberLevel1;\n case 6: return controlNumberLevel2;\n case 7: return contentKeys;\n case 8: return documentId;\n case 9: return documentStandard;\n case 10: return documentStandardVersion;\n case 11: return documentType;\n case 12: return envelopeVersion;\n case 13: return eventId;\n case 14: return eventTimestamp;\n case 15: return fileInfo;\n case 16: return introspectionSource;\n case 17: return introspectionType;\n case 18: return processId;\n case 19: return receiverAddress;\n case 20: return senderAddress;\n case 21: return sentDate;\n case 22: return sentTime;\n case 23: return taskId;\n case 24: return transactionId;\n case 25: return senderAddressEnvelopeLevel1;\n case 26: return receiverAddressEnvelopeLevel1;\n case 27: return functionalCodeEnvelopeLevel1;\n case 28: return senderAddressEnvelopeLevel2;\n case 29: return receiverAddressEnvelopeLevel2;\n case 30: return functionalCodeEnvelopeLevel2;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE\n return FILE;\n default:\n return null;\n }\n }",
"java.lang.String getField1223();",
"java.lang.String getFieldOrThrow(\n java.lang.String key);",
"java.lang.String getField1589();",
"java.lang.String getField1342();",
"public static String getEntityMappingFieldPath(Field field) {\n List<String> fieldPaths = getEntityMappingFieldPaths(field, false, true);\n if (fieldPaths.size() > 0) {\n return fieldPaths.get(0);\n }\n return null;\n }",
"java.lang.String getField1244();",
"java.lang.String getField1019();",
"java.lang.String getField1176();",
"java.lang.String getField1189();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_TOKEN\n return ACCESS_TOKEN;\n case 2: // PATH\n return PATH;\n case 3: // NAME\n return NAME;\n default:\n return null;\n }\n }",
"java.lang.String getField1504();",
"java.lang.String getField1276();",
"java.lang.String getField1134();",
"String getBlobField();",
"java.lang.String getField1074();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n case 2: // DIR_NAME\n return DIR_NAME;\n case 3: // FILE_LENGTH\n return FILE_LENGTH;\n case 4: // DK_FILE_CONF\n return DK_FILE_CONF;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n case 2: // DIR_NAME\n return DIR_NAME;\n case 3: // FILE_LENGTH\n return FILE_LENGTH;\n case 4: // DK_FILE_CONF\n return DK_FILE_CONF;\n default:\n return null;\n }\n }",
"java.lang.String getField1156();",
"java.lang.String getField1091();"
] | [
"0.6805583",
"0.64422214",
"0.6440031",
"0.64349866",
"0.6323972",
"0.6127092",
"0.60519433",
"0.599031",
"0.59766924",
"0.5926436",
"0.59193206",
"0.5916067",
"0.58980435",
"0.5891243",
"0.58876127",
"0.5849013",
"0.5846487",
"0.5842606",
"0.58391064",
"0.58185554",
"0.58098775",
"0.58047",
"0.5785544",
"0.5784554",
"0.5772566",
"0.5754158",
"0.5751619",
"0.572085",
"0.572085",
"0.572085",
"0.572085",
"0.572085",
"0.572085",
"0.572085",
"0.572085",
"0.572085",
"0.5713118",
"0.57056385",
"0.5697796",
"0.5693386",
"0.5689352",
"0.5688188",
"0.5688188",
"0.5688188",
"0.5688188",
"0.56870747",
"0.56863123",
"0.56822455",
"0.5676539",
"0.5676533",
"0.56741977",
"0.56733656",
"0.5671678",
"0.5669459",
"0.56688184",
"0.56629616",
"0.56607497",
"0.5657136",
"0.56569016",
"0.56491137",
"0.5645249",
"0.56414926",
"0.56402236",
"0.5639553",
"0.56363404",
"0.5633177",
"0.56315386",
"0.5630702",
"0.56300366",
"0.56209487",
"0.5620615",
"0.5620014",
"0.5616153",
"0.5608918",
"0.5607947",
"0.5604384",
"0.56041616",
"0.56025666",
"0.56017685",
"0.5600707",
"0.56001544",
"0.5598365",
"0.55977714",
"0.55964845",
"0.5595348",
"0.55943316",
"0.55908245",
"0.55907863",
"0.55906224",
"0.558931",
"0.55892485",
"0.5587496",
"0.5584771",
"0.5584429",
"0.55843365",
"0.5580572",
"0.55784523",
"0.55784523",
"0.55761856",
"0.55760455"
] | 0.686235 | 0 |
Get Field Converter type. | public static Class<?> getFieldConverterType(Field field) {
MappingField mappingField = ObjectUtils.getAnnotation(field, MappingField.class);
if (null != mappingField) {
return mappingField.converter();
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ConverterType getType() {\r\n return type;\r\n }",
"public FieldType getType();",
"public Class<?> getType(){\n return field.getType();\n }",
"public Class getFieldType() {\n String type = getFieldTypeName();\n if (type == null)\n return null;\n return Strings.toClass(type, getClassLoader());\n }",
"public String getConversionTypeName() {\r\n return conversionTypeName;\r\n }",
"com.google.cloud.datacatalog.FieldType getType();",
"public java.lang.String getConversionTypeName() {\n return conversionTypeName;\n }",
"@Accessor(qualifier = \"converterClass\", type = Accessor.Type.GETTER)\n\tpublic ExportConverterEnum getConverterClass()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CONVERTERCLASS);\n\t}",
"@Override\n \tpublic FieldConverter getFieldConverter(DataType dataType) {\n \t\tswitch (dataType) {\n \t\t\tcase BOOLEAN :\n \t\t\tcase BOOLEAN_OBJ :\n \t\t\t\treturn booleanConverter;\n \t\t\tcase BYTE :\n \t\t\t\treturn byteConverter;\n \t\t\tdefault :\n \t\t\t\treturn super.getFieldConverter(dataType);\n \t\t}\n \t}",
"public Converter getConverter() {\n return converter;\n }",
"public Converter getConverter() {\n return converter;\n }",
"public Class<?> getConversionClass();",
"public java.lang.String getFieldType() {\n return fieldType;\n }",
"public String getFieldType()\n\t{\n\t\treturn fieldType;\n\t}",
"public String getFieldType()\n {\n return m_strFieldType;\n }",
"FieldRuleType createFieldRuleType();",
"@Nonnull\n Converter<T> getConverter() {\n return converter;\n }",
"public StringConverter<T> getConverter() {\n\n return this.converterProperty.get();\n }",
"public Class<?> getRawFieldType() {\r\n\t\treturn TypeToken.of(_fieldType)\r\n\t\t\t\t\t\t.getRawType();\r\n\t}",
"public StringConvert getConverter() {\n return converter;\n }",
"com.google.cloud.datacatalog.FieldTypeOrBuilder getTypeOrBuilder();",
"public Typ getFieldType(){\n\t\treturn tFeldTyp;\n\t}",
"MessageType getType();",
"public FixedFormatDoubleConverter getConverter() {\n return converter;\n }",
"Coding getType();",
"public Type getType(String f)\n {\n return getFieldTypMap().get(f);\n }",
"public static Object convertField(Class<?> fieldConverterType, Object value) {\n return convertField(fieldConverterType, value, false);\n }",
"public java.lang.String getFieldDBType() {\n return fieldDBType;\n }",
"public FieldLabelType getFieldLabelType() {\n return this.fieldLabelType;\n }",
"public String getFieldType() {\n\t\treturn \"0\";\n\t}",
"@Override\n @NotNull\n public ConverterType getOperation() {\n return this.operation.getConverter();\n }",
"public BCClass getFieldTypeBC() {\n String type = getFieldTypeName();\n if (type == null)\n return null;\n return getProject().loadClass(type, getClassLoader());\n }",
"public Class<?> getFieldType( int i ) {\n return entityMetaData.getFieldType( i );\n }",
"Class<?> getSimpleConversionClass() {\n Class<?> c = null;\n final String sa4 = sa[4] != null ? sa[4].toLowerCase() : null;\n final String sa5 = sa[5] != null ? sa[5].toLowerCase() : null;\n if (\"t\".equals(sa4)) {\n c = Calendar.class;\n } else if (\"b\".equals(sa5)) {\n c = Boolean.class;\n } else if (\"h\".equals(sa5) /* Hashcode */) {\n c = Object.class;\n } else if (\"s\".equals(sa5)) {\n c = Object.class; /* Conversion using toString() */\n } else if (\"c\".equals(sa5)) {\n c = Character.class;\n } else if (\"d\".equals(sa5) || \"o\".equals(sa5) || \"x\".equals(sa5)\n || \"e\".equals(sa5) || \"f\".equals(sa5) || \"g\".equals(sa5)\n || \"a\".equals(sa5)) {\n c = Number.class;\n } else if (\"n\".equals(sa5) || \"%\".equals(sa5)) {\n // ignore literals\n }\n return c;\n }",
"public Class getType() {\n Object value = getValue();\n if (value == null)\n return null;\n\n Class type = value.getClass();\n if (type == Integer.class)\n return int.class;\n if (type == Float.class)\n return float.class;\n if (type == Double.class)\n return double.class;\n if (type == Long.class)\n return long.class;\n return String.class;\n }",
"fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();",
"protected Converter getConverter(UIComponent component) {\n String converterId = component.getConverter();\n if (converterId == null) {\n return (null);\n }\n ConverterFactory cfactory = (ConverterFactory)\n FactoryFinder.getFactory(FactoryFinder.CONVERTER_FACTORY);\n try {\n return (cfactory.getConverter(converterId));\n } catch (Exception e) {\n return (null);\n }\n }",
"public int getFieldType(String strFieldName) {\n\treturn 0;\n}",
"public static FieldType getObjectType(Object field) {\n\n if (field.getClass().equals(Integer.class) || field.getClass().equals(Long.class)) {\n return FieldType.INTEGER;\n } else if (field.getClass().equals(String.class)) {\n return FieldType.STRING;\n } else if (field.getClass().equals(Timestamp.class) || field.getClass().equals(Date.class)) {\n return FieldType.DATE;\n } else if (field.getClass().equals(Double.class)) {\n return FieldType.DOUBLE;\n } else if (field.getClass().equals(Boolean.class)) {\n return FieldType.BOOLEAN;\n } else if (field.getClass().isEnum()) {\n return FieldType.ENUM;\n } else {\n return FieldType.OBJECT;\n }\n }",
"public fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType() {\n return type_;\n }",
"public fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType() {\n return type_;\n }",
"@SuppressWarnings({\"unused\", \"RedundantSuppression\"})\n @Override\n public Converter<D> getConverter() {\n return mConverter;\n }",
"public int getFieldType( String fsDocComp, String fsDocFld )\n {\n VSMetaQuery loMetaQry ;\n Session loSession = getSession() ;\n\n try\n {\n loMetaQry = AMSDataObject.constructMetaQueryFromMetaInfoTable( fsDocComp, loSession ) ;\n } /* end try */\n catch( Exception foExp )\n {\n loMetaQry = null ;\n loMetaQry = getMetaQuery( fsDocComp, loSession.getPackageName() ) ;\n } /* end catch( Exception foExp ) */\n\n if ( loMetaQry != null )\n {\n VSMetaColumn loMetaCol = loMetaQry.getMetaColumn( fsDocFld ) ;\n\n if ( loMetaCol != null )\n {\n return loMetaCol.getColumnType() ;\n } /* end if ( loMetaCol != null ) */\n } /* end if ( loMetaQry != null ) */\n\n return DataConst.NULL ;\n }",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"public MetadataConverterIF getMetadataConverter(String key) {\n if (key == null)\n return null;\n return metadataConverters.get(key);\n }",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"DType getType();",
"public Type toType() {\n return type;\n }",
"protected Type getFieldType(final String fieldName, final Class objectClass)\n\t{\n\t\tif (fieldName == null || fieldName.isEmpty())\n\t\t{\n\t\t\tthrow new ConversionException(\"Incorrect field: field name is empty string\");\n\t\t}\n\n\t\tClass clazz = objectClass;\n\t\twhile (clazz != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfinal Field fieldField = clazz.getDeclaredField(fieldName);\n\t\t\t\treturn fieldField.getGenericType();\n\t\t\t}\n\t\t\tcatch (final NoSuchFieldException e)\n\t\t\t{\n\t\t\t\tclazz = clazz.getSuperclass();\n\t\t\t}\n\t\t}\n\n\t\tthrow new ConversionException(\"Incorrect field:'\" + fieldName + \"'\");\n\t}",
"public abstract FieldType getTargetFieldType();",
"public static Class<?> getFieldTypeClass(int fieldType) {\n if (fieldType > 0) {\n switch (fieldType) {\n case PropertyType.STRING:\n return String.class;\n case PropertyType.BINARY:\n return Binary.class;\n case PropertyType.LONG:\n return Long.class;\n case PropertyType.DOUBLE:\n return Double.class;\n case PropertyType.DATE:\n // we use Date here instead of Calendar simply because the vaadin DateField uses Date not Calendar\n return Date.class;\n case PropertyType.BOOLEAN:\n return Boolean.class;\n case PropertyType.DECIMAL:\n return BigDecimal.class;\n default:\n throw new IllegalArgumentException(\"Unsupported property type \" + PropertyType.nameFromValue(fieldType));\n }\n } else {\n return String.class;\n }\n }",
"String getType(FieldDef fieldDef, String key,\r\n FieldsRepository fieldsRepository);",
"FieldType createFieldType();",
"Enum getType();",
"public String getFieldTypeName() {\n int index = getFieldIndex();\n if (index == 0)\n return null;\n\n ComplexEntry entry = (ComplexEntry) getPool().getEntry(index);\n String name = getProject().getNameCache().getExternalForm(entry.\n getNameAndTypeEntry().getDescriptorEntry().getValue(), false);\n if (name.length() == 0)\n return null;\n return name;\n }",
"@SuppressWarnings(\"unchecked\")\n protected <T> Converter<T> getConverter(Class<T> type) {\n if (type == null) {\n throw new IllegalArgumentException(\"Cannot get a converter for nulls\");\n }\n // first make sure we are using an actual wrapper class and not the primitive class (int.class)\n Class<?> toType = ConstructorUtils.getWrapper(type);\n Converter<T> converter = (Converter<T>) getConverters().get(toType);\n if (converter == null) {\n // none found so try not using the interface\n toType = ConstructorUtils.getClassFromInterface(toType);\n converter = (Converter<T>) getConverters().get(toType);\n if (converter == null) {\n // still no converter found so try the interfaces\n for (Class<?> iface : ConstructorUtils.getExtendAndInterfacesForClass(toType)) {\n converter = (Converter<T>) getConverters().get(iface);\n if (converter != null) {\n // found a converter\n break;\n }\n }\n }\n }\n return converter;\n }",
"public java.lang.Long getConversionTypeId() {\n return conversionTypeId;\n }",
"private static String mapType(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"Date\";\n case INTEGER:\n return \"Integer\";\n case REAL:\n return \"Double\";\n case STRING:\n return \"String\";\n default:\n return null;\n }\n }",
"public String obtenirType() {\n\t\treturn this.type;\n\t}",
"public Type getType();",
"public StrColumn getType() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"type\", StrColumn::new) :\n getBinaryColumn(\"type\"));\n }",
"public Class getType();",
"Type getHtmlInputFieldType();",
"private static Class<?> type(Field field) {\n\t\tif (Types.isKindOf(field.getType(), List.class)) {\n\t\t\t// for the purpose of this implementation only first parameterized\n\t\t\t// type matters, as result from list declaration List<E>\n\t\t\treturn (Class<?>) ((ParameterizedType) field.getGenericType()).getActualTypeArguments()[0];\n\t\t}\n\t\treturn field.getType();\n\t}",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();"
] | [
"0.7613661",
"0.6816991",
"0.6580353",
"0.6559726",
"0.6465361",
"0.6384156",
"0.6383517",
"0.6341078",
"0.6324488",
"0.62057453",
"0.62057453",
"0.6203567",
"0.62006193",
"0.6200315",
"0.61444014",
"0.5983847",
"0.5980294",
"0.5932548",
"0.5927905",
"0.59201926",
"0.58567214",
"0.5832635",
"0.58254445",
"0.58244616",
"0.5791346",
"0.5769496",
"0.5758307",
"0.57568896",
"0.57211167",
"0.568499",
"0.5677727",
"0.56764936",
"0.56556207",
"0.5649279",
"0.5603079",
"0.5599953",
"0.55971485",
"0.5586298",
"0.5578483",
"0.5566831",
"0.5565677",
"0.555377",
"0.5521998",
"0.55099875",
"0.55099875",
"0.55099875",
"0.55099875",
"0.55099875",
"0.55099875",
"0.55099875",
"0.55099875",
"0.55099875",
"0.55099875",
"0.55099875",
"0.54991597",
"0.54908913",
"0.54908913",
"0.54908913",
"0.54908913",
"0.54908913",
"0.54908913",
"0.54908913",
"0.54908913",
"0.54908913",
"0.54908913",
"0.54908913",
"0.54908913",
"0.54908913",
"0.5479048",
"0.5470743",
"0.54647803",
"0.54374796",
"0.5430023",
"0.5418822",
"0.5411255",
"0.5409219",
"0.5402693",
"0.5402436",
"0.5383228",
"0.5374996",
"0.53640735",
"0.53560174",
"0.53481096",
"0.53401446",
"0.5336767",
"0.5326535",
"0.53225046",
"0.53225046",
"0.53225046",
"0.53225046",
"0.53225046",
"0.53225046",
"0.53225046",
"0.53225046",
"0.53225046",
"0.53225046",
"0.53225046",
"0.53225046",
"0.53225046",
"0.53225046"
] | 0.75620145 | 1 |
Convert Data Transfer Object to map entity field path and value. | public static Map<String, Object> convertToEntityMappingFieldAndValue(Object dto, Field field) {
Map<String, Object> mapData = new HashMap<>();
if (null != dto && null != field) {
Object valueOfField;
try {
valueOfField = ObjectUtils.getValueOfField(dto, field.getName());
} catch (IllegalAccessException e) {
throw new FieldInaccessibleException("Cannot get value for field "
+ dto.getClass().getSimpleName() + "." + field.getName(), e);
}
if (validate(MappingUtils.getFieldType(field))) {
if (!ObjectUtils.fieldIsCollection(field)) {
Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(valueOfField);
for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {
mapData.put(field.getName() + Constants.DOT + entry.getKey(), entry.getValue());
}
} else {
Collection<?> collection = (Collection<?>) valueOfField;
int index = 0;
if (!CollectionUtils.isEmpty(collection)) {
for (Object innerDTO : collection) {
Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(innerDTO);
for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {
mapData.put(field.getName() + "[" + index + "]" + Constants.DOT + entry.getKey(), entry.getValue());
}
index++;
}
}
}
} else {
Class<?> fieldConverter = getFieldConverterType(field);
Object convertValue = convertField(fieldConverter, valueOfField, true);
mapData.put(getEntityMappingFieldPath(field), convertValue);
}
}
return mapData;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Map<String, Object> convertToEntityMappingFieldAndValue(Object dto) {\n Map<String, Object> mapData = new HashMap<>();\n if (null != dto) {\n List<Field> fields = ObjectUtils.getFields(dto.getClass(), true);\n for (Field field : fields) {\n mapData.putAll(convertToEntityMappingFieldAndValue(dto, field));\n }\n }\n return mapData;\n }",
"public static Object convertMapEntityPathAndValueToDTO(String prefix, Map<String, Object> mapData, Field field) {\n if (null != mapData && null != field) {\n String mappingField = getEntityMappingFieldPath(field);\n if (!StringUtils.isEmpty(prefix)) {\n prefix += Constants.DOT;\n }\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType)) {\n if (!ObjectUtils.fieldIsCollection(field)) {\n return convertMapEntityPathAndValueToDTO(prefix + mappingField, mapData, fieldType);\n } else {\n int length = countLengthOfArray(prefix + mappingField, mapData);\n if (length > 0) {\n try {\n @SuppressWarnings(\"unchecked\")\n Collection<Object> collection = ObjectUtils.newInstanceCollection(field.getType());\n for (int i = 0; i < length; i++) {\n Object innerEntity = convertMapEntityPathAndValueToDTO(prefix + mappingField + \"[\" + i + \"]\", mapData, fieldType);\n if (null != innerEntity) {\n collection.add(innerEntity);\n }\n }\n return collection;\n } catch (NoSuchMethodException e) {\n throw new ConstructorInvalidException(\"Cannot new collection instance for field \" + field.getName(), e);\n }\n }\n }\n } else {\n Class<?> fieldConverter = getFieldConverterType(field);\n return convertField(fieldConverter, mapData.get(prefix + mappingField));\n }\n }\n return null;\n }",
"public static Object convertMapEntityPathAndValueToDTO(String prefix, Map<String, Object> mapData, Class<?> dtoType) {\n if (null != mapData && null != dtoType) {\n validateThrow(dtoType, new ConfigurationInvalidException(dtoType.getName() + \": Data Transfer Object configuration is invalid\"));\n\n Object dto;\n try {\n dto = ObjectUtils.newInstance(dtoType);\n } catch (InvocationTargetException | NoSuchMethodException | InstantiationException | IllegalAccessException e) {\n throw new ConstructorInvalidException(\"Cannot found default constructor for \" + dtoType.getSimpleName(), e);\n }\n\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n try {\n Object fieldValue = convertMapEntityPathAndValueToDTO(prefix, mapData, field);\n ObjectUtils.setValueForField(dto, field.getName(), fieldValue);\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot set value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n }\n return dto;\n }\n return null;\n }",
"java.util.Map<java.lang.String, java.lang.String>\n getFieldMap();",
"public abstract T convertToEntity(D dto);",
"@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }",
"@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }",
"@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n public static Object convertToFieldOfDataTransferObject(Object dto, String prefix, Map<String, Object> record, Field field, String[] filter) {\n Object reValue = null;\n if (null != record && null != field) {\n String entityFieldPath = getEntityMappingFieldPath(field);\n if (!StringUtils.isEmpty(prefix)) {\n entityFieldPath = prefix + Constants.DOT + entityFieldPath;\n }\n\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType)) {\n Object innerDTO = null;\n try {\n if (ObjectUtils.fieldIsCollection(field)) {\n Collection collection = ObjectUtils.getValueOfField(dto, field.getName(), Collection.class);\n if (null == collection) {\n collection = ObjectUtils.newInstanceCollection(field.getType());\n } else {\n for (Object obj : collection) {\n String keyOne = getKey(fieldType, obj);\n String keyTwo = getKey(entityFieldPath, fieldType, record);\n if (keyOne.equals(keyTwo)) {\n innerDTO = obj;\n break;\n }\n }\n }\n\n Object value = convertToDataTransferObject(innerDTO, entityFieldPath, record, fieldType, filter);\n\n if (null == innerDTO) {\n collection.add(value);\n }\n reValue = collection;\n } else {\n reValue = convertToDataTransferObject(null, entityFieldPath, record, fieldType, filter);\n }\n } catch (NoSuchMethodException e) {\n throw new ConstructorInvalidException(\"Cannot new collection instance for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot get value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n } else if (MappingUtils.isKeepField(entityFieldPath, filter)) {\n Class<?> fieldConverter = getFieldConverterType(field);\n reValue = convertField(fieldConverter, record.get(entityFieldPath));\n }\n }\n return reValue;\n }",
"public abstract Map<String, Object> toMap(T object);",
"E mapToEntity(D dto);",
"public static Map<String, Object> resolveObject(Object object) throws IllegalAccessException {\n Map<String, Object> ret = new HashMap<>();\n Field[] fields = object.getClass().getDeclaredFields();\n for (Field field : fields) {\n String key = field.getName();\n field.setAccessible(true);\n Object value = field.get(object);\n if (value instanceof Instant) {\n value = getDateStr((Instant) value);\n }\n ret.put(key, value);\n }\n return ret;\n }",
"public static Map<String, Object> resolveObject(Object object, Map<String, String> mapper) throws IllegalAccessException {\n Map<String, Object> ret = new HashMap<>();\n Field[] fields = object.getClass().getDeclaredFields();\n for (Field field : fields) {\n String key = field.getName();\n field.setAccessible(true);\n if (mapper.containsKey(key)) {\n key = mapper.get(key);\n }\n if (key != null) {\n Object value = field.get(object);\n if (value instanceof Instant) {\n value = getDateStr((Instant) value);\n }\n ret.put(key, value);\n }\n }\n return ret;\n }",
"public Object toPojo(Entity entity) {\n return ofy().load().fromEntity(entity);\n }",
"private static HashMap<String, String> fieldsToMap(FieldMap inMap,\r\n FIXDataDictionary inDict) {\r\n HashMap<String, String> fields = new HashMap<String, String>();\r\n Iterator<Field<?>> iterator = inMap.iterator();\r\n while(iterator.hasNext()) {\r\n Field<?> f = iterator.next();\r\n String value;\r\n if(f instanceof StringField) {\r\n value = ((StringField)f).getValue();\r\n if (inDict != null) {\r\n String humanValue = inDict.getHumanFieldValue(f.getTag(),value);\r\n if(humanValue != null) {\r\n value = new StringBuilder().append(humanValue).\r\n append(\"(\").append(value). //$NON-NLS-1$\r\n append(\")\").toString(); //$NON-NLS-1$\r\n }\r\n }\r\n } else {\r\n value = String.valueOf(f.getObject());\r\n }\r\n String name = null;\r\n if (inDict != null) {\r\n name = inDict.getHumanFieldName(f.getTag());\r\n }\r\n if(name == null) {\r\n name = String.valueOf(f.getTag());\r\n } else {\r\n name = new StringBuilder().append(name).\r\n append(\"(\").append(f.getTag()). //$NON-NLS-1$\r\n append(\")\").toString(); //$NON-NLS-1$\r\n }\r\n fields.put(name,value);\r\n }\r\n return fields;\r\n }",
"public DocumentModel toFields(DocumentModel inDoc,\n HashMap<String, String> inMapping, boolean inSave,\n CoreSession inSession) {\n\n // Parse if needed\n run();\n\n HashMap<String, String> values = toHashMap();\n for (String inXPath : inMapping.keySet()) {\n String value = values.get(inMapping.get(inXPath));\n inDoc.setPropertyValue(inXPath, value);\n }\n\n if (inSave) {\n inDoc = inSession.saveDocument(inDoc);\n }\n\n return inDoc;\n }",
"@Override\n\tpublic Map<String, String> Bean2Map(Object obj) {\n\t\tif (obj != null && obj instanceof AttentionBean) {\n\t\t\tAttentionBean bean = (AttentionBean) obj;\n\t\t\tHashMap<String, String> map = new HashMap<String, String>();\n\t\t\tmap.put(\"from_id\", bean.getFollowers_id());\n\t\t\tmap.put(\"to_id\", bean.getBy_follower_id());\n\t\t\treturn map;\n\t\t}\n\t\treturn null;\n\t}",
"public abstract D convertToDto(T entity);",
"public Map<String, Object> createFldNames2ValsMap(Record record)\n {\n return (createFldNames2ValsMap(record, null));\n }",
"private List<Field> getMappedFields(Mapping objectMapping, DataSourceType dataSourceType) {\n List<Field> mappedFields = null;\n if (dataSourceType == DataSourceType.SOURCE) {\n FieldGroup fg = objectMapping.getInputFieldGroup();\n if (fg != null) {\n mappedFields = fg.getField();\n } else {\n mappedFields = objectMapping.getInputField();\n }\n } else {\n mappedFields = objectMapping.getOutputField();\n }\n return mappedFields;\n }",
"D mapToDTO(E entity);",
"public Map<String, Object> uriToValueMap();",
"EntityData<?> getEntityData();",
"public static String getEntityMappingFieldPath(Class<?> dtoType, String fieldPath) {\n if (null != dtoType && !StringUtils.isEmpty(fieldPath)) {\n String[] paths = fieldPath.split(Constants.DOT_REGEX);\n Field field = ObjectUtils.getField(dtoType, paths[0], true);\n String entityFieldName = getEntityMappingFieldPath(field);\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (paths.length > 1 && validate(innerClass)) {\n String nextPath = fieldPath.substring(fieldPath.indexOf(Constants.DOT) + 1);\n entityFieldName = entityFieldName + Constants.DOT + getEntityMappingFieldPath(innerClass, nextPath);\n }\n return entityFieldName;\n }\n return null;\n }",
"@SuppressWarnings(\"unchecked\")\n private Object convertToDataTransferObject(Object data, Class<?> dtoType) {\n if (Map.class.isAssignableFrom(data.getClass())) {\n return ObjectUtils.convertMapToObject((Map<String, ?>) data, dtoType);\n }\n throw new ParamInvalidException(\"Cannot parse '\" + data.getClass().getName() + \"' to '\" + dtoType.getName() + \"'\");\n }",
"@Override\n\tpublic Object convert(Object original) {\n\t\tif (original == null)\n\t\t\treturn OTHER;\n\n\t\tif (!(original instanceof PersonAttribute))\n\t\t\treturn \"Invalid: \" + original.toString();\n\n\t\tPersonAttribute pa = (PersonAttribute) original;\n\n\t\tString entryPoint = locationMap.get(pa.getValue());\n\n\t\tif (entryPoint != null)\n\t\t\treturn entryPoint;\n\n\t\treturn OTHER;\n\t}",
"private static Map<Object, Object> getFields(Device d1) {\n\t Class<? extends Device> deviceClass = d1.getClass();\n\t Field[] fields = deviceClass.getDeclaredFields();\n\t \n\t //Map to get property details to provided class\n\t \tMap<Object,Object> mapFields = new HashMap<>();\t \n\n\t Arrays.stream(fields)\n\t .forEach(\n\t field -> {\n\t field.setAccessible(true);\n\t try {\n\t \tmapFields.put(field.getName(), field.get(d1));\n\t } catch (final IllegalAccessException e) {\n\t \t\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tmapFields.put(field.getName(), field.get(d1));\n\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t }\n\t });\n\n\t return mapFields;\n\t}",
"public static Map<String, String> getMapping() {\r\n\t\treturn data.get();\r\n\t}",
"E toEntity(V dto);",
"private Object convertDBToField(Object value, Field field) {\n if(value == null)\n return null;\n \n Class<?> clazz = field.getType();\n \n if(Enum.class.isAssignableFrom(clazz))\n return Enum.valueOf((Class<Enum>)clazz, value.toString());\n \n if(Base.class.isAssignableFrom(clazz))\n return createInstance((Class<? extends Base>)clazz, (DBObject) value);\n \n if(value instanceof BasicDBList) {\n BasicDBList list = (BasicDBList)value;\n\n if(Collection.class.isAssignableFrom(clazz))\n return convertDBToCollectionField(list, field);\n \n if(clazz.isArray())\n return convertDBToArrayField(list, clazz);\n \n return value;\n }\n \n if(value instanceof BasicDBObject) {\n BasicDBObject map = (BasicDBObject)value;\n\n if(Map.class.isAssignableFrom(clazz))\n return convertDBToMapField(map, field);\n \n return value; \n }\n \n return clazz.isPrimitive() ? convertPrimitiveType(value, clazz) : value;\n }",
"static Map<Name, ObjectConverter> createConversionMap (final FeatureType input, final FeatureType toConvert) throws NonconvertibleObjectException{\n\n if(input.equals(toConvert)){\n return null;\n }\n final Map<Name, ObjectConverter> map = new HashMap<Name, ObjectConverter>();\n\n for (PropertyDescriptor toConvertDesc : toConvert.getDescriptors()) {\n for(PropertyDescriptor inputDesc : input.getDescriptors()){\n\n //same property name\n if(toConvertDesc.getName().equals(inputDesc.getName())){\n\n final Class inputClass = inputDesc.getType().getBinding();\n final Class toConvertClass = toConvertDesc.getType().getBinding();\n if(toConvertClass.equals(inputClass)){\n //same name and same type\n map.put(toConvertDesc.getName(), null);\n }else{\n //same name but different type\n if(toConvertDesc instanceof GeometryDescriptor){\n map.put(toConvertDesc.getName(), new GeomConverter(toConvertClass, inputClass));\n }else{\n map.put(toConvertDesc.getName(), ConverterRegistry.system().converter(toConvertClass, inputClass));\n }\n }\n }\n }\n }\n return map;\n\n }",
"V toDto(E entity);",
"public static <T> HashMap<String, Object> objectToMap(T x)\n\t{\n\t\tHashMap<String,Object> map = new HashMap<String, Object>();\n\t\tField[] fields = x.getClass().getDeclaredFields();\n\t\tfor(Field field : fields)\n\t\t{\n\t\t\tfield.setAccessible(true);\n\t\t\tif(!field.isAnnotationPresent(Special.class))\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\tif(field.get(x) != null)\n\t\t\t\t\t\tmap.put(field.getName(), field.get(x));\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn map;\n\t}",
"protected Map<String, Object> buildFieldValueMap(ExpenseTransferAccountingLine accountingLine) {\n Map<String, Object> fieldValues = new HashMap<String, Object>();\n\n fieldValues.put(KFSPropertyConstants.UNIVERSITY_FISCAL_YEAR, accountingLine.getPostingYear());\n fieldValues.put(KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE, accountingLine.getChartOfAccountsCode());\n fieldValues.put(KFSPropertyConstants.ACCOUNT_NUMBER, accountingLine.getAccountNumber());\n\n String subAccountNumber = accountingLine.getSubAccountNumber();\n subAccountNumber = StringUtils.isBlank(subAccountNumber) ? KFSConstants.getDashSubAccountNumber() : subAccountNumber;\n fieldValues.put(KFSPropertyConstants.SUB_ACCOUNT_NUMBER, subAccountNumber);\n\n fieldValues.put(KFSPropertyConstants.FINANCIAL_BALANCE_TYPE_CODE, accountingLine.getBalanceTypeCode());\n fieldValues.put(KFSPropertyConstants.FINANCIAL_OBJECT_CODE, accountingLine.getFinancialObjectCode());\n\n SystemOptions options = SpringContext.getBean(OptionsService.class).getOptions(accountingLine.getPostingYear());\n fieldValues.put(KFSPropertyConstants.FINANCIAL_OBJECT_TYPE_CODE, options.getFinObjTypeExpenditureexpCd());\n\n String subObjectCode = accountingLine.getFinancialSubObjectCode();\n subObjectCode = StringUtils.isBlank(subObjectCode) ? KFSConstants.getDashFinancialSubObjectCode() : subObjectCode;\n fieldValues.put(KFSPropertyConstants.FINANCIAL_SUB_OBJECT_CODE, subObjectCode);\n\n fieldValues.put(KFSPropertyConstants.EMPLID, accountingLine.getEmplid());\n fieldValues.put(KFSPropertyConstants.POSITION_NUMBER, accountingLine.getPositionNumber());\n\n return fieldValues;\n }",
"public Map<String, Object> toMap(Object data) {\n\n try {\n String dataF = null;\n if (!(data instanceof String)) {\n dataF = toString(data);\n }\n// else {\n// dataF = objectMapper.writeValueAsString(data);\n// }\n return objectMapper.readValue(dataF, new TypeReference<Map<String, Object>>() {\n });\n } catch (IOException e) {\n logger.error(e.getMessage(), e);\n }\n return null;\n }",
"private static Object mapValueToJava(Object value) {\n if (value instanceof Map) {\n value = ((Map<?, ?>) value).toMap();\n } else if (value instanceof Sequence) {\n value = ((Sequence<?>) value).toMappedList();\n } else if (value instanceof net.ssehub.easy.instantiation.core.model.vilTypes.Set<?>) {\n value = ((net.ssehub.easy.instantiation.core.model.vilTypes.Set<?>) value).toMappedSet();\n }\n return value;\n }",
"private void processNameToObjectMap() {\r\n for (int i = 0; i < this.getObjectGroupCount(); i++) {\r\n ObjectGroup g = this.objectGroups.get(i);\r\n this.objectGroupNameToOffset.put(g.name, i);\r\n HashMap<String, Integer> nameToObjectMap = new HashMap<String, Integer>();\r\n for (int ib = 0; ib < this.getObjectCount(i); ib++) {\r\n nameToObjectMap.put(this.getObjectName(i, ib), ib);\r\n }\r\n g.setObjectNameMapping(nameToObjectMap);\r\n }\r\n }",
"public Map<ProvisioningEntity, Object> getTargetEntityToTargetNativeEntity() {\n return targetEntityToTargetNativeEntity;\n }",
"Map<String, Object> getPropertiesAsMap();",
"private Recipe mapToRecipeObject(RecipeEntity recipeEntity) {\n\t\tRecipe recipe = new Recipe();\n\t\t//Map primitive fields\n\t\trecipe.setId(recipeEntity.getId());\n\t\trecipe.setName(recipeEntity.getName());\n\t\trecipe.setType(recipeEntity.getType());\n\t\trecipe.setServingCapacity(recipeEntity.getServingCapacity());\n\t\t\n\t\t//Format creation date time to required format\n\t\tif(recipeEntity.getCreationDateTime() != null)\n\t\t\trecipe.setCDateTimeString(Util.formatDateTime(recipeEntity.getCreationDateTime()));\n\t\trecipe.setCreationDateTime(recipeEntity.getCreationDateTime());\n\t\t\n\t\t//Convert ingredients string into list and set to recipe object \n\t\tlog.debug(\"Ingredients String from DB: \"+recipeEntity.getIngredients());\n\t\tList<Ingredient> ingredientsList = Util.convertJSONStringToIngredientsList(recipeEntity.getIngredients());\n\t\tlog.debug(\"Ingredients List size after conversion: \"+ingredientsList.size());\n\t\trecipe.setIngredientsList(ingredientsList);\n\n\t\trecipe.setInstructions(recipeEntity.getInstructions());\n\n\t\treturn recipe;\n\t}",
"public abstract T toObject(String uuid, Map<String, Object> data);",
"protected void fromDBObject(DBObject data) {\n /* Get all public fields of the class */\n Field[] fields = this.getClass().getFields();\n for(Field field : fields) {\n String name = field.getName();\n \n if(data.containsField(name)) {\n if(Modifier.isFinal(field.getModifiers()))\n field.setAccessible(true);\n\n Object value = data.get(name);\n \n try {\n field.set(this, convertDBToField(value, field));\n } catch (IllegalAccessException | IllegalArgumentException ex) {\n throw new MongomanException(ex);\n }\n }\n }\n \n _id = (ObjectId) data.get(\"_id\");\n loaded = data;\n }",
"public Entity toEntity(Object pojo) {\n return ofy().save().toEntity(pojo);\n }",
"public Object convert(Object fromValue) {\n RawObject oldDataRawObject = (RawObject) fromValue;\n RawObject oldKeyRawObject = (RawObject)oldDataRawObject.\n getSuper().getValues().get(\"keys\");\n Object[] oldDataKeyValue = \n (Object[])oldKeyRawObject.getElements();\n RawObject oldValueRawObject = (RawObject)oldDataRawObject.\n getSuper().getValues().get(\"values\");\n \n ArrayList<RawObject> newDataKeyValue = \n new ArrayList<RawObject>();\n RawObject myEnumRawObject = new RawObject(myEnumType, \"DATA\");\n newDataKeyValue.add(myEnumRawObject);\n \n RawObject newKeyRawObject = new RawObject\n (oldKeyRawObject.getType(), newDataKeyValue.toArray());\n Map<String, Object> \n newDataSuperValue = new HashMap<String, Object>();\n newDataSuperValue.put(\"keys\", newKeyRawObject);\n newDataSuperValue.put(\"values\", oldValueRawObject);\n RawObject newDataSuperRawObject = \n new RawObject(newDataSuperType, newDataSuperValue, null);\n Map<String, Object> newDataValue = \n new HashMap<String, Object>();\n RawObject newDataRawObject = \n new RawObject(newDataType, newDataValue, \n newDataSuperRawObject);\n return newDataRawObject;\n }",
"private History convertDTOToEntity(HistoryDTO historyDto) {\n\t\tHistory history = modelMapper.map(historyDto, History.class);\n\t\treturn history;\n\t}",
"private static Object toJavaObject(Value value) throws RepositoryException {\n switch (value.getType()) {\n case PropertyType.DECIMAL:\n return value.getDecimal();\n case PropertyType.BINARY:\n return new LazyInputStream(value);\n case PropertyType.BOOLEAN:\n return value.getBoolean();\n case PropertyType.DATE:\n return value.getDate();\n case PropertyType.DOUBLE:\n return value.getDouble();\n case PropertyType.LONG:\n return value.getLong();\n case PropertyType.NAME: // fall through\n case PropertyType.PATH: // fall through\n case PropertyType.REFERENCE: // fall through\n case PropertyType.STRING: // fall through\n case PropertyType.UNDEFINED: // not actually expected\n default: // not actually expected\n return value.getString();\n }\n }",
"private HashMap<String, Integer> createFieldMap(ObjectDefinition context) {\r\n\r\n\t\tHashMap<String, Integer> map = new HashMap<String, Integer>();\r\n\r\n\t\tArrayList<Field> fields = context.getFields();\r\n\r\n\t\tfor (int i = 0; i < fields.size(); i++) {\r\n\t\t\tmap.put(fields.get(i).getName(), i);\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"public java.util.Map<java.lang.String, java.lang.String> getFieldMap() {\n return internalGetField().getMap();\n }",
"public Object convert(Object fromValue) {\n RawObject oldDataRawObject = (RawObject) fromValue;\n Object[] oldElements = oldDataRawObject.getElements();\n Map<String, Object> integerClassValues = \n new HashMap<String, Object>();\n integerClassValues.put(\"data\", oldElements[0]);\n RawObject integerClassObject = \n new RawObject(integerClassType, integerClassValues, null);\n RawObject[] newElements = new RawObject[1];\n newElements[0] = integerClassObject;\n RawObject newDataRawObject = \n new RawObject(newDataType, newElements);\n return newDataRawObject;\n }",
"private DataMapping getDataMapping(String pFieldName, ObjectSet<?> pObjectSet) {\r\n\t\t\r\n\t\tif (pFieldName != null && pFieldName.trim() != \"\") {\r\n\t\t\tif (pObjectSet != null) {\r\n\t\t\t\tif (pObjectSet.getDataMappings() != null && pObjectSet.getDataMappings().size() > 0) {\r\n\t\t\t\t\tfor(DataMapping mapping : pObjectSet.getDataMappings()) {\r\n\t\t\t\t\t\tif (mapping.DataBaseFieldName.trim().toLowerCase().equals(pFieldName.trim().toLowerCase())) {\r\n\t\t\t\t\t\t\treturn mapping;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"Object getObjectField();",
"public static Object convertToDataTransferObject(Object dto, String prefix, Map<String, Object> record,\n Class<?> dtoType, String[] filter) {\n if (null != record && null != dtoType) {\n if (null == dto) {\n dto = newDataTransferObjectInstance(dtoType);\n }\n List<Field> dtoFields = ObjectUtils.getFields(dtoType, true);\n for (Field dtoField : dtoFields) {\n try {\n Object value = null;\n if (hasData(record, prefix, getEntityMappingFieldPath(dtoField))) {\n value = convertToFieldOfDataTransferObject(dto, prefix, record, dtoField, filter);\n }\n ObjectUtils.setValueForField(dto, dtoField.getName(), value, true);\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot set value for field \"\n + dtoType.getSimpleName() + \".\" + dtoField.getName(), e);\n }\n }\n }\n return dto;\n }",
"public static HashMap<String, String> getHashmapFromDTO(Object dto) {\n HashMap<String, String> mappings = new HashMap<String, String>();\n try {\n for (PropertyDescriptor propertyDescriptor :\n Introspector.getBeanInfo(dto.getClass()).getPropertyDescriptors()) {\n if (isGetter(propertyDescriptor)) {\n mappings.put(propertyDescriptor.getName(), getStringValueFromGetter(dto, propertyDescriptor));\n }\n }\n } catch (IntrospectionException e) {\n e.printStackTrace();\n }\n return mappings;\n\n }",
"public java.util.Map<java.lang.String, java.lang.String> getFieldMap() {\n return internalGetField().getMap();\n }",
"public String[] getFieldNameMapping() {\r\n return null;\r\n }",
"public Map<String, String> toMap() {\n Map<String, String> map = new HashMap<String, String>();\n map.put(\"id\", id + \"\");\n map.put(\"name\", name);\n map.put(\"value\", value);\n map.put(\"type\", type);\n map.put(\"description\", description);\n\n return map;\n\n }",
"@Override\n public Preparation mapToEntity(PreparationDto dto) {\n return null;\n }",
"private ContentValues createContentValues(Object o) {\n\t\ttry {\n\t\t\tContentValues values = new ContentValues();\n\t\t\tfor (Field f : getPersistenceFields(o.getClass())) {\n\t\t\t\tif ((f.isAnnotationPresent(PrimaryKey.class))\n\t\t\t\t\t\t&& (((PrimaryKey) f.getAnnotation(PrimaryKey.class))\n\t\t\t\t\t\t\t\t.autoIncrement()))\n\t\t\t\t\tcontinue;\n\t\t\t\tClass type = f.getType();\n\t\t\t\tString name = f.getName();\n\n\t\t\t\tif (type == Integer.TYPE) {\n\t\t\t\t\tvalues.put(name, Integer.valueOf(f.getInt(o)));\n\t\t\t\t} else if (type == Long.TYPE) {\n\t\t\t\t\tvalues.put(name, Long.valueOf(f.getLong(o)));\n\t\t\t\t} else if (type == Float.TYPE) {\n\t\t\t\t\tvalues.put(name, Float.valueOf(f.getFloat(o)));\n\t\t\t\t} else if (type == Double.TYPE) {\n\t\t\t\t\tvalues.put(name, Double.valueOf(f.getDouble(o)));\n\t\t\t\t} else if (type == String.class) {\n\t\t\t\t\tvalues.put(name, (String) f.get(o));\n\t\t\t\t} else if (type == Byte.class) {\n\t\t\t\t\tvalues.put(name, (byte[]) f.get(o));\n\t\t\t\t} else if (type == Boolean.TYPE) {\n\t\t\t\t\tvalues.put(name, Boolean.valueOf(f.getBoolean(o)));\n\t\t\t\t} else if (type == Short.TYPE) {\n\t\t\t\t\tvalues.put(name, Short.valueOf(f.getShort(o)));\n\t\t\t\t} else if (type == Date.class) {\n\t\t\t\t\tDate d = (Date) f.get(o);\n\t\t\t\t\tvalues.put(name, d != null ? Long.valueOf(d.getTime())\n\t\t\t\t\t\t\t: null);\n\t\t\t\t} else if (type.isEnum()) {\n\t\t\t\t\tEnum e = (Enum) f.get(o);\n\t\t\t\t\tvalues.put(name, e != null ? e.name() : null);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn values;\n\t\t} catch (Exception e) {\n\t\t}\n\t\treturn null;\n\t}",
"Map getPersistentAspectData();",
"protected void prepareEntityToNodeMap()\r\n\t{\n\t}",
"FROM toObject(CONTEXT context, final TO value);",
"public static UserDTO mapEntityIntoDTO(UserEntity entity) {\n \tif (entity == null) {\n \t\treturn null;\n \t}\n \n \tUserDTO dto = new UserDTO();\n \t\n \tdto.setLogin(entity.getLogin());\n\n \tdto.setPassword(entity.getPassword());\n \t// mapValue(entity, dto, \"password\");\n\n \t//dto.setQuota(entity.getQuota());\n \tModelDTOMapper.readEntityFieldToDto(dto, \"quota\", entity, \"quota\", new ConvertIntToLong());\n \t\n \t// dto.setEnabled(entity.getEnabled());\n \tModelDTOMapper.readEntityFieldToDto(dto, entity, \"enabled\");\n return dto;\n }",
"Map<String, FieldInfo> getFieldMap() {\n return fieldMap;\n }",
"public PropertyDefDto getDto();",
"private RecipeEntity mapToRecipeEntity(Recipe recipe) {\n\t\tRecipeEntity rEntity = new RecipeEntity();\n\t\t//Map primitive fields\n\t\trEntity.setId(recipe.getId());\n\t\trEntity.setName(recipe.getName());\n\t\trEntity.setType(recipe.getType());\n\t\trEntity.setServingCapacity(recipe.getServingCapacity());\n\t\t\n\t\t//Save current date time into recipe instance, if not given\n\t\tif(recipe.getCreationDateTime() == null) {\n\t\t\tOptional<Date> currentDateTime = Util.getCurrentDateTime();\n\t\t\tif(currentDateTime.isPresent())\n\t\t\t\tlog.debug(\"Current DateTime to be set in recipe entity: \"+currentDateTime.toString());\n\t\t\telse\n\t\t\t\tlog.warn(\"Setting null to current date time field in recipe entity\");\n\t\t\trEntity.setCreationDateTime(currentDateTime.get());\n\t\t} else {\n\t\t\tlog.debug(\"Retaining given creation date time value into recipe entity\");\n\t\t\trEntity.setCreationDateTime(recipe.getCreationDateTime());\n\t\t}\n\t\t\n\t\t//Convert ingredients list into String and set to recipe entity\n\t\tlog.debug(\"Number of ingredients to convert to string: \"+recipe.getIngredientsList().size());\n\t\tString ingredients = Util.convertToJSONString(recipe.getIngredientsList());\n\t\tlog.debug(\"Ingredients String: \"+ingredients);\n\t\trEntity.setIngredients(ingredients);\n\t\t\n\t\trEntity.setInstructions(recipe.getInstructions());\n\t\t\n\t\treturn rEntity;\n\t}",
"private Object convertFieldToDB(Object value, boolean fullsave) {\n if(value == null)\n return null;\n \n if(value instanceof Enum)\n return ((Enum)value).name();\n\n if(value instanceof Base)\n return convertBaseToDB((Base) value, fullsave);\n \n if (value instanceof Base[]) {\n BasicDBList list = new BasicDBList();\n for(Base b : (Base[])value)\n list.add(convertBaseToDB((Base) b, fullsave));\n \n return list;\n }\n \n if (value instanceof Collection) {\n Collection l = (Collection)value; \n\n if(l.size() > 0 && Base.class.isAssignableFrom(l.iterator().next().getClass())) { \n BasicDBList list = new BasicDBList();\n for(Base b : (Collection<Base>)l)\n list.add(convertBaseToDB(b, fullsave));\n \n return list;\n }\n }\n \n if (value instanceof Map) {\n Map m = (Map)value; \n\n if(m.size() > 0 && m.keySet().iterator().next() instanceof String &&\n Base.class.isAssignableFrom(m.values().iterator().next().getClass())) {\n BasicDBObject map = new BasicDBObject();\n for(Map.Entry<String, Base> e : ((Map<String, Base>)m).entrySet())\n map.put(e.getKey(), convertBaseToDB(e.getValue(), fullsave));\n \n return map;\n }\n }\n \n return value;\n }",
"public abstract Map<String, Object> fetchModelMap() throws ModelException;",
"public static Map<String, Object> mapData(Object data) {\n\t\tMap<String, Object> modelMap = new HashMap<String,Object>(2);\n\t\tmodelMap.put(\"data\", data);\n\t\tmodelMap.put(\"success\", true);\n\t\t\n\t\treturn modelMap;\n\t}",
"private UserDto mapFromUserToDto(User user) {\n UserDto userDto = new UserDto();\n userDto.setId(user.getId());\n userDto.setUsername(user.getUserName());\n userDto.setName(String.format(\"%s %s\", user.getFirstName(), user.getLastName()));\n userDto.setEmail(user.getEmail());\n userDto.setAvatar(user.getAvatar());\n return userDto;\n }",
"public static Object getFieldValueEx(Object object, String fieldName)\r\n\t\t\tthrows Exception {\r\n\t\tHashtable hashtable = ReflectUtil.getAllFieldsValuesEx(object);\r\n\t\treturn hashtable.get(fieldName);\r\n\t}",
"public T caseFieldPath(FieldPath object)\n {\n return null;\n }",
"Comment dtoToEntity(CommentDto commentDto);",
"@Mappings({\n\t\t@Mapping(target=\"id\", source=\"entity.id\"),\n\t\t@Mapping(target=\"userId\", source=\"entity.userId\"),\n\t\t@Mapping(target=\"task_description\", source=\"entity.description\"),\n\t\t@Mapping(target=\"createdDate\", source=\"entity.createdDate\"),\n\t\t@Mapping(target=\"modifiedDate\", source=\"entity.modifiedDate\")\n\t\t//@Mapping(target=\"isDeleted\", source=\"entity.isDeleted\")\n\t\t})\n\n\t\tTaskDto taskToTaskDTO(Task entity);",
"Object toDomain(Object entity, Settings settings);",
"@Override\n\tpublic void convertitMap(Map<String, Object> map) {\n\t\t\n\t}",
"public CoordinadorEntity toEntity(){\n \n CoordinadorEntity entity = new CoordinadorEntity(); \n entity.setId_coordinador(this.id_coodinador);\n entity.setNombres(this.nombres);\n entity.setApellidos(this.apellidos);\n entity.setGenero(this.genero);\n entity.setEmail(this.email);\n entity.setTipoDocumento(tipo_documento_id);\n entity.setNro_documento(this.nro_documento);\n \n return entity;\n }",
"public static <T extends DBRecord<T>> Map<String,String> parseXML_FieldValueMap(Element node, DBFactory<T> tableFact)\n throws DBException\n {\n\n /* validate node */\n if (node == null) {\n throw new DBException(\"Node tag element is null\");\n }\n\n /* value map container */\n Map<String,String> valueMap = new OrderedMap<String,String>();\n\n /* parse fields */\n NodeList fieldList = XMLTools.getChildElements(node,TAG_Field);\n for (int f = 0; f < fieldList.getLength(); f++) {\n Element field = (Element)fieldList.item(f);\n String name = XMLTools.getAttribute(field,ATTR_name,null,false);\n //Print.logInfo(\"Parsing field: \" + name);\n if (StringTools.isBlank(name)) {\n // blank field name\n Print.logWarn(\"Specified field name is null/blank\");\n } else\n if (!tableFact.hasField(name)) {\n // invalid field name\n Print.logWarn(\"Field does not exist in DBFactory: \" + name);\n } else {\n String type = XMLTools.getAttribute(field, ATTR_type, null, false);\n String priKey = XMLTools.getAttribute(field, ATTR_primaryKey, null, false);\n String altKeys = XMLTools.getAttribute(field, ATTR_alternateKeys, null, false);\n String value = XMLTools.getNodeText( field, \"\\\\n\", false, \"\");\n valueMap.put(name,value);\n }\n }\n \n /* value map */\n return valueMap;\n }",
"List<E> mapToEntity(List<D> dto);",
"public Map<Field, String> getAuditableFields();",
"public static <S extends BaseBean, D extends BaseEntity> D parserBeanToEntity(S sourceObject, Class<D> destinationType) {\n\t\treturn dozerMapper.map(sourceObject, destinationType);\n\t}",
"public Map<String, AllowableFieldEntry> getFieldMap() {\n return fieldMap;\n }",
"public Map<String, Object> allFields() {\n Map<String, Object> map = new HashMap<>();\n properties.forEach((key, value) -> map.put(key, value.value()));\n return map;\n }",
"private Map<String, String> getValueMap(JsonNode node) {\n if (!isEtcdDirectory(node)) {\n try {\n String json = node.get(\"value\").asText();\n ObjectMapper mapper = new ObjectMapper();\n Map<String, String> map =\n mapper.readValue(json, new TypeReference<Map<String, String>>() {});\n return map;\n } catch (Exception e) {\n m_LogService.log(LogService.LOG_ERROR, e.getMessage(), e);\n }\n }\n return null;\n }",
"public static List<String> getEntityMappingFieldPathsPrimary(Class<?> dtoType, boolean includeCollection) {\n // Get primary key of Entity mapping with DTO\n List<String> entityKeyFields = EntityUtils.getPrimaryKey(getEntityType(dtoType));\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n // For each field of DTO, if field is another DTO then get also.\n for (Field field : fields) {\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType) && (includeCollection || !ObjectUtils.fieldIsCollection(field))) {\n String fieldPath = getEntityMappingFieldPath(field);\n fieldPath = null != fieldPath ? fieldPath + Constants.DOT : Constants.EMPTY_STRING;\n List<String> innerKeyFieldPaths = getEntityMappingFieldPathsPrimary(fieldType, includeCollection)\n .stream().map(fieldPath::concat).collect(Collectors.toList());\n entityKeyFields.addAll(innerKeyFieldPaths);\n }\n }\n return entityKeyFields;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<FileHelper> getValue(Object obj, String strFieldName, String strCcId, HashMap<String, FileHelper> valueFields) {\n\t\tList<FileHelper> values;\n\t\ttry {\n\n\t\t\tMethod mt = obj.getClass().getMethod(\"get\" + strFieldName);\n\t\t\tvalues = (List<FileHelper>) mt.invoke(obj);\n\n\t\t\tif (values == null)\n\t\t\t\treturn null;\n\n\t\t\tfor (FileHelper fh : values) {\n\t\t\t\tvalueFields.put(strCcId + \"|\" + fh.getId(), fh);\n\t\t\t}\n\n\t\t\treturn values;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"Object getValueFrom();",
"public Object getFromData() throws AeBusinessProcessException\r\n {\r\n IAePropertyAlias propAlias = getPropertyAlias();\r\n return AePropertyAliasBasedSelector.selectValue(propAlias, getDataForQueryContext(propAlias), getCopyOperation().getContext());\r\n }",
"@SuppressWarnings(\"unchecked\")\n @Override\n protected String convertObjectToJson(Object object) {\n try {\n Set<EventDataValue> eventDataValues =\n object == null ? Collections.emptySet() : (Set<EventDataValue>) object;\n\n Map<String, EventDataValue> tempMap = new HashMap<>();\n\n for (EventDataValue eventDataValue : eventDataValues) {\n tempMap.put(eventDataValue.getDataElement(), eventDataValue);\n }\n\n return writer.writeValueAsString(tempMap);\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n }",
"@Mappings({@Mapping(source = \"province\",target = \"province2\"),@Mapping(source = \"valid\",target = \"valid2\")})\n OaCompanyDto convert(OaCompany OaCompany);",
"@Override\n public SystemResource pojoToEntity(SystemResourcePojo pojo){\n SystemResource entity = new SystemResource();\n\n entity.setName(pojo.getName());\n entity.setPath(pojo.getPath());\n entity.setType(pojo.getType());\n entity.setOriginalFileName(pojo.getOriginalFileName());\n entity.setUrl(pojo.getUrl());\n entity.setPublicKey(pojo.getPublicKey());\n return entity;\n }",
"public static String getEntityMappingFieldPath(Field field) {\n List<String> fieldPaths = getEntityMappingFieldPaths(field, false, true);\n if (fieldPaths.size() > 0) {\n return fieldPaths.get(0);\n }\n return null;\n }",
"private VariableMap getParamMappingAsVariableMap() {\n paramValueEncodings.put(fileNameToIndex.keySet().toString(), \" FileNames\");\n paramValueEncodings.put(functionNameToIndex.keySet().toString(), \" FunctionNames\");\n paramValueEncodings.put(typeToIndex.keySet().toString(), \" Types\");\n\n VariableMap preInversedMap = new VariableMap(paramValueEncodings);\n ImmutableMap<String, String> inversedMap = preInversedMap.getNewNameToOriginalNameMap();\n return new VariableMap(inversedMap);\n }",
"public static List<String> getEntityMappingFieldPaths(Class<?> dtoType) {\n return getEntityMappingFieldPaths(dtoType, false, true);\n }",
"@Mapper(componentModel = \"spring\")\npublic interface DataDictItemMapping {\n DataDictItemVo asDataDictItemVo(DataDictItem entity);\n\n DataDictItemOrdinaryVo asOrdinary(DataDictItem entity);\n\n @Mapping(target = \"priority\", ignore = true)\n @Mapping(target = \"lastUpdater\", ignore = true)\n @Mapping(target = \"lastUpdatedAt\", ignore = true)\n @Mapping(target = \"id\", ignore = true)\n @Mapping(target = \"dictId\", ignore = true)\n @Mapping(target = \"creator\", ignore = true)\n @Mapping(target = \"createdAt\", ignore = true)\n DataDictItem asDataDictItem(DataDictItemInsertRo ro);\n\n DataDictItemComplexVo asComplex(DataDictItem entity);\n\n DataDictItem asDataDictItem(DataDictItemUpdateRo ro);\n}",
"Map<String, Object> getValues(boolean deep);",
"private PropertyValues handleMapType(String path,MutablePropertyValues values,Object data,Method method,int level){\n\t\tClass<?> eleType=GenericCollectionTypeResolver.getMapValueReturnType(method,level);\t\n\t\t\n\t\tif(null==eleType){\n\t\t\treturn values;\n\t\t}\n\t\tif(data instanceof Map<?, ?>){\n\t\t\tMap<?,?> dataMap=(Map<?, ?>) data;\n\t\t\tfor(Map.Entry<?, ?> entry:dataMap.entrySet()){\n\t\t\t\tString key=entry.getKey().toString();\n\t\t\t\tObject value=entry.getValue();\n\t\t\t\tString subPath=path+PropertyAccessor.PROPERTY_KEY_PREFIX+key+PropertyAccessor.PROPERTY_KEY_SUFFIX; \n\t\t\t\tvalues.addPropertyValues(resolve(subPath,value,eleType,method,level+1));\n\t\t\t}\n\t\t}\n\t\treturn values;\n\t}",
"public UserFile mapUserFileEntityToUserFile(UserFileEntity userFileEntity) {\n\t\tif(userFileEntity == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\t//--- Generic mapping \n\t\tUserFile userFile = map(userFileEntity, UserFile.class);\n\n\t\treturn userFile;\n\t}",
"public static FileData createEntity() {\n FileData fileData = Reflections.createObj(FileData.class, Lists.newArrayList(\n\t\t FileData.F_NAME\n\t\t,FileData.F_PATH\n\t\t,FileData.F_SIZE\n\t\t,FileData.F_TYPE\n\t\t,FileData.F_DESCRIPTION\n ),\n\n\t\t DEFAULT_NAME\n\n\t\t,DEFAULT_PATH\n\n\t\t,DEFAULT_SIZE\n\n\t\t,DEFAULT_TYPE\n\n\n\n\n\n\n\t\t,DEFAULT_DESCRIPTION\n\n\t);\n return fileData;\n }",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tpublic static <T> Path<Object> getPathFromField(Root<T> root, String field) {\n\t\tString[] fieldname = field.split(\"/\");\n\t\tPath<Object> path = null;\n\t\tfor (int idx = 0; idx < fieldname.length; idx++) {\n\n\t\t\tString attributeName = fieldname[idx];\n\n\t\t\tif (path != null) {\n\t\t\t\tpath = path.get(attributeName);\n\t\t\t} else {\n\t\t\t\tpath = root.get(attributeName);\n\t\t\t}\n\n\t\t\tif ((fieldname.length - 1) > idx) {\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Set.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tJoin<T, ?> join = opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tpath = join.get(fieldname[++idx]);\n\n\t\t\t\t}\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Map.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tMapJoin join = (MapJoin) opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tString f = fieldname[++idx];\n\t\t\t\t\tif (f.equals(\"key\"))\n\t\t\t\t\t\tpath = join.key();\n\t\t\t\t\telse if (f.equals(\"value\"))\n\t\t\t\t\t\tpath = join.value();\n\t\t\t\t\telse\n\t\t\t\t\t\tthrow new FormatExceptionException(\"Only key or value you can specify in a map filter, got: \" + f);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn path;\n\t}",
"Object getConvertedValue() throws ConversionException;",
"@Override\r\n public void process() {\r\n if (isDirectEmbeddableCollection()) {\r\n ObjectArrayMapping mapping = new ObjectArrayMapping();\r\n \r\n // Add the mapping to the descriptor.\r\n setMapping(mapping);\r\n \r\n // Set the reference class name.\r\n mapping.setReferenceClassName(getReferenceClassName());\r\n \r\n // Set the attribute name.\r\n mapping.setAttributeName(getAttributeName());\r\n \r\n // Will check for PROPERTY access\r\n setAccessorMethods(mapping);\r\n \r\n mapping.setStructureName(getDatabaseType());\r\n \r\n // Process the @Column or column element if there is one.\r\n // A number of methods depend on this field so it must be\r\n // initialized before any further processing can take place.\r\n mapping.setField(new ObjectRelationalDatabaseField(getDatabaseField(getDescriptor().getPrimaryTable(), MetadataLogger.COLUMN)));\r\n } else {\r\n ArrayMapping mapping = new ArrayMapping();\r\n \r\n // Add the mapping to the descriptor.\r\n setMapping(mapping);\r\n \r\n // Set the attribute name.\r\n mapping.setAttributeName(getAttributeName());\r\n \r\n // Will check for PROPERTY access\r\n setAccessorMethods(mapping);\r\n \r\n mapping.setStructureName(getDatabaseType());\r\n \r\n // Process the @Column or column element if there is one.\r\n // A number of methods depend on this field so it must be\r\n // initialized before any further processing can take place.\r\n mapping.setField(new ObjectRelationalDatabaseField(getDatabaseField(getDescriptor().getPrimaryTable(), MetadataLogger.COLUMN)));\r\n }\r\n }"
] | [
"0.65273196",
"0.62331605",
"0.57044435",
"0.5538984",
"0.5518666",
"0.5505476",
"0.54762435",
"0.54102695",
"0.53748006",
"0.52845836",
"0.52659214",
"0.52618814",
"0.5237287",
"0.51768655",
"0.51663446",
"0.5131413",
"0.512006",
"0.5065205",
"0.5044879",
"0.5026801",
"0.5012158",
"0.50073725",
"0.50072855",
"0.49986884",
"0.49884173",
"0.49710962",
"0.4947493",
"0.4936534",
"0.4936072",
"0.49253437",
"0.4921406",
"0.49099317",
"0.49062115",
"0.48904037",
"0.48858026",
"0.48817876",
"0.4880667",
"0.48639786",
"0.48629215",
"0.48546675",
"0.48452702",
"0.48329037",
"0.48295474",
"0.4824691",
"0.48222318",
"0.4814643",
"0.48110244",
"0.4791419",
"0.47870123",
"0.4769191",
"0.47667256",
"0.47665617",
"0.47647902",
"0.4764656",
"0.4763809",
"0.47609165",
"0.47578",
"0.4750645",
"0.47453547",
"0.47441137",
"0.47412905",
"0.4740458",
"0.47324562",
"0.47234276",
"0.47175997",
"0.47124687",
"0.47079352",
"0.47014487",
"0.46997494",
"0.46942163",
"0.46932814",
"0.46903947",
"0.46896726",
"0.46835694",
"0.46788034",
"0.4678486",
"0.4670401",
"0.46695697",
"0.46645623",
"0.4655066",
"0.465292",
"0.4652808",
"0.46439874",
"0.4639525",
"0.46292585",
"0.4627917",
"0.46263537",
"0.4626051",
"0.46247613",
"0.4620469",
"0.46150544",
"0.4614428",
"0.4614128",
"0.46128422",
"0.46091533",
"0.46087447",
"0.46026316",
"0.45948842",
"0.45895642",
"0.4588443"
] | 0.628609 | 1 |
Convert Data Transfer Object to map entity field path and value. | public static Map<String, Object> convertToEntityMappingFieldAndValue(Object dto) {
Map<String, Object> mapData = new HashMap<>();
if (null != dto) {
List<Field> fields = ObjectUtils.getFields(dto.getClass(), true);
for (Field field : fields) {
mapData.putAll(convertToEntityMappingFieldAndValue(dto, field));
}
}
return mapData;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Map<String, Object> convertToEntityMappingFieldAndValue(Object dto, Field field) {\n Map<String, Object> mapData = new HashMap<>();\n if (null != dto && null != field) {\n Object valueOfField;\n try {\n valueOfField = ObjectUtils.getValueOfField(dto, field.getName());\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot get value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n\n if (validate(MappingUtils.getFieldType(field))) {\n if (!ObjectUtils.fieldIsCollection(field)) {\n Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(valueOfField);\n for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {\n mapData.put(field.getName() + Constants.DOT + entry.getKey(), entry.getValue());\n }\n } else {\n Collection<?> collection = (Collection<?>) valueOfField;\n int index = 0;\n if (!CollectionUtils.isEmpty(collection)) {\n for (Object innerDTO : collection) {\n Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(innerDTO);\n for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {\n mapData.put(field.getName() + \"[\" + index + \"]\" + Constants.DOT + entry.getKey(), entry.getValue());\n }\n index++;\n }\n }\n }\n } else {\n Class<?> fieldConverter = getFieldConverterType(field);\n Object convertValue = convertField(fieldConverter, valueOfField, true);\n mapData.put(getEntityMappingFieldPath(field), convertValue);\n }\n }\n return mapData;\n }",
"public static Object convertMapEntityPathAndValueToDTO(String prefix, Map<String, Object> mapData, Field field) {\n if (null != mapData && null != field) {\n String mappingField = getEntityMappingFieldPath(field);\n if (!StringUtils.isEmpty(prefix)) {\n prefix += Constants.DOT;\n }\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType)) {\n if (!ObjectUtils.fieldIsCollection(field)) {\n return convertMapEntityPathAndValueToDTO(prefix + mappingField, mapData, fieldType);\n } else {\n int length = countLengthOfArray(prefix + mappingField, mapData);\n if (length > 0) {\n try {\n @SuppressWarnings(\"unchecked\")\n Collection<Object> collection = ObjectUtils.newInstanceCollection(field.getType());\n for (int i = 0; i < length; i++) {\n Object innerEntity = convertMapEntityPathAndValueToDTO(prefix + mappingField + \"[\" + i + \"]\", mapData, fieldType);\n if (null != innerEntity) {\n collection.add(innerEntity);\n }\n }\n return collection;\n } catch (NoSuchMethodException e) {\n throw new ConstructorInvalidException(\"Cannot new collection instance for field \" + field.getName(), e);\n }\n }\n }\n } else {\n Class<?> fieldConverter = getFieldConverterType(field);\n return convertField(fieldConverter, mapData.get(prefix + mappingField));\n }\n }\n return null;\n }",
"public static Object convertMapEntityPathAndValueToDTO(String prefix, Map<String, Object> mapData, Class<?> dtoType) {\n if (null != mapData && null != dtoType) {\n validateThrow(dtoType, new ConfigurationInvalidException(dtoType.getName() + \": Data Transfer Object configuration is invalid\"));\n\n Object dto;\n try {\n dto = ObjectUtils.newInstance(dtoType);\n } catch (InvocationTargetException | NoSuchMethodException | InstantiationException | IllegalAccessException e) {\n throw new ConstructorInvalidException(\"Cannot found default constructor for \" + dtoType.getSimpleName(), e);\n }\n\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n try {\n Object fieldValue = convertMapEntityPathAndValueToDTO(prefix, mapData, field);\n ObjectUtils.setValueForField(dto, field.getName(), fieldValue);\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot set value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n }\n return dto;\n }\n return null;\n }",
"java.util.Map<java.lang.String, java.lang.String>\n getFieldMap();",
"public abstract T convertToEntity(D dto);",
"@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }",
"@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }",
"@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n public static Object convertToFieldOfDataTransferObject(Object dto, String prefix, Map<String, Object> record, Field field, String[] filter) {\n Object reValue = null;\n if (null != record && null != field) {\n String entityFieldPath = getEntityMappingFieldPath(field);\n if (!StringUtils.isEmpty(prefix)) {\n entityFieldPath = prefix + Constants.DOT + entityFieldPath;\n }\n\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType)) {\n Object innerDTO = null;\n try {\n if (ObjectUtils.fieldIsCollection(field)) {\n Collection collection = ObjectUtils.getValueOfField(dto, field.getName(), Collection.class);\n if (null == collection) {\n collection = ObjectUtils.newInstanceCollection(field.getType());\n } else {\n for (Object obj : collection) {\n String keyOne = getKey(fieldType, obj);\n String keyTwo = getKey(entityFieldPath, fieldType, record);\n if (keyOne.equals(keyTwo)) {\n innerDTO = obj;\n break;\n }\n }\n }\n\n Object value = convertToDataTransferObject(innerDTO, entityFieldPath, record, fieldType, filter);\n\n if (null == innerDTO) {\n collection.add(value);\n }\n reValue = collection;\n } else {\n reValue = convertToDataTransferObject(null, entityFieldPath, record, fieldType, filter);\n }\n } catch (NoSuchMethodException e) {\n throw new ConstructorInvalidException(\"Cannot new collection instance for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot get value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n } else if (MappingUtils.isKeepField(entityFieldPath, filter)) {\n Class<?> fieldConverter = getFieldConverterType(field);\n reValue = convertField(fieldConverter, record.get(entityFieldPath));\n }\n }\n return reValue;\n }",
"public abstract Map<String, Object> toMap(T object);",
"E mapToEntity(D dto);",
"public static Map<String, Object> resolveObject(Object object) throws IllegalAccessException {\n Map<String, Object> ret = new HashMap<>();\n Field[] fields = object.getClass().getDeclaredFields();\n for (Field field : fields) {\n String key = field.getName();\n field.setAccessible(true);\n Object value = field.get(object);\n if (value instanceof Instant) {\n value = getDateStr((Instant) value);\n }\n ret.put(key, value);\n }\n return ret;\n }",
"public static Map<String, Object> resolveObject(Object object, Map<String, String> mapper) throws IllegalAccessException {\n Map<String, Object> ret = new HashMap<>();\n Field[] fields = object.getClass().getDeclaredFields();\n for (Field field : fields) {\n String key = field.getName();\n field.setAccessible(true);\n if (mapper.containsKey(key)) {\n key = mapper.get(key);\n }\n if (key != null) {\n Object value = field.get(object);\n if (value instanceof Instant) {\n value = getDateStr((Instant) value);\n }\n ret.put(key, value);\n }\n }\n return ret;\n }",
"public Object toPojo(Entity entity) {\n return ofy().load().fromEntity(entity);\n }",
"private static HashMap<String, String> fieldsToMap(FieldMap inMap,\r\n FIXDataDictionary inDict) {\r\n HashMap<String, String> fields = new HashMap<String, String>();\r\n Iterator<Field<?>> iterator = inMap.iterator();\r\n while(iterator.hasNext()) {\r\n Field<?> f = iterator.next();\r\n String value;\r\n if(f instanceof StringField) {\r\n value = ((StringField)f).getValue();\r\n if (inDict != null) {\r\n String humanValue = inDict.getHumanFieldValue(f.getTag(),value);\r\n if(humanValue != null) {\r\n value = new StringBuilder().append(humanValue).\r\n append(\"(\").append(value). //$NON-NLS-1$\r\n append(\")\").toString(); //$NON-NLS-1$\r\n }\r\n }\r\n } else {\r\n value = String.valueOf(f.getObject());\r\n }\r\n String name = null;\r\n if (inDict != null) {\r\n name = inDict.getHumanFieldName(f.getTag());\r\n }\r\n if(name == null) {\r\n name = String.valueOf(f.getTag());\r\n } else {\r\n name = new StringBuilder().append(name).\r\n append(\"(\").append(f.getTag()). //$NON-NLS-1$\r\n append(\")\").toString(); //$NON-NLS-1$\r\n }\r\n fields.put(name,value);\r\n }\r\n return fields;\r\n }",
"public DocumentModel toFields(DocumentModel inDoc,\n HashMap<String, String> inMapping, boolean inSave,\n CoreSession inSession) {\n\n // Parse if needed\n run();\n\n HashMap<String, String> values = toHashMap();\n for (String inXPath : inMapping.keySet()) {\n String value = values.get(inMapping.get(inXPath));\n inDoc.setPropertyValue(inXPath, value);\n }\n\n if (inSave) {\n inDoc = inSession.saveDocument(inDoc);\n }\n\n return inDoc;\n }",
"@Override\n\tpublic Map<String, String> Bean2Map(Object obj) {\n\t\tif (obj != null && obj instanceof AttentionBean) {\n\t\t\tAttentionBean bean = (AttentionBean) obj;\n\t\t\tHashMap<String, String> map = new HashMap<String, String>();\n\t\t\tmap.put(\"from_id\", bean.getFollowers_id());\n\t\t\tmap.put(\"to_id\", bean.getBy_follower_id());\n\t\t\treturn map;\n\t\t}\n\t\treturn null;\n\t}",
"public abstract D convertToDto(T entity);",
"public Map<String, Object> createFldNames2ValsMap(Record record)\n {\n return (createFldNames2ValsMap(record, null));\n }",
"private List<Field> getMappedFields(Mapping objectMapping, DataSourceType dataSourceType) {\n List<Field> mappedFields = null;\n if (dataSourceType == DataSourceType.SOURCE) {\n FieldGroup fg = objectMapping.getInputFieldGroup();\n if (fg != null) {\n mappedFields = fg.getField();\n } else {\n mappedFields = objectMapping.getInputField();\n }\n } else {\n mappedFields = objectMapping.getOutputField();\n }\n return mappedFields;\n }",
"D mapToDTO(E entity);",
"public Map<String, Object> uriToValueMap();",
"public static String getEntityMappingFieldPath(Class<?> dtoType, String fieldPath) {\n if (null != dtoType && !StringUtils.isEmpty(fieldPath)) {\n String[] paths = fieldPath.split(Constants.DOT_REGEX);\n Field field = ObjectUtils.getField(dtoType, paths[0], true);\n String entityFieldName = getEntityMappingFieldPath(field);\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (paths.length > 1 && validate(innerClass)) {\n String nextPath = fieldPath.substring(fieldPath.indexOf(Constants.DOT) + 1);\n entityFieldName = entityFieldName + Constants.DOT + getEntityMappingFieldPath(innerClass, nextPath);\n }\n return entityFieldName;\n }\n return null;\n }",
"EntityData<?> getEntityData();",
"@SuppressWarnings(\"unchecked\")\n private Object convertToDataTransferObject(Object data, Class<?> dtoType) {\n if (Map.class.isAssignableFrom(data.getClass())) {\n return ObjectUtils.convertMapToObject((Map<String, ?>) data, dtoType);\n }\n throw new ParamInvalidException(\"Cannot parse '\" + data.getClass().getName() + \"' to '\" + dtoType.getName() + \"'\");\n }",
"@Override\n\tpublic Object convert(Object original) {\n\t\tif (original == null)\n\t\t\treturn OTHER;\n\n\t\tif (!(original instanceof PersonAttribute))\n\t\t\treturn \"Invalid: \" + original.toString();\n\n\t\tPersonAttribute pa = (PersonAttribute) original;\n\n\t\tString entryPoint = locationMap.get(pa.getValue());\n\n\t\tif (entryPoint != null)\n\t\t\treturn entryPoint;\n\n\t\treturn OTHER;\n\t}",
"private static Map<Object, Object> getFields(Device d1) {\n\t Class<? extends Device> deviceClass = d1.getClass();\n\t Field[] fields = deviceClass.getDeclaredFields();\n\t \n\t //Map to get property details to provided class\n\t \tMap<Object,Object> mapFields = new HashMap<>();\t \n\n\t Arrays.stream(fields)\n\t .forEach(\n\t field -> {\n\t field.setAccessible(true);\n\t try {\n\t \tmapFields.put(field.getName(), field.get(d1));\n\t } catch (final IllegalAccessException e) {\n\t \t\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tmapFields.put(field.getName(), field.get(d1));\n\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t }\n\t });\n\n\t return mapFields;\n\t}",
"public static Map<String, String> getMapping() {\r\n\t\treturn data.get();\r\n\t}",
"E toEntity(V dto);",
"private Object convertDBToField(Object value, Field field) {\n if(value == null)\n return null;\n \n Class<?> clazz = field.getType();\n \n if(Enum.class.isAssignableFrom(clazz))\n return Enum.valueOf((Class<Enum>)clazz, value.toString());\n \n if(Base.class.isAssignableFrom(clazz))\n return createInstance((Class<? extends Base>)clazz, (DBObject) value);\n \n if(value instanceof BasicDBList) {\n BasicDBList list = (BasicDBList)value;\n\n if(Collection.class.isAssignableFrom(clazz))\n return convertDBToCollectionField(list, field);\n \n if(clazz.isArray())\n return convertDBToArrayField(list, clazz);\n \n return value;\n }\n \n if(value instanceof BasicDBObject) {\n BasicDBObject map = (BasicDBObject)value;\n\n if(Map.class.isAssignableFrom(clazz))\n return convertDBToMapField(map, field);\n \n return value; \n }\n \n return clazz.isPrimitive() ? convertPrimitiveType(value, clazz) : value;\n }",
"static Map<Name, ObjectConverter> createConversionMap (final FeatureType input, final FeatureType toConvert) throws NonconvertibleObjectException{\n\n if(input.equals(toConvert)){\n return null;\n }\n final Map<Name, ObjectConverter> map = new HashMap<Name, ObjectConverter>();\n\n for (PropertyDescriptor toConvertDesc : toConvert.getDescriptors()) {\n for(PropertyDescriptor inputDesc : input.getDescriptors()){\n\n //same property name\n if(toConvertDesc.getName().equals(inputDesc.getName())){\n\n final Class inputClass = inputDesc.getType().getBinding();\n final Class toConvertClass = toConvertDesc.getType().getBinding();\n if(toConvertClass.equals(inputClass)){\n //same name and same type\n map.put(toConvertDesc.getName(), null);\n }else{\n //same name but different type\n if(toConvertDesc instanceof GeometryDescriptor){\n map.put(toConvertDesc.getName(), new GeomConverter(toConvertClass, inputClass));\n }else{\n map.put(toConvertDesc.getName(), ConverterRegistry.system().converter(toConvertClass, inputClass));\n }\n }\n }\n }\n }\n return map;\n\n }",
"V toDto(E entity);",
"public static <T> HashMap<String, Object> objectToMap(T x)\n\t{\n\t\tHashMap<String,Object> map = new HashMap<String, Object>();\n\t\tField[] fields = x.getClass().getDeclaredFields();\n\t\tfor(Field field : fields)\n\t\t{\n\t\t\tfield.setAccessible(true);\n\t\t\tif(!field.isAnnotationPresent(Special.class))\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\tif(field.get(x) != null)\n\t\t\t\t\t\tmap.put(field.getName(), field.get(x));\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn map;\n\t}",
"protected Map<String, Object> buildFieldValueMap(ExpenseTransferAccountingLine accountingLine) {\n Map<String, Object> fieldValues = new HashMap<String, Object>();\n\n fieldValues.put(KFSPropertyConstants.UNIVERSITY_FISCAL_YEAR, accountingLine.getPostingYear());\n fieldValues.put(KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE, accountingLine.getChartOfAccountsCode());\n fieldValues.put(KFSPropertyConstants.ACCOUNT_NUMBER, accountingLine.getAccountNumber());\n\n String subAccountNumber = accountingLine.getSubAccountNumber();\n subAccountNumber = StringUtils.isBlank(subAccountNumber) ? KFSConstants.getDashSubAccountNumber() : subAccountNumber;\n fieldValues.put(KFSPropertyConstants.SUB_ACCOUNT_NUMBER, subAccountNumber);\n\n fieldValues.put(KFSPropertyConstants.FINANCIAL_BALANCE_TYPE_CODE, accountingLine.getBalanceTypeCode());\n fieldValues.put(KFSPropertyConstants.FINANCIAL_OBJECT_CODE, accountingLine.getFinancialObjectCode());\n\n SystemOptions options = SpringContext.getBean(OptionsService.class).getOptions(accountingLine.getPostingYear());\n fieldValues.put(KFSPropertyConstants.FINANCIAL_OBJECT_TYPE_CODE, options.getFinObjTypeExpenditureexpCd());\n\n String subObjectCode = accountingLine.getFinancialSubObjectCode();\n subObjectCode = StringUtils.isBlank(subObjectCode) ? KFSConstants.getDashFinancialSubObjectCode() : subObjectCode;\n fieldValues.put(KFSPropertyConstants.FINANCIAL_SUB_OBJECT_CODE, subObjectCode);\n\n fieldValues.put(KFSPropertyConstants.EMPLID, accountingLine.getEmplid());\n fieldValues.put(KFSPropertyConstants.POSITION_NUMBER, accountingLine.getPositionNumber());\n\n return fieldValues;\n }",
"public Map<String, Object> toMap(Object data) {\n\n try {\n String dataF = null;\n if (!(data instanceof String)) {\n dataF = toString(data);\n }\n// else {\n// dataF = objectMapper.writeValueAsString(data);\n// }\n return objectMapper.readValue(dataF, new TypeReference<Map<String, Object>>() {\n });\n } catch (IOException e) {\n logger.error(e.getMessage(), e);\n }\n return null;\n }",
"private static Object mapValueToJava(Object value) {\n if (value instanceof Map) {\n value = ((Map<?, ?>) value).toMap();\n } else if (value instanceof Sequence) {\n value = ((Sequence<?>) value).toMappedList();\n } else if (value instanceof net.ssehub.easy.instantiation.core.model.vilTypes.Set<?>) {\n value = ((net.ssehub.easy.instantiation.core.model.vilTypes.Set<?>) value).toMappedSet();\n }\n return value;\n }",
"public Map<ProvisioningEntity, Object> getTargetEntityToTargetNativeEntity() {\n return targetEntityToTargetNativeEntity;\n }",
"private void processNameToObjectMap() {\r\n for (int i = 0; i < this.getObjectGroupCount(); i++) {\r\n ObjectGroup g = this.objectGroups.get(i);\r\n this.objectGroupNameToOffset.put(g.name, i);\r\n HashMap<String, Integer> nameToObjectMap = new HashMap<String, Integer>();\r\n for (int ib = 0; ib < this.getObjectCount(i); ib++) {\r\n nameToObjectMap.put(this.getObjectName(i, ib), ib);\r\n }\r\n g.setObjectNameMapping(nameToObjectMap);\r\n }\r\n }",
"Map<String, Object> getPropertiesAsMap();",
"private Recipe mapToRecipeObject(RecipeEntity recipeEntity) {\n\t\tRecipe recipe = new Recipe();\n\t\t//Map primitive fields\n\t\trecipe.setId(recipeEntity.getId());\n\t\trecipe.setName(recipeEntity.getName());\n\t\trecipe.setType(recipeEntity.getType());\n\t\trecipe.setServingCapacity(recipeEntity.getServingCapacity());\n\t\t\n\t\t//Format creation date time to required format\n\t\tif(recipeEntity.getCreationDateTime() != null)\n\t\t\trecipe.setCDateTimeString(Util.formatDateTime(recipeEntity.getCreationDateTime()));\n\t\trecipe.setCreationDateTime(recipeEntity.getCreationDateTime());\n\t\t\n\t\t//Convert ingredients string into list and set to recipe object \n\t\tlog.debug(\"Ingredients String from DB: \"+recipeEntity.getIngredients());\n\t\tList<Ingredient> ingredientsList = Util.convertJSONStringToIngredientsList(recipeEntity.getIngredients());\n\t\tlog.debug(\"Ingredients List size after conversion: \"+ingredientsList.size());\n\t\trecipe.setIngredientsList(ingredientsList);\n\n\t\trecipe.setInstructions(recipeEntity.getInstructions());\n\n\t\treturn recipe;\n\t}",
"public abstract T toObject(String uuid, Map<String, Object> data);",
"protected void fromDBObject(DBObject data) {\n /* Get all public fields of the class */\n Field[] fields = this.getClass().getFields();\n for(Field field : fields) {\n String name = field.getName();\n \n if(data.containsField(name)) {\n if(Modifier.isFinal(field.getModifiers()))\n field.setAccessible(true);\n\n Object value = data.get(name);\n \n try {\n field.set(this, convertDBToField(value, field));\n } catch (IllegalAccessException | IllegalArgumentException ex) {\n throw new MongomanException(ex);\n }\n }\n }\n \n _id = (ObjectId) data.get(\"_id\");\n loaded = data;\n }",
"public Entity toEntity(Object pojo) {\n return ofy().save().toEntity(pojo);\n }",
"public Object convert(Object fromValue) {\n RawObject oldDataRawObject = (RawObject) fromValue;\n RawObject oldKeyRawObject = (RawObject)oldDataRawObject.\n getSuper().getValues().get(\"keys\");\n Object[] oldDataKeyValue = \n (Object[])oldKeyRawObject.getElements();\n RawObject oldValueRawObject = (RawObject)oldDataRawObject.\n getSuper().getValues().get(\"values\");\n \n ArrayList<RawObject> newDataKeyValue = \n new ArrayList<RawObject>();\n RawObject myEnumRawObject = new RawObject(myEnumType, \"DATA\");\n newDataKeyValue.add(myEnumRawObject);\n \n RawObject newKeyRawObject = new RawObject\n (oldKeyRawObject.getType(), newDataKeyValue.toArray());\n Map<String, Object> \n newDataSuperValue = new HashMap<String, Object>();\n newDataSuperValue.put(\"keys\", newKeyRawObject);\n newDataSuperValue.put(\"values\", oldValueRawObject);\n RawObject newDataSuperRawObject = \n new RawObject(newDataSuperType, newDataSuperValue, null);\n Map<String, Object> newDataValue = \n new HashMap<String, Object>();\n RawObject newDataRawObject = \n new RawObject(newDataType, newDataValue, \n newDataSuperRawObject);\n return newDataRawObject;\n }",
"private History convertDTOToEntity(HistoryDTO historyDto) {\n\t\tHistory history = modelMapper.map(historyDto, History.class);\n\t\treturn history;\n\t}",
"private static Object toJavaObject(Value value) throws RepositoryException {\n switch (value.getType()) {\n case PropertyType.DECIMAL:\n return value.getDecimal();\n case PropertyType.BINARY:\n return new LazyInputStream(value);\n case PropertyType.BOOLEAN:\n return value.getBoolean();\n case PropertyType.DATE:\n return value.getDate();\n case PropertyType.DOUBLE:\n return value.getDouble();\n case PropertyType.LONG:\n return value.getLong();\n case PropertyType.NAME: // fall through\n case PropertyType.PATH: // fall through\n case PropertyType.REFERENCE: // fall through\n case PropertyType.STRING: // fall through\n case PropertyType.UNDEFINED: // not actually expected\n default: // not actually expected\n return value.getString();\n }\n }",
"private HashMap<String, Integer> createFieldMap(ObjectDefinition context) {\r\n\r\n\t\tHashMap<String, Integer> map = new HashMap<String, Integer>();\r\n\r\n\t\tArrayList<Field> fields = context.getFields();\r\n\r\n\t\tfor (int i = 0; i < fields.size(); i++) {\r\n\t\t\tmap.put(fields.get(i).getName(), i);\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"public java.util.Map<java.lang.String, java.lang.String> getFieldMap() {\n return internalGetField().getMap();\n }",
"public Object convert(Object fromValue) {\n RawObject oldDataRawObject = (RawObject) fromValue;\n Object[] oldElements = oldDataRawObject.getElements();\n Map<String, Object> integerClassValues = \n new HashMap<String, Object>();\n integerClassValues.put(\"data\", oldElements[0]);\n RawObject integerClassObject = \n new RawObject(integerClassType, integerClassValues, null);\n RawObject[] newElements = new RawObject[1];\n newElements[0] = integerClassObject;\n RawObject newDataRawObject = \n new RawObject(newDataType, newElements);\n return newDataRawObject;\n }",
"private DataMapping getDataMapping(String pFieldName, ObjectSet<?> pObjectSet) {\r\n\t\t\r\n\t\tif (pFieldName != null && pFieldName.trim() != \"\") {\r\n\t\t\tif (pObjectSet != null) {\r\n\t\t\t\tif (pObjectSet.getDataMappings() != null && pObjectSet.getDataMappings().size() > 0) {\r\n\t\t\t\t\tfor(DataMapping mapping : pObjectSet.getDataMappings()) {\r\n\t\t\t\t\t\tif (mapping.DataBaseFieldName.trim().toLowerCase().equals(pFieldName.trim().toLowerCase())) {\r\n\t\t\t\t\t\t\treturn mapping;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public static HashMap<String, String> getHashmapFromDTO(Object dto) {\n HashMap<String, String> mappings = new HashMap<String, String>();\n try {\n for (PropertyDescriptor propertyDescriptor :\n Introspector.getBeanInfo(dto.getClass()).getPropertyDescriptors()) {\n if (isGetter(propertyDescriptor)) {\n mappings.put(propertyDescriptor.getName(), getStringValueFromGetter(dto, propertyDescriptor));\n }\n }\n } catch (IntrospectionException e) {\n e.printStackTrace();\n }\n return mappings;\n\n }",
"Object getObjectField();",
"public java.util.Map<java.lang.String, java.lang.String> getFieldMap() {\n return internalGetField().getMap();\n }",
"public String[] getFieldNameMapping() {\r\n return null;\r\n }",
"public Map<String, String> toMap() {\n Map<String, String> map = new HashMap<String, String>();\n map.put(\"id\", id + \"\");\n map.put(\"name\", name);\n map.put(\"value\", value);\n map.put(\"type\", type);\n map.put(\"description\", description);\n\n return map;\n\n }",
"public static Object convertToDataTransferObject(Object dto, String prefix, Map<String, Object> record,\n Class<?> dtoType, String[] filter) {\n if (null != record && null != dtoType) {\n if (null == dto) {\n dto = newDataTransferObjectInstance(dtoType);\n }\n List<Field> dtoFields = ObjectUtils.getFields(dtoType, true);\n for (Field dtoField : dtoFields) {\n try {\n Object value = null;\n if (hasData(record, prefix, getEntityMappingFieldPath(dtoField))) {\n value = convertToFieldOfDataTransferObject(dto, prefix, record, dtoField, filter);\n }\n ObjectUtils.setValueForField(dto, dtoField.getName(), value, true);\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot set value for field \"\n + dtoType.getSimpleName() + \".\" + dtoField.getName(), e);\n }\n }\n }\n return dto;\n }",
"@Override\n public Preparation mapToEntity(PreparationDto dto) {\n return null;\n }",
"private ContentValues createContentValues(Object o) {\n\t\ttry {\n\t\t\tContentValues values = new ContentValues();\n\t\t\tfor (Field f : getPersistenceFields(o.getClass())) {\n\t\t\t\tif ((f.isAnnotationPresent(PrimaryKey.class))\n\t\t\t\t\t\t&& (((PrimaryKey) f.getAnnotation(PrimaryKey.class))\n\t\t\t\t\t\t\t\t.autoIncrement()))\n\t\t\t\t\tcontinue;\n\t\t\t\tClass type = f.getType();\n\t\t\t\tString name = f.getName();\n\n\t\t\t\tif (type == Integer.TYPE) {\n\t\t\t\t\tvalues.put(name, Integer.valueOf(f.getInt(o)));\n\t\t\t\t} else if (type == Long.TYPE) {\n\t\t\t\t\tvalues.put(name, Long.valueOf(f.getLong(o)));\n\t\t\t\t} else if (type == Float.TYPE) {\n\t\t\t\t\tvalues.put(name, Float.valueOf(f.getFloat(o)));\n\t\t\t\t} else if (type == Double.TYPE) {\n\t\t\t\t\tvalues.put(name, Double.valueOf(f.getDouble(o)));\n\t\t\t\t} else if (type == String.class) {\n\t\t\t\t\tvalues.put(name, (String) f.get(o));\n\t\t\t\t} else if (type == Byte.class) {\n\t\t\t\t\tvalues.put(name, (byte[]) f.get(o));\n\t\t\t\t} else if (type == Boolean.TYPE) {\n\t\t\t\t\tvalues.put(name, Boolean.valueOf(f.getBoolean(o)));\n\t\t\t\t} else if (type == Short.TYPE) {\n\t\t\t\t\tvalues.put(name, Short.valueOf(f.getShort(o)));\n\t\t\t\t} else if (type == Date.class) {\n\t\t\t\t\tDate d = (Date) f.get(o);\n\t\t\t\t\tvalues.put(name, d != null ? Long.valueOf(d.getTime())\n\t\t\t\t\t\t\t: null);\n\t\t\t\t} else if (type.isEnum()) {\n\t\t\t\t\tEnum e = (Enum) f.get(o);\n\t\t\t\t\tvalues.put(name, e != null ? e.name() : null);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn values;\n\t\t} catch (Exception e) {\n\t\t}\n\t\treturn null;\n\t}",
"Map getPersistentAspectData();",
"protected void prepareEntityToNodeMap()\r\n\t{\n\t}",
"FROM toObject(CONTEXT context, final TO value);",
"Map<String, FieldInfo> getFieldMap() {\n return fieldMap;\n }",
"public static UserDTO mapEntityIntoDTO(UserEntity entity) {\n \tif (entity == null) {\n \t\treturn null;\n \t}\n \n \tUserDTO dto = new UserDTO();\n \t\n \tdto.setLogin(entity.getLogin());\n\n \tdto.setPassword(entity.getPassword());\n \t// mapValue(entity, dto, \"password\");\n\n \t//dto.setQuota(entity.getQuota());\n \tModelDTOMapper.readEntityFieldToDto(dto, \"quota\", entity, \"quota\", new ConvertIntToLong());\n \t\n \t// dto.setEnabled(entity.getEnabled());\n \tModelDTOMapper.readEntityFieldToDto(dto, entity, \"enabled\");\n return dto;\n }",
"public PropertyDefDto getDto();",
"private RecipeEntity mapToRecipeEntity(Recipe recipe) {\n\t\tRecipeEntity rEntity = new RecipeEntity();\n\t\t//Map primitive fields\n\t\trEntity.setId(recipe.getId());\n\t\trEntity.setName(recipe.getName());\n\t\trEntity.setType(recipe.getType());\n\t\trEntity.setServingCapacity(recipe.getServingCapacity());\n\t\t\n\t\t//Save current date time into recipe instance, if not given\n\t\tif(recipe.getCreationDateTime() == null) {\n\t\t\tOptional<Date> currentDateTime = Util.getCurrentDateTime();\n\t\t\tif(currentDateTime.isPresent())\n\t\t\t\tlog.debug(\"Current DateTime to be set in recipe entity: \"+currentDateTime.toString());\n\t\t\telse\n\t\t\t\tlog.warn(\"Setting null to current date time field in recipe entity\");\n\t\t\trEntity.setCreationDateTime(currentDateTime.get());\n\t\t} else {\n\t\t\tlog.debug(\"Retaining given creation date time value into recipe entity\");\n\t\t\trEntity.setCreationDateTime(recipe.getCreationDateTime());\n\t\t}\n\t\t\n\t\t//Convert ingredients list into String and set to recipe entity\n\t\tlog.debug(\"Number of ingredients to convert to string: \"+recipe.getIngredientsList().size());\n\t\tString ingredients = Util.convertToJSONString(recipe.getIngredientsList());\n\t\tlog.debug(\"Ingredients String: \"+ingredients);\n\t\trEntity.setIngredients(ingredients);\n\t\t\n\t\trEntity.setInstructions(recipe.getInstructions());\n\t\t\n\t\treturn rEntity;\n\t}",
"private Object convertFieldToDB(Object value, boolean fullsave) {\n if(value == null)\n return null;\n \n if(value instanceof Enum)\n return ((Enum)value).name();\n\n if(value instanceof Base)\n return convertBaseToDB((Base) value, fullsave);\n \n if (value instanceof Base[]) {\n BasicDBList list = new BasicDBList();\n for(Base b : (Base[])value)\n list.add(convertBaseToDB((Base) b, fullsave));\n \n return list;\n }\n \n if (value instanceof Collection) {\n Collection l = (Collection)value; \n\n if(l.size() > 0 && Base.class.isAssignableFrom(l.iterator().next().getClass())) { \n BasicDBList list = new BasicDBList();\n for(Base b : (Collection<Base>)l)\n list.add(convertBaseToDB(b, fullsave));\n \n return list;\n }\n }\n \n if (value instanceof Map) {\n Map m = (Map)value; \n\n if(m.size() > 0 && m.keySet().iterator().next() instanceof String &&\n Base.class.isAssignableFrom(m.values().iterator().next().getClass())) {\n BasicDBObject map = new BasicDBObject();\n for(Map.Entry<String, Base> e : ((Map<String, Base>)m).entrySet())\n map.put(e.getKey(), convertBaseToDB(e.getValue(), fullsave));\n \n return map;\n }\n }\n \n return value;\n }",
"public abstract Map<String, Object> fetchModelMap() throws ModelException;",
"public static Map<String, Object> mapData(Object data) {\n\t\tMap<String, Object> modelMap = new HashMap<String,Object>(2);\n\t\tmodelMap.put(\"data\", data);\n\t\tmodelMap.put(\"success\", true);\n\t\t\n\t\treturn modelMap;\n\t}",
"private UserDto mapFromUserToDto(User user) {\n UserDto userDto = new UserDto();\n userDto.setId(user.getId());\n userDto.setUsername(user.getUserName());\n userDto.setName(String.format(\"%s %s\", user.getFirstName(), user.getLastName()));\n userDto.setEmail(user.getEmail());\n userDto.setAvatar(user.getAvatar());\n return userDto;\n }",
"public static Object getFieldValueEx(Object object, String fieldName)\r\n\t\t\tthrows Exception {\r\n\t\tHashtable hashtable = ReflectUtil.getAllFieldsValuesEx(object);\r\n\t\treturn hashtable.get(fieldName);\r\n\t}",
"public T caseFieldPath(FieldPath object)\n {\n return null;\n }",
"Comment dtoToEntity(CommentDto commentDto);",
"@Mappings({\n\t\t@Mapping(target=\"id\", source=\"entity.id\"),\n\t\t@Mapping(target=\"userId\", source=\"entity.userId\"),\n\t\t@Mapping(target=\"task_description\", source=\"entity.description\"),\n\t\t@Mapping(target=\"createdDate\", source=\"entity.createdDate\"),\n\t\t@Mapping(target=\"modifiedDate\", source=\"entity.modifiedDate\")\n\t\t//@Mapping(target=\"isDeleted\", source=\"entity.isDeleted\")\n\t\t})\n\n\t\tTaskDto taskToTaskDTO(Task entity);",
"Object toDomain(Object entity, Settings settings);",
"@Override\n\tpublic void convertitMap(Map<String, Object> map) {\n\t\t\n\t}",
"public static <T extends DBRecord<T>> Map<String,String> parseXML_FieldValueMap(Element node, DBFactory<T> tableFact)\n throws DBException\n {\n\n /* validate node */\n if (node == null) {\n throw new DBException(\"Node tag element is null\");\n }\n\n /* value map container */\n Map<String,String> valueMap = new OrderedMap<String,String>();\n\n /* parse fields */\n NodeList fieldList = XMLTools.getChildElements(node,TAG_Field);\n for (int f = 0; f < fieldList.getLength(); f++) {\n Element field = (Element)fieldList.item(f);\n String name = XMLTools.getAttribute(field,ATTR_name,null,false);\n //Print.logInfo(\"Parsing field: \" + name);\n if (StringTools.isBlank(name)) {\n // blank field name\n Print.logWarn(\"Specified field name is null/blank\");\n } else\n if (!tableFact.hasField(name)) {\n // invalid field name\n Print.logWarn(\"Field does not exist in DBFactory: \" + name);\n } else {\n String type = XMLTools.getAttribute(field, ATTR_type, null, false);\n String priKey = XMLTools.getAttribute(field, ATTR_primaryKey, null, false);\n String altKeys = XMLTools.getAttribute(field, ATTR_alternateKeys, null, false);\n String value = XMLTools.getNodeText( field, \"\\\\n\", false, \"\");\n valueMap.put(name,value);\n }\n }\n \n /* value map */\n return valueMap;\n }",
"public CoordinadorEntity toEntity(){\n \n CoordinadorEntity entity = new CoordinadorEntity(); \n entity.setId_coordinador(this.id_coodinador);\n entity.setNombres(this.nombres);\n entity.setApellidos(this.apellidos);\n entity.setGenero(this.genero);\n entity.setEmail(this.email);\n entity.setTipoDocumento(tipo_documento_id);\n entity.setNro_documento(this.nro_documento);\n \n return entity;\n }",
"public Map<Field, String> getAuditableFields();",
"List<E> mapToEntity(List<D> dto);",
"public static <S extends BaseBean, D extends BaseEntity> D parserBeanToEntity(S sourceObject, Class<D> destinationType) {\n\t\treturn dozerMapper.map(sourceObject, destinationType);\n\t}",
"public Map<String, AllowableFieldEntry> getFieldMap() {\n return fieldMap;\n }",
"private Map<String, String> getValueMap(JsonNode node) {\n if (!isEtcdDirectory(node)) {\n try {\n String json = node.get(\"value\").asText();\n ObjectMapper mapper = new ObjectMapper();\n Map<String, String> map =\n mapper.readValue(json, new TypeReference<Map<String, String>>() {});\n return map;\n } catch (Exception e) {\n m_LogService.log(LogService.LOG_ERROR, e.getMessage(), e);\n }\n }\n return null;\n }",
"public Map<String, Object> allFields() {\n Map<String, Object> map = new HashMap<>();\n properties.forEach((key, value) -> map.put(key, value.value()));\n return map;\n }",
"public static List<String> getEntityMappingFieldPathsPrimary(Class<?> dtoType, boolean includeCollection) {\n // Get primary key of Entity mapping with DTO\n List<String> entityKeyFields = EntityUtils.getPrimaryKey(getEntityType(dtoType));\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n // For each field of DTO, if field is another DTO then get also.\n for (Field field : fields) {\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType) && (includeCollection || !ObjectUtils.fieldIsCollection(field))) {\n String fieldPath = getEntityMappingFieldPath(field);\n fieldPath = null != fieldPath ? fieldPath + Constants.DOT : Constants.EMPTY_STRING;\n List<String> innerKeyFieldPaths = getEntityMappingFieldPathsPrimary(fieldType, includeCollection)\n .stream().map(fieldPath::concat).collect(Collectors.toList());\n entityKeyFields.addAll(innerKeyFieldPaths);\n }\n }\n return entityKeyFields;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<FileHelper> getValue(Object obj, String strFieldName, String strCcId, HashMap<String, FileHelper> valueFields) {\n\t\tList<FileHelper> values;\n\t\ttry {\n\n\t\t\tMethod mt = obj.getClass().getMethod(\"get\" + strFieldName);\n\t\t\tvalues = (List<FileHelper>) mt.invoke(obj);\n\n\t\t\tif (values == null)\n\t\t\t\treturn null;\n\n\t\t\tfor (FileHelper fh : values) {\n\t\t\t\tvalueFields.put(strCcId + \"|\" + fh.getId(), fh);\n\t\t\t}\n\n\t\t\treturn values;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"Object getValueFrom();",
"public Object getFromData() throws AeBusinessProcessException\r\n {\r\n IAePropertyAlias propAlias = getPropertyAlias();\r\n return AePropertyAliasBasedSelector.selectValue(propAlias, getDataForQueryContext(propAlias), getCopyOperation().getContext());\r\n }",
"@Mappings({@Mapping(source = \"province\",target = \"province2\"),@Mapping(source = \"valid\",target = \"valid2\")})\n OaCompanyDto convert(OaCompany OaCompany);",
"@SuppressWarnings(\"unchecked\")\n @Override\n protected String convertObjectToJson(Object object) {\n try {\n Set<EventDataValue> eventDataValues =\n object == null ? Collections.emptySet() : (Set<EventDataValue>) object;\n\n Map<String, EventDataValue> tempMap = new HashMap<>();\n\n for (EventDataValue eventDataValue : eventDataValues) {\n tempMap.put(eventDataValue.getDataElement(), eventDataValue);\n }\n\n return writer.writeValueAsString(tempMap);\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n }",
"@Override\n public SystemResource pojoToEntity(SystemResourcePojo pojo){\n SystemResource entity = new SystemResource();\n\n entity.setName(pojo.getName());\n entity.setPath(pojo.getPath());\n entity.setType(pojo.getType());\n entity.setOriginalFileName(pojo.getOriginalFileName());\n entity.setUrl(pojo.getUrl());\n entity.setPublicKey(pojo.getPublicKey());\n return entity;\n }",
"public static String getEntityMappingFieldPath(Field field) {\n List<String> fieldPaths = getEntityMappingFieldPaths(field, false, true);\n if (fieldPaths.size() > 0) {\n return fieldPaths.get(0);\n }\n return null;\n }",
"public static List<String> getEntityMappingFieldPaths(Class<?> dtoType) {\n return getEntityMappingFieldPaths(dtoType, false, true);\n }",
"private VariableMap getParamMappingAsVariableMap() {\n paramValueEncodings.put(fileNameToIndex.keySet().toString(), \" FileNames\");\n paramValueEncodings.put(functionNameToIndex.keySet().toString(), \" FunctionNames\");\n paramValueEncodings.put(typeToIndex.keySet().toString(), \" Types\");\n\n VariableMap preInversedMap = new VariableMap(paramValueEncodings);\n ImmutableMap<String, String> inversedMap = preInversedMap.getNewNameToOriginalNameMap();\n return new VariableMap(inversedMap);\n }",
"@Mapper(componentModel = \"spring\")\npublic interface DataDictItemMapping {\n DataDictItemVo asDataDictItemVo(DataDictItem entity);\n\n DataDictItemOrdinaryVo asOrdinary(DataDictItem entity);\n\n @Mapping(target = \"priority\", ignore = true)\n @Mapping(target = \"lastUpdater\", ignore = true)\n @Mapping(target = \"lastUpdatedAt\", ignore = true)\n @Mapping(target = \"id\", ignore = true)\n @Mapping(target = \"dictId\", ignore = true)\n @Mapping(target = \"creator\", ignore = true)\n @Mapping(target = \"createdAt\", ignore = true)\n DataDictItem asDataDictItem(DataDictItemInsertRo ro);\n\n DataDictItemComplexVo asComplex(DataDictItem entity);\n\n DataDictItem asDataDictItem(DataDictItemUpdateRo ro);\n}",
"Map<String, Object> getValues(boolean deep);",
"public UserFile mapUserFileEntityToUserFile(UserFileEntity userFileEntity) {\n\t\tif(userFileEntity == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\t//--- Generic mapping \n\t\tUserFile userFile = map(userFileEntity, UserFile.class);\n\n\t\treturn userFile;\n\t}",
"private PropertyValues handleMapType(String path,MutablePropertyValues values,Object data,Method method,int level){\n\t\tClass<?> eleType=GenericCollectionTypeResolver.getMapValueReturnType(method,level);\t\n\t\t\n\t\tif(null==eleType){\n\t\t\treturn values;\n\t\t}\n\t\tif(data instanceof Map<?, ?>){\n\t\t\tMap<?,?> dataMap=(Map<?, ?>) data;\n\t\t\tfor(Map.Entry<?, ?> entry:dataMap.entrySet()){\n\t\t\t\tString key=entry.getKey().toString();\n\t\t\t\tObject value=entry.getValue();\n\t\t\t\tString subPath=path+PropertyAccessor.PROPERTY_KEY_PREFIX+key+PropertyAccessor.PROPERTY_KEY_SUFFIX; \n\t\t\t\tvalues.addPropertyValues(resolve(subPath,value,eleType,method,level+1));\n\t\t\t}\n\t\t}\n\t\treturn values;\n\t}",
"public static FileData createEntity() {\n FileData fileData = Reflections.createObj(FileData.class, Lists.newArrayList(\n\t\t FileData.F_NAME\n\t\t,FileData.F_PATH\n\t\t,FileData.F_SIZE\n\t\t,FileData.F_TYPE\n\t\t,FileData.F_DESCRIPTION\n ),\n\n\t\t DEFAULT_NAME\n\n\t\t,DEFAULT_PATH\n\n\t\t,DEFAULT_SIZE\n\n\t\t,DEFAULT_TYPE\n\n\n\n\n\n\n\t\t,DEFAULT_DESCRIPTION\n\n\t);\n return fileData;\n }",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tpublic static <T> Path<Object> getPathFromField(Root<T> root, String field) {\n\t\tString[] fieldname = field.split(\"/\");\n\t\tPath<Object> path = null;\n\t\tfor (int idx = 0; idx < fieldname.length; idx++) {\n\n\t\t\tString attributeName = fieldname[idx];\n\n\t\t\tif (path != null) {\n\t\t\t\tpath = path.get(attributeName);\n\t\t\t} else {\n\t\t\t\tpath = root.get(attributeName);\n\t\t\t}\n\n\t\t\tif ((fieldname.length - 1) > idx) {\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Set.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tJoin<T, ?> join = opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tpath = join.get(fieldname[++idx]);\n\n\t\t\t\t}\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Map.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tMapJoin join = (MapJoin) opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tString f = fieldname[++idx];\n\t\t\t\t\tif (f.equals(\"key\"))\n\t\t\t\t\t\tpath = join.key();\n\t\t\t\t\telse if (f.equals(\"value\"))\n\t\t\t\t\t\tpath = join.value();\n\t\t\t\t\telse\n\t\t\t\t\t\tthrow new FormatExceptionException(\"Only key or value you can specify in a map filter, got: \" + f);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn path;\n\t}",
"@Override\r\n public void process() {\r\n if (isDirectEmbeddableCollection()) {\r\n ObjectArrayMapping mapping = new ObjectArrayMapping();\r\n \r\n // Add the mapping to the descriptor.\r\n setMapping(mapping);\r\n \r\n // Set the reference class name.\r\n mapping.setReferenceClassName(getReferenceClassName());\r\n \r\n // Set the attribute name.\r\n mapping.setAttributeName(getAttributeName());\r\n \r\n // Will check for PROPERTY access\r\n setAccessorMethods(mapping);\r\n \r\n mapping.setStructureName(getDatabaseType());\r\n \r\n // Process the @Column or column element if there is one.\r\n // A number of methods depend on this field so it must be\r\n // initialized before any further processing can take place.\r\n mapping.setField(new ObjectRelationalDatabaseField(getDatabaseField(getDescriptor().getPrimaryTable(), MetadataLogger.COLUMN)));\r\n } else {\r\n ArrayMapping mapping = new ArrayMapping();\r\n \r\n // Add the mapping to the descriptor.\r\n setMapping(mapping);\r\n \r\n // Set the attribute name.\r\n mapping.setAttributeName(getAttributeName());\r\n \r\n // Will check for PROPERTY access\r\n setAccessorMethods(mapping);\r\n \r\n mapping.setStructureName(getDatabaseType());\r\n \r\n // Process the @Column or column element if there is one.\r\n // A number of methods depend on this field so it must be\r\n // initialized before any further processing can take place.\r\n mapping.setField(new ObjectRelationalDatabaseField(getDatabaseField(getDescriptor().getPrimaryTable(), MetadataLogger.COLUMN)));\r\n }\r\n }",
"Object getConvertedValue() throws ConversionException;"
] | [
"0.6286842",
"0.6233347",
"0.5704199",
"0.5540258",
"0.55174106",
"0.55057985",
"0.5476403",
"0.54075253",
"0.5374365",
"0.5284424",
"0.5264419",
"0.5260977",
"0.52369446",
"0.51776236",
"0.5165385",
"0.5129904",
"0.51190895",
"0.50657386",
"0.5045376",
"0.5026623",
"0.5011946",
"0.5008525",
"0.5007922",
"0.49968624",
"0.4988272",
"0.49711913",
"0.4950367",
"0.49349666",
"0.49346742",
"0.4924201",
"0.49207768",
"0.490977",
"0.49060485",
"0.4891108",
"0.48858103",
"0.48819783",
"0.48816422",
"0.4864619",
"0.48623702",
"0.4852638",
"0.4842997",
"0.48314258",
"0.48275122",
"0.48236918",
"0.48201406",
"0.481567",
"0.4812529",
"0.47888175",
"0.47883204",
"0.47676018",
"0.47673875",
"0.47663623",
"0.47661993",
"0.47643968",
"0.47638083",
"0.4760309",
"0.47556245",
"0.4751908",
"0.47456574",
"0.4741817",
"0.47417685",
"0.47406876",
"0.47313616",
"0.47232395",
"0.47167873",
"0.4713701",
"0.4708358",
"0.46999335",
"0.46982932",
"0.46933314",
"0.4692534",
"0.4690968",
"0.46876225",
"0.46834716",
"0.46798608",
"0.4677842",
"0.4671506",
"0.46710178",
"0.46625808",
"0.46568426",
"0.46541423",
"0.4653399",
"0.4645605",
"0.46388066",
"0.46279502",
"0.46270508",
"0.46254644",
"0.4624481",
"0.46229175",
"0.46227524",
"0.4616387",
"0.46158996",
"0.46150014",
"0.46136606",
"0.46102706",
"0.46096414",
"0.46031722",
"0.45951492",
"0.45891342",
"0.45873976"
] | 0.65281993 | 0 |
Convert Map entity path and value to Data Transfer Object. | public static Object convertMapEntityPathAndValueToDTO(String prefix, Map<String, Object> mapData, Field field) {
if (null != mapData && null != field) {
String mappingField = getEntityMappingFieldPath(field);
if (!StringUtils.isEmpty(prefix)) {
prefix += Constants.DOT;
}
Class<?> fieldType = MappingUtils.getFieldType(field);
if (validate(fieldType)) {
if (!ObjectUtils.fieldIsCollection(field)) {
return convertMapEntityPathAndValueToDTO(prefix + mappingField, mapData, fieldType);
} else {
int length = countLengthOfArray(prefix + mappingField, mapData);
if (length > 0) {
try {
@SuppressWarnings("unchecked")
Collection<Object> collection = ObjectUtils.newInstanceCollection(field.getType());
for (int i = 0; i < length; i++) {
Object innerEntity = convertMapEntityPathAndValueToDTO(prefix + mappingField + "[" + i + "]", mapData, fieldType);
if (null != innerEntity) {
collection.add(innerEntity);
}
}
return collection;
} catch (NoSuchMethodException e) {
throw new ConstructorInvalidException("Cannot new collection instance for field " + field.getName(), e);
}
}
}
} else {
Class<?> fieldConverter = getFieldConverterType(field);
return convertField(fieldConverter, mapData.get(prefix + mappingField));
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Object convertMapEntityPathAndValueToDTO(String prefix, Map<String, Object> mapData, Class<?> dtoType) {\n if (null != mapData && null != dtoType) {\n validateThrow(dtoType, new ConfigurationInvalidException(dtoType.getName() + \": Data Transfer Object configuration is invalid\"));\n\n Object dto;\n try {\n dto = ObjectUtils.newInstance(dtoType);\n } catch (InvocationTargetException | NoSuchMethodException | InstantiationException | IllegalAccessException e) {\n throw new ConstructorInvalidException(\"Cannot found default constructor for \" + dtoType.getSimpleName(), e);\n }\n\n List<Field> fields = ObjectUtils.getFields(dtoType, true);\n for (Field field : fields) {\n try {\n Object fieldValue = convertMapEntityPathAndValueToDTO(prefix, mapData, field);\n ObjectUtils.setValueForField(dto, field.getName(), fieldValue);\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot set value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n }\n return dto;\n }\n return null;\n }",
"@Override\n\tpublic void convertitMap(Map<String, Object> map) {\n\t\t\n\t}",
"public static Map<String, Object> convertToEntityMappingFieldAndValue(Object dto) {\n Map<String, Object> mapData = new HashMap<>();\n if (null != dto) {\n List<Field> fields = ObjectUtils.getFields(dto.getClass(), true);\n for (Field field : fields) {\n mapData.putAll(convertToEntityMappingFieldAndValue(dto, field));\n }\n }\n return mapData;\n }",
"private Object decoding(BaseItem value, MapEntity map) {\n\t\tif (value instanceof JsonArray) {\n\t\t\treturn decodingJsonArray((JsonArray) value, map);\n\t\t}\n\t\tif (value instanceof XMLEntity) {\n\t\t\tCharacterBuffer buffer = new CharacterBuffer().with(value.toString());\n\t\t\treturn decodingXMLEntity(this.xmlTokener, buffer, map);\n\t\t}\n\t\tif (value instanceof ByteEntity) {\n\t\t\tByteEntity entity = (ByteEntity) value;\n\t\t\treturn byteTokener.decodeValue(entity, map);\n\t\t}\n\n\t\treturn decodingJsonObject((JsonObject) value, map);\n\t}",
"E mapToEntity(D dto);",
"public abstract T convertToEntity(D dto);",
"private static Object mapValueToJava(Object value) {\n if (value instanceof Map) {\n value = ((Map<?, ?>) value).toMap();\n } else if (value instanceof Sequence) {\n value = ((Sequence<?>) value).toMappedList();\n } else if (value instanceof net.ssehub.easy.instantiation.core.model.vilTypes.Set<?>) {\n value = ((net.ssehub.easy.instantiation.core.model.vilTypes.Set<?>) value).toMappedSet();\n }\n return value;\n }",
"ProcessOperation<Map<String, Object>> map();",
"public Object toPojo(Entity entity) {\n return ofy().load().fromEntity(entity);\n }",
"public Map<String, Object> uriToValueMap();",
"public ClientProperty mapToEntity(ClientPropertyDto dto)\r\n\t{\r\n\t\tClientProperty property = new ClientProperty();\r\n\t\tproperty.setId(dto.getId());\r\n\t\tproperty.setKey(dto.getKey());\r\n\t\tproperty.setValue(dto.getValue());\r\n\t\tproperty.setClient(clientMapper.mapToEntity(dto.getClient()));\r\n\r\n\t\tClientProperty persistentProperty = propertyRepo.findOne(property.getId());\r\n\t\tif (persistentProperty != null)\r\n\t\t{\r\n\t\t\treturn persistentProperty.bind(property);\r\n\t\t}\r\n\r\n\t\treturn property;\r\n\t}",
"public static Map<String, Object> convertToEntityMappingFieldAndValue(Object dto, Field field) {\n Map<String, Object> mapData = new HashMap<>();\n if (null != dto && null != field) {\n Object valueOfField;\n try {\n valueOfField = ObjectUtils.getValueOfField(dto, field.getName());\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot get value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n\n if (validate(MappingUtils.getFieldType(field))) {\n if (!ObjectUtils.fieldIsCollection(field)) {\n Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(valueOfField);\n for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {\n mapData.put(field.getName() + Constants.DOT + entry.getKey(), entry.getValue());\n }\n } else {\n Collection<?> collection = (Collection<?>) valueOfField;\n int index = 0;\n if (!CollectionUtils.isEmpty(collection)) {\n for (Object innerDTO : collection) {\n Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(innerDTO);\n for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {\n mapData.put(field.getName() + \"[\" + index + \"]\" + Constants.DOT + entry.getKey(), entry.getValue());\n }\n index++;\n }\n }\n }\n } else {\n Class<?> fieldConverter = getFieldConverterType(field);\n Object convertValue = convertField(fieldConverter, valueOfField, true);\n mapData.put(getEntityMappingFieldPath(field), convertValue);\n }\n }\n return mapData;\n }",
"E toEntity(V dto);",
"private PropertyValues handleMapType(String path,MutablePropertyValues values,Object data,Method method,int level){\n\t\tClass<?> eleType=GenericCollectionTypeResolver.getMapValueReturnType(method,level);\t\n\t\t\n\t\tif(null==eleType){\n\t\t\treturn values;\n\t\t}\n\t\tif(data instanceof Map<?, ?>){\n\t\t\tMap<?,?> dataMap=(Map<?, ?>) data;\n\t\t\tfor(Map.Entry<?, ?> entry:dataMap.entrySet()){\n\t\t\t\tString key=entry.getKey().toString();\n\t\t\t\tObject value=entry.getValue();\n\t\t\t\tString subPath=path+PropertyAccessor.PROPERTY_KEY_PREFIX+key+PropertyAccessor.PROPERTY_KEY_SUFFIX; \n\t\t\t\tvalues.addPropertyValues(resolve(subPath,value,eleType,method,level+1));\n\t\t\t}\n\t\t}\n\t\treturn values;\n\t}",
"public abstract D convertToDto(T entity);",
"public abstract T toObject(String uuid, Map<String, Object> data);",
"private void convert(Map map) {\n if (map == null)\n return;\n\n for (Object key : valueTypes.keySet()) {\n MessagePackObject mpo = (MessagePackObject) map.get(key);\n if (mpo != null)\n map.put(key, mpo.convert(Templates.tNullable(\n TemplateRegistry.lookup(valueTypes.get(key)))));\n }\n\n }",
"public Map<ProvisioningEntity, Object> getTargetEntityToTargetNativeEntity() {\n return targetEntityToTargetNativeEntity;\n }",
"protected void prepareEntityToNodeMap()\r\n\t{\n\t}",
"public MapEntity getEntity() {\n\t\treturn _entity;\n\t}",
"@Override\n\tpublic void setValue(String path, Object value) {\n\t\tif (path.indexOf('.') >= 0 || path.indexOf('(') >= 0 ) {\n\t\t\tFlexDataAccess access = new FlexDataAccess(this, path, true);\n\t\t\taccess.setToPath(value);\n\t\t} else {\n\t\t\tsetValueMap(path, value);\n\t\t}\n\t}",
"public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}",
"V toDto(E entity);",
"D mapToDTO(E entity);",
"@Mapper(componentModel = \"spring\")\npublic interface DataDictItemMapping {\n DataDictItemVo asDataDictItemVo(DataDictItem entity);\n\n DataDictItemOrdinaryVo asOrdinary(DataDictItem entity);\n\n @Mapping(target = \"priority\", ignore = true)\n @Mapping(target = \"lastUpdater\", ignore = true)\n @Mapping(target = \"lastUpdatedAt\", ignore = true)\n @Mapping(target = \"id\", ignore = true)\n @Mapping(target = \"dictId\", ignore = true)\n @Mapping(target = \"creator\", ignore = true)\n @Mapping(target = \"createdAt\", ignore = true)\n DataDictItem asDataDictItem(DataDictItemInsertRo ro);\n\n DataDictItemComplexVo asComplex(DataDictItem entity);\n\n DataDictItem asDataDictItem(DataDictItemUpdateRo ro);\n}",
"public abstract Map<String, Object> toMap(T object);",
"@Override\n public Preparation mapToEntity(PreparationDto dto) {\n return null;\n }",
"@SuppressWarnings(\"unchecked\")\n private Object convertToDataTransferObject(Object data, Class<?> dtoType) {\n if (Map.class.isAssignableFrom(data.getClass())) {\n return ObjectUtils.convertMapToObject((Map<String, ?>) data, dtoType);\n }\n throw new ParamInvalidException(\"Cannot parse '\" + data.getClass().getName() + \"' to '\" + dtoType.getName() + \"'\");\n }",
"public Content mapContentEntityToContent(ContentEntity contentEntity) {\n\t\tif(contentEntity == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\t//--- Generic mapping \n\t\tContent content = map(contentEntity, Content.class);\n\n\t\treturn content;\n\t}",
"public abstract Map<String, Object> fetchModelMap() throws ModelException;",
"@Override\n public SystemResourcePojo entityToPojo(SystemResource entity) {\n\n SystemResourcePojo pojo = new SystemResourcePojo();\n\n pojo.setPublicKey(entity.getPublicKey());\n pojo.setName(entity.getName());\n //pojo.setPath(entity.getPath());\n pojo.setUrl(entity.getUrl());\n pojo.setType(entity.getType());\n pojo.setOriginalFileName(entity.getOriginalFileName());\n return pojo;\n }",
"private static Object toJavaObject(Value value) throws RepositoryException {\n switch (value.getType()) {\n case PropertyType.DECIMAL:\n return value.getDecimal();\n case PropertyType.BINARY:\n return new LazyInputStream(value);\n case PropertyType.BOOLEAN:\n return value.getBoolean();\n case PropertyType.DATE:\n return value.getDate();\n case PropertyType.DOUBLE:\n return value.getDouble();\n case PropertyType.LONG:\n return value.getLong();\n case PropertyType.NAME: // fall through\n case PropertyType.PATH: // fall through\n case PropertyType.REFERENCE: // fall through\n case PropertyType.STRING: // fall through\n case PropertyType.UNDEFINED: // not actually expected\n default: // not actually expected\n return value.getString();\n }\n }",
"Comment dtoToEntity(CommentDto commentDto);",
"EntityData<?> getEntityData();",
"@Override\n\tpublic String add(Map<String, Object> entityMap) throws DataAccessException {\n\t\treturn null;\n\t}",
"@Mapper(componentModel = \"spring\", uses = {UsuarioMapper.class, FileMapper.class})\npublic interface RateMapper extends EntityMapper<RateDTO, Rate> {\n\n @Mapping(source = \"usuario.id\", target = \"usuarioId\")\n @Mapping(source = \"file.id\", target = \"fileId\")\n RateDTO toDto(Rate rate); \n\n @Mapping(source = \"usuarioId\", target = \"usuario\")\n @Mapping(source = \"fileId\", target = \"file\")\n Rate toEntity(RateDTO rateDTO);\n\n default Rate fromId(Long id) {\n if (id == null) {\n return null;\n }\n Rate rate = new Rate();\n rate.setId(id);\n return rate;\n }\n}",
"private History convertDTOToEntity(HistoryDTO historyDto) {\n\t\tHistory history = modelMapper.map(historyDto, History.class);\n\t\treturn history;\n\t}",
"protected <T> T convertForEntity(Object value, Class<T> type) {\r\n return typeConversionManager.convert(value, type);\r\n }",
"@Override\n public Decoder<Object> getMapValueDecoder() {\n return _mapValueDecoder;\n }",
"@Mappings({\n\n @Mapping(target = \"passengerEntity\", source = \"ticketDto.passengerDto\"),\n @Mapping(target = \"ticketScheduleSectionEntityList\", source = \"ticketDto.ticketScheduleSectionDtoList\")\n })\n TicketEntity toEntity(TicketDto ticketDto);",
"@Mappings({\n\t\t@Mapping(target=\"id\", source=\"entity.id\"),\n\t\t@Mapping(target=\"userId\", source=\"entity.userId\"),\n\t\t@Mapping(target=\"task_description\", source=\"entity.description\"),\n\t\t@Mapping(target=\"createdDate\", source=\"entity.createdDate\"),\n\t\t@Mapping(target=\"modifiedDate\", source=\"entity.modifiedDate\")\n\t\t//@Mapping(target=\"isDeleted\", source=\"entity.isDeleted\")\n\t\t})\n\n\t\tTaskDto taskToTaskDTO(Task entity);",
"@Test\n public void testMappedValues() throws JSONException {\n JSONObject jo = new JSONObject(\"{\\\"valueData\\\":{\\\"data\\\":\\\"Value Name\\\"}}\");\n JsonableTestClassWithMapping jtc = Jsonable.loadFromJson(jo, JsonableTestClassWithMapping.class);\n assertEquals(\"Value Name\", jtc.valueData.data);\n jo = new JSONObject(\"{\\\"value\\\":\\\"Value Name\\\"}\");\n jtc = Jsonable.loadFromJson(jo, JsonableTestClassWithMapping.class);\n assertEquals(\"Value Name\", jtc.valueData.data);\n }",
"@Override\n\tpublic String update(Map<String, Object> entityMap)\n\t\t\tthrows DataAccessException {\n\t\treturn null;\n\t}",
"public abstract Map<String, Serializable> toMap();",
"protected abstract T parseMap(Map<String, Object> values);",
"List<E> mapToEntity(List<D> dto);",
"public Map toMap(Map<String, Object> map) {\n return super.toMap(map);\n }",
"private static void convertPayload(Map<String, String> source, Map<String, Object> target) {\n for (Entry<String, String> ent : source.entrySet()) {\n try {\n target.put(ent.getKey(), coder.decode(ent.getValue(), Object.class));\n\n } catch (CoderException e) {\n logger.warn(\"cannot decode JSON value {}: {}\", ent.getKey(), ent.getValue(), e);\n }\n }\n }",
"public DocumentModel toFields(DocumentModel inDoc,\n HashMap<String, String> inMapping, boolean inSave,\n CoreSession inSession) {\n\n // Parse if needed\n run();\n\n HashMap<String, String> values = toHashMap();\n for (String inXPath : inMapping.keySet()) {\n String value = values.get(inMapping.get(inXPath));\n inDoc.setPropertyValue(inXPath, value);\n }\n\n if (inSave) {\n inDoc = inSession.saveDocument(inDoc);\n }\n\n return inDoc;\n }",
"Map getPersistentAspectData();",
"private List<Entity> processEntities(List<Mapping> mappings, Map record) throws Exception{\n\n\t\tList<Entity> builtEnts = new ArrayList<Entity>();\n\t\t\n\t\tList<Entity> entities = buildEntities();\n\t\t\n\t\tboolean isOmitted = isOmitted(record);\n\t\t\n\t\t/*\n\t\tfor(String omkeyfull: OMISSIONS_MAP.keySet()) {\n\t\t\t\n\t\t\tString[] omkeys = omkeyfull.split(\":\");\n\t\t\t\n\t\t\tisOmitted = iterateOmkeys(Arrays.asList(omkeys), record);\n\t\t\t\n\t\t}\n*/\t\t\n\t\t\n\t\tif(!isOmitted){\n\t\t\t\n\t\t\tfor(Mapping mapping: mappings){\n\t\t\t\tList<Object> relationalValue = new ArrayList<Object>();\n\n\t\t\t\tif(!IS_DIR) {\n\t\t\t\t\t\n\t\t\t\t\tString[] array = new String[mapping.getKey().split(\":\").length - 1];\n\t\t\t\t\tarray[0] = mapping.getKey().split(\":\")[0] + \":\" + RELATIONAL_KEY;\n\t\t\t\t\trelationalValue = findValueByKey(record,array);\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tString[] array = new String[mapping.getKey().split(\":\").length - 1];\n\t\t\t\t\tarray[0] = mapping.getKey().split(\":\")[0] + \":\" + RELATIONAL_KEY;\n\t\t\t\t\trelationalValue = findValueByKey(record,array);\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tDataType dt = DataType.initDataType(StringUtils.capitalize(mapping.getDataType()));\n\t\t\t\t\n\t\t\t\tif(!mapping.getDataType().equalsIgnoreCase(\"OMIT\")){\n\t\t\t\t\tList<Object> values = new ArrayList<Object>();\n\t\t\t\t\t\n\t\t\t\t\tif(!IS_DIR) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tString[] array = new String[mapping.getKey().split(\":\").length - 1];\n\t\t\t\t\t\tarray[0] = mapping.getKey();\n\t\t\t\t\t\tvalues = findValueByKey2(record,new ArrayList(Arrays.asList(array)));\n\t\t\t\t\t\t//values = findValueByKey2(record, new ArrayList(Arrays.asList(mapping.getKey().split(\":\"))));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tString[] array = new String[mapping.getKey().split(\":\").length - 1];\n\t\t\t\t\t\tarray[0] = mapping.getKey();\n\t\t\t\t\t\tvalues = findValueByKey2(record,new ArrayList(Arrays.asList(array)));\n\t\t\t\t\t}\n\t\t\t\t\t\n\n\t\t\t\t\tMap<String,String> options = mapping.buildOptions(mapping);\n\t\t\t\t\t\n\t\t\t\t\tif(!options.isEmpty()) {\n\t\t\t\t\t\tif(options.containsKey(\"TYPE\")) {\n\t\t\t\t\t\t\tString type = options.get(\"TYPE\");\n\t\t\t\t\t\t\tif(type.equalsIgnoreCase(\"datediffin\")) {\n\n\t\t\t\t\t\t\t\tString dateDiffFrom = options.containsKey(\"DIFFFROM\") ? options.get(\"DIFFFROM\").replaceAll(\"-\",\":\"): null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString mask = options.containsKey(\"MASK\") ? options.get(\"MASK\"): null;\n\n\t\t\t\t\t\t\t\tString diffIn = options.containsKey(\"DIFFIN\") ? options.get(\"DIFFIN\"): null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLocalDate startDateInclusive = null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLocalDate endDateExclusive = null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(dateDiffFrom.equalsIgnoreCase(\"sysdate\")) {\n\t\t\t\t\t\t\t\t\tstartDateInclusive = LocalDate.now();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tObject fromO = \n\t\t\t\t\t\t\t\t\t\t\tfindValueByKey(new LinkedHashMap(record), dateDiffFrom.split(\":\")).get(0);\n\n\t\t\t\t\t\t\t\t\tif(mask != null) {\n\t\t\t\t\t\t\t\t\t\tif(fromO != null) {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tString from = fromO.toString();\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tstartDateInclusive = LocalDate.parse(from, DateTimeFormatter.ofPattern(mask) );\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} else throw new Exception(\"No mask given\");\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor(int x = 0; x < values.size(); x++) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tString value = values.get(0).toString();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tendDateExclusive = value.isEmpty() ? null: LocalDate.parse(value, DateTimeFormatter.ofPattern(mask) );\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(endDateExclusive != null) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tPeriod period = Period.between(endDateExclusive, startDateInclusive );\n\n\t\t\t\t\t\t\t\t\t\tvalues.remove(x);\n\t\t\t\t\t\t\t\t\t\tif(diffIn.equalsIgnoreCase(\"years\")) {\n\t\t\t\t\t\t\t\t\t\t\tvalues.add(x, period.getYears());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if(type.equalsIgnoreCase(\"datedifffrom\")) {\n\t\t\t\t\t\t\t\tString dateDiffFrom = options.containsKey(\"DIFFFROM\") ? options.get(\"DIFFFROM\").replaceAll(\"-\",\":\"): null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString mask = options.containsKey(\"MASK\") ? options.get(\"MASK\"): null;\n\n\t\t\t\t\t\t\t\tString diffIn = options.containsKey(\"DIFFIN\") ? options.get(\"DIFFIN\"): null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLocalDate startDateInclusive = null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLocalDate endDateExclusive = null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(dateDiffFrom.equalsIgnoreCase(\"sysdate\")) {\n\t\t\t\t\t\t\t\t\tstartDateInclusive = LocalDate.now();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tObject fromO = \n\t\t\t\t\t\t\t\t\t\t\tfindValueByKey(new LinkedHashMap(record), dateDiffFrom.split(\":\")).get(0);\n\n\t\t\t\t\t\t\t\t\tif(mask != null) {\n\t\t\t\t\t\t\t\t\t\tif(fromO != null) {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tString from = fromO.toString();\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tstartDateInclusive = LocalDate.parse(from, DateTimeFormatter.ofPattern(mask) );\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} else throw new Exception(\"No mask given\");\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor(int x = 0; x < values.size(); x++) {\n\t\t\t\t\t\t\t\t\tif(values.get(0) != null) {\n\t\t\t\t\t\t\t\t\t\tString value = values.get(0).toString();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tendDateExclusive = value.isEmpty() ? null: LocalDate.parse(value, DateTimeFormatter.ofPattern(mask) );\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif(endDateExclusive != null) {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tPeriod period = Period.between(startDateInclusive, endDateExclusive);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tvalues.remove(x);\n\t\t\t\t\t\t\t\t\t\t\tif(diffIn.equalsIgnoreCase(\"years\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tvalues.add(x, period.getYears());\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tString mappingK = mapping.getKey().split(\":\")[0];\n\t\t\t\t\tString recordK = record.keySet().iterator().next().toString().split(\":\")[0];\n\t\t\t\t\tif(mappingK.equals(recordK)) {\n\t\t\t\t\t\tif(values == null) throw new Exception(\"Following Mapping does not exist in the datafile: \\n\"\n\t\t\t\t\t\t\t\t+ mapping.toCSV() + \"\\n\" +\n\t\t\t\t\t\t\t\t\" be sure that the column and file exist.\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(relationalValue == null) throw new Exception(\"Following Mapping does not exist in the datafile: \\n\"\n\t\t\t\t\t\t\t\t+ mapping.toCSV() + \"\\n\" +\n\t\t\t\t\t\t\t\t\" be sure that the column and file exist.\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tSet<Entity> newEnts = new HashSet<Entity>();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(values.isEmpty()) {\n\t\t\t\t\t\t\tif(INCLUDE_EMPTY_VALUES == true) {\n\t\t\t\t\t\t\t\tnewEnts = dt.generateTables(mapping, entities, values, relationalValue);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnewEnts = dt.generateTables(mapping, entities, values, relationalValue);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(newEnts != null && newEnts.size() > 0){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tbuiltEnts.addAll(newEnts);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t}\n\n\t\t}\n\t\treturn builtEnts;\t\t\n\t}",
"@Mapper(componentModel = \"spring\", uses = {EntryDataMapper.class})\npublic interface InvoiceLineMapper extends EntityMapper<InvoiceLineDTO, InvoiceLine> {\n\n @Mapping(source = \"entryData.id\", target = \"entryDataId\")\n InvoiceLineDTO toDto(InvoiceLine invoiceLine);\n\n @Mapping(source = \"entryDataId\", target = \"entryData\")\n @Mapping(target = \"attributes\", ignore = true)\n InvoiceLine toEntity(InvoiceLineDTO invoiceLineDTO);\n\n default InvoiceLine fromId(Long id) {\n if (id == null) {\n return null;\n }\n InvoiceLine invoiceLine = new InvoiceLine();\n invoiceLine.setId(id);\n return invoiceLine;\n }\n}",
"public void setValues(Map map)\n\t\t{\n\t\t\tm_structuredArtifact = map;\n\n\t\t}",
"public void updateAttributeAddObjectToCollection(String attributeName, Object mapKey, Object value) {\n DatabaseMapping mapping = this.query.getDescriptor().getMappingForAttributeName(attributeName);\n if (mapping == null) {\n throw DescriptorException.mappingForAttributeIsMissing(attributeName, getDescriptor());\n }\n\n Object clone = this.getObject();\n Object cloneValue = value;\n Object original = null;\n\n //only set the original object if we need to update it, ie before the merge takes place\n if ((this.eventCode == DescriptorEventManager.PostCloneEvent) || (this.eventCode == DescriptorEventManager.PostMergeEvent)) {\n original = this.getOriginalObject();\n }\n Object originalValue = value;\n ObjectChangeSet eventChangeSet = this.getChangeSet();\n Object valueForChangeSet = value;\n\n if ((this.query != null) && this.query.isObjectLevelModifyQuery()) {\n clone = ((ObjectLevelModifyQuery)this.query).getObject();\n eventChangeSet = ((ObjectLevelModifyQuery)this.query).getObjectChangeSet();\n }\n ClassDescriptor descriptor = getSession().getDescriptor(value.getClass());\n\n if (descriptor != null) {\n //There is a descriptor for the value being passed in so we must be carefull\n // to convert the value before assigning it.\n if (eventChangeSet != null) {\n valueForChangeSet = descriptor.getObjectBuilder().createObjectChangeSet(value, (UnitOfWorkChangeSet)eventChangeSet.getUOWChangeSet(), getSession());\n }\n if (original != null) {\n // must be a unitOfWork because only the postMerge, and postClone events set this attribute\n originalValue = ((UnitOfWorkImpl)getSession()).getOriginalVersionOfObject(value);\n }\n }\n\n if (clone != null) {\n Object collection = mapping.getRealCollectionAttributeValueFromObject(clone, getSession());\n mapping.getContainerPolicy().addInto(mapKey, cloneValue, collection, getSession());\n }\n if (original != null) {\n Object collection = mapping.getRealCollectionAttributeValueFromObject(original, getSession());\n mapping.getContainerPolicy().addInto(mapKey, originalValue, collection, getSession());\n }\n if (getRecord() != null) {\n AbstractRecord tempRow = getDescriptor().getObjectBuilder().createRecord();\n\n // pass in temp Row because most mappings use row.add() not row.put() for\n // perf reasons. We are using writeFromObjectIntoRow in order to support\n // a large number of types.\n mapping.writeFromObjectIntoRow(clone, tempRow, getSession());\n ((AbstractRecord)getRecord()).mergeFrom(tempRow);\n }\n if (eventChangeSet != null) {\n mapping.simpleAddToCollectionChangeRecord(mapKey, valueForChangeSet, eventChangeSet, getSession());\n }\n }",
"@Override\n\tprotected void saveTo(Map<String, Object> map) {\n\t\tmap.put(\"rootElemId\", rootElemId);\n\t}",
"Object toDomain(Object entity, Settings settings);",
"private MapTransformer(Map map) {\n super();\n iMap = map;\n }",
"@SuppressWarnings(\"unchecked\")\n private <T> T get(String path, Map submap) {\n int index = path.indexOf('.');\n if (index == -1) {\n Object val = submap.get(path);\n return (T) val;\n } else {\n String first = path.substring(0, index);\n String second = path.substring(index + 1, path.length());\n Map sub = (Map) submap.get(first);\n if (sub == null) {\n sub = new LinkedHashMap();\n submap.put(first, sub);\n }\n return get(second, sub);\n }\n }",
"@Mapper(componentModel = \"spring\", uses = {ProvinciaMapper.class})\npublic interface CodigoPostalMapper extends EntityMapper<CodigoPostalDTO, CodigoPostal> {\n\n @Mapping(source = \"provincia.id\", target = \"provinciaId\")\n @Mapping(source = \"provincia.nombreProvincia\", target = \"provinciaNombreProvincia\")\n CodigoPostalDTO toDto(CodigoPostal codigoPostal);\n\n @Mapping(source = \"provinciaId\", target = \"provincia\")\n CodigoPostal toEntity(CodigoPostalDTO codigoPostalDTO);\n\n default CodigoPostal fromId(Long id) {\n if (id == null) {\n return null;\n }\n CodigoPostal codigoPostal = new CodigoPostal();\n codigoPostal.setId(id);\n return codigoPostal;\n }\n}",
"public void toEntity(){\n\n }",
"public MapEntity() {\n\t}",
"public CoordinadorEntity toEntity(){\n \n CoordinadorEntity entity = new CoordinadorEntity(); \n entity.setId_coordinador(this.id_coodinador);\n entity.setNombres(this.nombres);\n entity.setApellidos(this.apellidos);\n entity.setGenero(this.genero);\n entity.setEmail(this.email);\n entity.setTipoDocumento(tipo_documento_id);\n entity.setNro_documento(this.nro_documento);\n \n return entity;\n }",
"FROM toObject(CONTEXT context, final TO value);",
"@Mapper(componentModel = \"spring\", uses = {UtilisateurMapper.class, DepotMapper.class})\npublic interface UtilisateurDepotPKMapper extends EntityMapper<UtilisateurDepotPKDTO, UtilisateurDepotPK> {\n\n @Mapping(source = \"utilisateur.id\", target = \"utilisateurId\")\n @Mapping(source = \"depot.id\", target = \"depotId\")\n UtilisateurDepotPKDTO toDto(UtilisateurDepotPK utilisateurDepotPK);\n\n @Mapping(source = \"utilisateurId\", target = \"utilisateur\")\n @Mapping(source = \"depotId\", target = \"depot\")\n UtilisateurDepotPK toEntity(UtilisateurDepotPKDTO utilisateurDepotPKDTO);\n\n default UtilisateurDepotPK fromId(Long id) {\n if (id == null) {\n return null;\n }\n UtilisateurDepotPK utilisateurDepotPK = new UtilisateurDepotPK();\n utilisateurDepotPK.setId(id);\n return utilisateurDepotPK;\n }\n}",
"Builder values(Map<Path<?>, TypedExpression<?>> values);",
"@Mappings({@Mapping(source = \"province\",target = \"province2\"),@Mapping(source = \"valid\",target = \"valid2\")})\n OaCompanyDto convert(OaCompany OaCompany);",
"public static <T> T castMap(Map<String, String> fromMap, String keyPrefix, String separator, Class<T> clazz)\n\t{\n\t\tT ret = null;\n\t\ttry\n\t\t{\n\t\t\tret = clazz.newInstance();\n\t\t\tField[] fields = clazz.getFields();\n\t\t\tfor(Field f : fields)\n\t\t\t{\n\t\t\t\tType t = f.getType();\n\t\t\t\tString key = f.getName();\n\t\t\t\tString value = fromMap.get(keyPrefix + separator + key);\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif(t == int.class || t == Integer.class)\n\t\t\t\t\t\tf.setInt(ret, Integer.parseInt(value != null ? value : \"0\"));\n\t\t\t\t\telse if(t == double.class || t == Double.class)\n\t\t\t\t\t\tf.setDouble(ret, Double.parseDouble(value != null ? value : \"0.0\"));\n\t\t\t\t\telse if(t == boolean.class || t == Boolean.class)\n\t\t\t\t\t\tf.setBoolean(ret, Boolean.valueOf(value));\n\t\t\t\t\telse if(t == char.class || t == Character.class)\n\t\t\t\t\t\tf.setChar(ret, value != null ? value.charAt(0) : '\\0');\n\t\t\t\t\telse if(t == long.class || t == Long.class)\n\t\t\t\t\t\tf.setLong(ret, Long.parseLong(value != null ? value : \"0\"));\n\t\t\t\t\telse if(t == float.class || t == Float.class)\n\t\t\t\t\t\tf.setFloat(ret, Float.parseFloat(value != null ? value : \"0.0\"));\n\t\t\t\t\telse if(t == short.class || t == Short.class)\n\t\t\t\t\t\tf.setShort(ret, Short.parseShort(value != null ? value : \"0\"));\n\t\t\t\t\telse if(Enum.class.isAssignableFrom((Class)t) && value != null)\n\t\t\t\t\t\tf.set(ret, Enum.valueOf((Class)t, value));\n\t\t\t\t\telse if(t == Date.class)\n\t\t\t\t\t\tf.set(ret, value != null ? Main.fmt().parse(value) : new java.util.Date());\n\t\t\t\t\telse if(t == String.class)\n\t\t\t\t\t\tf.set(ret, value);\n\t\t\t\t\telse\n\t\t\t\t\t\tf.set(ret, castMap(fromMap, keyPrefix + separator + key, separator, (Class)t));\n\t\t\t\t}\n\t\t\t\tcatch(IllegalArgumentException | ParseException e)\n\t\t\t\t{\n\t\t\t\t\tlog.error(e.toString(), e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(InstantiationException | IllegalAccessException e)\n\t\t{\n\t\t\tlog.error(e.toString(), e);\n\t\t}\n\n\t\treturn ret;\n\t}",
"void mapToExistingEntity(D dto, @MappingTarget E entity);",
"@Mapper(componentModel = \"spring\", uses = {ProOrderMapper.class})\r\npublic interface ProOrderItemMapper extends EntityMapper<ProOrderItemDTO, ProOrderItem> {\r\n\r\n @Mapping(source = \"proOrder.id\", target = \"proOrderId\")\r\n ProOrderItemDTO toDto(ProOrderItem proOrderItem);\r\n\r\n @Mapping(source = \"proOrderId\", target = \"proOrder\")\r\n ProOrderItem toEntity(ProOrderItemDTO proOrderItemDTO);\r\n\r\n default ProOrderItem fromId(Long id) {\r\n if (id == null) {\r\n return null;\r\n }\r\n ProOrderItem proOrderItem = new ProOrderItem();\r\n proOrderItem.setId(id);\r\n return proOrderItem;\r\n }\r\n}",
"@Override\r\n\tpublic Map<String, Object> returnData(Map<String, Object> map,Model model, HttpServletRequest request) {\n\t\treturn null;\r\n\t}",
"public abstract P toEntity();",
"public void set(Map<Prop, Object> map, Object value) {\n if (value != null && !type.isInstance(value)) {\n throw new RuntimeException(\"value for property must have type \" + type);\n }\n map.put(this, value);\n }",
"@Override\r\n\tpublic AbstractDto mapToDto() {\n\t\treturn null;\r\n\t}",
"public MapHandle( MapObjectInspector insp) throws UDFArgumentException {\n\t\t\tif( !(insp.getMapKeyObjectInspector() instanceof StringObjectInspector)) {\n\t\t\t\tthrow new RuntimeException( \" JSON maps can only have strings as keys\");\n\t\t\t}\n\t\t\tmapValHandle = InspectorHandleFactory.GenerateInspectorHandle( insp.getMapValueObjectInspector() );\n\t\t}",
"public Object convert(Object fromValue) {\n RawObject oldDataRawObject = (RawObject) fromValue;\n RawObject oldKeyRawObject = (RawObject)oldDataRawObject.\n getSuper().getValues().get(\"keys\");\n Object[] oldDataKeyValue = \n (Object[])oldKeyRawObject.getElements();\n RawObject oldValueRawObject = (RawObject)oldDataRawObject.\n getSuper().getValues().get(\"values\");\n \n ArrayList<RawObject> newDataKeyValue = \n new ArrayList<RawObject>();\n RawObject myEnumRawObject = new RawObject(myEnumType, \"DATA\");\n newDataKeyValue.add(myEnumRawObject);\n \n RawObject newKeyRawObject = new RawObject\n (oldKeyRawObject.getType(), newDataKeyValue.toArray());\n Map<String, Object> \n newDataSuperValue = new HashMap<String, Object>();\n newDataSuperValue.put(\"keys\", newKeyRawObject);\n newDataSuperValue.put(\"values\", oldValueRawObject);\n RawObject newDataSuperRawObject = \n new RawObject(newDataSuperType, newDataSuperValue, null);\n Map<String, Object> newDataValue = \n new HashMap<String, Object>();\n RawObject newDataRawObject = \n new RawObject(newDataType, newDataValue, \n newDataSuperRawObject);\n return newDataRawObject;\n }",
"public E copyFromEntity(@Nonnull E value, @Nullable FileEntity file)\n {\n if(file == null)\n {\n value = _setFile.apply(value, null);\n }\n else\n {\n value = _saveValue.apply(value);\n FileEntityFileItem fileItem = new FileEntityFileItem(file);\n FileEntity copy = _fileSystemDAO.copy(file, _getDirectory.apply(value, fileItem),\n _getFileName.apply(value, fileItem), null, FileSystemEntityCreateMode.overwrite);\n value = _setFile.apply(value, copy);\n }\n value = _saveValue.apply(value);\n return value;\n }",
"public void mapContentToContentEntity(Content content, ContentEntity contentEntity) {\n\t\tif(content == null) {\n\t\t\treturn;\n\t\t}\n\n\t\t//--- Generic mapping \n\t\tmap(content, contentEntity);\n\n\t}",
"public UserFile mapUserFileEntityToUserFile(UserFileEntity userFileEntity) {\n\t\tif(userFileEntity == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\t//--- Generic mapping \n\t\tUserFile userFile = map(userFileEntity, UserFile.class);\n\n\t\treturn userFile;\n\t}",
"private Object decodingXMLEntity(XMLTokener tokener, Buffer buffer, MapEntity map) {\n\t\tif (buffer == null || map == null) {\n\t\t\treturn null;\n\t\t}\n\t\tif (buffer.skipTo(XMLEntity.START, false)) {\n\t\t\tmap.withStack(new MapEntityStack());\n\t\t\t/* FIRST TAG */\n\t\t\ttokener.parseEntity(tokener, buffer, map);\n\t\t\treturn tokener.parse(tokener, buffer, map);\n\t\t}\n\t\treturn null;\n\t}",
"@Override\r\n public byte[] pack(Map<String, String> value) {\n return null;\r\n }",
"String parseMapToJson(Map<String, Object> data);",
"public Mapping setMap(StringDt theValue) {\n\t\tmyMap = theValue;\n\t\treturn this;\n\t}",
"private Map<String, String> getValueMap(JsonNode node) {\n if (!isEtcdDirectory(node)) {\n try {\n String json = node.get(\"value\").asText();\n ObjectMapper mapper = new ObjectMapper();\n Map<String, String> map =\n mapper.readValue(json, new TypeReference<Map<String, String>>() {});\n return map;\n } catch (Exception e) {\n m_LogService.log(LogService.LOG_ERROR, e.getMessage(), e);\n }\n }\n return null;\n }",
"@Override\n public SystemResource pojoToEntity(SystemResourcePojo pojo){\n SystemResource entity = new SystemResource();\n\n entity.setName(pojo.getName());\n entity.setPath(pojo.getPath());\n entity.setType(pojo.getType());\n entity.setOriginalFileName(pojo.getOriginalFileName());\n entity.setUrl(pojo.getUrl());\n entity.setPublicKey(pojo.getPublicKey());\n return entity;\n }",
"public void getData(String filePath, Map<String, Object> map) {\n\t\treturn;\n\t}",
"public void consumeDataModel(final Map<String, Object> dataModel);",
"@Mapper(componentModel = \"spring\")\npublic interface SaleMapper extends EntityMapper<SaleDto, Sale> {\n\n @Mapping(source = \"client.id\", target = \"clientId\")\n @Mapping(source = \"client.name\", target = \"clientName\")\n SaleDto toDto(Sale sale);\n\n @Mapping(source = \"clientId\", target = \"client.id\")\n Sale toEntity(SaleDto saleDTO);\n\n default Sale fromId(Long id) {\n if (id == null) {\n return null;\n }\n Sale sale = new Sale();\n sale.setId(id);\n return sale;\n }\n\n}",
"@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n public static Object convertToFieldOfDataTransferObject(Object dto, String prefix, Map<String, Object> record, Field field, String[] filter) {\n Object reValue = null;\n if (null != record && null != field) {\n String entityFieldPath = getEntityMappingFieldPath(field);\n if (!StringUtils.isEmpty(prefix)) {\n entityFieldPath = prefix + Constants.DOT + entityFieldPath;\n }\n\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType)) {\n Object innerDTO = null;\n try {\n if (ObjectUtils.fieldIsCollection(field)) {\n Collection collection = ObjectUtils.getValueOfField(dto, field.getName(), Collection.class);\n if (null == collection) {\n collection = ObjectUtils.newInstanceCollection(field.getType());\n } else {\n for (Object obj : collection) {\n String keyOne = getKey(fieldType, obj);\n String keyTwo = getKey(entityFieldPath, fieldType, record);\n if (keyOne.equals(keyTwo)) {\n innerDTO = obj;\n break;\n }\n }\n }\n\n Object value = convertToDataTransferObject(innerDTO, entityFieldPath, record, fieldType, filter);\n\n if (null == innerDTO) {\n collection.add(value);\n }\n reValue = collection;\n } else {\n reValue = convertToDataTransferObject(null, entityFieldPath, record, fieldType, filter);\n }\n } catch (NoSuchMethodException e) {\n throw new ConstructorInvalidException(\"Cannot new collection instance for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot get value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n } else if (MappingUtils.isKeepField(entityFieldPath, filter)) {\n Class<?> fieldConverter = getFieldConverterType(field);\n reValue = convertField(fieldConverter, record.get(entityFieldPath));\n }\n }\n return reValue;\n }",
"private RecipeEntity mapToRecipeEntity(Recipe recipe) {\n\t\tRecipeEntity rEntity = new RecipeEntity();\n\t\t//Map primitive fields\n\t\trEntity.setId(recipe.getId());\n\t\trEntity.setName(recipe.getName());\n\t\trEntity.setType(recipe.getType());\n\t\trEntity.setServingCapacity(recipe.getServingCapacity());\n\t\t\n\t\t//Save current date time into recipe instance, if not given\n\t\tif(recipe.getCreationDateTime() == null) {\n\t\t\tOptional<Date> currentDateTime = Util.getCurrentDateTime();\n\t\t\tif(currentDateTime.isPresent())\n\t\t\t\tlog.debug(\"Current DateTime to be set in recipe entity: \"+currentDateTime.toString());\n\t\t\telse\n\t\t\t\tlog.warn(\"Setting null to current date time field in recipe entity\");\n\t\t\trEntity.setCreationDateTime(currentDateTime.get());\n\t\t} else {\n\t\t\tlog.debug(\"Retaining given creation date time value into recipe entity\");\n\t\t\trEntity.setCreationDateTime(recipe.getCreationDateTime());\n\t\t}\n\t\t\n\t\t//Convert ingredients list into String and set to recipe entity\n\t\tlog.debug(\"Number of ingredients to convert to string: \"+recipe.getIngredientsList().size());\n\t\tString ingredients = Util.convertToJSONString(recipe.getIngredientsList());\n\t\tlog.debug(\"Ingredients String: \"+ingredients);\n\t\trEntity.setIngredients(ingredients);\n\t\t\n\t\trEntity.setInstructions(recipe.getInstructions());\n\t\t\n\t\treturn rEntity;\n\t}",
"public IdMap() {\n\t\tthis.add(new TextItems());\n\t\tthis.add(new DateTimeEntity());\n\t\tthis.add(EntityCreator.createJson(false));\n\t\tthis.add(EntityCreator.createJson(true));\n\t\tthis.add(new ObjectMapEntry());\n\t\tthis.add(EntityCreator.createXML());\n\t}",
"public void setMapEntityKey(MapEntityKey mapEntityKey) {\n\t\tthis.mapEntityKey = mapEntityKey;\n\t}",
"public abstract void setData(Map<ID, T> data);",
"public interface Converter {\n Map<String,Map<String, Object>> convert(Map<String, Object> doc);\n}",
"public Object get(Map<Prop, Object> map) {\n Object o = map.get(this);\n return o != null ? o : defaultValue;\n }",
"@Mapper(componentModel = SpringContextUtil.SPRING)\npublic interface MapstructService {\n\n @Mappings({\n @Mapping(source = \"alId\", target = \"blId\"),\n @Mapping(source = \"alName\", target = \"blName\"),\n @Mapping(source = \"alDate\", target = \"blDate\", dateFormat = DateUtil.DATE_FORMAT_MINUTE),\n @Mapping(target = \"blSum\", expression = \"java(amo.getAlId() * 100)\"),\n @Mapping(target = \"blbb\", constant = \"别bb\")\n })\n Bmo convert(Amo amo);\n}",
"private VariableMap getParamMappingAsVariableMap() {\n paramValueEncodings.put(fileNameToIndex.keySet().toString(), \" FileNames\");\n paramValueEncodings.put(functionNameToIndex.keySet().toString(), \" FunctionNames\");\n paramValueEncodings.put(typeToIndex.keySet().toString(), \" Types\");\n\n VariableMap preInversedMap = new VariableMap(paramValueEncodings);\n ImmutableMap<String, String> inversedMap = preInversedMap.getNewNameToOriginalNameMap();\n return new VariableMap(inversedMap);\n }",
"public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"SourceId\", this.SourceId);\n this.setParamSimple(map, prefix + \"TargetClusterId\", this.TargetClusterId);\n this.setParamSimple(map, prefix + \"SourceName\", this.SourceName);\n this.setParamSimple(map, prefix + \"TargetName\", this.TargetName);\n this.setParamSimple(map, prefix + \"TargetFolderId\", this.TargetFolderId);\n this.setParamSimple(map, prefix + \"JobType\", this.JobType);\n\n }",
"public Object transform(Object input) {\n return iMap.get(input);\n }",
"@Override\n\tpublic Object convert(Object original) {\n\t\tif (original == null)\n\t\t\treturn OTHER;\n\n\t\tif (!(original instanceof PersonAttribute))\n\t\t\treturn \"Invalid: \" + original.toString();\n\n\t\tPersonAttribute pa = (PersonAttribute) original;\n\n\t\tString entryPoint = locationMap.get(pa.getValue());\n\n\t\tif (entryPoint != null)\n\t\t\treturn entryPoint;\n\n\t\treturn OTHER;\n\t}",
"OrderDto map(Order order);"
] | [
"0.63943154",
"0.601274",
"0.59439963",
"0.57952666",
"0.57907295",
"0.5761648",
"0.56176215",
"0.554869",
"0.5546145",
"0.54799515",
"0.5473357",
"0.5456955",
"0.5419361",
"0.5401308",
"0.53989786",
"0.5365188",
"0.5334818",
"0.5284077",
"0.52712864",
"0.52420765",
"0.5224833",
"0.5223306",
"0.52132684",
"0.5212756",
"0.5210542",
"0.520181",
"0.5156892",
"0.5139229",
"0.51221484",
"0.5116861",
"0.51075464",
"0.51066464",
"0.5101167",
"0.50956696",
"0.5093825",
"0.5086965",
"0.5081424",
"0.5078194",
"0.50777894",
"0.5064318",
"0.5052646",
"0.5045746",
"0.5023584",
"0.5023317",
"0.5010763",
"0.50092524",
"0.4999934",
"0.49990737",
"0.49983326",
"0.4997583",
"0.49799442",
"0.49731386",
"0.49705487",
"0.49525633",
"0.49385768",
"0.49379042",
"0.4937216",
"0.49284956",
"0.49276286",
"0.49174997",
"0.49023142",
"0.48918173",
"0.48884502",
"0.48862386",
"0.4882951",
"0.4882948",
"0.48759344",
"0.48758033",
"0.48757073",
"0.48702097",
"0.48595828",
"0.4859163",
"0.4858565",
"0.48376614",
"0.48369545",
"0.48351184",
"0.4834404",
"0.48291907",
"0.4828207",
"0.4828168",
"0.48278224",
"0.48139602",
"0.48108837",
"0.47937948",
"0.47918862",
"0.478386",
"0.47822922",
"0.4781982",
"0.47817877",
"0.4777613",
"0.4777104",
"0.47667646",
"0.47662738",
"0.47605273",
"0.47601685",
"0.47530586",
"0.4751709",
"0.47485515",
"0.47473288",
"0.47466767"
] | 0.6416863 | 0 |
Convert map entity field path and value to Data Transfer Object. | public static Object convertMapEntityPathAndValueToDTO(String prefix, Map<String, Object> mapData, Class<?> dtoType) {
if (null != mapData && null != dtoType) {
validateThrow(dtoType, new ConfigurationInvalidException(dtoType.getName() + ": Data Transfer Object configuration is invalid"));
Object dto;
try {
dto = ObjectUtils.newInstance(dtoType);
} catch (InvocationTargetException | NoSuchMethodException | InstantiationException | IllegalAccessException e) {
throw new ConstructorInvalidException("Cannot found default constructor for " + dtoType.getSimpleName(), e);
}
List<Field> fields = ObjectUtils.getFields(dtoType, true);
for (Field field : fields) {
try {
Object fieldValue = convertMapEntityPathAndValueToDTO(prefix, mapData, field);
ObjectUtils.setValueForField(dto, field.getName(), fieldValue);
} catch (IllegalAccessException e) {
throw new FieldInaccessibleException("Cannot set value for field "
+ dto.getClass().getSimpleName() + "." + field.getName(), e);
}
}
return dto;
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Object convertMapEntityPathAndValueToDTO(String prefix, Map<String, Object> mapData, Field field) {\n if (null != mapData && null != field) {\n String mappingField = getEntityMappingFieldPath(field);\n if (!StringUtils.isEmpty(prefix)) {\n prefix += Constants.DOT;\n }\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType)) {\n if (!ObjectUtils.fieldIsCollection(field)) {\n return convertMapEntityPathAndValueToDTO(prefix + mappingField, mapData, fieldType);\n } else {\n int length = countLengthOfArray(prefix + mappingField, mapData);\n if (length > 0) {\n try {\n @SuppressWarnings(\"unchecked\")\n Collection<Object> collection = ObjectUtils.newInstanceCollection(field.getType());\n for (int i = 0; i < length; i++) {\n Object innerEntity = convertMapEntityPathAndValueToDTO(prefix + mappingField + \"[\" + i + \"]\", mapData, fieldType);\n if (null != innerEntity) {\n collection.add(innerEntity);\n }\n }\n return collection;\n } catch (NoSuchMethodException e) {\n throw new ConstructorInvalidException(\"Cannot new collection instance for field \" + field.getName(), e);\n }\n }\n }\n } else {\n Class<?> fieldConverter = getFieldConverterType(field);\n return convertField(fieldConverter, mapData.get(prefix + mappingField));\n }\n }\n return null;\n }",
"public static Map<String, Object> convertToEntityMappingFieldAndValue(Object dto, Field field) {\n Map<String, Object> mapData = new HashMap<>();\n if (null != dto && null != field) {\n Object valueOfField;\n try {\n valueOfField = ObjectUtils.getValueOfField(dto, field.getName());\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot get value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n\n if (validate(MappingUtils.getFieldType(field))) {\n if (!ObjectUtils.fieldIsCollection(field)) {\n Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(valueOfField);\n for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {\n mapData.put(field.getName() + Constants.DOT + entry.getKey(), entry.getValue());\n }\n } else {\n Collection<?> collection = (Collection<?>) valueOfField;\n int index = 0;\n if (!CollectionUtils.isEmpty(collection)) {\n for (Object innerDTO : collection) {\n Map<String, Object> innerMapData = convertToEntityMappingFieldAndValue(innerDTO);\n for (Map.Entry<String, Object> entry : innerMapData.entrySet()) {\n mapData.put(field.getName() + \"[\" + index + \"]\" + Constants.DOT + entry.getKey(), entry.getValue());\n }\n index++;\n }\n }\n }\n } else {\n Class<?> fieldConverter = getFieldConverterType(field);\n Object convertValue = convertField(fieldConverter, valueOfField, true);\n mapData.put(getEntityMappingFieldPath(field), convertValue);\n }\n }\n return mapData;\n }",
"public static Map<String, Object> convertToEntityMappingFieldAndValue(Object dto) {\n Map<String, Object> mapData = new HashMap<>();\n if (null != dto) {\n List<Field> fields = ObjectUtils.getFields(dto.getClass(), true);\n for (Field field : fields) {\n mapData.putAll(convertToEntityMappingFieldAndValue(dto, field));\n }\n }\n return mapData;\n }",
"public abstract T convertToEntity(D dto);",
"E mapToEntity(D dto);",
"@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n public static Object convertToFieldOfDataTransferObject(Object dto, String prefix, Map<String, Object> record, Field field, String[] filter) {\n Object reValue = null;\n if (null != record && null != field) {\n String entityFieldPath = getEntityMappingFieldPath(field);\n if (!StringUtils.isEmpty(prefix)) {\n entityFieldPath = prefix + Constants.DOT + entityFieldPath;\n }\n\n Class<?> fieldType = MappingUtils.getFieldType(field);\n if (validate(fieldType)) {\n Object innerDTO = null;\n try {\n if (ObjectUtils.fieldIsCollection(field)) {\n Collection collection = ObjectUtils.getValueOfField(dto, field.getName(), Collection.class);\n if (null == collection) {\n collection = ObjectUtils.newInstanceCollection(field.getType());\n } else {\n for (Object obj : collection) {\n String keyOne = getKey(fieldType, obj);\n String keyTwo = getKey(entityFieldPath, fieldType, record);\n if (keyOne.equals(keyTwo)) {\n innerDTO = obj;\n break;\n }\n }\n }\n\n Object value = convertToDataTransferObject(innerDTO, entityFieldPath, record, fieldType, filter);\n\n if (null == innerDTO) {\n collection.add(value);\n }\n reValue = collection;\n } else {\n reValue = convertToDataTransferObject(null, entityFieldPath, record, fieldType, filter);\n }\n } catch (NoSuchMethodException e) {\n throw new ConstructorInvalidException(\"Cannot new collection instance for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot get value for field \"\n + dto.getClass().getSimpleName() + \".\" + field.getName(), e);\n }\n } else if (MappingUtils.isKeepField(entityFieldPath, filter)) {\n Class<?> fieldConverter = getFieldConverterType(field);\n reValue = convertField(fieldConverter, record.get(entityFieldPath));\n }\n }\n return reValue;\n }",
"public abstract D convertToDto(T entity);",
"public DocumentModel toFields(DocumentModel inDoc,\n HashMap<String, String> inMapping, boolean inSave,\n CoreSession inSession) {\n\n // Parse if needed\n run();\n\n HashMap<String, String> values = toHashMap();\n for (String inXPath : inMapping.keySet()) {\n String value = values.get(inMapping.get(inXPath));\n inDoc.setPropertyValue(inXPath, value);\n }\n\n if (inSave) {\n inDoc = inSession.saveDocument(inDoc);\n }\n\n return inDoc;\n }",
"@Override\n\tpublic void convertitMap(Map<String, Object> map) {\n\t\t\n\t}",
"private static Object mapValueToJava(Object value) {\n if (value instanceof Map) {\n value = ((Map<?, ?>) value).toMap();\n } else if (value instanceof Sequence) {\n value = ((Sequence<?>) value).toMappedList();\n } else if (value instanceof net.ssehub.easy.instantiation.core.model.vilTypes.Set<?>) {\n value = ((net.ssehub.easy.instantiation.core.model.vilTypes.Set<?>) value).toMappedSet();\n }\n return value;\n }",
"E toEntity(V dto);",
"public Object toPojo(Entity entity) {\n return ofy().load().fromEntity(entity);\n }",
"private Object decoding(BaseItem value, MapEntity map) {\n\t\tif (value instanceof JsonArray) {\n\t\t\treturn decodingJsonArray((JsonArray) value, map);\n\t\t}\n\t\tif (value instanceof XMLEntity) {\n\t\t\tCharacterBuffer buffer = new CharacterBuffer().with(value.toString());\n\t\t\treturn decodingXMLEntity(this.xmlTokener, buffer, map);\n\t\t}\n\t\tif (value instanceof ByteEntity) {\n\t\t\tByteEntity entity = (ByteEntity) value;\n\t\t\treturn byteTokener.decodeValue(entity, map);\n\t\t}\n\n\t\treturn decodingJsonObject((JsonObject) value, map);\n\t}",
"D mapToDTO(E entity);",
"V toDto(E entity);",
"public ClientProperty mapToEntity(ClientPropertyDto dto)\r\n\t{\r\n\t\tClientProperty property = new ClientProperty();\r\n\t\tproperty.setId(dto.getId());\r\n\t\tproperty.setKey(dto.getKey());\r\n\t\tproperty.setValue(dto.getValue());\r\n\t\tproperty.setClient(clientMapper.mapToEntity(dto.getClient()));\r\n\r\n\t\tClientProperty persistentProperty = propertyRepo.findOne(property.getId());\r\n\t\tif (persistentProperty != null)\r\n\t\t{\r\n\t\t\treturn persistentProperty.bind(property);\r\n\t\t}\r\n\r\n\t\treturn property;\r\n\t}",
"private static Object toJavaObject(Value value) throws RepositoryException {\n switch (value.getType()) {\n case PropertyType.DECIMAL:\n return value.getDecimal();\n case PropertyType.BINARY:\n return new LazyInputStream(value);\n case PropertyType.BOOLEAN:\n return value.getBoolean();\n case PropertyType.DATE:\n return value.getDate();\n case PropertyType.DOUBLE:\n return value.getDouble();\n case PropertyType.LONG:\n return value.getLong();\n case PropertyType.NAME: // fall through\n case PropertyType.PATH: // fall through\n case PropertyType.REFERENCE: // fall through\n case PropertyType.STRING: // fall through\n case PropertyType.UNDEFINED: // not actually expected\n default: // not actually expected\n return value.getString();\n }\n }",
"private void convert(Map map) {\n if (map == null)\n return;\n\n for (Object key : valueTypes.keySet()) {\n MessagePackObject mpo = (MessagePackObject) map.get(key);\n if (mpo != null)\n map.put(key, mpo.convert(Templates.tNullable(\n TemplateRegistry.lookup(valueTypes.get(key)))));\n }\n\n }",
"void setValue4Po(String poFieldName, Object val);",
"private Object convertDBToField(Object value, Field field) {\n if(value == null)\n return null;\n \n Class<?> clazz = field.getType();\n \n if(Enum.class.isAssignableFrom(clazz))\n return Enum.valueOf((Class<Enum>)clazz, value.toString());\n \n if(Base.class.isAssignableFrom(clazz))\n return createInstance((Class<? extends Base>)clazz, (DBObject) value);\n \n if(value instanceof BasicDBList) {\n BasicDBList list = (BasicDBList)value;\n\n if(Collection.class.isAssignableFrom(clazz))\n return convertDBToCollectionField(list, field);\n \n if(clazz.isArray())\n return convertDBToArrayField(list, clazz);\n \n return value;\n }\n \n if(value instanceof BasicDBObject) {\n BasicDBObject map = (BasicDBObject)value;\n\n if(Map.class.isAssignableFrom(clazz))\n return convertDBToMapField(map, field);\n \n return value; \n }\n \n return clazz.isPrimitive() ? convertPrimitiveType(value, clazz) : value;\n }",
"@SuppressWarnings(\"unchecked\")\n private Object convertToDataTransferObject(Object data, Class<?> dtoType) {\n if (Map.class.isAssignableFrom(data.getClass())) {\n return ObjectUtils.convertMapToObject((Map<String, ?>) data, dtoType);\n }\n throw new ParamInvalidException(\"Cannot parse '\" + data.getClass().getName() + \"' to '\" + dtoType.getName() + \"'\");\n }",
"public static Object convertToDataTransferObject(Object dto, String prefix, Map<String, Object> record,\n Class<?> dtoType, String[] filter) {\n if (null != record && null != dtoType) {\n if (null == dto) {\n dto = newDataTransferObjectInstance(dtoType);\n }\n List<Field> dtoFields = ObjectUtils.getFields(dtoType, true);\n for (Field dtoField : dtoFields) {\n try {\n Object value = null;\n if (hasData(record, prefix, getEntityMappingFieldPath(dtoField))) {\n value = convertToFieldOfDataTransferObject(dto, prefix, record, dtoField, filter);\n }\n ObjectUtils.setValueForField(dto, dtoField.getName(), value, true);\n } catch (IllegalAccessException e) {\n throw new FieldInaccessibleException(\"Cannot set value for field \"\n + dtoType.getSimpleName() + \".\" + dtoField.getName(), e);\n }\n }\n }\n return dto;\n }",
"@Mapper(componentModel = \"spring\")\npublic interface DataDictItemMapping {\n DataDictItemVo asDataDictItemVo(DataDictItem entity);\n\n DataDictItemOrdinaryVo asOrdinary(DataDictItem entity);\n\n @Mapping(target = \"priority\", ignore = true)\n @Mapping(target = \"lastUpdater\", ignore = true)\n @Mapping(target = \"lastUpdatedAt\", ignore = true)\n @Mapping(target = \"id\", ignore = true)\n @Mapping(target = \"dictId\", ignore = true)\n @Mapping(target = \"creator\", ignore = true)\n @Mapping(target = \"createdAt\", ignore = true)\n DataDictItem asDataDictItem(DataDictItemInsertRo ro);\n\n DataDictItemComplexVo asComplex(DataDictItem entity);\n\n DataDictItem asDataDictItem(DataDictItemUpdateRo ro);\n}",
"@Mappings({@Mapping(source = \"province\",target = \"province2\"),@Mapping(source = \"valid\",target = \"valid2\")})\n OaCompanyDto convert(OaCompany OaCompany);",
"@Override\n public Preparation mapToEntity(PreparationDto dto) {\n return null;\n }",
"@Override\n\tpublic void setValue(String path, Object value) {\n\t\tif (path.indexOf('.') >= 0 || path.indexOf('(') >= 0 ) {\n\t\t\tFlexDataAccess access = new FlexDataAccess(this, path, true);\n\t\t\taccess.setToPath(value);\n\t\t} else {\n\t\t\tsetValueMap(path, value);\n\t\t}\n\t}",
"protected <T> T convertForEntity(Object value, Class<T> type) {\r\n return typeConversionManager.convert(value, type);\r\n }",
"@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }",
"@Mapper(componentModel = \"spring\", uses = {ProvinciaMapper.class})\npublic interface CodigoPostalMapper extends EntityMapper<CodigoPostalDTO, CodigoPostal> {\n\n @Mapping(source = \"provincia.id\", target = \"provinciaId\")\n @Mapping(source = \"provincia.nombreProvincia\", target = \"provinciaNombreProvincia\")\n CodigoPostalDTO toDto(CodigoPostal codigoPostal);\n\n @Mapping(source = \"provinciaId\", target = \"provincia\")\n CodigoPostal toEntity(CodigoPostalDTO codigoPostalDTO);\n\n default CodigoPostal fromId(Long id) {\n if (id == null) {\n return null;\n }\n CodigoPostal codigoPostal = new CodigoPostal();\n codigoPostal.setId(id);\n return codigoPostal;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {UsuarioMapper.class, FileMapper.class})\npublic interface RateMapper extends EntityMapper<RateDTO, Rate> {\n\n @Mapping(source = \"usuario.id\", target = \"usuarioId\")\n @Mapping(source = \"file.id\", target = \"fileId\")\n RateDTO toDto(Rate rate); \n\n @Mapping(source = \"usuarioId\", target = \"usuario\")\n @Mapping(source = \"fileId\", target = \"file\")\n Rate toEntity(RateDTO rateDTO);\n\n default Rate fromId(Long id) {\n if (id == null) {\n return null;\n }\n Rate rate = new Rate();\n rate.setId(id);\n return rate;\n }\n}",
"public static String getEntityMappingFieldPath(Class<?> dtoType, String fieldPath) {\n if (null != dtoType && !StringUtils.isEmpty(fieldPath)) {\n String[] paths = fieldPath.split(Constants.DOT_REGEX);\n Field field = ObjectUtils.getField(dtoType, paths[0], true);\n String entityFieldName = getEntityMappingFieldPath(field);\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (paths.length > 1 && validate(innerClass)) {\n String nextPath = fieldPath.substring(fieldPath.indexOf(Constants.DOT) + 1);\n entityFieldName = entityFieldName + Constants.DOT + getEntityMappingFieldPath(innerClass, nextPath);\n }\n return entityFieldName;\n }\n return null;\n }",
"@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }",
"Comment dtoToEntity(CommentDto commentDto);",
"public abstract T toObject(String uuid, Map<String, Object> data);",
"Object toDomain(Object entity, Settings settings);",
"@Mapper(componentModel = \"spring\", uses = {EntryDataMapper.class})\npublic interface InvoiceLineMapper extends EntityMapper<InvoiceLineDTO, InvoiceLine> {\n\n @Mapping(source = \"entryData.id\", target = \"entryDataId\")\n InvoiceLineDTO toDto(InvoiceLine invoiceLine);\n\n @Mapping(source = \"entryDataId\", target = \"entryData\")\n @Mapping(target = \"attributes\", ignore = true)\n InvoiceLine toEntity(InvoiceLineDTO invoiceLineDTO);\n\n default InvoiceLine fromId(Long id) {\n if (id == null) {\n return null;\n }\n InvoiceLine invoiceLine = new InvoiceLine();\n invoiceLine.setId(id);\n return invoiceLine;\n }\n}",
"public abstract P toEntity();",
"ProcessOperation<Map<String, Object>> map();",
"@Mappings({\n\n @Mapping(target = \"passengerEntity\", source = \"ticketDto.passengerDto\"),\n @Mapping(target = \"ticketScheduleSectionEntityList\", source = \"ticketDto.ticketScheduleSectionDtoList\")\n })\n TicketEntity toEntity(TicketDto ticketDto);",
"List<E> mapToEntity(List<D> dto);",
"@Mapper(componentModel = \"spring\", uses = {ProOrderMapper.class})\r\npublic interface ProOrderItemMapper extends EntityMapper<ProOrderItemDTO, ProOrderItem> {\r\n\r\n @Mapping(source = \"proOrder.id\", target = \"proOrderId\")\r\n ProOrderItemDTO toDto(ProOrderItem proOrderItem);\r\n\r\n @Mapping(source = \"proOrderId\", target = \"proOrder\")\r\n ProOrderItem toEntity(ProOrderItemDTO proOrderItemDTO);\r\n\r\n default ProOrderItem fromId(Long id) {\r\n if (id == null) {\r\n return null;\r\n }\r\n ProOrderItem proOrderItem = new ProOrderItem();\r\n proOrderItem.setId(id);\r\n return proOrderItem;\r\n }\r\n}",
"private Object convertFieldToDB(Object value, boolean fullsave) {\n if(value == null)\n return null;\n \n if(value instanceof Enum)\n return ((Enum)value).name();\n\n if(value instanceof Base)\n return convertBaseToDB((Base) value, fullsave);\n \n if (value instanceof Base[]) {\n BasicDBList list = new BasicDBList();\n for(Base b : (Base[])value)\n list.add(convertBaseToDB((Base) b, fullsave));\n \n return list;\n }\n \n if (value instanceof Collection) {\n Collection l = (Collection)value; \n\n if(l.size() > 0 && Base.class.isAssignableFrom(l.iterator().next().getClass())) { \n BasicDBList list = new BasicDBList();\n for(Base b : (Collection<Base>)l)\n list.add(convertBaseToDB(b, fullsave));\n \n return list;\n }\n }\n \n if (value instanceof Map) {\n Map m = (Map)value; \n\n if(m.size() > 0 && m.keySet().iterator().next() instanceof String &&\n Base.class.isAssignableFrom(m.values().iterator().next().getClass())) {\n BasicDBObject map = new BasicDBObject();\n for(Map.Entry<String, Base> e : ((Map<String, Base>)m).entrySet())\n map.put(e.getKey(), convertBaseToDB(e.getValue(), fullsave));\n \n return map;\n }\n }\n \n return value;\n }",
"@Override\n public Decoder<Object> getMapValueDecoder() {\n return _mapValueDecoder;\n }",
"protected void prepareEntityToNodeMap()\r\n\t{\n\t}",
"public Object convert(Object fromValue) {\n RawObject oldDataRawObject = (RawObject) fromValue;\n RawObject oldKeyRawObject = (RawObject)oldDataRawObject.\n getSuper().getValues().get(\"keys\");\n Object[] oldDataKeyValue = \n (Object[])oldKeyRawObject.getElements();\n RawObject oldValueRawObject = (RawObject)oldDataRawObject.\n getSuper().getValues().get(\"values\");\n \n ArrayList<RawObject> newDataKeyValue = \n new ArrayList<RawObject>();\n RawObject myEnumRawObject = new RawObject(myEnumType, \"DATA\");\n newDataKeyValue.add(myEnumRawObject);\n \n RawObject newKeyRawObject = new RawObject\n (oldKeyRawObject.getType(), newDataKeyValue.toArray());\n Map<String, Object> \n newDataSuperValue = new HashMap<String, Object>();\n newDataSuperValue.put(\"keys\", newKeyRawObject);\n newDataSuperValue.put(\"values\", oldValueRawObject);\n RawObject newDataSuperRawObject = \n new RawObject(newDataSuperType, newDataSuperValue, null);\n Map<String, Object> newDataValue = \n new HashMap<String, Object>();\n RawObject newDataRawObject = \n new RawObject(newDataType, newDataValue, \n newDataSuperRawObject);\n return newDataRawObject;\n }",
"@Override\n public SystemResourcePojo entityToPojo(SystemResource entity) {\n\n SystemResourcePojo pojo = new SystemResourcePojo();\n\n pojo.setPublicKey(entity.getPublicKey());\n pojo.setName(entity.getName());\n //pojo.setPath(entity.getPath());\n pojo.setUrl(entity.getUrl());\n pojo.setType(entity.getType());\n pojo.setOriginalFileName(entity.getOriginalFileName());\n return pojo;\n }",
"private PropertyValues handleMapType(String path,MutablePropertyValues values,Object data,Method method,int level){\n\t\tClass<?> eleType=GenericCollectionTypeResolver.getMapValueReturnType(method,level);\t\n\t\t\n\t\tif(null==eleType){\n\t\t\treturn values;\n\t\t}\n\t\tif(data instanceof Map<?, ?>){\n\t\t\tMap<?,?> dataMap=(Map<?, ?>) data;\n\t\t\tfor(Map.Entry<?, ?> entry:dataMap.entrySet()){\n\t\t\t\tString key=entry.getKey().toString();\n\t\t\t\tObject value=entry.getValue();\n\t\t\t\tString subPath=path+PropertyAccessor.PROPERTY_KEY_PREFIX+key+PropertyAccessor.PROPERTY_KEY_SUFFIX; \n\t\t\t\tvalues.addPropertyValues(resolve(subPath,value,eleType,method,level+1));\n\t\t\t}\n\t\t}\n\t\treturn values;\n\t}",
"private History convertDTOToEntity(HistoryDTO historyDto) {\n\t\tHistory history = modelMapper.map(historyDto, History.class);\n\t\treturn history;\n\t}",
"void setValue(String childID, Object value) throws ConverterException, IllegalAccessException;",
"public static CodeBlock generateToModelForMap(Field field, GenerationPackageModel generationInfo) throws DefinitionException, InnerClassGenerationException {\n if (field.getGenericType().getTypeName().equals(CLASS_MAP) || field.getGenericType().getTypeName().matches(PATTERN_FOR_GENERIC_INNER_TYPES))\n throw new DefinitionException(format(UNABLE_TO_DEFINE_GENERIC_TYPE,\n field.getGenericType().getTypeName(),\n field.getName(),\n field.getDeclaringClass().getSimpleName(),\n TO_MODEL + field.getDeclaringClass().getSimpleName()));\n Type genericType = field.getGenericType();\n ParameterizedType parameterizedType = (ParameterizedType) genericType;\n Type keyType = parameterizedType.getActualTypeArguments()[0];\n Type valueType = parameterizedType.getActualTypeArguments()[1];\n String mapGetter = calculateMapGetter(keyType.getTypeName(), valueType.getTypeName());\n\n Class keyClass = (Class) keyType;\n Class valueClass = (Class) valueType;\n\n switch (mapGetter) {\n case GET_MAP_PRIMITIVE_KEY:\n createMapperForInnerClassIfNeeded(valueClass, generationInfo);\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapGetter,\n field.getName(),\n field.getName(),\n PrimitiveMapping.class,\n getToModelMappingFromType(keyType),\n getToModelMappingFromType(valueType)))\n .build();\n case GET_MAP_PRIMITIVE_VALUE:\n createMapperForInnerClassIfNeeded(keyClass, generationInfo);\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapGetter,\n field.getName(),\n field.getName(),\n getToModelMappingFromType(keyType),\n PrimitiveMapping.class,\n getToModelMappingFromType(valueType)))\n .build();\n case GET_MAP_PRIMITIVE_KEY_VALUE:\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapGetter,\n field.getName(),\n field.getName(),\n PrimitiveMapping.class,\n getToModelMappingFromType(keyType),\n PrimitiveMapping.class,\n getToModelMappingFromType(valueType)))\n .build();\n default:\n createMapperForInnerClassIfNeeded(valueClass, generationInfo);\n createMapperForInnerClassIfNeeded(keyClass, generationInfo);\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapGetter,\n field.getName(),\n field.getName(),\n getToModelMappingFromType(keyType),\n getToModelMappingFromType(valueType)))\n .build();\n }\n }",
"EntityData<?> getEntityData();",
"public UserFile mapUserFileEntityToUserFile(UserFileEntity userFileEntity) {\n\t\tif(userFileEntity == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\t//--- Generic mapping \n\t\tUserFile userFile = map(userFileEntity, UserFile.class);\n\n\t\treturn userFile;\n\t}",
"@Mappings({\n\t\t@Mapping(target=\"id\", source=\"entity.id\"),\n\t\t@Mapping(target=\"userId\", source=\"entity.userId\"),\n\t\t@Mapping(target=\"task_description\", source=\"entity.description\"),\n\t\t@Mapping(target=\"createdDate\", source=\"entity.createdDate\"),\n\t\t@Mapping(target=\"modifiedDate\", source=\"entity.modifiedDate\")\n\t\t//@Mapping(target=\"isDeleted\", source=\"entity.isDeleted\")\n\t\t})\n\n\t\tTaskDto taskToTaskDTO(Task entity);",
"void mapToExistingEntity(D dto, @MappingTarget E entity);",
"protected abstract void processDTO();",
"@Mapper(componentModel = \"spring\", uses = {UtilisateurMapper.class, DepotMapper.class})\npublic interface UtilisateurDepotPKMapper extends EntityMapper<UtilisateurDepotPKDTO, UtilisateurDepotPK> {\n\n @Mapping(source = \"utilisateur.id\", target = \"utilisateurId\")\n @Mapping(source = \"depot.id\", target = \"depotId\")\n UtilisateurDepotPKDTO toDto(UtilisateurDepotPK utilisateurDepotPK);\n\n @Mapping(source = \"utilisateurId\", target = \"utilisateur\")\n @Mapping(source = \"depotId\", target = \"depot\")\n UtilisateurDepotPK toEntity(UtilisateurDepotPKDTO utilisateurDepotPKDTO);\n\n default UtilisateurDepotPK fromId(Long id) {\n if (id == null) {\n return null;\n }\n UtilisateurDepotPK utilisateurDepotPK = new UtilisateurDepotPK();\n utilisateurDepotPK.setId(id);\n return utilisateurDepotPK;\n }\n}",
"@Override\n\tpublic Object convert(Object original) {\n\t\tif (original == null)\n\t\t\treturn OTHER;\n\n\t\tif (!(original instanceof PersonAttribute))\n\t\t\treturn \"Invalid: \" + original.toString();\n\n\t\tPersonAttribute pa = (PersonAttribute) original;\n\n\t\tString entryPoint = locationMap.get(pa.getValue());\n\n\t\tif (entryPoint != null)\n\t\t\treturn entryPoint;\n\n\t\treturn OTHER;\n\t}",
"public void toEntity(){\n\n }",
"public Content mapContentEntityToContent(ContentEntity contentEntity) {\n\t\tif(contentEntity == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\t//--- Generic mapping \n\t\tContent content = map(contentEntity, Content.class);\n\n\t\treturn content;\n\t}",
"public static UserDTO mapEntityIntoDTO(UserEntity entity) {\n \tif (entity == null) {\n \t\treturn null;\n \t}\n \n \tUserDTO dto = new UserDTO();\n \t\n \tdto.setLogin(entity.getLogin());\n\n \tdto.setPassword(entity.getPassword());\n \t// mapValue(entity, dto, \"password\");\n\n \t//dto.setQuota(entity.getQuota());\n \tModelDTOMapper.readEntityFieldToDto(dto, \"quota\", entity, \"quota\", new ConvertIntToLong());\n \t\n \t// dto.setEnabled(entity.getEnabled());\n \tModelDTOMapper.readEntityFieldToDto(dto, entity, \"enabled\");\n return dto;\n }",
"@Mapper(componentModel = SpringContextUtil.SPRING)\npublic interface MapstructService {\n\n @Mappings({\n @Mapping(source = \"alId\", target = \"blId\"),\n @Mapping(source = \"alName\", target = \"blName\"),\n @Mapping(source = \"alDate\", target = \"blDate\", dateFormat = DateUtil.DATE_FORMAT_MINUTE),\n @Mapping(target = \"blSum\", expression = \"java(amo.getAlId() * 100)\"),\n @Mapping(target = \"blbb\", constant = \"别bb\")\n })\n Bmo convert(Amo amo);\n}",
"public void updateAttributeAddObjectToCollection(String attributeName, Object mapKey, Object value) {\n DatabaseMapping mapping = this.query.getDescriptor().getMappingForAttributeName(attributeName);\n if (mapping == null) {\n throw DescriptorException.mappingForAttributeIsMissing(attributeName, getDescriptor());\n }\n\n Object clone = this.getObject();\n Object cloneValue = value;\n Object original = null;\n\n //only set the original object if we need to update it, ie before the merge takes place\n if ((this.eventCode == DescriptorEventManager.PostCloneEvent) || (this.eventCode == DescriptorEventManager.PostMergeEvent)) {\n original = this.getOriginalObject();\n }\n Object originalValue = value;\n ObjectChangeSet eventChangeSet = this.getChangeSet();\n Object valueForChangeSet = value;\n\n if ((this.query != null) && this.query.isObjectLevelModifyQuery()) {\n clone = ((ObjectLevelModifyQuery)this.query).getObject();\n eventChangeSet = ((ObjectLevelModifyQuery)this.query).getObjectChangeSet();\n }\n ClassDescriptor descriptor = getSession().getDescriptor(value.getClass());\n\n if (descriptor != null) {\n //There is a descriptor for the value being passed in so we must be carefull\n // to convert the value before assigning it.\n if (eventChangeSet != null) {\n valueForChangeSet = descriptor.getObjectBuilder().createObjectChangeSet(value, (UnitOfWorkChangeSet)eventChangeSet.getUOWChangeSet(), getSession());\n }\n if (original != null) {\n // must be a unitOfWork because only the postMerge, and postClone events set this attribute\n originalValue = ((UnitOfWorkImpl)getSession()).getOriginalVersionOfObject(value);\n }\n }\n\n if (clone != null) {\n Object collection = mapping.getRealCollectionAttributeValueFromObject(clone, getSession());\n mapping.getContainerPolicy().addInto(mapKey, cloneValue, collection, getSession());\n }\n if (original != null) {\n Object collection = mapping.getRealCollectionAttributeValueFromObject(original, getSession());\n mapping.getContainerPolicy().addInto(mapKey, originalValue, collection, getSession());\n }\n if (getRecord() != null) {\n AbstractRecord tempRow = getDescriptor().getObjectBuilder().createRecord();\n\n // pass in temp Row because most mappings use row.add() not row.put() for\n // perf reasons. We are using writeFromObjectIntoRow in order to support\n // a large number of types.\n mapping.writeFromObjectIntoRow(clone, tempRow, getSession());\n ((AbstractRecord)getRecord()).mergeFrom(tempRow);\n }\n if (eventChangeSet != null) {\n mapping.simpleAddToCollectionChangeRecord(mapKey, valueForChangeSet, eventChangeSet, getSession());\n }\n }",
"@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n public static Object convertField(Class<?> fieldConverterType, Object value, boolean convertToEntity) {\n if (null != fieldConverterType) {\n if (FieldConverter.class.isAssignableFrom(fieldConverterType)) {\n try {\n FieldConverter fieldConverter = (FieldConverter) ObjectUtils.newInstance(fieldConverterType);\n if (!convertToEntity) {\n value = fieldConverter.convertToFieldDataTransferObject(value);\n } else {\n value = fieldConverter.convertToFieldEntity(value);\n }\n } catch (InvocationTargetException | NoSuchMethodException | InstantiationException | IllegalAccessException e) {\n throw new ConverterFieldException(\"Cannot convert field \" + value.getClass().getName() + \" with \" + fieldConverterType.getName() + \" converter\");\n }\n }\n }\n return value;\n }",
"@Mapper(componentModel = \"spring\", uses = {RoomExpenseSplitMapper.class})\npublic interface RoomExpenseSplitRecordMapper extends EntityMapper<RoomExpenseSplitRecordDTO, RoomExpenseSplitRecord> {\n\n @Mapping(source = \"split.id\", target = \"splitId\")\n RoomExpenseSplitRecordDTO toDto(RoomExpenseSplitRecord roomExpenseSplitRecord);\n\n @Mapping(source = \"splitId\", target = \"split\")\n RoomExpenseSplitRecord toEntity(RoomExpenseSplitRecordDTO roomExpenseSplitRecordDTO);\n\n default RoomExpenseSplitRecord fromId(Long id) {\n if (id == null) {\n return null;\n }\n RoomExpenseSplitRecord roomExpenseSplitRecord = new RoomExpenseSplitRecord();\n roomExpenseSplitRecord.setId(id);\n return roomExpenseSplitRecord;\n }\n}",
"@Test\n public void testMappedValues() throws JSONException {\n JSONObject jo = new JSONObject(\"{\\\"valueData\\\":{\\\"data\\\":\\\"Value Name\\\"}}\");\n JsonableTestClassWithMapping jtc = Jsonable.loadFromJson(jo, JsonableTestClassWithMapping.class);\n assertEquals(\"Value Name\", jtc.valueData.data);\n jo = new JSONObject(\"{\\\"value\\\":\\\"Value Name\\\"}\");\n jtc = Jsonable.loadFromJson(jo, JsonableTestClassWithMapping.class);\n assertEquals(\"Value Name\", jtc.valueData.data);\n }",
"FROM toObject(CONTEXT context, final TO value);",
"java.util.Map<java.lang.String, java.lang.String>\n getFieldMap();",
"public E copyFromEntity(@Nonnull E value, @Nullable FileEntity file)\n {\n if(file == null)\n {\n value = _setFile.apply(value, null);\n }\n else\n {\n value = _saveValue.apply(value);\n FileEntityFileItem fileItem = new FileEntityFileItem(file);\n FileEntity copy = _fileSystemDAO.copy(file, _getDirectory.apply(value, fileItem),\n _getFileName.apply(value, fileItem), null, FileSystemEntityCreateMode.overwrite);\n value = _setFile.apply(value, copy);\n }\n value = _saveValue.apply(value);\n return value;\n }",
"protected abstract Object toObject(ByteBuffer content, Type targetType) throws BeanConversionException;",
"@Test\n void fromDto() {\n\n final SomeDto dto = SomeDto.builder()\n .text(\"test\")\n .value(123)\n .build();\n\n final SomeMapper mapper = SomeMapper.INSTANCE;\n final SomeModel model = mapper.mapFrom(dto);\n final SomeModel bazModel = mapper.update(dto.withText(\"baz\"), model);\n\n assertThat(bazModel.getText()).isEqualTo(\"baz\");\n }",
"static Map<Name, ObjectConverter> createConversionMap (final FeatureType input, final FeatureType toConvert) throws NonconvertibleObjectException{\n\n if(input.equals(toConvert)){\n return null;\n }\n final Map<Name, ObjectConverter> map = new HashMap<Name, ObjectConverter>();\n\n for (PropertyDescriptor toConvertDesc : toConvert.getDescriptors()) {\n for(PropertyDescriptor inputDesc : input.getDescriptors()){\n\n //same property name\n if(toConvertDesc.getName().equals(inputDesc.getName())){\n\n final Class inputClass = inputDesc.getType().getBinding();\n final Class toConvertClass = toConvertDesc.getType().getBinding();\n if(toConvertClass.equals(inputClass)){\n //same name and same type\n map.put(toConvertDesc.getName(), null);\n }else{\n //same name but different type\n if(toConvertDesc instanceof GeometryDescriptor){\n map.put(toConvertDesc.getName(), new GeomConverter(toConvertClass, inputClass));\n }else{\n map.put(toConvertDesc.getName(), ConverterRegistry.system().converter(toConvertClass, inputClass));\n }\n }\n }\n }\n }\n return map;\n\n }",
"public PropertyDefDto getDto();",
"Object convertJavaValueToDBValue(Object value, Class<?> javaType);",
"public Map<ProvisioningEntity, Object> getTargetEntityToTargetNativeEntity() {\n return targetEntityToTargetNativeEntity;\n }",
"public Object convert(Object fromValue) {\n RawObject oldDataRawObject = (RawObject) fromValue;\n Object[] oldElements = oldDataRawObject.getElements();\n Map<String, Object> integerClassValues = \n new HashMap<String, Object>();\n integerClassValues.put(\"data\", oldElements[0]);\n RawObject integerClassObject = \n new RawObject(integerClassType, integerClassValues, null);\n RawObject[] newElements = new RawObject[1];\n newElements[0] = integerClassObject;\n RawObject newDataRawObject = \n new RawObject(newDataType, newElements);\n return newDataRawObject;\n }",
"@Mapper(componentModel = \"spring\")\npublic interface SaleMapper extends EntityMapper<SaleDto, Sale> {\n\n @Mapping(source = \"client.id\", target = \"clientId\")\n @Mapping(source = \"client.name\", target = \"clientName\")\n SaleDto toDto(Sale sale);\n\n @Mapping(source = \"clientId\", target = \"client.id\")\n Sale toEntity(SaleDto saleDTO);\n\n default Sale fromId(Long id) {\n if (id == null) {\n return null;\n }\n Sale sale = new Sale();\n sale.setId(id);\n return sale;\n }\n\n}",
"@Override\r\n\tpublic AbstractDto mapToDto() {\n\t\treturn null;\r\n\t}",
"private void prepareFields(Entity entity, boolean usePrimaryKey) \r\n\t\t\tthrows IllegalArgumentException, IllegalAccessException, InvocationTargetException{\r\n\t\tprimaryKeyTos = new ArrayList<FieldTO>();\r\n\t\tfieldTos = new ArrayList<FieldTO>();\r\n\t\tField[] fields = entity.getClass().getDeclaredFields();\t\r\n\t\t\r\n\t\t//trunk entity to persistence\r\n\t\tfor(int i=0; i<fields.length; i++){\r\n\t\t\tField reflectionField = fields[i];\r\n\t\t\tif(reflectionField!=null){\r\n\t\t\t\treflectionField.setAccessible(true);\r\n\t\t\t\tAnnotation annoField = reflectionField.getAnnotation(GPAField.class);\r\n\t\t\t\tAnnotation annoFieldPK = reflectionField.getAnnotation(GPAPrimaryKey.class);\r\n\t\t\t\tAnnotation annoFieldBean = reflectionField.getAnnotation(GPAFieldBean.class);\r\n\t\t\t\t/* \r\n\t\t\t\t ainda falta validar a chave primária do objeto\r\n\t\t\t\t por enquanto so esta prevendo pk usando sequence no banco\r\n\t\t\t\t objeto id sempre é gerado no banco por uma sequence\r\n\t\t\t\t*/\r\n\t\t\t\tif(annoFieldPK!=null && annoFieldPK instanceof GPAPrimaryKey){\r\n\t\t\t\t\tGPAPrimaryKey pk = (GPAPrimaryKey)annoFieldPK;\r\n\t\t\t\t\t//if(pk.ignore() == true){\r\n\t\t\t\t\t//\tcontinue;\r\n\t\t\t\t\t//}else{\r\n\t\t\t\t\tString name = pk.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t\t//}\r\n\t\t\t\t}\r\n\t\t\t\tif(annoField!=null && annoField instanceof GPAField){\r\n\t\t\t\t\tGPAField field = (GPAField)annoField;\r\n\t\t\t\t\tString name = field.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif(annoFieldBean!=null && annoFieldBean instanceof GPAFieldBean){\r\n\t\t\t\t\tGPAFieldBean field = (GPAFieldBean)annoFieldBean;\r\n\t\t\t\t\tString name = field.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Mapper(componentModel = \"spring\", uses = {AanvraagberichtMapper.class})\npublic interface FdnAanvragerMapper extends EntityMapper<FdnAanvragerDTO, FdnAanvrager> {\n\n @Mapping(source = \"aanvraagbericht.id\", target = \"aanvraagberichtId\")\n FdnAanvragerDTO toDto(FdnAanvrager fdnAanvrager);\n\n @Mapping(target = \"adres\", ignore = true)\n @Mapping(target = \"legitimatiebewijs\", ignore = true)\n @Mapping(target = \"werksituaties\", ignore = true)\n @Mapping(target = \"gezinssituaties\", ignore = true)\n @Mapping(target = \"financieleSituaties\", ignore = true)\n @Mapping(source = \"aanvraagberichtId\", target = \"aanvraagbericht\")\n FdnAanvrager toEntity(FdnAanvragerDTO fdnAanvragerDTO);\n\n default FdnAanvrager fromId(Long id) {\n if (id == null) {\n return null;\n }\n FdnAanvrager fdnAanvrager = new FdnAanvrager();\n fdnAanvrager.setId(id);\n return fdnAanvrager;\n }\n}",
"private void copyDtoToEntity(UserDTO dto, User entity) {\n\t\tentity.setFullName(dto.getFullName());\n\t\tentity.setEmail(dto.getEmail());\n\t\tentity.setCpf(dto.getCpf());\n\t\tentity.setBirthDate(dto.getBirthDate());\n\t}",
"public static CodeBlock generateFromModelForMap(Field field, GenerationPackageModel generationInfo) throws DefinitionException, InnerClassGenerationException {\n if (field.getGenericType().getTypeName().equals(CLASS_MAP) || field.getGenericType().getTypeName().matches(PATTERN_FOR_GENERIC_INNER_TYPES))\n throw new DefinitionException(format(UNABLE_TO_DEFINE_GENERIC_TYPE,\n field.getGenericType().getTypeName(),\n field.getName(),\n field.getDeclaringClass().getSimpleName(),\n FROM_MODEL + field.getDeclaringClass().getSimpleName()));\n String getField = GET + String.valueOf(field.getName().charAt(0)).toUpperCase() + field.getName().substring(1);\n Type genericType = field.getGenericType();\n ParameterizedType parameterizedType = (ParameterizedType) genericType;\n Type keyType = parameterizedType.getActualTypeArguments()[0];\n Type valueType = parameterizedType.getActualTypeArguments()[1];\n String mapBuilder = calculateMapBuilder(keyType.getTypeName(), valueType.getTypeName());\n\n Class keyClass = (Class) keyType;\n Class valueClass = (Class) valueType;\n\n switch (mapBuilder) {\n case MAP_FIELD_PRIMITIVE_KEY:\n createMapperForInnerClassIfNeeded(valueClass, generationInfo);\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapBuilder,\n field.getName(),\n getField,\n PrimitiveMapping.class,\n getFromModelMappingFromType(keyType),\n getFromModelMappingFromType(valueType)))\n .build();\n case MAP_FIELD_PRIMITIVE_VALUE:\n createMapperForInnerClassIfNeeded(keyClass, generationInfo);\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapBuilder,\n field.getName(),\n getField,\n getFromModelMappingFromType(keyType),\n PrimitiveMapping.class,\n getFromModelMappingFromType(valueType)))\n .build();\n case MAP_FIELD_PRIMITIVE_KEY_VALUE:\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapBuilder,\n field.getName(),\n getField,\n PrimitiveMapping.class,\n getFromModelMappingFromType(keyType),\n PrimitiveMapping.class,\n getFromModelMappingFromType(valueType)))\n .build();\n default:\n createMapperForInnerClassIfNeeded(valueClass, generationInfo);\n createMapperForInnerClassIfNeeded(keyClass, generationInfo);\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapBuilder,\n field.getName(),\n getField,\n getFromModelMappingFromType(keyType),\n getFromModelMappingFromType(valueType)))\n .build();\n }\n }",
"private List<Entity> processEntities(List<Mapping> mappings, Map record) throws Exception{\n\n\t\tList<Entity> builtEnts = new ArrayList<Entity>();\n\t\t\n\t\tList<Entity> entities = buildEntities();\n\t\t\n\t\tboolean isOmitted = isOmitted(record);\n\t\t\n\t\t/*\n\t\tfor(String omkeyfull: OMISSIONS_MAP.keySet()) {\n\t\t\t\n\t\t\tString[] omkeys = omkeyfull.split(\":\");\n\t\t\t\n\t\t\tisOmitted = iterateOmkeys(Arrays.asList(omkeys), record);\n\t\t\t\n\t\t}\n*/\t\t\n\t\t\n\t\tif(!isOmitted){\n\t\t\t\n\t\t\tfor(Mapping mapping: mappings){\n\t\t\t\tList<Object> relationalValue = new ArrayList<Object>();\n\n\t\t\t\tif(!IS_DIR) {\n\t\t\t\t\t\n\t\t\t\t\tString[] array = new String[mapping.getKey().split(\":\").length - 1];\n\t\t\t\t\tarray[0] = mapping.getKey().split(\":\")[0] + \":\" + RELATIONAL_KEY;\n\t\t\t\t\trelationalValue = findValueByKey(record,array);\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tString[] array = new String[mapping.getKey().split(\":\").length - 1];\n\t\t\t\t\tarray[0] = mapping.getKey().split(\":\")[0] + \":\" + RELATIONAL_KEY;\n\t\t\t\t\trelationalValue = findValueByKey(record,array);\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tDataType dt = DataType.initDataType(StringUtils.capitalize(mapping.getDataType()));\n\t\t\t\t\n\t\t\t\tif(!mapping.getDataType().equalsIgnoreCase(\"OMIT\")){\n\t\t\t\t\tList<Object> values = new ArrayList<Object>();\n\t\t\t\t\t\n\t\t\t\t\tif(!IS_DIR) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tString[] array = new String[mapping.getKey().split(\":\").length - 1];\n\t\t\t\t\t\tarray[0] = mapping.getKey();\n\t\t\t\t\t\tvalues = findValueByKey2(record,new ArrayList(Arrays.asList(array)));\n\t\t\t\t\t\t//values = findValueByKey2(record, new ArrayList(Arrays.asList(mapping.getKey().split(\":\"))));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tString[] array = new String[mapping.getKey().split(\":\").length - 1];\n\t\t\t\t\t\tarray[0] = mapping.getKey();\n\t\t\t\t\t\tvalues = findValueByKey2(record,new ArrayList(Arrays.asList(array)));\n\t\t\t\t\t}\n\t\t\t\t\t\n\n\t\t\t\t\tMap<String,String> options = mapping.buildOptions(mapping);\n\t\t\t\t\t\n\t\t\t\t\tif(!options.isEmpty()) {\n\t\t\t\t\t\tif(options.containsKey(\"TYPE\")) {\n\t\t\t\t\t\t\tString type = options.get(\"TYPE\");\n\t\t\t\t\t\t\tif(type.equalsIgnoreCase(\"datediffin\")) {\n\n\t\t\t\t\t\t\t\tString dateDiffFrom = options.containsKey(\"DIFFFROM\") ? options.get(\"DIFFFROM\").replaceAll(\"-\",\":\"): null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString mask = options.containsKey(\"MASK\") ? options.get(\"MASK\"): null;\n\n\t\t\t\t\t\t\t\tString diffIn = options.containsKey(\"DIFFIN\") ? options.get(\"DIFFIN\"): null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLocalDate startDateInclusive = null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLocalDate endDateExclusive = null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(dateDiffFrom.equalsIgnoreCase(\"sysdate\")) {\n\t\t\t\t\t\t\t\t\tstartDateInclusive = LocalDate.now();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tObject fromO = \n\t\t\t\t\t\t\t\t\t\t\tfindValueByKey(new LinkedHashMap(record), dateDiffFrom.split(\":\")).get(0);\n\n\t\t\t\t\t\t\t\t\tif(mask != null) {\n\t\t\t\t\t\t\t\t\t\tif(fromO != null) {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tString from = fromO.toString();\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tstartDateInclusive = LocalDate.parse(from, DateTimeFormatter.ofPattern(mask) );\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} else throw new Exception(\"No mask given\");\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor(int x = 0; x < values.size(); x++) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tString value = values.get(0).toString();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tendDateExclusive = value.isEmpty() ? null: LocalDate.parse(value, DateTimeFormatter.ofPattern(mask) );\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(endDateExclusive != null) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tPeriod period = Period.between(endDateExclusive, startDateInclusive );\n\n\t\t\t\t\t\t\t\t\t\tvalues.remove(x);\n\t\t\t\t\t\t\t\t\t\tif(diffIn.equalsIgnoreCase(\"years\")) {\n\t\t\t\t\t\t\t\t\t\t\tvalues.add(x, period.getYears());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if(type.equalsIgnoreCase(\"datedifffrom\")) {\n\t\t\t\t\t\t\t\tString dateDiffFrom = options.containsKey(\"DIFFFROM\") ? options.get(\"DIFFFROM\").replaceAll(\"-\",\":\"): null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString mask = options.containsKey(\"MASK\") ? options.get(\"MASK\"): null;\n\n\t\t\t\t\t\t\t\tString diffIn = options.containsKey(\"DIFFIN\") ? options.get(\"DIFFIN\"): null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLocalDate startDateInclusive = null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLocalDate endDateExclusive = null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(dateDiffFrom.equalsIgnoreCase(\"sysdate\")) {\n\t\t\t\t\t\t\t\t\tstartDateInclusive = LocalDate.now();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tObject fromO = \n\t\t\t\t\t\t\t\t\t\t\tfindValueByKey(new LinkedHashMap(record), dateDiffFrom.split(\":\")).get(0);\n\n\t\t\t\t\t\t\t\t\tif(mask != null) {\n\t\t\t\t\t\t\t\t\t\tif(fromO != null) {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tString from = fromO.toString();\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tstartDateInclusive = LocalDate.parse(from, DateTimeFormatter.ofPattern(mask) );\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} else throw new Exception(\"No mask given\");\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor(int x = 0; x < values.size(); x++) {\n\t\t\t\t\t\t\t\t\tif(values.get(0) != null) {\n\t\t\t\t\t\t\t\t\t\tString value = values.get(0).toString();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tendDateExclusive = value.isEmpty() ? null: LocalDate.parse(value, DateTimeFormatter.ofPattern(mask) );\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif(endDateExclusive != null) {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tPeriod period = Period.between(startDateInclusive, endDateExclusive);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tvalues.remove(x);\n\t\t\t\t\t\t\t\t\t\t\tif(diffIn.equalsIgnoreCase(\"years\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tvalues.add(x, period.getYears());\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tString mappingK = mapping.getKey().split(\":\")[0];\n\t\t\t\t\tString recordK = record.keySet().iterator().next().toString().split(\":\")[0];\n\t\t\t\t\tif(mappingK.equals(recordK)) {\n\t\t\t\t\t\tif(values == null) throw new Exception(\"Following Mapping does not exist in the datafile: \\n\"\n\t\t\t\t\t\t\t\t+ mapping.toCSV() + \"\\n\" +\n\t\t\t\t\t\t\t\t\" be sure that the column and file exist.\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(relationalValue == null) throw new Exception(\"Following Mapping does not exist in the datafile: \\n\"\n\t\t\t\t\t\t\t\t+ mapping.toCSV() + \"\\n\" +\n\t\t\t\t\t\t\t\t\" be sure that the column and file exist.\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tSet<Entity> newEnts = new HashSet<Entity>();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(values.isEmpty()) {\n\t\t\t\t\t\t\tif(INCLUDE_EMPTY_VALUES == true) {\n\t\t\t\t\t\t\t\tnewEnts = dt.generateTables(mapping, entities, values, relationalValue);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnewEnts = dt.generateTables(mapping, entities, values, relationalValue);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(newEnts != null && newEnts.size() > 0){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tbuiltEnts.addAll(newEnts);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t}\n\n\t\t}\n\t\treturn builtEnts;\t\t\n\t}",
"@Override\n public SystemResource pojoToEntity(SystemResourcePojo pojo){\n SystemResource entity = new SystemResource();\n\n entity.setName(pojo.getName());\n entity.setPath(pojo.getPath());\n entity.setType(pojo.getType());\n entity.setOriginalFileName(pojo.getOriginalFileName());\n entity.setUrl(pojo.getUrl());\n entity.setPublicKey(pojo.getPublicKey());\n return entity;\n }",
"public synchronized static void setFieldMap(String table, Map<String, String> javaToDbFieldMap) {\n ConcurrentHashMap<String, String> java2DbMap = getJava2DBFieldMap(table);\n ConcurrentHashMap<String, String> db2JavaMap = getDB2JavaFieldMap(table);\n if (javaToDbFieldMap != null && !javaToDbFieldMap.isEmpty()) {\n for (Map.Entry<String, String> entry : javaToDbFieldMap.entrySet()) {\n if (isNotBlank(entry.getKey()) && isNotBlank(entry.getValue())) {\n java2DbMap.put(entry.getKey(), entry.getValue());\n db2JavaMap.put(entry.getValue(), entry.getKey());\n }\n }\n }\n }",
"@Mapper(uses = DateMapper.class)\npublic interface ExerciseMapper {\n\n // Autogenerated code will map exercise object to ExerciseDTO\n // @Mapping(source = \"firstName\", target = \"name\") can be used if the field names do not match.\n ExerciseDTO convertToExerciseDTO(Exercise exercise);\n\n Exercise convertToExercise(ExerciseDTO exerciseDTO);\n\n}",
"private RecipeEntity mapToRecipeEntity(Recipe recipe) {\n\t\tRecipeEntity rEntity = new RecipeEntity();\n\t\t//Map primitive fields\n\t\trEntity.setId(recipe.getId());\n\t\trEntity.setName(recipe.getName());\n\t\trEntity.setType(recipe.getType());\n\t\trEntity.setServingCapacity(recipe.getServingCapacity());\n\t\t\n\t\t//Save current date time into recipe instance, if not given\n\t\tif(recipe.getCreationDateTime() == null) {\n\t\t\tOptional<Date> currentDateTime = Util.getCurrentDateTime();\n\t\t\tif(currentDateTime.isPresent())\n\t\t\t\tlog.debug(\"Current DateTime to be set in recipe entity: \"+currentDateTime.toString());\n\t\t\telse\n\t\t\t\tlog.warn(\"Setting null to current date time field in recipe entity\");\n\t\t\trEntity.setCreationDateTime(currentDateTime.get());\n\t\t} else {\n\t\t\tlog.debug(\"Retaining given creation date time value into recipe entity\");\n\t\t\trEntity.setCreationDateTime(recipe.getCreationDateTime());\n\t\t}\n\t\t\n\t\t//Convert ingredients list into String and set to recipe entity\n\t\tlog.debug(\"Number of ingredients to convert to string: \"+recipe.getIngredientsList().size());\n\t\tString ingredients = Util.convertToJSONString(recipe.getIngredientsList());\n\t\tlog.debug(\"Ingredients String: \"+ingredients);\n\t\trEntity.setIngredients(ingredients);\n\t\t\n\t\trEntity.setInstructions(recipe.getInstructions());\n\t\t\n\t\treturn rEntity;\n\t}",
"protected void addFieldToMap(Map<String, Object> fldNames2ValsMap, String ixFldName, String transMapName, String fieldVal)\n {\n if (transMapName != null && findTranslationMap(transMapName) != null)\n fieldVal = Utils.remap(fieldVal, findTranslationMap(transMapName), true);\n\n if (fieldVal != null && fieldVal.length() > 0)\n fldNames2ValsMap.put(ixFldName, fieldVal);\n }",
"@Mapper(componentModel = \"spring\", uses = {OgWorkPlaceTypesMapper.class})\npublic interface OgWorkPlacesMapper extends EntityMapper<OgWorkPlacesDTO, OgWorkPlaces> {\n\n @Mapping(source = \"idParent.id\", target = \"idParentId\")\n @Mapping(source = \"idParent.name\", target = \"idParentName\")\n @Mapping(source = \"idWorkPlaceTypes.id\", target = \"idWorkPlaceTypesId\")\n @Mapping(source = \"idWorkPlaceTypes.name\", target = \"idWorkPlaceTypesName\")\n OgWorkPlacesDTO toDto(OgWorkPlaces ogWorkPlaces);\n\n @Mapping(source = \"idParentId\", target = \"idParent\")\n @Mapping(source = \"idWorkPlaceTypesId\", target = \"idWorkPlaceTypes\")\n OgWorkPlaces toEntity(OgWorkPlacesDTO ogWorkPlacesDTO);\n\n default OgWorkPlaces fromId(Long id) {\n if (id == null) {\n return null;\n }\n OgWorkPlaces ogWorkPlaces = new OgWorkPlaces();\n ogWorkPlaces.setId(id);\n return ogWorkPlaces;\n }\n}",
"protected Map<String, Object> buildFieldValueMap(ExpenseTransferAccountingLine accountingLine) {\n Map<String, Object> fieldValues = new HashMap<String, Object>();\n\n fieldValues.put(KFSPropertyConstants.UNIVERSITY_FISCAL_YEAR, accountingLine.getPostingYear());\n fieldValues.put(KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE, accountingLine.getChartOfAccountsCode());\n fieldValues.put(KFSPropertyConstants.ACCOUNT_NUMBER, accountingLine.getAccountNumber());\n\n String subAccountNumber = accountingLine.getSubAccountNumber();\n subAccountNumber = StringUtils.isBlank(subAccountNumber) ? KFSConstants.getDashSubAccountNumber() : subAccountNumber;\n fieldValues.put(KFSPropertyConstants.SUB_ACCOUNT_NUMBER, subAccountNumber);\n\n fieldValues.put(KFSPropertyConstants.FINANCIAL_BALANCE_TYPE_CODE, accountingLine.getBalanceTypeCode());\n fieldValues.put(KFSPropertyConstants.FINANCIAL_OBJECT_CODE, accountingLine.getFinancialObjectCode());\n\n SystemOptions options = SpringContext.getBean(OptionsService.class).getOptions(accountingLine.getPostingYear());\n fieldValues.put(KFSPropertyConstants.FINANCIAL_OBJECT_TYPE_CODE, options.getFinObjTypeExpenditureexpCd());\n\n String subObjectCode = accountingLine.getFinancialSubObjectCode();\n subObjectCode = StringUtils.isBlank(subObjectCode) ? KFSConstants.getDashFinancialSubObjectCode() : subObjectCode;\n fieldValues.put(KFSPropertyConstants.FINANCIAL_SUB_OBJECT_CODE, subObjectCode);\n\n fieldValues.put(KFSPropertyConstants.EMPLID, accountingLine.getEmplid());\n fieldValues.put(KFSPropertyConstants.POSITION_NUMBER, accountingLine.getPositionNumber());\n\n return fieldValues;\n }",
"@Override\n\tpublic void convertDaoToFrom(CommonEntity ent) {\n\t\tMovie dao=(Movie) ent;\n\t\tthis.setBackgroundImage(dao.getBackgroundImage());\n\t\tthis.setDesc(dao.getDescription());\n\t\tthis.setEmbed(dao.getEmbed());\n\t\tthis.setFeatured(dao.isFeatured());\n\t\tthis.setLatitude(dao.getMap().getLattitude());\n\t\tthis.setLongitude(dao.getMap().getLongitude());\n\t\tthis.setName(dao.getTitle());\n\t\tthis.setRank(dao.getRank());\n\t\t\n\t\t\n\t}",
"private static HashMap<String, String> fieldsToMap(FieldMap inMap,\r\n FIXDataDictionary inDict) {\r\n HashMap<String, String> fields = new HashMap<String, String>();\r\n Iterator<Field<?>> iterator = inMap.iterator();\r\n while(iterator.hasNext()) {\r\n Field<?> f = iterator.next();\r\n String value;\r\n if(f instanceof StringField) {\r\n value = ((StringField)f).getValue();\r\n if (inDict != null) {\r\n String humanValue = inDict.getHumanFieldValue(f.getTag(),value);\r\n if(humanValue != null) {\r\n value = new StringBuilder().append(humanValue).\r\n append(\"(\").append(value). //$NON-NLS-1$\r\n append(\")\").toString(); //$NON-NLS-1$\r\n }\r\n }\r\n } else {\r\n value = String.valueOf(f.getObject());\r\n }\r\n String name = null;\r\n if (inDict != null) {\r\n name = inDict.getHumanFieldName(f.getTag());\r\n }\r\n if(name == null) {\r\n name = String.valueOf(f.getTag());\r\n } else {\r\n name = new StringBuilder().append(name).\r\n append(\"(\").append(f.getTag()). //$NON-NLS-1$\r\n append(\")\").toString(); //$NON-NLS-1$\r\n }\r\n fields.put(name,value);\r\n }\r\n return fields;\r\n }",
"public CoordinadorEntity toEntity(){\n \n CoordinadorEntity entity = new CoordinadorEntity(); \n entity.setId_coordinador(this.id_coodinador);\n entity.setNombres(this.nombres);\n entity.setApellidos(this.apellidos);\n entity.setGenero(this.genero);\n entity.setEmail(this.email);\n entity.setTipoDocumento(tipo_documento_id);\n entity.setNro_documento(this.nro_documento);\n \n return entity;\n }",
"OrderDto map(Order order);",
"protected abstract Object getEntryValue(T nativeEntry, String property);",
"@Override\n public D entityToDTO( final E entity )\n {\n //final String methodName = \"cachedDataToDTO\";\n //logMethodBegin( methodName, entity );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n D dto = super.entityToDTO( entity );\n /*\n * I think this is a good use of instanceof...although I am not convinced, I'll have to think about this...\n * If any stock DTO is a stock company container, it will be populated automatically with the stock company\n * information. No need for any sub cvl\n *\n * NEED TO SERIOUSLY THINK ABOUT A BETTER SOLUTION HERE....5/9/2017 Mike.\n *\n * Need to develop some sort of \"conversion\" registration so that subclasses can register \"converters\" to be\n * run on entity.\n *\n /*\n * StockPriceQuoteContainers contain everything in a StockPriceContainer so get that instead\n */\n /*\n if ( dto instanceof StockQuoteDTOContainer )\n {\n this.stockQuoteEntityService\n .setQuoteInformation( dto );\n }\n */\n /*\n * The quote contains the company name\n */\n /*\n else if ( dto instanceof StockCompanyEntityContainer )\n {\n this.stockCompanyEntityService\n .setCompanyInformation( (StockCompanyDTOContainer) dto );\n }\n if ( dto instanceof StockPriceQuoteDTOContainer )\n {\n this.stockPriceQuoteService\n .setStockPriceQuote( dto, ASYNCHRONOUS );\n }\n */\n\n /*\n * Convert the UUID to a string and get the notes source name for the UUID\n */\n if ( entity instanceof NotesSourceUuidContainer &&\n dto instanceof NotesSourceIdContainer )\n {\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n if ( notesSourceUuidContainer.getNotesSourceEntity().isPresent() )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer)dto;\n final StockNoteSourceEntity stockNoteSourceEntity = notesSourceUuidContainer.getNotesSourceEntity().get();\n notesSourceIdContainer.setNotesSourceName( stockNoteSourceEntity.getName() );\n notesSourceIdContainer.setNotesSourceId( stockNoteSourceEntity.getUuid().toString() );\n }\n }\n\n if ( dto instanceof TagsContainer )\n {\n final TagsContainer tagsContainer = (TagsContainer)dto;\n tagsContainer.setTags( this.stockTagService.findStockTags( UUIDUtil.uuid( tagsContainer.getCustomerId() ),\n StockTagEntity.StockTagReferenceType.STOCK_TO_BUY,\n UUIDUtil.uuid( tagsContainer.getEntityId() ) ) );\n }\n //logMethodEnd( methodName, dto );\n return dto;\n }",
"Object convertDBValueToJavaValue(Object value, Class<?> javaType);",
"@Override\n\tpublic void mapCursorValues(T entity, Cursor cursor, CursorInfo cursorInfo) {\n\t\tfor (Column column : mMappedColumns) {\n\t\t\tint index = cursorInfo.getColumnIndex(column);\n\t\t\tif (index != CursorInfo.INVALID_INDEX) {\n\t\t\t\tMappedField mappedField = column.getMappedField();\n\t\t\t\tmappedField.setFieldValue(entity, cursor, index);\n\t\t\t\tautoFetchRelatedParentField(cursor, cursorInfo, entity, mappedField);\n\t\t\t}\n\t\t}\n\t}",
"@Mapper(componentModel = \"spring\", uses = {HopDongMapper.class})\npublic interface GhiNoMapper extends EntityMapper<GhiNoDTO, GhiNo> {\n\n @Mapping(source = \"hopDong.id\", target = \"hopDongId\")\n GhiNoDTO toDto(GhiNo ghiNo);\n\n @Mapping(source = \"hopDongId\", target = \"hopDong\")\n GhiNo toEntity(GhiNoDTO ghiNoDTO);\n\n default GhiNo fromId(Long id) {\n if (id == null) {\n return null;\n }\n GhiNo ghiNo = new GhiNo();\n ghiNo.setId(id);\n return ghiNo;\n }\n}",
"@Nullable\n protected Object convertValueForType(MappingContext context, Object value) {\n Class<?> rawClass = context.getTypeInformation().getSafeToWriteClass();\n if (rawClass == null) {\n throw new ConfigMeMapperException(context, \"Cannot determine required type\");\n }\n\n // Step 1: check if a value transformer can perform a simple conversion\n Object result = leafValueHandler.convert(context.getTypeInformation(), value);\n if (result != null) {\n return result;\n }\n\n // Step 2: check if we have a special type like List that is handled separately\n result = handleSpecialTypes(context, value);\n if (result != null) {\n return result;\n }\n\n // Step 3: last possibility - assume it's a bean and try to map values to its structure\n return createBean(context, value);\n }",
"Object getConvertedValue() throws ConversionException;"
] | [
"0.695153",
"0.6356608",
"0.6351408",
"0.6057827",
"0.59293056",
"0.59232926",
"0.5651654",
"0.5568362",
"0.5537504",
"0.55309707",
"0.55228317",
"0.55205125",
"0.5512924",
"0.5398685",
"0.53504217",
"0.5346689",
"0.53332454",
"0.5284147",
"0.52700126",
"0.5257598",
"0.5248378",
"0.52449566",
"0.5240276",
"0.5230075",
"0.5229161",
"0.5226024",
"0.52243537",
"0.52243316",
"0.52199066",
"0.5194477",
"0.5176385",
"0.51718825",
"0.51665485",
"0.5145835",
"0.5109446",
"0.5097341",
"0.50829214",
"0.5076274",
"0.50744396",
"0.5074164",
"0.50574404",
"0.50504553",
"0.5045886",
"0.5035228",
"0.50309527",
"0.5030361",
"0.50287783",
"0.5024966",
"0.50033534",
"0.49959466",
"0.49916297",
"0.4990771",
"0.49905196",
"0.49833167",
"0.4975836",
"0.4968681",
"0.4955443",
"0.49545687",
"0.49356604",
"0.49330044",
"0.4932255",
"0.4929035",
"0.49273485",
"0.4919951",
"0.49190584",
"0.49105638",
"0.49017432",
"0.49015313",
"0.48973444",
"0.48869082",
"0.48863322",
"0.48843247",
"0.48836142",
"0.48824644",
"0.48801768",
"0.48735186",
"0.48732147",
"0.48720968",
"0.48718664",
"0.48667875",
"0.48658454",
"0.4861133",
"0.48497564",
"0.48495895",
"0.48486274",
"0.48410106",
"0.4838233",
"0.48321992",
"0.4829754",
"0.48294225",
"0.48292682",
"0.4819561",
"0.48172954",
"0.48162112",
"0.48148888",
"0.48110893",
"0.47999996",
"0.47965038",
"0.4795087",
"0.47906405"
] | 0.6408171 | 1 |
Your Code Goes Here! | public static List<String> theGame(List<String> words)
{
List<String> list = new ArrayList<>();
if (words.isEmpty() || words.size() == 1) return words;
if (words.get(0).length() != 0 ) list.add(words.get(0));
for (int i = 1; i < words.size(); i++) {
String prev = words.get(i - 1);
String current = words.get(i);
if ((prev.length() == 0 && current.length() != 0) || (current.length() == 0 && prev.length() != 0)) {
return list;
}
if (prev.length() == 0 && current.length() == 0) {
continue;
}
if (prev.charAt(prev.length() - 1) == current.charAt(0)) {
list.add(current);
} else {
break;
}
}
return list;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void foundationGrab(){\n\n }",
"@Override\n public void perish() {\n \n }",
"public void perder() {\n // TODO implement here\n }",
"@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}",
"public void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"void pramitiTechTutorials() {\n\t\n}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void feedingHerb() {\n\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"public void run() {\n\t\t\r\n\t}",
"public void run() {\n\t\t\r\n\t}",
"protected void additionalProcessing() {\n\t}",
"public void processing();",
"public void working()\n {\n \n \n }",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\tprotected void postRun() {\n\n\t}",
"protected void run() {\r\n\t\t//\r\n\t}",
"public void themesa()\n {\n \n \n \n \n }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public void logic(){\r\n\r\n\t}",
"public void process() {\n\t\tSystem.out.println(\"snapdragonm 888\");\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void processing() {\n\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void run() {\n\n\t\t\t}",
"@Override\r\n public void run() {\n ax.browserPane.setTitleAt(0,ax.browser.getTitle());\r\n String stringToken1 = null; \r\n try {\r\n stringToken1 = (\"<Navigate Home>::\" + getHome());\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ax.consoleTextArea.setText(stringToken1);\r\n //Put the current html address in the addressbar\r\n ax.addressBar.setText(ax.browser.getCurrentLocation());\r\n \r\n }",
"public void run() {\n\t\t\n\t}",
"public void grab();",
"@Override\n public void update() {\n \n }",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void data() {\n\t\tSystem.out.println(\"browsing through vodaphone\");\n\t\t\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"public void ganar() {\n // TODO implement here\n }",
"private void performOCR(){\n }",
"public void run() {\n\n }",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}",
"public void identify() {\n\n\t}",
"public void run() {\n\t\t\t\t\t\t}",
"void scavenge();",
"void use();",
"public void redibujarAlgoformers() {\n\t\t\n\t}",
"public void baocun() {\n\t\t\n\t}",
"private void strin() {\n\n\t}",
"protected void display() {\n\r\n\t}",
"@Override\n\tpublic void postRun() {\n\t}",
"@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}",
"public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\r\n public void run() {\n basicEditor.createEdge(); // replaced Bibianas method with Moritz Roidl, Orthodoxos Kipouridis\r\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public void run() {\n\n\t}",
"public void run() {\n\n\t}",
"@Override\n\tpublic void startProcessing() {\n\n\t}",
"protected void aktualisieren() {\r\n\r\n\t}",
"void preProcess();",
"public void mo4359a() {\n }",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}"
] | [
"0.5860415",
"0.57500285",
"0.56876314",
"0.5686072",
"0.5674523",
"0.5673403",
"0.5673403",
"0.5658939",
"0.56501746",
"0.56445897",
"0.5603919",
"0.5582283",
"0.55696726",
"0.55321705",
"0.5512527",
"0.5497885",
"0.54936486",
"0.54933006",
"0.54933006",
"0.5488062",
"0.5487789",
"0.54802245",
"0.5474327",
"0.547292",
"0.5467046",
"0.54593223",
"0.54587656",
"0.54587656",
"0.5456664",
"0.5437364",
"0.5436444",
"0.5436444",
"0.5413745",
"0.54136336",
"0.5411539",
"0.5391629",
"0.53914714",
"0.5385876",
"0.5382023",
"0.53786236",
"0.53724605",
"0.5364136",
"0.5360821",
"0.5360034",
"0.5360034",
"0.53579205",
"0.53470343",
"0.5341977",
"0.5341924",
"0.5337162",
"0.53364235",
"0.53203666",
"0.5318629",
"0.5316363",
"0.5313341",
"0.53074634",
"0.53074634",
"0.53074634",
"0.53074634",
"0.53074634",
"0.53074634",
"0.53074634",
"0.53074634",
"0.53074634",
"0.5303247",
"0.52941614",
"0.52868146",
"0.52856225",
"0.528306",
"0.5278369",
"0.5271983",
"0.52563095",
"0.5239785",
"0.5236563",
"0.5236286",
"0.5235231",
"0.52333707",
"0.5232788",
"0.5232788",
"0.52309555",
"0.52309555",
"0.52276653",
"0.5221222",
"0.52195567",
"0.5214712",
"0.5214491",
"0.5214491",
"0.5214491",
"0.5214491",
"0.5214491",
"0.5214491",
"0.5214491",
"0.5214491",
"0.5214491",
"0.5214491",
"0.5214491",
"0.5214491",
"0.5214491",
"0.5214491",
"0.5214491",
"0.5214491"
] | 0.0 | -1 |
Set cell lower price | public void setCellLowerPrice(double cellLowerPrice) {
CellLowerPrice = cellLowerPrice;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getCellLowerPrice() {\r\n\t\treturn CellLowerPrice;\r\n\t}",
"public void calcPrice() {\r\n\t\tsuper.price = 3 * super.height;\r\n\t}",
"BigDecimal getLowPrice();",
"public void setLow(java.math.BigDecimal low) {\n this.low = low;\n }",
"@Override\r\n\tpublic double promotePrice() {\n\t\treturn price - 10;\r\n\t}",
"public void setPricePerSquareFoot(double newPricePerSquareFoot){\nif(newPricePerSquareFoot > 0){\npricePerSquareFoot = newPricePerSquareFoot;\n}\n}",
"public void setLow(double value){low = value;}",
"public void setPrice(double price) {\n this.price = price;\n if (this.price < 0) {\n this.price = 0;\n }\n }",
"private void setLandscapePrice(){\n \t\tLog.i(TAG, \"setLandscapePrice() called\");\n \t\tpricelandtext.setText(provide.getCurItem().getPrice());\n \t}",
"public void lowerFuelCell() {\n FuelCell.fuelCellFlipSol = false;\n raiseHopper.set(false);\n lowerHopper.set(true);\n }",
"public void setEBookMinPrice(Number value) {\n setAttributeInternal(EBOOKMINPRICE, value);\n }",
"@Override\n\tpublic void setPrice(double price) {\n\t\tconstantPO.setPrice(price);\n\t}",
"public void setPrice(double price){\r\n Random chance = new Random();\r\n int crashChance = chance.nextInt(100);\r\n double droppedPrice = price * ThreadLocalRandom.current().nextDouble(0.6, 0.8);\r\n if (crashChance > 95) {\r\n setPlusMinus(\"Down\");\r\n System.out.println(\"This stock has crashed.\");\r\n super.setPrice(price - droppedPrice);\r\n } else if(crashChance < 5){\r\n setPlusMinus(\"Up\");\r\n System.out.println(\"This stock has surged.\");\r\n super.setPrice(price + droppedPrice);\r\n } else {\r\n super.setPrice(price);\r\n }\r\n }",
"public void setPrice(Double price);",
"public void setPriceEntered (BigDecimal PriceEntered);",
"public void setLow(double value) {\n this.low = value;\n }",
"public double getLowPrice() {\r\n\t\treturn lowPrice;\r\n\t}",
"@Override\n\tpublic void setPrice() {\n\t\tprice = 24.99;\n\n\t}",
"public void setPriceLimitOld (BigDecimal PriceLimitOld);",
"@Override\n public void setValueAt (Object value, int row, int col) {\n SecurityRow secRow = allSecurities.get(row);\n if (col == NEW_PRICE_COLUMN) {\n if(value==null) {\n secRow.newPrice = null;\n } else if(value instanceof Double) {\n secRow.newPrice = (Double)value;\n } else {\n double d = StringUtils.parseRate(String.valueOf(value), decimalChar);\n secRow.newPrice = d==0 ? null : d;\n }\n fireTableCellUpdated (row, col);\n }\n }",
"public void setPrice(double price){this.price=price;}",
"@Override\r\n\tpublic void setPrice(double p) {\n\t\tprice = p;\r\n\t}",
"public void setPrice(double p)\r\n\t{\r\n\t\tprice = p;\r\n\t}",
"public void setPrice(double value) {\n this.price = value;\n }",
"public void setPrice(double value) {\n this.price = value;\n }",
"public void setCellUpperPrice(double cellUpperPrice) {\r\n\t\tCellUpperPrice = cellUpperPrice;\r\n\t}",
"public void setPriceStdOld (BigDecimal PriceStdOld);",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public void setPrice(int price) {\n this.price = (double)price;\n }",
"public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }",
"public double getLowPrice() {\n return this.lowPrice;\n }",
"public void setPrice(double price)\n {\n this.price = price;\n }",
"public void setPrice(double price)\n {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(float price) {\n this.price = price;\n }",
"public void setPrice(float price) {\n this.price = price;\n }",
"void xsetSingleBetMinimum(org.apache.xmlbeans.XmlDecimal singleBetMinimum);",
"public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }",
"public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }",
"public void setPriceListOld (BigDecimal PriceListOld);",
"public void setPrice(BigDecimal price) {\n this.price = price;\n }",
"public void setPrice(BigDecimal price) {\n this.price = price;\n }",
"public void setPrice(Double price) {\r\n this.price = price;\r\n }",
"public void change()\n\t{\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tif(rowTick[i]==8888)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(columnTick[j]==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tcost[i][j]-=min;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(columnTick[j]==8888)\n\t\t\t\t\t{\n\t\t\t\t\t\tcost[i][j]+=min;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void increasePrice() {\n //price doubled\n itemToSell.setBuyPrice(itemToSell.getBuyPrice() * 2);\n }",
"public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}",
"public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}",
"public void setPrice(Float price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price) \n\t{\n\t\tthis.price = price;\n\t}",
"public void setPrice(double price) {\n\t\tif(price > 0 )\n\t\t\tthis.price=price;\n\t}",
"public void setPotatoesPrice(double p);",
"public void setPrice(Float price) {\n this.price = price;\n }",
"public void setOriginalPrice(Float OriginalPrice) {\n this.OriginalPrice = OriginalPrice;\n }",
"public void setPrice(Double price) {\n this.price = price;\n }",
"public void setPrice(Double price) {\n this.price = price;\n }",
"public void filterLowerPrice(double price){\n market.filterLowerPrice(price);\n car = market.filters;\n }",
"@Override\n public double getPrice() {\n return 2.5;\n }",
"public Number getEBookMinPrice() {\n return (Number)getAttributeInternal(EBOOKMINPRICE);\n }",
"public void setPrice(double p) {\n\t\tprice = p;\n\t}",
"public void setPrice(double x){\n\t\t\tprice = x;\t\n\t\t}",
"@Override\r\n\tpublic double getPrice() {\n\t\treturn 60000;\r\n\t}",
"public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }",
"public double getCellUpperPrice() {\r\n\t\treturn CellUpperPrice;\r\n\t}",
"public void setPrice(int price) {\n\t\tthis.price = price;\n\t\tlbl.setText(price+\" C\");\n\t}",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice (double ticketPrice)\r\n {\r\n price = ticketPrice;\r\n }",
"public void setHightPrice(final float newHightPrice)\r\n{\r\n\tthis.hightPrice = newHightPrice;\r\n}",
"protected void setPrice(float price) {\n\t\t\tthis.price = price;\n\t\t}",
"public void minimum()\n\t{\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tif(rowTick[i]==8888)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(columnTick[j]==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(cost[i][j]<min)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmin=cost[i][j];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"void setSingleBetMinimum(java.math.BigDecimal singleBetMinimum);",
"public void setPriceLastOrd (BigDecimal PriceLastOrd);",
"public void setPrice(java.math.BigDecimal price) {\n this.price = price;\n }",
"public void setPriceLimitEntered (BigDecimal PriceLimitEntered);",
"void xsetWagerMinimum(org.apache.xmlbeans.XmlDecimal wagerMinimum);",
"public void setPrice(final BigDecimal price) {\n this.price = price;\n }",
"protected void setStateToLowestEnergy() {\n\tpoints = bestEverPoints;\n\n\t// make a copy of the best points\n\tbestEverPoints = getPoints();\n\n\tbuildEnergyMatrix();\n\tstateEnergy();\n }",
"public void setPriceListEntered (BigDecimal PriceListEntered);",
"@Override\n\tpublic void setPrice(int price) {\n\t\t\n\t}",
"public void setPrice(double price) \n\t{\n\t\tthis.price = price * quantity;\n\t}",
"public void setPrice(int newPrice){\n productRelation.setCost(newPrice);\n }",
"public void setPriceStdEntered (BigDecimal PriceStdEntered);",
"void setWagerMinimum(java.math.BigDecimal wagerMinimum);",
"public void decreasePrice() {\n //price halved\n //is it okay if the price becomes 0?\n itemToSell.setBuyPrice(itemToSell.getBuyPrice() / 2);\n }",
"public void setLow(String low){\n range.setLow(low);\n }",
"public Criteria andOrderPriceLessThanOrEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"order_price <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"public void setPriceActual (BigDecimal PriceActual);",
"public void setPrice(Double price) {\n\t\tthis.price = price;\n\t}",
"public java.math.BigDecimal getLow() {\n return low;\n }",
"public void changeStockVal() {\n double old = _stockVal;\n _stockVal = 0;\n for (Company x : _stocks.keySet()) {\n _stockVal += x.getPrice() * _stocks.get(x);\n }\n _stockValChanged = _stockVal - old;\n\n }",
"public Criteria andOrderPriceLessThanColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"order_price < \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }"
] | [
"0.70098007",
"0.63657904",
"0.6279671",
"0.6241699",
"0.61559325",
"0.6136044",
"0.6118436",
"0.6085459",
"0.5994094",
"0.5977575",
"0.5967546",
"0.5961133",
"0.5959908",
"0.59519494",
"0.5899539",
"0.58973813",
"0.58482265",
"0.5844602",
"0.5841224",
"0.5834352",
"0.5824932",
"0.5822634",
"0.58164084",
"0.58063453",
"0.58063453",
"0.58056355",
"0.5792466",
"0.57919574",
"0.57919574",
"0.57919574",
"0.5791283",
"0.57803124",
"0.57796425",
"0.57779807",
"0.57651263",
"0.5762713",
"0.5762713",
"0.5762713",
"0.5762713",
"0.5762713",
"0.5762713",
"0.5762713",
"0.5760166",
"0.5760166",
"0.5755796",
"0.5750665",
"0.5750665",
"0.57469124",
"0.5740052",
"0.5740052",
"0.5736976",
"0.57265776",
"0.5718445",
"0.5711252",
"0.5711252",
"0.57099414",
"0.5708706",
"0.57064104",
"0.5692134",
"0.5683528",
"0.567605",
"0.56747955",
"0.56747955",
"0.56720406",
"0.5669818",
"0.5664985",
"0.56575334",
"0.565615",
"0.5632412",
"0.5626013",
"0.5619136",
"0.56136006",
"0.5604172",
"0.5604172",
"0.5604172",
"0.56030864",
"0.55937165",
"0.559327",
"0.5591266",
"0.55827385",
"0.5580896",
"0.55786306",
"0.55649704",
"0.5564192",
"0.55602443",
"0.55483776",
"0.55403334",
"0.553293",
"0.55267817",
"0.5526242",
"0.55241096",
"0.5518325",
"0.55045855",
"0.54969335",
"0.54942954",
"0.54872876",
"0.5480429",
"0.5474064",
"0.5460514",
"0.54504824"
] | 0.7334529 | 0 |
Set cell upper price | public void setCellUpperPrice(double cellUpperPrice) {
CellUpperPrice = cellUpperPrice;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getCellUpperPrice() {\r\n\t\treturn CellUpperPrice;\r\n\t}",
"public void calcPrice() {\r\n\t\tsuper.price = 3 * super.height;\r\n\t}",
"public void setPriceLastOrd (BigDecimal PriceLastOrd);",
"public void setPriceStd (BigDecimal PriceStd);",
"@XmlElement(name = \"upper\")\n public void setUpperValue(double value) {\n this.upperMeasure = Measure.valueOf(value, units);\n }",
"public void setPriceLastInv (BigDecimal PriceLastInv);",
"public void setPriceActual (BigDecimal PriceActual);",
"public void setHightPrice(final float newHightPrice)\r\n{\r\n\tthis.hightPrice = newHightPrice;\r\n}",
"@Override\n public void setValueAt (Object value, int row, int col) {\n SecurityRow secRow = allSecurities.get(row);\n if (col == NEW_PRICE_COLUMN) {\n if(value==null) {\n secRow.newPrice = null;\n } else if(value instanceof Double) {\n secRow.newPrice = (Double)value;\n } else {\n double d = StringUtils.parseRate(String.valueOf(value), decimalChar);\n secRow.newPrice = d==0 ? null : d;\n }\n fireTableCellUpdated (row, col);\n }\n }",
"public void setPricePerSquareFoot(double newPricePerSquareFoot){\nif(newPricePerSquareFoot > 0){\npricePerSquareFoot = newPricePerSquareFoot;\n}\n}",
"protected abstract double setCell(\r\n int row,\r\n int col,\r\n double valueToSet);",
"public void setPriceEntered (BigDecimal PriceEntered);",
"public void setPriceStdEntered (BigDecimal PriceStdEntered);",
"public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }",
"public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }",
"public void setPriceStdOld (BigDecimal PriceStdOld);",
"public void setPrice(BigDecimal price) {\n this.price = price;\n }",
"public void setPrice(BigDecimal price) {\n this.price = price;\n }",
"@Override\n public double getPrice() {\n return 2.5;\n }",
"public void setPrice(Double price);",
"@Override\n\tpublic void setPrice() {\n\t\tprice = 24.99;\n\n\t}",
"public void setUpperPoint(Point upper) {\n this.upper = upper;\n }",
"public void setPrice(double price){\r\n Random chance = new Random();\r\n int crashChance = chance.nextInt(100);\r\n double droppedPrice = price * ThreadLocalRandom.current().nextDouble(0.6, 0.8);\r\n if (crashChance > 95) {\r\n setPlusMinus(\"Down\");\r\n System.out.println(\"This stock has crashed.\");\r\n super.setPrice(price - droppedPrice);\r\n } else if(crashChance < 5){\r\n setPlusMinus(\"Up\");\r\n System.out.println(\"This stock has surged.\");\r\n super.setPrice(price + droppedPrice);\r\n } else {\r\n super.setPrice(price);\r\n }\r\n }",
"BigDecimal getHighPrice();",
"public void setPrice (double ticketPrice)\r\n {\r\n price = ticketPrice;\r\n }",
"public void setPrice(double price){this.price=price;}",
"public void setPrice(double price) {\n this.price = price;\n if (this.price < 0) {\n this.price = 0;\n }\n }",
"public void setPrice(double value) {\n this.price = value;\n }",
"public void setPrice(double value) {\n this.price = value;\n }",
"@Override\n\tpublic void setPrice(double price) {\n\t\tconstantPO.setPrice(price);\n\t}",
"public void decreasePrice() {\n //price halved\n //is it okay if the price becomes 0?\n itemToSell.setBuyPrice(itemToSell.getBuyPrice() / 2);\n }",
"public void setPrice(int price) {\n\t\tthis.price = price;\n\t\tlbl.setText(price+\" C\");\n\t}",
"public void setPrice(final BigDecimal price) {\n this.price = price;\n }",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public double upper()\n\t{\n\t\treturn _dblUpper;\n\t}",
"public void setCellLowerPrice(double cellLowerPrice) {\r\n\t\tCellLowerPrice = cellLowerPrice;\r\n\t}",
"public void setPrice(double price)\n {\n this.price = price;\n }",
"public void setPrice(double price)\n {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPriceStdWTax (BigDecimal PriceStdWTax);",
"public void setUpperValue(int value) {\n // Compute new extent.\n int lowerValue = getValue();\n int newExtent = Math.min(Math.max(0, value - lowerValue), getMaximum() - lowerValue);\n \n // Set extent to set upper value.\n setExtent(newExtent);\n }",
"public void setPrice(java.math.BigDecimal price) {\n this.price = price;\n }",
"public void setPrice(Double price) {\r\n this.price = price;\r\n }",
"public void setPrice(int price) {\n this.price = (double)price;\n }",
"public void setValueAt(Object value, int row, int col) {\n\t\t\tsuper.setValueAt(value,row,col);\n\t\t\tif (DEBUG) {\n\t\t\t\tSystem.out.println(\"Changed a row at \" + row + \",\" + col\n\t\t\t\t\t\t\t\t + \" to \" + value\n\t\t\t\t\t\t\t\t + \" (an instance of \"\n\t\t\t\t\t\t\t\t + value.getClass() + \")\");\n\t\t\t}\n\n\t\t\tif (col==1 || col==2 || col==9){// length or Girth\n\t\t\t\tint bFt=0, bIn=0, breadthIn=0; double rateclass=0 ; double cft=0, amt =0.0; String wclass=\"\";\n\n\t\t\t\tStringTokenizer st = new StringTokenizer((getValueAt(row,2)).toString(),\".\");\n\t\t\t\t\t\t\t\tif (st.hasMoreTokens()) bFt= (new Integer(st.nextToken())).intValue();\n\t\t\t\t\t\t\t\tif (st.hasMoreTokens()) bIn= (new Integer(st.nextToken().trim())).intValue();\n\t\t\t\t\t\t\t\telse bIn = (new Integer(0)).intValue();\n\t\t\t\tbreadthIn = bFt *12 + bIn;\n\n\t\t\t\tdouble x = ((Double)getValueAt(row,1)).doubleValue();\n\t\t\t\tcft = (( x * breadthIn * breadthIn)/2304.0) * ((Integer)getValueAt(row,9)).intValue();\n\n\t\t\t\tConvertLobs.subTCFT((new Double((String)getValueAt(row,11))).doubleValue());\n\t\t\t\tConvertLobs.subAmount(((Double)getValueAt(row,10)).doubleValue());\n\n\t\t\t\tString cl = (String)getValueAt(row, 7);\n\t\t\t\t\t\t\tif (cl.equals(\"A\")) super.setValueAt(\" \", row, 3);\n\t\t\t\t\t\t\tif (cl.equals(\"B\")) super.setValueAt(\" \", row, 4);\n\t\t\t\t\t\t\tif (cl.equals(\"C\")) super.setValueAt(\" \", row, 5);\n\t\t\t\t\t\t\tif (cl.equals(\"D\")) super.setValueAt(\" \", row, 6);\n\n\t\t\t\tif ((breadthIn)>=Converter.classAlimit) { wclass = \"A\"; rateclass = Converter.rateA;\n\t\t\t\t\t\t\t\tamt = rateclass*cft;\n\t\t\t\t\t\t\t\tConvertLobs.subTCFTA((new Double((String)getValueAt(row,3))).doubleValue()); ConvertLobs.addTCFTA(cft);\n\t\t\t\t\t\t\t\tsuper.setValueAt(new Double(cft).toString(), row, 11);\n\t\t\t\t\t\t\t\tsuper.setValueAt(new Double(cft).toString(), row, 3);\n\t\t\t\t\t\t\t\t }\n\t\t\t\telse if ((breadthIn)>=Converter.classBlimit) {wclass = \"B\"; rateclass = Converter.rateB;ConvertLobs.addTCFTB(cft);\n\t\t\t\t\t\t\t\tamt = rateclass*cft;\n\t\t\t\t\t\t\t\tConvertLobs.subTCFTB((new Double((String)getValueAt(row,4))).doubleValue());\n\t\t\t\t\t\t\t\tsuper.setValueAt(new Double(cft).toString(), row, 11);\n\t\t\t\t\t\t\t\tsuper.setValueAt(new Double(cft).toString(), row, 4);\n\t\t\t\t\t\t\t\t}\n\t\t\t\telse if ((breadthIn)>=Converter.classClimit) {wclass = \"C\";rateclass = Converter.rateC; ConvertLobs.addTCFTC(cft);\n\t\t\t\t\t\t\t\t\t amt = rateclass*cft;\n\t\t\t\t\t\t\t ConvertLobs.subTCFTC((new Double((String)getValueAt(row,5))).doubleValue());\n\t\t\t\t\t\t\t super.setValueAt(new Double(cft).toString(), row, 11);\n\t\t\t\t\t\t\t super.setValueAt(new Double(cft).toString(), row, 5);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\telse if ((breadthIn)>=Converter.classDlimit) {wclass = \"D\";rateclass = Converter.rateD; ConvertLobs.addTCFTD(cft);\n\t\t\t\t\t\t\t\t\t\t\tamt = rateclass*cft;\n\t\t\t\t\t\tConvertLobs.subTCFTD((new Double((String)getValueAt(row,6))).doubleValue());\n\t\t\t\t\t\tsuper.setValueAt(new Double(cft).toString(), row, 11);\n\t\t\t\t\t\tsuper.setValueAt(new Double(cft).toString(), row, 6);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\tsuper.setValueAt(wclass, row, 7);\n\t\t\t\tsuper.setValueAt(new Double(rateclass), row, 8);\n\t\t\t\tConvertLobs.addAmount(amt);\n\t\t\t\tsuper.setValueAt(new Double(amt), row, 10);\n\t\t\t\tConvertLobs.addTCFT(cft);\n\n\t\t\t}\n\n\t\t\tif (col == 12){// get row vector and get tcft\n\t\t\tDouble temp= new Double((String)getValueAt(row, col-1));\n\t\t\tConvertLobs.subTCFT(temp.doubleValue());\n\t\t\tDouble temp1= new Double((String)getValueAt(row, col-2));\n\t\t\tConvertLobs.subAmount(temp1.doubleValue());\n\t\t\tInteger temp2= (Integer)getValueAt(row, col-3);\n\t\t\tConvertLobs.subQuantity(temp2.intValue());\n\t\t\tConvertLobs.sno--;\n\t\t\tfor (int i=row-1; i >= 0; i--) super.setValueAt(new Integer( ((Integer)getValueAt(i,0)).intValue() - 1 ), i, 0);\n\n\t\t\tString cl = (String)getValueAt(row, col-5);//\n\t\t\tif (cl.equals(\"A\")) ConvertLobs.subTCFTA(temp.doubleValue());\n\t\t\tif (cl.equals(\"B\")) ConvertLobs.subTCFTB(temp.doubleValue());\n\t\t\tif (cl.equals(\"C\")) ConvertLobs.subTCFTC(temp.doubleValue());\n\t\t\tif (cl.equals(\"D\")) ConvertLobs.subTCFTD(temp.doubleValue());\n\n\t\t\t\t\t\t\tremoveRow(row);\n\t\t\t}\n\t\t\tif (col == 0){\n\t\t\t\tConvertLobs.sno = ((Integer)getValueAt(row,col)).intValue();\n\t\t\t}\n\n\t\t}",
"@Override\n\t\t\tpublic double getPrice() {\n\t\t\t\treturn 50.0;\n\t\t\t}",
"void setSubtotal(BigDecimal subtotal);",
"@Override\r\n\tpublic double getPrice() {\n\t\treturn 60000;\r\n\t}",
"public BigDecimal getPriceLastOrd();",
"public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}",
"public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}",
"public void setPrice(double price) \n\t{\n\t\tthis.price = price;\n\t}",
"public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }",
"public abstract void initCell(\r\n int row,\r\n int col,\r\n double valueToInitialise);",
"public double getCellLowerPrice() {\r\n\t\treturn CellLowerPrice;\r\n\t}",
"public void setPriceLimit (BigDecimal PriceLimit);",
"public void setPrice(float price) {\n this.price = price;\n }",
"public void setPrice(float price) {\n this.price = price;\n }",
"public void setPrice(Double price) {\n this.price = price;\n }",
"public void setPrice(Double price) {\n this.price = price;\n }",
"public void setPotatoesPrice(double p);",
"public void setPrice(double price) \n\t{\n\t\tthis.price = price * quantity;\n\t}",
"public double getUpperValue() {\n return this.upperMeasure.getValue();\n }",
"public void ukloniHranu() {\n\t\tthis.tabla[iHrana][jHrana] = '.';\t\t\n\t}",
"@Override\n\tpublic float getPrice() {\n\t\treturn 70.0f;\n\t}",
"public void setHigh(java.math.BigDecimal high) {\n this.high = high;\n }",
"public void setHigh(double value){high = value;}",
"public void setPrice(BigDecimal value) {\n setAttributeInternal(PRICE, value);\n }",
"public void setShopItemPrice(Double price) {\n\t\tlblPrice.setText(\"Price : \" + price + \" NTD\");\n\t}",
"public void setRowWeight(List<UpperPowerLog> upperPowerList, Type upType) {\n\n if(!((MainScreen)getActivity()).getUpperPowerJson().equals(\"\")) {\n upperPowerList = gson.fromJson(((MainScreen) getActivity()).getUpperPowerJson(), upType);\n UpperPowerLog lastUP = upperPowerList.get(upperPowerList.size() - 1);\n double newRowWeight = Double.parseDouble(lastUP.rowWeight);\n if((newRowWeight * .7) < 20 ) {\n //if its less than 20, set it to 20\n newRowWeight = 20;\n }\n else {\n //if its > 20, multiply by .7 and round to the nearest 5\n newRowWeight = Math.round((newRowWeight * .7) / 5) * 5 ;\n }\n bsE1Weight.setText(String.valueOf(newRowWeight));\n }\n else {\n bsE1Weight.setText(\"20\");\n }\n }",
"public void setUpperRightY(float value)\n {\n rectArray.set(3, new COSFloat( value ) );\n }",
"public void setPriceListEntered (BigDecimal PriceListEntered);",
"@Override\r\n\tpublic void setPrice(double p) {\n\t\tprice = p;\r\n\t}",
"public void setPrice(Float price) {\r\n this.price = price;\r\n }",
"public void setPrice(double p)\r\n\t{\r\n\t\tprice = p;\r\n\t}",
"private void addLastValueToTable(){\n\t\t//System.out.println(theModelColumn.size()-1);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getX(), theModelColumn.size()-1, 0);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getY(), theModelColumn.size()-1, 1);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getWidth(), theModelColumn.size()-1, 2);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getHeight(), theModelColumn.size()-1, 3);\n\t}",
"@Override\r\n\tpublic double promotePrice() {\n\t\treturn price - 10;\r\n\t}",
"private void basePrice(double rPrice, int uSold){\n\t\tbasePrice = rPrice * uSold;\n\t}",
"public static void changeCurrencyFromBottom() {\n click(CHANGE_CURRENCY_BOTTOM_BUTTON);\n }",
"public void setUpper(int value) {\n this.upper = value;\n }",
"public void setPrice(Float price) {\n this.price = price;\n }",
"public void set(int row, int col, double value){\n \tarray[row-1][col-1] = value;\n }",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }",
"public void setCellReservePrice(double cellReservePrice) {\r\n\t\tCellReservePrice = cellReservePrice;\r\n\t}",
"BigDecimal getPrice();",
"public void setPriceList (BigDecimal PriceList);",
"public abstract void setTotalPrice();",
"public abstract void setCellValue(int cellValue, int row, int col);",
"public void setPrice(double price) {\n\t\tif(price > 0 )\n\t\t\tthis.price=price;\n\t}"
] | [
"0.7402965",
"0.65105456",
"0.62613",
"0.5945406",
"0.59445024",
"0.592623",
"0.59241015",
"0.58618224",
"0.58243865",
"0.58019024",
"0.57739216",
"0.57256126",
"0.5660998",
"0.5655298",
"0.5655298",
"0.56531185",
"0.56366986",
"0.56366986",
"0.5606043",
"0.5566489",
"0.5552916",
"0.55494785",
"0.55254745",
"0.5511215",
"0.5507311",
"0.54857063",
"0.54794455",
"0.5477245",
"0.5477245",
"0.5474273",
"0.54584676",
"0.5433711",
"0.5427662",
"0.5420303",
"0.5420303",
"0.5420303",
"0.54182",
"0.5413828",
"0.5413784",
"0.5412722",
"0.5396087",
"0.5396087",
"0.5396087",
"0.5396087",
"0.5396087",
"0.5396087",
"0.5396087",
"0.5379377",
"0.53638875",
"0.5358121",
"0.53556573",
"0.53489524",
"0.5343281",
"0.5342479",
"0.53410476",
"0.5339121",
"0.5336758",
"0.5322541",
"0.5322541",
"0.53213555",
"0.5319805",
"0.5316612",
"0.5315532",
"0.5312017",
"0.5306972",
"0.5306972",
"0.5296417",
"0.5296417",
"0.52945185",
"0.52934444",
"0.5286025",
"0.52843744",
"0.5279458",
"0.52724355",
"0.52722865",
"0.52705884",
"0.5269683",
"0.5266898",
"0.5259453",
"0.52569157",
"0.52516186",
"0.52495044",
"0.52447903",
"0.52436966",
"0.5235437",
"0.5232437",
"0.52290434",
"0.5227719",
"0.5225298",
"0.5221022",
"0.5218132",
"0.5218132",
"0.5218132",
"0.52177286",
"0.5217356",
"0.5217257",
"0.52111596",
"0.52108586",
"0.5200088",
"0.51992035"
] | 0.78114784 | 0 |
Set cell lower deadline | public void setCellLowerDeadline(Date cellLowerDeadline) {
CellLowerDeadline = cellLowerDeadline;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getCellLowerDeadline() {\r\n\t\treturn CellLowerDeadline;\r\n\t}",
"public void setCellUpperDeadline(Date cellUpperDeadline) {\r\n\t\tCellUpperDeadline = cellUpperDeadline;\r\n\t}",
"public Date getCellUpperDeadline() {\r\n\t\treturn CellUpperDeadline;\r\n\t}",
"public Date getCellDeadline() {\r\n\t\treturn CellDeadline;\r\n\t}",
"public void setDeadline(int deadline)\n\t{\n\t\tthis.deadline = deadline;\n\t}",
"public void setDeadline(int deadline) {\n\t\tif (deadline < 0)\n\t\t\tthrow new InvalidDeadlineException(deadline);\n\n\t\tif (deadline > this.deadline) \n\t\t\tthis.deadline = deadline;\n\t}",
"public Builder setDeadline(long value) {\n \n deadline_ = value;\n onChanged();\n return this;\n }",
"@Override\n public void edit() {\n this.parent.handleEditSignal(this.deadline);\n }",
"public Task(int deadline, int value) {\n\n\t\tsetDeadline(deadline);\n\t\tsetValue(value);\n\n\t\tif (maxDeadline < this.deadline) {\n\t\t\tmaxDeadline = this.deadline;\n\t\t}\n\t}",
"public int getDeadline(){return deadline;}",
"public void setRealDeadline(Date realDeadline) {\r\n this.realDeadline = realDeadline;\r\n }",
"public void setLastTableRowEdit(java.util.Date value);",
"public EditorDayTime( int columnIndex, int row )\r\n {\r\n // use spin editor\r\n super( columnIndex, row );\r\n m_spin = new SpinEditor();\r\n m_spin.setFormat( \"00\" );\r\n setControl( m_spin );\r\n\r\n // determine min & max valid times\r\n m_min = 0;\r\n m_max = Time.MILLISECONDS_IN_DAY;\r\n Day day = JPlanner.plan.daytypes.get( row );\r\n if ( columnIndex > Day.SECTION_START1 )\r\n {\r\n m_min = ( (Time) day.getValue( columnIndex - 1 ) ).getDayMilliseconds();\r\n m_min += 60000;\r\n }\r\n int num = day.getNumberOfPeriods();\r\n if ( columnIndex < Day.SECTION_START1 + 2 * num - 1 )\r\n {\r\n m_max = ( (Time) day.getValue( columnIndex + 1 ) ).getDayMilliseconds();\r\n m_max -= 60000;\r\n }\r\n\r\n // add listener text changes to wrap hours and minutes, and set error status\r\n addListener( ( observable, oldText, newText ) ->\r\n {\r\n // as prefix hold hours, if not null means minutes are being edited\r\n if ( m_spin.getPrefix() != null )\r\n {\r\n // if minutes greater than 59, increase hours\r\n int minutes = m_spin.getInteger();\r\n if ( minutes > 59 )\r\n {\r\n String prefix = m_spin.getPrefix();\r\n int hours = minutes / 60 + Integer.parseInt( prefix.substring( 0, prefix.length() - 1 ) );\r\n m_spin.setPrefixSuffix( hours + \":\", null );\r\n m_spin.setInteger( minutes % 60 );\r\n return;\r\n }\r\n\r\n // if minutes less than 0, decrease hours\r\n if ( minutes < 0 )\r\n {\r\n String prefix = m_spin.getPrefix();\r\n int hours = ( minutes - 60 ) / 60 + Integer.parseInt( prefix.substring( 0, prefix.length() - 1 ) );\r\n m_spin.setPrefixSuffix( hours + \":\", null );\r\n m_spin.setInteger( ( minutes + 60 ) % 60 );\r\n return;\r\n }\r\n }\r\n\r\n // check editor value and if error\r\n String error = check( newText );\r\n if ( error == null )\r\n JPlanner.setNoError( getControl(), \"\" );\r\n else\r\n JPlanner.setError( getControl(), error );\r\n } );\r\n\r\n }",
"public void ascend() {\n \t\n elevator1.set(0.9);\n elevator2.set(0.9); \n }",
"@Test\n public void testNoTopUpTasksDueAfterSchedWindow() throws Exception {\n\n // SETUP: Data Setup for running the Function\n EvtSchedDeadTable lEvtSchedDead =\n EvtSchedDeadTable.findByPrimaryKey( new EventDeadlineKey( \"4650:102:0:21\" ) );\n lEvtSchedDead.setDeadlineDate( DateUtils.parseDateTimeString( \"15-MAY-2007 10:00\" ) );\n lEvtSchedDead.update();\n\n EvtSchedDeadTable lEvtSchedDead2 =\n EvtSchedDeadTable.findByPrimaryKey( new EventDeadlineKey( \"4650:500:0:23\" ) );\n lEvtSchedDead2.setDeadlineDate( DateUtils.parseDateTimeString( \"15-MAY-2007 10:00\" ) );\n lEvtSchedDead2.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had only 2 tasks with no deadline\n assertEquals( 2, iDataSet.getRowCount() );\n\n // loose task with no deadline\n iDataSet.next();\n\n testRow( new TaskKey( 4650, 101 ), \"ASSIGNEDTASK101\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null, // no\n // deadline\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // assigned task with no deadline\n iDataSet.next();\n\n testRow( new TaskKey( 4650, 400 ), \"LOOSETASK\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null, // no\n // deadline\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 0, \"REQ\", null, null, 0.0, null, null, null,\n null, null );\n\n // TEARDOWN: Undo the Setup Changes\n lEvtSchedDead.setDeadlineDate( DateUtils.parseDateTimeString( \"25-MAY-2007 21:30\" ) );\n lEvtSchedDead.update();\n\n lEvtSchedDead2.setDeadlineDate( DateUtils.parseDateTimeString( \"26-MAY-2007 19:45\" ) );\n lEvtSchedDead2.update();\n }",
"private void populateMinMaxTime()\n {\n final ColumnHolder columnHolder = index.getColumnHolder(ColumnHolder.TIME_COLUMN_NAME);\n try (final NumericColumn column = (NumericColumn) columnHolder.getColumn()) {\n this.minTime = DateTimes.utc(column.getLongSingleValueRow(0));\n this.maxTime = DateTimes.utc(column.getLongSingleValueRow(column.length() - 1));\n }\n }",
"public void setRowDelay(float rowDelay) {\n/* 136 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public TaskBookBuilder addTypicalDeadlineTasks() {\n final TypicalDeadlineTasks tdt = new TypicalDeadlineTasks();\n return addDeadlineTasks(tdt.getDeadlineTasks());\n }",
"private void setTimeLimit() {\n\t\t// Set the minimum time for \"Departing Time\" spinner\n\t\t// based on current selected combo box item\n\t\tview.setModifyTimeLimit(model.getDepartTime(view\n\t\t\t\t.getModifyStationIndex()));\n\t}",
"public synchronized void setCellValue(byte in_cellValue)\n {\n cellValue = (in_cellValue > DEAD) ? ALIVE : DEAD;\n }",
"public void changeConstraintsToLessThan() throws IloException {\n /*\n IloRange notes:\n for expr == rhs, set lb = ub = rhs\n for expr <= rhs, set lb = -infinity and ub = rhs\n for expr >= rhs, set lb = rhs and ub = infinity\n */\n for (int i = 0; i < matrix.getNrows(); i++) {\n IloRange rangedExpression = matrix.getRange(i);\n if (rangedExpression.getUB() >= Double.POSITIVE_INFINITY) {\n rangedExpression.setBounds(Double.NEGATIVE_INFINITY, -rangedExpression.getUB());\n for (int j = 0; j < matrix.getNrows(); j++) {\n matrix.setNZ(i, j, -matrix.getNZ(i, j));\n }\n }\n }\n }",
"public void setDeadlineDate(Date deadlineDate) {\r\n this.deadlineDate = deadlineDate;\r\n }",
"public void setFreezeTimestamp(java.util.Date value);",
"public void setFreezeTicks ( int ticks ) {\n\t\texecute ( handle -> handle.setFreezeTicks ( ticks ) );\n\t}",
"@java.lang.Override\n public long getDeadline() {\n return deadline_;\n }",
"@java.lang.Override\n public long getDeadline() {\n return deadline_;\n }",
"public WaitingCell(int i,int rtw) {\n\t\tsuper(i);\n\t\tthis.roundsToWait = rtw;\n\t\tthis.roundsWaited = 0;\n\t}",
"private void setMin(int min) { this.min = new SimplePosition(false,false,min); }",
"public void change()\n\t{\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tif(rowTick[i]==8888)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(columnTick[j]==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tcost[i][j]-=min;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(columnTick[j]==8888)\n\t\t\t\t\t{\n\t\t\t\t\t\tcost[i][j]+=min;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"void setInhabitedTime(long ticks);",
"double getDeadline() {\n return deadline;\n }",
"public void modifyDeadline(String deadline, String taskName) {\n \t\n \tSystem.out.println(\"Inside modifyDeadline()\");\n \tTask t = new Task();\n \tint count = 0;\n \tfor(Task task : toDoList) {\n \t\tif(task.getTaskName().equals(taskName)) {\n \t\t\tt = task;\n \t\t\ttry {\n \t\t\t\ttask.setDeadline(new SimpleDateFormat(\"dd/MM/yyyy\").parse(deadline));\n \t\t\t}catch (ParseException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t\ttoDoList.set(count, task);\n \t\t}\n \t\tcount ++;\n \t}\n \tSystem.out.println(\"Task Deadline modifies Succesfully\");\n \t\n \tdisplay();\n \t\n }",
"private void cellPreyRules(State s) {\r\n\t\tif (!incrementAge(s)) {\r\n\t\t\tmoveToOpen(new WaTorCell(this.getBlock(), new WaTorState(State.EMPTY_STATE), this.age, this.baseEnergy));\r\n\t\t}\r\n\t}",
"public void assignDeadline(String deadline, String taskName) {\n \t\n \tSystem.out.println(\"Inside assignDeadline()\");\n \tTask t = new Task();\n \tint count = 0;\n \tfor(Task task : toDoList) {\n \t\tif(task.getTaskName().equals(taskName)) {\n \t\t\tt = task;\n \t\t\ttry {\n \t\t\t\ttask.setDeadline(new SimpleDateFormat(\"dd/MM/yyyy\").parse(deadline));\n \t\t\t}catch (ParseException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t\ttoDoList.set(count, task);\n \t\t}\n \t\tcount++;\n \t}\n \tSystem.out.println(\"Task Deadline Assigned successfully\");\n \t\n \tdisplay();\n }",
"void setMinValue();",
"public synchronized void switchCell()\n {\n cellValue = (cellValue == ALIVE) ? DEAD : ALIVE;\n }",
"public Builder clearDeadline() {\n \n deadline_ = 0L;\n onChanged();\n return this;\n }",
"@Override\n\tprotected void setNextSiegeDate()\n\t{\n\t\tif(_siegeDate.getTimeInMillis() < Calendar.getInstance().getTimeInMillis())\n\t\t{\n\t\t\t_siegeDate = Calendar.getInstance();\n\t\t\t// Осада не чаще, чем каждые 4 часа + 1 час на подготовку.\n\t\t\tif(Calendar.getInstance().getTimeInMillis() - getSiegeUnit().getLastSiegeDate() * 1000L > 14400000)\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 1);\n\t\t\telse\n\t\t\t{\n\t\t\t\t_siegeDate.setTimeInMillis(getSiegeUnit().getLastSiegeDate() * 1000L);\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 5);\n\t\t\t}\n\t\t\t_database.saveSiegeDate();\n\t\t}\n\t}",
"public void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);",
"public void minimum()\n\t{\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tif(rowTick[i]==8888)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(columnTick[j]==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(cost[i][j]<min)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmin=cost[i][j];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public TimetableItemCellSizer(TableModel table_model){\n this.table_model = table_model;\n }",
"public void lowerFuelCell() {\n FuelCell.fuelCellFlipSol = false;\n raiseHopper.set(false);\n lowerHopper.set(true);\n }",
"@Override\n\tpublic void setStartTime(float t) \n\t{\n\t\t_tbeg = t;\n\t}",
"public float getColumnDelay() {\n/* 96 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public Deadline(String name, LocalDateTime deadline) {\n super(name, deadline);\n }",
"@Override\n\tpublic int getYWait() {\n\t\treturn 0;\n\t}",
"public void setLowerLeftY(float value)\n {\n rectArray.set(1, new COSFloat( value ) );\n }",
"public WaitCell(int idx, int maxturn){\r\n super(idx);\r\n this.maxturn = maxturn;\r\n this.actualturn = maxturn;\r\n }",
"public Date getRealDeadline() {\r\n return realDeadline;\r\n }",
"public void setPrevCell(Cell prev)\r\n {\r\n this.prev = prev;\r\n }",
"public native void setMinimumRTO (long RTO);",
"public void setCellLowerPrice(double cellLowerPrice) {\r\n\t\tCellLowerPrice = cellLowerPrice;\r\n\t}",
"final void minEvent() {\n minTime = Double.MAX_VALUE;\n if (timeOut.size() > 0) {\n for (int i = 0; i < timeOut.size(); i++) {\n if (timeOut.get(i) < minTime) {\n minTime = timeOut.get(i);\n num = i;\n }\n }\n }\n\n }",
"public void setColumnDelay(float columnDelay) {\n/* 109 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void syncTableTop() {\n\t\tsetVerticalScrollPosition(rowHeader.getTop());\n\t}",
"@Override\n\tprotected void setLowerBound() {\n\t\t\n\t}",
"public void setTime(){\n \tDatabaseManager.getDBM().setLockedTime(cal); \n }",
"protected void deadlineLeasing() {\n log.info(\"OrdersBean : deadlineLeasing\");\n List<OrdersEntity> ordersEntitiesDeadline = ordersServices.findAllOrdersByIdUserAndStatusIsValidate(usersBean.getUsersEntity().getId());\n if (!ordersEntitiesDeadline.isEmpty()) {\n contractsBean.findAllContractsInAllMyOrdersForLeasingAndDeadlineIsLowerThan1Month(ordersEntitiesDeadline);\n }\n }",
"public void setRange(Date lower, Date upper) {\n/* 610 */ if (lower.getTime() >= upper.getTime()) {\n/* 611 */ throw new IllegalArgumentException(\"Requires 'lower' < 'upper'.\");\n/* */ }\n/* 613 */ setRange(new DateRange(lower, upper));\n/* */ }",
"@Override\n\tpublic void placementcell() {\n\t\t\n\t}",
"public void setBorderLerpTime(long time)\n {\n borderSizeLerpTime = time;\n }",
"public SetLiftHeightBlockingAfterTime(double height, int minDoneCycles, double error,\n long timeMs) {\n super(height);\n this.timeMs = timeMs;\n this.minDoneCycles = minDoneCycles;\n this.error = error;\n }",
"public Date getDeadlineDate() {\r\n return deadlineDate;\r\n }",
"protected void autoAdjustRange() {\n/* 1284 */ Plot plot = getPlot();\n/* */ \n/* 1286 */ if (plot == null) {\n/* */ return;\n/* */ }\n/* */ \n/* 1290 */ if (plot instanceof ValueAxisPlot) {\n/* 1291 */ ValueAxisPlot vap = (ValueAxisPlot)plot;\n/* */ \n/* 1293 */ DateRange dateRange = vap.getDataRange(this);\n/* 1294 */ if (dateRange == null) {\n/* 1295 */ if (this.timeline instanceof SegmentedTimeline) {\n/* */ \n/* */ \n/* */ \n/* 1299 */ DateRange dateRange1 = new DateRange(((SegmentedTimeline)this.timeline).getStartTime(), (((SegmentedTimeline)this.timeline).getStartTime() + 1L));\n/* */ }\n/* */ else {\n/* */ \n/* 1303 */ dateRange = new DateRange();\n/* */ } \n/* */ }\n/* */ \n/* 1307 */ long upper = this.timeline.toTimelineValue(\n/* 1308 */ (long)dateRange.getUpperBound());\n/* */ \n/* 1310 */ long fixedAutoRange = (long)getFixedAutoRange();\n/* 1311 */ if (fixedAutoRange > 0.0D) {\n/* 1312 */ lower = upper - fixedAutoRange;\n/* */ } else {\n/* */ \n/* 1315 */ lower = this.timeline.toTimelineValue((long)dateRange.getLowerBound());\n/* 1316 */ double range = (upper - lower);\n/* 1317 */ long minRange = (long)getAutoRangeMinimumSize();\n/* 1318 */ if (range < minRange) {\n/* 1319 */ long expand = (long)(minRange - range) / 2L;\n/* 1320 */ upper += expand;\n/* 1321 */ lower -= expand;\n/* */ } \n/* 1323 */ upper += (long)(range * getUpperMargin());\n/* 1324 */ lower -= (long)(range * getLowerMargin());\n/* */ } \n/* */ \n/* 1327 */ upper = this.timeline.toMillisecond(upper);\n/* 1328 */ long lower = this.timeline.toMillisecond(lower);\n/* 1329 */ DateRange dr = new DateRange(new Date(lower), new Date(upper));\n/* 1330 */ setRange(dr, false, false);\n/* */ } \n/* */ }",
"long getDeadline();",
"public Deadline(String name, String deadline) {\n super(name, DateTimeUtil.stringAsDateTime(deadline));\n }",
"private void actionBiggerCells() {\n layoutPanel.changeCellSize(true);\n }",
"public void setCell(boolean upR, boolean upL, boolean doR, boolean doL){\n upperRight = upR;\n upperLeft = upL;\n downerRight = doR;\n downerLeft = doL;\n }",
"public void checkTimeRangeSettingsAccordingToTimeModelBeforeJadeStart() {\r\n\t\t\r\n\t\t// --- Get global ScheduleTimeRange --------------- \r\n\t\tScheduleTimeRange strGlobal = ScheduleTimeRangeController.getScheduleTimeRange();\r\n\t\tif (strGlobal==null) return;\r\n\t\t\r\n\t\t// --- Get Project instance -----------------------\r\n\t\tProject project = this.graphController.getProject();\r\n\t\tif (project==null) return; // (will not happen, but see 'save' call below)\r\n\t\t\r\n\t\t// --- Get date based time model ------------------\r\n\t\tTimeModel timeModel = this.graphController.getTimeModel();\r\n\t\tif (! (timeModel instanceof TimeModelDateBased)) return;\r\n\t\t\t\t\r\n\t\t// --- Get start and end time of the execution ---- \t\r\n\t\tTimeModelDateBased tmDataBased = (TimeModelDateBased) timeModel;\r\n\t\tlong startTime = tmDataBased.getTimeStart();\r\n\t\t\r\n\t\tif (strGlobal.getTimeFrom()!=startTime) {\r\n\t\t\t// --- ScheduleTimeRange needs to adjusted! --- \r\n\t\t\tlong shift = strGlobal.getTimeFrom() - startTime; \r\n\t\t\tScheduleTimeRange strGlobalNew = strGlobal.getCopy();\r\n\t\t\tstrGlobalNew.setTimeFrom(strGlobal.getTimeFrom() - shift);\r\n\t\t\tif (strGlobal.getRangeType()==RangeType.TimeRange) {\r\n\t\t\t\tstrGlobalNew.setTimeTo(strGlobal.getTimeTo() - shift);\r\n\t\t\t}\r\n\t\t\t// --- Set as new global ScheduleTimeRange ----\r\n\t\t\tScheduleTimeRangeController.setScheduleTimeRange(strGlobalNew , EVENT_CONFIGURED_IN_AWB_MAIN_WINDOW);\r\n\t\t\t\r\n\t\t\t// --- Save the project again -----------------\r\n\t\t\tproject.save();\r\n\t\t}\r\n\t\t\r\n\t}",
"public void setDateHeure(Long p_odateHeure);",
"protected long deadlineSeconds() {\n return DEFAULT_TASK_SECONDS;\n }",
"private void disablePastDates() {\n dateBox.setValue(LocalDate.now());\n final Callback<DatePicker, DateCell> dayCellFactory =\n new Callback<DatePicker, DateCell>() {\n @Override\n public DateCell call(final DatePicker datePicker) {\n return new DateCell() {\n @Override\n public void updateItem(LocalDate item, boolean empty) {\n super.updateItem(item, empty);\n if (item.isBefore(\n dateBox.getValue().plusDays(1))\n ) {\n setDisable(true);\n setStyle(\"-fx-background-color: #ffc0cb;\");\n }\n }\n };\n }\n };\n dateBox.setDayCellFactory(dayCellFactory);\n }",
"public void setHC_WorkEndDate (Timestamp HC_WorkEndDate);",
"protected void selectHorizontalAutoTickUnit(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge) {\n/* 1368 */ long shift = 0L;\n/* 1369 */ if (this.timeline instanceof SegmentedTimeline) {\n/* 1370 */ shift = ((SegmentedTimeline)this.timeline).getStartTime();\n/* */ }\n/* 1372 */ double zero = valueToJava2D(shift + 0.0D, dataArea, edge);\n/* 1373 */ double tickLabelWidth = estimateMaximumTickLabelWidth(g2, \n/* 1374 */ getTickUnit());\n/* */ \n/* */ \n/* 1377 */ TickUnitSource tickUnits = getStandardTickUnits();\n/* 1378 */ TickUnit unit1 = tickUnits.getCeilingTickUnit(getTickUnit());\n/* 1379 */ double x1 = valueToJava2D(shift + unit1.getSize(), dataArea, edge);\n/* 1380 */ double unit1Width = Math.abs(x1 - zero);\n/* */ \n/* */ \n/* 1383 */ double guess = tickLabelWidth / unit1Width * unit1.getSize();\n/* 1384 */ DateTickUnit unit2 = (DateTickUnit)tickUnits.getCeilingTickUnit(guess);\n/* 1385 */ double x2 = valueToJava2D(shift + unit2.getSize(), dataArea, edge);\n/* 1386 */ double unit2Width = Math.abs(x2 - zero);\n/* 1387 */ tickLabelWidth = estimateMaximumTickLabelWidth(g2, unit2);\n/* 1388 */ if (tickLabelWidth > unit2Width) {\n/* 1389 */ unit2 = (DateTickUnit)tickUnits.getLargerTickUnit(unit2);\n/* */ }\n/* 1391 */ setTickUnit(unit2, false, false);\n/* */ }",
"private void onChange() {\n startTime = -1L;\n endTime = -1L;\n minLat = Double.NaN;\n maxLat = Double.NaN;\n minLon = Double.NaN;\n maxLon = Double.NaN;\n }",
"public int getDeadline() {\n\t\treturn this.deadline;\n\t}",
"protected final void setMin() {\n\tint prevmin = this.min;\n\n\tint i1 = this.low;\n\tint i2 = left.min;\n\tint i3 = right.min;\n\n\tif (i2 == -1) \n\t i2 = i1;\n\tif (i3 == -1) \n\t i3 = i1;\n\n\tif ((i1 <= i2) && (i1 <= i3)) {\n\t this.min = i1;\n\t} else if ((i2 <= i1) && (i2 <= i3)) {\n\t this.min = i2;\n\t} else {\n\t this.min = i3;\n\t}\n\n\tif ((p != IntervalNode.nullIntervalNode) &&\n\t (prevmin != this.min)) {\n \t p.setMin();\n\t}\n }",
"private void setEditedTime(int value) {\n \n editedTime_ = value;\n }",
"public void setTimeLeft(int time) {\n final int t = time;\n \n Runnable doUpdate = new Runnable() {\n public void run() {\n timeLabel.setText(\"<html>Period Time Remaining: <font color=#993333>\" + t + \"</font></html>\");\n }\n };\n \n SwingUtilities.invokeLater(doUpdate);\n }",
"private void setTimeLeft() {\n\t\tif (timeLeft == 1)\n\t\t\ttimer.cancel();\n\t\ttimeLeft--;\n\t}",
"private Calendar setAssignmentDeadlineCalendar() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy HHmm\");\n Date date = null;\n try {\n date = sdf.parse(assignmentDeadline);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n Calendar assignmentDeadlineCalendar = Calendar.getInstance();\n assignmentDeadlineCalendar.setTime(date);\n return assignmentDeadlineCalendar;\n }",
"public void setStatusdate(long newVal) {\n setStatusdate(new java.sql.Timestamp(newVal));\n }",
"public void setMinEdad(int min);",
"public abstract LocalDateTime getDeadline();",
"@Test\n public void testTopUpTasksOutsidePlanningYield() throws Exception {\n\n // SETUP: Data Setup for running the Function\n EvtSchedDeadTable lEvtSchedDead =\n EvtSchedDeadTable.findByPrimaryKey( new EventDeadlineKey( \"4650:500:0:23\" ) );\n lEvtSchedDead.setIntervalQt( 0.0 );\n lEvtSchedDead.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had only 3 tasks. Top-up task fall outsidte planning yield should\n // not be found\n assertEquals( 3, iDataSet.getRowCount() );\n\n iDataSet.addSort( \"sched_id\", true );\n\n // assigned task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 101 ), \"ASSIGNEDTASK101\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // assign task with deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 102 ), \"ASSIGNEDTASK102\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE,\n DateUtils.parseDateTimeString( \"25-MAY-2007 21:30\" ),\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // loose task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 400 ), \"LOOSETASK\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 0, \"REQ\", null, null, 0.0, null, null, null,\n null, null );\n\n // TEARDOWN: Undo the setup changes\n lEvtSchedDead.setIntervalQt( 15000.0 );\n }",
"public void updateWaitingTime(){\n waitingTime = waitingTime - 1;\n }",
"public void setLowerBound (int lowerBound) throws ModelException;",
"@Override\n public void jornadaTrabalho(int x) {\n DateTimeFormatter formatoData = DateTimeFormatter.ofPattern(\"HH:mm\");\n \n if (x == 40) {\n // Jornada de Trabalho PADRÃO 40h\n entrada1 = LocalTime.of(8, 0);\n saida1 = LocalTime.of(12, 0);\n entrada2 = LocalTime.of(14, 0);\n saida2 = LocalTime.of(18, 0);\n cbxJornada.setSelectedIndex(1);\n jornada = 40;\n } else if (x == 44) {\n // Jornada de Trabalho PADRÃO 44h\n entrada1 = LocalTime.of(7, 0, 0);\n saida1 = LocalTime.of(12, 0, 0);\n entrada2 = LocalTime.of(14, 0, 0);\n saida2 = LocalTime.of(18, 0, 0);\n cbxJornada.setSelectedIndex(2);\n jornada = 44;\n }\n //Popula os campos de horas\n txtEntrada1.setText(entrada1.format(formatoData));\n txtSaida1.setText(saida1.format(formatoData));\n txtEntrada2.setText(entrada2.format(formatoData));\n txtSaida2.setText(saida2.format(formatoData));\n }",
"@Override\n public String getDeadlineName() {\n return this.deadline.getName();\n }",
"public Deadline() {\n this.dateWrapper = Optional.empty();\n this.timeWrapper = Optional.empty();\n }",
"private void setDefaultValidRange ()\r\n\t{\r\n\t\tm_lowerBounds = Integer.MIN_VALUE;\r\n\t\tm_upperBounds = Integer.MAX_VALUE;\r\n\t}",
"public void setMin( float min )\n {\n this.min = min;\n show_text();\n }",
"public void setMinTime(Integer minTime) {\n this.minTime = minTime;\n }",
"public void presetTime(long tick,int ento){\r\n\r\n\t}",
"public void setTbrq(Date tbrq) {\r\n this.tbrq = tbrq;\r\n }",
"private void setMinThreshold() {\n minThreshold = value + value * postBoundChange / 100;\n }",
"public void setMinHeight(double aHeight)\n{\n double h = aHeight<=0? 0 : aHeight; if(h==getMinHeight()) return;\n firePropertyChange(\"MinHeight\", put(\"MinHeight\", h), h, -1);\n}",
"public Cell() {\n\t\tthis.alive = false; // Initially dead\n\t\tthis.age = 0; // Initially age of 0\n\t}",
"private void createFinalTimeLabel(WritableSheet sheet)\n throws WriteException {\n WritableFont times10pt = new WritableFont(WritableFont.TIMES, 10);\n // Define the cell format\n times = new WritableCellFormat(times10pt);\n // Lets automatically wrap the cells\n times.setWrap(true);\n\n // create create a bold font with unterlines\n WritableFont times10ptBoldUnderline = new WritableFont(WritableFont.TIMES, 10, WritableFont.BOLD, false,\n UnderlineStyle.SINGLE);\n timesBoldUnderline = new WritableCellFormat(times10ptBoldUnderline);\n // Lets automatically wrap the cells\n timesBoldUnderline.setWrap(true);\n\n CellView cv = new CellView();\n cv.setFormat(times);\n cv.setFormat(timesBoldUnderline);\n cv.setAutosize(true);\n\n // Write a few headers\n addCaption(sheet, 0, 0, \"File\");\n addCaption(sheet, 1, 0, \"Time\");\n\n }",
"public InterventionDeadlineDefined() {\r\n setEventTypeUid(INTERVENTION_DEADLINE_DEFINED.getUid());\r\n setEventType(INTERVENTION_DEADLINE_DEFINED.getName());\r\n }"
] | [
"0.7200865",
"0.66992766",
"0.6378779",
"0.63255346",
"0.56840694",
"0.54877853",
"0.5422237",
"0.5378316",
"0.5244605",
"0.5144377",
"0.5141185",
"0.5120978",
"0.51204705",
"0.5069453",
"0.50466573",
"0.50430214",
"0.5035433",
"0.50097597",
"0.5009084",
"0.49989814",
"0.49974337",
"0.49832377",
"0.49750265",
"0.4971321",
"0.49597237",
"0.49552467",
"0.49531606",
"0.49364707",
"0.4931881",
"0.49158058",
"0.4901052",
"0.48915485",
"0.48814246",
"0.48809233",
"0.48692128",
"0.4868175",
"0.48630193",
"0.4852475",
"0.48424238",
"0.48302537",
"0.48252767",
"0.48216677",
"0.4818706",
"0.48101687",
"0.48036218",
"0.47987214",
"0.4788346",
"0.4771751",
"0.47689876",
"0.4761889",
"0.47524494",
"0.47388476",
"0.473363",
"0.47298756",
"0.47155592",
"0.47123596",
"0.4707459",
"0.46762636",
"0.46743718",
"0.46599525",
"0.46564052",
"0.46528906",
"0.4652713",
"0.46518397",
"0.46517152",
"0.46436328",
"0.46404517",
"0.4637869",
"0.461744",
"0.46163392",
"0.45927972",
"0.45916292",
"0.45894372",
"0.45879725",
"0.45813522",
"0.45790905",
"0.4575818",
"0.45748723",
"0.45696768",
"0.45530403",
"0.45510107",
"0.45453292",
"0.45401725",
"0.45400262",
"0.45399216",
"0.45396888",
"0.45385787",
"0.453532",
"0.4531638",
"0.45297125",
"0.45246086",
"0.4521473",
"0.45191127",
"0.45186815",
"0.4515944",
"0.45153034",
"0.4513928",
"0.45059687",
"0.45041272",
"0.45026007"
] | 0.7650217 | 0 |
Set cell upper deadline | public void setCellUpperDeadline(Date cellUpperDeadline) {
CellUpperDeadline = cellUpperDeadline;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getCellUpperDeadline() {\r\n\t\treturn CellUpperDeadline;\r\n\t}",
"public void setCellLowerDeadline(Date cellLowerDeadline) {\r\n\t\tCellLowerDeadline = cellLowerDeadline;\r\n\t}",
"public Date getCellDeadline() {\r\n\t\treturn CellDeadline;\r\n\t}",
"public Date getCellLowerDeadline() {\r\n\t\treturn CellLowerDeadline;\r\n\t}",
"public void setDeadline(int deadline)\n\t{\n\t\tthis.deadline = deadline;\n\t}",
"public void setDeadline(int deadline) {\n\t\tif (deadline < 0)\n\t\t\tthrow new InvalidDeadlineException(deadline);\n\n\t\tif (deadline > this.deadline) \n\t\t\tthis.deadline = deadline;\n\t}",
"public Builder setDeadline(long value) {\n \n deadline_ = value;\n onChanged();\n return this;\n }",
"public void setLastTableRowEdit(java.util.Date value);",
"@Override\n public void edit() {\n this.parent.handleEditSignal(this.deadline);\n }",
"public Task(int deadline, int value) {\n\n\t\tsetDeadline(deadline);\n\t\tsetValue(value);\n\n\t\tif (maxDeadline < this.deadline) {\n\t\t\tmaxDeadline = this.deadline;\n\t\t}\n\t}",
"public void setUppertranstime(Date uppertranstime) {\n\t\tthis.uppertranstime = uppertranstime;\n\t}",
"public void setTimeEnd(long te)\n {\n this.timeEnd = (te > 0L)? te : -1L;\n }",
"@Override\n\tpublic void setEndTime(float t) \n\t{\n\t\t_tend = t;\n\t}",
"public synchronized void setCellValue(byte in_cellValue)\n {\n cellValue = (in_cellValue > DEAD) ? ALIVE : DEAD;\n }",
"public TaskBookBuilder addTypicalDeadlineTasks() {\n final TypicalDeadlineTasks tdt = new TypicalDeadlineTasks();\n return addDeadlineTasks(tdt.getDeadlineTasks());\n }",
"public void setRealDeadline(Date realDeadline) {\r\n this.realDeadline = realDeadline;\r\n }",
"private void createFinalTimeLabel(WritableSheet sheet)\n throws WriteException {\n WritableFont times10pt = new WritableFont(WritableFont.TIMES, 10);\n // Define the cell format\n times = new WritableCellFormat(times10pt);\n // Lets automatically wrap the cells\n times.setWrap(true);\n\n // create create a bold font with unterlines\n WritableFont times10ptBoldUnderline = new WritableFont(WritableFont.TIMES, 10, WritableFont.BOLD, false,\n UnderlineStyle.SINGLE);\n timesBoldUnderline = new WritableCellFormat(times10ptBoldUnderline);\n // Lets automatically wrap the cells\n timesBoldUnderline.setWrap(true);\n\n CellView cv = new CellView();\n cv.setFormat(times);\n cv.setFormat(timesBoldUnderline);\n cv.setAutosize(true);\n\n // Write a few headers\n addCaption(sheet, 0, 0, \"File\");\n addCaption(sheet, 1, 0, \"Time\");\n\n }",
"public WaitCell(int idx, int maxturn){\r\n super(idx);\r\n this.maxturn = maxturn;\r\n this.actualturn = maxturn;\r\n }",
"public int getDeadline(){return deadline;}",
"@java.lang.Override\n public long getDeadline() {\n return deadline_;\n }",
"@java.lang.Override\n public long getDeadline() {\n return deadline_;\n }",
"public Builder clearDeadline() {\n \n deadline_ = 0L;\n onChanged();\n return this;\n }",
"public void setCellUpperPrice(double cellUpperPrice) {\r\n\t\tCellUpperPrice = cellUpperPrice;\r\n\t}",
"@Test\n public void testNoTopUpTasksDueAfterSchedWindow() throws Exception {\n\n // SETUP: Data Setup for running the Function\n EvtSchedDeadTable lEvtSchedDead =\n EvtSchedDeadTable.findByPrimaryKey( new EventDeadlineKey( \"4650:102:0:21\" ) );\n lEvtSchedDead.setDeadlineDate( DateUtils.parseDateTimeString( \"15-MAY-2007 10:00\" ) );\n lEvtSchedDead.update();\n\n EvtSchedDeadTable lEvtSchedDead2 =\n EvtSchedDeadTable.findByPrimaryKey( new EventDeadlineKey( \"4650:500:0:23\" ) );\n lEvtSchedDead2.setDeadlineDate( DateUtils.parseDateTimeString( \"15-MAY-2007 10:00\" ) );\n lEvtSchedDead2.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had only 2 tasks with no deadline\n assertEquals( 2, iDataSet.getRowCount() );\n\n // loose task with no deadline\n iDataSet.next();\n\n testRow( new TaskKey( 4650, 101 ), \"ASSIGNEDTASK101\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null, // no\n // deadline\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // assigned task with no deadline\n iDataSet.next();\n\n testRow( new TaskKey( 4650, 400 ), \"LOOSETASK\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null, // no\n // deadline\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 0, \"REQ\", null, null, 0.0, null, null, null,\n null, null );\n\n // TEARDOWN: Undo the Setup Changes\n lEvtSchedDead.setDeadlineDate( DateUtils.parseDateTimeString( \"25-MAY-2007 21:30\" ) );\n lEvtSchedDead.update();\n\n lEvtSchedDead2.setDeadlineDate( DateUtils.parseDateTimeString( \"26-MAY-2007 19:45\" ) );\n lEvtSchedDead2.update();\n }",
"public void setHC_WorkEndDate (Timestamp HC_WorkEndDate);",
"double getDeadline() {\n return deadline;\n }",
"private void updateEndTime() {\n Date date = endTimeCalendar.getTime();\n String endTime = new SimpleDateFormat(\"HH:mm\").format(date);\n endHourText.setText(endTime);\n }",
"void setInhabitedTime(long ticks);",
"public EditorDayTime( int columnIndex, int row )\r\n {\r\n // use spin editor\r\n super( columnIndex, row );\r\n m_spin = new SpinEditor();\r\n m_spin.setFormat( \"00\" );\r\n setControl( m_spin );\r\n\r\n // determine min & max valid times\r\n m_min = 0;\r\n m_max = Time.MILLISECONDS_IN_DAY;\r\n Day day = JPlanner.plan.daytypes.get( row );\r\n if ( columnIndex > Day.SECTION_START1 )\r\n {\r\n m_min = ( (Time) day.getValue( columnIndex - 1 ) ).getDayMilliseconds();\r\n m_min += 60000;\r\n }\r\n int num = day.getNumberOfPeriods();\r\n if ( columnIndex < Day.SECTION_START1 + 2 * num - 1 )\r\n {\r\n m_max = ( (Time) day.getValue( columnIndex + 1 ) ).getDayMilliseconds();\r\n m_max -= 60000;\r\n }\r\n\r\n // add listener text changes to wrap hours and minutes, and set error status\r\n addListener( ( observable, oldText, newText ) ->\r\n {\r\n // as prefix hold hours, if not null means minutes are being edited\r\n if ( m_spin.getPrefix() != null )\r\n {\r\n // if minutes greater than 59, increase hours\r\n int minutes = m_spin.getInteger();\r\n if ( minutes > 59 )\r\n {\r\n String prefix = m_spin.getPrefix();\r\n int hours = minutes / 60 + Integer.parseInt( prefix.substring( 0, prefix.length() - 1 ) );\r\n m_spin.setPrefixSuffix( hours + \":\", null );\r\n m_spin.setInteger( minutes % 60 );\r\n return;\r\n }\r\n\r\n // if minutes less than 0, decrease hours\r\n if ( minutes < 0 )\r\n {\r\n String prefix = m_spin.getPrefix();\r\n int hours = ( minutes - 60 ) / 60 + Integer.parseInt( prefix.substring( 0, prefix.length() - 1 ) );\r\n m_spin.setPrefixSuffix( hours + \":\", null );\r\n m_spin.setInteger( ( minutes + 60 ) % 60 );\r\n return;\r\n }\r\n }\r\n\r\n // check editor value and if error\r\n String error = check( newText );\r\n if ( error == null )\r\n JPlanner.setNoError( getControl(), \"\" );\r\n else\r\n JPlanner.setError( getControl(), error );\r\n } );\r\n\r\n }",
"public TimetableItemCellSizer(TableModel table_model){\n this.table_model = table_model;\n }",
"public void setAfterCt(Date afterCt) {\r\n this.afterCt = afterCt;\r\n }",
"public void setDeadlineDate(Date deadlineDate) {\r\n this.deadlineDate = deadlineDate;\r\n }",
"public InterventionDeadlineDefined() {\r\n setEventTypeUid(INTERVENTION_DEADLINE_DEFINED.getUid());\r\n setEventType(INTERVENTION_DEADLINE_DEFINED.getName());\r\n }",
"public abstract void setEndTime(Date endTime);",
"private void addLastValueToTable(){\n\t\t//System.out.println(theModelColumn.size()-1);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getX(), theModelColumn.size()-1, 0);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getY(), theModelColumn.size()-1, 1);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getWidth(), theModelColumn.size()-1, 2);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getHeight(), theModelColumn.size()-1, 3);\n\t}",
"long getDeadline();",
"public void setREQ_END_TIME(java.sql.Time value)\n {\n if ((__REQ_END_TIME == null) != (value == null) || (value != null && ! value.equals(__REQ_END_TIME)))\n {\n _isDirty = true;\n }\n __REQ_END_TIME = value;\n }",
"public void setUpperRightY(float value)\n {\n rectArray.set(3, new COSFloat( value ) );\n }",
"protected void selectVerticalAutoTickUnit(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge) {\n/* */ DateTickUnit finalUnit;\n/* 1407 */ TickUnitSource tickUnits = getStandardTickUnits();\n/* 1408 */ double zero = valueToJava2D(0.0D, dataArea, edge);\n/* */ \n/* */ \n/* 1411 */ double estimate1 = getRange().getLength() / 10.0D;\n/* */ \n/* 1413 */ DateTickUnit candidate1 = (DateTickUnit)tickUnits.getCeilingTickUnit(estimate1);\n/* 1414 */ double labelHeight1 = estimateMaximumTickLabelHeight(g2, candidate1);\n/* 1415 */ double y1 = valueToJava2D(candidate1.getSize(), dataArea, edge);\n/* 1416 */ double candidate1UnitHeight = Math.abs(y1 - zero);\n/* */ \n/* */ \n/* */ \n/* 1420 */ double estimate2 = labelHeight1 / candidate1UnitHeight * candidate1.getSize();\n/* */ \n/* 1422 */ DateTickUnit candidate2 = (DateTickUnit)tickUnits.getCeilingTickUnit(estimate2);\n/* 1423 */ double labelHeight2 = estimateMaximumTickLabelHeight(g2, candidate2);\n/* 1424 */ double y2 = valueToJava2D(candidate2.getSize(), dataArea, edge);\n/* 1425 */ double unit2Height = Math.abs(y2 - zero);\n/* */ \n/* */ \n/* */ \n/* 1429 */ if (labelHeight2 < unit2Height) {\n/* 1430 */ finalUnit = candidate2;\n/* */ } else {\n/* */ \n/* 1433 */ finalUnit = (DateTickUnit)tickUnits.getLargerTickUnit(candidate2);\n/* */ } \n/* 1435 */ setTickUnit(finalUnit, false, false);\n/* */ }",
"@Override\n\tpublic int getYWait() {\n\t\treturn 0;\n\t}",
"void setEndTick(int endTick);",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getLastTableRowEdit();",
"public void setLastCol(org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle lastCol)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(LASTCOL$12, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().add_element_user(LASTCOL$12);\n }\n target.set(lastCol);\n }\n }",
"public Date getRealDeadline() {\r\n return realDeadline;\r\n }",
"public void setUpperValue(int value) {\n // Compute new extent.\n int lowerValue = getValue();\n int newExtent = Math.min(Math.max(0, value - lowerValue), getMaximum() - lowerValue);\n \n // Set extent to set upper value.\n setExtent(newExtent);\n }",
"public void modifyDeadline(String deadline, String taskName) {\n \t\n \tSystem.out.println(\"Inside modifyDeadline()\");\n \tTask t = new Task();\n \tint count = 0;\n \tfor(Task task : toDoList) {\n \t\tif(task.getTaskName().equals(taskName)) {\n \t\t\tt = task;\n \t\t\ttry {\n \t\t\t\ttask.setDeadline(new SimpleDateFormat(\"dd/MM/yyyy\").parse(deadline));\n \t\t\t}catch (ParseException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t\ttoDoList.set(count, task);\n \t\t}\n \t\tcount ++;\n \t}\n \tSystem.out.println(\"Task Deadline modifies Succesfully\");\n \t\n \tdisplay();\n \t\n }",
"void xsetEndTime(org.apache.xmlbeans.XmlDateTime endTime);",
"@Override\n\tprotected void setUpperBound() {\n\t\t\n\t}",
"public void assignDeadline(String deadline, String taskName) {\n \t\n \tSystem.out.println(\"Inside assignDeadline()\");\n \tTask t = new Task();\n \tint count = 0;\n \tfor(Task task : toDoList) {\n \t\tif(task.getTaskName().equals(taskName)) {\n \t\t\tt = task;\n \t\t\ttry {\n \t\t\t\ttask.setDeadline(new SimpleDateFormat(\"dd/MM/yyyy\").parse(deadline));\n \t\t\t}catch (ParseException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t\ttoDoList.set(count, task);\n \t\t}\n \t\tcount++;\n \t}\n \tSystem.out.println(\"Task Deadline Assigned successfully\");\n \t\n \tdisplay();\n }",
"EndCell(int x, int y, ACell left, ACell top, ACell right, ACell bottom) {\r\n this.x = x;\r\n this.y = y;\r\n this.left = left;\r\n this.top = top;\r\n this.right = right;\r\n this.bottom = bottom;\r\n }",
"private void setTimeLimit() {\n\t\t// Set the minimum time for \"Departing Time\" spinner\n\t\t// based on current selected combo box item\n\t\tview.setModifyTimeLimit(model.getDepartTime(view\n\t\t\t\t.getModifyStationIndex()));\n\t}",
"public void setTimeBounds(TimeBounds timeBounds) throws java.beans.PropertyVetoException {\n\t\tif (!Matchable.areEqual(fieldTimeBounds,timeBounds) ) {\n\t\t\t// Only here to ensure it is being used correctly.\n\t\t\t// cbit.util.Assertion.assertNotNull(timeBounds);\n\t\t\tTimeBounds oldValue = fieldTimeBounds;\n\t\t\tfireVetoableChange(PROPERTY_TIME_BOUNDS, oldValue, timeBounds);\n\t\t\tfieldTimeBounds = timeBounds;\n\t\t\tfirePropertyChange(PROPERTY_TIME_BOUNDS, oldValue, timeBounds);\n\t\t}\n\t}",
"private void updateTestEnd() {\r\n\t\ttry {\r\n\t\t\tconnect();\r\n\t\t\tPreparedStatement pStat = dbConnection.prepareStatement(\"UPDATE runs set `id_status`=?,`time_end`=now() where `id_run` =?\");\r\n\t\t\tpStat.setInt(1, Conf.getTestStatus());\r\n\t\t\tpStat.setInt(2, Conf.getRunId());\r\n\t\t\tpStat.execute();\r\n\t\t\tpStat.close();\r\n\t\t} catch (SQLException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t}",
"private void setScheduleTableCell(int row, int col, String text) {\n\t\tteamScheduleTable.setText(row, col, text);\n\t\tteamScheduleTable.getCellFormatter().setAlignment(row, col, HasHorizontalAlignment.ALIGN_RIGHT, HasVerticalAlignment.ALIGN_MIDDLE);\n\t\tteamScheduleTable.getCellFormatter().addStyleName(row, col, style.teamSchedule());\n\t}",
"EndCell(int x, int y) {\r\n this.x = x;\r\n this.y = y;\r\n this.left = null;\r\n this.top = null;\r\n this.right = null;\r\n this.bottom = null;\r\n }",
"public void setMaxTime(int aMaxTime)\n{\n // Set max time\n _maxTime = aMaxTime;\n \n // If time is greater than max-time, reset time to max time\n if(getTime()>_maxTime)\n setTime(_maxTime);\n}",
"public int getDeadline() {\n\t\treturn this.deadline;\n\t}",
"public void setUpperPoint(Point upper) {\n this.upper = upper;\n }",
"void setCloseBodyRangeEnd(int end) {\n this.fCloseBodyRange[1] = end;\n }",
"void setEndPosition(net.opengis.gml.x32.TimePositionType endPosition);",
"private void populateMinMaxTime()\n {\n final ColumnHolder columnHolder = index.getColumnHolder(ColumnHolder.TIME_COLUMN_NAME);\n try (final NumericColumn column = (NumericColumn) columnHolder.getColumn()) {\n this.minTime = DateTimes.utc(column.getLongSingleValueRow(0));\n this.maxTime = DateTimes.utc(column.getLongSingleValueRow(column.length() - 1));\n }\n }",
"public void setRange(Date lower, Date upper) {\n/* 610 */ if (lower.getTime() >= upper.getTime()) {\n/* 611 */ throw new IllegalArgumentException(\"Requires 'lower' < 'upper'.\");\n/* */ }\n/* 613 */ setRange(new DateRange(lower, upper));\n/* */ }",
"@Override public void adjustmentValueChanged(AdjustmentEvent e)\n{\n int v = e.getValue();\n last_user = v;\n if (v >= getMaximum()) at_end = true;\n else at_end = false;\n\n for_bubble.getExecution().setCurrentTime(v);\n}",
"public Date getDeadlineDate() {\r\n return deadlineDate;\r\n }",
"protected void deadlineLeasing() {\n log.info(\"OrdersBean : deadlineLeasing\");\n List<OrdersEntity> ordersEntitiesDeadline = ordersServices.findAllOrdersByIdUserAndStatusIsValidate(usersBean.getUsersEntity().getId());\n if (!ordersEntitiesDeadline.isEmpty()) {\n contractsBean.findAllContractsInAllMyOrdersForLeasingAndDeadlineIsLowerThan1Month(ordersEntitiesDeadline);\n }\n }",
"private Calendar setAssignmentDeadlineCalendar() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy HHmm\");\n Date date = null;\n try {\n date = sdf.parse(assignmentDeadline);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n Calendar assignmentDeadlineCalendar = Calendar.getInstance();\n assignmentDeadlineCalendar.setTime(date);\n return assignmentDeadlineCalendar;\n }",
"public void setEndTime(long value) {\r\n this.endTime = value;\r\n }",
"public SetLiftHeightBlockingAfterTime(double height, int minDoneCycles, double error,\n long timeMs) {\n super(height);\n this.timeMs = timeMs;\n this.minDoneCycles = minDoneCycles;\n this.error = error;\n }",
"void setEndTime(java.util.Calendar endTime);",
"private void createTimeLabel(WritableSheet sheet)\n throws WriteException {\n WritableFont times10pt = new WritableFont(WritableFont.TIMES, 10);\n // Define the cell format\n times = new WritableCellFormat(times10pt);\n // Lets automatically wrap the cells\n times.setWrap(true);\n\n // create create a bold font with unterlines\n WritableFont times10ptBoldUnderline = new WritableFont(WritableFont.TIMES, 10, WritableFont.BOLD, false,\n UnderlineStyle.SINGLE);\n timesBoldUnderline = new WritableCellFormat(times10ptBoldUnderline);\n // Lets automatically wrap the cells\n timesBoldUnderline.setWrap(true);\n\n CellView cv = new CellView();\n cv.setFormat(times);\n cv.setFormat(timesBoldUnderline);\n cv.setAutosize(true);\n\n // Write a few headers\n addCaption(sheet, 0, 0, \"File\");\n addCaption(sheet, 1, 0, \"Time\");\n\n }",
"public WaitingCell(int i,int rtw) {\n\t\tsuper(i);\n\t\tthis.roundsToWait = rtw;\n\t\tthis.roundsWaited = 0;\n\t}",
"private void drawVertical(GC gc, Rectangle drawingArea, TimeBarViewerDelegate delegate, boolean top,\n boolean printing) {\n int oy = drawingArea.y;\n\n int basex;\n int minorOff;\n int majorOff;\n int majorLabelOff;\n int dayOff;\n\n if (!top) {\n basex = drawingArea.x;\n minorOff = scaleX(MINORLENGTH);\n majorOff = scaleX(MAJORLENGTH);\n majorLabelOff = scaleX(22);\n dayOff = scaleX(34);\n } else {\n basex = drawingArea.x + drawingArea.width - 1;\n minorOff = scaleX(-MINORLENGTH);\n majorOff = scaleX(-MAJORLENGTH);\n majorLabelOff = scaleX(-10);\n dayOff = scaleX(-22);\n }\n int ox = basex;\n\n int height = drawingArea.height;\n JaretDate date = delegate.getStartDate().copy();\n\n int idx = TickScaler.getTickIdx(delegate.getPixelPerSecond() / getScaleY());\n\n int majTick = TickScaler.getMajorTickMinutes(idx);\n int minTick = TickScaler.getMinorTickMinutes(idx);\n TickScaler.Range range = TickScaler.getRange(idx);\n _lastRange = range;\n\n // clean starting date on a major tick minute position (starting with a\n // day)\n date.setMinutes(0);\n date.setHours(0);\n date.setSeconds(0);\n\n // if range is week take a week starting point\n if (range == Range.WEEK) {\n while (date.getDayOfWeek() != DateUtils.getFirstDayOfWeek()) {\n date.backDays(1.0);\n }\n } else if (range == Range.MONTH) {\n // month -> month starting point\n date.setDay(1);\n }\n JaretDate save = date.copy();\n\n if (printing) {\n gc.setLineWidth(1);\n }\n // draw top/bottom line\n gc.drawLine(ox, oy, ox, oy + height);\n\n // draw the minor ticks\n while (delegate.xForDate(date) < oy + height) {\n int y = delegate.xForDate(date);\n gc.drawLine(ox, y, ox + minorOff, y);\n if (range == Range.MONTH) {\n int adv = Math.round(minTick / APPROXSECONDSINMONTH);\n if (adv == 0) {\n adv = 1;\n }\n date.advanceMonths(adv);\n } else {\n date.advanceMinutes(minTick);\n }\n }\n\n date = save.copy();\n // draw the major ticks\n while (delegate.xForDate(date) < oy + height) {\n int y = delegate.xForDate(date);\n gc.drawLine(ox, y, ox + majorOff, y);\n if (range == Range.MONTH) {\n int adv = Math.round(majTick / APPROXSECONDSINMONTH);\n if (adv == 0) {\n adv = 1;\n }\n date.advanceMonths(adv);\n } else {\n date.advanceMinutes(majTick);\n }\n }\n\n gc.setLineWidth(1);\n\n // labels: draw every two major ticks\n date = save.copy();\n // Labels are drawn beyond the width. Otherwise when the beginning of\n // the labels\n // would not be drawn when the tick itself is out of sight\n while (delegate.xForDate(date) < drawingArea.y + drawingArea.height + 50) {\n int y = delegate.xForDate(date);\n if (date.getMinutes() % (majTick * 2) == 0) {\n // Second line\n String str = null;\n if (range == Range.HOUR) {\n // time\n str = date.toDisplayStringTime();\n } else if (range == Range.DAY) {\n // day\n str = date.getShortDayOfWeekString();\n } else if (range == Range.WEEK) {\n // week\n str = \"KW\" + date.getWeekOfYear();\n } else if (range == Range.MONTH) {\n // month\n str = Integer.toString(date.getYear());\n }\n // draw\n if (top) {\n SwtGraphicsHelper.drawStringRightAlignedVCenter(gc, str, drawingArea.x + drawingArea.width\n + majorOff, y);\n } else {\n SwtGraphicsHelper.drawStringLeftAlignedVCenter(gc, str, drawingArea.x + majorOff, y);\n }\n // // first line\n // if (range == Range.HOUR) {\n // if (date.getDay() != lastDay) {\n // str = date.getDay() + \". (\" + date.getDayOfWeekString() + \")\";\n // } else {\n // str = \"\";\n // }\n // lastDay = date.getDay();\n // } else if (range == Range.DAY || range == Range.WEEK) {\n // str = date.getDay() + \".\" + (third ? date.getShortMonthString() : \"\");\n // } else if (range == Range.MONTH) {\n // str = date.getMonthString();\n // }\n // second = !second;\n // third = count++ % 3 == 0;\n // SwtGraphicsHelper.drawStringCentered(gc, str, x, oy + dayOff);\n }\n if (range == Range.MONTH) {\n int adv = Math.round(majTick / APPROXSECONDSINMONTH);\n if (adv == 0) {\n adv = 1;\n }\n date.advanceMonths(adv);\n } else {\n date.advanceMinutes(majTick);\n }\n }\n }",
"public com.twc.bigdata.views.avro.viewing_info.Builder setEndTime(java.lang.Long value) {\n validate(fields()[1], value);\n this.end_time = value;\n fieldSetFlags()[1] = true;\n return this; \n }",
"public Date getUppertranstime() {\n\t\treturn uppertranstime;\n\t}",
"void setBoardEnd(int month, int day, int year) throws IllegalDateException;",
"public void setLastTimetable(int lastTimetable) {\n this.lastTimetable = lastTimetable;\n }",
"public void ascend() {\n \t\n elevator1.set(0.9);\n elevator2.set(0.9); \n }",
"void setEnd(Instant instant);",
"public void SetTimeRemaining(int value) {\n Timer = value;\n if (Timer > TimerMax)\n {\n Timer = TimerMax;\n }\n }",
"public final void setContractEndTime(java.util.Date contractendtime)\r\n\t{\r\n\t\tsetContractEndTime(getContext(), contractendtime);\r\n\t}",
"public void setFinishTime() {\r\n\t\t\tthis.finishTime = RNG.MAXINT;\r\n\t\t}",
"public void setEndTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(ENDTIME_PROP.get(), value);\n }",
"public void setEndTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(ENDTIME_PROP.get(), value);\n }",
"protected long deadlineSeconds() {\n return DEFAULT_TASK_SECONDS;\n }",
"public Deadline() {\n this.dateWrapper = Optional.empty();\n this.timeWrapper = Optional.empty();\n }",
"@Override\n public Deadline getDeadline() {\n return this.deadline;\n }",
"@Test\n public void testTopUpTasksOutsidePlanningYield() throws Exception {\n\n // SETUP: Data Setup for running the Function\n EvtSchedDeadTable lEvtSchedDead =\n EvtSchedDeadTable.findByPrimaryKey( new EventDeadlineKey( \"4650:500:0:23\" ) );\n lEvtSchedDead.setIntervalQt( 0.0 );\n lEvtSchedDead.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had only 3 tasks. Top-up task fall outsidte planning yield should\n // not be found\n assertEquals( 3, iDataSet.getRowCount() );\n\n iDataSet.addSort( \"sched_id\", true );\n\n // assigned task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 101 ), \"ASSIGNEDTASK101\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // assign task with deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 102 ), \"ASSIGNEDTASK102\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE,\n DateUtils.parseDateTimeString( \"25-MAY-2007 21:30\" ),\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // loose task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 400 ), \"LOOSETASK\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 0, \"REQ\", null, null, 0.0, null, null, null,\n null, null );\n\n // TEARDOWN: Undo the setup changes\n lEvtSchedDead.setIntervalQt( 15000.0 );\n }",
"public void setCellBody(int cellBody) {\n\t\tthis.cellBody = cellBody;\n\t}",
"public void setDropDeadline(Date dropDeadline) {\n this.dropDeadline = dropDeadline;\n }",
"public void changeHighest()\n {\n hourCounts[18] = 100;\n }",
"public void setStatusLastUpd(Date statusLastUpd) {\n this.statusLastUpd = statusLastUpd;\n }",
"public synchronized void switchCell()\n {\n cellValue = (cellValue == ALIVE) ? DEAD : ALIVE;\n }",
"public abstract int getLastCageCellValue(int row, int col);",
"public void setEndTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(ENDTIME_PROP.get(), value);\n }",
"public void setEndTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(ENDTIME_PROP.get(), value);\n }",
"@Override\n\tpublic void setInhabitedTime(long ticks)\n\t{\n\t\tthrow new UnimplementedOperationException();\n\t}",
"public Cell() {\n\t\tthis.alive = false; // Initially dead\n\t\tthis.age = 0; // Initially age of 0\n\t}",
"public void setNetworkEndTime(Date value) {\n setAttributeInternal(NETWORKENDTIME, value);\n }",
"private void setDayCountDown() {\n dayCountDown = getMaxHunger();\n }",
"private void setTableHeight() {\n coachesTable.prefHeightProperty().bind(coachesTable.fixedCellSizeProperty().\n multiply(Bindings.size(coachesTable.getItems())).add(20).add(15)); //margin + header height\n }"
] | [
"0.7368247",
"0.6558509",
"0.6382676",
"0.62536055",
"0.57276624",
"0.5542598",
"0.5500952",
"0.5442431",
"0.5336714",
"0.5265103",
"0.52547294",
"0.5221796",
"0.5203611",
"0.5200661",
"0.51856196",
"0.51670974",
"0.5165181",
"0.5153762",
"0.5149446",
"0.5142927",
"0.51291937",
"0.51109684",
"0.5079049",
"0.5074629",
"0.50559556",
"0.5020829",
"0.49927002",
"0.49838415",
"0.4974332",
"0.4969796",
"0.4968948",
"0.49581587",
"0.49548632",
"0.49319118",
"0.49284995",
"0.49252728",
"0.49244133",
"0.49175507",
"0.49061644",
"0.49022642",
"0.48914644",
"0.48873654",
"0.48832485",
"0.48822105",
"0.48403412",
"0.48357275",
"0.4822203",
"0.4818612",
"0.4810124",
"0.4809426",
"0.47834903",
"0.47789758",
"0.47786847",
"0.47752264",
"0.47581998",
"0.47472665",
"0.47386533",
"0.47291252",
"0.47291094",
"0.47245494",
"0.47185376",
"0.4718456",
"0.4716222",
"0.47153202",
"0.47116455",
"0.47102842",
"0.47051707",
"0.46988302",
"0.46986884",
"0.46861392",
"0.46852958",
"0.46839255",
"0.46823657",
"0.4682182",
"0.46750534",
"0.46732414",
"0.46700838",
"0.46642202",
"0.46613905",
"0.46567303",
"0.46556157",
"0.4651854",
"0.4651854",
"0.46476364",
"0.46456695",
"0.46429792",
"0.46380877",
"0.46376464",
"0.4635768",
"0.46341008",
"0.46279362",
"0.46278664",
"0.46233162",
"0.46142495",
"0.46142495",
"0.46136227",
"0.46100387",
"0.46062672",
"0.46056378",
"0.46040857"
] | 0.79501027 | 0 |
Set cell reserve price | public void setCellReservePrice(double cellReservePrice) {
CellReservePrice = cellReservePrice;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getCellReservePrice() {\r\n\t\treturn CellReservePrice;\r\n\t}",
"public void setPriceEntered (BigDecimal PriceEntered);",
"@Override\n\tpublic void setPrice(double price) {\n\t\tconstantPO.setPrice(price);\n\t}",
"public void setPriceLimitEntered (BigDecimal PriceLimitEntered);",
"public void setPrice(Double price);",
"public void setPriceLimit (BigDecimal PriceLimit);",
"public void setPrice (double ticketPrice)\r\n {\r\n price = ticketPrice;\r\n }",
"public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }",
"public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }",
"public void setPrice(BigDecimal price) {\n this.price = price;\n }",
"public void setPrice(BigDecimal price) {\n this.price = price;\n }",
"public void setPriceLimitOld (BigDecimal PriceLimitOld);",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price)\n {\n this.price = price;\n }",
"public void setPrice(double p)\r\n\t{\r\n\t\tprice = p;\r\n\t}",
"public void setPrice(double price)\n {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPotatoesPrice(double p);",
"@Override\r\n\tpublic void setPrice(double p) {\n\t\tprice = p;\r\n\t}",
"public void setPrice(Double price) {\r\n this.price = price;\r\n }",
"public void setPrice(final BigDecimal price) {\n this.price = price;\n }",
"public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }",
"public void calcPrice() {\r\n\t\tsuper.price = 3 * super.height;\r\n\t}",
"public synchronized double getReservePrice(){\n \treturn reserve_price;\n }",
"public void setPriceActual (BigDecimal PriceActual);",
"public void setCellLowerPrice(double cellLowerPrice) {\r\n\t\tCellLowerPrice = cellLowerPrice;\r\n\t}",
"public void setPrice(double value) {\n this.price = value;\n }",
"public void setPrice(double value) {\n this.price = value;\n }",
"public void setPrice(double price) \n\t{\n\t\tthis.price = price;\n\t}",
"public void setPrice(double price) \n\t{\n\t\tthis.price = price * quantity;\n\t}",
"public void setPrice(double price){this.price=price;}",
"public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}",
"public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}",
"public void setPrice(java.math.BigDecimal price) {\n this.price = price;\n }",
"@Override\n\tpublic void setPrice() {\n\t\tprice = 24.99;\n\n\t}",
"public void putNewPrice(String symbol, double price);",
"public void setPriceListEntered (BigDecimal PriceListEntered);",
"public void setPrice(Double price) {\n this.price = price;\n }",
"public void setPrice(Double price) {\n this.price = price;\n }",
"public void setRESERVE_AMOUNT(BigDecimal RESERVE_AMOUNT) {\r\n this.RESERVE_AMOUNT = RESERVE_AMOUNT;\r\n }",
"public void setPrice(double p) {\n\t\tprice = p;\n\t}",
"public void setPrice(double price) {\n this.price = price;\n if (this.price < 0) {\n this.price = 0;\n }\n }",
"public void setPrice(int price) {\n this.price = (double)price;\n }",
"public void setPrice(double x){\n\t\t\tprice = x;\t\n\t\t}",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"@Override\n public void setValueAt (Object value, int row, int col) {\n SecurityRow secRow = allSecurities.get(row);\n if (col == NEW_PRICE_COLUMN) {\n if(value==null) {\n secRow.newPrice = null;\n } else if(value instanceof Double) {\n secRow.newPrice = (Double)value;\n } else {\n double d = StringUtils.parseRate(String.valueOf(value), decimalChar);\n secRow.newPrice = d==0 ? null : d;\n }\n fireTableCellUpdated (row, col);\n }\n }",
"public void setPrice(int newPrice){\n productRelation.setCost(newPrice);\n }",
"public void setPrice(double p){\n\t\t// store into the instance variable price the value of the parameter p\n\t\tprice = p;\n\t}",
"public void setPrice(int price) {\r\n this.price = price;\r\n }",
"void setCost(double cost);",
"public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }",
"public void setPrice(Money price) {\n this.price = price;\n }",
"public void setPrice(int price) {\n this.price = price;\n }",
"public void setPrice(Number value) {\n setAttributeInternal(PRICE, value);\n }",
"public void setEBookPrice(Number value) {\n setAttributeInternal(EBOOKPRICE, value);\n }",
"public void setBSCA_ProfitPriceLimitEntered (BigDecimal BSCA_ProfitPriceLimitEntered);",
"@Override\n\tpublic void setPrice(int price) {\n\t\t\n\t}",
"public void setPriceListOld (BigDecimal PriceListOld);",
"public void setPrice(double price){\r\n Random chance = new Random();\r\n int crashChance = chance.nextInt(100);\r\n double droppedPrice = price * ThreadLocalRandom.current().nextDouble(0.6, 0.8);\r\n if (crashChance > 95) {\r\n setPlusMinus(\"Down\");\r\n System.out.println(\"This stock has crashed.\");\r\n super.setPrice(price - droppedPrice);\r\n } else if(crashChance < 5){\r\n setPlusMinus(\"Up\");\r\n System.out.println(\"This stock has surged.\");\r\n super.setPrice(price + droppedPrice);\r\n } else {\r\n super.setPrice(price);\r\n }\r\n }",
"public void setPriceList (BigDecimal PriceList);",
"public void changePrice(Booking booking, float price);",
"public void setPrice(int price) {\n\tthis.price = price;\n}",
"public void setPricePerSquareFoot(double newPricePerSquareFoot){\nif(newPricePerSquareFoot > 0){\npricePerSquareFoot = newPricePerSquareFoot;\n}\n}",
"public void setPriceStdEntered (BigDecimal PriceStdEntered);",
"public void setPrice(float price) {\n this.price = price;\n }",
"public void setPrice(float price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n\t\tif(price > 0 )\n\t\t\tthis.price=price;\n\t}",
"public void setCellUpperPrice(double cellUpperPrice) {\r\n\t\tCellUpperPrice = cellUpperPrice;\r\n\t}",
"public void setPrice(int value) {\n this.price = value;\n }",
"public void setPrice(BigDecimal value) {\n setAttributeInternal(PRICE, value);\n }",
"public abstract void initCell(\r\n int row,\r\n int col,\r\n double valueToInitialise);",
"protected void setPrice(float price) {\n\t\t\tthis.price = price;\n\t\t}",
"public void setPrice(int price) {\n\t\tthis.price = price;\n\t\tlbl.setText(price+\" C\");\n\t}",
"public void setPrice(Integer price) {\r\n this.price = price;\r\n }",
"public void setPrice(Integer price) {\r\n this.price = price;\r\n }",
"public void setPrice(Double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(Integer price) {\n this.price = price;\n }",
"public void setPrice(Integer price) {\n this.price = price;\n }",
"public void setPrice(Integer price) {\n this.price = price;\n }",
"public void setPrice(Integer price) {\n this.price = price;\n }",
"public void setPrice(Float price) {\r\n this.price = price;\r\n }",
"protected void setItemPrice(Double itemPrice) {\n this.itemPrice = itemPrice;\n }",
"public void setLiterAllocation (BigDecimal LiterAllocation);",
"public void setPrice(Float price) {\n this.price = price;\n }",
"public void setPriceLimitWTax (BigDecimal PriceLimitWTax);",
"double setCost(double cost);",
"public void setPrice(java.lang.Integer _price)\n {\n price = _price;\n }",
"public void setEBookMinPrice(Number value) {\n setAttributeInternal(EBOOKMINPRICE, value);\n }",
"public void setPriceStd (BigDecimal PriceStd);",
"public void setBSCA_ProfitPriceListEntered (BigDecimal BSCA_ProfitPriceListEntered);"
] | [
"0.7064866",
"0.63849103",
"0.631133",
"0.6256519",
"0.6247386",
"0.620945",
"0.6203098",
"0.6174685",
"0.6174685",
"0.6172342",
"0.6172342",
"0.61252856",
"0.6111242",
"0.6111242",
"0.6111242",
"0.6106683",
"0.6105927",
"0.6103418",
"0.6089606",
"0.6089606",
"0.6089606",
"0.6089606",
"0.6089606",
"0.6089606",
"0.6089606",
"0.60637075",
"0.6044682",
"0.60356236",
"0.60329723",
"0.60329276",
"0.6030185",
"0.6023725",
"0.60210717",
"0.599415",
"0.59918547",
"0.59918547",
"0.5991712",
"0.5984445",
"0.5982041",
"0.59754735",
"0.59754735",
"0.59682256",
"0.59588635",
"0.5958144",
"0.59435254",
"0.59408265",
"0.59408265",
"0.5933527",
"0.59096175",
"0.589947",
"0.5898901",
"0.58791995",
"0.58776766",
"0.58776766",
"0.58776766",
"0.5873133",
"0.5867952",
"0.586469",
"0.585893",
"0.58572584",
"0.5850679",
"0.5846911",
"0.58292735",
"0.5827232",
"0.5822403",
"0.5810457",
"0.58072424",
"0.57934886",
"0.57930523",
"0.57809466",
"0.5764332",
"0.57596314",
"0.575829",
"0.57579863",
"0.57557714",
"0.57557714",
"0.5742297",
"0.5735287",
"0.57206696",
"0.5718141",
"0.57084185",
"0.57082427",
"0.5707506",
"0.5699843",
"0.5699843",
"0.5694624",
"0.5683103",
"0.5683103",
"0.5683103",
"0.5683103",
"0.5675124",
"0.5651201",
"0.5651175",
"0.5651015",
"0.56088936",
"0.55890644",
"0.5588893",
"0.5578132",
"0.5577409",
"0.55659544"
] | 0.7959413 | 0 |
get cell lower price. | public double getCellLowerPrice() {
return CellLowerPrice;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BigDecimal getLowPrice();",
"public java.math.BigDecimal getLow() {\n return low;\n }",
"public double getLowPrice() {\n return this.lowPrice;\n }",
"public double getLowPrice() {\r\n\t\treturn lowPrice;\r\n\t}",
"public void setCellLowerPrice(double cellLowerPrice) {\r\n\t\tCellLowerPrice = cellLowerPrice;\r\n\t}",
"public Number getEBookMinPrice() {\n return (Number)getAttributeInternal(EBOOKMINPRICE);\n }",
"public double getLow() {\n return low;\n }",
"public double getCellUpperPrice() {\r\n\t\treturn CellUpperPrice;\r\n\t}",
"public double getLow() {return low;}",
"public double lower()\n\t{\n\t\treturn _dblLower;\n\t}",
"public Point getXLower()\n {\n return (Point)xLow.clone();\n }",
"BigDecimal getHighPrice();",
"BigDecimal getPreviousClosePrice();",
"public double getLowerValue() {\n return this.lowerMeasure.getValue();\n }",
"org.apache.xmlbeans.XmlDecimal xgetSingleBetMinimum();",
"float getLt();",
"double getMin();",
"double getMin();",
"public Point getLowerPoint() {\n return lower;\n }",
"java.math.BigDecimal getWagerMinimum();",
"java.math.BigDecimal getSingleBetMinimum();",
"public BigDecimal getPriceEntered();",
"double getLeft(double min);",
"public double getMinimumStock () {\r\n\t\treturn minimumStock;\r\n\t}",
"BigDecimal getOpenPrice();",
"public int getSellPrice(){\n\t\treturn (int)(price * 0.6);\n\t}",
"public double getCellReservePrice() {\r\n\t\treturn CellReservePrice;\r\n\t}",
"public int getlowerTo (int blockHt, int currentBar, int barHeights[], int targetCol1Ht, int targetCol2Ht) {\n\t\tint lowerTo = 0; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\tif (blockHt == 1) { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tlowerTo = targetCol1Ht; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//the height of the current target is equal to the height of target column 1 \n\t}\n\t\tif (blockHt == 2) { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tlowerTo = targetCol2Ht;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the height of the current target is equal to the height of target column 2\n}\n\t\tif (blockHt == 3) { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tlowerTo = barHeights[currentBar]; \t\t\t\t\t\t\t\t\t\t\t\t\t// the height of the current target is equal to the height of the current bar in the array for any given loop \n\t\t}\n\t\treturn lowerTo; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//return the height of the current target you intend to place a block upon \n\t\t}",
"private double getMin() {\n return min;\n }",
"public BigDecimal getPriceLimitEntered();",
"org.apache.xmlbeans.XmlDecimal xgetMultipleBetMinimum();",
"double getLowerThreshold();",
"public String getLow() {\n return this.low.toString();\n }",
"public double getLeft(double min) {\n return min - this.size; \n }",
"public final int getLow() {\n\treturn(this.low);\n }",
"public double price(){\n if (basePrice() >1000){\n return basePrice() *0.95;\n }else\n return basePrice() * 0.98;\n }",
"org.apache.xmlbeans.XmlDecimal xgetWagerMinimum();",
"@Override\r\n\tpublic double getPrice() {\n\t\treturn 60000;\r\n\t}",
"public double getLeft(double min) {\n return Math.max(min, Math.max(Math.max(this.left.getLeft(min), this.right.getLeft(min)),\n Math.max(this.right.getLeft(min), this.right.getLeft(min))));\n }",
"public BigDecimal getXpeQtyMin() {\n return (BigDecimal) getAttributeInternal(XPEQTYMIN);\n }",
"public BigDecimal getBSCA_ProfitPriceLimitEntered();",
"public BigDecimal getPriceLimitOld();",
"java.math.BigDecimal getMultipleBetMinimum();",
"public BigDecimal getPriceStdOld();",
"public BigDecimal getPriceLastOrd();",
"public BigDecimal getPriceStdEntered();",
"int getXMin();",
"Double getMinimumValue();",
"public double getMinDoubleValue();",
"public Coord minCell()\n {\n\t int minX = getGrid().keySet().stream().mapToInt(Coord::getX).min().orElse(0);\n\n\t int minY = getGrid().keySet().stream().mapToInt(Coord::getY).min().orElse(0);\n\n\t return new Coord(minX, minY);\n }",
"private static String getPriceVeggie(WebElement s) {\n\t\treturn s.findElement(By.xpath(\"following-sibling::td[1]\")).getText();\r\n\t}",
"public float getLimit_lin_x_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 32);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 24);\n\t\t}\n\t}",
"@Override\n\tpublic float getPrice() {\n\t\treturn 70.0f;\n\t}",
"private double getLowest()\n {\n if (currentSize == 0)\n {\n return 0;\n }\n else\n {\n double lowest = scores[0];\n for (int i = 1; i < currentSize; i++)\n {\n if (scores[i] < lowest)\n {\n scores[i] = lowest;\n }\n }\n return lowest;\n }\n }",
"public double getRange(){\n\n double range = fuelRemaining * fuelEconomy;\n return range;\n }",
"public double getLowThreshold(){\n return lowThreshold;\n }",
"public BigDecimal getPriceLimitWTax();",
"private Point getLower() {\n int lowerX;\n int lowerY;\n lowerY = (int) (-gameCanvas.getHeight() + mapOffsetY * 2);\n lowerX = (int) (-gameCanvas.getWidth() + mapOffsetX * 2);\n return new Point(lowerX, lowerY);\n }",
"public BigDecimal getProportionLow() {\n\t\treturn proportionLow;\n\t}",
"public double getPrice()\r\n\t{\r\n\t\tif(isSpecial())\r\n\t\t{\r\n\t\t\treturn price * .5;\r\n\t\t}\r\n\t\treturn price;\r\n\t}",
"double getMin() {\n\t\t\treturn value_min;\n\t\t}",
"public double getMinValue() {\n double min = Double.POSITIVE_INFINITY;\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (data[i][j] < min)\n min = data[i][j];\n }\n }\n return min;\n }",
"public double calcPrice()\n {\n double price = getWidth() * getLength() * getHeight() + this.getMyLoc().getBasePrice();\n if (tempLvl <= 49 || tempLvl >=65) { \n price += 30;\n }\n return price;\n }",
"public double getMinimum() {\n return (min);\n }",
"@Override\r\n\tpublic double promotePrice() {\n\t\treturn price - 10;\r\n\t}",
"@Override\n public double getPrice() {\n return 2.5;\n }",
"public PrimEdge calculateMinimum() {\n int minWage = Integer.MAX_VALUE;\n PrimEdge result = null;\n for (Map.Entry<Integer, PrimEdge> entry : dtable.entrySet()) {\n if (entry.getValue().getWage() < minWage) {\n result = entry.getValue();\n minWage = entry.getValue().getWage();\n }\n }\n return result;\n }",
"public Point getMin () {\r\n\r\n\treturn getA();\r\n }",
"public int getBestPrice() {\n\t\treturn this.bestPrice;\n\t}",
"private double getMin() {\n return Collections.min(values.values());\n }",
"double getPrice();",
"double getPrice();",
"double getPrice();",
"public int getLow() {\n\t\treturn low;\n\t}",
"public Coords getLowerLeft()\r\n {\r\n return new Coords(x, y + height);\r\n }",
"public double getHighPrice() {\n return this.highPrice;\n }",
"public String getOriginalPriceHigh() {\n return this.OriginalPriceHigh;\n }",
"public void setLow(java.math.BigDecimal low) {\n this.low = low;\n }",
"protected abstract D getLower(R range);",
"public double min(){\r\n\t\t//variable for min val\r\n\t\tdouble min = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the minimum is more than the current index, change min to that value\r\n\t\t\tif (min > this.data[i]){\r\n\t\t\t\tmin = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return the minimum val\r\n\t\treturn min;\r\n\t}",
"public int getPrice() {\r\n\t\tif (this.base.equals(\"tower\")) {\r\n\t\t\treturn price;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"private static String getPrice(WebElement s) {\n\n\t\treturn s.findElement(By.xpath(\"following-sibling::td[1]\")).getText();\n\n\t}",
"public double getPrice() {\n double price = BASE_PRICE;\n for (Topping topping : toppings) {\n if (topping.isPremium()) {\n price += 1.25;\n } else {\n price += 0.75;\n }\n }\n return price;\n }",
"public double get_overcharge_cost() {\n\t\treturn overchargepermin;\n\t}",
"private Cell get_left_cell(int row, int col) {\n return get_cell(row, --col);\n }",
"private static String getPrice(WebElement p) {\r\n\t\tString price = p.findElement(By.xpath(\"following-sibling::td\")).getText();\r\n\t\treturn price;\r\n\t}",
"@Override\n\tpublic double getPrice() {\n\t\treturn 10;\n\t}",
"@Override\n\tpublic double getPrice() {\n\t\treturn 10;\n\t}",
"public int getLow() {\n\t\t\treturn low;\n\t\t}",
"public double getMinimumDouble() {\n/* 201 */ return this.min;\n/* */ }",
"public double getHighPrice() {\r\n\t\treturn highPrice;\r\n\t}",
"@Override\n\t\t\tpublic double getPrice() {\n\t\t\t\treturn 50.0;\n\t\t\t}",
"private Cell get_top_cell(int row, int col) {\n return get_cell(--row, col);\n }",
"public Double getPrice();",
"E minVal();",
"public float getLowerLeftY()\n {\n return ((COSNumber)rectArray.get(1)).floatValue();\n }",
"public BigDecimal getPriceListEntered();",
"public int lowerBoundary(){\r\n\t\treturn this.ypoints[0];\r\n\t}",
"BigDecimal getPrice();",
"public float getLimit_lin_y_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 40);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 32);\n\t\t}\n\t}"
] | [
"0.7533429",
"0.7086761",
"0.6959969",
"0.6951886",
"0.69263494",
"0.6885851",
"0.6586112",
"0.657249",
"0.65505564",
"0.6512922",
"0.64487165",
"0.6371809",
"0.63050556",
"0.62828773",
"0.62482333",
"0.6204416",
"0.61798954",
"0.61798954",
"0.61596894",
"0.61258274",
"0.60877",
"0.6055448",
"0.60161436",
"0.59592736",
"0.5957558",
"0.59563714",
"0.59486806",
"0.5944407",
"0.59426314",
"0.59220135",
"0.5915079",
"0.5890956",
"0.5889362",
"0.58724815",
"0.58604723",
"0.5842106",
"0.58304983",
"0.5813368",
"0.57882285",
"0.57862955",
"0.5759288",
"0.5759021",
"0.5758885",
"0.5758553",
"0.57438743",
"0.5734233",
"0.5731389",
"0.572816",
"0.5728006",
"0.5726499",
"0.5722914",
"0.57104224",
"0.56856894",
"0.56769437",
"0.56693715",
"0.5662453",
"0.5661496",
"0.5648321",
"0.5643979",
"0.5637034",
"0.5632735",
"0.5629512",
"0.5625894",
"0.5623825",
"0.5620479",
"0.5616847",
"0.56050205",
"0.56044745",
"0.56035924",
"0.5601169",
"0.55840695",
"0.55840695",
"0.55840695",
"0.5575106",
"0.557261",
"0.5569453",
"0.55688345",
"0.5562976",
"0.55432975",
"0.55402356",
"0.5538301",
"0.55356854",
"0.5532359",
"0.5532184",
"0.5520869",
"0.5516582",
"0.55147755",
"0.55147755",
"0.55089676",
"0.550856",
"0.55018353",
"0.54989976",
"0.549716",
"0.5490278",
"0.5490243",
"0.5489158",
"0.5484988",
"0.54795766",
"0.54784185",
"0.5471641"
] | 0.8278078 | 0 |
get cell upper price. | public double getCellUpperPrice() {
return CellUpperPrice;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCellUpperPrice(double cellUpperPrice) {\r\n\t\tCellUpperPrice = cellUpperPrice;\r\n\t}",
"BigDecimal getHighPrice();",
"public double getUpperValue() {\n return this.upperMeasure.getValue();\n }",
"public double upper()\n\t{\n\t\treturn _dblUpper;\n\t}",
"BigDecimal getClosePrice();",
"public BigDecimal getPriceLastOrd();",
"public double getCellLowerPrice() {\r\n\t\treturn CellLowerPrice;\r\n\t}",
"public int getUpperValue() {\n return getValue() + getExtent();\n }",
"public int getSellPrice(){\n\t\treturn (int)(price * 0.6);\n\t}",
"public BigDecimal getPriceLastInv();",
"BigDecimal getPrice();",
"public Point getUpperPoint() {\n return upper;\n }",
"public BigDecimal getPriceActual();",
"public abstract int getLastCageCellValue(int row, int col);",
"public BigDecimal getPriceStd();",
"private Cell get_top_cell(int row, int col) {\n return get_cell(--row, col);\n }",
"public double getHighPrice() {\n return this.highPrice;\n }",
"public BigDecimal getPriceStdEntered();",
"public double getHighPrice() {\r\n\t\treturn highPrice;\r\n\t}",
"public BigDecimal getPriceEntered();",
"public Point getupperRigth() {\n Point upperRigth = new Point(this.upperLeft.getX() + this.getWidth(), this.upperLeft.getY());\n return upperRigth;\n }",
"public String getUnitPriceHigh() {\n return this.UnitPriceHigh;\n }",
"BigDecimal getLowPrice();",
"public Number getEBookPrice() {\n return (Number)getAttributeInternal(EBOOKPRICE);\n }",
"public java.math.BigDecimal getHigh() {\n return high;\n }",
"public BigDecimal getBSCA_ProfitPriceStdEntered();",
"public BigDecimal\tgetPrice();",
"public BigDecimal getBSCA_ProfitPriceStd();",
"@Override\n\tpublic float getPrice() {\n\t\treturn 70.0f;\n\t}",
"@Override\n public double getPrice() {\n return 2.5;\n }",
"BigDecimal getSubtotal();",
"@Override\r\n\tpublic double getPrice() {\n\t\treturn 60000;\r\n\t}",
"public Measure<?, ?> getUpperMeasure() {\n return this.upperMeasure;\n }",
"public BigDecimal getBSCA_ProfitPriceLimitEntered();",
"protected abstract double getCell(\r\n int row,\r\n int col);",
"public BigDecimal getBSCA_ProfitPriceLimit();",
"public double price(){\n if (basePrice() >1000){\n return basePrice() *0.95;\n }else\n return basePrice() * 0.98;\n }",
"BigDecimal getOpenPrice();",
"public String getReturnFlightPriceAtBottom()\n\t{\n\t\tString returnpriceAtBottom=returnPriceAtBottom.getText();\n\t\treturn returnpriceAtBottom;\n\t}",
"public double getRange(){\n\n double range = fuelRemaining * fuelEconomy;\n return range;\n }",
"public double getCellReservePrice() {\r\n\t\treturn CellReservePrice;\r\n\t}",
"public float getUpperRightY()\n {\n return ((COSNumber)rectArray.get(3)).floatValue();\n }",
"protected abstract D getUpper(R range);",
"private Point getUpper() {\n int upperX;\n int upperY;\n upperY = (int) (gameCanvas.getHeight() + mapOffsetY * 2);\n upperX = (int) (gameCanvas.getWidth() + mapOffsetX * 2);\n return new Point(upperX, upperY);\n }",
"public double Bottom(){\n\t\tdouble fary = y + sizeY - 1;\n\t\treturn (fary);\n\t}",
"public String getDepartureFlightPriceAtBottom()\n\t{\n\t\tString depPriceAtBottom=departurePriceAtBottom.getText();\n\t\treturn depPriceAtBottom;\n\t}",
"@Override\n\t\t\tpublic double getPrice() {\n\t\t\t\treturn 50.0;\n\t\t\t}",
"BigDecimal getPreviousClosePrice();",
"java.math.BigDecimal getWBMaximum();",
"public float getLimit_ang_y_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 68);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 60);\n\t\t}\n\t}",
"public StrColumn getEbiCell() {\n return delegate.getColumn(\"ebi_cell\", DelegatingStrColumn::new);\n }",
"public double basePrice () {\n return basePrice;\n }",
"public double Top(){\n\t\treturn (y);\n\t}",
"public String getUpper() {\n return upperBound;\n }",
"public double getPricePerSquareFoot(){\nreturn pricePerSquareFoot;\n}",
"public int getUpper() {\n return upper;\n }",
"public double getLastPrice() {\r\n\t\treturn lastPrice;\r\n\t}",
"public BigDecimal getPrice() {\n return (BigDecimal)getAttributeInternal(PRICE);\n }",
"public BigDecimal getActualSellingPrice() {\n return actualSellingPrice;\n }",
"double getPrice();",
"double getPrice();",
"double getPrice();",
"public double getClosingPrice() {\n return this.closingPrice;\n }",
"public int getPrice() {\r\n\t\tif (this.base.equals(\"tower\")) {\r\n\t\t\treturn price;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"BigDecimal getAverageSellPrice();",
"public BigDecimal getPriceStdOld();",
"public double calcPrice()\n {\n double price = getWidth() * getLength() * getHeight() + this.getMyLoc().getBasePrice();\n if (tempLvl <= 49 || tempLvl >=65) { \n price += 30;\n }\n return price;\n }",
"public String getProductPaperBackPrice() {\n\t\tString paperBackWholePrice = driver\n\t\t\t\t.findElements(By.cssSelector(getLocator(search_result_page_prod_paper_price_whole))).get(0).getText();\n\t\tString paperBackCurrency = driver\n\t\t\t\t.findElements(By.cssSelector(getLocator(search_result_page_prod_paper_price_currency))).get(0)\n\t\t\t\t.getText();\n\t\tString paperBackFracPrice = driver\n\t\t\t\t.findElements(By.cssSelector(getLocator(search_result_page_prod_paper_price_fractional))).get(0)\n\t\t\t\t.getText();\n\t\tString paperBackPrice = paperBackCurrency + paperBackWholePrice + \".\" + paperBackFracPrice;\n\t\treturn paperBackPrice;\n\t}",
"public double getPrice()\r\n\t{\r\n\t\tif(isSpecial())\r\n\t\t{\r\n\t\t\treturn price * .5;\r\n\t\t}\r\n\t\treturn price;\r\n\t}",
"public BigDecimal getPrice()\n\t{\n\t\treturn price;\n\t}",
"public Float getUnitPrice() {\n return this.UnitPrice;\n }",
"public BigDecimal getBSCA_ProfitPriceListEntered();",
"private Cell get_bottom_cell(int row, int col) {\n return get_cell(++row, col);\n }",
"@Override\r\n\tpublic Integer getModel_cashf_prop_decile() {\n\t\treturn super.getModel_cashf_prop_decile();\r\n\t}",
"public void calcPrice() {\r\n\t\tsuper.price = 3 * super.height;\r\n\t}",
"public BigDecimal getPrice() {\r\n return price;\r\n }",
"public BigDecimal getPrice() {\r\n return price;\r\n }",
"@Override\n\tpublic double getPrice() {\n\t\treturn constantPO.getPrice();\n\t}",
"public java.math.BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal maxPrice() {\n return this.maxPrice;\n }",
"double getUpperThreshold();",
"public double getValue(Cell cell) {\n\t\treturn cell.value;\n\t}",
"private double getCellValue(Cell cell){\n\n if(cell == null){\n return 0.0;\n }\n else{\n switch (cell.getCellType()){\n case TEXT:\n // we ignore Textcells\n return 0;\n case NUMBER:\n return ((NumberCell) cell).getCellContent();\n\n case FORMULA:\n return ((FormulaCell) cell).getContent();\n default:\n System.out.println(\"ERROR: Calculation-SUM doesn't work\");\n\n }\n }\n return 0;\n }",
"public BigDecimal getPriceStdWTax();",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getO_price() {\n return o_price;\n }",
"public double getPrice() {\n double price = BASE_PRICE;\n for (Topping topping : toppings) {\n if (topping.isPremium()) {\n price += 1.25;\n } else {\n price += 0.75;\n }\n }\n return price;\n }",
"public java.math.BigDecimal getElectricaltilt()\n\t\tthrows java.rmi.RemoteException;",
"public float getUnitPrice() {\n return unitPrice;\n }",
"public double getHeight() {\n\t\treturn my-ny;\n\t}",
"@Override\n\tpublic double getPrice() {\n\t\t\n\t\treturn 2000;\n\t}",
"public String getBSCA_PrintPrice2();",
"public Coords getUpperRight()\r\n {\r\n return new Coords(x + width, y);\r\n }",
"public double berechneVolumen() {\n\t\treturn laenge * breite * hoehe;\n\t}",
"private static String getPriceVeggie(WebElement s) {\n\t\treturn s.findElement(By.xpath(\"following-sibling::td[1]\")).getText();\r\n\t}",
"public float getLimit_lin_y_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 44);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 36);\n\t\t}\n\t}"
] | [
"0.74369955",
"0.6829889",
"0.6755926",
"0.6518331",
"0.6349305",
"0.6348788",
"0.63402176",
"0.63315296",
"0.63166285",
"0.6206868",
"0.6147148",
"0.6137471",
"0.60897",
"0.6051514",
"0.604569",
"0.6035168",
"0.60326123",
"0.599705",
"0.5987901",
"0.5982533",
"0.59643024",
"0.5939963",
"0.59295183",
"0.5927151",
"0.59164476",
"0.590286",
"0.5897467",
"0.5886329",
"0.5876783",
"0.58703554",
"0.5868373",
"0.58299905",
"0.5828771",
"0.5820154",
"0.5819994",
"0.5805578",
"0.5790115",
"0.57725954",
"0.5763116",
"0.5758973",
"0.5755809",
"0.5749769",
"0.5746937",
"0.5739703",
"0.57392126",
"0.57320845",
"0.5726662",
"0.5719788",
"0.5714329",
"0.5706179",
"0.5699451",
"0.5674451",
"0.56619287",
"0.56617",
"0.5658571",
"0.5655705",
"0.56542593",
"0.5634563",
"0.5633055",
"0.56299037",
"0.56299037",
"0.56299037",
"0.56271744",
"0.56237996",
"0.5622944",
"0.56215775",
"0.5605776",
"0.5603082",
"0.5598646",
"0.5583398",
"0.5571238",
"0.55656993",
"0.55640393",
"0.5563924",
"0.556309",
"0.5551214",
"0.5551214",
"0.55453867",
"0.5544462",
"0.55318946",
"0.55302835",
"0.55299217",
"0.5528602",
"0.5526123",
"0.5524474",
"0.5524474",
"0.5524474",
"0.5524474",
"0.5524474",
"0.55227995",
"0.5517835",
"0.55165297",
"0.5514249",
"0.55115694",
"0.5508057",
"0.55021393",
"0.5500134",
"0.54992306",
"0.54963225",
"0.54958695"
] | 0.8634909 | 0 |
get cell lower deadline. | public Date getCellLowerDeadline() {
return CellLowerDeadline;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getCellUpperDeadline() {\r\n\t\treturn CellUpperDeadline;\r\n\t}",
"public void setCellLowerDeadline(Date cellLowerDeadline) {\r\n\t\tCellLowerDeadline = cellLowerDeadline;\r\n\t}",
"public Date getCellDeadline() {\r\n\t\treturn CellDeadline;\r\n\t}",
"public void setCellUpperDeadline(Date cellUpperDeadline) {\r\n\t\tCellUpperDeadline = cellUpperDeadline;\r\n\t}",
"double getDeadline() {\n return deadline;\n }",
"public long getLowerTBound() {\n\t\treturn this.lowerTBound;\n\t}",
"@java.lang.Override\n public long getDeadline() {\n return deadline_;\n }",
"@java.lang.Override\n public long getDeadline() {\n return deadline_;\n }",
"public int getEleMinTimeOut(){\r\n\t\t String temp=rb.getProperty(\"eleMinTimeOut\");\r\n\t\t return Integer.parseInt(temp);\r\n\t}",
"public int getDeadline(){return deadline;}",
"long getDeadline();",
"public Date getRealDeadline() {\r\n return realDeadline;\r\n }",
"public int getMaxFreezeTicks ( ) {\n\t\treturn extract ( handle -> handle.getMaxFreezeTicks ( ) );\n\t}",
"public int getDeadline() {\n\t\treturn this.deadline;\n\t}",
"float getTasksLeft();",
"public int getlowerTo (int blockHt, int currentBar, int barHeights[], int targetCol1Ht, int targetCol2Ht) {\n\t\tint lowerTo = 0; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\tif (blockHt == 1) { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tlowerTo = targetCol1Ht; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//the height of the current target is equal to the height of target column 1 \n\t}\n\t\tif (blockHt == 2) { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tlowerTo = targetCol2Ht;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the height of the current target is equal to the height of target column 2\n}\n\t\tif (blockHt == 3) { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tlowerTo = barHeights[currentBar]; \t\t\t\t\t\t\t\t\t\t\t\t\t// the height of the current target is equal to the height of the current bar in the array for any given loop \n\t\t}\n\t\treturn lowerTo; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//return the height of the current target you intend to place a block upon \n\t\t}",
"public double minWait()\r\n {\r\n //find the minimum value in an arraylist\r\n double minWait = this.servedCustomers.get(0).getwaitTime();\r\n for(int i = 1; i < this.servedCustomers.size(); i++){\r\n if(this.servedCustomers.get(i).getwaitTime()<minWait){\r\n minWait = this.servedCustomers.get(i).getwaitTime();\r\n }\r\n }\r\n return minWait;\r\n }",
"public int getFreezeTicks ( ) {\n\t\treturn extract ( handle -> handle.getFreezeTicks ( ) );\n\t}",
"protected ValuePosition getMinimum() {\n\t\t// Calcule la position et la durée d'exécution de la requête la plus courte dans le tableau des requêtes\n\t\tValuePosition minimum = new ValuePosition();\n\t\tminimum.position = 0;\n\t\tfor(int pos=0; pos<requests.length; pos++) {\n\t\t\tRequest request = requests[pos];\n\t\t\tif(request == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(minimum.value == null || request.getElapsedTime() < minimum.value) {\n\t\t\t\tminimum.position = pos;\n\t\t\t\tminimum.value = request.getElapsedTime();\n\t\t\t}\n\t\t}\n\t\treturn minimum;\n\t}",
"public int lowerBoundary(){\r\n\t\treturn this.ypoints[0];\r\n\t}",
"@Override\n public Deadline getDeadline() {\n return this.deadline;\n }",
"public abstract LocalDateTime getDeadline();",
"public float getLowerLeftY()\n {\n return ((COSNumber)rectArray.get(1)).floatValue();\n }",
"@Override\n\tpublic DateTime getDeadLine() {\n\t\treturn this.details.getDeadLine();\n\t}",
"public double getCellLowerPrice() {\r\n\t\treturn CellLowerPrice;\r\n\t}",
"public int getMaxDeadline() {\n\t\treturn this.maxDeadline;\n\t}",
"public long getMinTime()\n {\n return times[0];\n }",
"float getLt();",
"private DeadlineDate minimumOf(DeadlineDate firstDeadlineDate, DeadlineDate secondDeadlineDate) {\n if (firstDeadlineDate.compareTo(secondDeadlineDate) < 0) {\n return firstDeadlineDate;\n } else {\n return secondDeadlineDate;\n }\n }",
"@Override\n public String getDeadlineName() {\n return this.deadline.getName();\n }",
"Date getPriorDate();",
"@Override\n\tpublic int getYWait() {\n\t\treturn 0;\n\t}",
"public String getDeadline(){\n\t\treturn this.deadline ;\n\t}",
"public Integer getMinTime() {\n return minTime;\n }",
"protected long deadlineSeconds() {\n return DEFAULT_TASK_SECONDS;\n }",
"int getMinY(Long id) throws RemoteException;",
"public Date getDeadlineDate() {\r\n return deadlineDate;\r\n }",
"public Long getActiveDeadlineSeconds() {\n return activeDeadlineSeconds;\n }",
"@Override\n public Long getMin() {\n return min;\n }",
"public long checkInterval()\r\n/* 184: */ {\r\n/* 185:363 */ return this.checkInterval.get();\r\n/* 186: */ }",
"public Coords getLowerLeft()\r\n {\r\n return new Coords(x, y + height);\r\n }",
"double getLeft(double min);",
"public Float getCellDowntime() {\n return cellDowntime;\n }",
"public int getyMin() {\n\t\treturn yMin;\n\t}",
"public int getMinY() {\n return minY;\n }",
"public long getMinimumLong() {\n/* 179 */ return this.min;\n/* */ }",
"Coordinate getMinY();",
"public Point getLowerPoint() {\n return lower;\n }",
"com.google.protobuf.Duration getMinimumBackoff();",
"@Override\n\tpublic int getTimeLeft() {\n\t\treturn chronometer.getTimeLeft();\n\t}",
"public int getOccupiedMinutes(){\n \t\treturn (int) (getOccupiedSeconds()/60);\n \t}",
"float yMin();",
"public double getMinTimeBetweenCarArrivals() {\n return minTimeBetweenCarArrivals;\n }",
"public float getLimit_lin_y_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 40);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 32);\n\t\t}\n\t}",
"com.google.protobuf.Int64Value getDeliveryDateBefore();",
"public int getMinRow();",
"public int getWorkRequired() {\n return time;\n }",
"private long getNow()\n {\n // no need to convert to collection if had an Iterables.max(), but not present in standard toolkit, and not worth adding\n List<SSTableReader> list = new ArrayList<>();\n Iterables.addAll(list, cfs.getSSTables(SSTableSet.LIVE));\n if (list.isEmpty())\n return 0;\n return Collections.max(list, (o1, o2) -> Long.compare(o1.getMaxTimestamp(), o2.getMaxTimestamp()))\n .getMaxTimestamp();\n }",
"public double getMinY() {\n\treturn minY;\n }",
"private Date getDeadlineDate() {\n String dateString = jtf_DeadLine.getText();\n Date date = Utils.parseDateFromString(dateString);\n System.out.println(\"Date:\" + date.toString());\n return date;\n }",
"public double minimumDue(){\n return ((this.creditHours*this.feePerCreditHour)-this.scholarshipAmount+((this.healthInsurancePerAnnum*4)/12))/2;\n }",
"public double getThrottle() {\n \treturn Math.abs(throttle.getY()) > DEADZONE ? throttle.getY() : 0;\n }",
"public int getMinRange() {\r\n return fMinRange;\r\n }",
"public int getLowerThreshold() {\n return lowerThreshold;\n }",
"double getMin();",
"double getMin();",
"public long getNextTime() {\r\n if (super.getNextTime() == 0) {\r\n return 0;\r\n }\r\n Object obj = this._queue;\r\n if (obj != null) {\r\n if (obj instanceof LockFreeTaskQueueCore) {\r\n if (!((LockFreeTaskQueueCore) obj).isEmpty()) {\r\n return 0;\r\n }\r\n } else if (obj == EventLoop_commonKt.CLOSED_EMPTY) {\r\n return LongCompanionObject.MAX_VALUE;\r\n } else {\r\n return 0;\r\n }\r\n }\r\n DelayedTaskQueue delayedTaskQueue = (DelayedTaskQueue) this._delayed;\r\n if (delayedTaskQueue != null) {\r\n DelayedTask delayedTask = (DelayedTask) delayedTaskQueue.peek();\r\n if (delayedTask != null) {\r\n long j = delayedTask.nanoTime;\r\n TimeSource timeSource = TimeSourceKt.getTimeSource();\r\n return RangesKt.coerceAtLeast(j - (timeSource != null ? timeSource.nanoTime() : System.nanoTime()), 0);\r\n }\r\n }\r\n return LongCompanionObject.MAX_VALUE;\r\n }",
"public abstract int getLastCageCellValue(int row, int col);",
"com.google.protobuf.Duration getMinExperience();",
"public Point getUpperLeft() {\n return this.upperLeft;\n }",
"private int getStartCell() {\r\n\t\tint extraCells = (getContentHeight() - getViewableHeight()) / CELL_SIZE_Y;\r\n\t\tif (getContentHeight() < getViewableHeight()) {\r\n\t\t\textraCells = 0;\r\n\t\t}\r\n\t\treturn (int) ((float) extraCells * ((float) _curScrollValue / (float) _maxScrollValue));\r\n\t}",
"public double getCBRTime();",
"public int getCurrentFloorForElevator(int elevator) {\r\n \r\n int i = currentFloor;\r\n return i;\r\n }",
"public String min()\r\n\t {\r\n\t\t if(this.min != null)\r\n\t\t {\r\n\t\t\t return this.min.getValue(); \r\n\t\t }\r\n\t\t return null;\r\n\t }",
"public int getBlockProposalTimer() {\r\n return blockProposalTimer;\r\n }",
"public int getLowerBound() {\r\n return lowerBound;\r\n }",
"double getMinTimerTrig();",
"public int getLowerThreshold() {\r\n\t\tint lowerThreshold;\r\n\t\tlowerThreshold=this.lowerThreshold;\r\n\t\treturn lowerThreshold;\r\n\t}",
"protected final int getMin() {\n\treturn(this.min);\n }",
"public TimeBounds getTimeBounds() {\n\t\t// Only here to ensure it is being used correctly.\n\t\t// cbit.util.Assertion.assertNotNull(fieldTimeBounds);\n\t\treturn fieldTimeBounds;\n\t}",
"public int getArrowCooldown ( ) {\n\t\treturn extract ( handle -> handle.getArrowCooldown ( ) );\n\t}",
"public final double getMinTime() {\n\t\treturn minTime;\n\t}",
"public Coord minCell()\n {\n\t int minX = getGrid().keySet().stream().mapToInt(Coord::getX).min().orElse(0);\n\n\t int minY = getGrid().keySet().stream().mapToInt(Coord::getY).min().orElse(0);\n\n\t return new Coord(minX, minY);\n }",
"public Integer getLessThanTimes() {\n return lessThanTimes;\n }",
"public float getTimeLeft() {\n return this.state.getTime();\n }",
"public java.math.BigDecimal getLow() {\n return low;\n }",
"public int getGrowthTime(){\n return this.growthTime;\n }",
"double getMinActiveAltitude();",
"public Long getMinValue() {\n return minValue;\n }",
"E minVal();",
"public double getBlockDelay()\n {\n if (mBlockedTime == 0)\n {\n return 0.0;\n }\n\n double tBlockDelay = mBlockedTime - time();\n mBlockedTime = 0;\n if (tBlockDelay <= 0)\n {\n return 0.0;\n }\n mBlockedMessage.add(mName + \" GC blocked from \" + time() + \" + until \" + (time() + tBlockDelay));\n return tBlockDelay;\n }",
"public int getCrossingTime(){return this.crossingTime;}",
"public long getBorderLerpTime()\n {\n return borderSizeLerpTime;\n }",
"public int getMinRow() {\n return minRow;\n }",
"public double getLeft(double min) {\n return min - this.size; \n }",
"public long getOccupiedSeconds(){\n \t\treturn occupiedSeconds;\n \t}",
"public int getTriggerRound() {\n return triggerRound;\n }",
"int getXMin();",
"public double getYRangeMin() {\n return yRangeMin;\n }",
"private Cell get_top_cell(int row, int col) {\n return get_cell(--row, col);\n }"
] | [
"0.7264741",
"0.70185715",
"0.70071447",
"0.59131384",
"0.58243644",
"0.581384",
"0.5790877",
"0.57806504",
"0.5705376",
"0.5623346",
"0.56204945",
"0.5564588",
"0.5558192",
"0.5554999",
"0.54858494",
"0.54691976",
"0.5438158",
"0.5409061",
"0.5382016",
"0.53747743",
"0.5374606",
"0.5372391",
"0.53719336",
"0.53685063",
"0.5365246",
"0.53584456",
"0.53495586",
"0.53474563",
"0.53220326",
"0.529942",
"0.52945995",
"0.52683246",
"0.52581125",
"0.5239035",
"0.52205026",
"0.52200764",
"0.5210078",
"0.520035",
"0.5191524",
"0.5185756",
"0.5171987",
"0.51708865",
"0.5156578",
"0.5115176",
"0.5109694",
"0.51023394",
"0.51019704",
"0.5086472",
"0.5085121",
"0.50700986",
"0.50638914",
"0.5061045",
"0.50443816",
"0.50407386",
"0.50272363",
"0.50057787",
"0.50036746",
"0.49969885",
"0.4992185",
"0.49760377",
"0.4967432",
"0.4967333",
"0.49616167",
"0.49546236",
"0.49539828",
"0.49539828",
"0.49490678",
"0.49483764",
"0.49439034",
"0.49421",
"0.49266902",
"0.49256757",
"0.4925161",
"0.49238572",
"0.49213198",
"0.49190825",
"0.49070576",
"0.489865",
"0.4896565",
"0.4892696",
"0.48921537",
"0.4890282",
"0.48865727",
"0.48792005",
"0.4879093",
"0.48671094",
"0.48649418",
"0.48623538",
"0.4860861",
"0.48573503",
"0.48550203",
"0.48531604",
"0.48529354",
"0.4851919",
"0.4845874",
"0.4844281",
"0.4843618",
"0.48432082",
"0.48425132",
"0.48382267"
] | 0.82407355 | 0 |
get cell upper deadline. | public Date getCellUpperDeadline() {
return CellUpperDeadline;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getCellDeadline() {\r\n\t\treturn CellDeadline;\r\n\t}",
"public void setCellUpperDeadline(Date cellUpperDeadline) {\r\n\t\tCellUpperDeadline = cellUpperDeadline;\r\n\t}",
"public Date getCellLowerDeadline() {\r\n\t\treturn CellLowerDeadline;\r\n\t}",
"double getDeadline() {\n return deadline;\n }",
"@java.lang.Override\n public long getDeadline() {\n return deadline_;\n }",
"@java.lang.Override\n public long getDeadline() {\n return deadline_;\n }",
"long getDeadline();",
"public int getMaxDeadline() {\n\t\treturn this.maxDeadline;\n\t}",
"public int getDeadline() {\n\t\treturn this.deadline;\n\t}",
"public long getUpperTbound() {\n\t\treturn this.upperTBound;\n\t}",
"public Date getRealDeadline() {\r\n return realDeadline;\r\n }",
"public int getDeadline(){return deadline;}",
"@Override\n public Deadline getDeadline() {\n return this.deadline;\n }",
"public void setCellLowerDeadline(Date cellLowerDeadline) {\r\n\t\tCellLowerDeadline = cellLowerDeadline;\r\n\t}",
"public abstract int getLastCageCellValue(int row, int col);",
"public String getDeadline(){\n\t\treturn this.deadline ;\n\t}",
"@Override\n public String getDeadlineName() {\n return this.deadline.getName();\n }",
"public String getLastCell() {\n\t\treturn lastCell;\n\t}",
"public Date getUppertranstime() {\n\t\treturn uppertranstime;\n\t}",
"public int upperBoundary(){\r\n\t\treturn yStart - Constants.FLOOR_HEIGHT;\r\n\t}",
"public int getMaxFreezeTicks ( ) {\n\t\treturn extract ( handle -> handle.getMaxFreezeTicks ( ) );\n\t}",
"public double getCellUpperPrice() {\r\n\t\treturn CellUpperPrice;\r\n\t}",
"Integer getEndHour();",
"@Override\n\tpublic int getYWait() {\n\t\treturn 0;\n\t}",
"public String getUpper() {\n return upperBound;\n }",
"public Date getDeadlineDate() {\r\n return deadlineDate;\r\n }",
"protected long deadlineSeconds() {\n return DEFAULT_TASK_SECONDS;\n }",
"Instant getEnd();",
"public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getLastCol()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(LASTCOL$12, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"@Override\n\tpublic float getEndTime() \n\t{\n\t\treturn _tend;\n\t}",
"public Point getUpperPoint() {\n return upper;\n }",
"public Point getupperRigth() {\n Point upperRigth = new Point(this.upperLeft.getX() + this.getWidth(), this.upperLeft.getY());\n return upperRigth;\n }",
"protected double getReferenceY() {\n if (isYAxisBoundsManual() && !mGraphView.getGridLabelRenderer().isHumanRoundingY()) {\n if (Double.isNaN(referenceY)) {\n referenceY = getMinY(false);\n }\n return referenceY;\n } else {\n // starting from 0 so that the steps have nice numbers\n return 0;\n }\n }",
"public Float getCellDowntime() {\n return cellDowntime;\n }",
"public Date getAfterCt() {\r\n return afterCt;\r\n }",
"public float getUpperRightY()\n {\n return ((COSNumber)rectArray.get(3)).floatValue();\n }",
"public abstract LocalDateTime getDeadline();",
"public int getRangeEnd() {\n return currentViewableRange.getTo();\n }",
"public int getTimeEnd() {\r\n return timeEnd;\r\n }",
"public int getEndHour() {\n\treturn end.getHour();// s\n }",
"@Override\n public java.lang.Number getDisplayWaitInterval() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.DISPLAY_WAIT_INTERVAL_);\n return (java.lang.Number)retnValue;\n }",
"public int getEndTime()\n {\n if (isRepeated()) return end;\n else return time;\n }",
"public int getEndHeight() {\r\n return endHeight;\r\n }",
"double getEndY();",
"public long getEndTime() {\n if (endTime < 0) {\n try {\n String datestr = PropertyArray.get(props, END);\n\n if (datestr == null) {\n // this may be more expensive because it can cause a\n // reload from disk\n try {\n datestr = getProperty(END);\n } catch (Fault f) {\n }\n }\n\n if (datestr != null) {\n Date date = parseDate(datestr);\n endTime = date.getTime();\n } else {\n // info not available\n }\n } catch (ParseException e) {\n }\n }\n\n return endTime;\n }",
"public Object getCurrentCellY() {\n\t\treturn y;\n\t}",
"public Long getActiveDeadlineSeconds() {\n return activeDeadlineSeconds;\n }",
"protected abstract D getUpper(R range);",
"public static int getEndYCoordinate(){\n\tint y = getThymioEndField_Y(); \n\t\t\n\t\tif(y == 0){\n\t\t\n \t}else{\n \t y *= FIELD_HEIGHT;\n \t}\n\t\treturn y;\n\t}",
"int getEndTime();",
"int getEndTime();",
"int getEndTime();",
"public long getMaxTime()\n {\n return times[times.length - 1];\n }",
"public long getEnd_time() {\n return end_time;\n }",
"public String getTaskDeadlineText(LocalDateTime endTime) {\n if (endTime == null) {\n logger.log(Level.WARNING, \"endTime in getTaskDeadlineText(...) is missing.\");\n return \"\";\n }\n\n LocalDateTime currentTime = now;\n if (endTime.isAfter(currentTime)) {\n return getDeadlineNotOverdueText(currentTime, endTime);\n } else {\n return getDeadlineOverdueText(currentTime, endTime);\n }\n }",
"public abstract int getLastCageCol(int row, int col);",
"public TimeBounds getTimeBounds() {\n\t\t// Only here to ensure it is being used correctly.\n\t\t// cbit.util.Assertion.assertNotNull(fieldTimeBounds);\n\t\treturn fieldTimeBounds;\n\t}",
"public int getEndy(){\n\t\treturn endy;\n\t}",
"public Point getUpperLeft() {\n return this.upperLeft;\n }",
"public long getTimeEnd()\n {\n return this.timeEnd;\n }",
"public int getYLeftUpper() {\n return yLeftUpper;\n }",
"Integer getEndDay();",
"@Override\n\tpublic int getDeadzone()\n\t{\n\t\treturn (int)(this.zone*100);\n\t}",
"@Override\n\tpublic DateTime getDeadLine() {\n\t\treturn this.details.getDeadLine();\n\t}",
"public int getEndY() {\r\n\t\treturn endY;\r\n\t}",
"public int getMaxTime() { return _maxTime; }",
"public Date getBaselineFinish()\r\n {\r\n return (m_baselineFinish);\r\n }",
"public Coords getUpperRight()\r\n {\r\n return new Coords(x + width, y);\r\n }",
"public long upperLongValue() {\n\t\treturn getSection().upperLongValue();\n\t}",
"public int getCellBody() {\n\t\treturn cellBody;\n\t}",
"public int getEleMaxTimeOut(){\r\n\t\t String temp= rb.getProperty(\"eleMaxTimeOut\");\r\n\t\t return Integer.parseInt(temp);\r\n\t}",
"public java.lang.Long getEndTime() {\n return end_time;\n }",
"public BigDecimal getCheckAfterHours() {\n return checkAfterHours;\n }",
"public String getDepartureFlightPriceAtBottom()\n\t{\n\t\tString depPriceAtBottom=departurePriceAtBottom.getText();\n\t\treturn depPriceAtBottom;\n\t}",
"public java.math.BigInteger getBlockEndDateTime() {\r\n return blockEndDateTime;\r\n }",
"public Vector2f getUpperLeftCorner() {\n return upperLeftCorner;\n }",
"public abstract long getEndTimestamp();",
"public float getLimit_ang_y_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 68);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 60);\n\t\t}\n\t}",
"double getEndH();",
"java.lang.String getDepartureTime();",
"java.lang.String getDepartureTime();",
"net.opengis.gml.x32.TimePositionType getEndPosition();",
"public double getEnd();",
"public T getLast(){\n\treturn _end.getCargo();\n }",
"public int getUpperThreshold() {\r\n\t\tint upperThreshold;\r\n\t\tupperThreshold=this.upperThreshold;\r\n\t\treturn upperThreshold;\r\n\t}",
"public XMLGregorianCalendar getDeliveryDeadline() {\n return deliveryDeadline;\n }",
"java.util.Calendar getEndTime();",
"public long getEndTimestamp();",
"private Date getDeadlineDate() {\n String dateString = jtf_DeadLine.getText();\n Date date = Utils.parseDateFromString(dateString);\n System.out.println(\"Date:\" + date.toString());\n return date;\n }",
"public java.sql.Time getREQ_END_TIME()\n {\n \n return __REQ_END_TIME;\n }",
"public Line getUpperLine() {\n\n return new Line(this.getUpperLeft(), this.getupperRigth());\n }",
"public int getUpperBound() {\r\n return upperBound;\r\n }",
"@Override\n public Date getEndTime() {\n return endTime;\n }",
"public abstract int getLastCageRow(int row, int col);",
"public float getLimit_lin_y_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 44);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 36);\n\t\t}\n\t}",
"public java.lang.Long getEndTime() {\n return end_time;\n }",
"public int getMaxRangeEnd() {\n return maximumViewableRange.getTo();\n }",
"public long checkInterval()\r\n/* 184: */ {\r\n/* 185:363 */ return this.checkInterval.get();\r\n/* 186: */ }",
"public double Bottom(){\n\t\tdouble fary = y + sizeY - 1;\n\t\treturn (fary);\n\t}",
"public CoreCell getLastCellInUniverse (){\r\n return cellsUniverse.get(cellsUniverse.size()-1);\r\n }"
] | [
"0.72634447",
"0.72155815",
"0.71788216",
"0.61505264",
"0.6144838",
"0.61430895",
"0.6024959",
"0.5965236",
"0.5921133",
"0.58636796",
"0.5836935",
"0.5785256",
"0.576347",
"0.5711746",
"0.56486505",
"0.5583392",
"0.5573938",
"0.55707544",
"0.5556704",
"0.5544454",
"0.5523707",
"0.55083007",
"0.5492929",
"0.54483545",
"0.54294467",
"0.5413085",
"0.5406672",
"0.5368904",
"0.53616476",
"0.53506696",
"0.53472656",
"0.5343581",
"0.5314645",
"0.531357",
"0.5313077",
"0.53099316",
"0.5304673",
"0.5287763",
"0.5276467",
"0.527109",
"0.52635473",
"0.5256909",
"0.5255271",
"0.5250994",
"0.5226202",
"0.52220184",
"0.52116734",
"0.5207948",
"0.5202097",
"0.5196251",
"0.5196251",
"0.5196251",
"0.5195694",
"0.51907325",
"0.5189893",
"0.5184733",
"0.5179773",
"0.5177721",
"0.5172165",
"0.51656014",
"0.5165099",
"0.5162704",
"0.516083",
"0.5153397",
"0.5152194",
"0.5142897",
"0.51317155",
"0.5113741",
"0.5111916",
"0.5108768",
"0.5105714",
"0.50972444",
"0.50970787",
"0.50923014",
"0.5089981",
"0.50877774",
"0.5086617",
"0.50840616",
"0.50819033",
"0.50795597",
"0.50795597",
"0.5078534",
"0.5076537",
"0.5076423",
"0.5064297",
"0.50620544",
"0.50597143",
"0.5055759",
"0.50519747",
"0.50469893",
"0.5046373",
"0.5046079",
"0.50359756",
"0.50358266",
"0.5032158",
"0.5027446",
"0.5027111",
"0.5026723",
"0.501489",
"0.5014655"
] | 0.83889997 | 0 |
get cell random reserve price correspond to the cell. | public double getCellReservePrice() {
return CellReservePrice;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Cell randomCell() {\n ArrayList<Cell> available = this.randomCellHelper();\n return available.get(new Random().nextInt(available.size()));\n\n }",
"public synchronized double getReservePrice(){\n \treturn reserve_price;\n }",
"private float randomPrice() {\n float price = floatRandom(this.maxRandomPrice);\n return price;\n }",
"public void setCellReservePrice(double cellReservePrice) {\r\n\t\tCellReservePrice = cellReservePrice;\r\n\t}",
"public int getPrice() {\n Random rng = GameState.getState().rng;\n\n int range = (int)((float)basePrice * ((float)var / 100));\n int maxPrice = basePrice + range;\n int minPrice = basePrice - range;\n\n //randomly assigns a price to each good\n int price = minPrice + rng.nextInt(range * 2);\n\n //prevents the price from exceeding the set max price or falling below the set min price\n if (price > maxPrice) {\n price = maxPrice;\n } else if (price < minPrice || price < 15) {\n price = minPrice;\n }\n\n return price;\n }",
"public static int getRandCell() {\n int num = (int) (Math.random() * 10); // Generate random numbers\n int randCell = 1;\n if (num >= MARG_FIRST && num <= MARG_LAST) { // Set boundaries\n randCell = num;\n }\n return randCell;\n }",
"public double setRandomPrice() {\n\t\tdouble price = dishPrices.get(roll.nextInt(dishPrices.size()));\n\t\treturn price;\n\t}",
"public Ticket(){\n price = ((double)(Math.random() * (MAX + 1 - MIN))) + MIN;\n }",
"public double getRandom() {\n return 20*Math.random() - 10;\n }",
"public int calcTraderPrice() {\r\n Random r = new Random();\r\n return rtl + r.nextInt(rth - rtl);\r\n }",
"private double getRandom() {\n return 2*Math.random() - 1;\n }",
"public Reserve getReserve() {\n return reserve;\n }",
"public double getRandom(){\n\t\treturn random.nextDouble();\n\t}",
"public Double generateRow() {\n return leftLimit + new Random().nextDouble() * (this.rightLimit - this.leftLimit);\r\n }",
"private int getRandomPiece() {\r\n return new Random().nextInt(Constants.NUM_PIECES);\r\n }",
"public String getReserve() {\n return reserve;\n }",
"@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(10, 20); \t\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}",
"public int getRandom() {\n int k = 1;\n ListNode node = this.head;\n int i = 0;\n ArrayList<Integer> reservoir = new ArrayList<Integer>();\n //先把前k个放进水塘\n while (i < k && node != null) {\n reservoir.add(node.val);\n node = node.next;\n i++;\n }\n // i++; // i == k => i == k+1 这样i就代表了现在已经处理过的总共数字个位\n i = 1;\n while (node != null) {\n //更换水塘里的数字的概率要是 k/(现在处理过的数字总数),所以因为i是从0开始,所以概率为从0\n // 到i的数当中选0 到k-1的数字,rand.nextInt(i) < k的概率是k/(现在处理过的数字总数)\n if (rand.nextInt(k+i) == i) {\n reservoir.set(rand.nextInt(k), node.val);\n }\n i++;\n node = node.next;\n }\n return reservoir.get(0);// or return reservoir when k > 1;\n }",
"public int getInitCost(){\n\t\treturn price;\n\t}",
"private double generateSellPrice(ShipType type) {\n return type.getPrice();\n }",
"private int randomWeight()\n {\n return dice.nextInt(1000000);\n }",
"public static double random()\n {\n return _prng2.nextDouble();\n }",
"public double getCellLowerPrice() {\r\n\t\treturn CellLowerPrice;\r\n\t}",
"public int randomGQ() {\n\t\treturn(getRandomInteger(10,100));\n\t}",
"Chromosome getRandom();",
"public int compete() {\r\n\t\tint max = 20;\r\n\t\tint min = 10;\r\n\t\tRandom Rand = new Random();\r\n\t\tint ranNum = Rand.nextInt(max - min) + min;\r\n\t\treturn ranNum;\r\n\t}",
"public int getRandom() {\r\n if ((itemSize / nextIndexInCache) < 0.25) {\r\n rebuildCache();\r\n }\r\n while (true) {\r\n int i = random.nextInt(nextIndexInCache);\r\n int v = cache[i];\r\n if (contains(v)) {\r\n return v;\r\n }\r\n }\r\n }",
"private Species getRandomSpeciesBaisedAdjustedFitness(Random random) {\r\n\t\tdouble completeWeight = 0.0;\r\n\t\tfor (Species s : species) {\r\n\t\t\tcompleteWeight += s.totalAdjustedFitness;\r\n\t\t}\r\n\t\tdouble r = Math.random() * completeWeight;\r\n\t\tdouble countWeight = 0.0;\r\n\t\tfor (Species s : species) {\r\n\t\t\tcountWeight += s.totalAdjustedFitness;\r\n\t\t\tif (countWeight >= r) {\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthrow new RuntimeException(\"Couldn't find a species... Number is species in total is \" + species.size()\r\n\t\t\t\t+ \", and the toatl adjusted fitness is \" + completeWeight);\r\n\t}",
"private Car generateRandomCar(int generationTime) {\n\t\tBoolean error = true;\n\t\tint errorCount=0;\n\t\twhile (error) {\n\n\t\t\tString destination;\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\t\t \n\t\t // Compute the total weight of all items together\n\t\t int totalWeight = 0;\n\t\t int selection = -1;\n\t\t for (int element : stuff)\n\t\t {\n\t\t totalWeight += element;\n\t\t \n\t\t }\n\n\t\t int position = new Random().nextInt(totalWeight);\n//\t\t System.out.println(\"totalweight:\" + totalWeight);\n//\t\t System.out.println(\"position:\" + position);\n\t\t int f = 0;\n\t\t for (int element : stuff)\n\t\t {\n//\t\t \tSystem.out.println(\"element:\" + element);\n\t\t \tf++;\n\t\t \tif (position < element)\n\t\t \t{\n\t\t \t \n\t\t selection = f;\n\t\t break;\n\t\t \t}\n\t\t \tposition -= element;\n\t\t }\n//\t\t System.out.println(\"selection:\" + selection);\n\t\t \n\t\t \n\t\t FeatureReader<SimpleFeatureType,SimpleFeature> features1 = dataStore.getFeatureReader();\n\t\t SimpleFeature selectedFeature= features1.next();\n\t\t for (int j=1 ; j<selection ; j++) {\n\t\t \tselectedFeature = features1.next(); \t\n\t\t } \n\t\t \t\n//\t\t\t\tSystem.out.println(\"id:\" + selectedFeature.getAttribute(1));\n//\t\t \tSystem.out.println(\"name:\" + selectedFeature.getAttribute(2));\n//\t\t \tSystem.out.println(\"population:\" + selectedFeature.getAttribute(3));\n\t\t features1.close();\n//\t\t System.out.println(firstFeature.getAttribute(0));\n\t\t GeometryFactory geometryFactory = (GeometryFactory) JTSFactoryFinder.getGeometryFactory( null );\n//\t\t Coordinate coord = new Coordinate( geo1.getLongitude(), geo1.getLatitude() );\n//\t\t com.vividsolutions.jts.geom.Point point = geometryFactory.createPoint(coord);\n\t\t Geometry g = (Geometry) selectedFeature.getAttribute( \"the_geom\" );\n\n\t\t\t Envelope env = new Envelope(selectedFeature.getBounds().getMinX(), selectedFeature.getBounds().getMaxX(), selectedFeature.getBounds().getMinY(), selectedFeature.getBounds().getMaxY());\n\t\t\t double x = env.getMinX() + env.getWidth() * Math.random();\n\t\t\t\tdouble y = env.getMinY() + env.getHeight() * Math.random();\n\t\t\t\tCoordinate pt = new Coordinate(x, y);\n//\t\t\t\tgeometryFactory.getPrecisionModel().makePrecise(pt);\n//\t\t\t\tCoordinate p = pt;\n\t\t\t\tcom.vividsolutions.jts.geom.Point point1 = geometryFactory.createPoint(pt);\n\t\t\t\tPoint source = Simulator.geoToCor(y,x);\n//\t\t\t\tSystem.out.println(x);\n//\t\t\t\tSystem.out.println(y);\n\t\t\t\tint tries = 0;\n\t\t\t\tdestination=strategy.chooseDestination(source);\n\t\t\t\t\n\t\t while(tries<5){\n\t\t \tif (point1.isWithinDistance(g, 0)){\n\n\t\t\t\t\t\tif(destination!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terror=false;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//sDs.chooseDestination(source);\n\t\t\t\t\t\t\tint x1 = (int) source.getX();\n\t\t\t\t\t\t\tint y1 = (int) source.getY();\n\t\t\t\t\t\t\tGeoPosition geo1 = Simulator.corToGeo(x1, y1);\n\t\t\t\t\t\t\tPoint des = Simulator.getStations().get(destination).getPoint();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint chargingTime=strategy.setChargingTime(source);\n\t\t\t\t\t\t\tint y2 = (int) des.getY();\n\t\t\t\t\t\t\tint x2 = (int) des.getX();\n\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tGeoPosition geo2 = Simulator.corToGeo(x2, y2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tGHResponse res = Simulator.getRoute(geo1, geo2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (res != null){\n\t\t\t\t\t\t\t\tCar c = new Car(geo1.getLatitude(), geo1.getLongitude(), destination, generationTime, chargingTime);\n\t\t\t\t\t\t\t\tc.saveRoute(res);\n\t//\t\t\t\t\t\t\tSystem.out.println(\"success\");\n\t\t\t\t\t\t\t\treturn c;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t \t}\n\t\t \ttries++;\n\t\t \tx = env.getMinX() + env.getWidth() * Math.random();\n\t\t\t\t\ty = env.getMinY() + env.getHeight() * Math.random();\n\t\t\t\t\tpt = new Coordinate(x, y);\n\t\t\t\t\tpoint1 = geometryFactory.createPoint(pt);\n\t\t\t\t\tsource = Simulator.geoToCor(y,x);\n\t\t } \n\t\t \n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t\terrorCount++;\n\t\t\t//can not successfully get the station destination\n\t\t\tif(errorCount==10)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"System Error From Car Production Line: Can not get the destination with current strategy\");\n\t\t\t}\n\t\t\t\t\t\n\n\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(500, 800);\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}",
"public abstract void initiateRandomCells(double probabilityForEachCell);",
"@Override\r\n\t\tpublic Double get() {\n\t\t\treturn Math.random();\r\n\t\t}",
"public static int getRandomBalance(){\n return rand.nextInt(1000000);\n }",
"private double getRandomNumber(){\n double rand = Math.random();//produce a number between 0 and 1\n rand = rand - 0.5;\n return rand;\n }",
"public String randomIncorrectPrice() {\n return new BigInteger(130, random).toString(32);\n }",
"private static double randomizePrice(double start) {\n start += (0.5 * Math.random()) * (Math.random() > 0.5 ? 1 : -1);\n start *= 1000;\n int result = (int) start;\n return result / 1000.0;\n }",
"public int getPrice(SolarSystem planet) {\n Random rng = GameState.getState().rng;\n\n int price = basePrice;\n int range = (int)((float)basePrice * ((float)var / 100));\n int maxPrice = basePrice + range;\n int minPrice = basePrice - range;\n\n //the higher the tech level, the more expensive the good.\n if (planet.getTechLevel().level > 0) {\n price += IPL * planet.getTechLevel().level;\n }\n\n //checks if planets resource makes the item cheaper\n if (planet.getResourceBias() == CR) {\n price -= rng.nextInt(var);\n }\n\n //checks if planets resource makes the item more expensive\n if (planet.getResourceBias() == ER) {\n price += rng.nextInt(var);\n }\n\n //compares IE of planet to the IE that effects the price of the good\n if (IE == planet.getCurrentIncreaseEvent()) {\n price = price + rng.nextInt(range);\n }\n //prevents the price from exceeding the set max price or falling below the set min price\n if (price > maxPrice) {\n price = maxPrice;\n } else if (price < minPrice || price < 0) {\n price = minPrice;\n }\n\n return price;\n }",
"private double calculatePrice(String product) {\n randomDelay();\n return Math.random() * product.charAt(0) + product.charAt(1);\n }",
"private double m9971g() {\n return (new Random().nextDouble() * 0.4d) - 22.4d;\n }",
"public Number getEBookMinPrice() {\n return (Number)getAttributeInternal(EBOOKMINPRICE);\n }",
"public static int weaponSpawnLocation(int cellCount)\r\n\t{\r\n\t\tRandom rng = new Random ();\t\r\n\t\treturn rng.nextInt(cellCount);\r\n\t}",
"@Override\n public double getPrice()\n {\n return room.getPrice() + PRICE;\n }",
"private int choose(){\n\t\tdouble temp = 10 * Math.random();\n\t\tint i = (int)temp;\n\t\treturn i;\n\t}",
"public int eDmg(){\r\n eDmg = rand.nextInt(13);\r\n return eDmg;\r\n }",
"private static int get() { \r\n Random r = new Random();\r\n return (r.nextInt(9));\r\n }",
"public static double randomNum(Random g)\n\t{\n\t\treturn -5+g.nextDouble()*10;\n\t}",
"public int getSellPrice(){\n\t\treturn (int)(price * 0.6);\n\t}",
"public static Ally getRandomCeleb () {\n return celebrity[(int) (Math.random() * celebrity.length)];\n }",
"private int randomValue() {\r\n\t\tRandom rand = new Random();\r\n\t\tint val = rand.nextInt(10);\r\n\t\tif(val == 9)\r\n\t\t\treturn 4;\r\n\t\telse\r\n\t\t\treturn 2;\r\n\t}",
"int randomPoint() { return 1 + (int)Math.round((Math.random()*20) % (size - 2)); }",
"static public int getHobgoblinArmor(){\n armor = rand.nextInt(4) + 2;\n return armor;\n }",
"protected Gene getRandomGene() {\n\t\tArrayList<Gene> genearr = new ArrayList<Gene>();\n\t\tgenearr.addAll(genes.values());\n\t\treturn genearr.get(Braincraft.randomInteger(genearr.size()));\n\t}",
"public double getRand(int stage){\n double sum=0.0;\n for (int i = 0; i<9; i++)\n sum+=modifiedMark.get(stage).get(i);\n return Math.random()*sum;\n }",
"private Map<Good, Integer> initiateMarketplace() {\n Random noise = new Random();\n Map<Good, Integer> map = Collections.synchronizedMap(\n new EnumMap<Good, Integer>(Good.class));\n for (Good item : Good.values()) {\n if (item.getMinTech() <= techLevel) {\n Integer price = Math.max(item.getBasePrice()\n - (techLevel - item.getMinTech()) + alignment.getPriceChange()\n + noise.nextInt(5),\n 5);\n map.put(item, price);\n }\n }\n return map;\n }",
"private static String RandomCash() {\n\t\tint max = 0;\n\t\tint min = 100000;\n\t\tint range = max - min + 1;\n\t\t\n\t\tString text=null;\n\t\ttry {\n\t\t\t\n\t\t\tint random = (int) (Math.random() * (range) + min);\n\t\t\ttext = formatted(\"###,###\", random)+\" VNĐ\";\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn text;\n\t}",
"public double getCellUpperPrice() {\r\n\t\treturn CellUpperPrice;\r\n\t}",
"public static double getRandomRating() {\n return (double) (RandomNumberGenerator.getRandomInt(0, 10) / 2d);\n }",
"public static int getRandomAmount(){\n return rand.nextInt(1000);\n }",
"abstract float evalCell(Cell c, float hunger, Random rand);",
"private int randomPiece() {\n return (int)(Math.random()*N_PIECES);\n }",
"private long getReserveRecNo() {\n\t\tfinal int selectedRow = this.clientUI.getSelectedRowNo();\n\t\treturn this.model.getRecNo(selectedRow);\n\t}",
"public Number getEBookPrice() {\n return (Number)getAttributeInternal(EBOOKPRICE);\n }",
"private PointF getRandCoordinate() {\n Random r = new Random();\n float xRand = (r.nextInt(getWidth()) / density) + 1;\n float y = 10 / density;\n\n return new PointF(xRand, y);\n }",
"private BlockType randomBlock(){\n // Check whether a powerup should be chosen or not\n if(random.nextInt(9) == 0){\n // Return a random powerup\n return allPowerUps.get(random.nextInt(allPowerUps.size()));\n\t}\n\treturn BlockType.PLATTFORM;\n }",
"public float randomQual() {\n\t\treturn((float) getRandomInteger(30,250));\n\t}",
"private Integer randomHemoglobina(){\n\t\t\tint Min = 9, Max = 23;\n\t\t\treturn Min + (int)(Math.random() * ((Max - Min) + 1));\n\t\t}",
"private static int getRandomNumberOfRooms(){\r\n return r.nextInt(50)+1;\r\n }",
"public static int getPrice() {\n return PRICE_TO_BUY;\n }",
"public String getRandomCharecter(){\n\n\tif (!dataprepared){\n\t prepareData();\n\t}\n\t\n\tAssert.pre(table!=null,\"data must be prepared\");\n\n\treturn (String)table.get(r.nextInt(total));\n\n\t\n }",
"private int randomAddress() {\n\t\tint randomAddressId = (int) (Math.random() * 603);\n\t\treturn randomAddressId;\n\t}",
"public Room getRandomRoom(){\n return (Room)rooms.get(random.nextInt(rooms.size()));\n }",
"public java.lang.String getReserve9() {\n return reserve9;\n }",
"public double randomValue(){\n\t\treturn _randomValue() + _randomValue() + _randomValue();\n\t}",
"@Override\n\tpublic double getPrice() {\n\t\treturn constantPO.getPrice();\n\t}",
"public int getRandom() {\n return sub.get(rand.nextInt(sub.size()));\n }",
"public int getRandom() {\n int index = rnd.nextInt(list.size());\n return list.get(index).val;\n }",
"private Integer randomBilirrubina(){\n\t\t\tint Min = 0, Max = 14;\n\t\t\treturn Min + (int)(Math.random() * ((Max - Min) + 1));\n\t\t}",
"@Override\n\tpublic double getPrice() {\n\t\treturn 20;\n\t}",
"public static int RandomNum(){\n\n Random random = new Random();\n int ItemPicker = random.nextInt(16);\n return(ItemPicker);\n }",
"public int getPrice() {\r\n\t\tif (this.base.equals(\"tower\")) {\r\n\t\t\treturn price;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"public double getRandomX() {\r\n\t\treturn x1;\r\n\t}",
"public int getRandom() {\n return nums.get((int) (Math.random() * nums.size()));\n }",
"private int generateRandomNumber() {\n\t\treturn new SplittableRandom().nextInt(0, 3);\n\t}",
"public static int getRndSalary() {\n return ThreadLocalRandom.current().nextInt(10, 100000 + 1);\n }",
"GICLClaimReserve getClaimReserve(Integer claimId, Integer itemNo, Integer perilCd) throws SQLException;",
"public Number getPrice() {\n return (Number)getAttributeInternal(PRICE);\n }",
"public BigDecimal getRESERVE_AMOUNT() {\r\n return RESERVE_AMOUNT;\r\n }",
"private double genMultiplier() {\n return (random.nextInt(81) + 60)/100.0;\n }",
"public int generateCoins() {\n\t\n Entity e = new Coin();\n\t\n int c = rand.nextInt(6) + 1;\n int r = rand.nextInt(c) + 1;\n\n int w = e.getWidth();\n int h = e.getHeight();\n\t\n int y = rand.nextInt(mMap.getBottomBound() - r * h);\n int x = 1000;\n\n e.setRelativeVelocity(mGame.getPlayer().getVelocity());\n e.setPosition(x, y);\n mGame.addEntity(e);\n\n // Generates a group of coins\n for(int i = 0; i < r; i++) {\n for(int j = 0; j < c; j++) {\n if(i == 0 && j == 0) continue;\n\n e = new Coin();\n e.setRelativeVelocity(mGame.getPlayer().getVelocity());\n e.setPosition(x + w * j, y + h * i);\n mGame.addEntity(e);\n }\n }\n\n return w * c;\n }",
"public int pickDoorSpot() {\n\t\tint doorSpot = ThreadLocalRandom.current().nextInt(1, ((getRoomWidth() * 2) + ((getRoomLength() - 1) * 2)));\r\n\t\treturn doorSpot;\r\n\t}",
"public int getRandom() {\r\n\r\n\t\tint rand = (int) (Math.random() * BUCKET_SIZE);\r\n\t\tfor (int i = rand; (i + 1) % BUCKET_SIZE != rand; i = (++i) % BUCKET_SIZE) {\r\n\t\t\tif (bucket[i] == null)\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\tint rand2 = (int) (Math.random() * bucket[i].size);\r\n\r\n\t\t\tNode p = bucket[i].list;\r\n\t\t\tfor (int j = 0; j < rand2; ++j)\r\n\t\t\t\tp = p.next;\r\n\r\n\t\t\treturn p.val;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"public int getRandom() {\n return data.get(random.nextInt(data.size()));\n }",
"public int getRandom() {\n return data.get(random.nextInt(data.size()));\n }",
"protected Random get_rand_value()\n {\n return rand;\n }",
"public String getReserve2() {\n return reserve2;\n }",
"private Random getRandom()\n\t{\n\t\tif (this.random == null)\n\t\t{\n\t\t\t// Calculate the new random number generator seed\n\t\t\tlong seed = System.currentTimeMillis();\n\t\t\tlong t1 = seed;\n\t\t\tchar entropy[] = getEntropy().toCharArray();\n\t\t\tfor (int i = 0; i < entropy.length; i++)\n\t\t\t{\n\t\t\t\tlong update = ((byte) entropy[i]) << ((i % 8) * 8);\n\t\t\t\tseed ^= update;\n\t\t\t}\n\t\t\tthis.random = new java.util.Random();\n\t\t\tthis.random.setSeed(seed);\n\t\t}\n\n\t\treturn (this.random);\n\n\t}",
"@Override\r\n\tpublic double getPrice() {\n\t\treturn 60000;\r\n\t}",
"protected abstract double getCell(\r\n int row,\r\n int col);",
"public void getPaintPrice(){\n System.out.println(\"Enter the price per gallon of paint: \");\n this.pricePerGallon = INPUT.nextDouble();\n }",
"private int randomNum() {\r\n\t return((int)(Math.random() * 100));\r\n\t }"
] | [
"0.6768454",
"0.64777124",
"0.63807064",
"0.6370417",
"0.6218772",
"0.6200445",
"0.5997869",
"0.58843267",
"0.5811098",
"0.5802036",
"0.5779687",
"0.576378",
"0.57244545",
"0.565703",
"0.5594362",
"0.55932474",
"0.5563627",
"0.55568516",
"0.55512494",
"0.55190164",
"0.55138254",
"0.5495379",
"0.5485702",
"0.5478603",
"0.5468271",
"0.5426977",
"0.5417313",
"0.54103386",
"0.53953105",
"0.53909594",
"0.53677756",
"0.53518534",
"0.5329249",
"0.53199315",
"0.53128886",
"0.53113115",
"0.5303258",
"0.52970886",
"0.52850705",
"0.5277009",
"0.5270729",
"0.5261822",
"0.5261373",
"0.52455455",
"0.5242686",
"0.5242499",
"0.52405757",
"0.5240183",
"0.52117956",
"0.5206923",
"0.51991636",
"0.5198042",
"0.5178697",
"0.51784974",
"0.5172702",
"0.51717794",
"0.5162756",
"0.5157232",
"0.51443344",
"0.5129405",
"0.5128517",
"0.5121898",
"0.5109842",
"0.51029164",
"0.5097959",
"0.5097883",
"0.50974494",
"0.5096034",
"0.50898486",
"0.50897396",
"0.5084709",
"0.5083379",
"0.5081604",
"0.50691617",
"0.50560796",
"0.50560397",
"0.5052963",
"0.5050506",
"0.50503767",
"0.50435466",
"0.50407076",
"0.50381887",
"0.5037958",
"0.50339174",
"0.50256085",
"0.5018687",
"0.50171036",
"0.50149363",
"0.5010225",
"0.5009239",
"0.5003485",
"0.500155",
"0.4999447",
"0.4997287",
"0.49928325",
"0.49893376",
"0.4988987",
"0.4984559",
"0.49842507",
"0.49837512"
] | 0.73239326 | 0 |
get cell random deadline correspond to the cell. | public Date getCellDeadline() {
return CellDeadline;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int getRandCell() {\n int num = (int) (Math.random() * 10); // Generate random numbers\n int randCell = 1;\n if (num >= MARG_FIRST && num <= MARG_LAST) { // Set boundaries\n randCell = num;\n }\n return randCell;\n }",
"public Cell randomCell() {\n ArrayList<Cell> available = this.randomCellHelper();\n return available.get(new Random().nextInt(available.size()));\n\n }",
"public Date getCellUpperDeadline() {\r\n\t\treturn CellUpperDeadline;\r\n\t}",
"@Override\n public long generateNewTimeToNextContract() {\n return new Random().nextInt(5);\n }",
"public synchronized int setArrivalTime(){\n\t\t return random.nextInt((30-1)+1)+1;\n\n\t}",
"public Date getCellLowerDeadline() {\r\n\t\treturn CellLowerDeadline;\r\n\t}",
"public static long randomTime() {\n return (random.nextInt(11) + 25)*1000;\n }",
"long getDeadline();",
"@java.lang.Override\n public long getDeadline() {\n return deadline_;\n }",
"@java.lang.Override\n public long getDeadline() {\n return deadline_;\n }",
"public Date getRealDeadline() {\r\n return realDeadline;\r\n }",
"public int getDeadline() {\n\t\treturn this.deadline;\n\t}",
"public Player getRandomTarget() {\n\t\tPlayer target = null;\n\t\tint rand = Battleground.getRandomNumber(1, 5);\n\t\tswitch (rand) {\n\t\tcase 1:\n\t\t\tif (Battleground.captainAmerica.stillAlive()) {\n\t\t\t\ttarget = Battleground.captainAmerica;\n\t\t\t\tbreak;\n\t\t\t}\n\t\tcase 2:\n\t\t\tif (Battleground.hawkeye.stillAlive()) {\n\t\t\t\ttarget = Battleground.hawkeye;\n\t\t\t\tbreak;\n\t\t\t}\n\t\tcase 3:\n\t\t\tif (Battleground.blackWidow.stillAlive()) {\n\t\t\t\ttarget = Battleground.blackWidow;\n\t\t\t\tbreak;\n\t\t\t}\n\t\tcase 4:\n\t\t\tif (Battleground.hulk.stillAlive()) {\n\t\t\t\ttarget = Battleground.hulk;\n\t\t\t\tbreak;\n\t\t\t}\n\t\tcase 5:\n\t\t\tif (Battleground.thor.stillAlive()) {\n\t\t\t\ttarget = Battleground.thor;\n\t\t\t\tbreak;\n\t\t\t}\n\t\tdefault:\n\t\t\ttarget = Battleground.captainAmerica;\n\t\t\tbreak;\n\t\t}\n\t\treturn target;\n\t}",
"public int getDeadline(){return deadline;}",
"private MySchedule getRandomInitialSchedule() {\r\n\t\tArrayList<MyCourse> courses = new ArrayList<MyCourse>();\r\n\t\tfor (MyClass aClass : this.allClasses)\r\n\t\t\tcourses.add(new MyCourse(aClass,\r\n\t\t\t\tthis.getRandomRoom(),\r\n\t\t\t\tthis.getRandomInstructor(),\r\n\t\t\t\tthis.getRandomTimeSlot()));\r\n\t\tMySchedule result = new MySchedule(courses);\r\n\t\treturn result.getEnergy() > 0 ? result : this.getRandomInitialSchedule();\r\n\t}",
"double getDeadline() {\n return deadline;\n }",
"protected long deadlineSeconds() {\n return DEFAULT_TASK_SECONDS;\n }",
"public int generateEnemyInterval() {\n\t\tenemyInterval = randomGenerator.nextInt(2901) + 300;\n\t\t\n\t\treturn enemyInterval;\n\t}",
"public static Ally getRandomCeleb () {\n return celebrity[(int) (Math.random() * celebrity.length)];\n }",
"private long calculateTimeToWait(int min, int max, long totalRunningTime)\n {\n double randomNumber = Math.random();\n\n if (randomNumber < 0.003)\n return Random.nextInt(60523, 127443);\n\n if (randomNumber < 0.05)\n return Random.nextInt(2519, 28111);\n\n long waitTime = (long) Random.nextInt(min, max);\n return (long) Math.floor(waitTime * (1 / (1 - (totalRunningTime / FIVE_HOURS_MILLIS))));\n }",
"public DuelistRNG() {\n this((long) ((Math.random() - 0.5) * 0x10000000000000L)\n ^ (long) (((Math.random() - 0.5) * 2.0) * 0x8000000000000000L),\n (long) ((Math.random() - 0.5) * 0x10000000000000L)\n ^ (long) (((Math.random() - 0.5) * 2.0) * 0x8000000000000000L));\n }",
"public String getRandomCharecter(){\n\n\tif (!dataprepared){\n\t prepareData();\n\t}\n\t\n\tAssert.pre(table!=null,\"data must be prepared\");\n\n\treturn (String)table.get(r.nextInt(total));\n\n\t\n }",
"public String getDeadline(){\n\t\treturn this.deadline ;\n\t}",
"@Override\n public String getDeadlineName() {\n return this.deadline.getName();\n }",
"int getChronicDelayTime();",
"public static int getRandomTask() {\n double p = rand.nextDouble(); // required probs given in Question\n for (int i = 0; i < 6; i++) {\n if (p <= prob[i])\n return i;\n }\n return 1;\n }",
"public static int randomSleepTime() {\n return ThreadLocalRandom.current().nextInt(2000);\n }",
"public Tile getRandomLegalTile(){\n\t\tRandom random = new Random();\n\t\tArrayList<Tile> legalTiles = getAllLegalMoves(Game.getInstance().getCurrentPlayerColor());\n\t\tTile randomTile = legalTiles.get( random.nextInt(legalTiles.size()));\n\t\treturn randomTile;\n\t}",
"public java.lang.String getRndTaskNumber() {\n return rndTaskNumber;\n }",
"protected Random get_rand_value()\n {\n return rand;\n }",
"private InetSocketAddress getRandomActiveReplica() {\n\t\treturn (InetSocketAddress) (this.getActiveReplicas().toArray()[(int) (this\n\t\t\t\t.getActiveReplicas().size() * Math.random())]);\n\t}",
"@Override\n public Deadline getDeadline() {\n return this.deadline;\n }",
"public Date getDeadlineDate() {\r\n return deadlineDate;\r\n }",
"static int getRandomDelta() {\n int d = rand.nextInt(100);\n if (d < 50) {\n return -1;\n } else {\n return 1;\n }\n }",
"public String randomNamaTim() {\n\t\tint idxTim = random.nextInt(arrayTim.size()-1);\n\t\tString randomTim = arrayTim.get(idxTim);\n\t\tarrayTim.remove(idxTim);\n\t\treturn randomTim;\n\t}",
"private int getRandomPiece() {\r\n return new Random().nextInt(Constants.NUM_PIECES);\r\n }",
"public long getNextScheduled() {\n\t\tDate currDate = new Date();\n\t\t\n\t\tCalendar runTimeToday = Calendar.getInstance();\n\t\trunTimeToday.setTime(currDate);\n\t\t\n\t\trunTimeToday.set(Calendar.HOUR_OF_DAY, hour);\n\t\trunTimeToday.set(Calendar.MINUTE, minute);\n\t\trunTimeToday.set(Calendar.SECOND, 0);\n\t\t\n\t\tDate runTimeTodayDate = runTimeToday.getTime();\n\t\t\n\t\tif(currDate.before(runTimeTodayDate)) {\n\t\t\tSystem.out.println(\"DailyProcess: Next runtime is today.\");\n\t\t} else {\n\t\t\t// equals or after\n\t\t\tSystem.out.println(\"DailyProcess: Next runtime is tomorrow.\");\n\t\t\trunTimeToday.add(Calendar.DATE, 1);\n\t\t\trunTimeTodayDate = runTimeToday.getTime();\n\t\t}\n\t\t\n\t\tlong runTime = runTimeTodayDate.getTime() - currDate.getTime();\n\t\t\n\t\tif(false) {\n\t\t\t// Debugging\n\t\t\trunTime = 0;\n\t\t}\n\t\t\n\t\trunTime += randomDelay;\n\t\t\n\t\treturn runTime;\n\t}",
"public double GenerateTime() {\r\n double d = R.nextDouble();\r\n double generatedtime=mean+range*(d-0.5);\r\n return generatedtime;\r\n }",
"public abstract Date getNextFireTime();",
"private double generateTimeServ() throws ExceptionInvalidTimeDelay {\n if (distribution != null) {\n if (distribution.equalsIgnoreCase(\"exp\")) {\n timeServ = FunRand.exp(parametr);\n } else if (distribution.equalsIgnoreCase(\"unif\")) {\n timeServ = FunRand.unif(parametr - paramDeviation, parametr + paramDeviation);\n } else if (distribution.equalsIgnoreCase(\"norm\")) {\n timeServ = FunRand.norm(parametr, paramDeviation);\n }\n } else {\n timeServ = parametr;\n }\n return timeServ;\n }",
"private static Date getRandomDate(){\n Instant instant = Instant.now();\n long timeStampMillis = instant.toEpochMilli();\n long leftLimit = timeStampMillis - (1000 * 60 * 60 * 24 * 20);\n long rightLimit = timeStampMillis + (1000 * 60 * 60 * 24 * 20);\n return new Date(\n leftLimit + (long) (Math.random() * (rightLimit - leftLimit))\n );\n }",
"private double getRandom() {\n return 2*Math.random() - 1;\n }",
"public abstract LocalDateTime getDeadline();",
"public Tile getRandomFreeTile() {\n\n\t\tRandom random = new Random();\n\t\tArrayList<Tile> emptyTiles = getEmptyTiles();\n\t\tTile randomTile = emptyTiles.get( random.nextInt(emptyTiles.size()));\n\t\treturn randomTile;\n\t}",
"public double nextArrivalTime() {\n return (-1 / lambda) * Math.log(1 - randomAT.nextDouble());\n }",
"public long getNextTime() {\r\n if (super.getNextTime() == 0) {\r\n return 0;\r\n }\r\n Object obj = this._queue;\r\n if (obj != null) {\r\n if (obj instanceof LockFreeTaskQueueCore) {\r\n if (!((LockFreeTaskQueueCore) obj).isEmpty()) {\r\n return 0;\r\n }\r\n } else if (obj == EventLoop_commonKt.CLOSED_EMPTY) {\r\n return LongCompanionObject.MAX_VALUE;\r\n } else {\r\n return 0;\r\n }\r\n }\r\n DelayedTaskQueue delayedTaskQueue = (DelayedTaskQueue) this._delayed;\r\n if (delayedTaskQueue != null) {\r\n DelayedTask delayedTask = (DelayedTask) delayedTaskQueue.peek();\r\n if (delayedTask != null) {\r\n long j = delayedTask.nanoTime;\r\n TimeSource timeSource = TimeSourceKt.getTimeSource();\r\n return RangesKt.coerceAtLeast(j - (timeSource != null ? timeSource.nanoTime() : System.nanoTime()), 0);\r\n }\r\n }\r\n return LongCompanionObject.MAX_VALUE;\r\n }",
"public int getMaxDeadline() {\n\t\treturn this.maxDeadline;\n\t}",
"private static long getRandAccountD() {\n int bid = rand.nextInt(noOfBranches);\n return getRandAccountFromBranchD(bid);\n }",
"private void generatePopularHours() {\r\n double h = Math.random() * 10;\r\n String hrs = ((int)h) + \"\";\r\n }",
"public int getDelayTime(Node sender, int curTime) {\n\n\t\tif (this.delayType == IConstants.MSGDELAY_LOCAL_FIXED) {\t\n\t\t\tif (sender.equals(this.start)) {\n\t\t\t\tthis.lastestMsgTimeForStart = curTime + this.delaySeed;\t\t\t\t\n\t\t\t\treturn this.lastestMsgTimeForStart;\n\t\t\t\t\n\t\t\t} else if (sender.equals(this.end)) {\n\t\t\t\tthis.lastestMsgTimeForEnd = curTime + this.delaySeed;\n\t\t\t\treturn this.lastestMsgTimeForEnd;\n\t\t\t\t\n\t\t\t} else {\t\t\t\t\n\t\t\t\tString msg = \"Edge \" + this + \" does not contain sender node \" + sender;\n\t\t\t\tSystem.err.println(\"@Edge: \" + msg);\n\t\t\t\tthrow new RuntimeException(msg);\n\t\t\t}\n\t\n\t\t} else if (this.delayType == IConstants.MSGDELAY_LOCAL_RANDOM_UNIFORM) {\n\t\t\tint base = 0;\n\t\t\tif (sender.equals(this.start)) {\n\t\t\t\tif(this.lastestMsgTimeForStart > curTime){\n\t\t\t\t\tbase = this.lastestMsgTimeForStart;\n\t\t\t\t}else{\n\t\t\t\t\tbase = curTime;\n\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t} else if (sender.equals(this.end)) {\n\t\t\t\tif(this.lastestMsgTimeForEnd > curTime){\n\t\t\t\t\tbase = this.lastestMsgTimeForEnd;\n\t\t\t\t}else{\n\t\t\t\t\tbase = curTime;\n\t\t\t\t}\t\t\t\t\n\t\t\t} else {\t\t\t\t\n\t\t\t\tString msg = \"Edge \" + this + \" does not contain sender node \" + sender;\n\t\t\t\tSystem.err.println(\"@Edge: \" + msg);\n\t\t\t\tthrow new RuntimeException(msg);\n\t\t\t}\n\n\t\t\tIRandom r = Uniform.getInstance(System.currentTimeMillis());\n\t\t\tint t = 0;\t\t\t\t\t\t\n\t\t\tif (this.msgFlowType == IConstants.MSGFLOW_FIFO_TYPE) {\n\t\t\t\tt = r.nextInt(IConstants.MAX_RANDOM_RANGE) + base + 1;\n\t\t\t}else{\n\t\t\t\tt = r.nextInt(IConstants.MAX_RANDOM_RANGE) + curTime + 1;\n\t\t\t}\n\t\t\tif (sender.equals(this.start)) {\n\t\t\t\tthis.lastestMsgTimeForStart = t;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tthis.lastestMsgTimeForEnd = t;\n\t\t\t}\n\t\t\treturn t;\n\n\t\t} else if (this.delayType == IConstants.MSGDELAY_LOCAL_RANDOM_POISSON) {\n\t\t\tint base = 0;\n\t\t\tif (sender.equals(this.start)) {\n\t\t\t\tif(this.lastestMsgTimeForStart > curTime){\n\t\t\t\t\tbase = this.lastestMsgTimeForStart;\n\t\t\t\t}else{\n\t\t\t\t\tbase = curTime;\n\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t} else if (sender.equals(this.end)) {\n\t\t\t\tif(this.lastestMsgTimeForEnd > curTime){\n\t\t\t\t\tbase = this.lastestMsgTimeForEnd;\n\t\t\t\t}else{\n\t\t\t\t\tbase = curTime;\n\t\t\t\t}\t\t\t\t\n\t\t\t} else {\t\t\t\t\n\t\t\t\tString msg = \"Edge \" + this + \" does not contain sender node \" + sender;\n\t\t\t\tSystem.err.println(\"@Edge: \" + msg);\n\t\t\t\tthrow new RuntimeException(msg);\n\t\t\t}\n\n\t\t\tIRandom r = Poisson.getInstance(System.currentTimeMillis());\n\t\t\tint t = 0;\t\t\t\t\t\t\n\t\t\tif (this.msgFlowType == IConstants.MSGFLOW_FIFO_TYPE) {\n\t\t\t\tt = r.nextInt(IConstants.MAX_RANDOM_RANGE) + base + 1;\n\t\t\t}else{\n\t\t\t\tt = r.nextInt(IConstants.MAX_RANDOM_RANGE) + curTime + 1;\n\t\t\t}\n\t\t\tif (sender.equals(this.start)) {\n\t\t\t\tthis.lastestMsgTimeForStart = t;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tthis.lastestMsgTimeForEnd = t;\n\t\t\t}\n\t\t\treturn t;\n\t\t\t\n\t\t} else {\t\t\t\n\t\t\t//if (this.delayType == IConstants.MSGDELAY_LOCAL_RANDOM_CUSTOMS) {\n\t\t\t\n\t\t\tIRandom clientRandom = GraphFactory.getGraph(graphId).getClientRandom();\n\t\t\tif(clientRandom == null){\n\t\t\t\tString msg = \"You haven't set your custom random number generator!\";\n\t\t\t\tSystem.err.println(msg);\n\t\t\t\tthrow new RuntimeException(msg);\n\t\t\t\t\n\t\t\t} else{\n\t\t\t\tint base = 0;\n\t\t\t\tif (sender.equals(this.start)) {\n\t\t\t\t\tif(this.lastestMsgTimeForStart > curTime){\n\t\t\t\t\t\tbase = this.lastestMsgTimeForStart;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbase = curTime;\n\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t} else if (sender.equals(this.end)) {\n\t\t\t\t\tif(this.lastestMsgTimeForEnd > curTime){\n\t\t\t\t\t\tbase = this.lastestMsgTimeForEnd;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbase = curTime;\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t} else {\t\t\t\t\n\t\t\t\t\tString msg = \"Edge \" + this + \" does not contain sender node \" + sender;\n\t\t\t\t\tSystem.err.println(\"@Edge: \" + msg);\n\t\t\t\t\tthrow new RuntimeException(msg);\n\t\t\t\t}\n\n\t\t\t\tint t = 0;\t\t\t\t\t\t\n\t\t\t\tif (this.msgFlowType == IConstants.MSGFLOW_FIFO_TYPE) {\n\t\t\t\t\tt = clientRandom.nextInt(IConstants.MAX_RANDOM_RANGE) + base + 1;\n\t\t\t\t}else{\n\t\t\t\t\tt = clientRandom.nextInt(IConstants.MAX_RANDOM_RANGE) + curTime + 1;\n\t\t\t\t}\n\t\t\t\tif (sender.equals(this.start)) {\n\t\t\t\t\tthis.lastestMsgTimeForStart = t;\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tthis.lastestMsgTimeForEnd = t;\n\t\t\t\t}\n\t\t\t\treturn t;\n\t\t\t}\n\t\t}\n\n\t}",
"public int generateHour() {\n Random random = new Random();\n int hour = random.nextInt(8);\n\n return hour;\n }",
"private int getRandNumber() {\n int randNum = 0;\n Random generator = new Random();\n randNum = generator.nextInt(LIST.length()-1);\n return randNum;\n }",
"public int determineDayRandomly() {\n\t\treturn 0;\r\n\t}",
"long random(long ws) {\r\n\t\treturn (System.currentTimeMillis() % ws);\r\n\t}",
"private int randomAge() {\n \tint low = 18;\n \tint high = 100;\n \tint offset = high - low;\n \tRandom r = new Random();\n \treturn r.nextInt(offset) + low;\n \t\n }",
"private String RandomGoal() {\n\t\tList<String> list = Arrays.asList(\"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"t\", \"t\");\n\t\tRandom rand = new Random();\n\t\tString randomgoal = list.get(rand.nextInt(list.size()));\n\n\t\treturn randomgoal;\n\t}",
"private String getTimingString() {\n return DateTimeHandler.STANDARD_DATETIME_FORMAT.format(deadline);\n }",
"public Random getRandom() {\n\t\treturn (rand);\n\t}",
"private static long getRandAccount() {\n int bid = rand.nextInt(noOfBranches);\n return getRandAccountFromBranch(bid);\n }",
"public int wait_cycle(){\n\t\tRandom r1=new Random();\n\t\tint r2=r1.nextInt((999)+1)+1;\n\t\treturn r2;\n\t}",
"public void setCellUpperDeadline(Date cellUpperDeadline) {\r\n\t\tCellUpperDeadline = cellUpperDeadline;\r\n\t}",
"public GoLRandomInitializer() {\n Random randomLifeOrDeath = new Random();\n \n // Give life to random cells in the board\n for (int row = 0; row < this.NUM_ROWS; row++)\n for (int column = 0; column < this.NUM_COLUMNS; column++)\n this.gameBoard[row][column] = new \n GoLCell(randomLifeOrDeath.nextBoolean());\n }",
"private String getNext() {\n \t\t\n \t\tArrayList<String> reel = game.getType().getReel();\n \t\t\n \t\tRandom generator = new Random();\n \t\tint id = generator.nextInt(reel.size());\n \t\t\n \t\tString nextID = reel.get(id);\n \t\tString[] idSplit = nextID.split(\"\\\\:\");\n \t\t\n \t\tif (idSplit.length == 2) {\n \t\t\treturn nextID;\n \t\t}else {\n \t\t\tString newID;\n \t\t\tnewID = Integer.parseInt(idSplit[0]) + \":0\";\n \t\t\t\n \t\t\treturn newID;\n \t\t}\n \t}",
"private TetrisPiece randomPiece() {\n\t\tint rand = Math.abs(random.nextInt());\n\t\treturn new TetrisPiece(rand % (PIECE_COLORS.length));\n\t}",
"public java.lang.String getRndTaskName() {\n return rndTaskName;\n }",
"public int getRandomY() {\r\n\t\treturn y1;\r\n\t}",
"long getRepeatIntervalPref();",
"private static List<Cell> runSimulationExecutive(int sim_duration, int simulation_time_interval, List<Cell> cell_population)\n\t{\n\t\tint population_size = cell_population.size();\n int[][][] blank_genome = new int[haploid_number][2][2]; // A blank diploid genome - The karyotype of the cell, 3 dimensional array to store discrete values for each chromosome -> each homologous pair of chromosomes -> 2 complementary DNA strands'\n\t\t\n //Progress through time at selected intervals for a specified duration\n\t\tfor(int current_time = 0; current_time < sim_duration; current_time += simulation_time_interval)\n {\n printString(current_time + \" \" + population_size);\n //Perform division of all cells that can divide as determined by a random number generator and the set division threshhold\n //As new cells are being added to the list, only go through the cells present in the population before new cells were added in this round i.e use the previous population size as max number of iterations.\n for(int current_element = 0; current_element < population_size; current_element++)\n {\n Cell current_cell = cell_population.get(current_element);\n boolean current_cell_can_divide = current_cell.getDivisionStatus();\n if(current_cell_can_divide)\n {\n \n //Produce a random number, R, between ***********????!!!!!!!!!\n double between_zero_and_one = randomDouble();\n if(between_zero_and_one < 0.2) //The cell can divide\n {\n //Remove one cell from the current generation and add two to the next\n //by changing the generation of the original cell to current_gen + 1 and\n //creating a new cell object also in generation current_gen + 1\n \n final int daughter_cell_one = current_element; //The original cell will become daughter cell one\n \n // Change the orginal cell to daughter cell 1 by increasing its generation value by 1, from its current generation\n //printString(\"Generation of parent cell = \" + daughter_cell_one.getGeneration());\n //printString(\"Cell ID of parent cell = \" + daughter_cell_one.getId());\n int next_generation = cell_population.get(daughter_cell_one).getGeneration() + 1;\n printString(\"Generation of daughter cells = \" + next_generation);\n cell_population.get(daughter_cell_one).setGeneration(next_generation);\n //This is now a new cell, change its ID to a new unique one???????\n \n //Create a new cell object which will become daughter cell 2, with a blank diploid genome, of same generation as the newly created daughter cell 1\n printString(\"Population size before division = \" + cell_population.size());\n cell_population.add(new Cell(id_of_last_created_cell + 1, next_generation, -1, CAN_DIVIDE, newEmptyDeploidGenome()));\n id_of_last_created_cell++;\n printString(\"Population size after division = \" + cell_population.size());\n final int daughter_cell_two = (cell_population.size() - 1); //Create and set daughter cell 2 to the newly created cell object\n \n /*********************************************************/\n // Track the latest generation of cells.\n if(cell_population.get(daughter_cell_one).getGeneration() > newest_generation)\n {newest_generation++;}\n /*********************************************************/\n \n \n //CREATE AN EMPTY GENOME\n int[][][] empty_diploid_genome = newEmptyDeploidGenome();\n \n int[][][] temp_genome_d1 = cell_population.get(daughter_cell_one).getGenome(), temp_genome_d2 = empty_diploid_genome;\n\n //Perform labelling logic as cell divides\n for(int chromosome_count = 0; chromosome_count < temp_genome_d1.length; chromosome_count++)\n {\n\n for(int homologous_pair_count= 0; homologous_pair_count < temp_genome_d1[chromosome_count].length; homologous_pair_count++)\n {\n for(int dna_strand_count = 0; dna_strand_count < temp_genome_d1[chromosome_count][homologous_pair_count].length; dna_strand_count++)\n {\n if(homologous_pair_count == 0 && dna_strand_count==0)\n {temp_genome_d2[chromosome_count][homologous_pair_count][dna_strand_count] = STRAND_LABELLED; //Set cell 2 DNA strand to labelled\n //printString(\"Labelled strand \" + Integer.toString(temp_genome_d2[chromosome_count][homologous_pair_count][dna_strand_count]));\n }\n else if(homologous_pair_count == 0 && dna_strand_count==1)\n {\n temp_genome_d2[chromosome_count][homologous_pair_count][dna_strand_count] = temp_genome_d1[chromosome_count][homologous_pair_count][dna_strand_count]; //This strand in cell 2 came from the original cell\n temp_genome_d1[chromosome_count][homologous_pair_count][dna_strand_count] = STRAND_LABELLED; //Label cell 1s strand as it's new\n }\n else if(homologous_pair_count == 1 && dna_strand_count==0)\n temp_genome_d2[chromosome_count][homologous_pair_count][dna_strand_count] = STRAND_LABELLED; //Label cells 2's strand, new\n else if(homologous_pair_count == 1 && dna_strand_count==1)\n {\n temp_genome_d2[chromosome_count][homologous_pair_count][dna_strand_count] = temp_genome_d1[chromosome_count][homologous_pair_count][dna_strand_count]; //This strand in cell 2 came from the original cell\n temp_genome_d1[chromosome_count][homologous_pair_count][dna_strand_count] = STRAND_LABELLED; //Label cell 1s strand as it's new\n }\n //if(temp_genome_d2[chromosome_count][homologous_pair_count][dna_strand_count] == 0)\n //printString(\"Labelled strand \" + Integer.toString(temp_genome_d2[chromosome_count][homologous_pair_count][dna_strand_count]));\n //printString(\"Chromosome \" + Integer.toString(chromosome_count+1) + \"; Homologous Pair \" + Integer.toString(homologous_pair_count+1) + \"; Strand \" + Integer.toString(dna_strand_count+1) + \" - Label status = \" + Integer.toString(blank_genome[chromosome_count][homologous_pair_count][dna_strand_count]));\n\n //printString(\"Chromosome \" + Integer.toString(chromosome_count+1) + \"; Homologous Pair \" + Integer.toString(homologous_pair_count+1) + \"; Strand \" + Integer.toString(dna_strand_count+1) + \" - Label status = \" + Integer.toString(temp_genome_d1[chromosome_count][homologous_pair_count][dna_strand_count]));\n }// for every DNA strand\n\n /****/\n //Model stochastic nature of chromosome migration. Each chromosome could end up in either cell one or cell two.\n double another_between_zeroANDone = randomDouble();\n if(another_between_zeroANDone >= 0.5)\n {}\n else\n {\n int[][] temp_chromosome_1 = temp_genome_d1[chromosome_count]; int[][] temp_chromosome_2 = temp_genome_d2[chromosome_count];\n\n temp_genome_d1[chromosome_count] = temp_chromosome_2;\n temp_genome_d2[chromosome_count] = temp_chromosome_1;\n \n //printString(\"Chromosome \" + Integer.toString(chromosome_count+1) + \"; Homologous Pair \" + Integer.toString(homologous_pair_count+1) + \"; Strand 1\" + \" - Label status = \" + Integer.toString(temp_genome_d1[chromosome_count][homologous_pair_count][0]));\n //printString(\"Chromosome \" + Integer.toString(chromosome_count+1) + \"; Homologous Pair \" + Integer.toString(homologous_pair_count+1) + \"; Strand 1\" + \" - Label status = \" + Integer.toString(temp_genome_d1[chromosome_count][homologous_pair_count][1]));\n /******/\n //Update the genomes of both cells\n cell_population.get(daughter_cell_one).setGenome(temp_genome_d1);\n cell_population.get(daughter_cell_two).setGenome(temp_genome_d2);\n \n // daughter_cell_one = null;\n //daughter_cell_two = null;\n //temp_genome_d1 = null;\n //temp_genome_d2 = null;\n }// if_between...\n \n }// for every homologous pair\n \n }// for each chromosome\n \n \n \n //cell_population.set(current_element, daughter_cell_one);\n //cell_population.set((cell_population.size()-1), daughter_cell_two);\n printString(\"Index of daughter cell 2 --->\" + (cell_population.size()-1));\n \n //printString(Integer.toString(current_element));\n printString(\"Daughter cell 1 --->\" + cell_population.get(current_element).toString());\n printLabelDistribOfCell(cell_population.get(current_element));\n printString(\"Daughter cell 2 --->\" + cell_population.get(cell_population.size() - 1).toString());\n printLabelDistribOfCell(cell_population.get(cell_population.size() - 1));\n }// if(between_zeroANDone >= 0.5)\n \n else //Cell doesn't divided\n {\n printString(\"Didn't divide --->\" + current_cell.toString());\n printLabelDistribOfCell(cell_population.get(current_element));\n\n }\n\n \n } // if the cell can divide\n \n //printString(Integer.toString(cell_population.get(current_element).getGeneration()));\n \n } // for all cells in the main population\n population_size = cell_population.size(); // Update the population size after the round of division\n printString(current_time + \" \" + population_size);\n }// for\n printString(\"Latest generation = \" + (newest_generation));\n printLabelDistribOfPopulation(cell_population);\n\n return cell_population;\n\t}",
"long getInhabitedTime();",
"protected abstract String scheduler_next();",
"private Date getDeadlineDate() {\n String dateString = jtf_DeadLine.getText();\n Date date = Utils.parseDateFromString(dateString);\n System.out.println(\"Date:\" + date.toString());\n return date;\n }",
"public int getRandom() {\n int index = rnd.nextInt(list.size());\n return list.get(index).val;\n }",
"public float generarTE(){\n float ts;\n float rnd=(float)Math.random();\n \n if(rnd<=0.20){ts=1;}\n else if(rnd<=0.50){ts=2;}\n else if(rnd<=0.85){ts=3;}\n else {ts=4;}\n \n return ts;\n }",
"public static Date randomDate() {\n return VALUES.get(RND.nextInt(SIZE));\n }",
"public long getRandLong()\n {\n long lowerBound = 2000;\n long upperBound = 6000;\n Random r = new Random();\n \n long randLong = lowerBound + (long)(r.nextDouble()*(upperBound - lowerBound));\n return randLong;\n }",
"public BTNode getRandomNodeBadTime() {\n\t\tint toFind = (int)(Math.random() * size + 1);\n\t\tQueue<BTNode> q = new LinkedList<BTNode>();\n\t\tq.add(tree);\n\t\tBTNode current = new BTNode(0);\n\t\tfor (int i = 1; i <= toFind; i++) {\n\t\t\tcurrent = q.poll();\n\t\t\t\n\t\t\tif (current != null) {\n\t\t\t\tq.add(current.left);\n\t\t\t\tq.add(current.right);\n\t\t\t}\n\t\t}\n\t\treturn current;\n\t}",
"@Override\n public Integer pee() {\n return (int) (random() * 8);\n }",
"public static Lieferart getRandomLieferart() {\n\t\treturn VALUES[RANDOM.nextInt(SIZE)];\n\t}",
"public static long next() {\n return System.currentTimeMillis();\n }",
"private synchronized static String getNextNumber() {\n String toReturn;\n String number = String.valueOf(Math.round(Math.random() * 89999) + 10000);\n if(meetings.containsKey(number)) {\n toReturn = getNextNumber();\n } else {\n toReturn = number;\n }\n return toReturn;\n }",
"public static int getRandomStayDuration() {\n\t\tint stayDuration = (int)(Math.random()*3+1);\n\t\treturn stayDuration;\n\t}",
"String clientWaitingTime(final int index);",
"public String randomDateGenerator() {\n\n\t\tLocalDate startDate = LocalDate.now();\n\n\t\tint year = startDate.getYear();\n\t\tint month = startDate.getMonthValue();\n\t\tint day = startDate.getDayOfMonth();\n\n\t\tLocalDate endDate = LocalDate.of(year + 1, month, day);\n\n\t\tlong randomDate = randBetween(startDate.toEpochDay(), endDate.toEpochDay());\n\t\treturn LocalDate.ofEpochDay(randomDate).toString();\n\n\t}",
"DateTime extractDeadline() {\r\n int indexOfBy = Arrays.asList(lowerParams).lastIndexOf(\"by\");\r\n if (indexOfBy < 0) {\r\n return null;\r\n } else {\r\n paramsByIndex = indexOfBy;\r\n }\r\n // get the rest of the params after \"by\"\r\n String[] candidates = Arrays.copyOfRange(lowerParams, indexOfBy + 1,\r\n lowerParams.length);\r\n DateTime parsed = DateUtil.parse(candidates);\r\n if (parsed == null) {\r\n return parsed;\r\n }\r\n\r\n // add time 23:59 to deadline if no time was specified\r\n if (parsed.getHour() == null) {\r\n return initTimeToEndOfDay(parsed);\r\n } else {\r\n return parsed;\r\n }\r\n }",
"private int getRandTrollCol(Random rand, int numCols){\n return rand.nextInt(numCols-1)+1;\n }",
"public int getBlockProposalTimer() {\r\n return blockProposalTimer;\r\n }",
"public java.lang.String getRndDuration() {\n return rndDuration;\n }",
"@Override\n\tpublic int getYWait() {\n\t\treturn 0;\n\t}",
"public double generateDropTime() {\n return LOWERLIMTIME + (Math.random() * ((UPPERLIMTIME - LOWERLIMTIME) + 1));\n\n }",
"String makeNewSleep(){\n\t\tbeginSleepTime = new SimpleDateFormat(\"HH:mm\").format(new Date());\n\t\treturn beginSleepTime;\n\t}",
"public int generarDE(){\n int ts;\n float rnd=(float)Math.random();\n \n if(rnd<=0.35){ts=1;}\n else if(rnd<=0.75){ts=2;}\n else {ts=3;}\n \n return ts;\n }",
"public long getDelay();",
"private static int getRandomNumberOfRooms(){\r\n return r.nextInt(50)+1;\r\n }",
"public int getRandom() {\n int index = (int) Math.round(Math.random()*(list.size()-1));\n return list.get(index);\n }",
"public double getRandom() {\n return 20*Math.random() - 10;\n }",
"public String getDeadline() {\n if (!this.by.equals(\"\")) {\n return this.by;\n }\n return this.todoDate.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\"));\n }",
"public int generateEvent(){\r\n\t\tif (Event()){\r\n\t\t\treturn random.nextInt(12);\r\n\t\t} else {\r\n\t\t\treturn 4;\r\n\t\t}\r\n\t}",
"public int timeToNextEnemy(){\n if(mEnemyIndex < mEnemiesToSpawn.size()){\n return mTimeToSpawnEnemy.get(mEnemyIndex);\n } else {\n return -1;\n }\n }",
"public double getNextTime(){\n\t\tif(timeoutSet.peek() == null && eventSet.peek() == null) return Double.MAX_VALUE;\n\t\telse if(eventSet.peek() != null && timeoutSet.peek() != null) return Math.min(eventSet.peek().getTime(), timeoutSet.peek().getTime());\n\t\telse if(eventSet.peek() == null && timeoutSet.peek() != null) return timeoutSet.peek().getTime();\n\t\treturn eventSet.peek().getTime();\n\t}",
"public java.util.Calendar getRequestedTime()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REQUESTEDTIME$2, 0);\n if (target == null)\n {\n return null;\n }\n return target.getCalendarValue();\n }\n }"
] | [
"0.6005475",
"0.59520274",
"0.5874114",
"0.58481467",
"0.56245637",
"0.55662626",
"0.555055",
"0.54982525",
"0.54759336",
"0.5456466",
"0.532182",
"0.5299958",
"0.52904403",
"0.5287804",
"0.52864426",
"0.5259483",
"0.52294445",
"0.5148763",
"0.5112077",
"0.5105182",
"0.50991863",
"0.5066166",
"0.50579",
"0.50561106",
"0.50349516",
"0.50209457",
"0.50055766",
"0.5002511",
"0.49947664",
"0.49718368",
"0.49697804",
"0.4949556",
"0.49281663",
"0.492386",
"0.4918531",
"0.49169132",
"0.4912986",
"0.49109182",
"0.49041128",
"0.48988438",
"0.489554",
"0.48881072",
"0.48775327",
"0.4861713",
"0.48588315",
"0.48523265",
"0.48490325",
"0.48413843",
"0.48331428",
"0.48277134",
"0.48143885",
"0.47977018",
"0.4797292",
"0.47889563",
"0.47822177",
"0.4780135",
"0.47794983",
"0.47752705",
"0.47737285",
"0.476216",
"0.47590065",
"0.47453862",
"0.47382954",
"0.47330743",
"0.47305834",
"0.47244173",
"0.47194517",
"0.46910712",
"0.46873575",
"0.46764106",
"0.4675306",
"0.46720284",
"0.46717063",
"0.46695575",
"0.46573898",
"0.46461535",
"0.464055",
"0.46397483",
"0.4638321",
"0.4637394",
"0.4629041",
"0.46267065",
"0.46265563",
"0.46257496",
"0.4623196",
"0.46136338",
"0.4610519",
"0.46098787",
"0.46080354",
"0.4599912",
"0.45990902",
"0.45959005",
"0.45914388",
"0.4589267",
"0.4583211",
"0.4583153",
"0.45796627",
"0.4575858",
"0.45752108",
"0.4574285"
] | 0.6348553 | 0 |
get probability correspond to the cell. | public double getProbability() {
return Probability;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getProbability() {\n return probability;\n }",
"public double getProbabilityP() {\n return this.mProbabilityP;\n }",
"@Override\r\n\tpublic double getProbabilityScore() {\n\t\treturn this.probability;\r\n\t}",
"public Double getProb(T element) {\n\t\treturn itemProbs_.get(element);\n\t}",
"float getSpecialProb();",
"private double getProbabilityScore(Cell c,int bitmask)\n {\n\t return Math.pow(\n\t\t\t Math.pow(m_probs1[c.getCol()-1],(1&bitmask) ) * \n\t\t\t Math.pow(m_probs2[c.getRow()-1],(2&bitmask)/2) //geo-mean\n\t\t\t , Math.min(1,3.5-bitmask));\n }",
"public TempTableProbabilityCell (Entity possibleValue , IExpressionValue probability) {\r\n\t\t\tthis.possibleValue = possibleValue;\r\n\t\t\tthis.probability = probability;\r\n\t\t}",
"@Override\n\tpublic double probability() {\n\t\treturn 0;\n\n\t}",
"public double getObservationProbability(){\r\n double ret=0;\r\n int time=o.length;\r\n int N=hmm.stateCount;\r\n for (int t=0;t<=time;++t){\r\n for (int i=0;i<N;++i){\r\n ret+=fbManipulator.alpha[t][i]*fbManipulator.beta[t][i];\r\n }\r\n }\r\n ret/=time;\r\n return ret;\r\n }",
"public ReporteProblema getProb() {\n return prob;\n }",
"private double calcProbability(int index) {\n\t\treturn (double) fitnesses[index] / sumOfFitnesses();\n\t}",
"public float getProbMut () {\r\n return mut_prob;\r\n }",
"public double getProbability() {\n\t\treturn getD_errorProbability();\n\t}",
"public float getSpecialProb() {\n return specialProb_;\n }",
"public float getSpecialProb() {\n return specialProb_;\n }",
"public double getProbRecombinacion() {\n return getDouble(params.probRecombinacion, PROP_PROB_RECOMB, 0.5);\n }",
"protected ProbabilityDistribution getDistribution()\r\n\t{\r\n\t\treturn this.distribution;\r\n\t}",
"public double getProbabilityOf(T aData) {\n\t\tdouble freq = this.getFrequencyOf(aData);\n\t\tdouble dblSize = numEntries;\n\t\treturn freq/dblSize;\n\t}",
"public float getProbCellSum() throws InvalidProbabilityRangeException {\r\n\t\t\tfloat sum = Float.NaN;\r\n\t\t\tif (this.cellList == null) {\r\n\t\t\t\treturn sum;\r\n\t\t\t}\r\n\t\t\tif (this.cellList.size() <= 0) {\r\n\t\t\t\treturn sum;\r\n\t\t\t}\r\n\t\t\tsum = 0.0f;\r\n\t\t\tfor (TempTableProbabilityCell cell : this.cellList) {\r\n\t\t\t\tsum = (float)sum + (float)cell.getProbabilityValue();\r\n\t\t\t}\r\n\t\t\treturn sum;\r\n\t\t}",
"public void calculateProbabilities(){\n\t}",
"public int fetchDisplacementValue(Problem prob)\n\t\t{\n\t\t\tdouble moveSample = rng.nextDouble();\n\t\t\tint displacement = 1;\n\t\t\tdouble totalProb = 0;\n\n\t\t\tfor (int p = 0; p <= prob.moveProbs.length; p++) {\n\t\t\t\ttotalProb += prob.moveProbs[p];\n\t\t\t\tif (moveSample <= totalProb) {\n\t\t\t\t\tdisplacement = p+1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn displacement;\n\t\t}",
"public double getProb(double value) {\n checkHasParams();\n if (value < 0) {\n return 0;\n } else {\n return (lambda * Math.exp((-lambda) * value));\n }\n }",
"public double findProb(Attribute attr) {\r\n\t\tif(!attrName.equals(attr.getName())){\r\n\t\t\treturn 0.0;\r\n\t\t}\r\n\t\tif(valInstances.size() == 0) {\r\n\t\t\t//debugPrint.print(\"There are no values for this attribute name...this should not happen, just saying\");\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tdouble occurenceCount = 0;\r\n\t\tfor(Attribute curAttr: valInstances) {\r\n\t\t\tif(curAttr.getVal().equals(attr.getVal())) {\r\n\t\t\t\toccurenceCount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (double)occurenceCount / (double) valInstances.size();\r\n\t}",
"public double outcomeProb(char[] outcome) {\r\n\t\t// get all forward probabilities\r\n\t\tdouble[][] probs = getForwards(outcome);\r\n\t\t\r\n\t\t// initialize the probability of this outcome to 0\r\n\t\tdouble outcomeProb = 0;\r\n\t\t// loop over all nodes in the last column\r\n\t\tfor (int i = 0; i < states.length; ++i)\r\n\t\t\t// add this node's probability to the overall probability\r\n\t\t\toutcomeProb += probs[i][outcome.length - 1];\r\n\t\t\r\n\t\treturn outcomeProb;\r\n\t}",
"public double getProb(String word) {\n double numWords = wordMap.get(\"TOTAL_WORDS\");\n return wordMap.getOrDefault(word, 0.0)/numWords;\n }",
"public Bounds getProbabilityBounds();",
"@Override\r\n\tpublic double getProb(double price, double[] realized) {\r\n\t\treturn getPMF(realized)[ bin(price, precision) ];\r\n\t}",
"double getTransProb();",
"public double[] getProbabilities() { return getProbabilities((int[])null); }",
"public double getProbCatch() {\n\t\treturn probCatch;\n\t}",
"public double getProbability(Object rootState) { return getProbability(rootState, (Object[])null); }",
"public float getChance() {\n return chance;\n }",
"public double getTProb(int x, int y, int h, int nX, int nY, int nH) {\n\t\treturn transMatrix.getP(x, y, h, nX, nY, nH);\n\t}",
"public float getProbCross () {\r\n return cross_prob;\r\n }",
"private double getProbOfClass(int catIndex) {\r\n\t\treturn (classInstanceCount[catIndex] + mCategoryPrior)\r\n\t\t\t\t/ (classInstanceCount[0] + classInstanceCount[1] + mCategories.length\r\n\t\t\t\t\t\t* mCategoryPrior);\r\n\t}",
"private float getHitProbability(int x, int y) {\n\t\tfloat probability = 0;\n\t\t\n\t\tfor (int i = -TOWER_RANGE; i <= TOWER_RANGE; i++) {\n\t\t\tfor (int j = -TOWER_RANGE; j <= TOWER_RANGE; j++) {\n\t\t\t\tint curX = x + i;\n\t\t\t\tint curY = y + j;\n\t\t\t\tif (currentState.inBounds(curX, curY)\n\t\t\t\t\t\t&& distance(x, y, curX, curY) <= TOWER_RANGE) { // tower shoots in a circular range\n\t\t\t\t\tprobability = (probability + board.getTowerProbability(curX, curY)) - (probability * board.getTowerProbability(curX, curY));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn probability * TOWER_ACCURACY;\n\t}",
"void CalculateProbabilities()\n\t{\n\t int i;\n\t double maxfit;\n\t maxfit=fitness[0];\n\t for (i=1;i<FoodNumber;i++)\n\t {\n\t if (fitness[i]>maxfit)\n\t maxfit=fitness[i];\n\t }\n\n\t for (i=0;i<FoodNumber;i++)\n\t {\n\t prob[i]=(0.9*(fitness[i]/maxfit))+0.1;\n\t }\n\n\t}",
"abstract double rightProbability();",
"public default double getFitness(Cell cell) {\n return getFitness(cell.getGenotype());\n }",
"private int getPoisson() {\n\t\treturn (int) (-INCOMING_MY * Math.log(Math.random()));\n\t}",
"private void figureOutProbability() {\n\t\tMysqlDAOFactory mysqlFactory = (MysqlDAOFactory) DAOFactory\n\t\t\t\t.getDAOFactory(DAOFactory.MYSQL);\n\n\t\tstaticPr = new StaticProbability(trialId);\n\t\tstatisticPr = new StatisticProbability(trialId);\n\t\tstaticProbability = staticPr.getProbability();\n\t\tstatisticProbability = statisticPr.getProbability();\n\n\t\tfor (Entry<Integer, BigDecimal> entry : staticProbability.entrySet()) {\n\t\t\ttotalProbability.put(\n\t\t\t\t\tentry.getKey(),\n\t\t\t\t\tentry.getValue().add(statisticProbability.get(entry.getKey())).setScale(2));\n\t\t}\n\n\t\tBigDecimal summaryProbability = BigDecimal.valueOf(0);\n\t\tfor (Entry<Integer, BigDecimal> entry : totalProbability.entrySet()) {\n\t\t\tsummaryProbability = summaryProbability.add(entry.getValue());\n\t\t}\n\t\t\n\t\t// figures out probability\n\t\tfor (Entry<Integer, BigDecimal> entry : totalProbability.entrySet()) {\n\t\t\tentry.setValue(entry.getValue().divide(summaryProbability, 2,\n\t\t\t\t\tBigDecimal.ROUND_HALF_UP));\n\t\t}\n\t\tlog.info(\"Total probability -> \" + totalProbability);\n\t\t\n\t\t// figures out and sets margin\n\t\tfor (Entry<Integer, BigDecimal> entry : totalProbability.entrySet()) {\n\t\t\tBigDecimal probability = entry.getValue();\n\t\t\tBigDecimal winCoefficient = (BigDecimal.valueOf(1.).divide(\n\t\t\t\t\tprobability, 2, BigDecimal.ROUND_HALF_UP))\n\t\t\t\t\t.multiply(BigDecimal.valueOf(1.).subtract(Constants.MARGIN));\n\t\t\tentry.setValue(winCoefficient.setScale(2, BigDecimal.ROUND_HALF_UP));\n\t\t}\n\t\tlog.info(\"Winning coefficient -> \" + totalProbability);\n\t\t\n\t\t// updates info in db\n\t\tTrialHorseDAO trialHorseDAO = mysqlFactory.getTrialHorseDAO();\n\t\tTrialHorseDTO trialHorseDTO = null;\n\t\tfor(Entry<Integer, BigDecimal> entry : totalProbability.entrySet()){\n\t\t\ttrialHorseDTO = trialHorseDAO.findTrialHorseByTrialIdHorseId(trialId, entry.getKey());\n\t\t\ttrialHorseDTO.setWinCoefficient(entry.getValue());\n\t\t\ttrialHorseDAO.updateTrialHorseInfo(trialHorseDTO);\n\t\t}\t\n\t}",
"public double getPerimiter(){return (2*height +2*width);}",
"private Double getProzent(Double points)\r\n \t{\r\n \t\treturn points / totalPoints;\r\n \t}",
"public double getCurrentProb(int x, int y) {\n\t\treturn hmm.getProb(x, y);\n\t}",
"protected Double successProbability(){\n\t\tnodeKValues = collectKValues();\n\t\tList<Integer[]> placements = getDistinctPlacements(getMinKPath());\n\t\tlong maxNumberOfColorings = 0;\n\t\tfor (Integer[] placement : placements){\n\t\t\tlong colorings = numberOfColorings(placement);\n\t\t\tif (colorings > maxNumberOfColorings)\n\t\t\t\tmaxNumberOfColorings = colorings;\n\t\t}\n\t\tDouble probability = 1.0/maxNumberOfColorings;\n\t\tfor (int i=1; i<=pathLength; i++){ // factorial of pathlength\n\t\t\tprobability = probability * i;\n\t\t}\n\t\treturn probability;\n\t}",
"public double[] proportionPercentage(){\n if(!this.pcaDone)this.pca();\n return this.proportionPercentage;\n }",
"public static int getObstacleProbability() {\n\t\tif(SHOW_OBSTACLES){\n\t\t\treturn RANDOM_OBSTACLE_COUNT;\n\t\t}\n\t\treturn 0;\n\t}",
"public double conditionalProb(Observation obs) {\n\n\t\tdouble condProb = 0.0;\n\n\t\t//TODO: Should this have weighting factor for time and distance?\n\t\tfor(Observation otherObs : observations) {\n\t\t\tdouble distance = Math.pow((obs.timeObserved-otherObs.timeObserved)/DisasterConstants.MAX_TIMESCALE_FOR_CLUSTERING,2);\n\t\t\tdistance += Math.pow((obs.location.x-otherObs.location.x)/(DisasterConstants.XMAX-DisasterConstants.XMIN),2);\n\t\t\tdistance += Math.pow((obs.location.y-otherObs.location.y)/(DisasterConstants.YMAX-DisasterConstants.YMIN),2);\n\t\t\tcondProb += Math.exp(-distance);\n\t\t}\n\n\t\t//Get conditional probability, making sure to normalize by the size\n\t\treturn condProb/observations.size();\n\t}",
"public int probIndex(Int2D pLoc, Int2D itemLoc){\n\t\t\n\t\tif(world.tx(itemLoc.x) < pLoc.x){\n\t\t\tif(world.ty(itemLoc.y) > pLoc.y)\n\t\t\t\treturn 0;\n\t\t\telse if(world.ty(itemLoc.y)< pLoc.y)\n\t\t\t\treturn 5;\n\t\t\telse\n\t\t\t\treturn 3;\n\t\t} // end of left location possibilities\n\t\telse if(world.tx(itemLoc.x) > pLoc.x){\n\t\t\tif(world.ty(itemLoc.y) > pLoc.y)\n\t\t\t\treturn 2;\n\t\t\telse if (world.ty(itemLoc.y) < pLoc.y)\n\t\t\t\treturn 7;\n\t\t\telse\n\t\t\t\treturn 4;\n\t\t}// end of right location possibilities\n\t\telse{\n\t\t\tif(world.ty(itemLoc.y) > pLoc.y)\n\t\t\t\treturn 1;\n\t\t\telse\n\t\t\t\treturn 6;\n\t\t}\n\t}",
"public double getChance() {\n return this.chance;\n }",
"public double prom () {\n return this.sum()/this.size();\n }",
"public double getPowerUpProbabilityBox() {\n \t\treturn 0.4;\n \t}",
"private float updateProbability(float[][] tempMap, int x, int y) {\n\t\t\n\t\ttempMap[x][y] = 1;\n\t\treturn tempMap[x][y];\n\t}",
"abstract double leftProbability();",
"public final double Probability(double val)\r\n\t{\r\n\t\tif (byKernels)\r\n\t\t{\r\n\t\t\treturn dEst.Probability(val);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn normalDist.pNorm(val, mean, sd);\r\n\t\t}\r\n\t}",
"private List<Integer> generateProb() {\n Integer[] randArr = new Integer[numCols*numRows];\n\n int start = 0;\n int end;\n for(int i = 0; i < myStateMap.size(); i++) {\n double prob = myStateMap.get(i).getProb();\n end = (int) (prob * numCols * numRows + start);\n for(int j = start; j < end; j++) {\n if(end > randArr.length) {\n break;\n }\n randArr[j] = myStateMap.get(i).getType();\n }\n start = end;\n }\n\n List<Integer> arr = new ArrayList<>(Arrays.asList(randArr));\n Collections.shuffle(arr);\n return arr;\n }",
"private double getPerc(int n) {\n\t\tdouble total = n*n;\n\t\tPercolation p = new Percolation(n);\n\t\twhile(!p.percolates()) {\n\t\t\tint row = StdRandom.uniform(n)+ 1;\n\t\t\tint col = StdRandom.uniform(n) + 1;\n\t\t\tp.open(row, col);\n\t\t}\n\t\tdouble openSites = (double)(p.numberOfOpenSites());\n\t\treturn openSites/total;\n\t}",
"@Override\r\n\tpublic Double getPropensity_pension_score() {\n\t\treturn super.getPropensity_pension_score();\r\n\t}",
"public double getProbabilityQ() {\n return this.mProbabilityQ;\n }",
"public int getCell() {\n return this.cell;\n }",
"public abstract void initiateRandomCells(double probabilityForEachCell);",
"public double getValue(Cell cell) {\n\t\treturn cell.value;\n\t}",
"double getBranchProbability();",
"public double getTotalCellularityPercentage()\r\n \t{\r\n \t\treturn totalCellularityPercentage;\r\n \t}",
"public int getP() {\r\n\t\treturn this.p;\r\n\t}",
"public ArrayList<Double> getProbability(int index) {\n ArrayList<Double> result = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n result.add(state[i][index]);\n }\n return result;\n }",
"public double tProbability(String f, String e){\n\t\tPair fe = new Pair(f,e);\n\t\t\n\t\tint V = 163303;\n\t\tif (t_table.containsKey(fe)){\n\t\t\t\n\t\t\treturn t_table.get(fe);\n\t\t}\n\t\telse{\n\t\t\tif (e.equals(\"null\"))\n\t\t\t\treturn nullEmissionProb;\n\t\t\telse\n\t\t\t\treturn 1.0/V;\n\t\t} \n\t}",
"@Override\n\tpublic double getProbability(Robot robot) {\n\t\treturn 0;\n\t}",
"public int getProbOfFailure() {\n return this.probOfFailure;\n }",
"@Override\r\n\tpublic Double getPropensity_bond_score() {\n\t\treturn super.getPropensity_bond_score();\r\n\t}",
"public double measurementProb(float[] measurement) {\r\n double prob = 1.0;\r\n for(int i=0;i<landmarks.length;i++) {\r\n float dist = (float) MathX.distance(x, y, landmarks[i].x, landmarks[i].y); \r\n prob *= MathX.Gaussian(dist, senseNoise, measurement[i]); \r\n } \r\n \r\n probability = prob;\r\n \r\n return prob;\r\n }",
"public Double getProtein() {\n return product.getProtein() * weight / 100;\n }",
"private int getScoreForPiecePosition(int row, int column) {\r\n\t\tbyte[][] positionWeight =\r\n\t\t{ {1,1,1,1,1,1,1,1}\r\n\t\t ,{2,2,2,2,2,2,2,2}\r\n\t\t ,{2,2,3,3,3,3,2,2}\r\n\t\t ,{2,2,3,4,4,3,2,2}\r\n\t\t ,{2,2,3,4,4,3,2,2}\r\n\t\t ,{2,2,3,3,3,3,2,2}\r\n\t\t ,{2,2,2,2,2,2,2,2}\r\n\t\t ,{1,1,1,1,1,1,1,1}\r\n\t\t };\r\n\t\treturn positionWeight[row][column];\r\n\t}",
"public int getElement(Pair<Integer, Integer> cell){\n\t\treturn numbers[cell.getFirst()][cell.getSecond()];\n\t}",
"protected double get_breeding_probability()\n {\n return breeding_probability;\n }",
"public void computeUtility(Tile[] tile, double[] probability, double r, double g) {\n }",
"public BigInteger getP() {return(p);}",
"public ProbabilityDistribution() {\n\t\trandom_ = new Random();\n\t\titemProbs_ = new MutableKeyMap<T, Double>();\n\t}",
"public static int getRandomTask() {\n double p = rand.nextDouble(); // required probs given in Question\n for (int i = 0; i < 6; i++) {\n if (p <= prob[i])\n return i;\n }\n return 1;\n }",
"@java.lang.Override\n public double getSamplingProbability() {\n return samplingProbability_;\n }",
"double getPValue();",
"public double getPowerUpProbabilityPillar() {\n \t\treturn 0.15;\n \t}",
"protected double clusterProbability(List<Node> cluster) {\n float p = LogMath.LOG_ZERO;\n LogMath logMath = LogMath.getInstance();\n\n for (Node node : cluster)\n p = logMath.addAsLinear(p, (float)node.getPosterior());\n\n return p;\n }",
"private double[] evaluateProbability(double[] data) {\n\t\tdouble[] prob = new double[m_NumClasses], v = new double[m_NumClasses];\n\n\t\t// Log-posterior before normalizing\n\t\tfor (int j = 0; j < m_NumClasses - 1; j++) {\n\t\t\tfor (int k = 0; k <= m_NumPredictors; k++) {\n\t\t\t\tv[j] += m_Par[k][j] * data[k];\n\t\t\t}\n\t\t}\n\t\tv[m_NumClasses - 1] = 0;\n\n\t\t// Do so to avoid scaling problems\n\t\tfor (int m = 0; m < m_NumClasses; m++) {\n\t\t\tdouble sum = 0;\n\t\t\tfor (int n = 0; n < m_NumClasses - 1; n++)\n\t\t\t\tsum += Math.exp(v[n] - v[m]);\n\t\t\tprob[m] = 1 / (sum + Math.exp(-v[m]));\n\t\t\tif (prob[m] == 0)\n\t\t\t\tprob[m] = 1.0e-20;\n\t\t}\n\n\t\treturn prob;\n\t}",
"public abstract float getProbability(String singleToken);",
"protected abstract double getCell(\r\n int row,\r\n int col);",
"@java.lang.Override\n public double getSamplingProbability() {\n return samplingProbability_;\n }",
"public double getPER() {\n\t\tint nq = q0.length;\n double sum = 0.0;\n for (int i=0; i<nq; i++) sum += q0[i];\n\t\treturn Math.min(1.0, 0.5*(1.0-(sum/(double)nq))/initPER); // 0.5 * proba erreur\t\t\n\t}",
"public static int getRandCell() {\n int num = (int) (Math.random() * 10); // Generate random numbers\n int randCell = 1;\n if (num >= MARG_FIRST && num <= MARG_LAST) { // Set boundaries\n randCell = num;\n }\n return randCell;\n }",
"protected double clusterProbability(Cluster cluster) {\n return clusterProbability(cluster.elements);\n }",
"public double outcomeGivenPathProb(char[] outcome, S[] path) {\r\n\t\t// initialize probability to 1\r\n\t\tdouble prob = 1;\r\n\t\t// loop over all emitted chars\r\n\t\tfor (int i = 0; i < outcome.length; ++i)\r\n\t\t\t// multiple probability by the emission probability of this char\r\n\t\t\tprob *= emissProb(indexOf(states, path[i]), outcome[i]);\r\n\t\t\r\n\t\treturn prob;\r\n\t}",
"protected double getHyperedgeLogProb(HyperEdge dt, HGNode parent_it) {\n return dt.getTransitionLogP(false);// TODO this is very bad in terms of computation\n }",
"public float getChance()\n {\n return 1.0f;\n }",
"public String getWinnerVotePercent(String state) {\r\n result = table.get(state);\r\n String winnerVotePercentage = result.get(2);// getting winner percentage from array list\r\n \r\n return winnerVotePercentage ;\r\n }",
"double getPerimetro();",
"public final double emissProb(int state, char emit) {\r\n\t\treturn emiss[state][HMMBuilder.indexOf(alph, emit)];\r\n\t}",
"private double estimateNumericalPropertyProb(TemporalElementStats stat, String property,\n Comparator comp, PropertyValue value) {\n // property not sampled or not considered\n if (!stat.getNumericalPropertyStatsEstimation().containsKey(property)) {\n // if property not excluded, return very small value\n // if excluded, it is irrelevant, return 0.5\n return isPropertyRelevant(property) ? 0.0001 : 0.5;\n }\n Double[] propertyStats = stat.getNumericalPropertyStatsEstimation().get(property);\n NormalDistribution dist = new NormalDistribution(propertyStats[0],\n Math.max(Math.sqrt(propertyStats[1]), VERY_LOW_PROB));\n double doubleValue = ((Number) value.getObject()).doubleValue();\n double occurenceProb = stat.getNumericalOccurrenceEstimation().get(property);\n if (comp == EQ) {\n return VERY_LOW_PROB * occurenceProb;\n } else if (comp == NEQ) {\n return (1. - VERY_LOW_PROB) * occurenceProb;\n } else if (comp == LTE) {\n return dist.cumulativeProbability(doubleValue) * occurenceProb;\n } else if (comp == LT) {\n return occurenceProb * (dist.cumulativeProbability(doubleValue) - VERY_LOW_PROB);\n } else if (comp == GTE) {\n return occurenceProb *\n (1. - dist.cumulativeProbability(doubleValue) + VERY_LOW_PROB);\n } else {\n //GT\n return occurenceProb * (1. - dist.cumulativeProbability(doubleValue));\n }\n }",
"public double probability(double x){\n\t\tdouble firstTerm = 1.0 / Math.sqrt(2 * Math.PI * variance);\n\t\tdouble secondTerm = Math.exp( -(Math.pow((x-mean),2.0)) / (2 * variance) );\n\t\treturn firstTerm * secondTerm;\n\t}",
"public void calcP() {\r\n\t\tthis.setP(sick/people.size());\r\n\t}",
"public static int getObstacleProbabilityRange() {\n\t\treturn RANDOM_OBSTACLE_PROBABILITY_RANGE;\n\t}"
] | [
"0.73926",
"0.6910299",
"0.68975943",
"0.6817778",
"0.67557824",
"0.65004766",
"0.64642656",
"0.6454474",
"0.64543027",
"0.64293253",
"0.64250576",
"0.6365658",
"0.63613874",
"0.6233788",
"0.62055874",
"0.61942184",
"0.61834186",
"0.6177861",
"0.61337763",
"0.6099874",
"0.60983723",
"0.6095513",
"0.6088113",
"0.6052494",
"0.60292405",
"0.5979307",
"0.5977027",
"0.59617895",
"0.5913102",
"0.58969045",
"0.58958197",
"0.58935946",
"0.58759874",
"0.58469373",
"0.58378303",
"0.58178556",
"0.5809775",
"0.5808587",
"0.58055013",
"0.5801065",
"0.5792898",
"0.5781675",
"0.5780555",
"0.577967",
"0.5739158",
"0.57270396",
"0.5721648",
"0.57216334",
"0.5720548",
"0.5718094",
"0.57029635",
"0.56860596",
"0.5672813",
"0.5672791",
"0.5667899",
"0.5665036",
"0.56615293",
"0.5646546",
"0.5643138",
"0.56411237",
"0.5631951",
"0.56290257",
"0.5622761",
"0.5614268",
"0.5611246",
"0.56015944",
"0.55970544",
"0.5584237",
"0.5576899",
"0.5565332",
"0.55534524",
"0.5553195",
"0.5547231",
"0.5542424",
"0.55367756",
"0.55304366",
"0.5519365",
"0.55188763",
"0.55129933",
"0.5505602",
"0.55043477",
"0.5495781",
"0.5494161",
"0.5489112",
"0.54886705",
"0.54669625",
"0.54631495",
"0.54432064",
"0.54381025",
"0.5437978",
"0.5435792",
"0.54354006",
"0.54294914",
"0.5419094",
"0.5415158",
"0.5407685",
"0.54045075",
"0.5399936",
"0.53964883",
"0.53905785"
] | 0.7118252 | 1 |
set a new fitted offer only. | public void setNewFittedOffer(Offer offer){
//System.out.println("previous offer list size= "+ this.FittedOffers.size());
this.FittedOffers.add(offer);
//System.out.println("current offer list size= "+ this.FittedOffers.size());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFittedOffers(ArrayList<Offer> fittedOffers) {\r\n\t\tFittedOffers = fittedOffers;\r\n\t}",
"@Test\n public void testSetOffer() {\n \n assertNull(o2.getOffer());\n o2.setOffer(\"testOffer2\");\n assertNotNull(o2.getOffer());\n assertEquals(\"testOffer2\", o2.getOffer());\n }",
"public void setIsSetPriceLimit (boolean IsSetPriceLimit);",
"protected void setFitness(float fit)\t{\tfitness = fit;\t\t}",
"@Override\n\tpublic void setAskingPrice(java.lang.String askingPrice) {\n\t\t_buySellProducts.setAskingPrice(askingPrice);\n\t}",
"private void offer() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void sendTradeOffer(TradeOffer offer) {\n\t\t\r\n\t}",
"@Override\n protected void acceptTrade(Territory offerer, double demand, int typeDemand, double offer, int typeOffer){\n // An example for accepting a trade proposal: I only accept offers of peasants when I have less than 3 peasants\n // I am not checking what I am giving in exchange or how much, so you should work on that\n if (typeOffer == 3 && typeDemand == 2){\n acceptTrade = true;// no matter the amounts\n }\n else acceptTrade = false;\n }",
"public void setAvailable(boolean x){\n availabile = x;\n }",
"public void setFitness(int fit)\n {\n this.fitness=fit;\n }",
"@NotNull public Builder expectsAcceptanceOf(@NotNull Offer.Builder offer) {\n putValue(\"expectsAcceptanceOf\", offer.build());\n return this;\n }",
"@NotNull public Builder expectsAcceptanceOf(@NotNull Offer offer) {\n putValue(\"expectsAcceptanceOf\", offer);\n return this;\n }",
"public void setFitness(double fit) {\n fitness = fit;\n }",
"@NotNull public Builder offers(@NotNull Offer offer) {\n putValue(\"offers\", offer);\n return this;\n }",
"public void setHightPrice(final float newHightPrice)\r\n{\r\n\tthis.hightPrice = newHightPrice;\r\n}",
"public void setPriceLimitOld (BigDecimal PriceLimitOld);",
"public void setPricePerSquareFoot(double newPricePerSquareFoot){\nif(newPricePerSquareFoot > 0){\npricePerSquareFoot = newPricePerSquareFoot;\n}\n}",
"@NotNull public Builder offers(@NotNull Offer.Builder offer) {\n putValue(\"offers\", offer.build());\n return this;\n }",
"public DataResourceBuilder _contractOffer_(ContractOffer _contractOffer_) {\n this.dataResourceImpl.getContractOffer().add(_contractOffer_);\n return this;\n }",
"public void setOffersWithQuantity(Map<String, Integer> offersWithQuantity) {\n checkExpression(offersWithQuantity != null && !offersWithQuantity.isEmpty(), \"offersWithQuantity is required\");\n this.offersWithQuantity = offersWithQuantity;\n }",
"public void setPriceLimitEntered (BigDecimal PriceLimitEntered);",
"public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }",
"public void setPotatoesPrice(double p);",
"public void setBookOffering(java.lang.String value);",
"Builder addOffers(Offer value);",
"void setFitness(double fitness) throws UnsupportedOperationException;",
"@Override\n\tpublic void setSeatFree(String seatId) {\n\t\t dgConsumerSeatMapper.modifySeatSeat(Integer.valueOf(seatId));\n\t}",
"protected void setPrice(DukatAmount price){\r\n\t\tif(canHaveAsPrice(price))\r\n\t\t\tthis.price = price;\r\n\t}",
"public void setSetpoint(double setpoint);",
"public SpecialOffer() {\n\t\tsuper(org.jooq.examples.sqlserver.adventureworks.sales.tables.SpecialOffer.SpecialOffer);\n\t}",
"public void setFitness(int newFitness) {\n fitness = newFitness;\n }",
"public Builder setIsLimited(boolean value) {\n \n isLimited_ = value;\n onChanged();\n return this;\n }",
"void setExpenses(double amount);",
"@Override\n public IOffer getOffer() {\n return offer;\n }",
"public void setIsSetPriceList (boolean IsSetPriceList);",
"public void setPrice(int newPrice){\n productRelation.setCost(newPrice);\n }",
"@Override\n public void setSetpoint(double setpoint) {\n if (getController() != null) {\n getController().setSetpoint(Utilities.clip(setpoint, Constants.Hood.MIN_ANGLE, Constants.Hood.MAX_ANGLE));\n }\n super.setSetpoint(Utilities.clip(setpoint, Constants.Hood.MIN_ANGLE, Constants.Hood.MAX_ANGLE));\n }",
"public void setUsageWeighted(boolean aUsageWeighted) {\n usageWeighted = aUsageWeighted; \n }",
"public void setEatPoints(int param) {\n // setting primitive attribute tracker to true\n localEatPointsTracker = param != java.lang.Integer.MIN_VALUE;\n\n this.localEatPoints = param;\n }",
"@Override\n public void offerTrade(IResourceBank offer, int recipientPlayerIndex) throws ModelException {\n IPlayer p = GameModelFacade.instance().getLocalPlayer();\n\n if (!p.canAfford(offer) || !GameModelFacade.instance().localPlayerIsPlaying() || !offer.containsResources()) {\n throw new ModelException(\"Preconditions for action not met.\");\n }\n\n try {\n String clientModel = m_theProxy.offerTrade(p.getIndex(), offer, recipientPlayerIndex);\n new ModelInitializer().initializeClientModel(clientModel, m_theProxy.getPlayerId());\n } catch (NetworkException e) {\n throw new ModelException(e);\n }\n }",
"public void setSlot (Slot slot)\r\n {\r\n this.slot = slot;\r\n }",
"public void setPriceLimit (BigDecimal PriceLimit);",
"public void setAvalible(boolean val) {\n this.available = val;\n }",
"public void setBestofferenabled(String bestofferenabled) {\r\n this.bestofferenabled = bestofferenabled == null ? null : bestofferenabled.trim();\r\n }",
"public ArrayList<Offer> getFittedOffers(){\r\n\t\treturn this.FittedOffers;\r\n\t}",
"public void setSelectionLimiter(Limiter limiter)\n {\n\tthis.selectionLimiter = limiter;\n }",
"@Test\n public void verifyNewOfferIsApplied() {\n \tProduct product = new Product(\"Watermelon\", 0.8);\n \tProduct product2 = new Product(\"Apple\", 0.2);\n \tProduct product3 = new Product(\"Orange\", 0.5);\n \tOffer offer = new Offer(product3, 5, product3.getPrice());\n \tConfigurations.offers.add(offer);\n \tBasket basket = new Basket();\n \tbasket.getProducts().put(product, 6);\n \tbasket.getProducts().put(product2, 4);\n \tbasket.getProducts().put(product3, 5);\n \tassertTrue(\"Have to get the price of 15 items = 5.6 ==> \", (calculator.calculatePrice(basket) - 5.6) < 0.0001);\n }",
"void setExtremeSpikeProbability(double p);",
"public void setCapacity(int newCapacity) {\n\n\t\tif (newCapacity < 1) {\n\t\t\tsendWarning(\n\t\t\t\t\t\"The capacity of a transporter should be changed to zero or \"\n\t\t\t\t\t\t\t+ \"a negative value. The capacity will remain unchanged!\",\n\t\t\t\t\t\"Transporter : \" + getName()\n\t\t\t\t\t\t\t+ \" Method: void setCapacity(int newCapacity)\",\n\t\t\t\t\t\"A capacity which is zero or negative does not make sense.\",\n\t\t\t\t\t\"Make sure to provide a valid positive capacity \"\n\t\t\t\t\t\t\t+ \"when changing this attribute.\");\n\n\t\t\treturn; // forget that rubbish\n\t\t}\n\n\t\tthis.capacity = newCapacity;\n\t}",
"@Override\n\tpublic void approveAcceptedOffer(String matriculation) {\n\t\tofferman.approveAcceptedOffer(matriculation);\n\t\t\n\t}",
"@Override\r\n\tpublic void setPrice(double p) {\n\t\tprice = p;\r\n\t}",
"public void setHourlyRate(double newPayRate){\r\n if(newPayRate>=MINIMUMWAGE)\r\n hourlyRate = newPayRate;\r\n else\r\n throw new IllegalArgumentException(\"The hourly rate must be greater than or equal to\"+MINIMUMWAGE);\r\n }",
"public void setHarvested(boolean harvested);",
"public void addOfferToOfferBook(Offer offer) {\n\n HashMap<Long, OfferBook> currentOfferBooks = getOfferBooks();\n OfferBook offerBook = getOfferBook(offer, currentOfferBooks);\n offerBook.addOfferHelper(new Offer(\n offer.getId(),\n offer.getOrganisationalUnit(),\n offer.getAsset(),\n offer.getQuantity(),\n offer.getType(),\n offer.getPrice(),\n offer.getTimestamp()\n ));\n\n setOfferBooks(currentOfferBooks);\n\n }",
"public synchronized void setOption(OptionSet optSet_Temp,String name,float price){\n optSet_Temp.Increase_Option_Manager(name.toUpperCase(Locale.getDefault()), price);\n }",
"public void setAvailable(boolean a)\n {\n this.available = a;\n }",
"public abstract void updateOfferComponents();",
"public final void setAvailable(boolean available) {\r\n\tremove();\r\n\tthis.available = available;\r\n\tapply();\r\n }",
"public Offer addSellOffer(OfferRequest offerRequest) {\n if (isValidOffer(offerRequest)) {\n\n if (isValidUser(offerRequest)) {\n\n Asset offerAsset = assetService.getAssetByName(offerRequest.getAsset());\n OrganisationalUnit offerOrganisationalUnit = organisationalUnitService\n .getOrganisationalUnitByName(offerRequest.getOrganisationalUnit());\n\n double offerAssetQuantity = offerRequest.getQuantity();\n\n OrganisationalUnitAsset offerOrganisationalUnitAsset = organisationalUnitAssetService\n .getOrganisationalUnitAsset(offerOrganisationalUnit, offerAsset);\n\n if (hasSufficientAssets(offerOrganisationalUnitAsset, offerAssetQuantity)) {\n\n return saveOffer(offerRequest, offerOrganisationalUnit, offerAsset, OfferType.SELL);\n }\n throw new BadRequestException(String.format(\"Not enough %s to complete the offer request\",\n offerRequest.getAsset()));\n\n }\n throw new NotFoundException(\"Organisational Unit or Asset Type does not exist\");\n } else {\n throw new BadRequestException(\"Invalid SELL Offer\");\n }\n\n }",
"public void newSupplierMode() {\n\n\t\tsupplierList.setEnabled(false);\n\t\taddressTF.setBackground(SystemColor.white);\n\n\t\tnameTF.setEditable(true);\n\t\tidTF.setEditable(false);\n\t\teMailTF.setEditable(true);\n\t\tnameTF.setEditable(true);\n\t\taddressTF.setEditable(true);\n\t\ttelTF.setEditable(true);\n\n\t\teditItemButton.setEnabled(false);\n\t\tremoveItemButton.setEnabled(false);\n\t\tsaveItemButton.setVisible(true);\n\t\tcancelBtn.setVisible(true);\n\n\t\tclearTextFields();\n\t}",
"public void setRate(double newRate) {\n this.rate = newRate;\n }",
"@Override\n public void setCost( double cost ) {\n throw new UnsupportedOperationException( \"Not supported yet.\" );\n }",
"public Offer() {\n }",
"public Offer() {\n }",
"public boolean relaxedOffer(E e)\r\n/* 241: */ {\r\n/* 242:498 */ return offer(e);\r\n/* 243: */ }",
"@Override\r\n\tpublic void setCost(double newCost) {\n\r\n\t}",
"@Override\n public void setEquippedItem(IEquipableItem item) {}",
"Offer getOffer();",
"public void besetze(int spalte, int spieler)\n\t{\n\t\tswitch (spalte)\n\t\t{\n\t\tcase 0:\n\t\t\t_spalte0 = spieler;\n\t\t\tbreak;\n\n\t\tcase 1:\n\t\t\t_spalte1 = spieler;\n\t\t\tbreak;\n\n\t\tcase 2:\n\t\t\t_spalte2 = spieler;\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(String.valueOf(spalte));\n\t\t}\n\t}",
"public void setInterestRate(double newInterestRate)\n {\n if (!(newInterestRate >= 0.0))\n {\n System.err.println(\"Interest rate must be positive.\");\n }\n else\n {\n this.interestRate = newInterestRate;\n }\n }",
"public void setSetpointValue(float targetSetPointValue) {\r\n\t\t//setpoint clamp\r\n\t\ttargetSetPointValue = MathHelper.clamp(targetSetPointValue, restrictSetpointFrom, restrictSetpointTo);\r\n\r\n\t\tthis.setpointValue = targetSetPointValue;\r\n\t}",
"public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }",
"public void setUsePoint(Money usePoint) {\n\t\tif (usePoint == null) {\n\t\t\tthis.usePoint = new Money(0, 0);\n\t\t} else {\n\t\t\tthis.usePoint = usePoint;\n\t\t}\n\t}",
"public abstract boolean canFit(ParkingSpot spot);",
"public void setCheese(Cheese newHold) {\n this.hold = newHold;\n }",
"public final void setBestFit() {\r\n setZoom(ZOOM_BEST_FIT);\r\n }",
"public boolean isSetPriceLimit();",
"public void setPrice(double p){\n\t\t// store into the instance variable price the value of the parameter p\n\t\tprice = p;\n\t}",
"@GetMapping(\"/updateOfferby/{offerId}\")\n\t public Offer updateAvailable(@PathVariable int offerId)\n\t {\n\t \tOffer res = employeeService.updateIsAvailable(offerId);\n\t \tif(res.getOfferId()==0)\n\t \t{\n\t \t\tthrow new InvalidOfferException(\"No update available for offerId \"+offerId);\n\t \t}\n\t \telse\n\t \t{\n\t \t\treturn res;\n\t \t}\n\t }",
"public void setBestSeller (String bS)\n {\n bestSeller = bS;\n }",
"public void setPrice(double price){this.price=price;}",
"public EventMapper setCapacity(final Pallet pallet, final double weight) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putCapacity(pallet, weight);\n\t\treturn this;\n\t}",
"public void setPwrreserve( java.lang.Boolean newValue ) {\n __setCache(\"pwrreserve\", newValue);\n }",
"public void establishDealOffer() {\n DealOffer offer = new DealOffer();\n \n int moneyToOffer = (Integer)this.playersMoneyMap.get(currentPlayer).getValue();\n offer.offerCash(moneyToOffer);\n \n Map<JCheckBox, Space> thisPlayerMap = playersCheckBoxes.get(currentPlayer);\n if (thisPlayerMap != null) {\n for (JCheckBox checkBox : thisPlayerMap.keySet()) {\n if (checkBox.isSelected()) {\n offer.addPropertyToOffer(thisPlayerMap.get(checkBox));\n }\n }\n }\n \n int moneyToRequest = (Integer)this.playersMoneyMap.get(playerToOfferTo).getValue();\n offer.requestCash(moneyToRequest);\n \n Map<JCheckBox, Space> otherPlayerMap = playersCheckBoxes.get(playerToOfferTo);\n if (otherPlayerMap != null) {\n for (JCheckBox checkBox : otherPlayerMap.keySet()) {\n if (checkBox.isSelected()) {\n offer.addPropertyToRequest(otherPlayerMap.get(checkBox));\n }\n }\n }\n this.dealOffer = offer;\n \n }",
"public void setExplosive(boolean value) {\r\n this.explosive = value;\r\n }",
"public void setPrice(double p)\r\n\t{\r\n\t\tprice = p;\r\n\t}",
"Builder addOffers(Offer.Builder value);",
"public boolean setWorth(int newWorth)\n {\n boolean valid = false;\n if (newWorth > 0)\n {\n worth = newWorth;\n valid = true;\n }\n return valid;\n }",
"public DataResourceBuilder _contractOffer_(List<ContractOffer> _contractOffer_) {\n this.dataResourceImpl.setContractOffer(_contractOffer_);\n return this;\n }",
"public void setMaxWeight(String newValue);",
"@Override\n\tpublic void setPrice(int price) {\n\t\t\n\t}",
"void setNilSingleBetMinimum();",
"public void setPrice(Double price);",
"public void mo23023f() {\n this.f26122b.edit().putLong(\"has.ask.rate.at\", -1).apply();\n }",
"public interface Offer {\n\n /**\n * Apply this offer to the given DiscountingContext\n * either the same context if we have not applied the offer\n * or a new context which reflects any new discounts applied\n * and required items used up\n * @param context\n * @return\n */\n DiscountingContext apply(DiscountingContext context);\n\n /**\n * Is this offer valid for the given date\n * @param date\n * @return true if it is valid false otherwise\n */\n boolean isValidForDate(LocalDate date);\n\n /**\n * Is this offer potentially valid for the given collection of items\n *\n * This is an opportunity to count ourselves out of the running\n * if the basket is missing a key component of the offer\n *\n * @param items\n * @return true if the offer is valid for the given set of items\n */\n boolean isValidForBasket(Collection<Item> items);\n\n}",
"public void setSummable(Boolean summable);",
"protected boolean setBathWaterVolumeSetting(byte[] edt) {return false;}",
"public void setFitness(int f){\n this.fitness = f;\n }",
"public void setSetpoint(float setpoint) {\r\n m_setpoint = setpoint;\r\n }",
"public void setFlying(boolean flying) {\n\t\tL.trace(\"setFlying({})\", flying);\n\t\tdataManager.set(DATA_FLYING, flying);\n\t}"
] | [
"0.6517383",
"0.6047231",
"0.5920452",
"0.5806221",
"0.5710463",
"0.5709329",
"0.5634527",
"0.5475342",
"0.54612005",
"0.54351884",
"0.5426629",
"0.5423695",
"0.5422193",
"0.53119195",
"0.529253",
"0.52785146",
"0.5270229",
"0.52666986",
"0.52578074",
"0.5240179",
"0.523524",
"0.5228207",
"0.52216375",
"0.5188364",
"0.5183715",
"0.51690847",
"0.51468605",
"0.51463753",
"0.51458734",
"0.5145813",
"0.5136972",
"0.51144",
"0.5108443",
"0.51064616",
"0.5100273",
"0.50990665",
"0.50925356",
"0.5087904",
"0.507402",
"0.5071159",
"0.50696856",
"0.50632536",
"0.50592184",
"0.50576997",
"0.5038257",
"0.50321853",
"0.5032159",
"0.50271094",
"0.5021865",
"0.50052464",
"0.5001494",
"0.50006497",
"0.4993651",
"0.49802753",
"0.49627447",
"0.49617335",
"0.49551752",
"0.49548668",
"0.4950556",
"0.4936052",
"0.49299872",
"0.49247226",
"0.49243695",
"0.49243695",
"0.49193013",
"0.49162003",
"0.49160182",
"0.4911487",
"0.49077538",
"0.49032447",
"0.49010068",
"0.48932782",
"0.48808715",
"0.4877125",
"0.48738575",
"0.487203",
"0.48665687",
"0.4866494",
"0.48664433",
"0.48664427",
"0.4864681",
"0.48595834",
"0.48590428",
"0.48544008",
"0.48531115",
"0.48531038",
"0.48510414",
"0.48502564",
"0.48490483",
"0.48411506",
"0.4839301",
"0.483914",
"0.4838351",
"0.4835969",
"0.4835606",
"0.48221844",
"0.4819557",
"0.4818572",
"0.48159042",
"0.48151457"
] | 0.7790916 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.