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
This Case is directed Graph If is undirected just add Double edge
Edge(Node from,Node to, int length){ this.source=from; this.destination=to; this.weight=length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addDirectedEdge(final Node first, final Node second)\n {\n if ( first == second )\n {\n return;\n }\n else if (first.connectedNodes.contains(second))\n return;\n else\n first.connectedNodes.add(second);\n }", "public void addUndirectedEdge(int v1, int v2, Object edgeInfo) {\n//your code here\n Edge edge1 = new Edge(v1, v2, edgeInfo);\n Edge edge2 = new Edge(v2, v1, edgeInfo);\n if(!adjLists[v1].contains(edge1)){\n adjLists[v1].addLast(edge1);\n }\n if(!adjLists[v2].contains(edge2)){\n adjLists[v2].addLast(edge2);\n }\n }", "void addEdge(int source, int destination, int weight);", "void addEdge(Vertex v1, Vertex v2, Double w) throws VertexNotInGraphException;", "private void addUndirectedEdge(int i, int j) {\n\t\tNode first = nodeList.get(i-1);\r\n\t\tNode second = nodeList.get(j-1);\r\n//\t\tSystem.out.println(first.name);\r\n//\t\tSystem.out.println(second.name);\r\n\t\tfirst.getNeighbors().add(second);//Neighbour of first is second. Store it.\r\n\t\tsecond.getNeighbors().add(first);\r\n\t}", "public void addEdge(int start, int end, double weight);", "public void addEdge(int i, int j, double d) {\r\n\t\tWeightedNode first = nodeList.get(i-1);\r\n\t\tWeightedNode second = nodeList.get(j-1);\r\n\t\tfirst.neighbor.add(second);\r\n\t\tsecond.neighbor.add(first);\r\n\t\tfirst.weightMap.put(second,d);\r\n\t\tsecond.weightMap.put(first, d);\r\n\t}", "@DisplayName(\"Add undirected edge\")\n @Test\n public void testAddEdgeUndirected() {\n graph.addEdge(new Edge(3, 4));\n List<Integer> l0 = new ArrayList<>();\n l0.add(0);\n List<Integer> l1 = new ArrayList<>();\n l1.add(4);\n Assertions.assertEquals(l0.get(0), graph.getNeighbours(4).get(0));\n Assertions.assertEquals(l1.get(0), graph.getNeighbours(0).get(0));\n }", "@DisplayName(\"Add directed edge\")\n @Test\n public void testAddEdgeDirected() {\n graph.addEdge(new Edge(3, 4));\n List<Integer> l = new ArrayList<>();\n l.add(2);\n l.add(4);\n Assertions.assertArrayEquals(l.toArray(), graph.getNeighbours(3).toArray());\n }", "public abstract boolean addEdge(Node node1, Node node2, int weight);", "public void addUndirectedEdge(int vertexOne, int vertexTwo) {\n\t\tGraphNode first = nodeList.get(vertexOne - 1);\n\t\tGraphNode second = nodeList.get(vertexTwo - 1);\n\t\tfirst.getNeighbors().add(second);//Neighbour of first is second. Store it.\n\t\tsecond.getNeighbors().add(first);//Neighbour of second is first. Store it.\n\t\tSystem.out.println(first.getNeighbors());\n\t\tSystem.out.println(second.getNeighbors());\n\t}", "@Override\r\n\tpublic void link(E src, E dst, int weight) {\r\n\t\tinsertVertex(src); //Inserts src if not currently in the graph\r\n\t\tinsertVertex(dst); //Inserts dst if not currently in the graph\r\n\t\tEdge<E> newedge1 = new Edge<>(src, dst, weight);\r\n\r\n\t\tArrayList<Edge<E>> sEdges = adjacencyLists.get(src);\r\n\t\tsEdges.remove(newedge1); //if the edge already exists remove it\r\n\t\tsEdges.add(newedge1);\r\n\t\tif(!isDirected) { //Add the additional edge if this graph is undirected\r\n\t\t\tEdge<E> newedge2 = new Edge<>(dst, src, weight);\r\n\r\n\t\t\tArrayList<Edge<E>> dEdges = adjacencyLists.get(dst);\r\n\t\t\tdEdges.remove(newedge2); //if the edge already exists remove it\r\n\t\t\tdEdges.add(newedge2); \r\n\t\t}\r\n\t}", "public void addEdge(DirectedEdge e) \n {\n int v = e.from();\n adj[v].add(e);\n E++;\n }", "private Edge addEdge(Node source, Node dest, double weight)\r\n\t{\r\n\t final Edge newEdge = new Edge(edgeType, source, dest, weight);\r\n\t if (!eSet.add(newEdge))\r\n\t\tthrow new RuntimeException(\"Edge already exists!\");\r\n\t source.addEdge(newEdge);\n\t return newEdge;\r\n\t}", "public void addEdge(){\n Node[] newAdjacent = new Node[adjacent.length + 1];\n for (int i = 0; i < adjacent.length; i++) {\n newAdjacent[i] = adjacent[i];\n }\n adjacent = newAdjacent;\n }", "public void addUndirectedEdge(int v1, int v2) {\r\n addUndirectedEdge(v1, v2, null);\r\n }", "public void addUndirectedEdge(int v1, int v2) {\n addUndirectedEdge(v1, v2, null);\n }", "public void addUndirectedEdge(int v1, int v2) {\n addUndirectedEdge(v1, v2, null);\n }", "@Override\n public void addEdge(V source, V destination, double weight)\n {\n super.addEdge(source, destination, weight);\n super.addEdge(destination, source, weight);\n }", "void addEdge(int x, int y);", "private static void addAllEdgeInstances (Graph graph, boolean isDirected){\n Collection<Node> noteSet = graph.getNodeSet();\n\n for (Iterator<Node> iterator = noteSet.iterator(); iterator.hasNext();) {\n Node startNode = (Node) iterator.next();\n\n for (Iterator<Node> iterator2 = noteSet.iterator(); iterator2.hasNext();) {\n Node endNode = (Node) iterator2.next();\n\n if (!(startNode == endNode)){\n graph.addEdge(startNode.toString().concat(endNode.toString()), startNode, endNode, isDirected);\n }\n\n }\n }\n }", "public void addEdge(Edge edge){\n \n synchronized(vertexes){\n Long start = edge.getStart();\n Vertex sVertex = vertexes.get(start);\n if(sVertex != null){\n sVertex.addEdge(edge, true);\n }\n// if undirected graph then adds edge to the finish vertex too \n if(!edge.isDirected()){\n Long finish = edge.getFinish();\n Vertex fVertex = vertexes.get(finish);\n if(fVertex != null){\n fVertex.addEdge(edge, false);\n }\n }\n }\n \n }", "boolean addEdge(V v, V w, double weight);", "public void addEdge( String sourceName, String destName , Double distance)\n {\n Vertex v = getVertex( sourceName );\n Vertex w = getVertex( destName );\n v.adjEdge.put(w.name, new Edge(w,distance) );\n \n // v.weightnext.put(w.name,(Double) distance);\n }", "public void addEdge(Graph graph, int source, int destination, double weight){\r\n\r\n Node node = new Node(destination, weight);\r\n LinkedList<Node> list = null;\r\n\r\n //Add an adjacent Node for source\r\n list = adjacencyList.get((double)source);\r\n if (list == null){\r\n list = new LinkedList<Node>();\r\n }\r\n\r\n list.addFirst(node);\r\n adjacencyList.put((double)source, list);\r\n\r\n //Add adjacent node again since graph is undirected\r\n node = new Node(source, weight);\r\n\r\n list = null;\r\n\r\n list = adjacencyList.get((double)destination);\r\n\r\n if (list == null){\r\n list = new LinkedList<Node>();\r\n }\r\n\r\n list.addFirst(node);\r\n adjacencyList.put((double)destination, list);\r\n }", "public Enumeration directedEdges();", "public void addEdge(Node source, Node destination, int weight) {\n nodes.add(source);\n nodes.add(destination);\n checkEdgeExistance(source, destination, weight);\n\n if (!directed && source != destination) {\n checkEdgeExistance(destination, source, weight);\n }\n }", "public void addEdge(edge_type edge) {\n //first make sure the from and to nodes exist within the graph\n assert (edge.getFrom() < nextNodeIndex) && (edge.getTo() < nextNodeIndex) :\n \"<SparseGraph::AddEdge>: invalid node index\";\n\n //make sure both nodes are active before adding the edge\n if ((nodeVector.get(edge.getTo()).getIndex() != invalid_node_index)\n && (nodeVector.get(edge.getFrom()).getIndex() != invalid_node_index)) {\n //add the edge, first making sure it is unique\n if (isEdgeNew(edge.getFrom(), edge.getTo())) {\n edgeListVector.get(edge.getFrom()).add(edge);\n }\n\n //if the graph is undirected we must add another connection in the opposite\n //direction\n if (!isDirectedGraph) {\n //check to make sure the edge is unique before adding\n if (isEdgeNew(edge.getTo(), edge.getFrom())) {\n GraphEdge reversedEdge = new GraphEdge(edge.getTo(),edge.getFrom(),edge.getCost());\n edgeListVector.get(edge.getTo()).add(reversedEdge);\n }\n }\n }\n }", "public void addEdge(int i, int j, int weight) {\r\n adjacencyMatrix[i][j] = weight;\r\n if (!isDirected) {\r\n adjacencyMatrix[j][i] = weight;\r\n }\r\n }", "public void edgeMake(int vertex1, int vertex2) {\n addVertex(vertex1); // both vertices added to the set\n addVertex(vertex2);\n adjacencyMap.get(vertex1).add(vertex2); // both vertices receive the edge\n adjacencyMap.get(vertex2).add(vertex1);\n }", "public void addEdge(int source, int destination) {\n adjacencyList.get(source).add(destination);\n adjMat[source][destination] = 1;\n //if graph is undirected graph, add u to v's adjacency list\n if (!isDirected) {\n adjacencyList.get(destination).add(source);\n adjMat[destination][source] = 1;\n }\n }", "public void addEdge(DirectedEdge edge){\r\n\t\tmEdgeList.offer(edge);\r\n\t\t\r\n\t\tint src=edge.from();\r\n\t\tint dest = edge.to();\r\n\t\t\r\n\t\tmVisitStatus.put(src,false);\r\n\t\tmVisitStatus.put(dest,false);\r\n\t\t\r\n\t\tmVertexList.add(src);\r\n\t\tmVertexList.add(dest);\r\n\t\t\r\n\t\t/* Forward Edge */\r\n\t\tList<DirectedEdge> edgeList = adjList.get(src);\r\n\t\tif(edgeList==null)\r\n\t\t\tedgeList = new ArrayList<DirectedEdge>();\r\n\t\t\r\n\t\tedgeList.add(edge);\r\n\t\tadjList.put(src, edgeList);\r\n\t}", "public void addEdge( EdgeIntf edge ) throws Exception {\r\n DirectedEdge dEdge = ( DirectedEdge ) edge;\r\n Vertex fromVertex = dEdge.getSource();\r\n Vertex toVertex = dEdge.getSink();\r\n\r\n if( !isPath( toVertex, fromVertex ))\r\n super.addEdge( dEdge );\r\n else\r\n throw new CycleException();\r\n }", "public void addUndirectedEdge(int v1, int v2, Object edgeInfo) {\r\n \tmyAdjLists[v1].add(new Edge(v1, v2, edgeInfo));\r\n \tmyAdjLists[v2].add(new Edge(v2, v1, edgeInfo));\r\n }", "void addEdge(Edge e) {\n\t\t\tif(!_edges.containsKey(e.makeKey())) {\n\t\t\t\t_edges.put(e.makeKey(),e);\n\t\t\t\te._one.addNeighborEdge(e);\n\t\t\t\te._two.addNeighborEdge(e);\n\t\t\t}\n\t\t}", "public boolean addEdge(T begin, T end, int weight);", "public void addEdge(int i, int j)\n {\n adjList[i].add(j);\n adjList[j].add(i);\n numEdges++;\n }", "void addEdge(Edge e) {\n if (e.getTail().equals(this)) {\n outEdges.put(e.getHead(), e);\n\n return;\n } else if (e.getHead().equals(this)) {\n indegree++;\n inEdges.put(e.getTail(), e);\n\n return;\n }\n\n throw new RuntimeException(\"Cannot add edge that is unrelated to current node.\");\n }", "public void addEdge(int v1, int v2, Object edgeInfo) {\n//your code here\n Edge edge = new Edge(v1, v2, edgeInfo);\n if(adjLists[v1].contains(edge)){\n return;\n }\n adjLists[v1].addLast(edge);\n }", "public abstract void addEdge(Point p, Direction dir);", "public static void MakeDirectedNoCycle(graphUndir G) {\r\n\r\n\t\tfor (int i = 0; i < G.Adj.size(); i++) {\r\n\t\t\tG.Adj.elementAt(i).color = \"grey\";\r\n\t\t\tSystem.out.println(G.Adj.elementAt(i).name + \" is \"\r\n\t\t\t\t\t+ G.Adj.elementAt(i).color);\r\n\t\t\tfor (int j = 0; j < G.Adj.elementAt(i).next.size(); j++) {\r\n\t\t\t\tif (G.Adj.elementAt(i).next.elementAt(j).color == \"white\") {\r\n\t\t\t\t\tG.Adj.elementAt(i).next.elementAt(j).color = \"grey\";\r\n\t\t\t\t\tSystem.out\r\n\t\t\t\t\t\t\t.println(G.Adj.elementAt(i).next.elementAt(j).name\r\n\t\t\t\t\t\t\t\t\t+ \" is \"\r\n\t\t\t\t\t\t\t\t\t+ G.Adj.elementAt(i).next.elementAt(j).color);\r\n\t\t\t\t} else if (G.Adj.elementAt(i).next.elementAt(j).color == \"black\") {\r\n\t\t\t\t\tSystem.out\r\n\t\t\t\t\t\t\t.println(G.Adj.elementAt(i).next.elementAt(j).name\r\n\t\t\t\t\t\t\t\t\t+ \" is rempved from \"\r\n\t\t\t\t\t\t\t\t\t+ G.Adj.elementAt(i).name);\r\n\t\t\t\t\tG.Adj.elementAt(i).next.remove(j);\r\n\t\t\t\t\tj--;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tG.Adj.elementAt(i).color = \"black\";\r\n\t\t\tSystem.out.println(G.Adj.elementAt(i).name + \" is \"\r\n\t\t\t\t\t+ G.Adj.elementAt(i).color);\r\n\r\n\t\t}\r\n\r\n\t}", "TripleGraph createTripleGraph();", "public void addUndirectedEdge(int v1, int v2, Object edgeInfo) {\n //your code here\n \taddEdge(v1, v2, edgeInfo);\n \taddEdge(v2, v1, edgeInfo);\n \t\n }", "void add(Edge edge);", "public void crossEdge(Edge e) {}", "void addEdge(String origin, String destination, double weight){\n\t\tadjlist.get(origin).addEdge(adjlist.get(destination), weight);\n\t\tedges++;\n\t}", "protected void addEdge(CyEdge edge, LayoutNode v1, LayoutNode v2) {\n\tLayoutEdge newEdge = new LayoutEdge(edge, v1, v2);\n\tupdateWeights(newEdge);\n\tedgeList.add(newEdge);\n }", "private final void addEdge(int v1, int v2, float weight) {\n if (nEdges >= edgeWeights.length) {\n edgeWeights = Arrays.copyOf(edgeWeights, edgeWeights.length*2);\n }\n int edgeIndex = nEdges;\n\n // add edge to v1\n int v1Index;\n {\n v1Index = nOutgoingEdgess[v1];\n if (v1Index >= outgoingEdgess[v1].length) {\n int newLength = outgoingEdgess[v1].length*2;\n outgoingEdgess[v1] = Arrays.copyOf(outgoingEdgess[v1], newLength);\n outgoingEdgeIndexess[v1] = Arrays.copyOf(outgoingEdgeIndexess[v1], newLength);\n outgoingEdgeIsMarkeds[v1] = Arrays.copyOf(outgoingEdgeIsMarkeds[v1], newLength);\n outgoingEdgeOppositeIndexess[v1] = Arrays.copyOf(outgoingEdgeOppositeIndexess[v1], newLength);\n }\n outgoingEdgess[v1][v1Index] = v2;\n outgoingEdgeIndexess[v1][v1Index] = edgeIndex;\n nOutgoingEdgess[v1]++;\n }\n\n // add edge to v2\n int v2Index;\n {\n v2Index = nOutgoingEdgess[v2];\n if (v2Index >= outgoingEdgess[v2].length) {\n int newLength = outgoingEdgess[v2].length*2;\n outgoingEdgess[v2] = Arrays.copyOf(outgoingEdgess[v2], newLength);\n outgoingEdgeIndexess[v2] = Arrays.copyOf(outgoingEdgeIndexess[v2], newLength);\n outgoingEdgeIsMarkeds[v2] = Arrays.copyOf(outgoingEdgeIsMarkeds[v2], newLength);\n outgoingEdgeOppositeIndexess[v2] = Arrays.copyOf(outgoingEdgeOppositeIndexess[v2], newLength);\n }\n outgoingEdgess[v2][v2Index] = v1;\n outgoingEdgeIndexess[v2][v2Index] = edgeIndex;\n nOutgoingEdgess[v2]++;\n }\n\n outgoingEdgeOppositeIndexess[v1][v1Index] = v2Index;\n outgoingEdgeOppositeIndexess[v2][v2Index] = v1Index;\n \n edgeWeights[nEdges] = weight;\n ++nEdges;\n }", "public Edge<V> addEdge(V source, V target);", "void removeDirectedEdge(final Node first, final Node second)\n {\n if (first.connectedNodes.contains(second))\n first.connectedNodes.remove(second);\n\n }", "public void testAddEdge() {\n System.out.println(\"addEdge\");\n\n Graph<Integer, Edge<Integer>> graph = newGraph();\n\n for (int i = 0; i < 25; i++) {\n graph.addVertex(new Integer(i));\n }\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n Assert\n .assertTrue(graph.addEdge(new UnweightedEdge(new Integer(i), new Integer(j))));\n }\n }\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n Assert\n .assertFalse(graph.addEdge(new UnweightedEdge(new Integer(i), new Integer(j))));\n }\n }\n }", "@Test\r\n void test_insert_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) {\r\n fail();\r\n }\r\n\r\n }", "@DisplayName(\"Delete directed edges\")\n @Test\n public void testDeleteEdgeDirected() {\n boolean directed1 = true;\n graph = new Graph(edges, directed1, 0, 5, GraphType.RANDOM);\n graph.deleteEdge(new Edge(0, 1));\n Assertions.assertTrue(graph.getNeighbours(0).isEmpty());\n }", "Edge createEdge(Vertex src, Vertex tgt, boolean directed);", "public void addEdge(Edge e)\r\n\t{\n\t\tint v = e.either(), w = e.other(v);\r\n\t\tadj[v].add(e);\r\n\t\tadj[w].add(e);\r\n\t}", "public void addEdge(Edge e) {\n int v = e.either();\n int w = e.other(v);\n adj[v].add(e);\n adj[w].add(e);\n E++;\n }", "@Test\n\tpublic void addEdgeTest() {\n\t\tList<Vertex> vertices = new ArrayList<>();\n\t\tvertices.add(C);\n\t\tvertices.add(D);\n\t\tedge_0.addVertices(vertices);\n\t\tassertTrue(graph.addEdge(edge_0));\n\t\tassertFalse(graph.addEdge(edge_0));\n\t}", "boolean addEdge(V v, V w);", "public void addEdge(FlowEdge e){\n int v = e.getFrom();\n int w = e.getTo();\n adj[v].add(e); //add forward edge\n adj[w].add(e); //add backward edge\n }", "void addNeighborEdge(Edge e) {\n\t\t\t_neighborEdges.put(e,false);\n\t\t}", "public void addEdge(int start, int end);", "public void addEdge(K u, K v, int weight)\n {\n if (u.equals(v))\n {\n throw new IllegalArgumentException(\"adding self loop\");\n }\n\n\t// get u's adjacency list\n Map<K, Edge> adj = adjMaps.get(u);\n\n\t// check for edge already being there\n if (!adj.containsKey(v))\n {\n\t\t// edge is not already there -- add to both adjacency lists\n Edge e = new Edge(weight);\n adj.put(v, e);\n adjMaps.get(v).put(u, e);\n }\n }", "public void makeEdgeDown( String sourceName, String destName)\n {\n \tVertex v = vertexMap.get( sourceName );\n Vertex w = vertexMap.get( destName );\n if(v!=null && w!=null)\n \tv.adjEdge.get(w.name).isDown =true;\n else if(v==null){\n \tSystem.out.println(\"Invalid Source vertex\");\n }\n else if(w==null){\n \tSystem.out.println(\"Invalid dest vertex\");\n }\n // v.weightnext.put(w.name,(Double) distance);\n }", "void addEdge(int x,int y) {\n adj[x].add(y);\n }", "public void addEdge (E vertex1, E vertex2, int edgeWeight) throws IllegalArgumentException\n {\n if(vertex1 == vertex2)\n return;\n \n int index1 = this.indexOf (vertex1);\n if (index1 < 0)\n throw new IllegalArgumentException (vertex1 + \" was not found!\");\n \n int index2 = this.indexOf (vertex2);\n if (index2 < 0)\n throw new IllegalArgumentException (vertex2 + \" was not found!\");\n\n\n if (this.hasEdge (vertex1, vertex2))\n {\n this.removeNode (index1, index2);\n this.removeNode (index2, index1);\n }\n \n Node node = new Node(index2, edgeWeight);\n this.addNode(node, index1);\n node = new Node(index1, edgeWeight);\n this.addNode(node, index2);\n }", "public Enumeration undirectedEdges();", "@Test\r\n public void edgesTest(){\r\n DirectedGraph test= new DirectedGraph();\r\n //create new shops \r\n Shop one=new Shop(1,new Location(10,10));\r\n Shop two =new Shop(2,new Location(20,20));\r\n Shop three=new Shop(3,new Location(30,30));\r\n Shop four=new Shop(4,new Location(40,40));\r\n\r\n //add them as nodes\r\n assertEquals(test.addNode(one),true);\r\n assertEquals(test.addNode(two),true);\r\n assertEquals(test.addNode(three),true);\r\n assertEquals(test.addNode(four),true);\r\n //create edges \r\n test.createEdges();\r\n\r\n //make sure everyone is connected properly \r\n assertEquals(test.getEdgeWeight(one,two),20);\r\n assertEquals(test.getEdgeWeight(one,three),40);\r\n assertEquals(test.getEdgeWeight(one,four),60);\r\n assertEquals(test.getEdgeWeight(two,one),20);\r\n assertEquals(test.getEdgeWeight(two,three),20);\r\n assertEquals(test.getEdgeWeight(two,four),40);\r\n assertEquals(test.getEdgeWeight(three,one),40);\r\n assertEquals(test.getEdgeWeight(three,two),20);\r\n assertEquals(test.getEdgeWeight(three,four),20);\r\n assertEquals(test.getEdgeWeight(four,one),60);\r\n assertEquals(test.getEdgeWeight(four,two),40);\r\n assertEquals(test.getEdgeWeight(four,three),20);\r\n }", "public void addEdge(int u, int v, double w) {\n\t\t\n\t}", "void addEdge(int vertex1, int vertex2){\n adjList[vertex1].add(vertex2);\n adjList[vertex2].add(vertex1);\n }", "void addEdge(SimpleVertex vertexOne, SimpleVertex vertexTwo, int weight) {\n\n\t\tSimpleEdge edge = new SimpleEdge(vertexOne, vertexTwo);\n\t\tedge.weight = weight;\n\t\t// edgeList.add(edge);\n\t\t// System.out.println(edge);\n\t\tvertexOne.neighborhood.add(edge);\n\n\t}", "public void addEdge(Edge e){\n\t\tadjacentEdges.add(e);\n\t}", "public Edge addEdge(EdgeType et, Node source, Node dest, double weight)\r\n {\r\n\tfinal String edgeTypeName = et.getName();\r\n Edge existingEdge = getEdge(edgeTypeName, source, dest);\r\n if (existingEdge == null)\r\n {\r\n existingEdge = ethMap.get(edgeTypeName).addEdge(source, dest, weight);\r\n edges = null;\r\n }\r\n else\r\n existingEdge.addWeight(weight);\n return existingEdge;\r\n }", "public void addEdge(E e){\n\t\tedges.add(e);\n\t}", "double getEdgeWeight();", "void addEdge(int a, int b) {\n Edge e = new Edge(V[a], V[b]);\n V[a].Adj.add(e);\n V[b].Adj.add(e);\n }", "@Override public int set(L source, L target, int weight) {\r\n \r\n \tif(weight>0) {\r\n \t\tboolean flag=false;\r\n \t\tif(!vertices.contains(source)) {\r\n \t\t\tvertices.add(source);\r\n \t\t\tflag=true;\r\n \t\t}\r\n \tif(!vertices.contains(target)) {\r\n \t\tvertices.add(target);\r\n \t\tflag=true;\r\n \t}\r\n \tEdge<L> e=new Edge<L>(source,target,weight);\r\n \tif(flag==true) {//加点,直接把新边写入,\r\n \t\t\r\n \tedges.add(e);\r\n \tcheckRep();\r\n \treturn 0;\r\n \t}\r\n \telse {//点已经在了,可能边已经在了,考虑重复问题\r\n \t\tint n=edges.size();\r\n \t\tif(n==0) {\r\n \t\t\t\r\n \tedges.add(e);\r\n \tcheckRep();\r\n \treturn 0;\r\n \t\t}\r\n \t\telse {\r\n \t\t\tboolean tag=false;\t\r\n \t\t\tfor(int i=0;i<n;i++) {\r\n \t\t\t\t//这一步太关键了,之前一直判断是false\r\n \t\t\t\tif(edges.get(i).getSource().equals(source) && edges.get(i).getTarget().equals(target)) {\r\n \t\t\t//\tif(edges.get(i).getSource()==source && edges.get(i).getTarget()==target) {\r\n \t\t\t\t\tint res=edges.get(i).getWeight();\r\n \t\t\t\t\tedges.set(i,e);\r\n \t\t\t\t\tcheckRep();\r\n \t\t\t\t\ttag=true;\r\n \t\t\t\t\treturn res;//边已经在了,重新写权重\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t//边不在里面,直接写入\r\n \t\t\tif(tag==false) {\r\n \t\t\t\tedges.add(e);\r\n \t\t\t\tcheckRep();\r\n \t\t\t\treturn 0;\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \t\r\n \t}\r\n \telse if(weight==0) {\r\n \t\tif(!vertices.contains(source)||!vertices.contains(target)) return 0;\r\n \t\tint n=edges.size();\r\n \t\tfor(int i=0;i<n;i++) {\r\n \t\t\t//改了\r\n\t\t\t\tif(edges.get(i).getSource().equals(source) && edges.get(i).getTarget().equals(target)) {\r\n \t\t\t//if(edges.get(i).getSource()==source && edges.get(i).getTarget()==target) {\t\r\n \t\t\t//把已经在的边移除\r\n\t\t\t\t\tint res=edges.get(i).getWeight();\r\n\t\t\t\t\tedges.remove(i);\r\n\t\t\t\t\tcheckRep();\r\n\t\t\t\t\treturn res;\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\treturn 0;\r\n \t}\r\n \tcheckRep();\r\n \treturn 0;\r\n \t\r\n }", "@Override\r\n\tpublic boolean connect(VertexInterface<T> endVertex, double edgeWeight) {\n\t\treturn false;\r\n\t}", "int addEdge(int tail, int head);", "public DirectedEdge(int from, int to, double weight) {\n this.from = from;\n this.to = to;\n this.weight = weight;\n }", "public EdgeIntf addEdge( Vertex fromVertex, Vertex toVertex ) throws Exception {\r\n if( !isPath( toVertex, fromVertex ))\r\n return super.addEdge( fromVertex, toVertex );\r\n else\r\n throw new CycleException();\r\n }", "public void drawUndirectedEdge(String label1, String label2) {\n }", "@Override\n\tpublic boolean insertOneEdge(NodeRelation nodeRelation) {\n\t\treturn false;\n\t}", "@Override\n public void appendEdge(Integer first, Integer second) {\n if (col.containsKey(first) && col.containsKey(second)) {\n col.get(first).add(second);\n col.get(second).add(first); \n }\n }", "public static Multigraph smartAddEdge(Multigraph graph, Edge edge, boolean stopIfMissing) {\n\n if (!graph.containsVertex(edge.getSource())) {\n if(stopIfMissing){\n throw new IllegalStateException(\"Missing source node for edge \"+ edge);\n }\n graph.addVertex(edge.getSource());\n }\n if (!graph.containsVertex(edge.getDestination())) {\n if(stopIfMissing){\n throw new IllegalStateException(\"Missing destination node for edge \"+ edge);\n }\n graph.addVertex(edge.getDestination());\n }\n //That a good mapping edge, add to the related query\n graph.addEdge(edge.getSource(), edge.getDestination(), edge.getLabel());\n return graph;\n }", "@Test\n\tvoid testAddEdge() {\n\t\tgeo_location ge = new GeoLoc(0,1,2);\n\t\tnode_data n0 =new NodeData(0,ge);\n\t\tgeo_location ge1 = new GeoLoc(0,6,2);\n\t\tnode_data n1 =new NodeData(2,ge1);\n\t\tgraph.addNode(n0);\n\t\tgraph.addNode(n1);\n\t\tedge_data e = new EdgeData(0, 2, 20);\n\t\tgraph.connect(0, 2, 20);\n\t\tedge_data actual = graph.getEdge(0, 2);\n\t\tedge_data expected = e;\n\t\tassertEquals(expected.getSrc(), actual.getSrc());\n\t\tassertEquals(expected.getDest(), actual.getDest());\n\t\tassertEquals(expected.getWeight(), actual.getWeight());\n\t}", "public void addEdge(int v1, int v2) {\n\t\tedges[v1][v2] = 1;\n\t\tedges[v2][v1] = 1;\n\t\tsize++;\n\t}", "public void setEdge(int v1, int v2, int weight) {\n LinkedList<Integer> tmp = adjList.elementAt(v1);\n if(adjList.elementAt(v1).contains(v2) == false) {\n tmp.add(v2);\n adjList.set(v1, tmp);\n totalEdges ++;\n LinkedList<Integer> tmp2 = adjWeight.elementAt(v1);\n tmp2.add(weight);\n adjWeight.set(v1, tmp2);\n }\n }", "public GraphEdge()\r\n {\r\n cost = 1.0;\r\n indexFrom = -1;\r\n indexTo = -1;\r\n }", "public boolean addEdge(String id1, String id2, Integer weight)\n\t{\n\t\t// if its a new edge, or a new edge weight\n\t\tif (!hasEdge(id1, id2) || (weight != null && edgeWeight(id1, id2) == null))\n\t\t{\n\t\t\tNode n1 = getNode(id1);\n\t\t\tNode n2 = getNode(id2);\n\t\t\tn1.addEdge(n2, weight);\n\t\t\tn2.addEdge(n1, weight);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "boolean addEdge(E edge);", "public void addEdge(Node from, Node to);", "public void addEdge(Edge e){\n\t\tedges.put(e.hashCode(), e);\n\t\te.getHead().addConnection(e);\n\t\te.getTail().addConnection(e);\n\t}", "@Test\r\n void add_remove_add() {\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"C\");\r\n graph.addEdge(\"B\",\"D\");\r\n graph.addEdge(\"C\",\"D\");\r\n graph.addEdge(\"D\", \"E\"); \r\n // Check that E is in graph with correct edges\r\n List<String> adjacent = graph.getAdjacentVerticesOf(\"D\");\r\n vertices = graph.getAllVertices(); \r\n if(!vertices.contains(\"E\") | !adjacent.contains(\"E\")) {\r\n fail();\r\n }\r\n //Remove E\r\n graph.removeVertex(\"E\");\r\n if(vertices.contains(\"E\") | adjacent.contains(\"E\")) {\r\n fail();\r\n }\r\n \r\n //Add E back into graph with different edge\r\n graph.addEdge(\"B\", \"E\");\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if(!vertices.contains(\"E\") | !adjacent.contains(\"E\")) {\r\n fail();\r\n }\r\n }", "public void insert(Edge edge) {\r\n edges[edge.getSource()].add(edge);\r\n if (!isDirected()) {\r\n edges[edge.getDest()].add(new Edge(edge.getDest(),\r\n edge.getSource(),\r\n edge.getWeight()));\r\n }\r\n }", "private void addEdge(int start, int end) {\n adjMatrix[start][end] = 1;\n // for undirected graph\n adjMatrix[end][start] = 1;\n }", "private static void addEdgeDiag(int n1num, int n2num, int x, int y,\n\t\t\tboolean b) {\n\t\taddEdgeReal(n1num, n2num, x, y);\n\t\taddEdgeReal(n2num, n1num, x, y);\n\t}", "public boolean addEdge(Vertex one,Vertex two,int weight)\n\t{\n\t\tif (one.equals(two)) { return false; }\n\t\t\n\t\t//check that edge is not in graph\n\t\tEdge e = new Edge(one,two,weight);\n\t\t//future location to increment trips along\n\t\t//the same path\n\t\tif (edges.containsKey(e.hashCode()))\n\t\t{\n\t\t\te.addTrip();//does not work\n\t\t\treturn false;\n\t\t}\n\t\t//check that edge is not incident to either vertex\n\t\telse if (one.containsNeighbor(e) || two.containsNeighbor(e))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tedges.put(e.hashCode(), e);\n\t\tone.addNeighbor(e);\n\t\ttwo.addNeighbor(e);\n\t\treturn true;\n\t}", "public UndirectedEdge() {\n \tthis(null,null);\n\t}", "public Edge(Node source, Node sink, Object weight) {\n\t\tthis(source, sink);\n\t\tsetWeight(weight);\n\t}", "public void addEdge(Node n1, Node n2, int weight) {\n\t\tthis.edges.add(new Edge(n1, n2, weight));\n\t\tadjacencyList.get(n1.getIdNode()).add(new NodePair(n2.getIdNode(), weight));\n\n\n\t\tnrOfEdges++;\n\t}" ]
[ "0.74050176", "0.69977176", "0.69856304", "0.6951671", "0.69089615", "0.6830978", "0.6730235", "0.6667516", "0.66401005", "0.6611754", "0.6604935", "0.6594188", "0.656862", "0.6566965", "0.6558247", "0.65145624", "0.6469072", "0.6469072", "0.64388424", "0.64216757", "0.6413944", "0.6408236", "0.6362288", "0.63614565", "0.6353183", "0.6350342", "0.6335833", "0.6322578", "0.6290825", "0.6285708", "0.6282641", "0.6261873", "0.62583804", "0.62578213", "0.6249768", "0.6246473", "0.62349504", "0.6233986", "0.62339425", "0.6227801", "0.62265813", "0.6225518", "0.6216438", "0.6215589", "0.6209989", "0.62091553", "0.6191623", "0.61777836", "0.61665404", "0.6161827", "0.61576355", "0.6145188", "0.61362934", "0.61228704", "0.6113046", "0.6111251", "0.6089509", "0.60842973", "0.60790354", "0.60759217", "0.60743225", "0.60692155", "0.6065305", "0.60614634", "0.60580266", "0.60526717", "0.60423416", "0.6027867", "0.60264224", "0.60249406", "0.6016196", "0.60124636", "0.6011387", "0.6007973", "0.600737", "0.5992009", "0.5990942", "0.5989373", "0.59870744", "0.5985679", "0.59808815", "0.5978192", "0.5973066", "0.59581196", "0.5955899", "0.59539133", "0.59524333", "0.5950452", "0.5949059", "0.59461796", "0.59440416", "0.59439045", "0.59431154", "0.59336865", "0.59328973", "0.5926625", "0.59250754", "0.59218705", "0.59217024", "0.5920836" ]
0.5983938
80
The event handler for SignChangeEvents. Allows signs to be colored using &codes.
@EventHandler(ignoreCancelled = true) public void onSignChange(SignChangeEvent event) { // Automatically flag players with bypass as posting non-empty signs to skip empty checks boolean empty = !event.getPlayer().hasPermission("sblock.sign.unlogged"); for (int i = 0; i < event.getLines().length; i++) { event.setLine(i, ChatColor.translateAlternateColorCodes('&', event.getLine(i))); if (empty && !TextUtils.appearsEmpty(event.getLine(i))) { empty = false; } } if (empty || event.getPlayer().hasPermission("sblock.sign.unlogged")) { return; } Block block = event.getBlock(); StringBuilder msg = new StringBuilder().append(ChatColor.GRAY) .append(block.getWorld().getName()).append(' ').append(block.getX()).append("x, ") .append(block.getY()).append("y, ").append(block.getZ()).append("z\n"); for (String line : event.getLines()) { if (!TextUtils.appearsEmpty(line)) { msg.append(line).append(ChatColor.GRAY).append('\n'); } } msg.delete(msg.length() - 3, msg.length()); if (chat.testForMute(event.getPlayer(), msg.toString(), "#sign")) { event.setCancelled(true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@EventHandler(priority = EventPriority.MONITOR)\r\n\tpublic void onSignChange(SignChangeEvent event) {\r\n\t\t\r\n\t\tfinal Player creator = (Player)event.getPlayer();\r\n\t\tfinal InputPlayer iplayer = bSignModule.GUI_API.getPlayer(creator);\r\n\t\tfinal Location signLocation = event.getBlock().getLocation();\r\n\t\t\r\n\t\tSign newSign = null;\r\n\t\t\r\n\t\tif (event.getLine(0).equalsIgnoreCase(\"--weblink--\")) {\r\n\t\t\t\r\n\t\t\t// see if they have permissions to use signs\r\n\t\t\tif (!bSignModule.hasPermission(creator, \"bfundamental.bsign.create.web\"))\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\t\t\tnewSign = new WebSign(creator, signLocation);\r\n\t\t\tiplayer.openGui(new SignInputGui(newSign, \"Enter the web link to link to\"));\r\n\t\t}\r\n\t\telse if (event.getLine(0).equalsIgnoreCase(\"--command--\")) {\r\n\t\t\t\r\n\t\t\t// see if they have permissions to use signs\r\n\t\t\tif (!bSignModule.hasPermission(creator, \"bfundamental.bsign.create.command\"))\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\t\t\tnewSign = new CommandSign(creator, signLocation);\r\n\t\t\tiplayer.openGui(new SignInputGui(newSign, \"Enter the command for this sign to execute\"));\r\n\t\t}\r\n\t\telse if (event.getLine(0).equalsIgnoreCase(\"--info--\")) {\r\n\t\t\t\r\n\t\t\t// see if they have permissions to use signs\r\n\t\t\tif (!bSignModule.hasPermission(creator, \"bfundamental.bsign.create.info\"))\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\t\t\tnewSign = new InfoSign(creator, signLocation);\r\n\t\t\tiplayer.openGui(new SignInputGui(newSign, \"Enter the info message for this sign\"));\r\n\t\t}\r\n\t\t\r\n\t\tbSignModule.SIGNS.add(newSign);\r\n\t\t\r\n\t}", "@EventHandler\n\tvoid signWriter(SignChangeEvent event) {\n\t\tString[] lines = event.getLines();\n\t\tif (ChatColor.stripColor(lines[0]).equalsIgnoreCase(\"[MarioKart]\")) {\n\t\t\tlines[0] = MarioKart.colors.getTitle() + \"[MarioKart]\";\n\t\t\tBoolean text = true;\n\t\t\tString cmd = ChatColor.stripColor(lines[1]);\n\t\t\tif (cmd.equalsIgnoreCase(\"list\")) {\n\t\t\t\tlines[1] = MarioKart.colors.getInfo() + \"List\";\n\t\t\t\tif (!(lines[2].length() < 1)) {\n\t\t\t\t\ttext = false;\n\t\t\t\t}\n\t\t\t\tlines[2] = MarioKart.colors.getSuccess()\n\t\t\t\t\t\t+ ChatColor.stripColor(lines[2]);\n\t\t\t} else if (cmd.equalsIgnoreCase(\"join\")) {\n\t\t\t\tlines[1] = MarioKart.colors.getInfo() + \"Join\";\n\t\t\t\tlines[2] = MarioKart.colors.getSuccess()\n\t\t\t\t\t\t+ ChatColor.stripColor(lines[2]);\n\t\t\t\tif (lines[2].equalsIgnoreCase(\"auto\")) {\n\t\t\t\t\tlines[2] = MarioKart.colors.getTp() + \"Auto\";\n\t\t\t\t}\n\t\t\t\tlines[3] = MarioKart.colors.getInfo() + lines[3];\n\t\t\t\ttext = false;\n\t\t\t} else if (cmd.equalsIgnoreCase(\"shop\")) {\n\t\t\t\tlines[1] = MarioKart.colors.getInfo() + \"Shop\";\n\n\t\t\t} else if (cmd.equalsIgnoreCase(\"leave\")\n\t\t\t\t\t|| cmd.equalsIgnoreCase(\"exit\")\n\t\t\t\t\t|| cmd.equalsIgnoreCase(\"quit\")) {\n\t\t\t\tchar[] raw = cmd.toCharArray();\n\t\t\t\tif (raw.length > 1) {\n\t\t\t\t\tString start = \"\" + raw[0];\n\t\t\t\t\tstart = start.toUpperCase();\n\t\t\t\t\tString body = \"\";\n\t\t\t\t\tfor (int i = 1; i < raw.length; i++) {\n\t\t\t\t\t\tbody = body + raw[i];\n\t\t\t\t\t}\n\t\t\t\t\tbody = body.toLowerCase();\n\t\t\t\t\tcmd = start + body;\n\t\t\t\t}\n\t\t\t\tlines[1] = MarioKart.colors.getInfo() + cmd;\n\t\t\t} else if (cmd.toLowerCase().contains(\"items\")) {\n\t\t\t\tlines[1] = \"items\";\n\t\t\t\t/*\n\t\t\t\tLocation above = event.getBlock().getLocation().add(0, 1.4, 0);\n\t\t\t\tEnderCrystal crystal = (EnderCrystal) above.getWorld()\n\t\t\t\t\t\t.spawnEntity(above, EntityType.ENDER_CRYSTAL);\n\t\t\t\tabove.getBlock().setType(Material.COAL_BLOCK);\n\t\t\t\tabove.getBlock().getRelative(BlockFace.WEST)\n\t\t\t\t\t\t.setType(Material.COAL_BLOCK);\n\t\t\t\tabove.getBlock().getRelative(BlockFace.NORTH)\n\t\t\t\t\t\t.setType(Material.COAL_BLOCK);\n\t\t\t\tabove.getBlock().getRelative(BlockFace.NORTH_WEST)\n\t\t\t\t\t\t.setType(Material.COAL_BLOCK);\n\t\t\t\tcrystal.setFireTicks(0);\n\t\t\t\tcrystal.setMetadata(\"race.pickup\", new StatValue(true, plugin));\n\t\t\t\t\n\t\t\t\t*/\n\t\t\t\ttext = false;\n\t\t\t\tevent.getPlayer().sendMessage(\"Creating item box...\");\n\t\t\t\tMarioKart.powerupManager.spawnItemPickupBox(event.getBlock().getLocation());\n\t\t\t} else if(cmd.equalsIgnoreCase(\"queues\")){ \n\t\t\t\tString track = ChatColor.stripColor(lines[2]);\n\t\t\t\tif(track.length() < 1){\n\t\t\t\t\treturn; //No track\n\t\t\t\t}\n\t\t\t\ttrack = plugin.signManager.getCorrectName(track);\n\t\t\t\tif(!plugin.trackManager.raceTrackExists(track)){\n\t\t\t\t\tevent.getPlayer().sendMessage(MarioKart.colors.getSuccess()+MarioKart.msgs.get(\"setup.fail.queueSign\"));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t//Register sign\n\t\t\t\tplugin.signManager.addQueueSign(track, event.getBlock().getLocation());\n\t\t\t\t//Tell the player it was registered successfully\n\t\t\t\tevent.getPlayer().sendMessage(MarioKart.colors.getSuccess()+MarioKart.msgs.get(\"setup.create.queueSign\"));\n\t\t\t\tfinal String t = track;\n\t\t\t\tMarioKart.plugin.getServer().getScheduler().runTaskLater(plugin, new BukkitRunnable(){\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tplugin.signManager.updateSigns(t);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}}, 2l);\n\t\t\t\t\n\t\t\t\ttext = false;\n\t\t\t} else {\n\t\t\t\ttext = false;\n\t\t\t}\n\t\t\tif (text) {\n\t\t\t\tlines[2] = ChatColor.ITALIC + \"Right click\";\n\t\t\t\tlines[3] = ChatColor.ITALIC + \"to use\";\n\t\t\t}\n\t\t}\n\t}", "@EventHandler\n void onSignChange(SignChangeEvent e){\n Player player = e.getPlayer();\n if (player.hasPermission(\"guildmc.createRaid\")){\n if (e.getLine(0).equalsIgnoreCase(\"[RAID]\")) {\n e.setLine(0,ChatColor.WHITE + \"[\" + ChatColor.GOLD + \"RAID\" + ChatColor.WHITE + \"]\");\n e.setLine(1, ChatColor.WHITE + e.getLine(1));\n e.setLine(2, ChatColor.WHITE + e.getLine(2));\n e.setLine(3, ChatColor.WHITE + e.getLine(3));\n GuildMCFunctions functions = new GuildMCFunctions();\n functions.displayRaidInfos(player);\n }\n } else {\n e.setCancelled(true);\n }\n }", "void sendSignChangeToPlayer(Player player, Location location, byte data);", "public void onBlockRedstoneChange(BlockRedstoneEvent event)\r\n {\n Block checkBlock = event.getBlock();\r\n\r\n // Check if it's a sign\r\n if ((checkBlock.getType() == Material.SIGN_POST) || (checkBlock.getType() == Material.WALL_SIGN))\r\n {\r\n \t plugin.shot = 0;\r\n if (event.getNewCurrent() > 0)\r\n {\r\n \t Sign s = (Sign)event.getBlock().getState();\r\n if ((\"<FIREWORK>\").equals(s.getLine(0))){ \r\n \tevent.getBlock();\r\n \tTNTPrimed tnt = event.getBlock().getLocation().getWorld().spawn(\r\n \tevent.getBlock().getLocation(), TNTPrimed.class);\r\n \ttnt.setVelocity(new Vector((plugin.rand.nextFloat() - 0.5f) / plugin.angle, plugin.speed, (plugin.rand.nextFloat() - 0.5f)\r\n \t/ plugin.angle));\r\n \ttnt.setFuseTicks(plugin.time);\r\n \tplugin.shot=1;\r\n }\r\n else{\r\n }\r\n }\r\n else if (event.getNewCurrent() == 0)\r\n {\r\n// \t System.out.println(\"SIGN NOT POWERED\"); \r\n }\r\n }}", "public void stateChanged(ChangeEvent changeEvent) {\n Color newForegroundColor = colorChooser.getColor();\n label.setForeground(newForegroundColor);\n }", "@Override\n public void onColorChanged(int selectedColor) {\n Log.d(\"ColorPicker\", \"onColorChanged: 0x\" + Integer.toHexString(selectedColor));\n }", "public void colorSelectionChange(ColorSelectionEvent cse) {\n\t\t finalCenterLabel.setForeground(cse.getColor());\n\t\t}", "@Override\r\n\tpublic void handleGSCE(GSCE ev) {\r\n\t}", "@EventHandler\n\tpublic void onSignHit (BlockDamageEvent event){\n\t\tdebugOut(\"BlockDamageEvent\");\n\t\t//getLogger().info(\"MEEP\");\n\t\tif(event.getBlock().getType()==Material.SIGN_POST || event.getBlock().getType()==Material.WALL_SIGN){\n\t\t\tdebugOut(\"A sign was done damage.\");\n\t\t\t//Credit: https://bukkit.org/threads/how-to-convert-block-class-to-sign-class.102313/\n\t\t\tBlockState blockState = event.getBlock().getState();\n\t\t\tSign sign = (Sign) blockState;\n\t\t\tif(isMakingShop(event.getPlayer())){\n\t\t\t\t//Do this if the player hits a shop while making one\n\t\t\t\tdebugOut(event.getPlayer()+\" is making a shop\");\n\t\t\t\tString[] playerHashInfo = PlayerMakingShop.get(event.getPlayer().getName() ).split(\",\");\n\t\t\t\tInteger shopX = event.getBlock().getX();\n\t\t\t\tInteger shopY = event.getBlock().getY();\n\t\t\t\tInteger shopZ = event.getBlock().getZ();\n\t\t\t\tInteger playerX = Integer.valueOf(playerHashInfo[0]);\n\t\t\t\tInteger playerY = Integer.valueOf(playerHashInfo[1]);\n\t\t\t\tInteger playerZ = Integer.valueOf(playerHashInfo[2]);\n\t\t\t\tString shopWorld = event.getBlock().getWorld().getName();\n\t\t\t\tString playerWorld = playerHashInfo[3];\n\t\t\t\tdebugOut(\"Shop: \"+shopX+shopY+shopZ+shopWorld);\n\t\t\t\tdebugOut(\"Play: \"+playerX+playerY+playerZ+playerWorld);\n\t\t\t\tif(shopX.intValue()==playerX.intValue() && shopY.intValue()==playerY.intValue() && shopZ.intValue() == playerZ.intValue() && shopWorld.equals(playerWorld)){\n\t\t\t\t\tdebugOut(event.getPlayer().getName()+\" hit the shop that (s)he was creating\");\n\t\t\t\t\tItemStack equipped = event.getPlayer().getItemInHand();\n\t\t\t\t\tif(equipped.getType()!=Material.AIR && equipped.getType()!=Material.WRITTEN_BOOK){\n\t\t\t\t\t\tdebugOut(\"Begin establishing Shop at xyz (\"+shopX+\",\"+shopY+\",\"+shopZ+\") in \"+shopWorld);\n\t\t\t\t\t\tString ownerUUID = playerHashInfo[4];\n\t\t\t\t\t\tString establisherUUID = playerHashInfo[5];\n\t\t\t\t\t\tplayerSuccess(event.getPlayer(), \"Success!\");\n\t\t\t\t\t\tString[] buyLine = sign.getLine(2).split(\" \");\n\t\t\t\t\t\tFloat buy = Float.valueOf(buyLine[1]);\n\t\t\t\t\t\tFloat sell = Float.valueOf(buyLine[3]);\n\t\t\t\t\t\testablishShop(ownerUUID, establisherUUID, event.getPlayer().getName(),shopX, shopY, shopZ, event.getBlock().getWorld(), equipped, buy, sell);\n\t\t\t\t\t}else if(equipped.getType()==Material.AIR){\n\t\t\t\t\t\tdebugOut(event.getPlayer().getName()+\" hit the shop with Air, which cannot be sold\");\n\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"cant-sell-air\") );\n\t\t\t\t\t}else if(equipped.getType()==Material.WRITTEN_BOOK) {\n\t\t\t\t\t\tdebugOut(event.getPlayer().getName()+\" hit the shop with a written book, which cannot be sold\");\n\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"cant-sell-book\") );\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tdebugOut(event.getPlayer().getName()+\" did not hit the shop the shop (s)he was creating\");\n\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"click-wrong-shop\"));\n\t\t\t\t\tif(shopX.intValue()==playerX.intValue()){\n\t\t\t\t\t\tdebugOut(\"X matches\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdebugOut(playerX + \" does not equal \" + shopX);\n\t\t\t\t\t}\n\t\t\t\t\tif(shopY.intValue()==playerY.intValue()){\n\t\t\t\t\t\tdebugOut(\"Y matches\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdebugOut(playerY + \" does not equal \" + shopY);\n\t\t\t\t\t}\n\t\t\t\t\tif(shopZ.intValue() == playerZ.intValue()){\n\t\t\t\t\t\tdebugOut(\"Z matches\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdebugOut(playerZ + \" does not equal \" + shopZ);\n\t\t\t\t\t}\n\t\t\t\t\tif(shopWorld.equals(playerWorld)){\n\t\t\t\t\t\tdebugOut(\"Worlds match\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdebugOut(playerWorld + \" does not equal \" + shopWorld);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if(sign.getLine(0).equals(getConfig().getString(\"sign-header\"))){\n\t\t\t\t//Do this if the player hit a shop, when he wasn't making one.\n\t\t\t\tInteger thisShopID = getShopID(event.getBlock().getX(), event.getBlock().getY(), event.getBlock().getZ(), event.getBlock().getWorld() );//GET FROM DATABASE\n\t\t\t\tdebugOut(event.getPlayer()+\" is not making a shop, but did click on a shop sign\");\n\t\t\t\tif(ActivePlayerShop.containsKey(event.getPlayer().getName())){\n\t\t\t\t\tInteger currentValue = ActivePlayerShop.get(event.getPlayer().getName());\n\t\t\t\t\tif(Integer.valueOf(currentValue)==Integer.valueOf(thisShopID) && Integer.valueOf(currentValue)!=0 ){\n\t\t\t\t\t\t//BUY FROM THE SHOP OR WITHDRAW\n\t\t\t\t\t\tdebugOut(\"Checking to see if the selected shop is owned\");\n\t\t\t\t\t\tString shopOwner = getShopOwner(thisShopID);\n\t\t\t\t\t\tif(shopOwner!=\"null\"){\n\t\t\t\t\t\t\tInteger currentStock = getStock(thisShopID);\n\t\t\t\t\t\t\tif(shopOwner.equals(event.getPlayer().getUniqueId().toString()) ){\n\t\t\t\t\t\t\t\tdebugOut(\"Shop is owned\");\n\t\t\t\t\t\t\t\t//Do shop owner stuff\n\t\t\t\t\t\t\t\tif(event.getPlayer().isSneaking()){\n\t\t\t\t\t\t\t\t\t//withdraw a stack\n\t\t\t\t\t\t\t\t\tdebugOut(\"withdrawing one stack -- attempt\");\n\t\t\t\t\t\t\t\t\tItemStack currentItem = getShopItem(thisShopID, true, sign.getLine(3) );\n\t\t\t\t\t\t\t\t\tInteger stackSize = currentItem.getMaxStackSize();\n\t\t\t\t\t\t\t\t\tif(Integer.valueOf(currentStock)>=stackSize){\n\t\t\t\t\t\t\t\t\t\t//Withdraw a stack\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"There are enough items in stock\");\n\t\t\t\t\t\t\t\t\t\tif(canAddItem(currentItem, event.getPlayer()) ){\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"The player can fit all of the items in inventory\");\n\t\t\t\t\t\t\t\t\t\t\tevent.getPlayer().getInventory().addItem(currentItem);\n\t\t\t\t\t\t\t\t\t\t\tsetStock(thisShopID, currentStock-stackSize);\n\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"The player cannot fit all items in inventory\");\n\t\t\t\t\t\t\t\t\t\t\tif(getConfig().getString(\"buy-when-full\").matches(\"true\")){\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"buy-when-full is true -- dropping extra items on floor\");\n\t\t\t\t\t\t\t\t\t\t\t\t//Drop extra items on floor\n\t\t\t\t\t\t\t\t\t\t\t\tsoftAddItem(currentItem, event.getPlayer());\n\t\t\t\t\t\t\t\t\t\t\t\tsetStock(thisShopID, currentStock-stackSize);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"buy-when-full is false -- cancelling trade\");\n\t\t\t\t\t\t\t\t\t\t\t\t//Do not sell\n\t\t\t\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"full-inventory-error\"));\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}else {\n\t\t\t\t\t\t\t\t\t\t//Not enough in stock\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"There are not enough items in stock to withdraw a stack\");\n\t\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"not-enough-items\"));\n\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}else {\n\t\t\t\t\t\t\t\t\t//withdraw one item\n\t\t\t\t\t\t\t\t\tdebugOut(\"withdrawing one item -- attempt\");\n\t\t\t\t\t\t\t\t\tif(Integer.valueOf(currentStock)>0){\n\t\t\t\t\t\t\t\t\t\t//Add one to player\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"In Stock\");\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"Retrieving the item\");\n\t\t\t\t\t\t\t\t\t\tItemStack currentItem = getShopItem(thisShopID, false, sign.getLine(3) );\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"Item retrieved\");\n\t\t\t\t\t\t\t\t\t\tif(canAddItem(currentItem, event.getPlayer()) ){\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Player can fit item -- adding\");\n\t\t\t\t\t\t\t\t\t\t\tsoftAddItem(currentItem, event.getPlayer());\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Decreasing stock by one...\");\n\t\t\t\t\t\t\t\t\t\t\tsetStock(thisShopID, currentStock-1);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Player cannot fit item\");\n\t\t\t\t\t\t\t\t\t\t\tif(getConfig().getString(\"buy-when-full\").matches(\"true\")){\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"buy-when-full is true -- dropping extra items on floor\");\n\t\t\t\t\t\t\t\t\t\t\t\tsoftAddItem(currentItem, event.getPlayer());\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Decreasing stock by one...\");\n\t\t\t\t\t\t\t\t\t\t\t\tsetStock(thisShopID, currentStock-1);\n\t\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"buy-when-full is false -- cancelling trade\");\n\t\t\t\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"full-inventory-error\"));\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\tdebugOut(\"Transaction Completed\");\n\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"Out of Stock\");\n\t\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"out-of-stock\"));\n\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 {\n\t\t\t\t\t\t\t\tdebugOut(\"Shop is not owned\");\n\t\t\t\t\t\t\t\t//Do consumer stuff\n\t\t\t\t\t\t\t\tdebugOut(\"getShopBuyPrice\");\n\t\t\t\t\t\t\t\tfloat buyPrice = getShopBuyPrice(thisShopID);\n\t\t\t\t\t\t\t\tdebugOut(\"getVaultbalance\");\n\t\t\t\t\t\t\t\tfloat customerBalance = (float) getVaultBalance(event.getPlayer().getUniqueId());\n\t\t\t\t\t\t\t\tdebugOut(\"Creating 'currentItem'\");\n\t\t\t\t\t\t\t\tItemStack currentItem;\n\t\t\t\t\t\t\t\tif(event.getPlayer().isSneaking()){\n\t\t\t\t\t\t\t\t\t//buy a stack\n\t\t\t\t\t\t\t\t\tdebugOut(\"attempting to buy a stack\");\n\t\t\t\t\t\t\t\t\tcurrentItem = getShopItem(thisShopID, true, sign.getLine(3));\n\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t//buy one item\n\t\t\t\t\t\t\t\t\tdebugOut(\"attempting to buy one item\");\n\t\t\t\t\t\t\t\t\tcurrentItem = getShopItem(thisShopID, false, sign.getLine(3));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(currentStock>=currentItem.getAmount()){\n\t\t\t\t\t\t\t\t\tdebugOut(\"Item has sufficient stock\");\n\t\t\t\t\t\t\t\t\tif(customerBalance < (buyPrice*currentItem.getAmount()) ){\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"Insufficient Funds -- player has: \"+customerBalance+\" | the shop needs: \"+(buyPrice*currentItem.getAmount() ));\n\t\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"insufficient-funds\"));\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"Player has sufficient funds: \"+customerBalance);\n\t\t\t\t\t\t\t\t\t\tUUID ownerUUID = UUID.fromString(getShopOwner(thisShopID));\n\t\t\t\t\t\t\t\t\t\tif(canAddItem(currentItem, event.getPlayer()) ){\n\t\t\t\t\t\t\t\t\t\t\t//Do transaction\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Player can fit item -- adding\");\n\t\t\t\t\t\t\t\t\t\t\tsoftAddItem(currentItem, event.getPlayer());\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Decreasing stock\");\n\t\t\t\t\t\t\t\t\t\t\tsetStock(thisShopID, currentStock-currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Changing funds...\");\n\t\t\t\t\t\t\t\t\t\t\tchangeVaultBalance(ownerUUID, buyPrice*currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\tchangeVaultBalance(event.getPlayer().getUniqueId(), -buyPrice*currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\tevent.getPlayer().sendMessage(ChatColor.GREEN + \"You have bought \"+ChatColor.YELLOW+currentItem.getAmount()+\" \"+ChatColor.GREEN+\" item(s) for \"+ChatColor.YELLOW+buyPrice*currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Player cannot fit item\");\n\t\t\t\t\t\t\t\t\t\t\tif(getConfig().getString(\"buy-when-full\").matches(\"true\")){\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"buy-when-full is enabled -- continuing transaction\");\n\t\t\t\t\t\t\t\t\t\t\t\tsoftAddItem(currentItem, event.getPlayer());\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Decreasing stock\");\n\t\t\t\t\t\t\t\t\t\t\t\tsetStock(thisShopID, currentStock-currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Changing funds...\");\n\t\t\t\t\t\t\t\t\t\t\t\tchangeVaultBalance(ownerUUID, buyPrice*currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\t\tchangeVaultBalance(event.getPlayer().getUniqueId(), -buyPrice*currentItem.getAmount()) ;\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Notifying Player...\");\n\t\t\t\t\t\t\t\t\t\t\t\tevent.getPlayer().sendMessage(ChatColor.GREEN + \"You have bought \"+ChatColor.YELLOW+currentItem.getAmount()+\" \"+ChatColor.GREEN+\" item(s) for \"+ChatColor.YELLOW+buyPrice*currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"buy-when-full is not enabled -- cancelling transaction\");\n\t\t\t\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"full-inventory-error\"));\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}\n\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\tdebugOut(\"Not enough in stock\");\n\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"not-enough-items\"));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tdebugOut(\"This shop does not exist; is it finished being created?\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdebugOut(\"A shop was activated, but it was not this one; changing to this shop\");\n\t\t\t\t\t\tActivePlayerShop.put(event.getPlayer().getName(), thisShopID);\n\t\t\t\t\t\tshowShopInfo(thisShopID, event.getPlayer());\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tdebugOut(\"No shop activated, activating it\");\n\t\t\t\t\tActivePlayerShop.put(event.getPlayer().getName(), thisShopID);\n\t\t\t\t\tshowShopInfo(thisShopID, event.getPlayer());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\tSim.setForeground(Color.blue);\r\n\t\t\t\t}", "@Override\n public String getType() {\n return \"Color change\";\n }", "@Override\r\n\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\tSim.setForeground(Color.blue);\r\n\t\t\t\t\t}", "@Override\n public void changeColor(ColorEvent ce) {\n \n txtRed.setText(\"\"+ ce.getColor().getRed());\n txtGreen.setText(\"\"+ ce.getColor().getGreen());\n txtBlue.setText(\"\"+ ce.getColor().getBlue());\n \n \n }", "public void updateSign(boolean activated) {\n if (!ChunkLocation.fromLocation(activationBlock).isChunkLoaded()) return;\n\n try {\n BlockState state = activationBlock.getBlock().getState();\n if (state == null || !(state instanceof Sign)) return;\n\n final Sign sign = (Sign) state;\n\n String line;\n if (activated) {\n String signColor;\n if (isDisabled()) signColor = \"8\";\n else signColor = RCPrefs.getSignColor();\n line = (char) 167 + signColor + type;\n } else {\n line = type;\n }\n\n if (!line.equals(sign.getLine(0))) {\n sign.setLine(0, line);\n\n RedstoneChips.inst().getServer().getScheduler().scheduleSyncDelayedTask(RedstoneChips.inst(), () -> sign.update());\n }\n } catch (NullPointerException ne) {\n }\n }", "public void setSignInNumber(Byte signInNumber) {\n this.signInNumber = signInNumber;\n }", "private void signMessage() {\n\n String messageText = messageTextArea.getText();\n SecureCharSequence secureCharSequence = new SecureCharSequence(currentPassword.getPassword());\n String signMessage = this.address.signMessage(messageText, secureCharSequence);\n signature.setText(signMessage);\n\n }", "public void setSign(String sign) {\n\n this.sign = sign;\n }", "private Color eventColor(final PlatformEvent event) {\n if (simpleColorsCheckbox.getState()) { // if checkbox checked\n return event.isConsensus() ? LIGHT_BLUE : LIGHT_GREEN;\n }\n if (!event.isWitness()) {\n return event.isConsensus() ? DARK_GRAY : LIGHT_GRAY;\n }\n if (!event.isFameDecided()) {\n return event.isConsensus() ? DARK_RED : LIGHT_RED;\n }\n if (event.isFamous()) {\n return event.isConsensus() ? DARK_GREEN : LIGHT_GREEN;\n }\n return event.isConsensus() ? DARK_BLUE : LIGHT_BLUE;\n }", "@Override\n public void onColorSelected(String color) {\n Toast.makeText(MainActivity.this, \"Selected Color HeX:\" + color, Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\tpublic void macChange() {\n\t\t\t\n\t\t}", "public void stateChanged(ChangeEvent evt) {\n if (evt.getSource() == bgColorSlider) {\n int bgVal = bgColorSlider.getValue();\n displayLabel.setBackground( new Color(bgVal,bgVal,bgVal) );\n // NOTE: The background color is a shade of gray,\n // determined by the setting on the slider.\n }\n else {\n float hue = fgColorSlider.getValue()/100.0f;\n displayLabel.setForeground( Color.getHSBColor(hue, 1.0f, 1.0f) );\n // Note: The foreground color ranges through all the colors\n // of the spectrum.\n }\n }", "@Override\n public void changed(ChangeEvent event, Actor actor) {\n game.setScreen(new CreditsScreen(game));\n }", "public void changeSignalColor(String name, String source, Color newColor) {\n\t\tfinal String[] colorNames = {\"BLACK\", \"BLUE\", \"CYAN\", \"DARK_GRAY\", \"GRAY\", \"GREEN\", \"LIGHT_GRAY\", \"MAGENTA\", \"ORANGE\", \"PINK\", \"RED\", \"YELLOW\"}; \n\t\t\n\t\tint colorIndex = 0;\n\t\tfor(; colorIndex < m_signalSources.size(); colorIndex++) {\n\t\t\tif( m_signalSources.get(colorIndex).equalsIgnoreCase(source) && m_signalNames.get(colorIndex).equalsIgnoreCase(name) )\n\t\t\t\tbreak;\n\t\t}\n\t\tm_signalColors.set(colorIndex, newColor);\n\t\t\n\t\tif( m_privateNotification != null ) {\n\t\t\tint i = 0;\n\t\t\tfor( ; i < m_palette.length; i++ ) {\n\t\t\t\tif( m_palette[i].equals(newColor) )\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString content = \"changeSignalColor:\"+source+\" \"+name+\" \"+colorNames[i]+\";\";\n\t\t\tm_privateNotification.sendMessage(m_parentName+\"TSCanvasMenu\", m_parentName+\"TSCanvas\", content);\n\t\t\tm_privateNotification.sendMessage(m_parentName+\"TSCanvasMenu\", m_parentName+\"TSAbstractCanvas\", content);\n\t\t}\n\t}", "@Override\n\t\tpublic void valueChanged(Color oldValue, Color newValue) {\n\t\t\tif(newValue.equals(oldValue))\n\t\t\t\tsetColorUnique(true);\n\t\t\telse\n\t\t\tsetColorUnique(!mapColorsForToolBar.values().contains(newValue));\n\n\t\t\tif (tokenLabel != null) {\n\t\t\t\tif (!newValue.equals(mapColorsForToolBar.get(tokenLabel))) {\n\t\t\t\t\t((mxGraphModel) editor.getGraphComponent().getGraph().getModel()).execute(new TokenColorChange(editor, tokenLabel, newValue));\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "@Override\n\tpublic void valueChange(ValueChangeEvent event) {\n\t\t\n\t}", "public void setCoinCode(String coinCode) {\n this.coinCode = coinCode;\n }", "public void colorButtonClicked(String tag){\n color.set(tag);\n }", "@Override\n public void onPinChange(int pinLength, String intermediatePin) {\n }", "public void mouseClicked(MouseEvent e) {\n\t\tthis.setColor(colorHolder.getColor());\n\t}", "@Override\n public void onCodeSent(String s, PhoneAuthProvider.ForceResendingToken forceResendingToken){\n super.onCodeSent(s, forceResendingToken);\n Log.d(TAG, \"sendVerificationCode: VERIFY SENT\");\n verificationId = s;\n }", "public void setSignName(String signName) {\n this.signName = signName;\n }", "public void setEVENT_CODE(java.lang.String value)\n {\n if ((__EVENT_CODE == null) != (value == null) || (value != null && ! value.equals(__EVENT_CODE)))\n {\n _isDirty = true;\n }\n __EVENT_CODE = value;\n }", "@Override\r\n public String getUniCode()\r\n {\r\n if (getColor() == 'N')\r\n {\r\n setCode(\"\\u265B\");\r\n }\r\n else\r\n {\r\n setCode(\"\\u2655\");\r\n }\r\n return getCode();\r\n }", "@Override\n public void onColorSelected(int selectedColor) {\n }", "public native final EditorBaseEvent backgroundColor(String val) /*-{\n\t\tthis.backgroundColor = val;\n\t\treturn this;\n\t}-*/;", "public SignIn() {\n this.setTitle(\"Transcripción Mixteca: Ingresar\");\n initComponents();\n //ECL: Create SignInBE here\n backend = new SignInBE();\n backend.setupDB();\n\n //how to set the color of the JFrame\n getContentPane().setBackground(new Color(148, 189, 203));\n jForgottenPassword.setForeground(new java.awt.Color(200, 200, 200));\n\n }", "@Override\r\n public void onSign(SignEvent event){\n if (event.getAction().equals(SignEvent.Action.SIGNED_IN)) {\r\n //write cookies if keep signed in\r\n if (event.getAccountKey() != null && !event.getAccountKey().isEmpty()) {\r\n cookie.setAccountKey(Shared.MY_SESSION, event.getAccountKey());\r\n }\r\n //already signed in, load workspace\r\n RootPanel.get().clear();\r\n Widget workspace = new Workspace().asWidget();\r\n RootPanel.get().add(workspace); \r\n Info.display(\"Welcome\", \"Signed in as \" + Shared.MY_SESSION.getAccount().getFullName());\r\n }\r\n //process sign_out\r\n if (event.getAction().equals(SignEvent.Action.SIGN_OUT)){\r\n String accountKey = cookie.getAccountKey(Shared.MY_SESSION);\r\n Shared.RPC.signOutAndDetachSession(Shared.MY_SESSION, accountKey, new AsyncCallback<Session>() {\r\n @Override\r\n public void onSuccess(Session s) {\r\n if (s != null) {\r\n Shared.MY_SESSION = s;\r\n //sign out seems OK on server side, dispatch SIGNED_OUT event\r\n Shared.EVENT_BUS.fireEvent(new SignEvent(SignEvent.Action.SIGNED_OUT)); //WARN: don't dispatch SIGN_OUT avoiding deadlock call\r\n } else {\r\n Info.display(\"Error\", \"Account is already signed out or database error\");\r\n }\r\n }\r\n\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n Info.display(\"Error\", caught.getMessage());\r\n }\r\n });\r\n }\r\n //process signed_out\r\n if (event.getAction().equals(SignEvent.Action.SIGNED_OUT)){\r\n //delete cookies\r\n cookie.discardCookie(Shared.MY_SESSION); \r\n //return UI to welcome status\r\n RootPanel.get().clear();\r\n RootPanel.get().add(new LoginPage()); \r\n Info.display(\"See you\", \"You are now signed out!\");\r\n }\r\n }", "@Override\n public void peerImageChanged(CallPeerChangeEvent evt)\n {\n if (callPeer.equals(evt.getSourceCallPeer()))\n renderer.setPeerImage((byte[]) evt.getNewValue());\n }", "@Override\r\n public void onRegionClickHighlighted(ProteinRegionHighlightEvent event) {\n }", "public String getSign() {\n\n return this.sign;\n }", "@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}", "@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}", "@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}", "@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}", "@Override\r\n public void actionPerformed(ActionEvent event) {\r\n if (event.getSource() == redInput ||\r\n event.getSource() == greenInput ||\r\n event.getSource() == blueInput) {\r\n int value;\r\n int red = currentColor.getRed();\r\n int green = currentColor.getGreen();\r\n int blue = currentColor.getBlue();\r\n try {\r\n value = Integer.parseInt((String) event.getActionCommand());\r\n } catch (Exception e) {\r\n value = -1;\r\n }\r\n if (event.getSource() == redInput) {\r\n if (value >= 0 && value < 256)\r\n red = value;\r\n else\r\n redInput.setText(String.valueOf(red));\r\n } else if (event.getSource() == greenInput) {\r\n if (value >= 0 && value < 256)\r\n green = value;\r\n else\r\n greenInput.setText(String.valueOf(green));\r\n } else if (event.getSource() == blueInput) {\r\n if (value >= 0 && value < 256)\r\n blue = value;\r\n else\r\n blueInput.setText(String.valueOf(blue));\r\n }\r\n currentColor = new Color(red, green, blue);\r\n newSwatch.setForeground(currentColor);\r\n colorCanvas.setColor(currentColor);\r\n } else if (event.getSource() == okButton) {\r\n // Send action event to all color listeners\r\n if (colorListeners != null) {\r\n ActionEvent new_event = new ActionEvent(this,\r\n ActionEvent.ACTION_PERFORMED,\r\n CHANGE_ACTION);\r\n colorListeners.actionPerformed(new_event);\r\n }\r\n setVisible(false);\r\n } else if (event.getSource() == cancelButton) {\r\n if (colorListeners != null) {\r\n ActionEvent new_event = new ActionEvent(this,\r\n ActionEvent.ACTION_PERFORMED,\r\n CANCEL_ACTION);\r\n colorListeners.actionPerformed(new_event);\r\n }\r\n currentColor = null;\r\n setVisible(false);\r\n }\r\n }", "public void mousePressed(MouseEvent me) {\n\t\t\tfigure.setBackgroundColor(ColorConstants.yellow);\n\t\t}", "@Override\r\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\tComponent com = (Component)e.getSource(); //마우스가 올라간 컴포넌트 알아냄.\r\n\t\t\tcom.setBackground(Color.GRAY);\r\n\t\t}", "public void onSignInClick(MouseEvent e) {\n\t\tsignin();\n\t}", "private void makeChange(int color) {\n StringBuilder sb = new StringBuilder(\"C:\");\n\n sb.append(Color.red(color)).append(\",\")\n .append(Color.green(color)).append(\",\")\n .append(Color.blue(color)).append(\",\")\n .append(\"-1\\n\");\n\n sendMessage(sb.toString());\n }", "public void stateChanged(ChangeEvent e) {\n\t\tif (!_receive) {\r\n\t\t\t// jesli nastapila zmiana na suwaku nastepuej odczyt wart z\r\n\t\t\t// wszystkich suwakow, utworzenie koloru i umieszczenie go w kolejce\r\n\t\t\tColor col = new Color(canvas.getBackground().getRed(), canvas.getBackground().getGreen(),\r\n\t\t\t\t\tcanvas.getBackground().getBlue());\r\n\t\t\tColorQueue.getInstance().putColor(col);\r\n\t\t}\r\n\r\n\t}", "public String getSignType() {\n return signType;\n }", "@Override\n\t\t\tpublic void actionPerformed(final ActionEvent evt) {\n\t\t\t\taddressChanged();\n\t\t\t}", "public void SEC() {\n konami.cc |= CC_C;\n }", "@Override\n\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\n\t\t\tchar[] contraseņa;\n\t\t\tcontraseņa = contraseņa1.getPassword();\n\t\t\tif(contraseņa.length<8||contraseņa.length>12)\n\t\t\t{\n\t\t\t\tcontraseņa1.setBackground(Color.RED);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcontraseņa1.setBackground(Color.WHITE);\n\t\t\t}\n\t\t}", "public String getSign() {\n return sign;\n }", "@Override // from Object\n public int hashCode ()\n {\n return badgeCode;\n }", "private void handleMouseExit(MouseEvent mouseEvent) {\n if (simulator.isEditable()) {\n setColor();\n }\n }", "@EventHandler\n\tvoid signClicker(final PlayerInteractEvent event) {\n\t\tMarioKart.powerupManager.calculate(event.getPlayer(), event);\n\t\tif(MarioKart.fullServer){\n\t\t\treturn;\n\t\t}\n\t\tif (event.getAction() != Action.RIGHT_CLICK_BLOCK) {\n\t\t\treturn;\n\t\t}\n\t\tif (!(event.getClickedBlock().getState() instanceof Sign)) {\n\t\t\treturn;\n\t\t}\n\t\tfinal Sign sign = (Sign) event.getClickedBlock().getState();\n\t\tString[] lines = sign.getLines();\n\t\tMarioKart.plugin.getServer().getScheduler().runTaskAsynchronously(MarioKart.plugin, new BukkitRunnable(){\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tif(plugin.signManager.isQueueSign(sign)){\n\t\t\t\t\tString trackName = ChatColor.stripColor(sign.getLine(0));\n\t\t\t\t\tMarioKart.plugin.raceCommandExecutor.urace(event.getPlayer(), new String[] {\n\t\t\t\t\t\t\"join\", trackName, \"auto\" },\n\t\t\t\t\t\tevent.getPlayer());\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}});\n\t\tif (!ChatColor.stripColor(lines[0]).equalsIgnoreCase(\"[MarioKart]\")) {\n\t\t\treturn;\n\t\t}\n\t\tString cmd = ChatColor.stripColor(lines[1]);\n\t\tif (cmd.equalsIgnoreCase(\"list\")) {\n\t\t\tint page = 1;\n\t\t\ttry {\n\t\t\t\tpage = Integer.parseInt(ChatColor.stripColor(lines[2]));\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t}\n\t\t\tMarioKart.plugin.raceCommandExecutor.urace(event.getPlayer(), new String[] { \"list\",\n\t\t\t\t\t\"\" + page }, event.getPlayer());\n\t\t} else if (cmd.equalsIgnoreCase(\"leave\")\n\t\t\t\t|| cmd.equalsIgnoreCase(\"quit\") || cmd.equalsIgnoreCase(\"exit\")) {\n\t\t\tMarioKart.plugin.raceCommandExecutor.urace(event.getPlayer(), new String[] { \"leave\" },\n\t\t\t\t\tevent.getPlayer());\n\t\t} else if (cmd.equalsIgnoreCase(\"join\")) {\n\t\t\tString mode = ChatColor.stripColor(lines[3]);\n\t\t\tif (mode.length() > 0) {\n\t\t\t\tMarioKart.plugin.raceCommandExecutor.urace(event.getPlayer(), new String[] {\n\t\t\t\t\t\t\"join\", ChatColor.stripColor(lines[2]).toLowerCase(),\n\t\t\t\t\t\tmode }, event.getPlayer());\n\t\t\t} else {\n\t\t\t\tMarioKart.plugin.raceCommandExecutor.urace(event.getPlayer(), new String[] {\n\t\t\t\t\t\t\"join\", ChatColor.stripColor(lines[2]).toLowerCase() },\n\t\t\t\t\t\tevent.getPlayer());\n\t\t\t}\n\t\t} else if (cmd.equalsIgnoreCase(\"shop\")) {\n\t\t\tMarioKart.plugin.raceCommandExecutor.urace(event.getPlayer(), new String[] { \"shop\" },\n\t\t\t\t\tevent.getPlayer());\n\t\t}\n\t\treturn;\n\t}", "public void updateScoreSign(String updatedString){\n scoreSign.setText(updatedString);\n }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent actionevent)\r\n\t\t{\n\t\t\tColor c = (Color) getValue( \"Color\" );\r\n\t\t\tsetBackground( c );\r\n\t\t}", "public String getSignReturn() {\n return signReturn;\n }", "public SignType getSignType();", "private void onColourWheelInput(MouseEvent e)\n {\n int x = (int)e.getX(), y = (int)e.getY();\n try\n {\n setColour(pickerWheel.getImage().getPixelReader().getColor(x, y), true);\n syncSliderInput();\n syncHexInput();\n syncRgbInput();\n } catch (IndexOutOfBoundsException ex){}\n }", "public void receivePinsetterEvent(PinsetterEvent pe){\n\tif ( !(pe.isFoulCommited()) ) {\n\t \tJLabel tempPin = new JLabel ( );\n\t \tfor ( int c = 0; c < 10; c++ ) {\n\t\t\t\tboolean pin = pe.pinKnockedDown ( c );\n\t\t\t\ttempPin = (JLabel)pinVect.get ( c );\n\t\t\t\tif ( pin ) {\n\t\t \t\ttempPin.setForeground ( Color.lightGray );\n\t\t\t\t}\n\t \t}\n \t}\n\t\tif ( pe.getThrowNumber() == 1 ) {\n\t \t\t secondRoll.setBackground ( Color.yellow );\n\t\t}\n\tif ( pe.pinsDownOnThisThrow() == -1) {\n\t\tfor ( int i = 0; i != 10; i++){\n\t\t\t((JLabel)pinVect.get(i)).setForeground(Color.black);\n\t\t}\n\t\tsecondRoll.setBackground( Color.black);\n\t}\n }", "public void setSignType(String signType) {\n this.signType = signType == null ? null : signType.trim();\n }", "public void handleKeyPressed(KeyEvent event) {\n keyInput.set(String.valueOf(event.getCode()));\n }", "public void mousePressed(MouseEvent e) {\n\t\t\tif(work){\n\t\t\t\tif(num==1){\n\t\t\t\t\t\n\t\t\t\t\tsignIn.setIcon(new ImageIcon(\"src/image/userUi/sign in2.png\") );\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(num==2){\n\t\t\t\t\tregister.setIcon(new ImageIcon(\"src/image/userUi/register2.png\") );\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}", "private void onBucketInput(MouseEvent e)\n {\n Circle bucket = (Circle)e.getTarget();\n if (e.getButton().equals(MouseButton.PRIMARY))\n {\n setColour((Color)bucket.getFill(), true);\n syncRgbInput();\n syncHexInput();\n syncSliderInput();\n }\n else if (e.getButton().equals(MouseButton.SECONDARY))\n {\n bucket.setFill(toolColour);\n Tooltip.uninstall(bucket, bucketTooltip);\n }\n }", "@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint amount = betslider.getValue();\n\t\t\t\tbetAmount.setText(\"$\"+amount);\n\t\t\t}", "public void setSignal(java.awt.Image sig) {\n\t\timage = sig;\n\t\tjsignal = null;\n\t}", "public void setSignReturn(String signReturn) {\n this.signReturn = signReturn == null ? null : signReturn.trim();\n }", "@Override\n\tpublic void stateChanged(ChangeEvent arg0) {\n\t\t\n\t}", "@Override\r\n\t\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\t\tSim.setForeground(Color.DARK_GRAY);\r\n\t\t\t\t\t}", "@Override\n public void handleGpioPinDigitalStateChangeEvent(GpioPinDigitalStateChangeEvent event) {\n System.out.println(\" --> GPIO PIN STATE CHANGE: \" + event.getPin() + \" = \" + event.getState());\n }", "private void updateBtnMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateBtnMouseEntered\n updateBtn.setBackground(Color.decode(\"#339966\"));\n }", "@FXML\n\tpublic void handleKeyPressedCryptoCurrency(KeyEvent event) {\n\t\tif (event.getCode() == KeyCode.ENTER) {\n\t\t\tcryptoCurrency.setText(cryptoCurrency.getText());\n\t\t\ttype.requestFocus();\n\t\t}\n\t}", "public void canonize(int color, StringBuffer canonicalVertexSignature) {\n if (this.getVertexCount() == 0) return;\n \n // Only add a new list of Integers if this is the first time this \n // function is called for a particular root vertex.\n // The labelling that corresponds to the mapping for the vertex\n // signature should be the only one stored.\n \n if ( color == 1 ) {\n \tthis.currentCanonicalLabelMapping = new ArrayList<Integer>();\n \tthis.canonicalLabelMapping.add(this.currentCanonicalLabelMapping); \n }\n \n this.dag.updateVertexInvariants();\n \n List<Integer> orbit = this.dag.createOrbit();\n \n if (orbit.size() < 2) {\n // Color all uncolored atoms having two parents \n // or more according to their invariant.\n for (InvariantIntIntPair pair : this.dag.getInvariantPairs()) {\n this.dag.setColor(pair.index, color);\n color++;\n }\n // Creating the root signature string.\n String signature = this.toString(); \n if (signature.compareTo(canonicalVertexSignature.toString()) > 0) {\n int l = canonicalVertexSignature.length();\n canonicalVertexSignature.replace(0, l, signature);\n this.canonicalLabelMapping.set(\n this.canonicalLabelMapping.size() - 1,\n this.currentCanonicalLabelMapping);\n }\n return;\n } else {\n for (int o : orbit) {\n this.dag.setColor(o, color);\n Invariants invariantsCopy = this.dag.copyInvariants();\n this.canonize(color + 1, canonicalVertexSignature);\n this.dag.setInvariants(invariantsCopy);\n this.dag.setColor(o, 0);\n }\n }\n }", "protected abstract void selectedCurrencyChanged();", "@Override\r\n public void mousePressed(MouseEvent e) {\n setBackground(Color.BLUE);\r\n \r\n \r\n }", "public void gxlValueChanged(GXLValueModificationEvent e) {\n\t}", "public void updateSignatureStrings() {\n\t\t\tm_sStringList[m_nFIELD_SIGNATURE_STATE] =\n\t\t\t\t\t\t\tm_aSIGNATURE_STATE_STRINGS.get(\n\t\t\t\t\t\t\t\t\tSignatureState.fromInt(getSignatureState())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t );\n\t\t\tm_sStringList[m_nFIELD_DOCUMENT_VERF_STATE] = \n\t\t\t\tm_aDOCUMENT_VERIF_STATE_CONDT_STRINGS.get( m_sDOCUMENT_VERIF_STATE[getDocumentVerificationState()]);\n\t\t\t\n\t\t\tif(m_aChildCertificate != null) {\n\t\t\t\t//the certificate state value should be udated elsewhere\n\t\t\t\t//set the node name\n\t\t\t\tXOX_X509CertificateDisplay aCertDisplay = \n\t\t\t\t\t(XOX_X509CertificateDisplay)UnoRuntime.queryInterface(XOX_X509CertificateDisplay.class, \n\t\t\t\t\t\t\tm_aChildCertificate.getCertificate());\n\t\t\t\t\n\t\t\t\tif(aCertDisplay != null) {\n\t\t\t\t\t//set the certificate owner\n\t\t\t\t\tm_sStringList[m_nFIELD_OWNER_NAME] = \"b\"+aCertDisplay.getSubjectDisplayName();\t\n\t\t\t\t\t//grab the CA\n\t\t\t\t\tm_sStringList[m_nFIELD_ISSUER] = \"r\"+aCertDisplay.getIssuerDisplayName();\n\t\t\t\t}\n\t\t\t\t//set the CA state and the certificate state\n\t\t\t\t//the certificate state value (only to the string fields)\n\t\t\t\t//grab the string for certificate status\n\t\t\t\tm_sStringList[m_nFIELD_CERTIFICATE_STATE] =\n\t\t\t\t\t\t\t\tm_aCERTIFICATE_STATE_STRINGS.get(\n\t\t\t\t\t\t\t\t\t\tCertificateState.fromInt( m_aChildCertificate.getCertificateState())\n\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\tm_sStringList[m_nFIELD_CERTIFICATE_VERF_CONDITIONS] =\n\t\t\t\t\t\t\tm_aCERTIFICATE_STATE_CONDITIONS_STRINGS.get(\n\t\t\t\t\t\t\t\t\tCertificateStateConditions.fromInt(m_aChildCertificate.getCertificateStateConditions())\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\tm_sStringList[m_nFIELD_ISSUER_VERF_CONDITIONS] =\n\t\t\t\t\t\t\tm_aCA_STATE_CONDITIONS_STRINGS.get(\n\t\t\t\t\t\t\t\t\tCertificationAuthorityState.fromInt(m_aChildCertificate.getCertificationAutorityState())\n\t\t\t\t\t\t\t\t\t\t\t);\t\t\n\t\t\t}\n\t\t\t//retrieve the signing time and display it\n\t\t\tif(get_xSignatureState() != null)\n\t\t\t\tm_sStringList[m_nFIELD_DATE_SIGN] = \"s\"+get_xSignatureState().getSigningTime();\n\t}", "public void entityClassChanged(EntityClass ec, int signal)\r\n\t{\n\r\n\t\tswitch (signal) {\r\n\t\t\tcase TaListener.EC_ANGLE_SIGNAL:\r\n\t\t\tcase TaListener.STYLE_SIGNAL:\r\n\t\t\t{\r\n\t\t\t\tEntityInstance\troot = getRootInstance();\r\n\r\n\t\t\t\tec.adjustEdgePoints();\r\n\t\t\t\tif (root != null) {\r\n\t\t\t\t\troot.shapeChanges(ec);\r\n\t\t\t\t}\r\n\t\t\t\tm_flags |= REPAINT_FLAG;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase TaListener.EC_IMAGE_SIGNAL:\r\n\t\t\tcase TaListener.COLOR_SIGNAL:\r\n\t\t\tcase TaListener.OPEN_COLOR_SIGNAL:\r\n\t\t\tcase TaListener.LABEL_COLOR_SIGNAL:\r\n\t\t\t{\r\n\t\t\t\tEntityInstance\troot = getRootInstance();\r\n\r\n\t\t\t\tif (root != null) {\r\n\t\t\t\t\troot.entityAppearanceChanges(ec);\r\n\t\t\t\t}\r\n\t\t\t\tm_flags |= REPAINT_FLAG;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase TaListener.EC_ICON_SIGNAL:\r\n\t\t\t{\t\r\n\t\t\t\ticonsChange(ec);\r\n\t\t\t\tm_flags |= REPAINT_FLAG;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setSigner(ISigner theSigner) {\r\n\t\tmySigner = theSigner;\r\n\t}", "public void gxlAttrValueChanged(GXLAttrValueModificationEvent e) {\n\t}", "public ColouredString changeColour(ColourPair colour) {\n return new ColouredString(colour, this.content);\n }", "@Override\r\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\tSim.setForeground(Color.darkGray);\r\n\t\t\t\t}", "public void setEventCode(java.lang.Integer value) {\n\t\tsetValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.EVENT_CODE, value);\n\t}", "private void signalInvalidPassword() {\r\n passText.setBackgroundColor(ContextCompat.getColor(this, R.color.errorBackground));\r\n Toast.makeText(this, \"The password was incorrect!\", Toast.LENGTH_SHORT).show();\r\n }", "@Override\n public void onCodeSent(@NonNull String s, @NonNull PhoneAuthProvider.ForceResendingToken forceResendingToken) {\n super.onCodeSent(s, forceResendingToken);\n verificationId = s;\n // start showing the pin view and verify button\n Toast.makeText(MainActivity.this, \"Enter OTP to verify\", Toast.LENGTH_SHORT).show();\n OTP.setVisibility(View.VISIBLE);\n verifyButton.setVisibility(View.VISIBLE);\n }", "public void setSignDate(Date signDate) {\n this.signDate = signDate;\n }", "public void setIndicateColor(Color c){\n\t\tthis.indicateColor=c;\n\t}", "Color getColor(ActionEvent event) {\n JComboBox box = (JComboBox) event.getSource();\n return getDisplayConventions().getColor(\n (String) box.getSelectedItem());\n }", "@Override\r\n public void processMouseEvent(MouseEvent event) {\r\n if (event.getID() == MouseEvent.MOUSE_PRESSED) {\r\n // Subtract off the offsets to make checking easier\r\n int mx = event.getX() - offsetX - selectDiameter / 2 - 1;\r\n int my = event.getY() - offsetY - selectDiameter / 2 - 1;\r\n\r\n // Check if outside color selection area\r\n if (mx < 0 || my < 0 || my > diameter)\r\n return;\r\n if (mx > diameter + selectDiameter / 2 + spacing + valueBarWidth)\r\n return;\r\n\r\n boolean new_color = false;\r\n if (mx < diameter) {\r\n // In color wheel, set the hue and saturation\r\n if (getColorAt(currentHSBColor, mx, my, false)) {\r\n colorX = mx;\r\n colorY = my;\r\n redrawValueBar = true;\r\n new_color = true;\r\n }\r\n } else if (mx > diameter + selectDiameter / 2 + spacing && my < diameter - 2) {\r\n // In value bar, set the brightness\r\n currentHSBColor[2] = (float) (diameter - 2 - my) / (diameter - 2);\r\n new_color = true;\r\n }\r\n if (new_color) {\r\n Color color = Color.getHSBColor(currentHSBColor[0],\r\n currentHSBColor[1],\r\n currentHSBColor[2]);\r\n // Call function in parent to update the color\r\n ColorPicker.this.changeColor(color);\r\n repaint();\r\n }\r\n } else\r\n super.processMouseEvent(event);\r\n }", "public void getSigned (final NodeID nodeID, GetCallBack listener);", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tamountChange(mainLabel, amountInput, buttons2, assets[0], $, labels, changeStart, assets, changes);\n\t\t\t}", "public void propertyChange(PropertyChangeEvent evt) {\r\n\t\t// user code begin {1}\r\n\t\t// user code end\r\n\t\tif (evt.getSource() == getJTextField() && (evt.getPropertyName().equals(\"horizontalAlignment\")))\r\n\t\t\tconnEtoC3(evt);\r\n\t\tif (evt.getSource() == getJTextField() && (evt.getPropertyName().equals(\"focusAccelerator\")))\r\n\t\t\tconnEtoC4(evt);\r\n\t\t// user code begin {2}\r\n\t\t// user code end\r\n\t}", "public void mouseEntered(java.awt.event.MouseEvent evt) {\n button.setForeground(coloursObject.getButtonTextHoverColour());//the colour of the text when hovered over\n if(type == \"close\"){//if the close button is being edited\n button.setBackground(new Color(237,64,64));//colour chosen for the \n }\n if(type == \"scale\"){//if the fullscreen button is being edited\n button.setBackground(coloursObject.getMenuPanelColour());\n }\n }", "public SignalCanvas(jigl.signal.Signal sig) throws BadSignalException {\n\t\tsuper();\n\t\timage = getJavaSignal(sig);\n\t\tjsignal = sig;\n\t}", "@Override\n\tpublic void stateChanged(ChangeEvent e) {\n\t}" ]
[ "0.6816308", "0.5278512", "0.52204674", "0.5072807", "0.5063955", "0.5039004", "0.50275946", "0.49513045", "0.49024564", "0.48188585", "0.4794606", "0.4792897", "0.4781667", "0.47632688", "0.47453076", "0.47427413", "0.47294298", "0.47222495", "0.4681101", "0.46370348", "0.4607346", "0.458209", "0.45648277", "0.45221683", "0.45129082", "0.4498781", "0.4497586", "0.4492193", "0.44590974", "0.44584012", "0.44553888", "0.4449569", "0.4444729", "0.44364017", "0.4436188", "0.44333914", "0.44188744", "0.44162107", "0.44143724", "0.44066465", "0.44057763", "0.43999022", "0.43999022", "0.43999022", "0.43999022", "0.43996176", "0.4393122", "0.43785095", "0.43760496", "0.43707192", "0.4364674", "0.43646225", "0.43530092", "0.43467617", "0.4342699", "0.43419853", "0.43413138", "0.43273777", "0.4326471", "0.43262482", "0.4321266", "0.43200195", "0.4317157", "0.43156365", "0.43148032", "0.4306699", "0.42918518", "0.42911038", "0.42898482", "0.42873412", "0.42794213", "0.42738625", "0.4273726", "0.42630482", "0.42607448", "0.4250502", "0.42501363", "0.42488143", "0.424579", "0.42429546", "0.4242436", "0.42420852", "0.4234517", "0.42328408", "0.4229782", "0.42263508", "0.42151773", "0.42131135", "0.4211997", "0.42079532", "0.420767", "0.4207633", "0.4202499", "0.41998753", "0.41985336", "0.41947055", "0.41946048", "0.41889605", "0.41888934", "0.41887128" ]
0.67774135
1
default Property constructor; it will chain automatically to the (int, int, int, int) constructor
public Property() { this(0, 0, 0, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Property() {}", "public Property(int xLength, int yWidth, int xLeft, int yTop) {\n this(xLength, yWidth, xLeft, yTop, DEFAULT_REGNUM);\n }", "public Property()\r\n {\r\n }", "DefaultConstructor(int a){}", "public Property(Property prop, int regNum) {\n // this code provided by Dave Houtman [2020] personal communication\n this(prop.getXLength(), prop.getYWidth(), prop.getXLeft(), prop.getYTop(), regNum);\n }", "public Property() {\r\n\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\tscoringmethod = 0;\r\n\t\tmindistance = 0.5;\r\n\t}", "public Property(Property p) {\r\n\t\tpositive = Arrays.copyOf(p.positive, p.positive.length);\r\n\t\tnegative = Arrays.copyOf(p.negative, p.negative.length);\r\n\t\tstop = Arrays.copyOf(p.stop, p.stop.length);\r\n\t\tscoringmethod = p.scoringmethod;\r\n\t\tmindistance = p.mindistance;\r\n\t}", "defaultConstructor(){}", "private PropertySingleton(){}", "public DPropertyElement() {\n super(null, null);\n }", "public Property(String name, int pos, int rent, int oneH, int twoH, int threeH, int fourH,\n\t int hotel, int value, int houses) {\n\t\tthis.rent = rent;\n\t\tthis.oneH = oneH;\n\t\tthis.twoH = twoH;\n\t\tthis.threeH = threeH;\n\t\tthis.fourH = fourH;\n\t\tthis.hotel = hotel;\n\t\tthis.value = value;\n\t\tthis.houses = houses;\n\t\tbuildings = 0;\n\t\tmonopoly = false;\n\t\towned = false;\n\n\t\tthis.pos = pos;\n\t\tthis.name = name;\n\t}", "public Shape() { this(X_DEFAULT, Y_DEFAULT); }", "public Int() {\n this(0);\n }", "Property createProperty();", "void DefaultConstructor(){}", "public Properties(){\n\n }", "public Int(int value) { \n this.value = value; \n }", "public Property(String name) {\n super(SOME, NONE);\n this.name = name;\n }", "public Propuestas() {}", "public IntegerField() {\r this(3, 0, 0, 0);\r }", "public PotionEffect(int paramInt1, int paramInt2, int paramInt3)\r\n/* 21: */ {\r\n/* 22: 32 */ this(paramInt1, paramInt2, paramInt3, false, true);\r\n/* 23: */ }", "public MyInteger( )\n {\n this( 0 );\n }", "Rectangle()\n {\n this(1.0,1.0);\n }", "public Point(int x, int y)\n\t{\n\t\t// Instantiate properties with parameter values \n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "Fraction () {\n this (0, 1);\n }", "public PropertyParser()\n\t{\n\t\tthis(System.getProperties());\n\t}", "public Identity()\n {\n super( Fields.ARGS );\n }", "public Pizza() {\n this(\"small\", 1, 1, 1);\n }", "public Property(int xLength, int yWidth, int xLeft, int yTop, int regNum) {\n setXLength(xLength);\n setYWidth(yWidth);\n setXLeft(xLeft);\n setYTop(yTop);\n setRegNum(regNum);\n }", "public void init(Properties props) ;", "TypesOfConstructor(int value){\n num = value;\n }", "public Property() {\n\t\tcity=\"\";\n\t\towner=\"\";\n\t\tpropertyName=\"\";\n\t\trentAmount=0;\n\t\tplot= new Plot(0,0,1,1);\n\t}", "private void __sep__Constructors__() {}", "public Complex(){\r\n\t this(0,0);\r\n\t}", "public Dice() { \n this(6); /* Invoke the above Dice constructor with value 6. */ \n }", "public Rectangle() {\n this(50, 40);\n }", "public CompositeProperty(List<Node> segments) {\n this(segments, PropertyMergeMode.NONE);\n }", "public PropertyParser(Properties props)\n\t{\n\t\t_props = props;\n\t}", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "public Tuple() {\n this(new ArrayList<Object>());\n }", "private void addConstructors() {\n\t\tthis.rootBindingClass.getConstructor().body.line(\"super({}.class);\\n\", this.name.getTypeWithoutGenerics());\n\t\tGMethod constructor = this.rootBindingClass.getConstructor(this.name.get() + \" value\");\n\t\tconstructor.body.line(\"super({}.class);\", this.name.getTypeWithoutGenerics());\n\t\tconstructor.body.line(\"this.set(value);\");\n\t}", "public PrimitivePropertyTest(String testName)\n {\n super(testName);\n }", "public PotionEffect(int paramInt1, int paramInt2)\r\n/* 16: */ {\r\n/* 17: 28 */ this(paramInt1, paramInt2, 0);\r\n/* 18: */ }", "ConstuctorOverloading(int num){\n\t\tSystem.out.println(\"I am contructor with 1 parameter\");\n\t}", "public ListElement()\n\t{\n\t\tthis(null, null, null); //invokes constructor with 3 arguments\n\t}", "private PropertyHolder() {\n }", "public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}", "public EntityPropertyBean() {}", "public Node(){\n this(9);\n }", "PropertyCallExp createPropertyCallExp();", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "PrimitiveProperty createPrimitiveProperty();", "public Vertex(int value) {\n this(value, null);\n }", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "public Constructor(){\n\t\t\n\t}", "public ConstructorsDemo() \n\t {\n\t x = 5; // Set the initial value for the class attribute x\n\t }", "public Card() { this(12, 3); }", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "private Point(int param, double value) {\r\n this(param, value, false);\r\n }", "<C, P> PropertyCallExp<C, P> createPropertyCallExp();", "public Value(){}", "public DimensionProperties() {\n }", "@SuppressWarnings(\"unused\")\n public Coordinate() {}", "public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}", "public Property(Property p) {\n\t\tcity=p.getCity();\n\t\towner=p.getOwner();\n\t\tpropertyName=p.getPropertyName();\n\t\trentAmount=p.getRentAmount();\n\t\tplot= new Plot(p.plot);\n\t}", "public Value() {}", "public Property(int boardPosition, String name, int value, int rentPrice, int mortgagePrice, int redeemPrice) {\n this.boardPosition = boardPosition;\n this.name = name;\n this.value = value;\n this.rentPrice = rentPrice;\n this.mortgagePrice = mortgagePrice;\n this.isMortgaged = false;\n this.redeemPrice = redeemPrice;\n this.owner = null;\n }", "public MyPoint1 (double x, double y) {}", "protected Int() {}", "public MyInteger( int x )\n {\n value = x;\n }", "public Value() {\n }", "protected Pair() {\n\t\t\n\t\tsuper(2);\n\t}", "public Shape(int x, int y) {\n\t\tthis(x, y, DEFAULT_DELTA_X, DEFAULT_DELTA_Y, DEFAULT_WIDTH, DEFAULT_HEIGHT);\n\t}", "protected CSSColorPropertyValue(final int colorInt,\n final CommonTree tree,\n final TokenStream tokenStream)\n {\n super(tree, tokenStream, CSSModelTreeType.PROPERTY_VALUE);\n this.token = tree.token;\n this.colorInt = colorInt;\n }", "public Pojo1110110(){\r\n\t}", "public Employee(){\r\n this(\"\", \"\", \"\", 0, \"\", 0.0);\r\n }", "public IntPar(int val) { value = val; }", "public A(int x)\n {\n xValue = x;\n }", "Constructor() {\r\n\t\t \r\n\t }", "private Value() {\n\t}", "public a(int i, Object obj, Object obj2) {\n super(0);\n this.a = i;\n this.b = obj;\n this.c = obj2;\n }", "public IntArrays()\n\t{\n\t\tthis(10);\n\t}", "@Test\n public void testConstructorSetCorrect() {\n String name = \"A modifier\";\n int cost = 10;\n\n Modifier m = new Modifier(name, cost) {\n @Override\n public int getValue() {\n return 0;\n }\n };\n\n assertEquals(name, m.getName());\n assertEquals(cost, m.getCost());\n }", "public MyVertex( ) {\n // Set ID and increment so next Vertex count++\n id = count;\n count++;\n\n // Set color to NULL initially\n color = null;\n\n // Create new Lists\n incidentEdges = new ArrayList< Edge >( );\n adjacentVertices = new ArrayList< Vertex >( );\n }", "public PencilPen() {\n this(10.0);\n }", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "public NestedInteger(int value) { }", "public Point(Point obj)\n\t{\n\t\t// Instantiate properties with parameter values \n\t\tthis.x = obj.x;\t\t\t\t\t\t\t\t\t\t\t\t// Shallow copy point's x-coordinate\t\n\t\tthis.y = obj.y;\t\t\t\t\t\t\t\t\t\t\t\t// Shallow copy point's y-coordinate\n\t}", "public Circle() {\n this( 1.0 ); \n }", "public SuperClass(int x)\r\n {\r\n _x = x;\r\n }", "public Graph()\r\n {\r\n this( \"x\", \"y\" );\r\n }", "public Shape() {\n\t\tthis(DEFAULT_X_POS, DEFAULT_Y_POS, DEFAULT_DELTA_X, DEFAULT_DELTA_Y, DEFAULT_WIDTH, DEFAULT_HEIGHT);\n\t}", "public User(){\n this(null, null);\n }", "public Complex() {\n this(0);\n }", "public NestedInteger() { }", "public SnakesAndLadders()\n {\n this(2);\n }", "public Pair() {\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "Point(int x_, int y_){\n x = x_;\n y = y_;\n }", "public Triangle() {\n this(0,0,0,0,0);\n }" ]
[ "0.67038727", "0.66287214", "0.65909374", "0.654258", "0.6494448", "0.6298939", "0.61835086", "0.6174558", "0.6114849", "0.60567164", "0.60027766", "0.6000377", "0.5944991", "0.5938212", "0.59182405", "0.5906597", "0.59030986", "0.58720887", "0.58703274", "0.58689064", "0.58460814", "0.5835186", "0.58321375", "0.5815074", "0.58061594", "0.5792268", "0.5748919", "0.57468116", "0.57268524", "0.5719961", "0.57094395", "0.5705821", "0.5701259", "0.5691018", "0.5689394", "0.5680254", "0.5675796", "0.56616455", "0.5660059", "0.56541264", "0.5644967", "0.5642242", "0.5641483", "0.56350166", "0.5630921", "0.56242776", "0.56134355", "0.56079996", "0.5607511", "0.5591036", "0.55889183", "0.558741", "0.55657613", "0.5565197", "0.5562488", "0.55574816", "0.55445087", "0.5544401", "0.5539807", "0.5530739", "0.552697", "0.5524581", "0.5510511", "0.5510391", "0.54937565", "0.54930824", "0.5485052", "0.5483378", "0.54814774", "0.54774904", "0.54727894", "0.5472086", "0.54715234", "0.54707617", "0.54693043", "0.5467461", "0.546295", "0.54531056", "0.5449725", "0.5449107", "0.54477197", "0.5447095", "0.5446847", "0.5432732", "0.54279137", "0.5425673", "0.5422443", "0.54083467", "0.54062176", "0.54042673", "0.5401986", "0.53989595", "0.5398473", "0.53963417", "0.53915733", "0.5382981", "0.5382755", "0.5369848", "0.5367276", "0.53622115" ]
0.75489867
0
Property Constructor take value xLength, yWidth, xLeft, yTop from user input and default int REGNUM, this one will chain automatic (Property pro, int) constructor
public Property(int xLength, int yWidth, int xLeft, int yTop) { this(xLength, yWidth, xLeft, yTop, DEFAULT_REGNUM); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Property(int xLength, int yWidth, int xLeft, int yTop, int regNum) {\n setXLength(xLength);\n setYWidth(yWidth);\n setXLeft(xLeft);\n setYTop(yTop);\n setRegNum(regNum);\n }", "public Property(Property prop, int regNum) {\n // this code provided by Dave Houtman [2020] personal communication\n this(prop.getXLength(), prop.getYWidth(), prop.getXLeft(), prop.getYTop(), regNum);\n }", "private static Property makeNewPropertyFromUserInput() {\n\t\tint regNum = requestRegNum();\r\n\t\t// check if a registrant with the regNum is available\r\n\t\tif (getRegControl().findRegistrant(regNum) == null) {\r\n\t\t\tSystem.out.println(\"Registrant number not found\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tString coordinateString = getResponseTo(\"Enter top and left coordinates of property (as X, Y): \");\r\n\t\t// split the xLeft and yTop from the string: \"xLeft, yTop\"\r\n\t\tString[] coordinates = coordinateString.split(\", \");\r\n\t\tString dimensionString = getResponseTo(\"Enter length and width of property (as length, width): \");\r\n\t\t// split the xLength and yWidth from the string: \"xLength, yWidth\"\r\n\t\tString[] dimensions = dimensionString.split(\", \");\r\n\t\t// convert all string in the lists to int and create a new Property object with them\r\n\t\tint xLeft = Integer.parseInt(coordinates[0]);\r\n\t\tint yTop = Integer.parseInt(coordinates[1]);\r\n\t\tint xLength = Integer.parseInt(dimensions[0]);\r\n\t\tint yWidth = Integer.parseInt(dimensions[1]);\r\n\t\t// Limit for registrant for property size minimum 20m x 10m and maximum size 1000m x 1000m\r\n\t\tif (xLength < 20 || yWidth < 10 || (xLength + xLeft) > 1000 || (yTop + yWidth) > 1000) {\r\n\t\t\tSystem.out.println(\"Invalid dimensions/coordinates inputs\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tProperty new_prop = new Property(xLength, yWidth, Integer.parseInt(coordinates[0]),\r\n\t\t\t\tInteger.parseInt(coordinates[1]), regNum);\r\n\t\treturn new_prop;\r\n\t}", "public Property() {\n this(0, 0, 0, 0);\n }", "public Property(int location, String name, int group, int[] rent, boolean canBuild, int[] costs, Board myBoard) {\n type = Tile.Type.PROPERTY;\n this.location = location;\n this.name = name;\n this.groupName = group;\n this.rent = rent;\n this.canBuild = canBuild;\n this.costs = costs;\n owner = null;\n this.myBoard = myBoard;\n }", "public Property(String name, int pos, int rent, int oneH, int twoH, int threeH, int fourH,\n\t int hotel, int value, int houses) {\n\t\tthis.rent = rent;\n\t\tthis.oneH = oneH;\n\t\tthis.twoH = twoH;\n\t\tthis.threeH = threeH;\n\t\tthis.fourH = fourH;\n\t\tthis.hotel = hotel;\n\t\tthis.value = value;\n\t\tthis.houses = houses;\n\t\tbuildings = 0;\n\t\tmonopoly = false;\n\t\towned = false;\n\n\t\tthis.pos = pos;\n\t\tthis.name = name;\n\t}", "private Rectangle(Point position, Map<String, Double> properties, Color color, Color fillColor) {\n super(position, color, fillColor);\n this.properties = properties;\n }", "Rectangle()\n {\n this(1.0,1.0);\n }", "public Rectangle() {\n super();\n properties = new HashMap<String, Double>();\n properties.put(\"Width\", null);\n properties.put(\"Length\", null);\n }", "Rectangle(){\n height = 1;\n width = 1;\n }", "Property createProperty();", "public Rectangle() {\n this(50, 40);\n }", "public Property() {\n\t\tcity=\"\";\n\t\towner=\"\";\n\t\tpropertyName=\"\";\n\t\trentAmount=0;\n\t\tplot= new Plot(0,0,1,1);\n\t}", "Polymorph(int x, int y, int height, int width){\n \t this.x = x;\n \t this.y = y;\n \t this.height = height;\n \t this.width = width;\n }", "public Property(int boardPosition, String name, int value, int rentPrice, int mortgagePrice, int redeemPrice) {\n this.boardPosition = boardPosition;\n this.name = name;\n this.value = value;\n this.rentPrice = rentPrice;\n this.mortgagePrice = mortgagePrice;\n this.isMortgaged = false;\n this.redeemPrice = redeemPrice;\n this.owner = null;\n }", "public PropertyComponent(String label, String initValue, int numLines, boolean needsReload, boolean needsRealign) {\n\t\t\tbReload = needsReload;\n\t\t\tbRealign = needsRealign;\n\t\t\t\n\t\t\tif(numLines == 1) {\n\t\t\t\tnMode = MODE_TEXT;\n\t\t\t\ttheComponent = new JTextField(FIELD_COLUMNS);\n\t\t\t\t((JTextField)theComponent).setBorder(BorderFactory.createLineBorder(Color.BLACK));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tnMode = MODE_MULTI_LINE;\n\t\t\t\ttheComponent = new JTextArea(numLines, FIELD_COLUMNS);\n\t\t\t\t((JTextArea)theComponent).setBorder(BorderFactory.createLineBorder(Color.BLACK));\n\t\t\t\t((JTextArea)theComponent).setLineWrap(true);\n\t\t\t\t((JTextArea)theComponent).setWrapStyleWord(true);\n\t\t\t\t((JTextArea)theComponent).setMinimumSize(((JTextArea)theComponent).getPreferredSize());\n//\t\t\t\t((JTextArea)theComponent).setMaximumSize(((JTextArea)theComponent).getPreferredSize());\n\t\t\t}\n\t\t\t\n\t\t\ttheLabel = new JLabel(label);\n\t\t\ttheLabel.setBackground(Color.WHITE);\n\t\t\tsetValue(initValue);\n\t\t\tsetLayout();\n\t\t}", "public Property (String propertyName, String city, double rentAmount, String owner, int x, int y, int width, int depth) {\n\t\tthis.propertyName= propertyName;\n\t\tthis.city= city;\n\t\tthis.rentAmount= rentAmount;\n\t\tthis.owner=owner;\n\t\tplot= new Plot(x,y,width,depth);\n\t}", "public void aggiornaPropulsori(){\n xPropulsore1=new int[]{xCord[0],xCord[0]};\n yPropulsore1=new int[]{yCord[0],yCord[0]+15}; \n xPropulsore2=new int[]{xCord[2],xCord[2]}; \n yPropulsore2=new int[]{yCord[2],yCord[2]+15};\n \n }", "public HorizontalCoords() {\n }", "Rectangle() {\r\n\t\tlength = 1.0;\r\n\t\twidth = 1.0;\r\n\t}", "public Point(int x, int y)\n\t{\n\t\t// Instantiate properties with parameter values \n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "public BuiltInStyle(int xfind, int sn)\r\n/* 10: */ {\r\n/* 11:46 */ super(Type.STYLE);\r\n/* 12: */ \r\n/* 13:48 */ this.xfIndex = xfind;\r\n/* 14:49 */ this.styleNumber = sn;\r\n/* 15: */ }", "public Rectangle(Integer width, Integer height) {\n super(300, 100, \"red\",null);\n this.width = width;\n this.height = height;\n control = new Control(this);\n }", "public Rectangle() {\n\t\tthis.width = 1;\n\t\tthis.hight = 1;\n\t\tcounter++;\n\t}", "public Rectangle()\n {\n length = 1;\n width = 1;\n count++;\n }", "public Property() {\r\n\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\tscoringmethod = 0;\r\n\t\tmindistance = 0.5;\r\n\t}", "public PDRectangle()\n {\n this(0.0f, 0.0f, 0.0f, 0.0f);\n }", "public Rectangle() {\n\t\tthis.corner = new Point();\n\t\tthis.size = new Point();\n\t}", "PropertyCallExp createPropertyCallExp();", "public Rectangle(final String[] input) {\r\n this.startX = Integer.parseInt(input[INPUT1]);\r\n this.startY = Integer.parseInt(input[INPUT2]);\r\n this.height = Integer.parseInt(input[INPUT3]);\r\n this.width = Integer.parseInt(input[INPUT4]);\r\n super.setStrokeColor(Integer.parseInt(input[INPUT5].substring(1), HEX));\r\n super.setStrokeOpacity(Integer.parseInt(input[INPUT6]));\r\n super.setFillColor(Integer.parseInt(input[INPUT7].substring(1), HEX));\r\n super.setFillOpacity(Integer.parseInt(input[INPUT8]));\r\n }", "public Shape() { this(X_DEFAULT, Y_DEFAULT); }", "Property property(int spot) {\n _spot = spot;\n _color = getColor(spot);\n _isEdge = new boolean[40];\n _isEdge[3] = true;\n for (int i = 0; i < 4; i++) {\n _isEdge[i * 10 + 4] = true;\n _isEdge[i * 10 + 9] = true;\n }\n }", "public RectangleShape(int xCoord, int yCoord, int widthOfRect, int heightOfRect)\n {\n System.out.println(\"setting x to: \"+ xCoord+\" & setting y to: \"+ yCoord);\n x = xCoord;\n y = yCoord;\n width = widthOfRect;\n height = heightOfRect;\n }", "public Rectangle(int length, int width) {\n }", "public Property(Property p) {\r\n\t\tpositive = Arrays.copyOf(p.positive, p.positive.length);\r\n\t\tnegative = Arrays.copyOf(p.negative, p.negative.length);\r\n\t\tstop = Arrays.copyOf(p.stop, p.stop.length);\r\n\t\tscoringmethod = p.scoringmethod;\r\n\t\tmindistance = p.mindistance;\r\n\t}", "public Property()\r\n {\r\n }", "public void init(){\n\t\tsetSize (800,600);\n\t\t//el primer parametro del rectangulo en el ancho\n\t\t//y el alto\n\t\trectangulo = new GRect(120,80);\n\t\t\n\t}", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "public PencilPen() {\n this(10.0);\n }", "public Property() {}", "Rectangle(double newWidth, double newHeight){\n height = newHeight;\n width = newWidth;\n }", "public CustomRectangle() { }", "public ColourRect(float x, float y, float w, float h){\n super(x,y,w,h);\n }", "public Rectangle() {\n x = 0;\n y = 0;\n width = 0;\n height = 0;\n }", "public GameComponent(int topLeftXPosition, int topLeftYPosition, int width, int height)\n\t{\n\t\tthis.topLeftXPosition = topLeftXPosition;\n\t\tthis.topLeftYPosition = topLeftYPosition;\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t}", "public Rectangle() {\n\t\twidth = 1;\n\t\theight = 1;\n\t}", "public Rectangle(int length, int width)\n {\n this.length = length;\n this.width = width;\n\n }", "public BaseShape(int aStartX, int aStartY, Color aColor) {\r\n\t\t\r\n\t\tthis.startX = aStartX;\r\n\t\tthis.startY = aStartY;\r\n\t\tthis.color = aColor;\r\n\t}", "public int addProperty(String name, String city, double rent,\r\n\t\t\tString owner, int x, int y, int width, int depth) {\r\n\t\tProperty p = new Property(name, city, rent, owner, x, y, width, depth);\r\n\t\r\n\t\tif(p == null) {\r\n\t\t\treturn -2;\r\n\t\t}\r\n\t\tif(!plot.encompasses(p.getPlot())){\r\n\t\t\treturn -3;\r\n\t\t}\r\n\t\tfor (int i=0;i<properties.length;i++) {\r\n\t\t\tif (properties[i]!=null && i<MAX_PROPERTY-1) {\r\n\t\t\t\tif(properties[i].getPlot().overlaps(p.getPlot())) {\r\n\t\t\t\t\treturn -4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(properties[i]!=null && i>=MAX_PROPERTY-1) {\r\n\t\t\t\treturn -1;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tproperties[i]=p;\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "public Rectangulo()\n\t{\n\t\tthis.alto = 0;\n\t\tthis.ancho = 0;\n\t\tthis.area = 0;\n\t}", "Rectangle(int l, int w)\n {\n\tlength = l;\n\twidth = w;\n }", "public Rectangle(float w, float h, float x, float y, float r, float g, float b, String n, int s, int e) {\n super(x, y, r, g, b, n, s, e);\n this.width = w;\n this.height = h;\n }", "public PipeTile(String property) {\n\n\t\tthis.property = property;\n\n\t\tswitch (property) {\n\t\t\tcase \"Horizontal\":\n\t\t\t\tthis.image = new ImageView(\"resources/images/Pipe Horizontal.jpeg\");\n\t\t\t\tthis.isLeftFree = true;\n\t\t\t\tthis.isRightFree = true;\n\t\t\t\tbreak;\n\t\t\tcase \"Vertical\":\n\t\t\t\tthis.image = new ImageView(\"resources/images/Pipe Vertical.jpeg\");\n\t\t\t\tthis.isTopFree = true;\n\t\t\t\tthis.isBottomFree = true;\n\t\t\t\tbreak;\n\t\t\tcase \"00\":\n\t\t\t\tthis.image = new ImageView(\"resources/images/CurvedPipe 00.jpeg\");\n\t\t\t\tthis.isLeftFree = true;\n\t\t\t\tthis.isTopFree = true;\n\t\t\t\tbreak;\n\t\t\tcase \"01\":\n\t\t\t\tthis.isTopFree = true;\n\t\t\t\tthis.isRightFree = true;\n\t\t\t\tthis.image = new ImageView(\"resources/images/CurvedPipe 01.jpeg\");\n\t\t\t\tbreak;\n\t\t\tcase \"10\":\n\t\t\t\tthis.isLeftFree = true;\n\t\t\t\tthis.isBottomFree = true;\n\t\t\t\tthis.image = new ImageView(\"resources/images/CurvedPipe 10.jpeg\");\n\n\t\t\t\tbreak;\n\t\t\tcase \"11\":\n\t\t\t\tthis.isRightFree = true;\n\t\t\t\tthis.isBottomFree = true;\n\t\t\t\tthis.image = new ImageView(\"resources/images/CurvedPipe 11.jpeg\");\n\t\t\t\tbreak;\n\t\t}\n\n\t\tthis.canMove = true; // This boolean variable is updated according to whether the object can move or\n\t\t\t\t\t\t\t\t// not.\n\t}", "Oval(int width, int height, int x, int y){\n setWidth(width);\n setHeight(height);\n setX(x);\n setY(y);\n }", "public PropertyParser()\n\t{\n\t\tthis(System.getProperties());\n\t}", "public ConstRect()\r\n {\r\n x = 0;\r\n y = 0;\r\n width = 0;\r\n height = 0;\r\n }", "public Rectangle () {\n\t\t\n\t}", "public Rectangle() {\n this.length = 0;\n this.width = 0;\n\n }", "Punto(){\r\n x=0;\r\n y=0;\r\n }", "public DPropertyElement() {\n super(null, null);\n }", "public Property(String owners,int estvalue, String location,char PPR2,String yearsowned,String eircode,String address) {\r\n this.owners = owners;\r\n this.estValue = estvalue;\r\n this.Address = address;\r\n this.postcode = eircode;\r\n this.PPR = PPR2;\r\n this.locationCategory = location;\r\n }", "public Property(Property p) {\n\t\tcity=p.getCity();\n\t\towner=p.getOwner();\n\t\tpropertyName=p.getPropertyName();\n\t\trentAmount=p.getRentAmount();\n\t\tplot= new Plot(p.plot);\n\t}", "public void initialize() {\n \n super.initialize();\n \n PreferredSizeX = this.getPreferredSizeX();\n PreferredSizeY = this.getPreferredSizeY();\n this.setPreferredSize(new Dimension(PreferredSizeX, PreferredSizeY));\n \n this.createParameterPanel();\n \n }", "public GameTileyul579(int tileValue) {\n\n //calls the empty constructor\n super(tileValue);\n\n /*TODO: Create one or more new Shape(s) to represent the tile \n * (it can be a Rectangle, a Circle, a combination, etc. Get creative!)\n *\n * Don't forget to set the width and height of the object(s)\n * \n * Set the color of the object(s) depending on the tile's value.\n * You can use the colors HashMap to get the appropriate color.\n * Remember you can change the colors in this HashMap, and you can \n * combine them with other colors to make a creative tile. The\n * only requirement is that each legal value in the game have a \n * different color or color scheme. You need to handle illegal \n * values, but the color you choose for these illegal values is \n * up to you.\n * \n * Remember that colors.get(tileValue) will return the Color\n * associated with the value.\n * \n */ \n Rectangle square = new Rectangle();\n square.setWidth(100);\n square.setHeight(100);\n populateColors();\n square.setFill(colors.get(tileValue));\n //illegal value\n if((tileValue & (tileValue-1))!=0 || tileValue<0 ||tileValue==1)\n square.setFill(Color.BLACK);\n if(tileValue > 256)\n square.setFill(Color.WHITE);\n\n \n \n /* TODO: Create a Text object to display the value of the tile,\n * if the tileValue is non-zero\n * Don't forget to setText, setFont, and setFill\n *\n * The font type and color is up to you. You might choose to vary it\n * depending on the value of the tile, or you can just use a single\n * color.\n *\n * If tileValue is 0,\n * you do not need to create this text object. I.e. it will be blank.\n */\n Text someText = new Text();\n if(tileValue!=0){\n someText.setText(Integer.toString(tileValue));\n someText.setFont(Font.font(\n \"Times New Roman\",FontWeight.BOLD,30));\n someText.setFill(Color.WHITE); \n }else{\n someText.setText(\"\"); \n }\n\n /* TODO: Finally, add tile shape(s) and value of tile to the calling\n * object, which is a StackPane. \n * Hint: Look into the getChildren method of the StackPane/Pane class\n * and remember that you are adding your objects to the calling object\n * which is a StackPane. \n */\n this.getChildren().add(square);\n this.getChildren().add(someText);\n\n }", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "public Corner(double posX,double posY)\n {\n // inicializa variáveis de instância\n this.posX=posX;\n this.posY=posY;\n }", "PrimitiveProperty createPrimitiveProperty();", "public CustomRectangle(int x1, int y1, int x2, int y2) {\n this.x1 = Integer.toString(x1);\n this.y1 = Integer.toString(y1);\n this.x2 = Integer.toString(x2);\n this.y2 = Integer.toString(y2);\n }", "public BoardCell(int x, int y){\n xCor=x;\n yCor=y;\n }", "IntegerProperty getXProperty();", "void initProperties()\n\t{\n\t\tpropertyPut(LIST_SIZE, 10);\n\t\tpropertyPut(LIST_LINE, 1);\n\t\tpropertyPut(LIST_MODULE, 1); // default to module #1\n\t\tpropertyPut(COLUMN_WIDTH, 70);\n\t\tpropertyPut(UPDATE_DELAY, 25);\n\t\tpropertyPut(HALT_TIMEOUT, 7000);\n\t\tpropertyPut(BPNUM, 0);\t\t\t\t// set current breakpoint number as something bad\n\t\tpropertyPut(LAST_FRAME_DEPTH, 0);\t\t// used to determine how much context information should be displayed\n\t\tpropertyPut(CURRENT_FRAME_DEPTH, 0); // used to determine how much context information should be displayed\n\t\tpropertyPut(DISPLAY_FRAME_NUMBER, 0); // houses the current frame we are viewing\n\t\tpropertyPut(FILE_LIST_WRAP, 999999); // default 1 file name per line\n\t\tpropertyPut(NO_WAITING, 0);\n\t\tpropertyPut(INFO_STACK_SHOW_THIS, 1); // show this pointer for info stack\n\t}", "public ControlNode(int controlID,String controlTypeId,int x, int y, int w, int h, int zOrder){\n this.controlID = controlID;\n this.controlTypeId = controlTypeId;\n this.x = x;\n this.y = y;\n this.w = w;\n this.h = h;\n this.zOrder = zOrder;\n \n }", "Rectangle(int width, int height){\n area = width * height;\n }", "public RegularGrid() {\r\n }", "public Rectangle(int recLength, int recWidth) {\n super(recLength, recWidth);\n System.out.println(\"\\nA rectangle is being created!\\n\");\n }", "public VariablePoint2(){\n super(0, 0);\n x = 0;\n y = 0;\n }", "public Point(Point obj)\n\t{\n\t\t// Instantiate properties with parameter values \n\t\tthis.x = obj.x;\t\t\t\t\t\t\t\t\t\t\t\t// Shallow copy point's x-coordinate\t\n\t\tthis.y = obj.y;\t\t\t\t\t\t\t\t\t\t\t\t// Shallow copy point's y-coordinate\n\t}", "public DimensionProperties() {\n }", "public VerticalProfileControl() {\n setAttributeFlags(FLAG_COLOR | FLAG_DATACONTROL | FLAG_DISPLAYUNIT);\n }", "public Builder setProperty0(int value) {\n bitField0_ |= 0x00000004;\n property0_ = value;\n \n return this;\n }", "public home() {\n initComponents();\n int xx;\n int xy;\n }", "Point()\n\t{\n\t\t//default point\n\t\t//this = properties of this object we are working with\n\t\tthis.x=0;\n\t\tthis.y=0;\n\t\tcountOfPoints++;\n\t}", "GameObject(int x, int y){\n loadSprite();\n this.x = x;\n this.y = y;\n }", "@Override\n public String toString() {\n // using String.format to display out put value and infomation of Property\n return String.format(\n \"\\nCoordinates: %d, %d\\n\" + \"Length: %d m Width: %d m\\n\" + \"Registrant: #%d\\nArea: %d m2\\n\"\n + \"Property Taxes : $%.1f\",\n this.getXLeft(), this.getYTop(), this.getXLength(), this.getYWidth(), this.getRegNum(), this.getArea(),\n this.getTaxes());\n }", "public Prism(){//consturctor for Cube class with h initialzed to 10.0.\r\n super();//constructor of superclass called.\r\n h = 10.0;\r\n }", "public PantallaVictoria()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(400, 600, 1); \n prepare();\n }", "public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}", "public Properties(){\n\n }", "public Properties(long lengthMs, String style, String taskId) {\n super();\n _length = lengthMs;\n _styleClass = \"gantt-border\";\n _taskId = taskId;\n\n //If task is unassigned, do not show!\n if (!style.equals(\"#000000\")) {\n _style = \"-fx-background-color:\" + style;\n } else {\n _taskId = \"\";\n _length = 0;\n _style = \"-fx-background-color: transparent;\";\n }\n }", "public Coordinate() { row = col = -1; }", "public WindowPanel() {\r\n\t\tsetLayout(null);\r\n\t\t\r\n\t\tIPropertyService svc = ServiceManager.getService();\r\n\t\t\r\n\t\tlXmin = new JLabel(\"XMin:\");\r\n\t\tlXmin.setBounds(10, 10, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(lXmin);\r\n\t\t\r\n\t\tlXmax = new JLabel(\"XMax:\");\r\n\t\tlXmax.setBounds(10, 40, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(lXmax);\r\n\t\t\r\n\t\tlYmin = new JLabel(\"YMin:\");\r\n\t\tlYmin.setBounds(10, 70, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(lYmin);\r\n\t\t\r\n\t\tlYmax = new JLabel(\"YMax:\");\r\n\t\tlYmax.setBounds(10, 100, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(lYmax);\r\n\t\t\r\n\t\tsXmin = new JSpinner(new SpinnerNumberModel(-10.0d, -100.0d, 100.0d, 1.0d));\r\n\t\tsXmin.setBounds(60, 10, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(sXmin);\r\n\t\tsXmin.addChangeListener((ChangeEvent e) -> svc.setXMin((double) sXmin.getValue()));\r\n\t\t\r\n\t\tsXmax = new JSpinner(new SpinnerNumberModel(10.0d, -100.0d, 100.0d, 1.0d));\r\n\t\tsXmax.setBounds(60, 40, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(sXmax);\r\n\t\tsXmax.addChangeListener((ChangeEvent e) -> svc.setXMax((double) sXmax.getValue()));\r\n\t\t\r\n\t\tsYmin = new JSpinner(new SpinnerNumberModel(-10.0d, -100.0d, 100.0d, 1.0d));\r\n\t\tsYmin.setBounds(60, 70, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(sYmin);\r\n\t\tsYmin.addChangeListener((ChangeEvent e) -> svc.setYMin((double) sYmin.getValue()));\r\n\t\t\r\n\t\tsYmax = new JSpinner(new SpinnerNumberModel(10.0d, -100.0d, 100.0d, 1.0d));\r\n\t\tsYmax.setBounds(60, 100, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(sYmax);\r\n\t\tsYmax.addChangeListener((ChangeEvent e) -> svc.setYMax((double) sYmax.getValue()));\r\n\t\t\r\n\t\tlGridStepX2D = new JLabel(\"Grid step X:\");\r\n\t\tlGridStepX2D.setBounds(120, 10, 100, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(lGridStepX2D);\r\n\t\t\r\n\t\tlGridStepY2D = new JLabel(\"Grid step Y:\");\r\n\t\tlGridStepY2D.setBounds(120, 40, 100, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(lGridStepY2D);\r\n\t\t\r\n\t\tsGridStepX2D = new JSpinner(new SpinnerNumberModel(1.0d, 0.125d, 1000.0d, 0.25d));\r\n\t\tsGridStepX2D.setBounds(230, 10, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(sGridStepX2D);\r\n\t\tsGridStepX2D.addChangeListener((ChangeEvent e) -> svc.setGridX((double) sGridStepX2D.getValue()));\r\n\t\t\r\n\t\tsGridStepY2D = new JSpinner(new SpinnerNumberModel(1.0d, 0.125d, 1000.0d, 0.25d));\r\n\t\tsGridStepY2D.setBounds(230, 40, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(sGridStepY2D);\r\n\t\tsGridStepY2D.addChangeListener((ChangeEvent e) -> svc.setGridY((double) sGridStepY2D.getValue()));\r\n\t\t\r\n\t}", "public GraphNode(int index, double centerX , double centerY){\n super();\n this.index = index;\n this.setText(String.valueOf(index));\n DirX = centerX;\n DirY = centerY;\n this.setLayoutX(centerX);\n this.setLayoutY(centerY);\n this.setStyle(\"-fx-background-color: #d0d0d0; -fx-font-size: 16; -fx-background-radius: 50 ; -fx-pref-height: 50 ; -fx-pref-width: 50\");\n }", "public ViewProperty() {\n initComponents();\n }", "public Component() {\n\t\tlocation = new Point(0, 0);\n\t\tsize = new Dimension(100, 80);\n\t\tproperties = new LinkedHashMap<>();\n\t\tsubJobContainer= new LinkedHashMap<>();\n\t\tleftPortCount = 0;\n\t\trightPortCount = 0;\n\t\tbottomPortCount = 0;\n\t\tinputLinksHash = new Hashtable<String, ArrayList<Link>>();\n\n\t\tinputLinks = new ArrayList<Link>();\n\t\toutputLinksHash = new Hashtable<String, ArrayList<Link>>();\n\t\toutputLinks = new ArrayList<Link>();\n\t\tinputportTerminals = new ArrayList<String>();\n\t\toutputPortTerminals = new ArrayList<String>();\n\t\twatcherTerminals = new HashMap();\n\t\tnewInstance = true;\n\t\tvalidityStatus = ValidityStatus.WARN.name();\n\t\tcomponentName = DynamicClassProcessor.INSTANCE.getClazzName(this\n\t\t\t\t.getClass());\n\n\t\tcomponentLabel = new ComponentLabel(componentName);\n\t\tcomponentLabelMargin = 16;\n\n\t\tprefix = XMLConfigUtil.INSTANCE.getComponent(componentName)\n\t\t\t\t.getDefaultNamePrefix();\n\t\t\n\t\tdefaultPrefix=XMLConfigUtil.INSTANCE.getComponent(componentName)\n\t\t\t\t.getDefaultNamePrefix();\n\t\tinitPortSettings();\n\t\ttoolTipErrorMessages = new LinkedHashMap<>();\n\t\tstatus = ComponentExecutionStatus.BLANK;\n\t}", "public RegularUnit(Location location, int length, int width, int height){\n // initialise instance variables\n super(location, length, width, height, TYPE);\n }", "public Ground(int x, int y)\n {\n // initialise instance variables\n xleft= x;\n ybottom= y;\n \n }", "public Shape() {\n\t\tthis(DEFAULT_X_POS, DEFAULT_Y_POS, DEFAULT_DELTA_X, DEFAULT_DELTA_Y, DEFAULT_WIDTH, DEFAULT_HEIGHT);\n\t}", "public Piste(int x, int y){\n\t\tthis.x=x;\n\t\tthis.y=y;\n\t}", "public Circle(int x, int y) {\n super(x-5,y-5);\n name = \"Circle\";\n width = 2*5;\n height = 2*5;\n radius = 5;\n }", "public Rectangle(int x, int y, int w, int h) {\n this.x = x;\n this.y = y;\n this.size = new Dimension(w, h);\n }" ]
[ "0.855992", "0.76550984", "0.71643645", "0.6811279", "0.6269202", "0.62220496", "0.6100655", "0.6067842", "0.59123784", "0.5883066", "0.58599794", "0.58579004", "0.5800764", "0.57320136", "0.5730142", "0.57045245", "0.5702688", "0.5668002", "0.56478447", "0.56469446", "0.56171036", "0.5587785", "0.55376935", "0.55363834", "0.55154145", "0.5511943", "0.55058235", "0.5481357", "0.54797304", "0.5467062", "0.54651505", "0.5463945", "0.54463613", "0.54379594", "0.54323393", "0.54243124", "0.53974015", "0.53969663", "0.5395683", "0.5395114", "0.53948224", "0.53920716", "0.53874964", "0.537178", "0.5370664", "0.5360292", "0.5355238", "0.53518474", "0.5347422", "0.53402424", "0.53196394", "0.531813", "0.53154707", "0.53129834", "0.5312582", "0.5297729", "0.5265387", "0.52646524", "0.52521473", "0.52472013", "0.52457297", "0.5238429", "0.5237112", "0.5236363", "0.5227017", "0.52206355", "0.5208838", "0.5200927", "0.5198512", "0.5195039", "0.5191246", "0.5185106", "0.51578134", "0.51567036", "0.515264", "0.5145079", "0.5137243", "0.51340145", "0.5126998", "0.5120537", "0.51175976", "0.51058143", "0.5104834", "0.51014125", "0.5098987", "0.5092202", "0.5091956", "0.5085407", "0.5080969", "0.50805783", "0.50779605", "0.5069448", "0.5066714", "0.5066085", "0.5065335", "0.5054123", "0.5043485", "0.5041986", "0.5041675", "0.503643" ]
0.8003013
1
Property copy constructor which only changes the regNum
public Property(Property prop, int regNum) { // this code provided by Dave Houtman [2020] personal communication this(prop.getXLength(), prop.getYWidth(), prop.getXLeft(), prop.getYTop(), regNum); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic function copy() {\n\t\tMonom M=new Monom(this.get_coefficient(),this.get_power());\n\t\t\n\t\treturn M;\n\t}", "IGLProperty clone();", "public REG(Reg r) {\n\t\treg = r;\n\t}", "@Override\r\n\tpublic void copy(Property p) {\n\t\t\r\n\t}", "public CFExp deepCopy(){\r\n return this;\r\n }", "public ComplexNum copy() {\n /*\n * returns a deep copy of this complex number\n * */\n\n return new ComplexNum(realPart, imaginaryPart);\n }", "@Override\r\npublic void setNumcopy(int numcopy) {\n\tsuper.setNumcopy(numcopy);\r\n}", "@Override\n public MiniMover64RNG copy() {\n return new MiniMover64RNG(state);\n }", "public static void copyConstructor(){\n\t}", "@Override\n\tpublic IProperty getClone() {\n\t\treturn new Strength(myStrength);\n\t}", "public FirmReference clone() {\r\n try {\r\n\t\t\treturn (FirmReference) super.clone();\r\n\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n \r\n\t}", "@Override\n public Data clone() {\n final Data data = new Data(name, code, numeric, symbol, fractionSymbol, fractionsPerUnit, rounding, formatString,\n triangulated.clone());\n return data;\n }", "public JsonMember copy() {\n return new JsonMember(name, value.copy());\n }", "public State copy() {\n State that = new State(this.registers.length);\n for (int i=0; i<this.registers.length; ++i) {\n Object a = this.registers[i];\n if (a == null) continue;\n if (!(a instanceof Set))\n that.registers[i] = a;\n else\n that.registers[i] = NodeSet.FACTORY.makeSet((Set)a);\n }\n if(TRACE_REGISTERS) System.out.println(\"Copying state \" + Arrays.asList(that.registers));\n return that;\n }", "public Expression deepCopy (){\n return new LiteralExpression(_value);\n }", "@Override\n protected PrMorb1000 clone() throws CloneNotSupportedException {\n return (PrMorb1000) super.clone();\n }", "@Override\r\n public Object clone() {\r\n\r\n Coordinate c = new Coordinate( this );\r\n return c;\r\n }", "private UniqueChromosomeReconstructor() { }", "public Object clone() {\t\n\t\tGrille o = new Grille();\t\t//On créé une nouvelle grille\n\t\to.score=this.score;\n\t\tfor (Case i : this.grille){\n\t\t\tCase i2= (Case) i.clone();\t//On copie chaque case de la grille\n\t\t\ti2.setGrille(o);\n\t\t\to.grille.add(i2);\t\t\t//On les ajoute à la nouvelle grille\n\t\t}\n\t\t// on renvoie le clone\n\t\treturn o;\n\t}", "public Property(int xLength, int yWidth, int xLeft, int yTop, int regNum) {\n setXLength(xLength);\n setYWidth(yWidth);\n setXLeft(xLeft);\n setYTop(yTop);\n setRegNum(regNum);\n }", "public Object clone() {\n // No problems cloning here since private variables are immutable\n return super.clone();\n }", "@Override\n\tpublic Expression copy() {\n\t\treturn null;\n\t}", "@Override\n public ExpressionNode deepCopy(BsjNodeFactory factory);", "@Override\n public AbstractRelic makeCopy() {\n return new Compendium();\n }", "public Student copy(int matrikel){\n Student student= new Student();\n student.setMatrikel(matrikel);\n student.setStudiengang(this.studiengang);\n return student;\n }", "private\tNum(int num) { value = num; }", "public MossClone() {\n super();\n }", "public Object clone() {\n \ttry {\n \tMyClass1 result = (MyClass1) super.clone();\n \tresult.Some2Ob = (Some2)Some2Ob.clone(); ///IMPORTANT: Some2 clone method called for deep copy without calling this Some2.x will be = 12\n \t\n \treturn result;\n \t} catch (CloneNotSupportedException e) {\n \treturn null; \n \t}\n\t}", "@Override\n protected School clone() throws CloneNotSupportedException {\n School s = null;\n s = (School)super.clone();\n s.stu = stu.clone();\n return s;\n }", "@Override\n public SharedObject clone() {\n SharedObject c;\n try {\n c = (SharedObject)super.clone();\n } catch (CloneNotSupportedException e) {\n // Should never happen.\n throw new ICUCloneNotSupportedException(e);\n }\n c.refCount = new AtomicInteger();\n return c;\n }", "public C0954y clone() {\n try {\n C0954y c0954y = (C0954y) super.clone();\n c0954y.f2338a = this.f2338a;\n c0954y.f2339b = this.f2339b;\n c0954y.f2342e = this.f2342e.clone();\n c0954y.f2346p = this.f2346p;\n return c0954y;\n } catch (CloneNotSupportedException e) {\n return null;\n }\n }", "public Object clone()\n {\n Object o = null;\n try \n { o = super.clone(); } \n catch(CloneNotSupportedException e) \n { System.err.println(\"Erreur dans le clonage de la cellule...\"); }\n return o;\n }", "@Override \n public Door clone()\n {\n try\n {\n Door copy = (Door)super.clone();\n \n //a copy of the location class\n copy.room = room.clone(); \n \n return copy;\n }\n catch(CloneNotSupportedException e)\n {\n throw new InternalError();\n }\n }", "public Function clone();", "public Object clone() {\n // No problems cloning here since private variables are immutable\n return (InstTexes) super.clone();\n }", "@Override\n public Object clone() {\n return super.clone();\n }", "protected Factorization copy(){\n Factorization newFactor = new Factorization(this.mdc);\n //shallow copy\n newFactor.setRecipes(recipes);\n newFactor.setIngredients(ingredients);\n newFactor.setUserMap(userMap);\n newFactor.setUserMapReversed(userMap_r);\n newFactor.setRecipeMap(recipeMap);\n newFactor.setRecipeMapReversed(recipeMap_r);\n newFactor.setIngredientMap(ingredientMap);\n newFactor.setIngredientMapReversed(ingredientMap_r);\n \n //deep copy\n List<User> userCopy = new ArrayList<User>();\n for(User curr: this.users){\n userCopy.add(new User(curr.getId()));\n }\n newFactor.setUsers(userCopy);\n newFactor.setDataset(dataset.copy());\n newFactor.updateInitialSpace();\n return newFactor;\n }", "@Override\n\tpublic GameUnit clone() throws CloneNotSupportedException {\n\t\t// this is a shallow copy, because of the Point3D properties and that is the only property of this class (GameUnit) a shallow copy is enough\n\t\tGameUnit unit = (GameUnit)super.clone();\n\t\t// reset the position property state before returning the cloned class\n\t\tunit.initialize();\n\t\treturn unit;\n\t}", "@Override\r\n\tpublic LogicalValue copy() {\r\n\t\treturn new Pointer(target);\r\n\t}", "public MS2Scan clone(){\n\t\tMS2Scan result = cloneNoData();\n\t\tfor (int m=0; m<mzint.size(); m++){\n\t\t\tresult.addscan(mzint.get(m).getmz(), mzint.get(m).getint());\n\t\t}\n\t\treturn result;\n\t}", "public C0810f clone() {\n try {\n C0810f fVar = (C0810f) super.clone();\n fVar.mo5316a(this.f2271b.name());\n fVar.f2270a = EnumC0815k.m3498a(this.f2270a.name());\n return fVar;\n } catch (CloneNotSupportedException e) {\n throw new RuntimeException(e);\n }\n }", "@Override\n public GraphicsState clone(\n )\n {\n GraphicsState clone;\n {\n // Shallow copy.\n try\n {clone = (GraphicsState)super.clone();}\n catch(CloneNotSupportedException e)\n {throw new RuntimeException(e);} // NOTE: It should never happen.\n\n // Deep copy.\n /* NOTE: Mutable objects are to be cloned. */\n clone.ctm = (AffineTransform)ctm.clone();\n clone.tlm = (AffineTransform)tlm.clone();\n clone.tm = (AffineTransform)tm.clone();\n }\n return clone;\n }", "Component deepClone();", "public Expression deepCopy()\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}", "public SceneLabelObjectState copy(){\n\n\t\t//get a copy of the generic data from the supertype\n\t\tSceneDivObjectState genericCopy = super.copy(); \n\n\t\t//then generate a copy of this specific data using it (which is easier then specifying all the fields\n\t\t//Separately like we used too)\n\t\tSceneLabelObjectState newObject = new SceneLabelObjectState(\n\t\t\t\tgenericCopy,\n\t\t\t\tObjectsCurrentText,\t\t\n\t\t\t\tCSSname,\n\t\t\t\tcursorVisible,\n\t\t\t\tTypedText,\n\t\t\t\tCustom_Key_Beep,\n\t\t\t\tCustom_Space_Beep);\n\n\t\treturn newObject;\n\n\n\t}", "public ProcessedDynamicData deepCopy( ) {\r\n\r\n ProcessedDynamicData copy = new ProcessedDynamicData( this.channelId );\r\n\r\n copy.channelId = this.channelId;\r\n copy.dateTimeStamp = new java.util.Date( this.dateTimeStamp.getTime() );\r\n copy.samplingRate = this.samplingRate;\r\n copy.eu = this.eu;\r\n\r\n copy.min = this.min;\r\n copy.max = this.max;\r\n\r\n copy.measurementType = this.measurementType;\r\n copy.measurementUnit = this.measurementUnit;\r\n\r\n // data and labels\r\n List<Double> dataCopy = new Vector<Double>();\r\n for( int i = 0; i < this.data.size(); i++ ) {\r\n dataCopy.add( new Double( this.data.get( i ) ) );\r\n }\r\n copy.setData( dataCopy );\r\n\r\n List<Double> dataLabels = new Vector<Double>();\r\n for( int i = 0; i < this.dataLabels.size(); i++ ) {\r\n dataLabels.add( new Double( this.dataLabels.get( i ) ) );\r\n }\r\n copy.setDataLabels( dataLabels );\r\n\r\n // create a deep copy of overalls\r\n if( overalls != null ) {\r\n copy.overalls = new OverallLevels( this.overalls.getChannelId() );\r\n copy.overalls.setDateTimeStampMillis( this.getDateTimeStampMillis() );\r\n Vector<String> overallKeys = this.overalls.getKeys();\r\n for( int i = 0; i < overallKeys.size(); i++ ) {\r\n copy.overalls.addOverall( new String( overallKeys.elementAt( i ) ),\r\n new Double( this.overalls.getOverall( overallKeys.elementAt( i ) ) ) );\r\n }\r\n }\r\n\r\n copy.xEUnit = this.xEUnit;\r\n copy.yEUnit = this.yEUnit;\r\n\r\n copy.xSymbol = this.xSymbol;\r\n copy.ySymbol = this.ySymbol;\r\n copy.xPhysDomain = this.xPhysDomain;\r\n copy.yPhysDomain = this.yPhysDomain;\r\n \r\n copy.noOfAppendedZeros = this.noOfAppendedZeros;\r\n\r\n return copy;\r\n }", "private void setRegNum(int regNum) {\n this.regNum = regNum;\n }", "public Object clone(){\n \t\n \treturn this;\n \t\n }", "public StudyClass getCopy(){\r\n String nc = className;\r\n String[] rc = roomConstraint.clone();\r\n return new StudyClass(internalId, classNum, nc, sks, rc, tConstraint.getCopy());\r\n }", "@Override\n public DuelistRNG copy() {\n return new DuelistRNG(stateA, stateB);\n }", "public Object clone()\n {\n PSRelation copy = new PSRelation(new PSCollection(m_keyNames.iterator()),\n new PSCollection(m_keyValues.iterator()));\n \n copy.m_componentState = m_componentState;\n copy.m_databaseComponentId = m_databaseComponentId;\n copy.m_id = m_id;\n\n return copy;\n }", "@Override\n public LineSymbolizer<R> clone() {\n final var clone = (LineSymbolizer<R>) super.clone();\n clone.selfClone();\n return clone;\n }", "public Object clone()\n\t{\n\t\tObject myClone = new Object();\n\t\tmyClone = myName + myNumberWins;\n\t\treturn myClone;\n\t}", "@Override \n public Score clone()\n {\n try\n { \n return (Score)super.clone();\n }\n catch(CloneNotSupportedException e)\n {\n throw new InternalError();\n }\n }", "DSGeneMarker deepCopy();", "public numero(numero input)\n {\n input.copy(this);\n }", "public MRG32k3a clone() {\n MRG32k3a retour = null;\n\n retour = (MRG32k3a)super.clone();\n retour.Bg = new double[6];\n retour.Ig = new double[6];\n for (int i = 0; i<6; i++) {\n retour.Bg[i] = Bg[i];\n retour.Ig[i] = Ig[i];\n }\n return retour;\n }", "private ImmutablePerson(ImmutablePerson other) {\n firstName = other.firstName;\n middleName = other.middleName;\n lastName = other.lastName;\n nickNames = new ArrayList<>(other.nickNames);\n }", "public Complex makeDeepCopy() {\r\n Complex complex2 = new Complex(this.getReal(), this.getImaginary());\r\n return complex2;\r\n }", "public Term clone() {\n\t\treturn new Term(this.coefficient, this.exponent);\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\n public PhoneNumberCloneable clone() {\n try {\n return (PhoneNumberCloneable) super.clone();\n } catch (CloneNotSupportedException e) {\n throw new AssertionError(); // Can't happen}\n }\n }", "@Override\n\tpublic Spielfeld clone() {\n\t\tint[] mulden = new int[this.getMulden().length];\n\t\t\n\t\tfor(int i = 0; i < this.getMulden().length; i++) {\n\t\t\tmulden[i] = this.getMulden()[i];\n\t\t}\n\t\t\n\t\treturn new Spielfeld(mulden);\n\t}", "public Object clone() { return new ReferenceType((Name) name.clone()); }", "@Override\r\npublic int getNumcopy() {\n\treturn super.getNumcopy();\r\n}", "private reg1() {\n }", "@Override\n public int deepCopy(AbstractRecord other)\n {\n return 0;\n }", "public Clone() {}", "@Override\n\tpublic OnlineRegression copyNew() {\n\t\tBayesianLinearRegression copy = new BayesianLinearRegression(dimension, this.prioriMeans, prioriPrecision);\n\t\tcopy.weights = this.weights.copyNew();\n\t\tcopy.covariance = this.covariance.copyNew();\n\t\tcopy.b = this.b.copyNew();\n\t\tcopy.numTrainedInstances = this.numTrainedInstances;\n\t\treturn copy;\n\t}", "public Object clone() throws CloneNotSupportedException { return super.clone(); }", "@Override\n protected Currency clone() {\n final Currency currency = new Currency();\n if (data != null) {\n currency.data = data.clone();\n }\n return currency;\n\n }", "public abstract Node copy();", "@Override\r\n\tpublic RandomGenerator_Exponential clone() {\r\n\t\tRandomGenerator_Exponential rg = new RandomGenerator_Exponential();\r\n\t\trg.lambda=lambda;\r\n\t\treturn rg;\r\n\t}", "private Instances deepCopy(Instances data) {\n Instances newInst = new Instances(data);\n\n newInst.clear();\n\n for (int i = 0; i < data.size(); i++) {\n Instance ni = new DenseInstance(data.numAttributes());\n for (int j = 0; j < data.numAttributes(); j++) {\n ni.setValue(newInst.attribute(j), data.instance(i).value(data.attribute(j)));\n }\n newInst.add(ni);\n }\n\n return newInst;\n }", "public abstract Pattern copy();", "@Override\n public MetaprogramTargetNode deepCopy(BsjNodeFactory factory);", "@Override\r\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\t\r\n\t\treturn super.clone();\r\n\t}", "public Binaire clone(){\n\t\treturn new Binaire(this.symbole, this.gauche.clone(), this.droit.clone());\n\t}", "public PidCoefficients clone()\n {\n return new PidCoefficients(kP, kI, kD, kF);\n }", "public JsonFactory copy()\n/* */ {\n/* 324 */ _checkInvalidCopy(JsonFactory.class);\n/* */ \n/* 326 */ return new JsonFactory(this, null);\n/* */ }", "@Override\n public VariableListNode deepCopy(BsjNodeFactory factory);", "private Shop deepCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n List<Book> books = new ArrayList<>();\n Iterator<Book> iterator = this.getBooks().iterator();\n while(iterator.hasNext()){\n\n books.add((Book) iterator.next().clone());\n }\n obj.setBooks(books);\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }", "public Population(Graph graph)\r\n/* 13: */ {\r\n/* 14:36 */ g = graph.cloneGraph();\r\n/* 15: */ }", "public abstract LambdaTerm deepCopy();", "public Object clone()\n/* */ {\n/* 835 */ return super.clone();\n/* */ }", "@Override\r\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\n\tprotected Volga clone() throws CloneNotSupportedException {\n\t\tVolga v = (Volga) super.clone();\n\t\tv.modelname = v.modelname + \"-clone\";\n\t\treturn v;\n\t}", "public Object clone ()\n\t{\n\t\ttry \n\t\t{\n\t\t\treturn super.clone();\n\t\t}\n\t\tcatch (CloneNotSupportedException e) \n\t\t{\n throw new InternalError(e.toString());\n\t\t}\n\t}", "public Property(Property p) {\r\n\t\tpositive = Arrays.copyOf(p.positive, p.positive.length);\r\n\t\tnegative = Arrays.copyOf(p.negative, p.negative.length);\r\n\t\tstop = Arrays.copyOf(p.stop, p.stop.length);\r\n\t\tscoringmethod = p.scoringmethod;\r\n\t\tmindistance = p.mindistance;\r\n\t}", "public State dup (State self)\n {\n if (self == null)\n return null;\n\n State copy = new State ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.address = self.address;\n copy.addressPort = self.addressPort;\n copy.generation = self.generation;\n copy.max_version = self.max_version;\n copy.extra = new VersionedMap (self.extra);\n return copy;\n }", "private Shop shallowCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }", "Prototype makeCopy();", "public Object clone() {\n\t\treturn new RelExpr((Term)getTerm(0).clone(), op, (Term)getTerm(1).clone());\n\t}", "public RandomNetworkGenerator copy()\n\t{\n\t\t\n\t\treturn new DegreePreservingNetworkRandomizer(mOriginal, mDirected, mIterations); \n\t}", "static ExpNode copy(ExpNode root) {\n\n if (root instanceof ConstNode) {\n return new ConstNode(((ConstNode).root).number);\n }\n else if (root instanceof VariableNode) {\n return new VariableNode();\n }\n else {\n Bin0pNode node = (Bin0pNode)root;\n // Left and right operand trees have to be copied not only referenced\n return new Bin0pNode(node.op, copy(node.left). copy(node.right));\n }\n }", "@Override\n\t\tpublic Pair clone()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Create copy of this pair\n\t\t\t\tPair copy = (Pair)super.clone();\n\n\t\t\t\t// Create copy of value\n\t\t\t\tcopy.value = value.clone();\n\n\t\t\t\t// Return copy\n\t\t\t\treturn copy;\n\t\t\t}\n\t\t\tcatch (CloneNotSupportedException e)\n\t\t\t{\n\t\t\t\tthrow new RuntimeException(\"Unexpected exception\", e);\n\t\t\t}\n\t\t}", "public Object clone()\n {\n try {\n Object newObj = super.clone();\n ((LDAPUrl)newObj).url = (com.github.terefang.jldap.ldap.LDAPUrl)this.url.clone();\n return newObj;\n } catch( CloneNotSupportedException ce) {\n throw new RuntimeException(\"Internal error, cannot create clone\");\n }\n }", "@Override\n\tpublic ClassPainter clone() {\n ClassPainter clone = null;\n try {\n clone = (ClassPainter) super.clone();\n } catch (CloneNotSupportedException e) {\n // Object does support clone()\n }\n return clone;\n }" ]
[ "0.6310009", "0.62074023", "0.6107382", "0.596489", "0.59545714", "0.59293526", "0.58942026", "0.58935267", "0.58757794", "0.58326703", "0.58102447", "0.5774749", "0.57710904", "0.57471293", "0.5739583", "0.57381684", "0.5663351", "0.5660752", "0.565732", "0.5630816", "0.55990744", "0.55921674", "0.55817777", "0.55810195", "0.55602986", "0.5548511", "0.5544714", "0.55271083", "0.55220693", "0.55180645", "0.5511386", "0.550962", "0.5492102", "0.5478668", "0.5474679", "0.5473745", "0.5457361", "0.54489547", "0.54235923", "0.5419852", "0.5419642", "0.5418842", "0.5412572", "0.5412398", "0.5399205", "0.53833354", "0.53823215", "0.538036", "0.5379643", "0.53719026", "0.53624105", "0.5356172", "0.5346774", "0.5344707", "0.5344178", "0.53431165", "0.5342784", "0.53413886", "0.5340441", "0.5336219", "0.533316", "0.533316", "0.533316", "0.5325341", "0.5324957", "0.5323641", "0.5321414", "0.531935", "0.53181386", "0.5306764", "0.5305517", "0.53046983", "0.5302325", "0.53014725", "0.52984923", "0.5293548", "0.52895564", "0.5287159", "0.5275953", "0.5271157", "0.5265729", "0.5262764", "0.52584344", "0.5254251", "0.52540654", "0.5253852", "0.52532494", "0.52520764", "0.5252051", "0.5250444", "0.52452713", "0.52414817", "0.5241272", "0.52378696", "0.5235588", "0.52355564", "0.5235529", "0.5231817", "0.522771", "0.5224621" ]
0.671028
0
Property constructor set value of xLength, yWidth, xLeft, yTop and regNum and store in integer The parameterized constructor that take the 4 values for position and size to set to variables
public Property(int xLength, int yWidth, int xLeft, int yTop, int regNum) { setXLength(xLength); setYWidth(yWidth); setXLeft(xLeft); setYTop(yTop); setRegNum(regNum); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Property(int xLength, int yWidth, int xLeft, int yTop) {\n this(xLength, yWidth, xLeft, yTop, DEFAULT_REGNUM);\n }", "public Property(Property prop, int regNum) {\n // this code provided by Dave Houtman [2020] personal communication\n this(prop.getXLength(), prop.getYWidth(), prop.getXLeft(), prop.getYTop(), regNum);\n }", "Polymorph(int x, int y, int height, int width){\n \t this.x = x;\n \t this.y = y;\n \t this.height = height;\n \t this.width = width;\n }", "public Property() {\n this(0, 0, 0, 0);\n }", "public HorizontalCoords() {\n }", "public RectangleShape(int xCoord, int yCoord, int widthOfRect, int heightOfRect)\n {\n System.out.println(\"setting x to: \"+ xCoord+\" & setting y to: \"+ yCoord);\n x = xCoord;\n y = yCoord;\n width = widthOfRect;\n height = heightOfRect;\n }", "public Rectangle() {\n super();\n properties = new HashMap<String, Double>();\n properties.put(\"Width\", null);\n properties.put(\"Length\", null);\n }", "Rectangle() {\r\n\t\tlength = 1.0;\r\n\t\twidth = 1.0;\r\n\t}", "Rectangle(){\n height = 1;\n width = 1;\n }", "Rectangle()\n {\n this(1.0,1.0);\n }", "private Rectangle(Point position, Map<String, Double> properties, Color color, Color fillColor) {\n super(position, color, fillColor);\n this.properties = properties;\n }", "public Size(double width, double height)\r\n {\r\n this.width = width;\r\n this.height = height;\r\n }", "public Coordinate() { row = col = -1; }", "public Coordinates() {\n\t\t\n\t\txPosition = 0;\t\t\t// Sets the x integer to zero\n\t\tyPosition = 0;\t\t\t// Sets the y integer to zero\n\t}", "public Rectangle() {\n x = 0;\n y = 0;\n width = 0;\n height = 0;\n }", "Rectangle(double newWidth, double newHeight){\n height = newHeight;\n width = newWidth;\n }", "TwoDShape5(double x) {\n width = height = x;\n }", "public Coordinate(int x, int y, int data){\r\n this.x = x;\r\n this.y = y;\r\n this.data = data;\r\n }", "public Property(int location, String name, int group, int[] rent, boolean canBuild, int[] costs, Board myBoard) {\n type = Tile.Type.PROPERTY;\n this.location = location;\n this.name = name;\n this.groupName = group;\n this.rent = rent;\n this.canBuild = canBuild;\n this.costs = costs;\n owner = null;\n this.myBoard = myBoard;\n }", "public Rectangle() {\n this(50, 40);\n }", "public Position() {\r\n\t\tthis.positionX = 0;\r\n\t\tthis.positionY = 0;\r\n\t\tthis.angle = 0;\r\n\t\tthis.penState=true;\r\n\t\tthis.clearScreen=false;\r\n\t\tthis.color=0;\r\n\t}", "Oval(int width, int height, int x, int y){\n setWidth(width);\n setHeight(height);\n setX(x);\n setY(y);\n }", "public Rectangle() {\n\t\tthis.width = 1;\n\t\tthis.hight = 1;\n\t\tcounter++;\n\t}", "public Position() {\n xCoord = 0;\n yCoord = 0;\n zCoord = 0;\n }", "public Rectangle(float w, float h, float x, float y, float r, float g, float b, String n, int s, int e) {\n super(x, y, r, g, b, n, s, e);\n this.width = w;\n this.height = h;\n }", "public Rectangle() {\n\t\tthis.corner = new Point();\n\t\tthis.size = new Point();\n\t}", "public Sprite(float centerX, float centerY, float z, int width, int height) {\n \t_center = new Coordinates(centerX, centerY, z);\n \t_dimensions = new Coordinates(width, height, 0f);\n }", "public ConstRect()\r\n {\r\n x = 0;\r\n y = 0;\r\n width = 0;\r\n height = 0;\r\n }", "public Rectangle()\n {\n length = 1;\n width = 1;\n count++;\n }", "private static Property makeNewPropertyFromUserInput() {\n\t\tint regNum = requestRegNum();\r\n\t\t// check if a registrant with the regNum is available\r\n\t\tif (getRegControl().findRegistrant(regNum) == null) {\r\n\t\t\tSystem.out.println(\"Registrant number not found\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tString coordinateString = getResponseTo(\"Enter top and left coordinates of property (as X, Y): \");\r\n\t\t// split the xLeft and yTop from the string: \"xLeft, yTop\"\r\n\t\tString[] coordinates = coordinateString.split(\", \");\r\n\t\tString dimensionString = getResponseTo(\"Enter length and width of property (as length, width): \");\r\n\t\t// split the xLength and yWidth from the string: \"xLength, yWidth\"\r\n\t\tString[] dimensions = dimensionString.split(\", \");\r\n\t\t// convert all string in the lists to int and create a new Property object with them\r\n\t\tint xLeft = Integer.parseInt(coordinates[0]);\r\n\t\tint yTop = Integer.parseInt(coordinates[1]);\r\n\t\tint xLength = Integer.parseInt(dimensions[0]);\r\n\t\tint yWidth = Integer.parseInt(dimensions[1]);\r\n\t\t// Limit for registrant for property size minimum 20m x 10m and maximum size 1000m x 1000m\r\n\t\tif (xLength < 20 || yWidth < 10 || (xLength + xLeft) > 1000 || (yTop + yWidth) > 1000) {\r\n\t\t\tSystem.out.println(\"Invalid dimensions/coordinates inputs\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tProperty new_prop = new Property(xLength, yWidth, Integer.parseInt(coordinates[0]),\r\n\t\t\t\tInteger.parseInt(coordinates[1]), regNum);\r\n\t\treturn new_prop;\r\n\t}", "public Point(int x, int y)\n\t{\n\t\t// Instantiate properties with parameter values \n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "public Location() {\n\t\t\n\t\txCoord=0;\n\t\tyCoord=0;\n\t\t\n\t}", "public Rectangle(int length, int width) {\n }", "public Shape() { this(X_DEFAULT, Y_DEFAULT); }", "public Sijainti() {\n this.x = 0;\n this.y = 0;\n }", "public Rectangle(int length, int width)\n {\n this.length = length;\n this.width = width;\n\n }", "public GameComponent(int topLeftXPosition, int topLeftYPosition, int width, int height)\n\t{\n\t\tthis.topLeftXPosition = topLeftXPosition;\n\t\tthis.topLeftYPosition = topLeftYPosition;\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t}", "posXY(int x, int y){\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}", "public void init(){\n\t\tsetSize (800,600);\n\t\t//el primer parametro del rectangulo en el ancho\n\t\t//y el alto\n\t\trectangulo = new GRect(120,80);\n\t\t\n\t}", "Rectangle(int l, int w)\n {\n\tlength = l;\n\twidth = w;\n }", "public MyShape(Component c, int height, int width, int x, int y) {\n\t\tthis.r = new Rectangle(x, y, width,height);//height and width had to be changed to match the actual objects\n\t\tsetX(x);\n\t\tsetY(y);\n\t\tthis.width = width;\n\t\tthis.height = height;\t\n\n\t}", "public Coordinates(int x, int y){\n this.x = x;\n this.y = y;\n }", "public Property(String name, int pos, int rent, int oneH, int twoH, int threeH, int fourH,\n\t int hotel, int value, int houses) {\n\t\tthis.rent = rent;\n\t\tthis.oneH = oneH;\n\t\tthis.twoH = twoH;\n\t\tthis.threeH = threeH;\n\t\tthis.fourH = fourH;\n\t\tthis.hotel = hotel;\n\t\tthis.value = value;\n\t\tthis.houses = houses;\n\t\tbuildings = 0;\n\t\tmonopoly = false;\n\t\towned = false;\n\n\t\tthis.pos = pos;\n\t\tthis.name = name;\n\t}", "public void setStuff(int x, int y, int w, int h)\n {\n\t xPos = x;\n\t yPos = y;\n\t width = w;\n\t height = h;\n }", "private MsoSmartArtNodePosition(int value) { this.value = value; }", "public void aggiornaPropulsori(){\n xPropulsore1=new int[]{xCord[0],xCord[0]};\n yPropulsore1=new int[]{yCord[0],yCord[0]+15}; \n xPropulsore2=new int[]{xCord[2],xCord[2]}; \n yPropulsore2=new int[]{yCord[2],yCord[2]+15};\n \n }", "public Rectangle() {\n this.length = 0;\n this.width = 0;\n\n }", "public PDRectangle()\n {\n this(0.0f, 0.0f, 0.0f, 0.0f);\n }", "public Rectangle(Integer width, Integer height) {\n super(300, 100, \"red\",null);\n this.width = width;\n this.height = height;\n control = new Control(this);\n }", "Point(int x_, int y_){\n x = x_;\n y = y_;\n }", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "public Position( int xCoordinate, int yCoordinate ) {\n xPosition = xCoordinate;\n yPosition = yCoordinate;\n }", "public Coordinates(int x, int y)\r\n {\r\n xCoord = x;\r\n yCoord = y;\r\n }", "public Rectangle() {\n\t\twidth = 1;\n\t\theight = 1;\n\t}", "public BoardCell(int x, int y){\n xCor=x;\n yCor=y;\n }", "public mGrid(float width) {\r\n\t\tthis.width = width;\r\n\t\tthis.pos = new mPoint3(0,0,0);\r\n\t\tmPoint3[] points = new mPoint3[17];\r\n\t\tpoints[0] = pos;\r\n\t\tfor(int i=-2;i<=2;i++){\r\n\t\t\tpoints[2*i+5] = new mPoint3(2*width,i*width,0);\r\n\t\t\tpoints[2*i+6] = new mPoint3(-2*width,i*width,0);\r\n\t\t}\r\n\t\tfor(int i=-1;i<=1;i++){\r\n\t\t\tpoints[2*i+13] = new mPoint3(i*width,2*width,0);\r\n\t\t\tpoints[2*i+14] = new mPoint3(i*width,-2*width,0);\r\n\t\t}\r\n\t\tthis.shape = new mShape();\r\n\t\tshort[][] lp = new short[2][10];\r\n\t\tshort i;\r\n\t\tfor(i=0;i<5;i++){\r\n\t\t\tlp[0][i] = (short)(i*2+1);\r\n\t\t\tlp[1][i] = (short)(2*i+2);\r\n\t\t}\r\n\t\tlp[0][5] = 2;\r\n\t\tlp[1][5] = 10;\r\n\t\tlp[0][9] = 1;\r\n\t\tlp[1][9] = 9;\r\n\t\tfor(i=0;i<3;i++){\r\n\t\t\tlp[0][i+6] = (short)(2*i+11);\r\n\t\t\tlp[1][i+6] = (short)(2*i+12);\r\n\t\t}\r\n\t\tshort[][] tp = new short[1][0];\r\n\t\tthis.shape.set(points,lp,tp);\r\n\t}", "PositionedObject(){\n float x = DrawingHelper.getGameViewWidth()/2;\n float y = DrawingHelper.getGameViewHeight()/2;\n _position.set(x,y);\n }", "public Unit(int x, int y, int width, int height) {\n super(x, y, width, height);\n LOGGER.log(Level.INFO, this.toString() + \" created at (\" + x + \",\" + y + \")\", this.getClass());\n }", "public Coordinate(int x,int y)\n {\n this.x = x;\n this.y = y;\n }", "public Rectangle(int x, int y, int w, int h) {\n this.x = x;\n this.y = y;\n this.size = new Dimension(w, h);\n }", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "void setPosition(int posX, int posY, int width, int height) {\n this.posX = posX;\n this.posY = posY;\n this.width = width;\n this.height = height;\n }", "ImageProcessor(int width, int height) {\n this.width = width;\n this.height = height;\n centroids = new LinkedList<>();\n centroids.add(0);\n foregroundMovement = new LinkedList<>();\n foregroundMovement.add(0);\n foregroundMovement.add(0);\n tempForegroundMovement = new LinkedList<>();\n tempForegroundMovement.add(0);\n tempForegroundMovement.add(0);\n boxMovement = new LinkedList<>();\n boxMovement.add(0);\n boxMovement.add(0);\n\n // Used to communicate with game engine\n change = new PropertyChangeSupport(this);\n }", "Coordinate(int Xposition, int Yposition) {\n\t\tthis.X = Xposition;\n\t\tthis.Y = Yposition;\n\n\t}", "Box(double len){\r\n Height = Width = Depth = len;\r\n\r\n }", "public Position(int x, int y) {\n this.x = x;\n this.y = y;\n }", "public ColourRect(float x, float y, float w, float h){\n super(x,y,w,h);\n }", "public Entity(Point position, int gridSize) {\n this.position = new Point(position);\n this.gridSize = gridSize;\n direction = UP;\n\n // without this dummy node, rotation does not work properly\n getChildren().add(new Rectangle(gridSize, gridSize, Color.TRANSPARENT));\n\n update();\n }", "public CarrierShape(int x,int y)\n {\n super(x,y);\n }", "public Shape() {\n\t\tthis(DEFAULT_X_POS, DEFAULT_Y_POS, DEFAULT_DELTA_X, DEFAULT_DELTA_Y, DEFAULT_WIDTH, DEFAULT_HEIGHT);\n\t}", "public ControlNode(int controlID,String controlTypeId,int x, int y, int w, int h, int zOrder){\n this.controlID = controlID;\n this.controlTypeId = controlTypeId;\n this.x = x;\n this.y = y;\n this.w = w;\n this.h = h;\n this.zOrder = zOrder;\n \n }", "public Coordinate() {\n this.xCoordinate = -1;\n this.yCoordinate = -1;\n }", "public Building (Pixmap image,\n Location3D center,\n Dimension size,\n Sound sound,\n int playerID,\n int health,\n double buildTime) {\n super(image, center, size, sound, playerID, MAXHEALTH, buildTime);\n myRallyPoint = new Location3D(getWorldLocation().getX(), getWorldLocation().getY() + 150, 0);\n \n }", "public Rectangulo()\n\t{\n\t\tthis.alto = 0;\n\t\tthis.ancho = 0;\n\t\tthis.area = 0;\n\t}", "public Coordinate( final int i) { set( i ); }", "public VariablePoint2(){\n super(0, 0);\n x = 0;\n y = 0;\n }", "public Shape (int x, int y, Color color)\r\n {\r\n\tthis.x = x;\r\n\tthis.y = y;\r\n\tthis.color = color;\r\n }", "public wall() { //default constructor makes a 10x10 square extending right and down from the pixel located at 5,5\r\n x = 5;\r\n y = 5;\r\n height = 10;\r\n width = 10;\r\n }", "public ViewSize(int left,int top,int right,int bottom){\n this.left=left;\n this.top=top;\n this.right=right;\n this.bottom=bottom;\n }", "public BaseShape(int aStartX, int aStartY, Color aColor) {\r\n\t\t\r\n\t\tthis.startX = aStartX;\r\n\t\tthis.startY = aStartY;\r\n\t\tthis.color = aColor;\r\n\t}", "public RegularUnit(Location location, int length, int width, int height){\n // initialise instance variables\n super(location, length, width, height, TYPE);\n }", "public pr3s1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1280, 720, 1); \n prepare();\n }", "public salida()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(600, 400, 1); \r\n }", "public Shape(int x, int y, int deltaX, int deltaY, int width, int height) {\n\t\t_x = x;\n\t\t_y = y;\n\t\t_deltaX = deltaX;\n\t\t_deltaY = deltaY;\n\t\t_width = width;\n\t\t_height = height;\n\t}", "Rectangle(int width, int height){\n area = width * height;\n }", "GameObject(int x, int y){\n loadSprite();\n this.x = x;\n this.y = y;\n }", "public Shape(int x, int y, int wid, int ht, Color col, int xSpd, int ySpd)\r\n {\r\n\t\txPos = x;\r\n\t\tyPos = y;\r\n\t\twidth=wid;\r\n\t\theight= ht;\r\n\t\tcolor=col;\r\n\t\txSpeed=xSpd;\r\n\t\tySpeed=ySpd;\r\n\t\t//finish this constructor\r\n }", "public GridPosition(int x, int y) {\n this.posX = x;\n this.posY = y;\n }", "public Viewport4i( int leftX, int topY, int rightX, int bottomY) {\r\n\r\n if (Integer.compare(leftX, rightX) < 0) {\r\n _xLeft = leftX;\r\n _xRight = rightX;\r\n } else {\r\n _xRight = leftX;\r\n _xLeft = rightX;\r\n }\r\n\r\n if (Integer.compare(topY, bottomY) < 0) {\r\n _yTop = topY;\r\n _yBottom = bottomY;\r\n } else {\r\n _yBottom = topY;\r\n _yTop = bottomY;\r\n }\r\n\r\n }", "public Ground(int x, int y)\n {\n // initialise instance variables\n xleft= x;\n ybottom= y;\n \n }", "public Position(int x, int y) {\n this.x = x;\n this.y = y;\n }", "public Property (String propertyName, String city, double rentAmount, String owner, int x, int y, int width, int depth) {\n\t\tthis.propertyName= propertyName;\n\t\tthis.city= city;\n\t\tthis.rentAmount= rentAmount;\n\t\tthis.owner=owner;\n\t\tplot= new Plot(x,y,width,depth);\n\t}", "public CustomRectangle(int x1, int y1, int x2, int y2) {\n this.x1 = Integer.toString(x1);\n this.y1 = Integer.toString(y1);\n this.x2 = Integer.toString(x2);\n this.y2 = Integer.toString(y2);\n }", "public Worker(int x, int y, int size) {\n super(x, y, size);\n// this.x = x;\n// this.y = y;\n// this.size = size;\n }", "public Rectangle(double width, double height) {\r\n this.width = width;\r\n this.height = height;\r\n }", "public Position(int p_X, int p_Y)\n {\n this.x = p_X;\n this.y = p_Y;\n }", "public Property() {\n\t\tcity=\"\";\n\t\towner=\"\";\n\t\tpropertyName=\"\";\n\t\trentAmount=0;\n\t\tplot= new Plot(0,0,1,1);\n\t}", "public PantallaVictoria()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(400, 600, 1); \n prepare();\n }", "public void initProperties(int x, int y, int width, int height,int id,String ImagePath)\n\t{\n\t\t\n\t\tthis.x=x;\n\t\tthis.y=y;\n\t\tthis.width=width;\n\t\tthis.height=height;\n\t\tthis.id=id;\n\t\t\n\t\t\n\t\tinitializeImage(ImagePath);\n\t}", "Point()\n\t{\n\t\t//default point\n\t\t//this = properties of this object we are working with\n\t\tthis.x=0;\n\t\tthis.y=0;\n\t\tcountOfPoints++;\n\t}" ]
[ "0.78729415", "0.6926601", "0.66976017", "0.6498945", "0.6437848", "0.64014524", "0.6383961", "0.6352363", "0.63420475", "0.6332944", "0.63261837", "0.6323114", "0.62610126", "0.6253715", "0.62392735", "0.622503", "0.62175447", "0.62078905", "0.62063056", "0.6203426", "0.6198207", "0.61742115", "0.61697733", "0.6166257", "0.6158341", "0.6156693", "0.61435497", "0.61380637", "0.6135617", "0.612996", "0.60992104", "0.6078098", "0.6072572", "0.606972", "0.6055771", "0.60518336", "0.60501295", "0.60438603", "0.60275036", "0.6023302", "0.6016895", "0.6000546", "0.5991948", "0.59905183", "0.59831005", "0.59770244", "0.59540206", "0.5952381", "0.5951361", "0.59440356", "0.59371686", "0.5936076", "0.59331644", "0.59309655", "0.59214956", "0.5916625", "0.59140706", "0.5897136", "0.5894142", "0.5890755", "0.58868796", "0.5886283", "0.5881181", "0.58810395", "0.5877589", "0.5876938", "0.5865551", "0.5862708", "0.58623004", "0.586097", "0.5860287", "0.58600265", "0.5856978", "0.5856161", "0.5849467", "0.58475673", "0.58441573", "0.5830162", "0.5829479", "0.5826557", "0.58239675", "0.58231515", "0.58231336", "0.5820645", "0.58196294", "0.5818293", "0.58106065", "0.58076", "0.5788114", "0.57865465", "0.5767754", "0.5753359", "0.5751109", "0.5750566", "0.575015", "0.57492155", "0.5748896", "0.5744635", "0.57371384", "0.5727382" ]
0.84786034
0
The getter that returns xLeft coordinate
public int getXLeft() { return xLeft; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getLeftX() {\n\t\treturn leftX;\n\t}", "public double getLeft() {\n return this.xL;\n }", "public int getLeftX() {\n\t\treturn 0;\r\n\t}", "public double getLeftX(){\r\n\t\treturn adjustInput(driverLeft.getX());\r\n\t}", "public int getX() {\r\n\t\treturn xcoord;\r\n\t}", "public int getX() {\n return xCoord;\n }", "@Override\n\tpublic float getX() {\n\t\treturn lilyPosX;\n\t}", "protected double getWindowLeftX() {\n\t\treturn this.m_windowLeftX;\n\t}", "public int getX()\r\n {\r\n return xCoord;\r\n }", "protected Number getX() {\n return this.xCoordinate;\n }", "public int getCoordX() \r\n {\r\n \treturn this.coordX;\r\n }", "public BoardCoordinate getLeft() {\n return new BoardCoordinate(x-1, y);\n }", "public int getX()\n\t{\n\t\treturn m_nPosX;\n\t}", "public int getX()\r\n {\r\n \treturn xPos;\r\n }", "private double getPosX() {\n\t\treturn this.posX.get();\n\t}", "public final int getX()\n\t{\n\t\treturn pos.x;\n\t}", "public int getX() {\n return (int) xPos;\n }", "public int getX() {\n return this.coordinate.x;\n }", "public float getLowerLeftX()\n {\n return ((COSNumber)rectArray.get(0)).floatValue();\n }", "public int getX() {\n return pos_x;\n }", "public int getXPosition() {\n return xPosition;\n }", "public int getXPosition()\n {\n return xPosition;\n }", "public int getXPosition()\n {\n return xPosition;\n }", "public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}", "public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}", "public int getX() {\n\t\t\n\t\treturn xPosition;\t\t// Gets the x integer\n\t}", "public float getX() {\n return pos.x;\n }", "public double getX() {\r\n\t\t return this.xCoord;\r\n\t }", "public int getX() {\n if (this.coordinates == null)\n return -1;\n return this.coordinates.x();\n }", "public int getX() {\n return posX;\n }", "protected int getxCoord() {\n\t\treturn xCoord;\n\t}", "private int get_x() {\n return center_x;\n }", "public int getxCoord() {\n\t\treturn xCoord;\n\t}", "int getX() {\n return xPos;\n }", "public int getXPosition() {\n return this.xPosition;\n }", "public int getXPosition(){\n\t\treturn xPosition;\n\t}", "public double getLeftXAxis() {\n\t\treturn getRawAxis(Axis_LeftX);\n\t}", "public double getXPosition()\n\t{\n\t\treturn xPosition;\n\t}", "public float getX() { return xCoordinate;}", "public int getPositionX(){\n\t\treturn positionx;\n\t}", "public int getX()\n\t{\n\t\treturn mX;\n\t}", "public double getLeft() {\r\n\t\treturn -left.getRawAxis(1);\r\n\t}", "public int getPosX() {\r\n\t\treturn posX;\r\n\t}", "protected long getLeftPosition() {\n return leftPosition;\n }", "public int getPosX() {\n\t\treturn posX;\n\t}", "public int getX() {\r\n return xpos;\r\n }", "public Coords getLowerLeft()\r\n {\r\n return new Coords(x, y + height);\r\n }", "public int getXPosition() {\n\t\treturn this.position.x;\n\t}", "public int getxPos() {\n return xPos;\n }", "public int getxCoordinate() {\n return xCoordinate;\n }", "public int getxCoordinate() {\n return xCoordinate;\n }", "public int getPositionX() {\n return positionX;\n }", "public int getXPos() {\n\t\treturn xPos;\n\t}", "public int getPosX() {\n return posX;\n }", "public int getxPosition() {\n\t\treturn xPosition;\n\t}", "public int getX() {\n synchronized (this.xLock) {\n return (int) this.movementComposer.getXPosition();\n }\n }", "public float getPosX() {\r\n\t\treturn posX;\r\n\t}", "public int getxPos() \n\t{\n\t\treturn xPos;\n\t}", "public int getPosX(){\n\t\treturn this.posX; \n\t}", "public int getLeft(){\n\t\treturn platformHitbox.x;\n\t}", "@Override\n\tpublic float getX() {\n\t\treturn this.x;\n\t}", "public double getX() {\n return position.getX();\n }", "public int getPos_x(){\n\t\treturn pos_x;\n\t}", "public float getxPosition() {\n return xPosition;\n }", "public final float getPositionX() {\r\n\t\treturn getState(false).getPositionX();\r\n\t}", "public int getX() {\n return positionX;\n }", "public int getX() {\n return (int) center.getX();\n }", "public int getPositionX() {\r\n\t\treturn positionX;\r\n\t}", "public int getX() {\n return (int) this.center.getX();\n }", "public int x() {\r\n\t\treturn xCoord;\r\n\t}", "public double getPositionX() {\n return positionX_;\n }", "public int getXPoint() {\r\n return this.x;\r\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public int getxPos() {\n\t\treturn xPos;\n\t}", "public float getPositionX() {return this.position.getX();}", "public float getX() {\n return this.x;\n }", "public int getX() {\r\n return (int) center.getX();\r\n }", "public int getXCoordinate ()\n {\n return xCoordinate;\n }", "public final int getPositionX() {\r\n return (int) position.x();\r\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public float getX()\n {\n return getBounds().left + positionAnchor.x;\n }", "public double getPositionX() {\n return positionX_;\n }", "public float getPosX() {\n return posX;\n }", "@Override\n\tpublic int getPosX() {\n\t\treturn posX;\n\t}", "@Basic\n\tpublic double getXCoordinate() {\n\t\treturn this.x;\n\t}", "public int getX() {\n\t\treturn this.x;\n\t}", "public int getX() {\n\t\treturn this.x;\n\t}", "public double getXPos(){\n return xPos;\n }", "public int getX()\r\n {\r\n return xLoc;\r\n }", "public int getX() {\r\n\t\treturn this.x;\r\n\t}", "public int xPos() {\r\n\t\treturn this.xPos;\r\n\t}", "public int xPos() {\r\n\t\treturn this.xPos;\r\n\t}", "double getXPosition();", "public double getX() {\n\t\tRectangle2D bounds = _parentFigure.getBounds();\n\t\tdouble x = bounds.getX() + (_xt * bounds.getWidth());\n\t\treturn x;\n\t}", "public double getxCoord() {\n\t\treturn xCoord;\n\t}", "public float getX() {\n return this.x;\n }", "public int getX()\n\t{\n\t\treturn this.x;\n\t}", "public int getX()\n\t{\n\t\treturn this.x;\n\t}" ]
[ "0.87062", "0.8405747", "0.84002155", "0.8185556", "0.8083298", "0.8072741", "0.8062271", "0.80550873", "0.805317", "0.80339766", "0.8033467", "0.80292296", "0.8010644", "0.7987694", "0.79404885", "0.79377145", "0.7927289", "0.79182774", "0.79069734", "0.7901211", "0.7886114", "0.78859544", "0.78859544", "0.78825134", "0.78825134", "0.7877948", "0.7865472", "0.7862177", "0.7858907", "0.7854297", "0.7853824", "0.7852934", "0.784812", "0.7839313", "0.7834306", "0.7830595", "0.78197455", "0.7817637", "0.78139555", "0.7809602", "0.7798644", "0.77929395", "0.77921575", "0.7783791", "0.7780947", "0.7767299", "0.7764868", "0.7764006", "0.77602226", "0.7758433", "0.7758433", "0.77546525", "0.77537614", "0.77474576", "0.7745281", "0.7744788", "0.7744052", "0.77415955", "0.774137", "0.77344656", "0.7733392", "0.77288175", "0.7722091", "0.7721538", "0.7720391", "0.7711585", "0.77101177", "0.77086097", "0.7707197", "0.7698804", "0.769639", "0.76960784", "0.769607", "0.769607", "0.76941", "0.7693484", "0.7691631", "0.7690997", "0.76815087", "0.7675148", "0.7670904", "0.7670904", "0.76703835", "0.76701367", "0.7669806", "0.7662471", "0.76612127", "0.7643981", "0.7643981", "0.7642249", "0.76332164", "0.76267415", "0.762325", "0.762325", "0.7619945", "0.7616111", "0.7595509", "0.75888294", "0.75821674", "0.75821674" ]
0.8801044
0
The setter for xLeft
public void setXLeft(int left) { this.xLeft = left; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLeft(int x) {\r\n leftSide = x;\r\n }", "public int getXLeft() {\n return xLeft;\n }", "public float getLeftX() {\n\t\treturn leftX;\n\t}", "protected final void setLeft(IntervalNode x) {\n\tthis.left = x;\n\n\t// recalc max and min\n\tsetMax();\n\tsetMin();\n }", "public void setX(float x) {\r\n\t\tleft = x - width / 2;\r\n\t}", "public void setLeft() {\n\t\tstate = State.LEFT;\n\t}", "public void setExtendedX(float x) {\n mLeft = (int) x;\n }", "public double getLeft() {\n return this.xL;\n }", "public int getLeftX() {\n\t\treturn 0;\r\n\t}", "public UtilsPadding setLeft(Number left) {\n if (jsBase == null) {\n this.left = null;\n this.left1 = null;\n \n this.left = left;\n } else {\n this.left = left;\n if (!isChain) {\n js.append(jsBase);\n isChain = true;\n }\n \n js.append(String.format(Locale.US, \".left(%s)\", left));\n\n if (isRendered) {\n onChangeListener.onChange(String.format(Locale.US, jsBase + \".left(%s);\", left));\n js.setLength(0);\n }\n }\n return this;\n }", "void setLeft(boolean left) {\n myLeft = left;\n }", "public double getLeftX(){\r\n\t\treturn adjustInput(driverLeft.getX());\r\n\t}", "public void setLeft(boolean left) {\n\t\tthis.left = left;\n\t}", "public void setLeft(Lane left) {\r\n\t\tthis.left = left;\r\n\t}", "public void moveLeft() {\r\n\t\tif (x > 0) x--; \r\n\t}", "void moveLeft() {\n\t\tsetX(x-1);\r\n\t\tdx=-1;\r\n\t\tdy=0;\r\n\t}", "protected double getWindowLeftX() {\n\t\treturn this.m_windowLeftX;\n\t}", "public void setLowerLeftX(float value)\n {\n rectArray.set(0, new COSFloat( value ) );\n }", "public final void setLeftIndex(int leftIndex)\n {\n this.leftIndex = leftIndex;\n }", "public void setLeft(BinNode<E> l)\n {\n left = l;\n }", "public void setLeft(Node left) {\n this.left = left;\n }", "public void setLeft(AVLNode<E> left) {\r\n\t\tthis.left = left;\r\n\t}", "public double Left(){\n\t\treturn (x);\n\t}", "public static void setLeft(char left) {\n\t\t\tGamePreferences.left = left;\n\t\t}", "public void setLeft (Node l) {\r\n\t\tleft = l;\r\n\t}", "public void setBoundingBoxLeft(double value) {\n this.boundingBoxLeft = value;\n }", "public UtilsPadding setLeft(String left1) {\n if (jsBase == null) {\n this.left = null;\n this.left1 = null;\n \n this.left1 = left1;\n } else {\n this.left1 = left1;\n if (!isChain) {\n js.append(jsBase);\n isChain = true;\n }\n \n js.append(String.format(Locale.US, \".left(%s)\", wrapQuotes(left1)));\n\n if (isRendered) {\n onChangeListener.onChange(String.format(Locale.US, jsBase + \".left(%s);\", wrapQuotes(left1)));\n js.setLength(0);\n }\n }\n return this;\n }", "public void setLeft(TreeNode left) {\n\t\tthis.left = left;\n\t}", "@Override\r\n\tpublic void setLeft(MoveLeftCommand left) {\n\r\n\t}", "protected long getLeftPosition() {\n return leftPosition;\n }", "public void setLeft(boolean b){ left = b; }", "public void setLeft(boolean b){ left = b; }", "private void setLeftValue()\n\t{\n\t\tstrParse = entry.getText();\n\t\tleftValue = Double.parseDouble (strParse);\n\t\tcalc.setLeftValue (leftValue);\n\t}", "void setX(int newX) {\n this.xPos = newX;\n }", "@Override\n\tpublic float getX() {\n\t\treturn lilyPosX;\n\t}", "public int getLeft(){\n\t\treturn platformHitbox.x;\n\t}", "public void left() {\n if (x - movementSpeed > -55) {\r\n x = x - movementSpeed;\r\n }\r\n }", "public void setLeftChild(BinaryNode leftChild) {\n\t\tthis.leftChild = leftChild;\n\t}", "public void setX(int x) {\n\tbaseXCoord = x;\n}", "public void moveLeft()\n {\n if (this.x >= 2) {\n --x;\n } else {\n System.out.println(\"Move is outside of the field! Try again.\");\n }\n }", "@SuppressWarnings(\"unchecked\")\n\t@NotNull\n\tpublic J setLeft(MeasurementCSSImpl left)\n\t{\n\t\tthis.left = left;\n\t\treturn (J) this;\n\t}", "public static void setsLeft(char sLeft) {\n\t\t\tGamePreferences.sLeft = sLeft;\n\t\t}", "@Override\n\tpublic void setX(int x) {\n\t\txPos = x;\n\t}", "public void moveLeft()\n {\n if (xPos == 0)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - negative X because we are moving LEFT! \n movementX = -0.5;\n movementY = 0;\n }", "public int getLeft() {\n\t\treturn left;\n\t}", "void setX(int x) {\n position = position.setX(x);\n }", "public void setLeft(final BinaryTreeNode<E> left) {\n this.left = left;\n }", "public void setX(double val) {\r\n\t\t this.xCoord = val;\r\n\t }", "@JSProperty(\"left\")\n void setLeft(Chart3dFrameLeftOptions value);", "public void setX(int xpos) {\r\n this.xpos = xpos;\r\n }", "public void moveLeft() {\n this.x -= 10;\n repaint();\n }", "public double getLeft() {\r\n\t\treturn -left.getRawAxis(1);\r\n\t}", "public void setLeft(IAVLNode node);", "public void setLeft(IAVLNode node);", "@Override\n\tpublic void setPosition(int left)\n\t{\n\t\t_mainPanel.getElement().getStyle().setLeft(left, Style.Unit.PX) ;\n\t}", "public Lane getLeft() {\r\n\t\treturn left;\r\n\t}", "public void moveLeft()\n\t{\n\t\tx = x - STEP_SIZE;\n\t}", "public void setX(int newX)\r\n {\r\n xCoord = newX;\r\n }", "public void goLeft()\r\n\t{\r\n\t\tthis.X--;\r\n\t}", "protected final IntervalNode getLeft() {\n\treturn(this.left);\n }", "public void setLeftChild(RegressionTreeNode leftChild) {\n\t\tthis.leftChild = leftChild;\n\t}", "public void left(){\n\t\tmoveX=-1;\n\t\tmoveY=0;\n\t}", "public void moveLeft() {\n locX = locX - 1;\n }", "@Override\r\n\tpublic void setLeftChild(BinaryNodeInterface<E> leftChild) {\n\t\tthis.left=(BinaryNode<E>) leftChild;\r\n\t}", "public void setX(int x ){\n if(x>0){\n this.x=x;\n }\n \n }", "public void setLeft(int position,int key) {\r\n\t\tthis.treeLeft[position]=key;\r\n\t}", "public void moveLeft() {\n\t\tsetPosX(getPosX() - steps);\n\t}", "public void moveLeft()\n {\n if (!this.search_zone.isLeftBorder(this.x_position))\n {\n this.x_position = (this.x_position - 1);\n }\n }", "public MeasurementCSSImpl getLeft()\n\t{\n\t\treturn left;\n\t}", "public void setLeftChild(Node<T> leftChild) {\n this.leftChild = leftChild;\n }", "public void setLeft(BSTItem n)\r\n\t{\r\n\t\tleft = n;\r\n\t}", "public void moveLeft() {\n if (rec.getUpperLeft().getX() - 5 < leftBorder) {\n rec.getUpperLeft().setX(leftBorder);\n } else {\n rec.getUpperLeft().setX(rec.getUpperLeft().getX() - 5);\n }\n\n }", "public void setX() {\n m_frontLeft.setDesiredState(new SwerveModuleState(0, Rotation2d.fromDegrees(45)));\n m_frontRight.setDesiredState(new SwerveModuleState(0, Rotation2d.fromDegrees(-45)));\n m_rearLeft.setDesiredState(new SwerveModuleState(0, Rotation2d.fromDegrees(-45)));\n m_rearRight.setDesiredState(new SwerveModuleState(0, Rotation2d.fromDegrees(45)));\n }", "public Node getLeft () {\r\n\t\treturn left;\r\n\t}", "public void setX( int x ) {\n\t\t//not checking if x is valid because that depends on the coordinate system\n\t\tthis.x = x;\n\t}", "public void setLeftChild(TreeNode leftChild) {\n this.leftChild = leftChild;\n }", "public int getLeftNumber() {\n return leftNumber;\n }", "public void setRight(int x) {\r\n rightSide = x;\r\n }", "public void setLeftChild(BSTNode left) {\n\t\tthis.leftChild = left;\n\t}", "public int getLeft() {\n\t\treturn this.left;\n\t}", "public void setLeftChild(TreeNode left){\n\t\tleftChild = left;\n\t}", "public BoardCoordinate getLeft() {\n return new BoardCoordinate(x-1, y);\n }", "public int getXLeftUpper() {\n return xLeftUpper;\n }", "public AVLNode<E> getLeft() {\r\n\t\treturn left;\r\n\t}", "public void moveLeft() {\n Coordinate leftCoord = new Coordinate(getX() - 1, getY());\n handleMove(leftCoord, InteractionHandler.LEFT);\n }", "public Left(L left) {\n x = left;\n }", "public boolean SetLeft(Tree ln){\n\tleft = ln ;\n\treturn true ;\n }", "public boolean SetLeft(Tree ln){\n\tleft = ln ;\n\treturn true ;\n }", "public boolean SetLeft(Tree ln){\n\tleft = ln ;\n\treturn true ;\n }", "public boolean SetLeft(Tree ln){\n\tleft = ln ;\n\treturn true ;\n }", "public boolean SetLeft(Tree ln){\n\tleft = ln ;\n\treturn true ;\n }", "public boolean SetLeft(Tree ln){\n\tleft = ln ;\n\treturn true ;\n }", "public boolean SetLeft(Tree ln){\n\tleft = ln ;\n\treturn true ;\n }", "public boolean SetLeft(Tree ln){\n\tleft = ln ;\n\treturn true ;\n }", "public boolean SetLeft(Tree ln){\n\tleft = ln ;\n\treturn true ;\n }", "public boolean SetLeft(Tree ln){\n\tleft = ln ;\n\treturn true ;\n }", "public boolean SetLeft(Tree ln){\n\tleft = ln ;\n\treturn true ;\n }", "public boolean SetLeft(Tree ln){\n\tleft = ln ;\n\treturn true ;\n }", "public boolean SetLeft(Tree ln){\n\tleft = ln ;\n\treturn true ;\n }", "public boolean SetLeft(Tree ln){\n\tleft = ln ;\n\treturn true ;\n }" ]
[ "0.84438103", "0.7961611", "0.78726673", "0.7713409", "0.7701854", "0.7604954", "0.7596605", "0.7470879", "0.7465755", "0.74178493", "0.7403082", "0.72262084", "0.7172941", "0.7161329", "0.7101791", "0.7065796", "0.7046378", "0.70460874", "0.7044199", "0.7032924", "0.7021216", "0.69965804", "0.697403", "0.69728905", "0.6961566", "0.6941909", "0.69379014", "0.69373316", "0.69333255", "0.6920427", "0.69181734", "0.69181734", "0.6909493", "0.6909078", "0.68778557", "0.68745726", "0.6864543", "0.6858065", "0.68492216", "0.6841003", "0.68378824", "0.6829656", "0.6812003", "0.68034726", "0.679971", "0.6785156", "0.6781178", "0.677709", "0.67600536", "0.6755438", "0.6740603", "0.6731578", "0.6729624", "0.6729624", "0.6704336", "0.6704166", "0.6701462", "0.66966474", "0.66811186", "0.66727966", "0.6672057", "0.6668859", "0.6668563", "0.66637826", "0.6662025", "0.6658103", "0.66515565", "0.66436744", "0.66425484", "0.66361606", "0.66341543", "0.6620395", "0.6617173", "0.66145045", "0.66101134", "0.6608624", "0.66047144", "0.6603695", "0.6594482", "0.65936685", "0.6589148", "0.6581565", "0.65771514", "0.6575326", "0.6575013", "0.65709937", "0.65702206", "0.65702206", "0.65702206", "0.65702206", "0.65702206", "0.65702206", "0.65702206", "0.65702206", "0.65702206", "0.65702206", "0.65702206", "0.65702206", "0.65702206", "0.65702206" ]
0.88442403
0
The getter that returns xRight coordinate
public int getXRight() { return getXLeft() + getXLength(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getRightX() {\n\t\treturn 0;\r\n\t}", "public double getRight() {\n return this.xR;\n }", "public int getXTopRight() {\n return xTopRight;\n }", "protected double getWindowRightX() {\n\t\treturn this.m_windowRightX;\n\t}", "public double getRightXAxis() {\n\t\treturn getRawAxis(Axis_RightX);\n\t}", "public double Right(){\n\t\tdouble farx = x + sizeX - 1;\n\t\treturn (farx);\n\t}", "public float getRight() {\r\n\t\treturn left + width;\r\n\t}", "protected long getRightPosition() {\n return rightPosition;\n }", "public int getRight(){\n\t\treturn platformHitbox.x+width;\n\t}", "public int getRight () {\n\t\treturn right;\n\t}", "public int getX()\r\n {\r\n return xCoord;\r\n }", "public int getX() {\n return xCoord;\n }", "public double getLeft() {\n return this.xL;\n }", "public int getXLeft() {\n return xLeft;\n }", "public int getX() {\n return this.coordinate.x;\n }", "public Coords getLowerRight()\r\n {\r\n return new Coords(x + width, y + height);\r\n }", "protected Number getX() {\n return this.xCoordinate;\n }", "public double getX() {\r\n\t\t return this.xCoord;\r\n\t }", "public float getUpperRightX()\n {\n return ((COSNumber)rectArray.get(2)).floatValue();\n }", "public int getRight() {\n\t\treturn this.right;\n\t}", "double getLeftY();", "public int getX() {\n\treturn baseXCoord;\n}", "public int getX() {\r\n\t\treturn xcoord;\r\n\t}", "public final Vector3d getRight()\n {\n return myDir.cross(myUp).getNormalized();\n }", "protected int getxCoord() {\n\t\treturn xCoord;\n\t}", "public int getxCoordinate() {\n return xCoordinate;\n }", "public int getxCoordinate() {\n return xCoordinate;\n }", "public int getCoordX() \r\n {\r\n \treturn this.coordX;\r\n }", "public int getXCoordinate ()\n {\n return xCoordinate;\n }", "public int getX() {\n if (this.coordinates == null)\n return -1;\n return this.coordinates.x();\n }", "int getX() {\n return xPos;\n }", "public double getX() {\n return position.getX();\n }", "public float getX() { return xCoordinate;}", "public int getX() {\n return (int) xPos;\n }", "public float getRight() {\n return internalGroup.getRight();\n }", "public double getX() {\n return origin.getX();\n }", "public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}", "public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}", "@Override\n\tpublic double getXLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn x+side;\n\t}", "public int getLeftX() {\n\t\treturn 0;\r\n\t}", "public double X_r() {\r\n \t\treturn getX();\r\n \t}", "public BoardCoordinate getLeft() {\n return new BoardCoordinate(x-1, y);\n }", "public int getX()\r\n {\r\n return xLoc;\r\n }", "public int getX() {\n return this.x;\n }", "public Coords getUpperRight()\r\n {\r\n return new Coords(x + width, y);\r\n }", "public int getX() {\n return pos_x;\n }", "public double getLeft() {\r\n\t\treturn -left.getRawAxis(1);\r\n\t}", "public double getX() {\r\n return this.x;\r\n }", "public double getX() {\n return this.x;\n }", "public double getX() {\n return this.x;\n }", "public double getX() {\n return this.x;\n }", "public double getX() {\n return this.x;\n }", "public Location getRight()\n\t{\n\t\tif(checkRight())\n\t\t{\n\t\t\treturn new Location(row,col+1);\n\t\t}\n\t\treturn this;\n\t}", "public int getX() {\r\n return this.x;\r\n }", "public int getX()\r\n {\r\n \treturn xPos;\r\n }", "public int getX(){\n\t\treturn this.x_location;\n\t}", "public int getX()\n {\n return this.x;\n }", "public int getX() {\n return posX;\n }", "public int getX() {\r\n\t\treturn this.x;\r\n\t}", "public int getxCoord() {\n\t\treturn xCoord;\n\t}", "public int getRightNumber() {\n return rightNumber;\n }", "@Basic\n\tpublic double getXCoordinate() {\n\t\treturn this.x;\n\t}", "public double getX() {\n return x;\r\n }", "public int getX() {\n\t\treturn this.x;\n\t}", "public int getX() {\n\t\treturn this.x;\n\t}", "public int getXLeftUpper() {\n return xLeftUpper;\n }", "public int getX() {\n return x;\r\n }", "public final int getX()\n\t{\n\t\treturn pos.x;\n\t}", "public int getX() {\n return this.x;\n }", "int getX_coordinate(){\n return x_coordinate;\n }", "public int getX()\n\t{\n\t\treturn this.x;\n\t}", "public int getX()\n\t{\n\t\treturn this.x;\n\t}", "public int getX() {\n return positionX;\n }", "public double getX() {\r\n return x;\r\n }", "public float getLeftX() {\n\t\treturn leftX;\n\t}", "public final int getX()\n{\n\treturn _x;\n}", "long getX();", "public int getX() {\r\n return xpos;\r\n }", "public double getX(){\n return this.x;\n }", "public int getX() {\n return (int) Math.round(x);\n }", "public int getX() {\r\n return x;\r\n }", "public int getX() {\r\n return x;\r\n }", "private double getPosX() {\n\t\treturn this.posX.get();\n\t}", "public double getxCoordinate() {\n return xCoordinate;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public double getX() {\n return x;\n }" ]
[ "0.85528827", "0.8373238", "0.80936", "0.8039284", "0.7775015", "0.770141", "0.7664508", "0.76299596", "0.7563973", "0.7513233", "0.7495229", "0.7464652", "0.745472", "0.743613", "0.74299806", "0.74296373", "0.7422329", "0.7379661", "0.7376426", "0.73300475", "0.7284616", "0.7233803", "0.72233737", "0.72096086", "0.72054136", "0.71839905", "0.71839905", "0.717695", "0.71506846", "0.7145496", "0.71281284", "0.71230143", "0.7117718", "0.7113513", "0.7106847", "0.71031636", "0.7092094", "0.7092094", "0.70913655", "0.7085868", "0.70811486", "0.70631677", "0.7062756", "0.70572", "0.7056394", "0.70517725", "0.70493114", "0.7048029", "0.7040375", "0.7040375", "0.7040375", "0.7040375", "0.70357025", "0.7033165", "0.7027991", "0.70266557", "0.70247823", "0.70210904", "0.7020564", "0.7018599", "0.70136523", "0.7011591", "0.700878", "0.7002511", "0.7002511", "0.6994282", "0.6992743", "0.6989219", "0.6983994", "0.69809455", "0.69809043", "0.69809043", "0.69771606", "0.69640434", "0.6963936", "0.6960684", "0.69564116", "0.69544333", "0.6949576", "0.6947873", "0.69471633", "0.69471633", "0.6940681", "0.6940572", "0.6935847", "0.6935847", "0.6935847", "0.6935847", "0.6935847", "0.6935847", "0.6935847", "0.6935847", "0.6935847", "0.6935847", "0.6935847", "0.6935847", "0.6935847", "0.6935847", "0.6935847", "0.6929767" ]
0.85715127
0
The getter that returns yTop coordinate
public int getYTop() { return yTop; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getTopY() {\n\t\treturn topY;\n\t}", "public int getY() {\r\n\t\t\r\n\t\treturn topY;\r\n\t}", "public int getTopY() {\n\t\treturn 0;\r\n\t}", "public int getYTopRight() {\n return yTopRight;\n }", "public double getTop() {\n return this.yT;\n }", "Point getTopXY();", "protected double getWindowTopY() {\n\t\treturn this.m_windowTopY;\n\t}", "public float getyPosition() {\n return yPosition;\n }", "public int getyPosition() {\n\t\treturn yPosition;\n\t}", "public double Top(){\n\t\treturn (y);\n\t}", "public int getyPos() {\n return yPos;\n }", "public int getCoordY() \r\n {\r\n \treturn this.coordY;\r\n }", "protected Number getY() {\n return this.yCoordinate;\n }", "public int yPos() {\r\n\t\treturn this.yPos;\r\n\t}", "public int yPos() {\r\n\t\treturn this.yPos;\r\n\t}", "public int getYPoint() {\r\n return this.y;\r\n }", "private double getPosY() {\n\t\treturn this.posX.get();\n\t}", "public int getyPos() {\n\t\treturn yPos;\n\t}", "public final int getYOffset() {\n return yOffset;\n }", "public int getY()\r\n {\r\n return yLoc;\r\n }", "public int getyCoordinate() {\n return yCoordinate;\n }", "public int getyCoordinate() {\n return yCoordinate;\n }", "public int getyPos() \n\t{\n\t\treturn yPos;\n\t}", "public int getYPosition() {\n return this.yPosition;\n }", "public final int getY()\n\t{\n\t\treturn pos.y;\n\t}", "public int getyCoord() {\r\n\t\treturn yCoord;\r\n\t}", "public double getPositionY() {\n\t\treturn this.tilePositionY;\n\t}", "public int getY() {\r\n return ypos;\r\n }", "public int getY()\n\t{\n\t\treturn m_nPosY;\n\t}", "public int getYPosition() {\n return yPosition;\n }", "public double getYPosition()\n\t{\n\t\treturn yPosition;\n\t}", "public int getY() {\n return (int) yPos;\n }", "public int getY() {\r\n return this.y;\r\n }", "public int getY()\r\n\t{\r\n\t\treturn this.Y;\r\n\t}", "public int getY()\n {\n return this.y;\n }", "public int getY() {\n return posY;\n }", "public int getyCoord() {\n\t\treturn yCoord;\n\t}", "public int getY() {\r\n\t\treturn this.y;\r\n\t}", "public int getLocY() {\n return locY;\n }", "public int getY() {\n\t\t\n\t\treturn yPosition;\t\t// Gets the y integer\n\t}", "public int getYPosition()\n {\n return yPosition;\n }", "public int getYPosition()\n {\n return yPosition;\n }", "public int getY() {\r\n\t\treturn ycoord;\r\n\t}", "public int getY() {\n\t\treturn this.y;\n\t}", "public int getY() {\n\t\treturn this.y;\n\t}", "public int getY() {\n\t\treturn this.y;\n\t}", "public int getPosY() {\r\n\t\treturn posY;\r\n\t}", "public int getPosY() {\n\t\treturn posY;\n\t}", "public int getY() {\n return yCoord;\n }", "public int getYPosition(){\n\t\treturn yPosition;\n\t}", "public int getPointY() {\n return pointY;\n }", "public int getY()\n\t{\n\t\treturn this.y;\n\t}", "public int getY()\n\t{\n\t\treturn this.y;\n\t}", "public int getPos_y(){\n\t\treturn pos_y;\n\t}", "public int getY()\r\n {\r\n return yCoord;\r\n }", "public int getY() {\n synchronized (this.yLock) {\n return (int) this.movementComposer.getYPosition();\n }\n }", "public int y() {\r\n\t\treturn yCoord;\r\n\t}", "public int getYPosition() {\n\t\treturn this.position.y;\n\t}", "public final float getPositionY() {\r\n\t\treturn getState(false).getPositionY();\r\n\t}", "public int getY() {\n return this.y;\n }", "public double getyOffset() {\n\n return currentYOffset + yOffset;\n }", "public int getPosY() {\n return posY;\n }", "public float getY() {\n return pos.y;\n }", "@Override\n\tpublic float getY() {\n\t\treturn this.y;\n\t}", "public int getY() {\n return positionY;\n }", "public int getLocY() {\n return locY;\n }", "public int getPositionY() {\n return positionY;\n }", "public int getTop(){\n\t\treturn platformHitbox.y;\n\t}", "public int getY() {\n return pos_y;\n }", "public int getY() {\r\n return y;\r\n }", "public int getY() {\r\n return y;\r\n }", "public int getPositionY() {\r\n\t\treturn positionY;\r\n\t}", "public int getY() {\n return y;\r\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public float getYOffset() {\n return mYOffset;\n }", "int getY() {\n return yPos;\n }", "public int getY() {\r\n\t\treturn y;\r\n\t}", "public int getY() {\r\n\t\treturn y;\r\n\t}", "public int getY() {\r\n\t\treturn y;\r\n\t}", "public int getY()\n\t{\n\t\treturn mY;\n\t}", "public double getPositionY() {\n return positionY_;\n }", "public double getPositionY() {\n return positionY_;\n }", "public double getPositionY() {\n return positionY_;\n }", "public double getY() {\n return position.getY();\n }", "public double getYPos() {\n\t\treturn this.position[1];\n\t}", "public int getY()\n {\n return y;\n }" ]
[ "0.8873345", "0.87438184", "0.85687333", "0.8222457", "0.81706524", "0.8084668", "0.8020372", "0.8002368", "0.79734075", "0.7965837", "0.78994524", "0.7835475", "0.78194517", "0.78193897", "0.78193897", "0.7815438", "0.78147906", "0.78029764", "0.78026086", "0.7799689", "0.77995706", "0.77995706", "0.7795041", "0.77891487", "0.77871406", "0.7784935", "0.7784442", "0.7781825", "0.7777884", "0.7770188", "0.77697253", "0.77614015", "0.77578944", "0.7755136", "0.7752315", "0.7751643", "0.77514637", "0.77463853", "0.774284", "0.77393764", "0.7732702", "0.7732702", "0.7723416", "0.77233034", "0.77233034", "0.77233034", "0.7715966", "0.7703266", "0.76955223", "0.7690566", "0.7688347", "0.7682177", "0.7682177", "0.76810706", "0.7678926", "0.7676978", "0.7672465", "0.7672013", "0.7671271", "0.7668681", "0.76672244", "0.7664278", "0.76633924", "0.7657478", "0.7655347", "0.7653028", "0.7652529", "0.7652142", "0.765183", "0.76510036", "0.76510036", "0.7641615", "0.7634734", "0.76283616", "0.76283616", "0.76283616", "0.76283616", "0.76283616", "0.76283616", "0.76283616", "0.76283616", "0.76283616", "0.76283616", "0.76283616", "0.76283616", "0.76283616", "0.76283616", "0.76283616", "0.762278", "0.76192874", "0.7615537", "0.7615537", "0.7615537", "0.76142776", "0.7610034", "0.7608896", "0.7608896", "0.7608701", "0.7605571", "0.76003367" ]
0.8919823
0
The setter for yTop coordinate
public void setYTop(int top) { this.yTop = top; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getYTop() {\n return yTop;\n }", "public float getTopY() {\n\t\treturn topY;\n\t}", "public int getY() {\r\n\t\t\r\n\t\treturn topY;\r\n\t}", "public void setY(int y){ yPosition = y; }", "@Override\n\tpublic void setY(int y) {\n\t\tyPos = y;\n\t}", "void setY(int newY) {\n this.yPos = newY;\n }", "void setY(int y) {\n position = position.setY(y);\n }", "public int getTopY() {\n\t\treturn 0;\r\n\t}", "public void setY(int ypos) {\r\n this.ypos = ypos;\r\n }", "public void setyPos(int yPos) {\r\n this.yPos = yPos;\r\n }", "public void setY(int yPos){\t\t\n\t\ty = new Integer(yPos);\n\t}", "public void setYPosition(double y)\n\t{\n\t\tthis.yPosition = y;\n\t}", "public void setY(int value) {\n this.y = value;\n }", "public void setExtendedY(float y) {\n mMaximumTop = (int) y;\n }", "public void setyPosition(int yPosition) {\n\t\tthis.yPosition = yPosition;\n\t}", "@Override\n\tpublic void setY(int y) {\n\n\t}", "public void setYPosition(int newY) {\n this.yPosition = newY;\n }", "public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}", "public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}", "public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}", "public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}", "public void setY( int y ) {\n\t\t//not checking if y is valid because that depends on the coordinate system\n\t\tthis.y = y;\n\t}", "@Override\n\tpublic void setY(int y) {\n\t\t\n\t}", "@Test\r\n\tpublic void testSetPositionY(){\n\t\tWinnerTitle title = new WinnerTitle(1, 0, 0);\r\n\t\ttitle.setPositionY(25);\r\n\t\t\r\n\t\tassertEquals(25, title.getPositionY());\r\n\t}", "public void setY(int y) {\n\tbaseYCoord = y;\n}", "public void setY(int y){\r\n\t\tthis.y = y;\r\n\t}", "public void setY(int y){\n\t\tthis.y_location = y;\n\t}", "public void setY(int y) {\n this.y = y;\n }", "public void setY(int y) {\n this.y = y;\n }", "public void setY(int y) {\n this.y = y;\n }", "public void setY(int y)\n\t{\n\t\tthis.y = y;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's y-coordinate \n\t}", "public void setY(int y) {\n this.y = y;\r\n }", "public void setyPos(int yPos) {\n\t\tthis.yPos = yPos;\n\t}", "public void setyPos(int yPos) \n\t{\n\t\tthis.yPos = yPos;\n\t}", "public void setYPos(int yPos) {\r\n\t\tthis.yPos = yPos;\r\n\t}", "public void setY(int y) {\n\t\tthis.y = y;\n\t}", "public void setY(int y) {\n\t\tthis.y = y;\n\t}", "public void setY(int y) {\n\t\tthis.y = y;\n\t}", "public void setY(int y) {\n\t\tthis.y = y;\n\t}", "public void setY(int y)\n {\n this.y = y;\n }", "public void setY(int y ){\n if(y>0){\n this.y=y;\n }\n \n }", "public void setY(int value)\n\t{\n\t\tgetWorldPosition().setY(value);\n\t}", "public void setPosY(double posY) {\n\t\tthis.PosY = posY;\r\n\t}", "public void setYPos(int yPos) {\n\t\tthis.yPos=yPos;\n\t}", "@Override\n public void setY(int y) {\n this.y=y;\n }", "void setY(final Number y) {\n this.yCoordinate = y;\n }", "void setY(int y) {\n this.y = y;\n }", "public void setY(int y) {\n\t\tthis.Y = y;\n\t}", "public void setY(double val) {\r\n\t\t this.yCoord = val;\r\n\t }", "public void setYCoordinates(double newY) { this.yCoordinates = newY; }", "public void setY(int newY)\r\n {\r\n yCoord = newY;\r\n }", "public void setY(int y){\n this.y = y;\n }", "public void setY(int y){\n this.y = y;\n }", "public void setY(int y){\n this.y = y;\n }", "@SuppressWarnings(\"unchecked\")\n\t@NotNull\n\tpublic J setTop(MeasurementCSSImpl top)\n\t{\n\t\tthis.top = top;\n\t\treturn (J) this;\n\t}", "public void setY(int y) { loc.y = y; }", "public void setY(final int y) {\n\n this.y = y;\n }", "public void setYPosition( int yCoordinate ) {\n yPosition = yCoordinate;\n }", "public void setY(int yCoord) {\n this.yCoord = yCoord;\n }", "public void setY(long y){\n this.y = y;\n }", "public void setYPos(int y) {\n // from MoveEventHandler\n // convert to real y coord\n // y = yP * (ymaxR - yminr) / (ymaxP - yminP)\n double tmp = config.getMaximumRealY() + (y - config.getMaximumPixelY())*(config.getMaximumRealY() - config.getMinimumRealY())/(config.getMaximumPixelY() - config.getMinimumPixelY());\n ypos.setText(formatter.format(tmp));\n }", "public final void setPositionY(float positionY) {\r\n\t\tgetState().setPositionY(positionY);\r\n\t\tif (layout != null) {\r\n\t\t\tComponentPosition pos = layout.getPosition(this);\r\n\r\n\t\t\tif (pos != null) {\r\n\t\t\t\tpos.setTopValue(Float.parseFloat(positionY + \"\"));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setPosY(int posY) {\n this.posY = posY;\n }", "public float getyPosition() {\n return yPosition;\n }", "public void setY(int ycoord) {\n\t\ty = ycoord;\n\t}", "public void setY(int y) { this.y=y; }", "public void setY(double value) {\n origin.setY(value);\n }", "public void setY(int theY)\r\n {\r\n y = theY;\r\n }", "@Override\n\tpublic void setY(float y) {\n\n\t}", "@Override\r\n\tpublic void setY(float y) {\n\t\t\r\n\t}", "public void setPosY(int posY) {\n\t\tthis.posY = posY;\n\t}", "public int getYTopRight() {\n return yTopRight;\n }", "public PlotPosition setY( double y )\n {\n return setY( y, 1 );\n }", "public void setY(double value) {\n this.y = value;\n }", "public int getyPosition() {\n\t\treturn yPosition;\n\t}", "public void setPosY(float posY) {\n this.posY = posY;\n }", "public void setY(float y){\n hitBox.offsetTo(hitBox.left,y);\n //this.y=y;\n }", "public void setPositionY(float y) {\n\t\tthis.position.set(this.position.x, y, 0);\n\t}", "public void setPosY(int posY){\n\t\tthis.posY=posY;\n\t}", "public void setY(int y) {\r\n this.y = y;\r\n\r\n this.slot = Slot.fromXY(getX(), y);\r\n }", "public void setPositionY(int positionY) {\r\n\t\tthis.positionY = positionY;\r\n\t}", "public void setYCoordinate(int newValue)\n {\n y = newValue;\n }", "@Override\n\tpublic float getY() {\n\t\treturn lilyPosY;\n\t}", "public void setY(float y) {\r\n\t\tthis.y = y;\r\n\t}", "public int getY() {\r\n return ypos;\r\n }", "public void setY(float y) {\n this.y = y;\n }", "@Override\n\tpublic void setY(float y) \n\t{\n\t\t_y = y;\n\t}", "public void setY(float y){\n this.y = y;\n }", "public void setY(Float y) {\n\t\tthis.y = y;\n\t}", "public void setY(float y)\n {\n getBounds().offsetTo(getBounds().left, y - positionAnchor.y);\n notifyParentOfPositionChange();\n conditionallyRelayout();\n }", "@Override\r\n\tpublic void setPositionY(int y) {\n\t\tif (!(y >= 0))\r\n\t\t\tthrow new PreConditionError(\"Error PreCondition: y >= 0\");\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\tsuper.setPositionY(y);\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\t// post: getPositionY() == y\r\n\t\tif (!(getPositionY() == y))\r\n\t\t\tthrow new PostConditionError(\"Error PostCondition: getPositionY() == y\");\r\n\t}", "protected double getWindowTopY() {\n\t\treturn this.m_windowTopY;\n\t}", "default void setY(double y)\n {\n getAxis().setY(y);\n }", "public int getyPos() {\n return yPos;\n }", "public void setPosY(final int posY) {\n\t\tthis.posY = posY;\n\t}", "public int getyPos() {\n\t\treturn yPos;\n\t}", "public Builder setPositionY(double value) {\n bitField0_ |= 0x00000008;\n positionY_ = value;\n onChanged();\n return this;\n }", "public Builder setPositionY(double value) {\n bitField0_ |= 0x00000080;\n positionY_ = value;\n onChanged();\n return this;\n }", "public int yPos() {\r\n\t\treturn this.yPos;\r\n\t}", "public int yPos() {\r\n\t\treturn this.yPos;\r\n\t}" ]
[ "0.79625875", "0.7800294", "0.7685133", "0.7619933", "0.75165695", "0.74281484", "0.73715776", "0.7369329", "0.73484105", "0.7346463", "0.7288197", "0.72372955", "0.7234346", "0.72282976", "0.7221921", "0.72033745", "0.719622", "0.7184116", "0.7184116", "0.7184116", "0.7184116", "0.7168897", "0.7164113", "0.7160551", "0.7155477", "0.71534395", "0.71314794", "0.7131036", "0.7131036", "0.7131036", "0.7126745", "0.7116335", "0.7115384", "0.7107519", "0.71025914", "0.7095107", "0.7095107", "0.7095107", "0.7095107", "0.7090548", "0.7070393", "0.7051184", "0.70502174", "0.7047631", "0.7041551", "0.7034586", "0.70203114", "0.70122606", "0.7011933", "0.699976", "0.69985", "0.69978404", "0.69978404", "0.69978404", "0.69902855", "0.69625956", "0.6955649", "0.6948643", "0.69433033", "0.69379705", "0.69274324", "0.69261044", "0.69186306", "0.6917813", "0.69133353", "0.69068575", "0.69066805", "0.6896514", "0.68770856", "0.68717986", "0.6866186", "0.6862271", "0.68528825", "0.6850973", "0.68427706", "0.6827053", "0.6813125", "0.6812382", "0.68065923", "0.68050855", "0.67824227", "0.67789674", "0.67739666", "0.6769639", "0.6757642", "0.6749867", "0.67475694", "0.67440695", "0.673107", "0.6730971", "0.6726972", "0.6725973", "0.6723559", "0.6719818", "0.6714275", "0.66981584", "0.66842705", "0.66794336", "0.6666381", "0.6666381" ]
0.8837264
0
The getter that returns xRight coordinate
public int getYBottom() { return getYTop() + getYWidth(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getXRight() {\n return getXLeft() + getXLength();\n }", "public int getRightX() {\n\t\treturn 0;\r\n\t}", "public double getRight() {\n return this.xR;\n }", "public int getXTopRight() {\n return xTopRight;\n }", "protected double getWindowRightX() {\n\t\treturn this.m_windowRightX;\n\t}", "public double getRightXAxis() {\n\t\treturn getRawAxis(Axis_RightX);\n\t}", "public double Right(){\n\t\tdouble farx = x + sizeX - 1;\n\t\treturn (farx);\n\t}", "public float getRight() {\r\n\t\treturn left + width;\r\n\t}", "protected long getRightPosition() {\n return rightPosition;\n }", "public int getRight(){\n\t\treturn platformHitbox.x+width;\n\t}", "public int getRight () {\n\t\treturn right;\n\t}", "public int getX()\r\n {\r\n return xCoord;\r\n }", "public int getX() {\n return xCoord;\n }", "public double getLeft() {\n return this.xL;\n }", "public int getXLeft() {\n return xLeft;\n }", "public Coords getLowerRight()\r\n {\r\n return new Coords(x + width, y + height);\r\n }", "public int getX() {\n return this.coordinate.x;\n }", "protected Number getX() {\n return this.xCoordinate;\n }", "public double getX() {\r\n\t\t return this.xCoord;\r\n\t }", "public float getUpperRightX()\n {\n return ((COSNumber)rectArray.get(2)).floatValue();\n }", "public int getRight() {\n\t\treturn this.right;\n\t}", "double getLeftY();", "public int getX() {\n\treturn baseXCoord;\n}", "public int getX() {\r\n\t\treturn xcoord;\r\n\t}", "public final Vector3d getRight()\n {\n return myDir.cross(myUp).getNormalized();\n }", "protected int getxCoord() {\n\t\treturn xCoord;\n\t}", "public int getxCoordinate() {\n return xCoordinate;\n }", "public int getxCoordinate() {\n return xCoordinate;\n }", "public int getCoordX() \r\n {\r\n \treturn this.coordX;\r\n }", "public int getXCoordinate ()\n {\n return xCoordinate;\n }", "public int getX() {\n if (this.coordinates == null)\n return -1;\n return this.coordinates.x();\n }", "int getX() {\n return xPos;\n }", "public double getX() {\n return position.getX();\n }", "public float getX() { return xCoordinate;}", "public int getX() {\n return (int) xPos;\n }", "public float getRight() {\n return internalGroup.getRight();\n }", "public double getX() {\n return origin.getX();\n }", "@Override\n\tpublic double getXLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn x+side;\n\t}", "public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}", "public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}", "public int getLeftX() {\n\t\treturn 0;\r\n\t}", "public double X_r() {\r\n \t\treturn getX();\r\n \t}", "public BoardCoordinate getLeft() {\n return new BoardCoordinate(x-1, y);\n }", "public int getX()\r\n {\r\n return xLoc;\r\n }", "public Coords getUpperRight()\r\n {\r\n return new Coords(x + width, y);\r\n }", "public int getX() {\n return this.x;\n }", "public int getX() {\n return pos_x;\n }", "public double getLeft() {\r\n\t\treturn -left.getRawAxis(1);\r\n\t}", "public double getX() {\r\n return this.x;\r\n }", "public double getX() {\n return this.x;\n }", "public double getX() {\n return this.x;\n }", "public double getX() {\n return this.x;\n }", "public double getX() {\n return this.x;\n }", "public Location getRight()\n\t{\n\t\tif(checkRight())\n\t\t{\n\t\t\treturn new Location(row,col+1);\n\t\t}\n\t\treturn this;\n\t}", "public int getX() {\r\n return this.x;\r\n }", "public int getX()\r\n {\r\n \treturn xPos;\r\n }", "public int getX(){\n\t\treturn this.x_location;\n\t}", "public int getX()\n {\n return this.x;\n }", "public int getX() {\n return posX;\n }", "public int getX() {\r\n\t\treturn this.x;\r\n\t}", "public int getxCoord() {\n\t\treturn xCoord;\n\t}", "public int getRightNumber() {\n return rightNumber;\n }", "@Basic\n\tpublic double getXCoordinate() {\n\t\treturn this.x;\n\t}", "public double getX() {\n return x;\r\n }", "public int getX() {\n\t\treturn this.x;\n\t}", "public int getX() {\n\t\treturn this.x;\n\t}", "public int getXLeftUpper() {\n return xLeftUpper;\n }", "public int getX() {\n return x;\r\n }", "public final int getX()\n\t{\n\t\treturn pos.x;\n\t}", "public int getX() {\n return this.x;\n }", "public int getX()\n\t{\n\t\treturn this.x;\n\t}", "public int getX()\n\t{\n\t\treturn this.x;\n\t}", "int getX_coordinate(){\n return x_coordinate;\n }", "public int getX() {\n return positionX;\n }", "public float getLeftX() {\n\t\treturn leftX;\n\t}", "public double getX() {\r\n return x;\r\n }", "public final int getX()\n{\n\treturn _x;\n}", "long getX();", "public int getX() {\r\n return xpos;\r\n }", "public double getX(){\n return this.x;\n }", "public int getX() {\n return (int) Math.round(x);\n }", "public int getX() {\r\n return x;\r\n }", "public int getX() {\r\n return x;\r\n }", "private double getPosX() {\n\t\treturn this.posX.get();\n\t}", "public double getxCoordinate() {\n return xCoordinate;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public double getX() {\n return x;\n }" ]
[ "0.8571616", "0.8552569", "0.8373541", "0.8092532", "0.80395526", "0.77745676", "0.7701894", "0.76651585", "0.76297253", "0.7563535", "0.75141543", "0.7492095", "0.7461544", "0.74538255", "0.743493", "0.7428776", "0.7427034", "0.74197406", "0.7376752", "0.73760635", "0.7331063", "0.7283442", "0.72314256", "0.7220173", "0.72107404", "0.7202397", "0.7180815", "0.7180815", "0.71741784", "0.7147346", "0.71431273", "0.71258", "0.71202546", "0.71144867", "0.71107215", "0.7107648", "0.7101043", "0.7089055", "0.70889246", "0.70889246", "0.70846355", "0.7080055", "0.70622647", "0.705983", "0.705633", "0.7055316", "0.70489705", "0.7048179", "0.70461833", "0.70385253", "0.70385253", "0.70385253", "0.70385253", "0.7036006", "0.70312756", "0.7025135", "0.7023527", "0.7023129", "0.70185", "0.70184714", "0.7015502", "0.7014286", "0.7009337", "0.70068735", "0.70004356", "0.70004356", "0.6993577", "0.6990837", "0.69865227", "0.69822085", "0.6978893", "0.6978893", "0.6978422", "0.69742894", "0.6962989", "0.696211", "0.69592047", "0.6954638", "0.6951475", "0.69477844", "0.69459915", "0.694525", "0.694525", "0.6938138", "0.693753", "0.6934008", "0.6934008", "0.6934008", "0.6934008", "0.6934008", "0.6934008", "0.6934008", "0.6934008", "0.6934008", "0.6934008", "0.6934008", "0.6934008", "0.6934008", "0.6934008", "0.6934008", "0.69278806" ]
0.0
-1
The getter that returns yWidth value
public int getYWidth() { return yWidth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getYSize()\n\t{\n\t\treturn this.ySize;\n\t}", "public double getWidth()\r\n {\r\n return width;\r\n }", "public double getWidth() {\r\n return width;\r\n }", "public double getWidth() {\n\t\t\treturn width.get();\n\t\t}", "double getYLength();", "public double getWidth()\n {\n return width;\n }", "public double getWidth () {\n return width;\n }", "public double getWidth() {\n return width;\n }", "public double getWidth() {\n return width;\n }", "public double getWidth() {\n return width;\n }", "Double getYLength();", "public double getWidth();", "public double getWidth();", "private double getWidth() {\n\t\treturn width;\n\t}", "public double getWidth() {\r\n\t\treturn width;\r\n\t}", "public String getWidth() {\n return width;\n }", "public int getWidth() { return width; }", "public int getWidth() { return width; }", "double getWidth() {\n return width;\n }", "public double getWidth() {\n\treturn width;\n }", "public double getWidth() {\n\t\treturn width;\n\t}", "public double getWidth() {\n\t\treturn width;\n\t}", "public double getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\r\n return width;\r\n }", "public int getWidth() {\r\n return width;\r\n }", "@Basic\n\tpublic int getWidth() {\n\t\treturn getCurrentSprite().getWidth();\n\t}", "public int getWidth()\n {\n return width;\n }", "public int getWidth()\n {\n return width;\n }", "public int getWidth()\n {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public Integer getWidth()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.width, null);\n }", "public int getWidth()\n {\n return this.width;\n }", "public float getWidth() {\n return width;\n }", "public int getWidth() {\n return this.width;\n }", "public int getWidth() {\n return this.width;\n }", "public double width() { return _width; }", "public int getWidth()\n {\n return width;\n }", "public Integer getWidth() {\n return this.width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return this._width;\n }", "public int getWidth() {\n return width_;\n }", "final public double getWidth()\n\t{\n\t\treturn width;\n\t}", "public abstract int getYSize();", "double getWidth()\n {\n return width;\n }", "public int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}", "public final int getWidth() {\r\n return width;\r\n }", "public float getWidth() {\n return this.width;\n }", "public final int getWidth(){\n return width_;\n }", "public int getWidth() {\n return width_;\n }", "public int getWidth() {\n return width_;\n }", "public int getWidth() \n\t{\n\t\treturn width;\n\t}", "public int getWidth() {\r\n\t\treturn width;\r\n\t}", "public int getWidth() {\r\n\t\treturn width;\r\n\t}", "public int getWidth(){\n return this.width;\n }", "public int getWidth()\n\t{\n\t\treturn this._width;\n\t}", "public float getWidth() {\r\n\t\treturn width;\r\n\t}", "public int getWidth()\n {\n\treturn width;\n }", "public int getWidth() {\n\t\treturn width;\r\n\t}", "public int getWidth()\n\t{\n\t\treturn width;\n\t}", "public int getWidth()\n\t{\n\t\treturn width;\n\t}", "public int getWidth() {\r\n\t\treturn this.width;\r\n\t}", "public int getWidth() {\n return width_;\n }", "public int getWidth(){\n return width;\n }", "int getWidth() {return width;}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public double getWidth() {\r\n\r\n\t\treturn w;\r\n\r\n\t}", "public float getWidth() {\n\t\treturn width;\n\t}", "@java.lang.Override\n public long getWidth() {\n return width_;\n }", "public int getWidth() {\n\t\treturn this.width;\n\t}", "public int getWidth() {\n\t\treturn this.width;\n\t}", "public double[] getWidth() { return this.width; }", "public int getWidth(){\n\t\treturn width;\n\t}", "public int getWidth() {\n return mWidth;\n }", "public int getSizeY(){\r\n\t\treturn size[1];\r\n\t}", "public int getWidth() {\r\n\t\t\r\n\t\treturn width;\r\n\t}" ]
[ "0.7625998", "0.7575434", "0.7552744", "0.754295", "0.7542909", "0.7520479", "0.7516373", "0.75031877", "0.75031877", "0.75031877", "0.7480299", "0.74386096", "0.74386096", "0.7437527", "0.7418134", "0.73989546", "0.73933727", "0.73933727", "0.73870045", "0.73809475", "0.73773354", "0.73773354", "0.73773354", "0.73704463", "0.7354715", "0.73336136", "0.733157", "0.733157", "0.733157", "0.7330881", "0.7330881", "0.7330881", "0.7330881", "0.7330881", "0.7330881", "0.7330881", "0.7330881", "0.7330881", "0.7330881", "0.7330881", "0.7330881", "0.7330881", "0.7324512", "0.73224753", "0.73130256", "0.73121166", "0.73121166", "0.73096377", "0.7305907", "0.7303177", "0.72989076", "0.72989076", "0.7297137", "0.72952926", "0.7294246", "0.72840405", "0.7273678", "0.7267331", "0.72566646", "0.7254216", "0.72522324", "0.72449195", "0.72449195", "0.7238664", "0.72311175", "0.72311175", "0.72308457", "0.72301614", "0.7228497", "0.7226919", "0.7220939", "0.72197944", "0.72197944", "0.7218411", "0.7215171", "0.7214367", "0.72136915", "0.7212307", "0.7212307", "0.7212307", "0.7212307", "0.7212307", "0.7212307", "0.7212307", "0.7212307", "0.7212307", "0.7212307", "0.7212307", "0.7212307", "0.7212307", "0.72058237", "0.72024274", "0.7202171", "0.7198437", "0.7198437", "0.7198205", "0.71963304", "0.71916956", "0.7187581", "0.71868163" ]
0.8848035
0
The setter for yWidth size
public void setYWidth(int width) { this.yWidth = width; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getYWidth() {\n return yWidth;\n }", "public void setYSize(int ySize) {\n\t\tif (ySize < 0) {\n\t\t\tSystem.out.println(\"ySize should be positive! It is set to \" + Y_SIZE + \".\");\n\t\t\tySize = Y_SIZE;\n\t\t}\n\t\tthis.ySize = ySize;\n\n\t\t// To update the panel with new values if necessary\n\t\tthis.setNumRabbits(this.getNumRabbits());\n\n\t\tupdatePanel();\n\t}", "public void setWidthHeight(double x, double y) {\n\t\twidth = x;\n\t\theight = y;\n\t}", "public void setWidth(double value) {\n this.width = value;\n }", "public void setSize(double aWidth, double aHeight) { setWidth(aWidth); setHeight(aHeight); }", "public DynamicModelPart setSizeY(int[] sizeY) {\n this.sizeY = sizeY;\n return this;\n }", "public int getYSize()\n\t{\n\t\treturn this.ySize;\n\t}", "public DynamicCuboid setSizeY(float y) {\n this.sizeY = y;\n return this;\n }", "@Override\n void setWidthHeight() {\n setWidth(explosions[0].getWidth());\n setHeight(explosions[1].getHeight());\n }", "public void setSize(int x, int y)\n {\n \tthis.width = x;\n \tthis.height = y;\n }", "void setWidth(int width);", "void setWidth(int width);", "public void setWidth(double width) {\r\n this.width = width;\r\n }", "public abstract int getYSize();", "void setThumbSizeY(long thumbSizeY);", "public void setWidth(double width) {\n this.width = width;\n }", "public void setWidth(int w)\n {\n width = w;\n }", "public void setWidth(int w){\n \twidth = w;\n }", "public void setWidth(double width) {\n this.width = width;\n }", "public void setWidth(final int theWidth) {\n myWidth = theWidth;\n }", "void setTubeDownDimension(double width, double height);", "void setWidthHeight() {\n\t\tsetWidthHeight(getNcols() * grid().gridW, getNvisibleRows() * grid().gridH);\n\t}", "void setDimension(double width, double height);", "public void setWidth(final String value)\n {\n width = value;\n }", "public void setWidth(int w) {\n this.width = w;\n }", "public int getSizeY() {\r\n\t\treturn sizeY;\r\n\t}", "public void setFrameSize();", "public void setWitdh(int newValue)\n {\n width = newValue;\n }", "public void setSize(double size) \n {\n this.size = size;\n }", "public void changeHeight(double y)\r\n {\n }", "@Override\r\n\tpublic void setWidth(int width) {\n\t\t\r\n\t}", "@Override\n\tpublic void setWidth(float width) {\n\n\t}", "void setFitWidth(short width);", "public void yBindWidth(String bind_name, ObservableValue<? extends Number> width, boolean stroke_included);", "public void setWidth(int width)\n {\n this.width = width;\n }", "public void setWidth(Integer width) {\n this.width = width;\n control.draw();\n }", "public void setSize(float width, float height);", "@Override\r\n public void setWidth(String width) {\n }", "public void setWidth(int width) {\n this.width = width;\n }", "public void setWidth(int w){ widthRadius = w; }", "public void setWidth(double width) {\n\t\tthis.width = width;\n\t}", "public void setWidth(double width) {\n\t\tthis.width = width;\n\t}", "public void setWidth(int w) {\n this.W = w;\n }", "public void setWidth(double w)\n { this.widthDefault = w; }", "void setTubeUpDimension(double width, double height);", "private void setWidth(long value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n }", "public void setWidth(int w) {\n\t\twidth = w;\n\t}", "public void setWidth(int width) {\n\tthis.width = width;\n\tcalculateWidthRatio();\n }", "public void setSize();", "public void setSize(double value) {\n getElement().setSize(value);\n }", "@JsProperty\n public void setWidth(int width);", "public float getSizeY(){return sy;}", "public void setHeight(double value) {\n this.height = value;\n }", "private void setFrameSize(int width, int height){\r\n\t\tthis.framewidth=width;\r\n\t\tthis.frameheight=height;\r\n\t}", "public void setWidth(Double width) {\n\t\tthis.width = width;\n\t}", "protected abstract void setSize();", "public void setDimY (int value)\n {\n m_dim_y = value;\n }", "@JSProperty(\"tickWidth\")\n void setTickWidth(double value);", "void setFitHeight(short height);", "public void setWidth( int width ) {\n\t\t_width = width;\n\t}", "public final native void setWidth(double width) /*-{\n this.setWidth(width);\n }-*/;", "public void setSize(RMSize aSize) { setSize(aSize.width, aSize.height); }", "public void setWidth(String width) {\r\n this.width = width;\r\n }", "public void setWidth(int width) {\n\t\tw = width;\n\t}", "void setSize(Dimension size);", "public void size(final int theWidth, final int theHeight);", "private void setTargetWidth(int width)\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\tmTargetWidth = width;\r\n\t\t}\r\n\t}", "public void setScaleY(double aValue)\n{\n if(aValue==getScaleY()) return;\n repaint();\n firePropertyChange(\"ScaleY\", getRSS().scaleY, getRSS().scaleY = aValue, -1);\n}", "@Override\n public double getWidth() {\n return width;\n }", "public int getWidth() { return width; }", "public int getWidth() { return width; }", "public void setWidth(int width) {\n\t\tthis.width = width;\n\t}", "public void setSize(double s)\n\t{\n\t\tsize = s;\n\t}", "public void setWidth(int newWidth) {\n roomWidth = newWidth;\n }", "public int getSizeY(){\r\n\t\treturn size[1];\r\n\t}", "protected final void setSize(float width, float height)\n {\n boolean flag = this.bokoblinWidth > 0.0F && this.bokoblinHeight > 0.0F;\n this.bokoblinWidth = width;\n this.bokoblinHeight = height;\n\n if (!flag)\n {\n this.multiplySize(1.0F);\n }\n }", "@Override\n public int getWidth() {\n return width;\n }", "@Override\n public int getWidth() {\n return width;\n }", "void setSize(float w, float h) {\n _w = w;\n _h = h;\n }", "void setHeight(int height);", "void setHeight(int height);", "public void setSize(Dimension size) {\r\n this.size = size;\r\n }", "public void changeSize(Integer newLength, Integer newHeight) {\n control.erase();\n width = newLength;\n height = newHeight;\n control.draw();\n }", "public abstract void setSize(Dimension d);", "public void setBarSize(int aValue)\n {\n if (aValue==_barSize) return;\n firePropChange(BarSize_Prop, _barSize, _barSize = aValue);\n }", "@Override\n\tprotected void changeSize(int x, int y, int previousX, int previousY) {\n this.setWidth(this.getWidth()+(x-previousX));\n this.setHeight(this.getHeight()+(y-previousY));\n this.setX(this.getX()+(x-previousX));\n\t}", "public void setWidth(double aValue)\n{\n if(_width==aValue) return; // If value already set, just return\n repaint(); // Register repaint\n firePropertyChange(\"Width\", _width, _width = aValue, -1); // Set value and fire PropertyChange\n if(_parent!=null) _parent.setNeedsLayout(true); // Rather bogus\n}", "public void setHeight(int h){ heightRadius = h; }", "public void setLineWidth ( int width ) {\r\n\t\tline_width = width;\r\n\t}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void setHeight(int height);", "public void setHeight(int height);", "public int getWidth() {\n return mySize.getWidth();\n }", "public void setWidth(int width) {\n if(width < 0) throw new NegativeSizeException(\"Negative width\");\n \tthis.width = width;\n }", "public void setWidth(int width) {\n if (width > 0) {\n this.width = width;\n }\n }", "public void setWidth(String string) {\r\n\t\t_width = string;\r\n\t}", "public void setSizeY(int y){\r\n\t\t\r\n\t\ttry{\r\n\t\t\tif(y>0)\r\n\t\t\t\tsize[1] = y;\r\n\t\t\telse\r\n\t\t\tthrow new negativeNumberException();\r\n\t\t}catch(negativeNumberException ex){\r\n\t\t\tSystem.out.print(\"Dimensions can not be zero or less!\" +\"\\n\");\r\n\t\t\tSystem.out.print(\"Please enter a valid dimension: \");\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\tint retry = input.nextInt();\r\n\t\t\tsetSizeY(retry);\r\n\t\t}\r\n\t}", "public void setMinSize(double aWidth, double aHeight) { setMinWidth(aWidth); setMinHeight(aHeight); }", "public @Override void setSize(float width, float height) {\n float targetMajorAxisSpan;\n float targetMinorAxisSpan;\n if (isXMajorAxis()) {\n targetMajorAxisSpan = width;\n targetMinorAxisSpan = height;\n } else { // Y is major axis\n targetMajorAxisSpan = height;\n targetMinorAxisSpan = width;\n }\n \n // Span along major axis is ignored by default\n setSpanOnMajorAxis(targetMajorAxisSpan);\n setSpanOnMinorAxis(targetMinorAxisSpan);\n }", "public void setPrefWidth(double aWidth)\n{\n double w = aWidth<=0? 0 : aWidth; if(w==getPrefWidth()) return;\n firePropertyChange(\"PrefWidth\", put(\"PrefWidth\", w), w, -1);\n}" ]
[ "0.7593079", "0.7283042", "0.7227504", "0.7174224", "0.6986545", "0.6971834", "0.6944459", "0.6894413", "0.685206", "0.6848695", "0.6811565", "0.6811565", "0.68084013", "0.67985815", "0.67924476", "0.6777524", "0.6755798", "0.674552", "0.67186934", "0.6718354", "0.67138326", "0.6668579", "0.66250426", "0.66156566", "0.6603987", "0.65852046", "0.65796316", "0.6579282", "0.65676475", "0.65668094", "0.6557241", "0.6549464", "0.6546862", "0.6542494", "0.6536498", "0.6521671", "0.6512868", "0.6505051", "0.65038157", "0.64909995", "0.6484803", "0.6484803", "0.64797026", "0.64537084", "0.6448842", "0.64244473", "0.64225674", "0.63964707", "0.637381", "0.6372059", "0.6360876", "0.63565964", "0.63516045", "0.6318966", "0.63110524", "0.63031816", "0.6288787", "0.6273287", "0.6269838", "0.62648374", "0.6254309", "0.6251563", "0.6245581", "0.6227006", "0.62227356", "0.6209977", "0.6204935", "0.61880904", "0.61866325", "0.6179817", "0.6179817", "0.61772466", "0.6164709", "0.6149381", "0.6148138", "0.61478204", "0.61330247", "0.61330247", "0.61290777", "0.6127", "0.6127", "0.6126266", "0.6121451", "0.6121279", "0.6117659", "0.6113553", "0.6112393", "0.6109015", "0.6108713", "0.6103443", "0.60939556", "0.60939556", "0.6089128", "0.6086146", "0.60857886", "0.60799223", "0.60736614", "0.60716885", "0.6055863", "0.6052572" ]
0.8374308
0
The getter that returns xLength size
public int getXLength() { return xLength; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getLength() {\n return mySize.getLength();\n }", "public int getLength() {\n/* 301 */ return this.stream.getInt(COSName.LENGTH, 0);\n/* */ }", "public long getLength();", "public long getLength();", "public int getLength() {\r\n return length;\r\n }", "public int getLength() {\r\n return length;\r\n }", "public int getLength() {\r\n return length;\r\n }", "public int get_length();", "public int getLength() {\r\n\t\treturn length;\r\n\t}", "public int getLength();", "public int getLength();", "public int getLength();", "public int getLength()\n\t{\n\t\treturn (int) length;\n\t}", "public int getLength() {\n return length;\n }", "public int getLength() {\n return length_;\n }", "public int getLength() { return length;\t}", "public int getLength() {\n return length;\n }", "public int getLength() {\n return length;\n }", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength()\n\t{\n\t\treturn length;\n\t}", "public int getLength()\n\t{\n\t\treturn length;\n\t}", "public int getLength() {\n return length_;\n }", "protected int getLength() {\n return length;\n }", "public int getLength()\n {\n return stream.getInt(COSName.LENGTH, 0);\n }", "public Integer getLength() {\n return _length;\n }", "public Integer getLength() {\n return _length;\n }", "public int getLength(){\n\t\treturn length;\n\t}", "public int getLength(){\n\t\treturn length;\n\t}", "public int getLength()\n {\n return length;\n }", "public int getLength() {\n\t\treturn this.length;\n\t}", "public int length() {\n\t\treturn size;\r\n\t}", "public int getLength()\n {\n\treturn length;\n }", "public int getLength() {return length;}", "public int getLength() {\n return this.length;\n }", "public int getLength() {\n return this.length;\n }", "public int getLength()\n\t{\n\t\treturn mLength;\n\t}", "public int getSize() {\n\t\treturn width + length;\n\t}", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "public int returnSize()\r\n {\r\n \treturn length;\r\n }", "protected int getLength() {\n\t\treturn this.length;\n\t}", "private int length() { return length; }", "public abstract long getLength();", "public abstract long getLength();", "public int getLength() { return dataLength; }", "protected abstract int getLength();", "public int getLength() { return getContents().length(); }", "public int getLength ()\r\n {\r\n return glyph.getBounds().width;\r\n }", "public int length() {\n return length;\n }", "public int length() {\n return length;\n }", "public int length() {\n return length;\n }", "public double getLength() {\r\n\t\treturn length;\r\n\t}", "public int size() {\r\n return length;\r\n }", "public double getLength() {\r\n\t\t\treturn length;\r\n\t\t}", "@Override\n\tpublic long size() {\n\t\treturn this.currentLength.get();\n\t}", "public abstract int getLength();", "public abstract int getLength();", "public double getLength() {\r\n return length;\r\n }", "public int length() {\n\t\treturn length;\n\t}", "public int length() {\n\t\treturn length;\n\t}", "public double getLength() {\n\t\treturn length;\n\t}", "public int length() {\n \treturn length;\n }", "public double getLength()\n\t{\n\t\treturn length;\n\t}", "public long length() {\n return length;\n }", "public long getLength() { \n return length; \n }", "public double getLength(){\r\n\t\treturn length;\r\n\t}", "public int getLengthInBytes()\n {\n return lengthInBytes;\n }", "public double getLength();", "public String getSize() {\r\n return size;\r\n }", "public double getLength() {\n return length;\n }", "public int getLength() {\n/* 83 */ return this.m_attrs.getLength();\n/* */ }", "@Override\n\tpublic Integer getLen() {\n\t\treturn this.len;\n\t}", "public byte getLength() {\n return this.length;\n }", "@Override\n public Integer length() {\n return myLength;\n }", "private int length() {\n\t\treturn this.lenght;\n\t}", "public int length()\n\t{\n\t\treturn length;\n\t}", "@Override\n public final native int getLength() /*-{\n return this.length;\n }-*/;", "public double get_length() {\n\t\treturn _length;\n\t}", "public String getSize() {\n return size;\n }", "public String getSize() {\n return size;\n }", "public int getLength()\n {return length;}", "public int getLength(){\n\t\treturn data.length;\n\t}", "public int getLength() {\n\t\treturn data.length;\n\t\t\n\t}", "public int getLength(){\n return length;\n }", "public String getlength()\n\t{\n\t\treturn length.getText();\n\t}", "public int length();", "public int length();" ]
[ "0.82629704", "0.7997867", "0.79170483", "0.79170483", "0.7857802", "0.7857802", "0.7857802", "0.7827163", "0.7820254", "0.78043747", "0.78043747", "0.78043747", "0.7782361", "0.7775139", "0.77726734", "0.7766073", "0.77639407", "0.77639407", "0.7761603", "0.7761603", "0.7761603", "0.7761603", "0.7761603", "0.7761603", "0.7760721", "0.7760721", "0.7738926", "0.7723505", "0.7722913", "0.77057105", "0.77057105", "0.7677424", "0.7677424", "0.76667774", "0.766527", "0.7654", "0.7653614", "0.7651801", "0.76499665", "0.76499665", "0.76490587", "0.7617304", "0.7616721", "0.7616721", "0.7616721", "0.7616721", "0.7616721", "0.7616721", "0.7616721", "0.7616721", "0.7616721", "0.7616721", "0.7603916", "0.76019543", "0.7587824", "0.757394", "0.757394", "0.75709206", "0.7564471", "0.7559417", "0.7518361", "0.7514993", "0.7514993", "0.7514993", "0.7506401", "0.7506072", "0.7505612", "0.7502449", "0.74980456", "0.74980456", "0.749753", "0.74904215", "0.74904215", "0.74802566", "0.7463262", "0.74449444", "0.74440575", "0.7441604", "0.7438056", "0.74359083", "0.74323523", "0.7429448", "0.7428375", "0.7425429", "0.7424252", "0.7421465", "0.7412161", "0.74033624", "0.738997", "0.73834324", "0.73816735", "0.73737717", "0.73737717", "0.7353596", "0.73402935", "0.73393726", "0.7324529", "0.7324118", "0.730642", "0.730642" ]
0.80671734
1
The setter for xLength size
public void setXLength(int length) { this.xLength = length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setLength(int length) {\n\t\t\n\t}", "public int getXLength() {\n return xLength;\n }", "public void setLength(long length);", "public void setLength(long length);", "public void setLength(int length) {\r\n this.length = length;\r\n }", "public void setLength(int length) {\r\n this.length = length;\r\n }", "public void setLength(int length)\n {\n this.length = length;\n }", "void setLength(int length);", "public void setLength(int length) {\r\n\t\tthis.length = length;\r\n\t}", "void setLength( long length );", "public void setLength(double length){this.length=length;}", "public void setLength(long length) { \n this.length = length; \n }", "public void setLength(double length)\r\n {\r\n this.length = length;\r\n }", "public void setLength( int length ) { setCapacity( length ); this.length = length; }", "public void setLength(int length) {\n\t\tthis.length = length;\n\t}", "public void setLength(int length) {\n\t\tthis.length = length;\n\t}", "public void setLength(int length) {\n\t\tthis.length = length;\n\t}", "public void setLength(double length) {\r\n this.length = length;\r\n }", "public void setLength(double newLength) {\n length = newLength;\n }", "synchronized void setLength(int length) {\n this.length = length;\n }", "public void setLength(double length) {\n this.length = length;\n }", "public void setLength(long length) {\r\n\t\tthis.length = length;\r\n\t}", "public boolean setLength(double Length);", "@Override\r\n\tpublic void setSequenceSize(int x) {\n\t\tsizeNum = x;\r\n\t\tupdate();\r\n\t}", "public void setLength(int length){\n\t\tif(length > 0){\n\t\t\tthis.length = length; //this.length is the length were in right now. and = length is the length the object is given\n\t\t}\n\t\t\n\t\t\n\t}", "public void setLength(double length) {\n\t\tthis.length = length;\n\t}", "public void setLength(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), LENGTH, value);\r\n\t}", "public DynamicModelPart setSizeX(int[] sizeX) {\n this.sizeX = sizeX;\n return this;\n }", "@Override\n\tpublic void SetLength(long value)\n\t{\n\t\tthrow new UnsupportedOperationException(\"TarInputStream SetLength not supported\");\n\t}", "private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}", "@JsProperty(name = \"length\")\n public native void setLength(@DoNotAutobox Number value);", "public void setLength(double len) throws IllegalArgumentException\n {\n if (len<0) throw new IllegalArgumentException (\"Length cannot be negative\" + len);\n else length = len;\n }", "public DynamicCuboid setSizeX(float x) {\n this.sizeX = x;\n return this;\n }", "public void setLength(Double newlength)\n {\n length = newlength;\n }", "public void setLength(int length) {\n\t\tif (length <= 0)\n\t\t\tthrow new IllegalArgumentException(\"length must be > 0\");\n\n\t\tthis.length = length;\n\t}", "public void setSize(long value) {\n this.size = value;\n }", "public int getLength() {\n return mySize.getLength();\n }", "public void set_size(int s);", "public void setCurrentLength(long currentLength) { \n this.currentLength = currentLength; \n }", "public void setLength( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), LENGTH, value);\r\n\t}", "public void setXSize(int xSize) {\n\t\tif (xSize < 1) {\n\t\t\tSystem.out.println(\"xSize should be positive! It is set to \" + X_SIZE + \".\");\n\t\t\txSize = X_SIZE;\n\t\t}\n\t\tthis.xSize = xSize;\n\n\t\t// To update the panel with new values if necessary\n\t\tthis.setNumRabbits(this.getNumRabbits());\n\n\t\tupdatePanel();\n\t}", "public int getLength() {return length;}", "public void setLength(int length)\n {\n encryptionDictionary.setInt(\"Length\", length);\n }", "public void setSize(int _size)\r\n {\r\n size = _size;\r\n }", "public void setLength(float length) { // l = 2.3\r\n\t\tthis.length = length; // length = 2.3\r\n\t\t\r\n\t}", "public void setWidth(final String value)\n {\n width = value;\n }", "@Override\r\n public void setWidth(String width) {\n }", "public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}", "@Override\n public void setVisibleLength(int length) {}", "public void setSize(String size) {\n this.size = size;\n }", "public int getLength() { return length;\t}", "public Builder setLength(int value) {\n \n length_ = value;\n onChanged();\n return this;\n }", "@Element \n public void setSize(String size) {\n this.size = size;\n }", "@JSProperty(\"tickLength\")\n void setTickLength(double value);", "public void setSize(int size) {\r\n _size = size;\r\n }", "public void setSize(int value) {\n\t\tthis.size = value;\n\t}", "public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }", "@Override\n\tpublic int getMaxSizeX()\n\t{\n\t\treturn 200;\n\t}", "@JSProperty(\"size\")\n void setSize(double value);", "public void setSize(int size){\n this.size = size;\n }", "public int getLength() {\r\n return length;\r\n }", "public int getLength() {\r\n return length;\r\n }", "public int getLength() {\r\n return length;\r\n }", "void setAxisLength(CalibratedAxis axis, long length);", "public void setSize(double size) \n {\n this.size = size;\n }", "Double getXLength();", "public int getLength() {\r\n\t\treturn length;\r\n\t}", "public int getLength() {\n return length;\n }", "public void setSize(int size) {\r\n this.size = size;\r\n }", "public void setSize(int size) {\n\t\t _size = size;\n\t}", "public int getLength() {\n return this.length;\n }", "public int getLength() {\n return this.length;\n }", "public int getSizeX() {\r\n\t\treturn sizeX;\r\n\t}", "public int getLength() { return dataLength; }", "public int getLength(){\n\t\treturn length;\n\t}", "public int getLength(){\n\t\treturn length;\n\t}", "public void sizeHasBeenSet() {\n isSizeSet = true;\n }", "public void set_length(short value) {\n setUIntElement(offsetBits_length(), 8, value);\n }", "public void setDataLength(int length) {\n // should be below 255, check!\n m_DataLength = length + 2;\n }", "double getXLength();", "public void setWidth(double value) {\n this.width = value;\n }", "protected abstract int getLength();", "public final String getSizeAttribute() {\n return getAttributeValue(\"size\");\n }", "public int getLength() {\n return length_;\n }", "public void setSize(double s)\n\t{\n\t\tsize = s;\n\t}", "public void setLength(int length) {\n\t\tloadProgress.setLength(length);\n\t}", "public int getLength() {\n return length;\n }", "public int getLength() {\n return length;\n }", "public void setLengthOfStay(int len) {\n this.length_of_stay=len;\n }", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength()\n {return length;}", "public abstract int getXSize();", "public void setSize(int size) {\n this.size = size;\n }", "public void setSize(int size) {\n this.size = size;\n }", "private void setSize(int s){\n\t\tsize = s;\n\t}" ]
[ "0.72242606", "0.718216", "0.71191084", "0.71191084", "0.7101478", "0.7101478", "0.7068937", "0.70411885", "0.6994938", "0.69554603", "0.69439197", "0.6939507", "0.6893014", "0.6881288", "0.68544585", "0.68544585", "0.68544585", "0.6812726", "0.6808757", "0.67717105", "0.6741667", "0.67305326", "0.67245626", "0.66891867", "0.66514915", "0.6588772", "0.6578748", "0.6568714", "0.6490308", "0.6488713", "0.6475222", "0.6446947", "0.6422045", "0.641623", "0.6357749", "0.63551503", "0.6342369", "0.63306576", "0.6306878", "0.6277023", "0.62760085", "0.625582", "0.62158054", "0.6209687", "0.61797976", "0.6178483", "0.61780405", "0.6174661", "0.61591154", "0.6143095", "0.61426836", "0.6135554", "0.6117301", "0.61168635", "0.6114168", "0.6111193", "0.610752", "0.6089786", "0.60895383", "0.6080484", "0.607006", "0.607006", "0.607006", "0.6056954", "0.6049397", "0.6048624", "0.6042651", "0.60385597", "0.6032695", "0.6031521", "0.60307854", "0.60307854", "0.6022762", "0.60220164", "0.60188395", "0.60188395", "0.6011839", "0.60041213", "0.5995642", "0.59862024", "0.5985929", "0.5984216", "0.5984003", "0.5982452", "0.59707344", "0.5968679", "0.5963933", "0.5963933", "0.59614366", "0.59605646", "0.59605646", "0.59605646", "0.59605646", "0.59605646", "0.59605646", "0.5954671", "0.59514606", "0.5950192", "0.5950192", "0.5948691" ]
0.7927222
0
The getter that returns regNum value
public int getRegNum() { return regNum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getRegNumber() {\r\n return regNumber;\r\n }", "public int getReg() {\n\t\treturn -1;\n\t}", "public String getNum() {\r\n return num;\r\n }", "public String getNum() {\n return num;\n }", "public String getNum() {\n return num;\n }", "public String getvNumreg() {\n return vNumreg;\n }", "public java.lang.String getRegistNo() {\n return registNo;\n }", "public int getNum() {\n System.out.println(\"There are altogether \" + num + \" registers created\");\n return num;\n }", "public int getNum()\n {\n return num;\n }", "public int getNum()\n {\n return num;\n }", "public int getReg(int reg) {\r\n\t\tswitch (reg) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn m_registers[R0];\r\n\t\t\tcase 1:\r\n\t\t\t\treturn m_registers[R1];\r\n\t\t\tcase 2:\r\n\t\t\t\treturn m_registers[R2];\r\n\t\t\tcase 3:\r\n\t\t\t\treturn m_registers[R3];\r\n\t\t\tcase 4:\r\n\t\t\t\treturn m_registers[R4];\r\n\t\t\tdefault:\r\n\t\t\t\t// Return default (should never be reached)\r\n\t\t\t\treturnError(ERROR_REG_DNE);\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t}", "private String getVehicleRegNumber() {\n LOGGER.info(\"Please type the vehicle registration number \"\n + \"and press enter key\");\n return inputReaderUtil.readVehicleRegistrationNumber();\n }", "public String getRegno()\n {\n return regno;\n }", "public int getNum() {\n return this.num;\n }", "public int getNum() {\r\n return num;\r\n }", "public int getNum() { return Num;}", "public int getRegister(int regInd) {\n return regs[regInd];\n }", "public int getNum();", "public java.lang.Integer getNum () {\r\n\t\treturn num;\r\n\t}", "public long getRegType() {\r\n return regType;\r\n }", "public int getNum() {\n\t\treturn num;\n\t}", "public Integer getNum() {\n return num;\n }", "public Integer getNum() {\n return num;\n }", "public static String getNum() {\n\tString num;\n\tnum = gameNum.getText();\n\treturn num;\n\n }", "private void setRegNum(int regNum) {\n this.regNum = regNum;\n }", "public String getRegisterNumber() { return registerNumber; }", "abstract public String getRegNum();", "public Long getRegId() {\n return regId;\n }", "public int getgNum() {\r\n\t\treturn gNum;\r\n\t}", "public long getgNum() {\n return gNum;\n }", "public int getNum() {\n\treturn this.n;\n }", "public java.lang.String getGrnNo () {\n\t\treturn grnNo;\n\t}", "public Integer getRegistid() {\n return registid;\n }", "public int getRequiredRegister()\n\t{\n\t\treturn requiredRegister;\n\t}", "protected int getRegenAmount() {\r\n\t\treturn this.regenAmount;\r\n\t}", "public short getNumCode() {\n return numCode;\n }", "public double getValue() {\n return this.num;\n }", "public long getnNum() {\n return nNum;\n }", "java.lang.String getNumber();", "java.lang.String getNumber();", "java.lang.String getNumber();", "public int getNumer()\n\t{\n\t\treturn numer;\n\t}", "java.lang.String getNum2();", "public String getRegName() {\r\n\t\treturn regName;\r\n\t}", "public String getRegprocess() {\n return regprocess;\n }", "java.lang.String getNum1();", "public String getRegisterId() {\n\t return this.regId;\n\t }", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "public int getValue(){\n return number;\n }", "public Integer getRegistlevelid() {\n return registlevelid;\n }", "public int getSerialNum()\r\n\t{\r\n\t\treturn(serialNum);\r\n\t}", "public String returnPhoneNumber() {\n\t\treturn this.registration_phone.getAttribute(\"value\");\r\n\t}", "public int getFirstRegisterNumber() {\n return firstRegisterNumber;\n }", "public int getG_number() {\n\t\treturn g_number;\n\t}", "Num\t\tgetNumValue();", "public int getNumber()\n\t{\n\t\treturn myNumber;\n\t}", "public String getRegistrationNumber(){\n return registrationNumber;\n }", "public int getNUMRGSTRO() {\n return numrgstro;\n }", "public java.lang.String getRrNo () {\n\t\treturn rrNo;\n\t}", "public Integer getRegbyid()\n {\n return regbyid; \n }", "public int getNr() {\n return nr;\n }", "public String getNumber() {\n\t\treturn getValue(\"number\");\n\t}", "public java.lang.String getNumber() {\n return number;\n }", "private int get_sreg() { return get_ioreg(SREG); }", "java.lang.String getNumb();", "public String getGeneratedNumber() {\n return driver.findElement(generatedNumberLocator).getAttribute(\"value\");\n }", "public String getNumber() \n\t{\n\t\treturn this.number;\n\t}", "public long getaNum() {\n return aNum;\n }", "public int getIOReg(String n) {\n return layout.getIOReg(n);\n }", "public java.lang.String getRefnum() {\n return refnum;\n }", "int getNum1();", "public int getNumber(){\r\n return num;\r\n }", "public java.lang.String getRegaddress() {\r\n return localRegaddress;\r\n }", "int getNum2();", "public Integer getRegItemUid() {\n return regItemUid;\n }", "public int getNumber() {\n return field.getNumber();\n }", "public String number() {\n return number;\n }", "public int getNumberValue() {\r\n return number;\r\n }", "public String getNumber() {\n return (String) get(\"number\");\n }", "public byte getSNum() {\r\n return _sNum;\r\n }", "public String getNumber() {\n return this.mNumber;\n }", "public java.lang.String getGrnStartNo () {\n\t\treturn grnStartNo;\n\t}", "public Integer getResnr() {\n\t\treturn this.resnr;\n\t}", "public long getRegTime() {\n\t\t\treturn regTime;\n\t\t}", "public java.lang.String getTradeRegisterNumber() {\n return tradeRegisterNumber;\n }", "public java.lang.String getCertificateOfRegistryNumber() {\n\t\treturn _tempNoTiceShipMessage.getCertificateOfRegistryNumber();\n\t}", "public String getNumber() {\r\n\t\treturn number;\r\n\t}", "public String getNumber() throws Exception;", "public int getRegeneration() {\n\t\treturn regeneration;\n\t}", "public int getNumber() {\r\n\t\treturn number;\r\n\t}", "int getNo() {\n\t\treturn no;\n\t}", "public int getNumber() {\r\n return number;\r\n }", "public Short getnNumreq() {\n return nNumreq;\n }", "public long getVal(int index){\n \t\treturn regFile[index].getValue();\n \t}", "public String getRegTypeId() {\r\n\t\treturn regTypeId;\r\n\t}", "public int getNumerator(){\n\n\t\treturn myNumerator;\n }", "private static int getNumber() {\n LOG.info(\"Generating Value\");\n return 1 / 0;\n }", "public int getValue();", "public int getValue();", "public final int getNumber() {\n return number;\n }" ]
[ "0.8077133", "0.7799973", "0.73602206", "0.73157096", "0.73157096", "0.7305178", "0.7285849", "0.7270921", "0.7199921", "0.7199921", "0.71879834", "0.71848506", "0.71748525", "0.7171194", "0.7166588", "0.7153962", "0.7130888", "0.70962846", "0.7017642", "0.701358", "0.6989806", "0.6983435", "0.6983435", "0.69310516", "0.69096965", "0.68862575", "0.6868472", "0.6819337", "0.6754208", "0.675275", "0.67324", "0.67236745", "0.6681837", "0.6621876", "0.65902334", "0.6582227", "0.65668106", "0.655174", "0.65285176", "0.65285176", "0.65285176", "0.65048444", "0.6486252", "0.6457865", "0.6449588", "0.64415795", "0.6410475", "0.6387572", "0.63586634", "0.63498384", "0.6349758", "0.6317484", "0.6316685", "0.6310531", "0.6310225", "0.6309468", "0.6302526", "0.6289773", "0.62679464", "0.6257287", "0.6238446", "0.6225669", "0.622163", "0.62159044", "0.62125826", "0.6211768", "0.6208417", "0.62082666", "0.6203559", "0.6180634", "0.6177953", "0.61773556", "0.61744237", "0.6163762", "0.61621195", "0.61587507", "0.6156134", "0.61560994", "0.6150809", "0.6139098", "0.6137439", "0.6131274", "0.61250764", "0.61164576", "0.6115473", "0.61075485", "0.61038965", "0.6100784", "0.60989493", "0.60977936", "0.6096747", "0.6086976", "0.60769504", "0.6071067", "0.6070964", "0.6065046", "0.6054277", "0.6048219", "0.6048219", "0.604568" ]
0.8468812
0
The setter for the regNum
private void setRegNum(int regNum) { this.regNum = regNum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRegNumber(java.lang.String regNumber) {\r\n this.regNumber = regNumber;\r\n }", "public void setRegno(String regno)\n {\n if(checker.acceptRegno(regno))\n this.regno = regno;\n else\n this.regno = \"\";\n }", "public void setRegisNo(String regisNo)\n {\n // put your code here\n this.regisNo = regisNo;\n }", "public void setRegister(int regInd, int val) {\n regs[regInd] = val;\n }", "public int getRegNum() {\n return regNum;\n }", "public void setvNumreg(String vNumreg) {\n this.vNumreg = vNumreg;\n }", "public void setNum(int num) {\r\n this.num = num;\r\n }", "public java.lang.String getRegNumber() {\r\n return regNumber;\r\n }", "public void setReg(int reg, int val) {\r\n\t\t\r\n\t\tswitch (reg) {\r\n\t\t\tcase 0:\r\n\t\t\t\tm_registers[R0] = val;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\tm_registers[R1] = val;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tm_registers[R2] = val;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\tm_registers[R3] = val;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4:\r\n\t\t\t\tm_registers[R4] = val;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\treturnError(ERROR_REG_DNE);\r\n\t\t}\r\n\t}", "public void setNum(int num) {\n\t\tthis.num = num;\n\t}", "public void setWriteReg(){\r\n\t\twriteRegVal = read_writeReg;\r\n\t}", "public void setNum (java.lang.Integer num) {\r\n\t\tthis.num = num;\r\n\t}", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "public void setNum(Integer num) {\n this.num = num;\n }", "public void setNum(Integer num) {\n this.num = num;\n }", "public void setRegister(int index, long val){\n \t\tif(index >=1 && index < 32){\n \t\t\tregFile[index].setValue(val);\n \t\t}\n \t\telse throw new Error(\"Cannot access $r\" + index);\n \t}", "public String getvNumreg() {\n return vNumreg;\n }", "public void doSetRegisterId(String regId) {\n\t this.regId = regId;\n\t return;\n\t }", "void setNumber(int num) {\r\n\t\tnumber = num;\r\n\t}", "public void setRegistNo(java.lang.String registNo) {\n this.registNo = registNo;\n }", "public void SetR(byte num) {\r\n\t\tm_numR = num;\r\n\t}", "public void setNUMRGSTRO(int value) {\n this.numrgstro = value;\n }", "protected void setRegister(Register r, Node n) {\n int i = r.getNumber();\n s.registers[i] = n;\n if(TRACE_REGISTERS) System.out.println(this.method + \": setting \" + i + \" <- \" + n);\n //if (TRACE_INTRA) out.println(\"Setting register \"+r+\" to \"+n);\n }", "public void setRegisterId(String regId) {\n\t doSetRegisterId(regId);\n\t return;\n\t }", "public void setRegisterWriteControl() {\r\n // registers.setRegWrite();\r\n //this.registerWrite.setData(1);\r\n //registers.setRegWriteControl(this.registerWrite);\r\n }", "public void setRegType(long regType) {\r\n this.regType = regType;\r\n }", "public void setRegbyid(int newVal) {\n setRegbyid(new Integer(newVal));\n }", "protected void setRegister(Register r, Object n) {\n int i = r.getNumber();\n if (n instanceof Collection) n = NodeSet.FACTORY.makeSet((Collection)n);\n else \n if (n == null) {\n Assert._assert(false);\n }\n s.registers[i] = n;\n //if (TRACE_INTRA) out.println(\"Setting register \"+r+\" to \"+n);\n if(TRACE_REGISTERS) System.out.println(this.method + \": setting \" + i + \" <- \" + n);\n }", "public void setNumber(String newValue);", "public void setRegbyid(Integer newVal) {\n if ((newVal != null && this.regbyid != null && (newVal.compareTo(this.regbyid) == 0)) || \n (newVal == null && this.regbyid == null && regbyid_is_initialized)) {\n return; \n } \n this.regbyid = newVal; \n regbyid_is_modified = true; \n regbyid_is_initialized = true; \n }", "public void setNumer(float newNumer){\n\t\tnumer = newNumer;\n\t}", "public void registriereNummer (int nr) {\n this.nr = nr;\n }", "public void assignRegister(int new_regValue) {\n if (coalesceBridge != null) {\n coalesceBridge.assignRegister(new_regValue);\n // If we def a parameter (precolored) it loses its coloring\n } if (register != DEAD_REG) {\n if (preColor) {\n register = new_regValue;\n } else {\n System.err.println(\"We tried to give a live register a new live value:\\n\" + new_regValue +\" \" + this.toString());\n }\n\n } else {\n register = new_regValue;\n }\n }", "public String getRegisterNumber() { return registerNumber; }", "@Override\n public void setRegisterValue(Registers r, int value) {\n debugView.updateRegisterValue(r, value);\n }", "private void setRegVal(SwapMote mote, int regId, String value)\n {\n SwapValue swapVal;\n // Does \"value\" represent a numeric value?\n try\n {\n long lVal;\n // Try with decimal format first\n lVal = Long.parseLong(value);\n // Calculate length\n int i;\n long a = lVal;\n for(i=0 ; i<Long.SIZE ; i++)\n {\n if ((a = a/0xFF) < 1)\n break;\n }\n // Create SWAP value\n swapVal = new SwapValue(lVal, i);\n }\n catch (Exception ex)\n {\n // Finaly, try with ASCII format\n swapVal = new SwapValue(value);\n }\n\n try\n {\n mote.cmdRegister(regId, swapVal);\n }\n catch (CcException ex)\n {\n ex.print();\n }\n }", "public void SetG(byte num) {\r\n\t\tm_numG = num;\r\n\t}", "public void setUnitID(int num) {\n m_UnitID = num;\n // setChanged(true);\n }", "public void setNummer(int n) {\n\t\tint alteNummer = this.nummer; //this-Ref nicht unbedingt nötig!\n\t\tthis.nummer = n;\n\t\tif (!validateNummer()) { // wenn neue Nummer ist nicht gueltig\n\t\t\tthis.nummer = alteNummer;\n\t\t}\n\t}", "public void setRegName(String regName) {\r\n\t\tthis.regName = regName;\r\n\t}", "public int getReg() {\n\t\treturn -1;\n\t}", "public void setNumDigits(int digits) {\r\n \r\n //Set Value\r\n numDigits = digits;\r\n \r\n }", "public void setNumber(int number)\n {\n Number = number;\n }", "public void setRegprocess(String regprocess) {\n this.regprocess = regprocess;\n }", "private void set_reg(int index, int RHS) throws AVR.RuntimeException\n {\n if ((index < 0) || (index >= GENERAL_REG_COUNT))\n throw new RuntimeException(Constants.Error(Constants.INVALID_GENERAL_REGISTER)+\" Register: \" +Utils.hex(index,4));\n else\n //data_memory[index].setValue(RHS);\n setDataMemory(index,RHS);\n }", "public void setNumber(int number) {\r\n\t\tthis.num = number;\r\n\t}", "public void setMatricNum(String matricNum) {\r\n\t\tthis.matricNum = matricNum;\r\n\t}", "public String getRegno()\n {\n return regno;\n }", "public void setNumer(int numer)\n\t{\n\t\tthis.numer = numer;\n\t}", "public void setValue(int n) {\n\t\t\tthis.value = n;\n\t}", "public java.lang.String getRegistNo() {\n return registNo;\n }", "protected void setManaRegenPerLevel(double manaRegenPerLevel)\r\n\t{\tthis.manaRegenPerLevel = manaRegenPerLevel;\t}", "public void setRegId(Long regId) {\n this.regId = regId;\n }", "public void setNumAyuAtracc(int num);", "public void setNum(String num) {\r\n this.num = num == null ? null : num.trim();\r\n }", "protected void setStudentNumber(Integer studentNum)\n {\n studentNumber = studentNum;\n }", "public void setNum(String num) {\n this.num = num == null ? null : num.trim();\n }", "public void setNum(String num) {\n this.num = num == null ? null : num.trim();\n }", "public void setFree (int reg) {\n\t\ttemporary[reg].clear();\n\t}", "public void setNumerator(int num)\r\n {\r\n this.numerator = num;\r\n }", "protected void setStateNum(int stateNum) {\r\n\t\tthis.stateNum = stateNum;\r\n\t}", "private void setRegToMax(int register) {\r\n\t\tsim40.memory[register] = 1024;\r\n\t\tswitchOnFlag(2);\r\n\t}", "public void setPatentNum(Integer patentNum) {\r\n this.patentNum = patentNum;\r\n }", "protected void setPatchNum(int patchNum) {\n try {\n ShortMessage msg = new ShortMessage();\n msg.setMessage(ShortMessage.PROGRAM_CHANGE, getChannel() - 1,\n patchNum, 0); // Program Number\n send(msg);\n } catch (InvalidMidiDataException e) {\n ErrorMsg.reportStatus(e);\n }\n }", "public void setTuckNum(int NewValue){\n truck = NewValue;\n }", "public void setRegistid(Integer registid) {\n this.registid = registid;\n }", "public void setRequiredRegister(int requiredRegister)\n\t{\n\t\tthis.requiredRegister = requiredRegister;\n\t}", "public void setRegTime(long regTime) {\n\t\t\tthis.regTime = regTime;\n\t\t}", "void set_num(ThreadContext tc, RakudoObject classHandle, double Value);", "private void write(SidRegisterAddress reg) {\n\t\to.reg(reg).write(UnsignedByte.x01);\n\t}", "public void setCharNum(Integer charNum) {\n this.charNum = charNum;\n }", "public void setReg1(String inMemoryEntry);", "public void setNumero(int numero)\r\n/* 195: */ {\r\n/* 196:206 */ this.numero = numero;\r\n/* 197: */ }", "public final void setNum_emp(String val) {\n setString(getNum_empAttribute(getMtDatabase()), val);\n }", "public Long getRegId() {\n return regId;\n }", "public void setSeqNo (int SeqNo);", "public void setSeqNo (int SeqNo);", "public void setID(Number numID);", "@Override\n\tpublic void setRam() {\n\t\tcom.setRam(\"16g\");\n\t}", "public void setNumRabbits(int numRabbits) {\n\t\tif (numRabbits < 0) {\n\t\t\tSystem.out.println(\"numRabbits should be positive ! It is set to 1.\");\n\t\t\tnumRabbits = 1;\n\t\t} else if (numRabbits > xSize * ySize) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"numRabbits should less or equal than the size of the grid! It is set to \" + xSize * ySize + \".\");\n\t\t\tnumRabbits = xSize * ySize;\n\t\t}\n\t\tthis.numRabbits = numRabbits;\n\t\tupdatePanel();\n\t}", "public void setNumerator (int numer) {\r\n\t\tnumerator = numer;\r\n\t}", "@Override\r\npublic void setNumber(int number) {\n\tsuper.setNumber(number);\r\n}", "public void setRegaddress(java.lang.String param) {\r\n localRegaddressTracker = param != null;\r\n\r\n this.localRegaddress = param;\r\n }", "public void setGamenumber(int Number) {\n\t\tif (Number != 0) {\n\t\t\tthis.gamenumber = gamenumber + Number;\n\t\t} else {\n\t\t\tthis.gamenumber = 0;\n\t\t}\n\t}", "public abstract void setCntGrnd(int cntGrnd);", "public void setNumber(int number)\n {\n this.number = number;\n }", "public REG(Reg r) {\n\t\treg = r;\n\t}", "public void setCR(int cR)\r\n/* 44: */ {\r\n/* 45: 44 */ this.CR = cR;\r\n/* 46: */ }", "public void setNr(byte[] nr) {\n this.nr = nr;\n }", "@Override\n\tpublic void setHumanNum(int humanNum) {\n\t\tthis.humanNum=humanNum;\n\t}", "public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}", "public void setRegtime(String regtime) {\n this.regtime = regtime;\n }", "public void setCarNum(Integer carNum) {\n this.carNum = carNum;\n }", "private void setStrandNum(int token) { this.strand = Strand.forValue(token); }", "public void setNumeroInicial(int numeroInicial)\r\n/* 185: */ {\r\n/* 186:198 */ this.numeroInicial = numeroInicial;\r\n/* 187: */ }", "@Override\n protected void setPatchNum(int patchNum) {\n }", "public void setNlmUniqueID(int value) {\n this.nlmUniqueID = value;\n }", "public String getMatricNum() {\r\n\t\treturn matricNum;\r\n\t}", "public void setCellNum(Integer cellNum) {\n this.cellNum = cellNum;\n }", "public void setUnionNum(String unionNum) {\n this.unionNum = FileUtils.hexStringFromatByF(10, \"\");\n }" ]
[ "0.74196166", "0.7133765", "0.69849396", "0.6936834", "0.6813916", "0.6796529", "0.6783839", "0.6713266", "0.6609783", "0.6591229", "0.6461941", "0.64204", "0.6367175", "0.6346447", "0.6346447", "0.6344969", "0.6336406", "0.6316128", "0.6262808", "0.62130624", "0.6200237", "0.61254895", "0.6116676", "0.6089541", "0.60829204", "0.6041057", "0.60327953", "0.60020965", "0.59579843", "0.59388477", "0.5935705", "0.5934839", "0.59200627", "0.59099823", "0.59086525", "0.5907495", "0.58990794", "0.5893619", "0.5872098", "0.58622736", "0.5859477", "0.58533245", "0.5836232", "0.5836089", "0.5816315", "0.5809746", "0.5804995", "0.5798436", "0.5790034", "0.578611", "0.57803816", "0.574907", "0.57386875", "0.57386446", "0.5731005", "0.57297873", "0.57267004", "0.57267004", "0.571441", "0.5700293", "0.56969017", "0.5673273", "0.56389093", "0.5638663", "0.5620499", "0.56145686", "0.5607072", "0.55937654", "0.5582143", "0.55669874", "0.55631506", "0.55620956", "0.55591315", "0.5541533", "0.5532546", "0.55316496", "0.55316496", "0.5516586", "0.5500444", "0.54806113", "0.54725206", "0.5467469", "0.5466729", "0.54647624", "0.5443918", "0.5430083", "0.542348", "0.5416617", "0.54005015", "0.538493", "0.5381969", "0.53785604", "0.5372874", "0.5366758", "0.5365396", "0.5360399", "0.5356886", "0.5354827", "0.5352349", "0.5348939" ]
0.8606664
0
return Area of property using formula by length width
public int getArea() { return (getXLength() * getYWidth()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double Area() {\r\n \treturn(getLength() * getWidth());\r\n }", "public double area(){\n\t\tdouble area=length*width;\r\n\t\treturn area;\r\n\t}", "@Override\n public double area()\n {\n\treturn (double) length * width;\n }", "public double calcArea() {\r\n\t\tdouble area = length * width;\r\n\t\treturn area;\r\n\t}", "@Override\n public double area() {\n return width * length;\n }", "@Override\n\tpublic double getArea() {\n\t\treturn width * length;\n\t}", "double getArea(double width){\n return width*width;\n }", "@Override\r\n public double getArea() {\r\n return (length * width);\r\n }", "public double findArea(){\n\t\tdouble area= (0.5*(length * width));\n\t\treturn area;\n\t}", "public double area() {\n\t\treturn width*length;\n\t}", "@Override\n\tpublic double getArea() {\n\t\treturn width*length;\n\t}", "@Override\n\tpublic double getArea() {\n\t\treturn width*length;\n\t}", "public double area()\n {\n double area = length * width;\n //System.out.println(area);\n return area;\n }", "public double getArea() {\n return this.length * this.width;\n }", "@Override\n public double getArea() {\n double area = this.length*this.width;\n return area;\n }", "public int area() {\r\n\t\tint area = (getLength()) * (getBreath());\r\n\t\treturn (area);\r\n\t}", "public double areaOfRect(double length, double width){\r\n // calculate area\r\n double answer = length * width;\r\n // send back the answer\r\n return answer;\r\n }", "public int area()\n\t{\n\t\treturn length*width;\n\t}", "@Override\n public double getArea() {\n return width * width;\n }", "@Override\n public double getArea() {\n return this.length*this.width; //To change body of generated methods, choose Tools | Templates.\n }", "double getArea();", "double getArea();", "public double getArea() {\n\t\tdouble area = Math.round(2 * Math.pow(sideLength, 2) * \n\t\t\t\t(1 + Math.sqrt(2)));\n\t\t\n\t\treturn area;\n\t}", "public double getArea();", "public double getArea();", "public double getArea();", "public double getArea (){\n int area = length * length;\n System.out.println(area);\n return area;\n }", "@Override\n\tpublic double getArea() {\n\t\tdouble p = getPerimeter() / 2;\n\t\tdouble s = p * ((p - side1) * (p - side2) * (p - side3));\n\t\tdouble Area = Math.sqrt(s);\n\t\treturn Area;\n\t}", "public double getArea() {\n\t\treturn height * length;\n\t}", "@Override\n\tpublic void computeArea() {\n\t\tthis.area = length * length;\t\t\t\t\n\t}", "@Override\r\n\tpublic double getArea() {\n\t\tdouble Area1 = ((super.getLength() * height));\r\n\t\tdouble Area2 = ((super.getWidth() * height));\r\n\t\treturn (Area1 * 2 + Area2 * 2 + super.getArea() * 2);\r\n\t\t\r\n\t}", "public double getArea(){\n double p = (side1 + side2 + side3) / 2;\n return Math.sqrt(p * (p - side1) * (p - side2) * (p - side3));\n }", "static Double computeArea() {\n // Area is height x width\n Double area = height * width;\n return area;\n }", "Double getAreaValue();", "public int area() {\n \tarea = width()*height();\n }", "@Override\r\n\t\tpublic int Area() {\n\t\t\treturn width*width\t;\r\n\t\t}", "public int getArea()\n {\n return this.length * this.width;\n }", "@Override\n public double area() {\n double P = this.perimeter() / 2;\n double result = Math.sqrt(P * (P - side1) * (P - side2) * (P - side3));\n return result;\n }", "public double area();", "public static int area_rectangle(int length, int width){\n\t\t// A = l * w\n\t\tint area;\n\t\tarea = length * width;\n\t\treturn area;\n\t}", "public double getArea(){\n return 3.14 * radius * radius;\n }", "@Override\n\tpublic double computeArea()\n\t{\n\t\treturn\n\t\t\t\tthis.length * this.width;\n\t}", "public double area() \n {\n double area = 0;\n for (Line2D line : lines) \n {\n area += line.getP1().getX() * line.getP2().getY();\n area -= line.getP2().getX() * line.getP1().getY();\n }\n area /= 2.0;\n return Math.abs(area);\n }", "public double area() {\n\t\treturn width * height;\n\t}", "double area();", "public double getArea() {\n\t\treturn 4.0 * Math.PI * this.radius * this.radius;\n\t}", "protected double getArea()\r\n {\r\n return ( side * side ) / 2;\r\n }", "double getArea(){\n return height*width;\n }", "public double getArea() {\n /*\n * area = base (1o lado ou 3o lado) x altura (2o lado ou 4o lado)\n */\n\n return this.getLado(1) * this.getLado(2);\n }", "@Override\r\n public double area() {\n return height*width;\r\n }", "double getArea() {\n return width * height;\n }", "public double area() {\n return (width * height);\n }", "public double getArea() { return Math.sqrt(s * (s - d12) * (s - d23) * (s - d31)); }", "double calculateArea();", "public abstract double getArea();", "public abstract double getArea();", "public abstract double getArea();", "@Override\n\tpublic double getArea() {\n\t\treturn Math.pow(getSide(), 2) * this.N / 4 * (Math.tan(Math.toRadians(180 / this.N)));\n\t}", "public double getArea() {\n\t\treturn this.radius * this.radius * Math.PI;\n\t}", "public double area() {\n\t\tif (area != 0)\n\t\t\treturn area;\n\n\t\tPoint current = vertices.get(0);\n\t\tfor (int i = 1; i < vertices.size(); i++) {\n\t\t\tPoint next = vertices.get(i);\n\t\t\tarea += current.crossProduct(next);\n\t\t\tcurrent = next;\n\t\t}\n\n\t\torientation = area > 0 ? \"CCW\" : \"CW\";\n\t\tarea = Math.abs(area / 2);\n\n\t\treturn area;\n\t}", "public double getArea() {\n\t\treturn Math.sqrt(3) * this.edgelen * this.edgelen;\n\t}", "@Override\n\tpublic double getArea() {\n\t\treturn (2 + 2 * (Math.sqrt(2))) * side * side; // JA\n\t}", "abstract double area();", "abstract double area();", "abstract double area();", "abstract double area();", "public double calculateArea(){\r\n\t\treturn this.getSide()*this.getSide();\r\n}", "public abstract float getArea();", "public abstract float calArea();", "@Override\n\tpublic double getArea() {\n\t\treturn height * width;\n\t}", "public int rectangle (int length, int width){\n int areaRec=length*width;\n return areaRec;\n }", "@Override\n\tpublic double getArea() {\n\t\treturn (this.getPerimetro()*Math.sqrt(Math.pow(getLongitudLado(), 2))-(Math.pow((getLongitudLado()/2), 2)))/2;\n\t}", "public double getArea() {\n return Math.PI * Math.pow(radius, 2.0);\n }", "@Override\r\n\tpublic double getArea() {\n\t\treturn (this.base * this.height)/2;\r\n\t}", "public double TriangleAreaCal()\n\t{\n\t\tdouble x;\n\t\tx = Math.toRadians(60);\n\t\tdouble area = (Math.pow(this.length, 2) * Math.sin(x))/2;\n\t\treturn area;\n\t}", "public abstract float area();", "public void calcArea(){\n double p=(side1+side2+side3)/2;\n area=p*(p-side1)*(p-side2)*(p-side3);\n area=Math.sqrt(area);\n\n\n }", "public double getArea(){\n\t\treturn radius*radius*Math.PI;\n\t}", "@Override\n public double getArea() {\n double s = (a + b + c) / 2;\n return Math.sqrt(s * (s - a) * (s - b) * (s - c));\n }", "@Override\r\n\tpublic double getArea() {\r\n\t\treturn width * height;\r\n\t}", "@Override\r\n\tpublic double getArea() {\r\n\t\treturn width * height;\r\n\t}", "public void calArea()\n {\n //Start of the formula\n for(int i = 0; i < sides-1; i++)\n {\n area += (poly[i].getX()*poly[i+1].getY())-(poly[i].getY()*poly[i+1].getX());\n }\n\n //half the total calculation\n area = area/2;\n\n //if area is negative times by -1\n if(area <= 0)\n {\n area = area*-1;\n }\n }", "public double getArea(){\n return radius * radius * Math.PI;\n }", "public double getArea() {\n\t\treturn 6.0 * this.edgelen * this.edgelen;\n\t}", "public double area(){\n return (base*height) / 2;\n }", "@Override\n\tpublic double area() {\n\t\t\n\t\tdouble area = (Math.PI * Math.pow(radius, 2));\n\t\treturn area;\n\t\t\n\t}", "public double areaRectangulo() {\n double area = altura * ancho;\n return area;\n }", "public void claShapeArea(){\r\n\t\tshape.calArea();\r\n\t}", "public double getArea() {\n\t\treturn this.area;\n\t}", "public double getArea(){\r\n\t\t\r\n\t\tdouble povrsina = PI * this.radius * this.radius; \r\n\t\t\r\n\t\treturn povrsina;\r\n\t}", "public double area() { return Math.PI * radius * radius; }", "@Override\n\tpublic double area() {\n\t\treturn Shape.PI*radius*radius;\n\t}", "public double getArea()\n\t{\n\t\tdouble area = Math.PI * Math.pow(radius, 2); \n\t\treturn area;\n\t}", "public float getArea() {\n return area;\n }", "@Override\r\n\tpublic double area() {\r\n\r\n\t\treturn this.sideA*this.sideB;\r\n\t}", "double area() {\r\n\t\treturn Math.PI*r*r;\r\n\t\t//return (int)((Math.PI*r*r + 0.005) * 100) / 100.0;\r\n\t}", "public double getArea()\r\n\t{\r\n\t\tdouble area = Math.PI*(Math.pow(radius, 2));\r\n\t\treturn area;\r\n\t}", "public double getArea() {\n return ((radius * radius) * Math.PI);\n }", "public double getArea()\n {\n return area;\n }", "public double area()\r\n {\r\n float dx = tr.getX() - bl.getX();\r\n float dy = tr.getY() - bl.getY();\r\n return dx*dy;\r\n }" ]
[ "0.791034", "0.78370535", "0.7820234", "0.77819127", "0.7755296", "0.77395904", "0.7731333", "0.76853126", "0.76683056", "0.76539665", "0.7626959", "0.7626959", "0.7588572", "0.75085366", "0.74994636", "0.74861944", "0.74747837", "0.74624807", "0.74320287", "0.74267495", "0.7425586", "0.7425586", "0.74024206", "0.7384567", "0.7384567", "0.7384567", "0.7360186", "0.7349822", "0.73152196", "0.7303478", "0.72978514", "0.7294263", "0.7209651", "0.7206671", "0.7199808", "0.7163678", "0.7148904", "0.7148216", "0.7125721", "0.71232367", "0.71220386", "0.71141404", "0.7091911", "0.7075473", "0.7073256", "0.70641786", "0.70579165", "0.7051293", "0.70446473", "0.7042149", "0.70333505", "0.70322233", "0.70222443", "0.7017378", "0.70075226", "0.70075226", "0.70075226", "0.70073783", "0.69483036", "0.69466525", "0.6943325", "0.6942213", "0.69386053", "0.69386053", "0.69386053", "0.69386053", "0.693135", "0.69262266", "0.6922073", "0.69098693", "0.69097906", "0.69064444", "0.6895239", "0.68925", "0.6886928", "0.6840396", "0.6838402", "0.6821388", "0.6820464", "0.68162835", "0.68162835", "0.68149173", "0.6811776", "0.6809494", "0.6805605", "0.68051064", "0.68028975", "0.6791265", "0.67870617", "0.67829216", "0.67769563", "0.6776131", "0.67742115", "0.6766095", "0.6751476", "0.6740134", "0.6739242", "0.6733249", "0.6732753", "0.67306644" ]
0.7092884
42
calculate tax of Property by area TAX_RATE_PER_M2
public double getTaxes() { return getArea() * TAX_RATE_PER_M2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getTax();", "public Double getTax();", "BigDecimal getTax();", "public float calculateTax(String state, Integer flatRate);", "public abstract double calculateTax();", "public double calcTax() {\n\t\treturn 0.2 * calcGrossWage() ;\n\t}", "public double calculateTax(double amount){\n return (amount*TAX_4_1000)/1000;\n }", "double getTaxAmount();", "abstract protected BigDecimal getBasicTaxRate();", "double applyTax(double price);", "public abstract double getTaxValue(String country);", "@Override\n public double calcTaxes() {\n return getCost() * 0.07;\n }", "public double taxPaying() {\r\n double tax;\r\n if (profit == true) {\r\n tax = revenue / 10.00;\r\n }\r\n\r\n else\r\n tax = revenue / 2.00;\r\n return tax;\r\n }", "public double getTax() {\r\n\r\n return getSubtotal() * 0.06;\r\n\r\n }", "public double calculateTax() {\n taxSubtotal = (saleAmount * SALESTAXRATE);\n\n return taxSubtotal;\n }", "public double useTax() {\n \n return super.useTax() + getValue()\n * PER_AXLE_TAX_RATE * getAxles();\n }", "private final void taxCalculations(){\n\r\n hraDeduction = totalHRA - 0.1*basicIncome;\r\n ltaDeduction = totalLTA - 0.7*totalLTA;\r\n\r\n //exemptions\r\n fundsExemption = fundsIncome - 150000; //upto 1.5 lakhs are exempted under IT Regulation 80C\r\n\r\n grossIncome = basicIncome + totalHRA + totalLTA + totalSpecialAl + fundsIncome ;\r\n\r\n totalDeduction = hraDeduction + ltaDeduction;\r\n\r\n totalTaxableIncome = grossIncome - (totalDeduction + fundsExemption);\r\n\r\n taxLiability = 0.05 * (totalTaxableIncome - 250000) + 0.2*(totalTaxableIncome - 500000);\r\n\r\n taxToPay = (cessPercent*taxLiability)/100 + taxLiability;\r\n }", "public int calculateTax() {\n int premium = calculateCost();\n return (int) Math.round(premium * vehicle.getType().getTax(surety.getSuretyType()));\n }", "public double getTax(){\n\n return this.tax;\n }", "public BigDecimal getLBR_TaxRate();", "private Vehicle calculationTaxes(Vehicle vehicle) {\n double exchangeRateCurrencyOfContract = serviceForCurrencyExchangeRate.getCurrencyExchangeRateNBU(vehicle.getCurrencyOfContract().name());\n double exchangeRateEUR = serviceForCurrencyExchangeRate.getCurrencyExchangeRateNBU(\"EUR\");\n\n // Calculation Impost\n vehicle.setImpostBasis(serviceForNumber.roundingNumber(\n vehicle.getPriceInCurrency() * exchangeRateCurrencyOfContract,\n 2));\n determinationImpostRate(vehicle);\n vehicle.setImpost(serviceForNumber.roundingNumber(\n vehicle.getImpostBasis() * vehicle.getImpostRate() / 100,\n 2));\n\n // Calculation Excise\n vehicle.setExciseBasis(vehicle.getCapacity());\n determinationExciseRate(vehicle);\n vehicle.setExcise(serviceForNumber.roundingNumber(\n vehicle.getExciseBasis() * vehicle.getExciseRate() * exchangeRateEUR,\n 2));\n\n // Calculation VAT\n vehicle.setVATBasis(serviceForNumber.roundingNumber(\n vehicle.getImpostBasis() + vehicle.getImpost() + vehicle.getExcise(),\n 2));\n determinationVATRate(vehicle);\n vehicle.setVAT(serviceForNumber.roundingNumber(\n vehicle.getVATBasis() * vehicle.getVATRate() / 100,\n 2));\n\n return vehicle;\n }", "public double taxRate () {\n return taxRate;\n }", "public BigDecimal getLBR_ICMS_TaxAmtOp();", "public BigDecimal getTax() {\n return tax;\n }", "public int getTax(){\n int tax=0;\n if(this.salary<this.LOWER_LIMIT){\n tax=this.taxableSalary/100*10;\n }else if(this.salary<this.UPPER_LIMIT){\n tax=this.taxableSalary/100*22;\n }else{\n tax=this.UPPER_LIMIT/100*22 + (this.taxableSalary-this.UPPER_LIMIT)/100*40;\n }\n return tax;\n }", "public BigDecimal getLBR_TaxAmt();", "public BigDecimal getPriceStdWTax();", "@Override\n protected void chooseTax(){\n // Lets impose a tax rate that is inversely proportional to the number of subordinates I have:\n // That is, the more subordinates I have, the lower the tax rate.\n if(myTerritory.getSubordinates().isEmpty()){\n tax = 0;\n }\n else tax = 0.5;\n\n // Of course, if there are tax rates higher than .5, the system will set it to zero, so you should check on that\n }", "public BigDecimal getTaxAmtPriceStd();", "public double getTax() {\n return tax_;\n }", "public BigDecimal getLBR_ICMSST_TaxRate();", "public void setTax(Double tax);", "@Override\n\tpublic double getTax() {\n\t\treturn 0.04;\n\t}", "static double tax( double salary ){\n\n return salary*10/100;\n\n }", "public double getTax() {\n return tax_;\n }", "public static double getCostPerSqFt(double area){\n return area*10;\n }", "public double getTaxRate() {\n return taxRate;\n }", "public BigDecimal getTaxRate() {\n return taxRate;\n }", "public BigDecimal getPriceListWTax();", "@Override\r\n\tpublic double calculateTaxes(int year) {\n\t\tdouble taxe1 = 2.0; // public double section1 = minimum;\r\n\t\tdouble taxe2 = 4.0;\r\n\t\tdouble taxe3 = 10.0;\r\n\t\tdouble taxe4 = 25.0;\r\n\t\tdouble totalSalary = monthSalary * 14; // 14 son pagas en año\r\n\r\n\t\tif (totalSalary <= 12600) {\r\n\t\t\ttotalSalary = (totalSalary * (100 - taxe1));\r\n\r\n\t\t} else if (totalSalary <= 15000) {\r\n\t\t\ttotalSalary = (totalSalary * (100 - taxe2));\r\n\r\n\t\t} else if (totalSalary <= 21000) {\r\n\t\t\ttotalSalary = (totalSalary * (100 - taxe3));\r\n\r\n\t\t} else if (totalSalary > 21000) {\r\n\t\t\ttotalSalary = (totalSalary * (100 - taxe4));\r\n\r\n\t\t} else\r\n\t\t\ttotalSalary = -1;\r\n\r\n\t\treturn totalSalary;\r\n\t}", "public MMDecimal getTaxAmount() {\r\n return this.taxAmount;\r\n }", "public double calculateTax(double planFee, double overageCost) {\n double tax = (planFee + overageCost) * 0.15;\n return tax;\n }", "public static double calcMonthlyPayment(int term, double amount, double rate)\r\n {\r\n // Your code goes here ... use cut and paste as much as possible!\r\n rate = rate / 100;\r\n double num1 = rate * (Math.pow((1 + rate), (term * 12)));\r\n double num2 = Math.pow((1 + rate), (term * 12)) - 1;\r\n double monthlyPayment = amount * (num1 / num2);\r\n return monthlyPayment;\r\n }", "public BigDecimal getLBR_TaxDeferralRate();", "public BigDecimal getLBR_ICMSST_TaxAmt();", "public double getTaxes(){\n\t\treturn this.getExciseTax() + this.getFlightSegmentTax() + this.get911SecurityFee() + this.getPassengerFacilityFee();\n\t}", "public BigDecimal getTaxAmtPriceLimit();", "public abstract void calcuteTax(Transfer aTransfer);", "public BigDecimal getPriceLimitWTax();", "public BigDecimal getLBR_TaxReliefAmt();", "public Double calculateTax(Employee employee) {\n\n Double tax = 0.0;\n\n if ( employee != null ) {\n\n Double salary = employee.getSalary();\n if ( salary > 0 ) {\n\n if ( salary < 500000 ) {\n\n tax = salary * 0.05;\n } else if ( salary > 500000 && salary < 1000000 ) {\n\n tax = salary * 0.1;\n } else {\n\n tax = salary * 0.2;\n }\n }\n }\n\n return tax;\n }", "public BigDecimal getLBR_DIFAL_TaxAmtICMSUFDest();", "public double getTaxAmount() {\n return taxAmount;\n }", "public double getTaxRate() {\r\n\t\treturn .07;\r\n\t}", "public double getTaxa() {\n\t\treturn taxa;\n\t}", "double taxReturn() {\n\t\tdouble ddv = 0;\n\t\tif (d == 'A') {\n\t\t\tddv = 18;\n\t\t} else if (d == 'B') {\n\t\t\tddv = 5;\n\t\t}\n\t\t\n\t\tif (ddv = 0) {\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tdouble percent = price / 100.0;\n\t\tdouble tax = ddv * percent;\n\t\treturn tax / 100.0 * 15.0;\n\t}", "public BigDecimal getLBR_TaxDeferralAmt();", "public BigDecimal getLBR_DIFAL_TaxRateICMSUFDest();", "public BigDecimal getLBR_TaxBaseOwnOperation();", "public static double calculateTax(double price) {\r\n\tfinal double TAX = 0.05;\r\n\tdouble taxAmount = price*TAX;\r\n\treturn taxAmount;\r\n\t}", "public BigDecimal getLBR_TaxBaseAmt();", "public int totalTax()\n {\n double tax = taxRate / 100;\n return (int)Math.round(totalCost() * tax);\n }", "@Override\t\n\tpublic double getTax() {\n\t\treturn 0;\n\t}", "public BigDecimal getLBR_DIFAL_TaxAmtFCPUFDest();", "@ApiModelProperty(value = \"Total amount of TAX paid(or should be paid)\")\n @JsonProperty(\"tax\")\n public String getTax() {\n return tax;\n }", "double getArea(){\n return 3.14 * raggio * raggio;\n }", "public BigDecimal getLBR_DIFAL_TaxAmtICMSUFRemet();", "public BigDecimal getLBR_TaxRateCredit();", "public BigDecimal getTaxAmtPriceList();", "void setTax(BigDecimal tax);", "public void tpsTax() {\n TextView tpsView = findViewById(R.id.checkoutPage_TPStaxValue);\n tpsTaxTotal = beforeTaxTotal * 0.05;\n tpsView.setText(String.format(\"$%.2f\", tpsTaxTotal));\n }", "public double calculate() {\n\t\treturn area*1800;\r\n\t}", "double defaultTaxOnProduct(){\n\t\treturn 12.5;\n\t}", "Double getAreaValue();", "public ISalesTax getTaxObject();", "public double computeCustomsTax(String originCountry, double tobacoValue, double regularValue) {\n\t\tTaxComputer pece = getTaxComputer(originCountry);\n\t\treturn pece.compute(tobacoValue, regularValue);\n\t}", "public BigDecimal getLBR_TaxBase();", "public BigDecimal getLBR_TaxAmtCredit();", "public BigDecimal getTaxAmt() {\n\t\treturn taxAmt;\n\t}", "public double getArea(){\n return 3.14 * radius * radius;\n }", "public double getRate( ) {\nreturn monthlyInterestRate * 100.0 * MONTHS;\n}", "public static void main(String[] args) {\n TaxOffice tallinnOffice = new TaxOffice();\n System.out.println(tallinnOffice.getTaxRate());\n \n // we have to limit access to taxRate\n // defined taxRate as private\n // provided getter method for reading its value\n \n tallinnOffice.setTaxRate(0.204);\n System.out.println(tallinnOffice.getTaxRate());\n \n \n }", "public void setTax(BigDecimal tax) {\n this.tax = tax;\n }", "double getMonto();", "double getMonto();", "@ApiModelProperty(value = \"Amount of tax expressed in the given currency\")\n\n @Valid\n\n public Money getTaxAmount() {\n return taxAmount;\n }", "public void setLBR_TaxBaseOwnOperation (BigDecimal LBR_TaxBaseOwnOperation);", "public double taxCharged (){\n return discountedPrice() * taxRate;\n }", "public double getMarketValueTaxRate(){\r\n taxlist.add(new Tax(this.estValue,this.PPR,this.yearsowned,this.locationCategory));\r\n count++;\r\n return taxlist.get(count-1).MarketValueTax();\r\n }", "public static Tax[] getTaxes() {\n Tax[] taxes = new Tax[DeclarationFiller.getDeclaration().size()];\n int count = 0;\n if (taxes != null ) {\n for (Map.Entry<String, Integer> incomePoint : DeclarationFiller.getDeclaration().entrySet()) {\n String taxName = \"Tax of \" + incomePoint.getKey();\n int incomValue = incomePoint.getValue();\n taxes[count] = new Tax(count+1001 ,taxName, incomValue, 0.18);\n count++;\n }\n }\n return taxes;\n }", "public BigDecimal getTaxscore() {\n return taxscore;\n }", "public int getLocationTax(){\r\n taxlist.add(new Tax(this.estValue,this.PPR,this.yearsowned,this.locationCategory));\r\n count++;\r\n return taxlist.get(count-1).LocationTax();\r\n }", "public double taxCalc(int income1, int income2, int income3, int income4, int income5) {\n int[] arr = {income1, income2, income3, income4, income5};\n double taxTotal = 0.0;\n for (int i = 0; i < arr.length; i++) {\n taxTotal += (double) (arr[i] * 7 / 100);\n }\n return taxTotal;\n }", "public BigDecimal getLBR_DIFAL_TaxRateFCPUFDest();", "public double getArea() {\n /*\n * area = base (1o lado ou 3o lado) x altura (2o lado ou 4o lado)\n */\n\n return this.getLado(1) * this.getLado(2);\n }", "public void setLBR_ICMS_TaxAmtOp (BigDecimal LBR_ICMS_TaxAmtOp);", "public void Area(double apotema, double perimetro){\n this.area = (perimetro * apotema) / 2; \n }", "double calculateArea();", "public BigDecimal getLBR_ICMSST_TaxBaseAmt();", "public void setPriceStdWTax (BigDecimal PriceStdWTax);" ]
[ "0.66450024", "0.64928055", "0.6452087", "0.64291775", "0.64245456", "0.63696355", "0.636241", "0.635273", "0.63371366", "0.6272838", "0.6269119", "0.62547034", "0.61714745", "0.61060494", "0.6088926", "0.6067379", "0.60589135", "0.60423803", "0.60312974", "0.6012668", "0.5981887", "0.59746337", "0.5968043", "0.5962111", "0.59347445", "0.5899675", "0.5868859", "0.5864904", "0.58517504", "0.5850226", "0.58244133", "0.5818984", "0.5799606", "0.5783862", "0.57726324", "0.5764931", "0.5753537", "0.57466817", "0.5742338", "0.5709291", "0.5703647", "0.5702114", "0.56959766", "0.5690279", "0.56791246", "0.56676966", "0.5652092", "0.56515163", "0.56473786", "0.56331384", "0.56176376", "0.5573871", "0.5563169", "0.55549866", "0.55500233", "0.5538393", "0.5537692", "0.5535701", "0.5532795", "0.55211824", "0.55177504", "0.5511754", "0.55105925", "0.5499741", "0.5482037", "0.5451709", "0.5451179", "0.5445649", "0.54427844", "0.54420656", "0.5440374", "0.5430194", "0.5426624", "0.54066217", "0.54050225", "0.5402064", "0.5399597", "0.5398688", "0.5395777", "0.5385454", "0.5382886", "0.5377999", "0.53723073", "0.53707397", "0.53707397", "0.5370264", "0.53666043", "0.53622067", "0.5360336", "0.5338739", "0.5330743", "0.5324632", "0.5319033", "0.5309069", "0.5299619", "0.52908987", "0.5289845", "0.5278746", "0.5267473", "0.5255125" ]
0.6961082
0
The toString method that returns the string to print out
@Override public String toString() { // using String.format to display out put value and infomation of Property return String.format( "\nCoordinates: %d, %d\n" + "Length: %d m Width: %d m\n" + "Registrant: #%d\nArea: %d m2\n" + "Property Taxes : $%.1f", this.getXLeft(), this.getYTop(), this.getXLength(), this.getYWidth(), this.getRegNum(), this.getArea(), this.getTaxes()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "public String toString() { return stringify(this, true); }", "public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\n\t}", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }", "@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }", "public String toString() ;", "public String toString() {\n\t\treturn toString(0, 0);\n\t}", "@Override\n public String toString() {\n String str = \"\";\n\n //TODO: Complete Method\n\n return str;\n }", "public String toString() {\n\t\treturn toString(this);\n\t}", "public String toString()\n\t{\n\t\tString output=\"\";\n\n\n\n\n\n\n\t\treturn output+\"\\n\\n\";\n\t}", "public final String toString() {\n\t\tStringWriter write = new StringWriter();\n\t\tString out = null;\n\t\ttry {\n\t\t\toutput(write);\n\t\t\twrite.flush();\n\t\t\tout = write.toString();\n\t\t\twrite.close();\n\t\t} catch (UnsupportedEncodingException use) {\n\t\t\tuse.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\treturn (out);\n\t}", "public String toString() {\n\t\treturn toString(true);\n\t}", "public String toString() {\n\t}", "@Override\r\n\tpublic String toString() {\n\t\tString str = \"\";\r\n\t\treturn str;\r\n\t}", "@Override\n public final String toString() {\n return asString(0, 4);\n }", "@Override()\n public String toString()\n {\n final StringBuilder buffer = new StringBuilder();\n toString(buffer);\n return buffer.toString();\n }", "public String toString() { return \"\"; }", "public String toString() { return \"\"; }", "@Override String toString();", "@Override\n\tpublic String toString() {\n\t\treturn toStringBuilder(new StringBuilder()).toString();\n\t}", "public String toString(){\r\n\t\tString output=\"\";\r\n\t\toutput+=super.toString();\r\n\t\treturn output;\r\n\t}", "@Override public String toString();", "public String toString();", "@Override\n public String toString() {\n return toString(false, true, true, null);\n }", "@Override\n\tString toString();", "@Override\r\n\tpublic String toString();", "public String toString() {\n return toDisplayString();\n }", "@Override\r\n String toString();", "public String toString()\n\t{\n\t\treturn toString(0);\n\t}", "public String toString()\n\t{\n\t\treturn toString(0);\n\t}", "public String toString()\n\t{\n\t\treturn toString(0);\n\t}", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public String toString() {\n\treturn createString(data);\n }", "public String toString() {\n return \"\";\n }", "public String toString() {\n return \"\";\n }", "public String toString() {\r\n return \"\";\r\n }", "public String toString()\r\n\t{\r\n\t\treturn toCharSequence().toString();\r\n\t}" ]
[ "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.8754671", "0.87388504", "0.8720904", "0.8667049", "0.8667049", "0.8667049", "0.8667049", "0.8667049", "0.8667049", "0.8667049", "0.8667049", "0.8667049", "0.8667049", "0.8667049", "0.8667049", "0.8667049", "0.8667049", "0.8667049", "0.8667049", "0.8667049", "0.8667049", "0.8667049", "0.8667049", "0.8667049", "0.8667049", "0.86347365", "0.8633368", "0.86237156", "0.86049145", "0.8543212", "0.84899265", "0.8481837", "0.8480673", "0.8465698", "0.8447127", "0.844703", "0.84407526", "0.84400654", "0.83700883", "0.83700883", "0.8367496", "0.8357149", "0.83134407", "0.8287612", "0.8275566", "0.8269788", "0.8269117", "0.82594556", "0.82420325", "0.82306856", "0.82258624", "0.82258624", "0.82258624", "0.82062596", "0.82062596", "0.82062596", "0.82062596", "0.82062596", "0.82062596", "0.82062596", "0.82062596", "0.82062596", "0.82062596", "0.82062596", "0.82062596", "0.82062596", "0.82062596", "0.82062596", "0.82062596", "0.82060695", "0.81996673", "0.81996673", "0.81925344", "0.8190154" ]
0.0
-1
check if the xLeft and yTop of this is equal to obj
@Override public boolean equals(Object obj) { // this code provided by Dave Houtman [2020] personal communication if (!(obj instanceof Property)) return false; Property prop = (Property) obj; return this.getXLeft() == prop.getXLeft() && this.getYTop() == prop.getYTop() && hasSameSides(prop); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isIntersectingWithViewport(ObjectWithPosition obj){\n if(this.bounds.intersect(obj.getBounds()))\n return true;\n else return false;\n }", "public boolean isWithinObject(int x, int y)\n {\n if( x > coX-Xsize/2 &&\n x < coX+Xsize/2 &&\n y > coY-Ysize/2 &&\n y < coY+Ysize/2 )\n return true;\n else\n return false;\n }", "private boolean leftUpCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((this.getY() - obj.getY()) < obj.getHeight()) && (this.getY() > obj.getY()));\n\t}", "public boolean hitObject(BasicObject obj){\n if(abs(obj.posX - posX) < obj.wid/ 2 && abs(obj.posY - posY) < obj.hei/ 2){\n return true;\n }\n else{\n return false;\n }\n }", "public boolean equals(Object obj) {\r\n\t\treturn ( this.getX() == ((Coordinate)obj).getX() && this.getY() == ((Coordinate)obj).getY());\r\n\t}", "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (super.equals(obj)) return true;\r\n\t\tif (!obj.getClass().equals(this.getClass())) return false;\r\n\t\tPoint p = (Point) obj;\r\n\t\tif ((this.x == p.x) && (this.y == p.y)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n public boolean equals(Object obj) {\n if (!(obj instanceof BoardPosition))\n return false;\n BoardPosition b = (BoardPosition) obj;\n return (this.getRow() == b.getRow()) && (this.getColumn() == b.getColumn()) && (this.getPlayer() == b.getPlayer());\n }", "public void testEquals() {\n assertTrue(RectangleAnchor.TOP.equals(RectangleAnchor.TOP));\n }", "public boolean isInViewport(ObjectWithPosition obj){\n Point viewPoint = convertToViewCoordinates(obj.xCoordinate,obj.yCoordinate);\n if(viewPoint.getX() > 0 && viewPoint.getX() < 1024){\n if(viewPoint.getY() > 0 && viewPoint.getY() < 528){\n return true;\n }\n else return false;\n }\n else return false;\n }", "public boolean isInGUIObject(int x, int y) {\n return (x >= this.coordX &&\n x <= this.coordX + this.width &&\n y >= this.coordY &&\n y <= this.coordY + this.height);\n }", "boolean isInsideScreen() {\n if (_hitbox.length == 1) {\n float r = _hitbox[0].x;\n PVector c = _getCenter();\n return 0 <= c.x + r && c.x - r < width && 0 <= c.y + r && c.y - r < height;\n }\n \n PVector[] points = this._getPoints();\n for(PVector p : points) {\n if(0 <= p.x && p.x < width && 0 <= p.y && p.y < height) {\n return true;\n }\n }\n return false;\n }", "public boolean situatedInside(double x, double y) {\n if(y>this.bottomleft.x && y<this.topright.x && x <this.topright.y && x > this.bottomleft.y)\n return true;\n else\n return false;\n }", "public boolean mouseWithinBox() {\n return (mouseX > x && mouseX < x + w && mouseY > y && mouseY < y + h);\r\n }", "@Override\n public boolean equals(Object object) {\n if (object != null && object instanceof Coord) { // object is Coord type\n Coord coord = (Coord) object; // typecase object to Coord type\n if (this.x == coord.x && this.y == coord.y) { // Equals Coord\n return true;\n }\n }\n return false;\n }", "public void checkTopCollision(FloatRect x){\r\n if((int)rect1.top<= (int)x.top-x.height ){\r\n collide=true;\r\n collidedTop=true;\r\n }\r\n }", "@Override\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n \n final Point other = (Point) obj;\n if( !(Point.memeReel(this.x, other.getX()) && Point.memeReel(this.y, other.getY())) ) {\n return false;\n }\n\n return true;\n }", "public boolean equals(Position other) {\n return (other.x == this.x && other.y == this.y);\r\n }", "boolean hasRect2Value();", "protected boolean isInside(int x, int y){\n if(x <= super.getLocationX())\n return false;\n\n if(x >= (super.getLocationX() + super.getWidth() - 1))\n return false;\n\n if(y <= super.getLocationY())\n return false;\n\n if(y >= (super.getLocationY() + super.getHeight() - 1))\n return false;\n\n //return true if inside\n return true;\n\n }", "@Override\n public boolean equals(Object inst) {\n if (inst == this)\n {\n return true;\n }\n if (!(inst instanceof BoardPosition))\n {\n return false;\n }\n BoardPosition pos = (BoardPosition) inst;\n return column == pos.column && row == pos.row;\n }", "private boolean leftDownCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((obj.getY() - this.getY()) < this.getHeight()) && (obj.getY() > this.getY()));\n\t}", "@Override\n\tpublic boolean equals(Object other)\n\t{\n if (other == this) \n {\n return true;\n }\n \n // Check if is an instance of this class:\n if (!(other instanceof RelativeLocation))\n {\n return false;\n }\n \n // Check if have same x and y values:\n RelativeLocation otherRelativeLocation = (RelativeLocation) other;\n \n return (this.getX() == otherRelativeLocation.getX()\n \t\t&& this.getY() == otherRelativeLocation.getY());\n\t\t\n\t}", "public boolean offscreen(int top, int left, int w, int h) {\r\n return this.getPosx() + this.bound < left\r\n || this.getPosx() - this.bound > left + w\r\n || this.getPosy() + this.bound < top\r\n || this.getPosy() - this.bound > top + h;\r\n }", "public boolean equals(Object o)\n\t{\n\t\tboolean ret = false;\n\t\tif(o instanceof Position)\n\t\t{\n\t\t\tPosition tmp = (Position)o;\n\t\t\tif(tmp.getX()==x && tmp.getY()==y)\n\t\t\t\tret = true;\n\t\t}\n\t\treturn ret;\n\t}", "public boolean isSameAs(Move comp){ \n return this.xFrom==comp.xFrom &&\n this.xTo==comp.xTo &&\n this.yFrom==comp.yFrom &&\n this.yTo==comp.yTo;\n }", "boolean hasRect();", "private boolean rightUpCollision(InteractiveObject obj){\n\t\treturn (((obj.getX() - this.getX()) < this.getWidth()) && (obj.getX() > this.getX()) &&\n\t\t\t\t((this.getY() - obj.getY()) < obj.getHeight()) && (this.getY() > obj.getY()));\n\t}", "public boolean inBounds(Obstacle obj) {\n\t\tboolean horiz = (bounds.x <= obj.getX() && obj.getX() <= bounds.x+bounds.width);\n\t\tboolean vert = (bounds.y <= obj.getY() && obj.getY() <= bounds.y+bounds.height);\n\t\treturn horiz && vert;\n\t}", "boolean hasPositionX();", "boolean hasPositionX();", "boolean hasPositionX();", "@Override\r\n public boolean equals(Object obj) {\r\n if (!(obj instanceof Position))\r\n return false;\r\n Position pos = (Position)obj;\r\n return ((pos.getRowIndex() == this.rowIndex) && (pos.getColumnIndex() == this.colIndex));\r\n }", "private boolean isVecInXY(Vec3 vec) {\n\t\treturn vec == null ? false : vec.xCoord >= this.minX && vec.xCoord <= this.maxX && vec.yCoord >= this.minY && vec.yCoord <= this.maxY;\n\t}", "public boolean equals(Object obj)\n {\n TAPosition taPosition;\n if(obj instanceof TAPosition)\n {\n taPosition = (TAPosition)obj;\n return position.equals(taPosition.getPosition());\n }\n else\n return false;\n }", "public boolean isInside(int x, int y) {\r\n if (this.state == 0) {\r\n if ((x >= this.x && x <= (this.x +width)) &&\r\n y >= this.y && y <= (this.y +height)) {\r\n return true;\r\n }\r\n } else if (this.state == 1) {\r\n if ((x <= this.x && x >= (this.x - height)) &&\r\n y >= this.y && y <= (this.y + width)) {\r\n return true;\r\n }\r\n } else if (this.state == 2) {\r\n if ((x <= this.x && x >= (this.x - width)) &&\r\n y <= this.y && y >= (this.y - height)) {\r\n return true;\r\n }\r\n } else if (this.state == 3) {\r\n if ((x >= this.x && x <= (this.x + height)) &&\r\n y <= this.y && y >= (this.y - width)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public boolean isPointInside(int x, int y) {\r\n if (Integer.compare(x, _xLeft) <= 0) {\r\n return false;\r\n }\r\n \r\n if (Integer.compare(x, _xRight) >= 0) {\r\n return false;\r\n }\r\n \r\n if (Integer.compare(y, _yTop) <= 0) {\r\n return false;\r\n }\r\n \r\n if (Integer.compare(y, _yBottom) >= 0) {\r\n return false;\r\n }\r\n \r\n return true;\r\n }", "public boolean isOver(VisibleThing other) {\n // checks each of the false conditions for the other's image not being over our current image\n // returns false if each of these conditions fails, true otherwise\n\n if (other == null) {\n return false;\n }\n if ((other.x > (this.x + this.image.width))) {\n return false;\n }\n\n if ((other.x + other.image.width) < this.x) {\n return false;\n }\n\n if (other.y > (this.y + this.image.height)) {\n return false;\n }\n\n if ((other.y + other.image.height) < this.y) {\n return false;\n }\n\n return true;\n\n\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 }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif(obj!=null && obj instanceof Test1){\n\t\t\tTest1 obj2 = (Test1)obj;\n\t\t\tif(x==obj2.x && y==obj2.y){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean equals(Object obj) {\n\n if (obj instanceof Location) {\n\n Location other = (Location) obj;\n\n return row == other.getRow() && col == other.getCol();\n\n } else {\n\n return false;\n\n }\n }", "public boolean isCenteringOverCoords()\n\t{\n\t\treturn centerOverCoords;\n\t}", "@Override\n public boolean equals(Object obj) {\n //if we compare a point to itself\n if (this == obj) {\n //it's the same\n return true;\n }\n //it's not null\n if (obj == null) {\n return false;\n }\n //if it's not a Short2DPoint\n if (!getClass().isInstance(obj)) {\n //it's not the same\n return false;\n }\n // convert the object into a Short2DPoint\n final Short2DPoint other = (Short2DPoint) obj;\n //if the x coordinate is different\n if (this.x != other.x) {\n //it's not the same\n return false;\n }\n //if the x coordinate is different\n if (this.y != other.y) {\n //it's not the same\n return false;\n }\n //they are the same\n return true;\n }", "public boolean equals(Object other){\n\t\t\n\t\t\n\t\tif(other instanceof Wall)\n\t\t{\n\t\t\t\n\t\t\tWall that = (Wall) other;\n\t\t\t\n\t\t\tif(this.startx == that.startx && this.starty == that.starty && this.endx == that.endx && this.endy == that.endy){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if(this.startx == that.endx && this.starty == that.endy && this.endx == that.startx && this.endy == that.starty){\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\t\n\t\treturn false;\n\t\t\n\t}", "boolean testCoords(Tester t) {\n return t.checkExpect(this.p3.xCoord(), 50) && t.checkExpect(this.p4.yCoord(), 600);\n }", "public boolean sameAsGold() {\n\t\tif (this.level == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tArrayList<Gold> goldObjects = this.level.getGoldObjects();\n\n\t\tfor (int i = 0; i < goldObjects.size(); i++) {\n\t\t\tif (this.tilePositionX == goldObjects.get(i).getPositionX()\n\t\t\t\t\t&& this.tilePositionY == goldObjects.get(i).getPositionY()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "boolean hasHasXCoordinate();", "protected boolean isBorder(int x, int y){\n if(super.getLocationX() == x)\n return true;\n //top border\n if (super.getLocationY() == y)\n return true;\n\n //right border\n if((super.getLocationX() + super.getWidth() - 1) == x)\n return true;\n\n //bottom border\n if ((super.getLocationY() + super.getHeight() - 1) == y)\n return true;\n\n //return false if not\n return false;\n }", "private boolean topDrawableHit(TextView textView, int drawableHeight, float x, float y){\n\n\n\n int xmin = textView.getPaddingLeft();\n int xmax = textView.getWidth() - textView.getPaddingRight();\n int ymin = textView.getPaddingTop();\n int ymax = textView.getPaddingTop() + drawableHeight;\n\n //x should be between xmin and xmax, y should be between ymin and ymax\n return x > xmin && x <xmax && y > ymin && y < ymax ;\n }", "Boolean CheckIfInside(float xVal, float yVal) {\r\n double distance = Math.sqrt((this.x-xVal)*(this.x-xVal) + (this.y-yVal)*(this.y-yVal));\r\n return (distance <= this.radius);\r\n }", "boolean canPickup(int x, int y) {\n return ((posX == x) && (posY == y));\n }", "boolean isTopCollision(Actor actor) {\n return this.getX() == actor.getX() && this.getY() - 1 == actor.getY();\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj)\n\t\t\treturn true;\n\t\tif (obj == null)\n\t\t\treturn false;\n\t\tif (getClass() != obj.getClass())\n\t\t\treturn false;\n\t\tMove other = (Move) obj;\n\t\tif (col != other.col)\n\t\t\treturn false;\n\t\tif (row != other.row)\n\t\t\treturn false;\n\t\treturn true;\n\t}", "boolean equals(Point other) {\n //System.out.println(\"Calling our equals method now!\");\n return (this.x == other.x) && (this.y == other.y);\n }", "public boolean equals(Object obj)\r\n\t{\r\n\t\tif (obj instanceof FloatDimension)\r\n\t\t{\r\n\t\t\tFloatDimension dimension = (FloatDimension)obj;\r\n\t\t\treturn dimension.width == width && dimension.height == height;\r\n\t\t}\r\n\t\treturn super.equals(obj);\r\n\t}", "@Override\n public boolean equals(Object o) {\n //if the other object is null, they're not equal\n if (o == null) { return false; }\n\n //check if it's a coordinate and if so, if it's a matching coordinate\n if (o instanceof Coordinate) {\n Coordinate other = (Coordinate) o;\n return col == other.col && row == other.row;\n }\n\n return false;\n }", "public boolean clickedInside( int x, int y ) {\n\t\tif ( x > this.x ) {\n\t\t\tif ( y > this.y ) {\n\t\t\t\tif ( x < ( this.x + this.width ) ) {\n\t\t\t\t\tif ( y < ( this.y + this.height ) ) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public void setTopLeft(Item item) {\n topLeft = item;\n }", "public final boolean checkIfInZone(int x, int y) { return (getSiege(x, y) != null); }", "protected boolean positionCorrect(BoatDrawing activeBoat) {\n // Gets the active rectangle's bound\n Rectangle activeRectangle = activeBoat.getBoatRectangle();\n Bounds boundR1 = activeRectangle.getBoundsInParent();\n\n // Tries to find any intersection with the other boats.\n for (Rectangle myRectangle : boatMap.keySet()) {\n if(activeRectangle.equals(myRectangle)) {} else {\n Bounds boundR2 = myRectangle.getBoundsInParent();\n if (boundR1.intersects(boundR2)) {\n return false ;\n }\n }\n } \n // Checks the boat's position in relation to the grid.\n int index ;\n if(activeBoat.isRotation()) {\n index= activeBoat.getGridRow();\n } else {\n index= activeBoat.getGridCol();\n }\n\n return activeBoat.getBoatSize()+index <= NB_CASES_GRID ; \n }", "private boolean isInsideBoard(int x, int y){\n if(x < 0 || x > getWidth() - 1 || y < 0 || y > getHeight() - 1)\n return false;\n\n return true;\n }", "public boolean isVisible() {\r\n return !((x + width) < ocean.getXmin() || x > ocean.getXmax() || (y + height) < ocean.getYmin()\r\n || y > ocean.getYmax());\r\n }", "public boolean equals(Object other) {\n System.out.println(\"Calling our equals method now!\");\n\n if (other == null) {\n return false;\n }\n\n if (!(other instanceof Point)) {\n return false;\n }\n\n // other must be a Point here\n Point p = (Point) other;\n return (this.x == p.x) && (this.y == p.y);\n }", "public boolean isInside(){\n\t\tinside = true;\n\t\tif(map.contains(new Rectangle(x,y,(int)spriteSize.getHeight(), (int)spriteSize.getWidth()))==false){\n\t\t\tinside = false;\n\t\t}\n\t\treturn(inside);\n\t}", "private boolean mouseOver(int mx, int my, int x, int y, int width, int height){\n if(mx > x && mx < x + width){\n if(my > y && my < y + height){\n return true;\n }else return false;\n }else return false;\n }", "@Test\n public void testPositionEquals(){\n assertEquals(Maze.position(0,0), Maze.position(0,0));\n assertThat(Maze.position(1, 0), not(Maze.position(0, 0)));\n assertThat(Maze.position(0,0), not(Maze.position(0,1)));\n }", "public abstract boolean canMove(Rect rect, int xClearance, int yClearance);", "public boolean xIntersects(BoundingBox other) {\r\n\t\treturn (Math.abs(other.getTop() - top) < SMALL_NUMBER &&\r\n\t\t\t\tMath.abs(other.getX() - x) < other.getWidth()/2);\r\n\t}", "public boolean hitObject(BasicObject oppose){\n if (oppose.classOfObejct != classOfObejct){\n if (abs(posX - oppose.posX) < (wid / 2 + oppose.wid/2) && abs(posY - oppose.posY) < (hei / 2 + oppose.hei/2)){\n return true;\n }\n else{\n return false;\n }\n }\n else{\n return false;\n }\n }", "protected boolean checkRep() {\n if ( this.getX() < 0 || this.getY() < 0 || this.getX() >= 20 || this.getY() >= 20 ) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object obj) {\n if (this == obj)\n return true;\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n SearchNode other = (SearchNode) obj;\n if (x != other.x)\n return false;\n if (y != other.y)\n return false;\n return true;\n }", "public abstract boolean containsPoint(int x, int y);", "boolean canBeOnTop(Box b2) {\n\t\t\tif(b2 == null)\n\t\t\t\treturn true;\n\t\t\t\n\t\t\tif(this.width < b2.width && this.height < b2.height && this.depth < b2.depth)\n\t\t\t\treturn true;\n\t\t\t\n\t\t\treturn false;\n\t\t}", "public boolean isInside(int x, int y){\n \tif( ( x >= xpos && x <= xpos + img.getWidth()) &&\n \t\t ( y >= ypos && y <= ypos + img.getHeight()) ){\n \t\treturn true;\n \t}else\n \t\treturn false;\n\t}", "public boolean isMine(int x, int y);", "public boolean equals(Position b) {\n\t\treturn b != null && xCoord == b.getX() && yCoord == b.getY();\n\t}", "public boolean intersects(OnScreenObject other) {\r\n if (other == null) {\r\n return false;\r\n }\r\n Rectangle r1 = getRectangle();\r\n Rectangle r2 = other.getRectangle();\r\n\r\n return r1.intersects(r2);\r\n }", "private boolean isNearThumb(int x, int y) {\n tmpRect.set(thumbOffset.getPointXToInt(), thumbOffset.getPointYToInt(), thumbOffset.getPointXToInt() + thumbWidth,\n thumbOffset.getPointYToInt() + thumbHeight);\n // tmpRect.inset(touchInset, touchInset);\n return tmpRect.contains(x, y, x, y);\n }", "boolean contains(double x, double y) {\r\n\t\t//cordinate of the left edge\r\n\t\tdouble xLeftEdge = this.getX() - this.width / 2;\r\n\t\t//cordinate of the right edge\r\n\t\tdouble xRightEdge = this.getX() + this.width / 2;\r\n\t\t////cordinate of the top edge\r\n\t\tdouble yTopEdge = this.getY() + this.height / 2;\r\n\t\t//cordinate of the bottom edge\r\n\t\tdouble yBottomEdge = this.getY() - this.height / 2;\r\n\r\n\t\t//if the point is between the edges it is inside the rectangle\r\n\t\treturn (x < xRightEdge) && (x > xLeftEdge) && (y < yTopEdge)\r\n\t\t\t\t&& (y > yBottomEdge) ? true : false;\r\n\t}", "@java.lang.Override\n public boolean hasRect() {\n return instance.hasRect();\n }", "public String toString(){\n\t\treturn topleft.x + \",\"+topleft.y+\",\"+bottomright.x+\",\"+bottomright.y;\n\t}", "boolean hasCoordinates();", "boolean hasCoordinates();", "boolean hasCoordinates();", "public boolean equals(Point other) {\n if (other == null) {\n return false;\n }\n return this.x == other.x && this.y == other.y;\n }", "private boolean tryBorder(int x, int y){\n\n\t\treturn y == this.dimension - 1 || x == this.dimension - 1;\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj) {\n\t\t\treturn true;\n\t\t}\n\t\tif (!(obj instanceof PPoint)) {\n\t\t\treturn false;\n\t\t}\n\t\tPPoint other = (PPoint) obj;\n\t\treturn Double.compare(getX(), other.getX()) == 0 && Double.compare(getY(), other.getY()) == 0;\n\t}", "public boolean isInsideBoard(Position pos){\n\t\tboolean inside = false;\n\t\t\n\t\tif (pos.getX()<this.getSize().getWidth() && pos.getX()>=0 &&\n\t\t\t\tpos.getY()<this.getSize().getHeight() && pos.getY()>=0)\n\t\t\tinside=true;\n\t\t\n\t\treturn inside;\n\t\t\n\t}", "@Override\n public boolean equals(Object o) {\n final BoardCell secondCell = (BoardCell) o;\n return((this.xCor==secondCell.xCor)\n &&(this.yCor==secondCell.yCor));\n }", "public boolean isOver(int x, int y) {\n // if the point is not within any of the edges of the image, we return false\n if ((y < this.y) || (y > (this.y + image.height))\n || ((x < this.x) || (x > (this.x + image.width)))) {\n return false;\n }\n\n // otherwise, (it is somewhere over the image) we return true\n return true;\n\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == null)\n\t\t\treturn false;\n\n\t\tif (!(obj instanceof Location))\n\t\t\treturn false;\n\n\t\tif (obj == this)\n\t\t\treturn true;\n\n\t\tLocation that = (Location) obj;\n\n\t\treturn this.map == that.map && this.y() == that.y() && this.x() == that.x();\n\t}", "private boolean rightDownCollision(InteractiveObject obj){\n\t\treturn ((obj.getX() - this.getX() < this.getWidth()) && (obj.getX() > this.getX()) &&\n\t\t\t\t(obj.getY() - this.getY() < this.getHeight()) && (obj.getY() > this.getY()));\n\t}", "private boolean verifyBounds() {\r\n\t if((x>RobotController.BOUNDS_X || y>RobotController.BOUNDS_Y)\r\n\t || x<0 || y<0){\r\n\t return false;\r\n\t }\r\n\t return true;\r\n\t }", "@Override\n\tpublic boolean isInside(float x, float y, float z) {\n\t\treturn false;\n\t}", "public boolean checkRep() {\n return location.x() >= 0 && location.x() < board.getWidth() && \n location.y() >= 0 && location.y() < board.getHeight(); \n }", "@Override\r\n public boolean collocated(Space other) {\r\n return this.row == other.getRow() &&\r\n this.col == other.getCol();\r\n }", "private boolean isValid(int x,int y){\n\t\treturn x > -1 && y > -1 && x < width && y<height;\n\t }", "public void checkLeftCollision(FloatRect x){\r\n if((int)rect1.left < x.left ) {\r\n centerX -= 6;\r\n }\r\n }", "public boolean isAround(Ball ball)\n {\n int delta = 10;\n Rectangle2D rectangle = new Rectangle2D.Double(mPosition.getX() - delta, mPosition.getY() - delta, 2 * delta, 2 * delta);\n \n return rectangle.contains(ball.getPosition());\n }", "public static boolean WithinRange(GameObject obj, int compX, int compY)\n\t{\n\t\t//Checks heigh/width and x/y to determine if the value is\n\t\t//over the object.\n\t\tif (compX >= obj.x && //is it too far to the right?\n\t\t\tcompX <= obj.texture.image.getWidth() + obj.x && //is it too far to the left?\n\t\t\tcompY >= obj.y && //is it too low?\n\t\t\tcompY <= obj.texture.image.getHeight() + obj.y ) //is it too high?\n\t\t\t\treturn true; //if none of those, return true.\n\t\treturn false; //else return false.\n\t\t\n\t}", "public boolean validMove(int x, int y){\n if(!super.validMove(x, y)){\n return false;\n }\n if(((Math.abs(x - this.x()) == 2) && (Math.abs(y - this.y()) == 1))\n || ((Math.abs(x - this.x()) == 1) && (Math.abs(y - this.y()) == 2))){\n return true;\n }else{\n return false;\n }\n }" ]
[ "0.6537717", "0.6479366", "0.6410143", "0.6304278", "0.62743014", "0.62683463", "0.6242063", "0.6211866", "0.6204778", "0.61811537", "0.61728036", "0.6126273", "0.6124601", "0.6122075", "0.6100182", "0.60853326", "0.60496783", "0.6031916", "0.6031347", "0.59975934", "0.59968555", "0.5974742", "0.5970817", "0.59620047", "0.59615725", "0.5960464", "0.5960065", "0.59596175", "0.5954172", "0.5954172", "0.5954172", "0.5927979", "0.5890287", "0.58646274", "0.5840002", "0.5817335", "0.5815857", "0.58095294", "0.58047885", "0.57861537", "0.57837075", "0.57742196", "0.57650596", "0.5763605", "0.5757024", "0.5752216", "0.5743934", "0.57360023", "0.5723459", "0.57217073", "0.5710822", "0.57055455", "0.5692355", "0.56876", "0.56831694", "0.56736493", "0.5655038", "0.5653434", "0.5653085", "0.5648593", "0.5644221", "0.5631608", "0.5615676", "0.56143224", "0.56121325", "0.5603069", "0.5588668", "0.5581651", "0.55722904", "0.557211", "0.55700374", "0.5569187", "0.5565318", "0.55562496", "0.555521", "0.55531067", "0.5546968", "0.5544906", "0.55447036", "0.55445665", "0.55442065", "0.55442065", "0.55442065", "0.5540446", "0.551954", "0.5514224", "0.5506035", "0.5505265", "0.55022585", "0.5496436", "0.54881984", "0.5486854", "0.547853", "0.54772127", "0.5470149", "0.54641277", "0.545975", "0.5459241", "0.54592025", "0.5455837" ]
0.6701212
0
check if the xLength and yWidth of this is equal to obj
public boolean hasSameSides(Property prop) { // this code provided by Dave Houtman [2020] personal communication return this.getXLength() == prop.getXLength() && this.getYWidth() == prop.getYWidth(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean equals(Object obj)\r\n\t{\r\n\t\tif (obj instanceof FloatDimension)\r\n\t\t{\r\n\t\t\tFloatDimension dimension = (FloatDimension)obj;\r\n\t\t\treturn dimension.width == width && dimension.height == height;\r\n\t\t}\r\n\t\treturn super.equals(obj);\r\n\t}", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null) {\n return false;\n }\n AbstractShape that = (AbstractShape) o;\n return Double.compare(that.x, x) == 0 &&\n Double.compare(that.y, y) == 0 &&\n Double.compare(that.w, w) == 0 &&\n Double.compare(that.h, h) == 0 &&\n Double.compare(that.r, r) == 0 &&\n Double.compare(that.g, g) == 0 &&\n Double.compare(that.b, b) == 0 &&\n name.equals(that.name);\n }", "boolean hasRect2Value();", "boolean hasWidth();", "boolean hasWidth();", "boolean hasWidth();", "@Override\n public boolean equals(Object obj) {\n // this code provided by Dave Houtman [2020] personal communication\n if (!(obj instanceof Property))\n return false;\n Property prop = (Property) obj;\n return this.getXLeft() == prop.getXLeft() && this.getYTop() == prop.getYTop() && hasSameSides(prop);\n }", "@java.lang.Override\n public boolean hasWidth() {\n return instance.hasWidth();\n }", "public boolean isWithinObject(int x, int y)\n {\n if( x > coX-Xsize/2 &&\n x < coX+Xsize/2 &&\n y > coY-Ysize/2 &&\n y < coY+Ysize/2 )\n return true;\n else\n return false;\n }", "@java.lang.Override\n public boolean hasRect() {\n return instance.hasRect();\n }", "private boolean intersects(int x, int y, int size){\n count++;\n return(!(\n x > this.x + this.width ||\n x + size < this.x ||\n y > this.y + this.height ||\n y + size < this.y\n ));\n }", "@Override\n public boolean equals(Object obj) {\n //if we compare a point to itself\n if (this == obj) {\n //it's the same\n return true;\n }\n //it's not null\n if (obj == null) {\n return false;\n }\n //if it's not a Short2DPoint\n if (!getClass().isInstance(obj)) {\n //it's not the same\n return false;\n }\n // convert the object into a Short2DPoint\n final Short2DPoint other = (Short2DPoint) obj;\n //if the x coordinate is different\n if (this.x != other.x) {\n //it's not the same\n return false;\n }\n //if the x coordinate is different\n if (this.y != other.y) {\n //it's not the same\n return false;\n }\n //they are the same\n return true;\n }", "public boolean isSquare() {\r\n \tif (getLength() == getWidth()) {\r\n \t\treturn(true);\r\n \t} else {\r\n \t\treturn(false);\r\n \t}\r\n }", "public boolean isValid() {\n boolean isvalid = true;\n\n if (java.lang.Double.isInfinite(x) || java.lang.Double.isNaN(x) || java.lang.Double.isInfinite(y) || java.lang.Double.isNaN(y) || java.lang.Double.isInfinite(width) || java.lang.Double.isNaN(width) || java.lang.Double.isInfinite(height)\n || java.lang.Double.isNaN(height)) {\n isvalid = false;\n }\n\n return isvalid;\n }", "boolean hasRect();", "public boolean isSquare()\n {\n return width == height;\n }", "public boolean isIntersectingWithViewport(ObjectWithPosition obj){\n if(this.bounds.intersect(obj.getBounds()))\n return true;\n else return false;\n }", "@java.lang.Override\n public boolean hasRect2Value() {\n return typeCase_ == 7;\n }", "public static boolean squareSquare(GameObject obj1, GameObject obj2) {\r\n\t\tfloat obj1_size = (obj1.getScale() * EnvironmentVariables.getMeter()) / 2;\r\n\t\tfloat obj2_size = (obj2.getScale() * EnvironmentVariables.getMeter()) / 2;\r\n\t\t\r\n\t\tif(obj1.getX() + obj1_size >= obj2.getX() - obj2_size && \t//obj1 right edge past obj2 left edge\r\n\t\t\tobj1.getX() - obj1_size <= obj2.getX() + obj2_size &&\t//obj1 left edge past obj2 right edge\r\n\t\t\tobj1.getY() + obj1_size >= obj2.getY() - obj2_size &&\t//obj1 top edge past obj2 bottom edge\r\n\t\t\tobj1.getY() - obj1_size <= obj2.getY() + obj2_size\t\t//obj1 top edge past obj2 bottom edge\r\n\t\t\t\t) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@java.lang.Override\n public boolean hasRect2Value() {\n return typeCase_ == 7;\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}", "private boolean isValid(int x,int y){\n\t\treturn x > -1 && y > -1 && x < width && y<height;\n\t }", "@Test\r\n\tpublic void testWidth() {\r\n\t\tassertEquals(WIDTH, validRectangle.width());\r\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 }", "protected boolean checkRep() {\n if ( this.getX() < 0 || this.getY() < 0 || this.getX() >= 20 || this.getY() >= 20 ) {\n return false;\n }\n return true;\n }", "public boolean isCorrectSize(int height, int width);", "private boolean fits(MapObject m, int x, int y, int width, int height){\n return(!(\n m.getXpos() < x ||\n m.getXpos() + m.getXlen() > x + width ||\n m.getYpos() < y ||\n m.getYpos() + m.getYlen() > y + height\n ));\n }", "@Override\n\tpublic boolean outOfBounds() {\n\t\treturn this.getY() < 0;\n\t}", "public boolean isInViewport(ObjectWithPosition obj){\n Point viewPoint = convertToViewCoordinates(obj.xCoordinate,obj.yCoordinate);\n if(viewPoint.getX() > 0 && viewPoint.getX() < 1024){\n if(viewPoint.getY() > 0 && viewPoint.getY() < 528){\n return true;\n }\n else return false;\n }\n else return false;\n }", "public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "private boolean tryBorder(int x, int y){\n\n\t\treturn y == this.dimension - 1 || x == this.dimension - 1;\n\t}", "@Override\n public boolean isEqualTo(CollisionShape otherCollisionShape) {\n ConeShape otherShape = (ConeShape) otherCollisionShape;\n return (radius == otherShape.radius && halfHeight == otherShape.halfHeight);\n }", "public boolean xIntersects(BoundingBox other) {\r\n\t\treturn (Math.abs(other.getTop() - top) < SMALL_NUMBER &&\r\n\t\t\t\tMath.abs(other.getX() - x) < other.getWidth()/2);\r\n\t}", "public boolean hitObject(BasicObject obj){\n if(abs(obj.posX - posX) < obj.wid/ 2 && abs(obj.posY - posY) < obj.hei/ 2){\n return true;\n }\n else{\n return false;\n }\n }", "public boolean intersects(GraphicalFigure fig) {\n\n\t\t// Get the distance between the 2 figures on the x axis\n\t\tint xDist = pos.xCoord() - fig.getOffset().xCoord();\n\n\t\t// Get the distance on the y axis\n\t\tint yDist = pos.yCoord() - fig.getOffset().xCoord();\n\n\t\t// All if's allow for if the x's are the same\n\t\t// Check to see if the figure is on the right and overlaps\n\t\tif (xDist >= 0 && xDist < fig.getWidth()) {\n\n\t\t\t// For loop variables\n\t\t\tint initial = 0;\n\t\t\tint compare = 0;\n\t\t\tBoolean loopCheck = false;\n\n\t\t\t// All if's allow for if the y's are the same\n\t\t\t// Check if it's above the object and within range\n\t\t\tif (yDist >= 0 && xDist < fig.getHeight()) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = pos.yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = pos.yCoord() + fig.getHeight() - yDist;\n\t\t\t}\n\n\t\t\t// Check if it's below the object and within range\n\t\t\telse if (yDist <= 0 && xDist < height) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = fig.getOffset().yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = fig.getOffset().yCoord() + fig.getHeight() + yDist;\n\t\t\t}\n\n\t\t\t// If the loop check is true, do a for loop\n\t\t\tif (loopCheck) {\n\n\t\t\t\t// Create a location variable\n\t\t\t\tLocation loc;\n\t\t\t\t// Loop through the intersecting rectangle\n\t\t\t\t// Loop Horizontally\n\t\t\t\tfor (int i = pos.xCoord(); i < pos.xCoord() + fig.getWidth() - xDist; i++) {\n\t\t\t\t\t// Loop through vertically\n\t\t\t\t\tfor (int j = initial; j < compare; j++) {\n\t\t\t\t\t\t// Create a location for the new pixel\n\t\t\t\t\t\tloc = new Location(i, j);\n\n\t\t\t\t\t\t// Check for overlap, return true\n\t\t\t\t\t\tif (findPixel(loc) && fig.findPixel(loc)) {\n\t\t\t\t\t\t\treturn true;\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\n\t\t// All if's allow for if the x's are the same\n\t\t// Check if the figure is on the left and overlaps\n\t\telse if (xDist >= 0 && xDist < width) {\n\t\t\t// For loop variables\n\t\t\tint initial = 0;\n\t\t\tint compare = 0;\n\t\t\tBoolean loopCheck = false;\n\n\t\t\t// All if's allow for if the y's are the same\n\t\t\t// Check if it's above the object and within range\n\t\t\tif (yDist >= 0 && xDist < fig.getHeight()) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = pos.yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = pos.yCoord() + fig.getHeight() - yDist;\n\t\t\t}\n\n\t\t\t// Check if it's below the object and within range\n\t\t\telse if (yDist <= 0 && xDist < height) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = fig.getOffset().yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = fig.getOffset().yCoord() + fig.getHeight() + yDist;\n\t\t\t}\n\n\t\t\t// If the loop check is true, do a for loop\n\t\t\tif (loopCheck) {\n\n\t\t\t\t// Create a location variable\n\t\t\t\tLocation loc;\n\t\t\t\t// Loop through the intersecting rectangle\n\t\t\t\t// Loop Horizontally\n\t\t\t\tfor (int i = fig.getOffset().xCoord(); i < fig.getOffset().xCoord() + width + xDist; i++) {\n\t\t\t\t\t// Loop through vertically\n\t\t\t\t\tfor (int j = initial; j < compare; j++) {\n\t\t\t\t\t\t// Create a location for the new pixel\n\t\t\t\t\t\tloc = new Location(i, j);\n\n\t\t\t\t\t\t// Check for overlap, return true\n\t\t\t\t\t\tif (findPixel(loc) && fig.findPixel(loc)) {\n\t\t\t\t\t\t\treturn true;\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\n\t\t// If no intersection found, return false\n\t\treturn false;\n\t}", "public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "private boolean verifyBounds() {\r\n\t if((x>RobotController.BOUNDS_X || y>RobotController.BOUNDS_Y)\r\n\t || x<0 || y<0){\r\n\t return false;\r\n\t }\r\n\t return true;\r\n\t }", "public boolean equals(Object obj) {\r\n\t\treturn ( this.getX() == ((Coordinate)obj).getX() && this.getY() == ((Coordinate)obj).getY());\r\n\t}", "private boolean isInBounds(int x, int y) {\r\n\t\treturn x >= 0 && y >= 0 && x < getWidth() && y < getHeight();\r\n\t}", "boolean isIncludeBounds();", "public boolean equals(Object obj) {\n if (obj == this) {\n\t return true;\n }\n\n\tif (obj != null) {\n\t try {\n\t Font font = (Font)obj;\n\t if ((size == font.size) &&\n\t\t(pointSize == font.pointSize) &&\n\t\t(style == font.style) &&\n (superscript == font.superscript) &&\n (width == font.width) &&\n\t\tname.equals(font.name)) {\n\t\t\n\t\tdouble[] thismat = this.getMatrix();\n\t\tdouble[] thatmat = font.getMatrix();\n\t \n\t\treturn thismat[0] == thatmat[0]\n\t\t && thismat[1] == thatmat[1]\n\t\t && thismat[2] == thatmat[2]\n\t\t && thismat[3] == thatmat[3]\n\t\t && thismat[4] == thatmat[4]\n\t\t && thismat[5] == thatmat[5];\n\t }\n\t }\n\t catch (ClassCastException e) {\n\t }\n\t}\n\treturn false;\n }", "boolean hasDimension();", "public boolean detectBound(){\n if(posX < 0 || posX > width || posY < 0 || posY > height){\n return true;\n }\n else{\n return false;\n }\n }", "private boolean tooSmallforThisPaddock(PaddockCoordinates coor) {\n return ((coor.getX() + coor.getWidth() > this.width)\n || (coor.getY() + coor.getHeight() > this.height));\n }", "public boolean isSetWidth()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(WIDTH$20) != null;\n }\n }", "public boolean validateFullBounds() {\n\t\tcomparisonBounds = getUnionOfChildrenBounds(comparisonBounds);\n\t\n\t\tif (!cachedChildBounds.equals(comparisonBounds)) {\n\t\t\tsetPaintInvalid(true);\n\t\t}\n\t\treturn super.validateFullBounds();\t\n\t}", "public boolean validateFullBounds() {\n\t\tcomparisonBounds = getUnionOfChildrenBounds(comparisonBounds);\n\t\n\t\tif (!cachedChildBounds.equals(comparisonBounds)) {\n\t\t\tsetPaintInvalid(true);\n\t\t}\n\t\treturn super.validateFullBounds();\t\n\t}", "public boolean setSize(Size size, boolean force) {\n// if (!force) {\n// Entity intersectsWith = location.getWorld().intersects(this, Util.getRectangle(getLocation(), size));\n//\n// if (intersectsWith != null) {\n// boolean left = intersectsWith.getLocation().getX() + intersectsWith.getSize().getWidth() <= getLocation().getX();\n// boolean right = intersectsWith.getLocation().getX() <= getLocation().getX() + size.getWidth();\n// boolean top = intersectsWith.getLocation().getY() <= getLocation().getY() + size.getHeight() && intersectsWith.getLocation().getY() > getLocation().getY();\n//\n//// if (top && !left && !right)\n//// return false;\n//\n// Location moveTo = null;\n//\n// if (left)\n// moveTo = new Location(getWorld(), intersectsWith.getLocation().getX() + intersectsWith.getSize().getWidth() + size.getWidth(), getLocation().getY());\n// if (right)\n// moveTo = new Location(getWorld(), intersectsWith.getLocation().getX() - size.getWidth() - 1, getLocation().getY());\n// if (top) {\n// this.size.setHeight(intersectsWith.getLocation().getY() - this.location.getY());\n// System.out.println(this.size.getHeight());\n//// return false;\n// }\n//\n// if (moveTo != null) {\n// Entity intersects = location.getWorld().intersects(this, Util.getRectangle(moveTo, size));\n//\n// if (intersects == null && this.location.asVector().distance(moveTo.asVector()) < 15)\n// this.location = moveTo;\n// else return false;\n// }\n// }\n// }\n\n if (interactingWithX != null || interactingWithY != null) {\n boolean left = interactingWithX != null && interactingWithX.getLocation().getX() + interactingWithX.size.width <= getLocation().getX();\n boolean right = interactingWithX != null && interactingWithX.getLocation().getX() <= getLocation().getX() + size.width;\n boolean top = interactingWithY != null && (interactingWithY.getLocation().getY() <= getLocation().getY() + size.height && interactingWithY.getLocation().getY() > getLocation().getY());\n\n// if (top && !left && !right)\n// return false;\n\n Location moveTo = null;\n\n if (left)\n moveTo = new Location(getWorld(), interactingWithX.getLocation().getX() + interactingWithX.size.width + size.width, getLocation().getY());\n if (right)\n moveTo = new Location(getWorld(), interactingWithX.getLocation().getX() - size.width - 1, getLocation().getY());\n if (top) {\n this.size.height = interactingWithY.getLocation().getY() - this.location.getY();\n System.out.println(this.size.height);\n// return false;\n }\n\n if (moveTo != null) {\n Entity intersects = location.getWorld().intersects(this, Util.getRectangle(moveTo, size));\n\n if (intersects == null && this.location.asVector().distance(moveTo.asVector()) < 15)\n this.location = moveTo;\n else return false;\n }\n }\n\n this.size = size;\n return true;\n }", "boolean hasHasXCoordinate();", "@Override\n\tpublic boolean canResizeShape(IResizeShapeContext context) {\n\t\treturn false;\n\t}", "private void checkRep() {\n assert (width <= Board.SIDELENGTH);\n assert (height <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.x() >= 0 && this.boundingBoxPosition.x() <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.y() >= 0 && this.boundingBoxPosition.y() <= Board.SIDELENGTH);\n }", "public boolean hasChanges() {\n return Math.abs(this.x) > 1.0E-5f || Math.abs(this.y) > 1.0E-5f || Math.abs(this.scale - this.minimumScale) > 1.0E-5f || Math.abs(this.rotation) > 1.0E-5f || Math.abs(this.orientation) > 1.0E-5f;\n }", "Boolean CheckIfInside(float xVal, float yVal) {\r\n double distance = Math.sqrt((this.x-xVal)*(this.x-xVal) + (this.y-yVal)*(this.y-yVal));\r\n return (distance <= this.radius);\r\n }", "public int getYWidth() {\n return yWidth;\n }", "protected boolean isBorder(int x, int y){\n if(super.getLocationX() == x)\n return true;\n //top border\n if (super.getLocationY() == y)\n return true;\n\n //right border\n if((super.getLocationX() + super.getWidth() - 1) == x)\n return true;\n\n //bottom border\n if ((super.getLocationY() + super.getHeight() - 1) == y)\n return true;\n\n //return false if not\n return false;\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 }", "@Override\n public boolean equals(Object object) {\n if (object != null && object instanceof Coord) { // object is Coord type\n Coord coord = (Coord) object; // typecase object to Coord type\n if (this.x == coord.x && this.y == coord.y) { // Equals Coord\n return true;\n }\n }\n return false;\n }", "@Override\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n \n final Point other = (Point) obj;\n if( !(Point.memeReel(this.x, other.getX()) && Point.memeReel(this.y, other.getY())) ) {\n return false;\n }\n\n return true;\n }", "public int getXLength() {\n return xLength;\n }", "double getXLength();", "Double getXLength();", "public boolean equals(Object other){\n\t\t\n\t\t\n\t\tif(other instanceof Wall)\n\t\t{\n\t\t\t\n\t\t\tWall that = (Wall) other;\n\t\t\t\n\t\t\tif(this.startx == that.startx && this.starty == that.starty && this.endx == that.endx && this.endy == that.endy){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if(this.startx == that.endx && this.starty == that.endy && this.endx == that.startx && this.endy == that.starty){\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\t\n\t\treturn false;\n\t\t\n\t}", "public boolean isCenteringOverCoords()\n\t{\n\t\treturn centerOverCoords;\n\t}", "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (super.equals(obj)) return true;\r\n\t\tif (!obj.getClass().equals(this.getClass())) return false;\r\n\t\tPoint p = (Point) obj;\r\n\t\tif ((this.x == p.x) && (this.y == p.y)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "protected abstract boolean isShapeSimple();", "public boolean inBounds(Obstacle obj) {\n\t\tboolean horiz = (bounds.x <= obj.getX() && obj.getX() <= bounds.x+bounds.width);\n\t\tboolean vert = (bounds.y <= obj.getY() && obj.getY() <= bounds.y+bounds.height);\n\t\treturn horiz && vert;\n\t}", "public boolean outOfRange(){\r\n\t\t\treturn (shape.x <=0 ? true : false);\r\n\t\t}", "public boolean detectBound(){\n if(posX < 10){\n posX = 10;\n velX = 0;\n accX = 0;\n return true;\n }\n else if(posX > width - 10){\n posX = width - 10;\n velX = 0;\n accX = 0;\n return true;\n }\n if(posY < 10){\n posY = 10;\n velY = 0;\n accY = 0;\n return true;\n }\n else if(posY > height - 10){\n posY = height - 10;\n velY = 0;\n accY = 0;\n return true;\n }\n return false;\n }", "@Override\n public boolean containsPoint(Point x) {\n return x.getX() >= center.getX() - sideLength/2 && x.getX() <= center.getX() + sideLength/2\n && x.getY() >= center.getY() -sideLength/2 && x.getY() <= center.getY() +sideLength/2;\n }", "protected boolean isShapeFilled(Plot plot, int series, int item, double x, double y) {\n return false;\n }", "public boolean isShouldFillShape() {\n return this.shouldFillShape;\n }", "public boolean inBounds(Actor a)\n {\n boolean inX = Math.abs(a.getXPos()) < levelWidth/2;\n boolean inY = Math.abs(a.getYPos()) < levelHeight/2;\n return inX && inY;\n }", "private boolean isInBounds(float x, float y) {\n\n if (x <= 0 || x >= this.getWidth() || y <= 0 || y >= this.getHeight()) {\n\n return false;\n }\n return new RectF(0, 0, this.getWidth(), this.getHeight())\n .contains(x, y);\n }", "public boolean isInGUIObject(int x, int y) {\n return (x >= this.coordX &&\n x <= this.coordX + this.width &&\n y >= this.coordY &&\n y <= this.coordY + this.height);\n }", "@java.lang.Override\n public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "public float getSizeX(){return sx;}", "public boolean sameAsGold() {\n\t\tif (this.level == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tArrayList<Gold> goldObjects = this.level.getGoldObjects();\n\n\t\tfor (int i = 0; i < goldObjects.size(); i++) {\n\t\t\tif (this.tilePositionX == goldObjects.get(i).getPositionX()\n\t\t\t\t\t&& this.tilePositionY == goldObjects.get(i).getPositionY()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isFillWidth() { return _scroller.isFillWidth(); }", "private boolean isNxNShape() {\n return this.matrix.size() == this.n &&\n this.matrix.stream()\n .allMatch(row -> row.size() == this.n);\n }", "public boolean contains(double x, double y){\t\t\n\t\t\n\t\treturn x > xCoord - getWidth()/2 &&\n\t\t\t x < xCoord + getWidth()/2 &&\n\t\t\t y > yCoord - getHeight()/2 &&\n\t\t\t y < yCoord + getHeight()/2;\n\t}", "protected static boolean outOfFrame(@NotNull Shape shape) {\n\t\tif (shape.position.x + shape.size.x / 2 < Camera.getPosition().x)\n\t\t\treturn (true);\n\t\tif (shape.position.x - shape.size.x / 2 > Display.getWidth() + Camera.getPosition().x)\n\t\t\treturn (true);\n\t\tif (shape.position.y - shape.size.y / 2 > Display.getHeight() + Camera.getPosition().y)\n\t\t\treturn (true);\n\t\treturn shape.position.y + shape.size.y / 2 < Camera.getPosition().y;\n\t}", "public boolean isSquare() {\n return (getRowDimension() == getColumnDimension());\n }", "public boolean equals(Object obj) {\n/* 432 */ if (obj == this) {\n/* 433 */ return true;\n/* */ }\n/* 435 */ if (!(obj instanceof StatisticalLineAndShapeRenderer)) {\n/* 436 */ return false;\n/* */ }\n/* 438 */ StatisticalLineAndShapeRenderer that = (StatisticalLineAndShapeRenderer)obj;\n/* */ \n/* 440 */ if (!PaintUtilities.equal(this.errorIndicatorPaint, that.errorIndicatorPaint))\n/* */ {\n/* 442 */ return false;\n/* */ }\n/* 444 */ if (!ObjectUtilities.equal(this.errorIndicatorStroke, that.errorIndicatorStroke))\n/* */ {\n/* 446 */ return false;\n/* */ }\n/* 448 */ return super.equals(obj);\n/* */ }", "@Test\r\n\tpublic void testLength() {\r\n\t\tassertEquals(LENGTH, validRectangle.length());\r\n\t}", "boolean isInsideScreen() {\n if (_hitbox.length == 1) {\n float r = _hitbox[0].x;\n PVector c = _getCenter();\n return 0 <= c.x + r && c.x - r < width && 0 <= c.y + r && c.y - r < height;\n }\n \n PVector[] points = this._getPoints();\n for(PVector p : points) {\n if(0 <= p.x && p.x < width && 0 <= p.y && p.y < height) {\n return true;\n }\n }\n return false;\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (this == obj)\r\n\t\t\treturn true;\r\n\t\tif (obj == null)\r\n\t\t\treturn false;\r\n\t\tif (getClass() != obj.getClass())\r\n\t\t\treturn false;\r\n\t\tSprite other = (Sprite) obj;\r\n\t\tif (column != other.column)\r\n\t\t\treturn false;\r\n\t\tif (row != other.row)\r\n\t\t\treturn false;\r\n\t\tif (symbol != other.symbol)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "public int getWidth() {\n return ((int) this.rectangle.getWidth());\n }", "void inBounds(int boardWidth) {\n if (getXCoord() >= boardWidth) {\n setXCoord(boardWidth - getHSpeed());\n } else if (getXCoord() < getHSpeed()) {\n setXCoord(0);\n }\n }", "@SuppressWarnings(\"unchecked\")\n \tpublic static boolean isChunkCoordinates(final Object obj) {\n \t\treturn getChunkCoordinatesClass().isAssignableFrom(obj.getClass());\n \t}", "@Test\r\n\tpublic void testArea() {\r\n\t\tint area = LENGTH * WIDTH;\r\n\t\tassertEquals(area, validRectangle.area());\r\n\t}", "@Override\r\n public final int compareTo(final OutlineShape other) {\r\n final float thisSize = getBounds().getSize();\r\n final float otherSize = other.getBounds().getSize();\r\n if( FloatUtil.isEqual(thisSize, otherSize, FloatUtil.EPSILON) ) {\r\n return 0;\r\n } else if( thisSize < otherSize ){\r\n return -1;\r\n } else {\r\n return 1;\r\n }\r\n }", "public boolean isSizeFixed() {\n return !(this.size.width < 0 && this.size.height < 0);\n }", "public abstract int getYSize();", "@Override\n public boolean inBounds(int x, int y) {\n return x >= 0 && y >= 0 && x < this.bounds.width\n && y < this.bounds.height;\n }", "boolean hasCoordinates();", "boolean hasCoordinates();", "boolean hasCoordinates();", "public boolean isVisible() {\r\n return !((x + width) < ocean.getXmin() || x > ocean.getXmax() || (y + height) < ocean.getYmin()\r\n || y > ocean.getYmax());\r\n }", "@Override\n\tpublic boolean contains(Rectangle2D arg0) {\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object o) {\n //if the other object is null, they're not equal\n if (o == null) { return false; }\n\n //check if it's a coordinate and if so, if it's a matching coordinate\n if (o instanceof Coordinate) {\n Coordinate other = (Coordinate) o;\n return col == other.col && row == other.row;\n }\n\n return false;\n }" ]
[ "0.6764187", "0.62619334", "0.60937107", "0.6055153", "0.6055153", "0.6055153", "0.59705555", "0.5965954", "0.59423107", "0.59244984", "0.58377343", "0.5834507", "0.5813304", "0.58089465", "0.57797414", "0.5778495", "0.5731868", "0.5686089", "0.56860024", "0.5678012", "0.56672776", "0.56421655", "0.5639863", "0.5639646", "0.56189317", "0.5617235", "0.5582105", "0.5579027", "0.5559555", "0.55534947", "0.5549615", "0.55403507", "0.55288833", "0.5521099", "0.54914016", "0.5467071", "0.5459148", "0.54398584", "0.54313123", "0.54264975", "0.5420215", "0.5416833", "0.5413423", "0.5395529", "0.5385563", "0.5381295", "0.5381295", "0.53781396", "0.53773177", "0.5369207", "0.53614265", "0.53578043", "0.535092", "0.5349617", "0.5349327", "0.53464013", "0.5339142", "0.5326551", "0.53265357", "0.53164345", "0.5309181", "0.5303206", "0.5303091", "0.5302739", "0.5299714", "0.52995", "0.52942806", "0.5290125", "0.52891093", "0.5287281", "0.5283395", "0.5282994", "0.52647054", "0.52389795", "0.5238916", "0.5238276", "0.5238176", "0.52373594", "0.523559", "0.5235026", "0.5234467", "0.52140653", "0.5208264", "0.5202616", "0.5201177", "0.5199253", "0.51932085", "0.51854336", "0.5180748", "0.5175371", "0.51736075", "0.51707965", "0.5169818", "0.5163633", "0.5163221", "0.5163221", "0.5163221", "0.5158582", "0.5156877", "0.5152184" ]
0.63129425
1
ThePatelGuy(2019). Check if two rectangles overlap at any point.[Webpage]. Retrieved from
public boolean overLaps(Property prop) { if (this.getXRight() <= prop.getXLeft() || this.getXLeft() >= prop.getXRight() || this.getYTop() >= prop.getYBottom() || this.getYBottom() <= prop.getYTop()) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static boolean rectanglesOverlap(Rectangle r1, Rectangle r2){\n List<int[]> pointsOfInterest = new ArrayList<int[]>();\n for (int[] i : r1.getPoints())\n for (int[] j : r2.getPoints())\n if (i[0] >= j[0] && i[1] >= j[1])\n pointsOfInterest.add(i); \n\n if (!pointsOfInterest.isEmpty())\n for (int[] i : pointsOfInterest)\n for (int[] j : r2.getPoints())\n if (i[0] <= j[0] && i[1] <= j[1])\n return true;\n\n // Check if any points in rectangle 2 fall in 1\n //List<int[]> pointsOfInterest = new ArrayList<int[]>();\n pointsOfInterest.clear();\n for (int[] i : r2.getPoints())\n for (int[] j : r1.getPoints())\n if (i[0] >= j[0] && i[1] >= j[1])\n pointsOfInterest.add(i); \n\n if (!pointsOfInterest.isEmpty())\n for (int[] i : pointsOfInterest)\n for (int[] j : r1.getPoints())\n if (i[0] <= j[0] && i[1] <= j[1])\n return true;\n \n return false;\n }", "private boolean overlappingEvents(BpmnShape s1, BpmnShape s2) {\n\t\t\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\tdouble firstX = s1.getBounds().getX();\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\t\t\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondX = s2.getBounds().getX();\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth && firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "static boolean doTheseOverlap(RBox b1, RBox b2){\n\t\t\n\t\tif(contains(b1,b2))\n\t\t\treturn true;\n\t\t\n\t\tif(contains(b2,b1))\n\t\t\treturn true;\n\t\t\n\t\tboolean xOverlap=false ;\n\t\tboolean yOverlap=false ;\n\t\t\n\t\tif(b1.xmax==b2.xmin && b2.xmax > b1.xmax)\n\t\t\treturn false;\n\t\t\n\t\tif(b2.xmax==b1.xmin && b1.xmax > b2.xmax)\n\t\t\treturn false;\n\t\t\n\t\tif((b1.xmin<=b2.xmin&&b1.xmax>=b2.xmax)||(b2.xmin<=b1.xmin&&b2.xmax>=b1.xmax))\n\t\t\txOverlap=true;\n\t\t\n\t\tif(!xOverlap)\n\t\tif(b1.xmin >= b2.xmin && b1.xmin <= b2.xmax)\n\t\t\txOverlap=true;\n\t\t\n\t\tif(!xOverlap)\n\t\t if(b1.xmax >= b2.xmin && b1.xmax <= b2.xmax)\n\t\t \txOverlap = true;\n\t\t else{//System.out.println(\"X overlap\");\n\t\t \treturn false;}\n\t\t\n\t\t\n\t\tif((b1.ymin<=b2.ymin&&b1.ymax>=b2.ymax)||(b2.ymin<=b1.ymin&&b2.ymax>=b1.ymax))\n\t\t yOverlap=true;\n\t\t\n\t\tif(!yOverlap)\n\t\tif(b1.ymin>=b2.ymin && b1.ymin<=b2.ymax)\n\t\t\tyOverlap=true;\n\t\t\n\t\tif(!yOverlap)\n\t\t\tif(b1.ymax>=b2.ymin && b1.ymax<=b2.ymax)\n\t\t\t\tyOverlap=true;\n\t\t\telse{\n\t\t\t\t//System.out.println(\"Y overlap\");\n\t\t\t\treturn false;}\n\t\t\n\t\tif(xOverlap&&yOverlap)\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}", "private static boolean doBoundingBoxesIntersect(Rectangle a, Rectangle b) {\r\n\t return a.getMinX() <= b.getMaxX() \r\n\t && a.getMaxX() >= b.getMinX() \r\n\t && a.getMinY() <= b.getMaxY()\r\n\t && a.getMaxY() >= b.getMinY();\r\n\t}", "boolean rectRect(float r1x, float r1y, float r1w, float r1h, float r2x, float r2y, float r2w, float r2h) {\n\t \n\t // are the sides of one rectangle touching the other?\n\t \n\t if (r1x + r1w >= r2x && // r1 right edge past r2 left\n\t r1x <= r2x + r2w && // r1 left edge past r2 right\n\t r1y + r1h >= r2y && // r1 top edge past r2 bottom\n\t r1y <= r2y + r2h) { // r1 bottom edge past r2 top\n\t return true;\n\t }\n\t return false;\n\t}", "private boolean overlaps(Point2D p0, Point2D p1)\n {\n return Math.abs(p0.getX() - p1.getX()) < 0.001 && Math.abs(p0.getY() - p1.getY()) < 0.001;\n }", "int checkInside(Rectangle r1, Rectangle r2) {\n if (r1.x - r1.w / 2 >= r2.x - r2.w / 2 // left edge\n && r1.x + r1.w / 2 <= r2.x + r2.w / 2 // right edge\n && r1.y + r1.h / 2 <= r2.y + r2.h / 2 // top\n && r1.y - r1.h / 2 >= r2.y - r2.h / 2 // bottom\n ) {\n return 1;\n }\n // check if r2 is inside r1\n if (r2.x - r2.w / 2 >= r1.x - r1.w / 2 // left edge\n && r2.x + r2.w / 2 <= r1.x + r1.w / 2 // right edge\n && r2.y + r2.h / 2 <= r1.y + r1.h / 2 // top\n && r2.y - r2.h / 2 >= r1.y - r1.h / 2 // bottom\n ) {\n return 2;\n }\n\n return 0;\n }", "protected boolean isOverlapping(ArrayList<Rectangle> first, ArrayList<Rectangle> second) {\n\t\tfor (Rectangle f : first) {\n\t\t\tfor (Rectangle s : second) {\n\t\t\t\tif (f.overlaps(s)) return true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private boolean overlappingTaskAndEvent(BpmnShape s1, BpmnShape s2) {\n\t\t\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\tdouble firstX = s1.getBounds().getX() + firstWidth;\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondX = s2.getBounds().getX();\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth && firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse \n\t\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "private boolean overlappingEventAndGateway(BpmnShape s1, BpmnShape s2) {\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\tdouble firstX = s1.getBounds().getX();\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\t\t\n\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondX = s2.getBounds().getX();\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\tdouble apothem = (s2.getBounds().getHeight() * Math.sqrt(2)) / 2;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX - firstWidth < secondX + apothem || firstY - firstHeight < secondY + apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstWidth < secondX + apothem || firstY + firstHeight > secondY - apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\tif ((firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX + firstWidth > secondX - apothem || firstY - firstHeight < secondY + apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstWidth < secondX + apothem || firstY + firstHeight > secondY - apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "private boolean isOverlapped(BpmnShape s1, BpmnShape s2){\n\t\t\n\t\ttry{\n\t\t\t//Two tasks\n\t\t\tif (s1.getBpmnElement() instanceof Task && s2.getBpmnElement() instanceof Task)\n\t\t\t\treturn this.overlappingTasks(s1,s2);\n\t\t\t\n\t\t\t//Two Events\n\t\t\tif (s1.getBpmnElement() instanceof Event && s2.getBpmnElement() instanceof Event) {\n\t\t\t\treturn this.overlappingEvents(s1,s2);\n\t\t\t}\n\t\t\t\n\t\t\t//Two Gateways\n\t\t\tif (s1.getBpmnElement() instanceof Gateway && s2.getBpmnElement() instanceof Gateway)\n\t\t\t\treturn this.overlappingGateways(s1,s2);\n\t\t\t\n\t\t\t//One Task and one Event\n\t\t\tif (s1.getBpmnElement() instanceof Task && s2.getBpmnElement() instanceof Event)\n\t\t\t\treturn this.overlappingTaskAndEvent(s1,s2);\n\t\t\t\n\t\t\tif (s1.getBpmnElement() instanceof Event && s2.getBpmnElement() instanceof Task )\n\t\t\t\treturn this.overlappingTaskAndEvent(s2, s1);\n\t\t\t\n\t\t\t//One Task and one Gateway \n\t\t\tif (s1.getBpmnElement() instanceof Task && s2.getBpmnElement() instanceof Gateway)\n\t\t\t\treturn this.overlappingTaskAndGateway(s1,s2);\n\t\t\t\n\t\t\tif (s1.getBpmnElement() instanceof Gateway && s2.getBpmnElement() instanceof Task )\n\t\t\t\treturn this.overlappingTaskAndGateway(s2, s1);\t\t\n\t\t\t\n\t\t\t//One Event and one Gateway\n\t\t\tif (s1.getBpmnElement() instanceof Event && s2.getBpmnElement() instanceof Gateway)\n\t\t\t\treturn this.overlappingEventAndGateway(s1,s2);\n\t\t\t\n\t\t\tif (s1.getBpmnElement() instanceof Gateway && s2.getBpmnElement() instanceof Event)\n\t\t\t\treturn this.overlappingEventAndGateway(s2, s1);\n\t\t}catch(Exception e) {\n\t\t\treturn false;\n\t\t}\n\t\t\t\t\n\t\treturn false;\n\t}", "private boolean overlappingGateways(BpmnShape s1, BpmnShape s2) {\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\tdouble firstX = s1.getBounds().getX() + firstWidth;\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\t\tdouble firstApothem = (s1.getBounds().getHeight() * Math.sqrt(2)) / 2;\n\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondX = s2.getBounds().getX();\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\tdouble secondApothem = (s2.getBounds().getHeight() * Math.sqrt(2)) / 2;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY - firstApothem < secondY + secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY + firstApothem > secondY - secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\tif ((firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX + firstApothem > secondX - secondApothem || firstY - firstApothem < secondY + secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY + firstApothem > secondY - secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "private boolean collision1() {\n return game.racket1.getBounds1().intersects(getBounds()); // returns true if the two rectangles intersect\r\n }", "public boolean whithinRectangle(Point point1, Point point2) {\n\t\treturn false;\n\t}", "Rectangle getCollisionRectangle();", "Rectangle getCollisionRectangle();", "public static void main(String[] args) {\n OverlappingRectangle overlappingRectangle = new OverlappingRectangle();\n int field = overlappingRectangle.overlap(2,1,5,5,3,2,5,7);\n System.out.println(field);\n\n int field1 = overlappingRectangle.overlap(-1, -1, 10, 10, -1, 0, 3, 9);\n System.out.println(field1);\n\n int field2 = overlappingRectangle.overlap(-12, -4, -1, -2, 0, 0, 100, 3000);\n System.out.println(field2);\n }", "public int area(String[] rectangles){\n TreeMap<Integer, Events> events = new TreeMap<>();\n\n int tag = 0;\n for(String r : rectangles){\n tag++;\n Scanner sc = new Scanner(r);\n int x1 = sc.nextInt();\n int y1 = sc.nextInt();\n int x2 = sc.nextInt();\n int y2 = sc.nextInt();\n if(!events.containsKey(x1))\n events.put(x1, new Events());\n if(!events.containsKey(x2))\n events.put(x1, new Events());\n\n events.get(x1).in.add(new YRange(y1, y2, tag));\n events.get(x2).out.add(new YRange(y1, y2, tag));\n }\n\n // Active set of tags for each unique y\n // we need to identify where each each rectangle starts & end\n // positve tag - start \n // negative tag - end\n // We need all of them sorted\n TreeSet<Pair> active = new TreeSet<Pair>(new Comparator<Pair>(){\n @Override\n public int compare(Pair a, Pair b){\n if(a.y == b.y)\n return Integer.compare(a.tag, b.tag);\n return Integer.compare(a.y, b.y);\n }\n });\n\n int area = 0;\n for(Map.Entry<Integer, Events> entry : events.entrySet()){\n int x = entry.getKey();\n Integer next_x = events.higherKey(x);\n // processed last unique x\n if(next_x == null) break;\n Events e = entry.getValue();\n\n // Construct the current active set\n for(YRange y : e.in){\n active.add(new Pair(y.y1, y.tag));\n active.add(new Pair(y.y2, -y.tag));\n }\n\n for(YRange y : e.out){\n active.remove(new Pair(y.y1, y.tag));\n active.remove(new Pair(y.y2, -y.tag));\n }\n // Compute union of y segments\n Integer lasty = null;\n int ySum = 0;\n int cnt = 0;\n for(Pair p : active){\n int y = p.y;\n if(cnt == 0){\n lasty = y;\n }\n // closing\n if(p.tag < 0) cnt--;\n else cnt++;\n\n if(cnt == 0){\n ySum += y - lasty;\n // reset lasty\n lasty = null;\n }\n }\n area += (next_x - x)*ySum;\n }\n return area;\n }", "private void checkOverlaps() {\r\n final ArrayList<Vertex> overlaps = new ArrayList<Vertex>(3);\r\n final int count = getOutlineNumber();\r\n boolean firstpass = true;\r\n do {\r\n for (int cc = 0; cc < count; cc++) {\r\n final Outline outline = getOutline(cc);\r\n int vertexCount = outline.getVertexCount();\r\n for(int i=0; i < outline.getVertexCount(); i++) {\r\n final Vertex currentVertex = outline.getVertex(i);\r\n if ( !currentVertex.isOnCurve()) {\r\n final Vertex nextV = outline.getVertex((i+1)%vertexCount);\r\n final Vertex prevV = outline.getVertex((i+vertexCount-1)%vertexCount);\r\n final Vertex overlap;\r\n\r\n // check for overlap even if already set for subdivision\r\n // ensuring both triangular overlaps get divided\r\n // for pref. only check in first pass\r\n // second pass to clear the overlaps array(reduces precision errors)\r\n if( firstpass ) {\r\n overlap = checkTriOverlaps0(prevV, currentVertex, nextV);\r\n } else {\r\n overlap = null;\r\n }\r\n if( overlaps.contains(currentVertex) || overlap != null ) {\r\n overlaps.remove(currentVertex);\r\n\r\n subdivideTriangle(outline, prevV, currentVertex, nextV, i);\r\n i+=3;\r\n vertexCount+=2;\r\n addedVerticeCount+=2;\r\n\r\n if(overlap != null && !overlap.isOnCurve()) {\r\n if(!overlaps.contains(overlap)) {\r\n overlaps.add(overlap);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n firstpass = false;\r\n } while( !overlaps.isEmpty() );\r\n }", "static int findOverlappingArea(int a[][], int b[][]){\n int startX,startY,endX,endY;\n if(a[0][0]>b[0][0]){\n startX = a[0][0];\n }else{\n startX = b[0][0];\n }\n \n if(a[0][1] > b[0][1]){\n startY = a[0][1];\n }else{\n startY = b[0][1];\n }\n \n /*Find minimum X and Y values from the top coordinates */\n \n if(a[1][0] < b[1][0]){\n endX = a[1][0];\n }else{\n endX = b[1][0];\n }\n \n if(a[1][1] < b[1][1]){\n endY = a[1][1];\n }else{\n endY = b[1][1];\n }\n \n return (endX-startX)*(endY-startY);\n }", "boolean hasRect2Value();", "public int area(String[] rectangles){\n TreeMap<Integer, Events> events = new TreeMap<>();\n\n int tag = 0;\n for(String r : rectangles){\n tag++;\n Scanner sc = new Scanner(r);\n int x1 = sc.nextInt();\n int y1 = sc.nextInt();\n int x2 = sc.nextInt();\n int y2 = sc.nextInt();\n if(!events.containsKey(x1))\n events.put(x1, new Events());\n if(!events.containsKey(x2))\n events.put(x2, new Events());\n\n events.get(x1).in.add(new YRange(y1, y2, tag));\n events.get(x2).out.add(new YRange(y1, y2, tag));\n }\n\n // Active set of tags for each unique y\n // we need to identify where each each rectangle starts & end\n // positve tag - start \n // negative tag - end\n // We need all of them sorted\n TreeMap<Integer, TreeSet<Integer>> active = new TreeMap<>();\n int area = 0;\n for(Map.Entry<Integer, Events> entry : events.entrySet()){\n int x = entry.getKey();\n Integer next_x = events.higherKey(x);\n // processed last unique x\n if(next_x == null) break;\n Events e = entry.getValue();\n\n // Construct the current active set\n for(YRange y : e.in){\n if(!active.containsKey(y.y1)) active.put(y.y1, new TreeSet<>());\n if(!active.containsKey(y.y2)) active.put(y.y2, new TreeSet<>());\n\n active.get(y.y1).add(y.tag);\n active.get(y.y2).add(-y.tag);\n }\n for(YRange y : e.out){\n active.get(y.y1).remove(y.tag);\n active.get(y.y2).remove(-y.tag);\n }\n // Compute union of y segments\n Integer lasty = null;\n int ySum = 0;\n int cnt = 0;\n for(Map.Entry<Integer, TreeSet<Integer>> ytags : active.entrySet()){\n int y = ytags.getKey();\n if(cnt == 0){\n lasty = y;\n }\n for(int ytag : ytags.getValue()){\n // closing\n if(ytag < 0) cnt--;\n else cnt++;\n }\n\n if(cnt == 0){\n ySum += y - lasty;\n // reset lasty\n lasty = null;\n }\n }\n area += (next_x - x)*ySum;\n }\n return area;\n }", "private boolean isOverlapping( int[] t0, int[] t1)\n {\n if ( t0.length == 1)\n {\n return t0[ 0] >= t1[ 0]; \n }\n else\n {\n return t0[ 1] >= t1[ 0]; \n }\n }", "public static boolean doRegionsOverlap(int x1, int y1, int width1, int height1, int x2, int y2,\n\t\t\t\t\t\t\t\t\t\t int width2, int height2, Orientation orientation) \n\t\t\t\t\t\t\tthrows IllegalArgumentException{\n\t\t\n\t\tswitch (orientation) {\n\t\t\n\t\t\tcase RIGHT: \n\t\t\t\treturn x1 + width1 > x2 &&\n\t\t\t\t\t\tx1 + width1 <= x2 + width2 &&\n\t\t\t\t\t\tCollision.doPixelsOverlap(y1, height1, y2, height2);\n\t\t\tcase LEFT:\n\t\t\t\treturn x1 >= x2 &&\n\t\t\t\t\t\tx1 < x2 + width2 &&\n\t\t\t\t\t\tCollision.doPixelsOverlap(y1, height1, y2, height2);\n\t\t\tcase TOP:\n\t\t\t\treturn \ty1 + height1 > y2 && \n\t\t\t\t\t\ty1 + height1 <= y2 + height2 &&\n\t\t\t\t\t\tCollision.doPixelsOverlap(x1, width1, x2, width2);\t\t\t\t\n\t\t\tcase BOTTOM:\n\t\t\t\treturn \ty1 >= y2 &&\n\t\t\t\t\t\ty1 < y2 + height2 &&\n\t\t\t\t\t\tCollision.doPixelsOverlap(x1, width1, x2, width2);\n\t\t\tcase ALL:\n\t\t\t\treturn ! ( // Dus geeft true als elke deelexpressie false geeft\n\t\t\t\t\t\t (x1 + (width1 - 1) < x2) \n\t\t\t\t\t\t|| (x2 + (width2 - 1) < x1)\n\t\t\t\t\t\t|| (y1 + (height1 - 1) < y2) // top\n\t\t\t\t\t\t|| (y2 + (height2 - 1) < y1) //bottom\n\t\t\t\t\t\n\t\t\t\t);\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalArgumentException(\"Given orientation not implemented!\");\n\t\t}\n\t}", "boolean overlaps(MyRectangle2D r) {\r\n\t\t//cordinates of the first corner of the parametar's rectangle\r\n\t\tdouble x1 = r.getX() - (r.getWidth() / 2);\r\n\t\tdouble y1 = r.getY() + (r.getHeight() / 2);\r\n\r\n\t\t//cordinates of the second corner of the parametar's rectangle\r\n\t\tdouble x2 = r.getX() + (r.getWidth() / 2);\r\n\t\tdouble y2 = r.getY() - (r.getHeight() / 2);\r\n\r\n\t\t//cordinates of the third corner of the parametar's rectangle\r\n\t\tdouble x3 = r.getX() - (r.getWidth() / 2);\r\n\t\tdouble y3 = r.getY() - (r.getHeight() / 2);\r\n\r\n\t\t//cordinates of the fourth corner of the parametar's rectangle\r\n\t\tdouble x4 = r.getX() + (r.getWidth() / 2);\r\n\t\tdouble y4 = r.getY() + (r.getHeight() / 2);\r\n\r\n\t\t//checking if calling rectangle has any of the corners inside itself\r\n\t\tboolean corner1Overlaps = this.contains(x1, y1);\r\n\t\tboolean corner2Overlaps = this.contains(x2, y2);\r\n\t\tboolean corner3Overlaps = this.contains(x3, y3);\r\n\t\tboolean corner4Overlaps = this.contains(x4, y4);\r\n\r\n\t\t//if it does contain any of the corners they overlap\r\n\t\treturn corner1Overlaps || corner2Overlaps || corner3Overlaps\r\n\t\t\t\t|| corner4Overlaps ? true : false;\r\n\t}", "boolean hasRect();", "@Override\n\tpublic boolean intersectsRectangle(final int ax1, final int ax2, final int ay1, final int ay2)\n\t{\n\t\tif (isInsideZone(ax1, ay1, (zoneZ2 - 1)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (isInsideZone(ax1, ay2, (zoneZ2 - 1)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (isInsideZone(ax2, ay1, (zoneZ2 - 1)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (isInsideZone(ax2, ay2, (zoneZ2 - 1)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// Check if any point from this rectangle is inside the other one\n\t\tif (zoneX1 > ax1 && zoneX1 < ax2 && zoneY1 > ay1 && zoneY1 < ay2)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (zoneX1 > ax1 && zoneX1 < ax2 && zoneY2 > ay1 && zoneY2 < ay2)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (zoneX2 > ax1 && zoneX2 < ax2 && zoneY1 > ay1 && zoneY1 < ay2)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (zoneX2 > ax1 && zoneX2 < ax2 && zoneY2 > ay1 && zoneY2 < ay2)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// Horizontal lines may intersect vertical lines\n\t\tif (lineIntersectsLine(zoneX1, zoneY1, zoneX2, zoneY1, ax1, ay1, ax1, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX1, zoneY1, zoneX2, zoneY1, ax2, ay1, ax2, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX1, zoneY2, zoneX2, zoneY2, ax1, ay1, ax1, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX1, zoneY2, zoneX2, zoneY2, ax2, ay1, ax2, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// Vertical lines may intersect horizontal lines\n\t\tif (lineIntersectsLine(zoneX1, zoneY1, zoneX1, zoneY2, ax1, ay1, ax2, ay1))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX1, zoneY1, zoneX1, zoneY2, ax1, ay2, ax2, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX2, zoneY1, zoneX2, zoneY2, ax1, ay1, ax2, ay1))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX2, zoneY1, zoneX2, zoneY2, ax1, ay2, ax2, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public void checkOverlap() {\n\n // Logic that validates overlap.\n if(redCircle.getBoundsInParent().intersects(blueCircle.getBoundsInParent())) {\n title.setText(\"Two circles intersect? Yes\");\n }\n else {\n title.setText(\"Two circles intersect? No\");\n }\n\n // Update fields in red table.\n redCircleCenterXValue.setText(String.valueOf(redCircle.getCenterX()));\n redCircleCenterYValue.setText(String.valueOf(redCircle.getCenterY()));\n redCircleRadiusValue.setText(String.valueOf(redCircle.getRadius()));\n\n // Update fields in blue table.\n blueCircleCenterXValue.setText(String.valueOf(blueCircle.getCenterX()));\n blueCircleCenterYValue.setText(String.valueOf(blueCircle.getCenterY()));\n blueCircleRadiusValue.setText(String.valueOf(blueCircle.getRadius()));\n }", "public boolean intersects(GraphicalFigure fig) {\n\n\t\t// Get the distance between the 2 figures on the x axis\n\t\tint xDist = pos.xCoord() - fig.getOffset().xCoord();\n\n\t\t// Get the distance on the y axis\n\t\tint yDist = pos.yCoord() - fig.getOffset().xCoord();\n\n\t\t// All if's allow for if the x's are the same\n\t\t// Check to see if the figure is on the right and overlaps\n\t\tif (xDist >= 0 && xDist < fig.getWidth()) {\n\n\t\t\t// For loop variables\n\t\t\tint initial = 0;\n\t\t\tint compare = 0;\n\t\t\tBoolean loopCheck = false;\n\n\t\t\t// All if's allow for if the y's are the same\n\t\t\t// Check if it's above the object and within range\n\t\t\tif (yDist >= 0 && xDist < fig.getHeight()) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = pos.yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = pos.yCoord() + fig.getHeight() - yDist;\n\t\t\t}\n\n\t\t\t// Check if it's below the object and within range\n\t\t\telse if (yDist <= 0 && xDist < height) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = fig.getOffset().yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = fig.getOffset().yCoord() + fig.getHeight() + yDist;\n\t\t\t}\n\n\t\t\t// If the loop check is true, do a for loop\n\t\t\tif (loopCheck) {\n\n\t\t\t\t// Create a location variable\n\t\t\t\tLocation loc;\n\t\t\t\t// Loop through the intersecting rectangle\n\t\t\t\t// Loop Horizontally\n\t\t\t\tfor (int i = pos.xCoord(); i < pos.xCoord() + fig.getWidth() - xDist; i++) {\n\t\t\t\t\t// Loop through vertically\n\t\t\t\t\tfor (int j = initial; j < compare; j++) {\n\t\t\t\t\t\t// Create a location for the new pixel\n\t\t\t\t\t\tloc = new Location(i, j);\n\n\t\t\t\t\t\t// Check for overlap, return true\n\t\t\t\t\t\tif (findPixel(loc) && fig.findPixel(loc)) {\n\t\t\t\t\t\t\treturn true;\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\n\t\t// All if's allow for if the x's are the same\n\t\t// Check if the figure is on the left and overlaps\n\t\telse if (xDist >= 0 && xDist < width) {\n\t\t\t// For loop variables\n\t\t\tint initial = 0;\n\t\t\tint compare = 0;\n\t\t\tBoolean loopCheck = false;\n\n\t\t\t// All if's allow for if the y's are the same\n\t\t\t// Check if it's above the object and within range\n\t\t\tif (yDist >= 0 && xDist < fig.getHeight()) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = pos.yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = pos.yCoord() + fig.getHeight() - yDist;\n\t\t\t}\n\n\t\t\t// Check if it's below the object and within range\n\t\t\telse if (yDist <= 0 && xDist < height) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = fig.getOffset().yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = fig.getOffset().yCoord() + fig.getHeight() + yDist;\n\t\t\t}\n\n\t\t\t// If the loop check is true, do a for loop\n\t\t\tif (loopCheck) {\n\n\t\t\t\t// Create a location variable\n\t\t\t\tLocation loc;\n\t\t\t\t// Loop through the intersecting rectangle\n\t\t\t\t// Loop Horizontally\n\t\t\t\tfor (int i = fig.getOffset().xCoord(); i < fig.getOffset().xCoord() + width + xDist; i++) {\n\t\t\t\t\t// Loop through vertically\n\t\t\t\t\tfor (int j = initial; j < compare; j++) {\n\t\t\t\t\t\t// Create a location for the new pixel\n\t\t\t\t\t\tloc = new Location(i, j);\n\n\t\t\t\t\t\t// Check for overlap, return true\n\t\t\t\t\t\tif (findPixel(loc) && fig.findPixel(loc)) {\n\t\t\t\t\t\t\treturn true;\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\n\t\t// If no intersection found, return false\n\t\treturn false;\n\t}", "public static boolean rectIntersect(Rectangle a, Rectangle b){\n\t\treturn !(b.x > (a.x + a.width) \n\t\t\t\t|| (b.x + b.width) < a.x\n\t\t\t\t|| b.y > (a.y + a.height)\n\t\t\t\t|| (b.y + b.height) < a.y);\n\t}", "private boolean overlappingTasks(BpmnShape s1, BpmnShape s2) {\n\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\t//The coordinates refer to the upper-left corner of the task, adding Width and Height \n\t\t//cause the coordinates to reflect the position of the center of the shape\n\t\tdouble firstX = s1.getBounds().getX() + firstWidth;\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\t\t\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondX = s2.getBounds().getX() + secondWidth;\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\t//Second shape is on the upper-left\n\t\t\tif (firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\t//Second shape is on the lower-left\n\t\t\tif (firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\t//Second shape is on the upper-right\n\t\t\tif (firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\t//Second shape is on the lower-shape\n\t\t\tif (firstX + firstWidth > secondX - secondWidth && firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t//completely overlapped shapes\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\t//second shape is on top of the first one\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\t//second shape is on the right\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\t//second shape is on bottom of the first one\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\t//second shape is on the left\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "private boolean collision2() {\n return game.racket2.getBounds2().intersects(getBounds()); // returns true if the two rectangles intersect\r\n }", "static boolean contains(RBox b1, RBox b2){\n\t\t\n\t\t\t\n\t\t\tboolean xContainment = false;\n\t\t\tboolean yContainment = false;\n\t\t\t\n\t\t\tif(b1.xmin<=b2.xmin && b1.xmax>=b2.xmax)\n\t\t\t\txContainment = true;\n\t\t\tif(b1.ymin<=b2.ymin && b1.ymax>=b2.ymax)\n\t\t\t\tyContainment = true;\n\t\t\t\n\t\t\tif(xContainment&&yContainment)\n\t\t\t\treturn true;\n\t\t\n\t\t\n\t return false;\n\t\t\t\n\t\t\t\n\t}", "@Test\n public void findOverlap() {\n\n int[] A = new int[] {1,3,5,7,10};\n int[] B = new int[] {-2,2,5,6,7,11};\n\n List<Integer> overlap = new ArrayList<Integer>();\n overlap.add(5);\n overlap.add(7);\n\n Assert.assertEquals(overlap,Computation.findOverlap(A,B));\n\n }", "@Test(timeout = 4000)\n public void test027() throws Throwable {\n Range range0 = Range.of((-81L));\n Range range1 = Range.of((-1L));\n boolean boolean0 = range0.intersects(range1);\n assertFalse(boolean0);\n assertFalse(range1.isEmpty());\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals((-81L), long0);\n }", "public static int area_intersection(int blx1, int bly1, int trx1,int try1, int blx2, int bly2,int trx2,int try2){\r\n\t\tint base = 0, height = 0, area = 0;\r\n\t\r\n\t\tif (blx2>=blx1 && blx2<=trx1){\r\n\t\t\tif (bly2>=bly1 && bly2<=try1){\r\n\tif (trx2<=trx1 && trx2>=blx1){\r\n\tbase = trx2 - blx2;\r\n\theight = try2 - bly2;\r\n\tarea = base * height;\r\n\t}\r\n\telse{\r\n\tbase = trx1 - blx2;\r\n\theight = try1 - bly2;\r\n\tarea = base * height;\r\n\t}\r\n\t\t}\r\n\t\t}\r\n\t//end\r\n\r\n\t\telse if( bly1>=bly2 && bly1<=try2){\r\n\tbase = trx1 - blx2;\r\n\theight = try1 - bly1;\r\n\tarea = base * height;\r\n\t\t}\r\n\t//end\r\n\r\n\t\telse if (bly2>=bly1 && bly2<=try1){\r\n\tif( blx1>=blx2 && blx1<=trx2){\r\n\tbase = trx1 - blx1;\r\n\theight = try2 - bly2;\r\n\tarea = base * height;\r\n\t}\r\n\t\t}\r\n\t//end\r\n\r\n\t\telse if (blx1>=blx2 && blx1<=trx2){\r\n\t if( bly1>=bly2 && bly1<=try2){\r\n\tbase = trx1 - blx1;\r\n\theight = try1 - bly1;\r\n\tarea = base * height;\r\n\t }\r\n\tif( trx2>=blx1 && trx2<=trx1){\r\n\tbase = trx2 - blx1;\r\n\theight = try2 - bly1;\r\n\tarea = base * height;\r\n\t}\r\n\t\t}\r\n\t//end\r\n\r\n\t\telse if (bly2>=bly1 && bly2<=try1){\r\n\tbase = trx1 - blx2;\r\n\theight = try1 - bly1;\r\n\tarea = base * height;\r\n\t\t}\r\n\t//end\r\n\r\n\t\t//else if(trx1 - blx2)==0 || (try1 - bly1)==0 || !(trx1>blx2 and trx2>trx1 && bly2<=bly1){\r\n\t//area = 0\r\n\t\t//}\r\n\t//end\r\n\t \r\n\t//if( area && area<=2147483647 )\r\n\t//area\r\n\t//else\r\n\t//-1\r\n\t//end\r\n\r\n\t\treturn area;\r\n\t}", "@Test\n public void testOverboundsInside() {\n Coordinate a, b, c, d;\n a = new Coordinate2D(2, 2, 0);\n b = new Coordinate2D(3, 3, 0);\n c = new Coordinate2D(2, 0, 0);\n d = new Coordinate2D(4, 2, 0);\n\n int actual, expected;\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(a);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(b);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(c);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(d);\n assertEquals(expected, actual);\n }", "public abstract boolean overlap(Catcher catcher, FallingObject object);", "private boolean overlappingTaskAndGateway(BpmnShape s1, BpmnShape s2) {\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\tdouble firstX = s1.getBounds().getX() + firstWidth;\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\t\t\n\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondX = s2.getBounds().getX();\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\tdouble apothem = (s2.getBounds().getHeight() * Math.sqrt(2)) / 2;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX - firstWidth < secondX + apothem || firstY - firstHeight < secondY + apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstWidth < secondX + apothem || firstY + firstHeight > secondY - apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\tif ((firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX + firstWidth > secondX - apothem || firstY - firstHeight < secondY + apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstWidth < secondX + apothem || firstY + firstHeight > secondY - apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "boolean isPartiallyOverlapped(int[] x, int[] y) {\n return y[0] <= x[1]; //정렬이 이미 되어 있어서 simplify 할 수 있음\n }", "@Override\n\tpublic boolean intersects(Rectangle2D arg0) {\n\t\treturn false;\n\t}", "@Test\n void findIntersections() {\n Cuboid cuboid1 = new Cuboid(4,4,4);\n Ray ray1 = new Ray(new Point3D(-3,0,0), new Vector3D(1,0,0));\n ArrayList<GeoPoint> actual1 = cuboid1.findIntersections(ray1);\n ArrayList<GeoPoint> expected1 = new ArrayList<>();\n expected1.add(new GeoPoint(cuboid1, new Point3D(2,0,0)));\n expected1.add(new GeoPoint(cuboid1, new Point3D(-2,0,0)));\n\n assertTrue(Util.intersectionsEqual(expected1, actual1));\n\n //Aligned with Y axis but have different dimensions\n Cuboid cuboid2 = new Cuboid(2,4,3);\n Ray ray2 = new Ray(new Point3D(0,100,0), new Vector3D(0,-1,0));\n ArrayList<GeoPoint> actual2 = cuboid2.findIntersections(ray2);\n ArrayList<GeoPoint> expected2 = new ArrayList<>();\n expected2.add(new GeoPoint(cuboid1, new Point3D(0,2,0)));\n assertEquals(expected2.get(0).point, actual2.get(0).point);\n\n Cuboid cuboid3 = new Cuboid(2,4,3, new Ray(new Point3D(1,1,1), new Vector3D(0,0,1)));\n Ray ray3 = new Ray(new Point3D(0,100,0), new Vector3D(0,-1,0));\n ArrayList<GeoPoint> actual3 = cuboid3.findIntersections(ray3);\n ArrayList<GeoPoint> expected3 = new ArrayList<>();\n expected3.add(new GeoPoint(cuboid1, new Point3D(0,3,0)));\n assertEquals(expected3.get(0).point, actual3.get(0).point);\n\n Ray ray = new Ray(new Point3D(0,0,-200), Vector3D.zAxis);\n ArrayList<GeoPoint> interesections = cuboid1.findIntersections(ray);\n }", "@Test\n public void isOverlap_interval1BeforeInterval2_falseReturned() throws Exception{\n Interval interval1 = new Interval(-1,5);\n Interval interval2 = new Interval(8,12);\n\n boolean result = SUT.isOverlap(interval1,interval2);\n Assert.assertThat(result,is(false));\n }", "private boolean colisionPalas() {\r\n\t\treturn game.racketIzq.getBounds().intersects(getBounds())\r\n\t\t\t\t|| game.racketDer.getBounds().intersects(getBounds());\r\n\t}", "private boolean overlaps(ThingTimeTriple a, ThingTimeTriple b)\r\n/* 227: */ {\r\n/* 228:189 */ return (a.from < b.to) && (a.to > b.from);\r\n/* 229: */ }", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter r1's center x-, y-coordinates, width, and height: \");\r\n\t\tdouble x1 = input.nextDouble();\r\n\t\tdouble y1 = input.nextDouble();\r\n\t\tdouble w1 = input.nextDouble();\r\n\t\tdouble h1 = input.nextDouble();\r\n\t\t\r\n\t\tSystem.out.print(\"Enter r2's center x-, y-coordinates, width, and height: \");\r\n\t\tdouble x2 = input.nextDouble();\r\n\t\tdouble y2 = input.nextDouble();\r\n\t\tdouble w2 = input.nextDouble();\r\n\t\tdouble h2 = input.nextDouble();\r\n\t\t\r\n\t\tdouble inMinX = x1-(w1-w2)/2;\r\n\t\tdouble inMaxX = x1+(w1-w2)/2;\r\n\t\tdouble inMinY = y1-(h1-h2)/2;\r\n\t\tdouble inMaxY = y1+(h1-h2)/2;\r\n\t\tdouble outMinX = x1-(w1+w2)/2;\r\n\t\tdouble outMaxX = x1+(w1+w2)/2;\r\n\t\tdouble outMinY = y1-(h1+h2)/2;\r\n\t\tdouble outMaxY = y1+(h1+h2)/2;\r\n\t\tif(x2>=inMinX&&x2<=inMaxX&&y2>=inMinY&&y2<=inMaxY)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"r2 is inside r1\");\r\n\t\t}\r\n\t\telse if(x2>=outMaxX||x2<=outMinX||y2>=outMaxY||y2<=outMinY)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"r2 does not overlap r1\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"r2 overlaps r1\");\r\n\t\t}\r\n\t}", "public boolean isInRect2(Point p) {\n\t\tLine AB = new Line(A1, B1);\n\t\tLine CD = new Line(C1, AB.getU());\n\t\tLine AD = new Line(A1, D1);\n\t\tLine BC = new Line(B1, AD.getU());\n\n\t\t// if(Line.isBetween2Lines2(AB, CD, p))\n\t\t// System.out.println(1);\n\t\t// if(Line.isBetween2Lines2(AD, BC, p))\n\t\t// System.out.println(2);\n\n\t\tif (Line.isBetween2Lines2(AB, CD, p) && Line.isBetween2Lines2(AD, BC, p)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean overlaps(Triangle2D t) {\n\t\treturn true;\n\t}", "private boolean overlapsWith(IRegion range1, IRegion range2) {\n \t\treturn overlapsWith(range1.getOffset(), range1.getLength(), range2.getOffset(), range2.getLength());\n \t}", "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/* */ }", "boolean intersects( Geometry gmo );", "public abstract boolean hit(Rectangle2D r);", "private boolean intersects(int from1, int to1, int from2, int to2) {\n\t\treturn from1 <= from2 && to1 >= from2 // (.[..)..] or (.[...]..)\n\t\t\t\t|| from1 >= from2 && from1 <= to2; // [.(..]..) or [..(..)..\n\t}", "@Test\n public void isOverlap_interval1ContainWithinInterval2_trueReturned() throws Exception{\n Interval interval1 = new Interval(-1,5);\n Interval interval2 = new Interval(0,3);\n\n boolean result = SUT.isOverlap(interval1,interval2);\n Assert.assertThat(result,is(true));\n }", "private boolean isOverRect(Point p) {\n Rectangle r = (Rectangle)component.rect.clone();\n r.grow(PROX_DIST, PROX_DIST);\n return r.contains(p);\n }", "@Test\n public void isOverlap_interval1AfterInterval2_falseReturned() throws Exception{\n Interval interval1 = new Interval(-1,5);\n Interval interval2 = new Interval(-10,-3);\n\n boolean result = SUT.isOverlap(interval1,interval2);\n Assert.assertThat(result,is(false));\n }", "public abstract Cell getOverlappedCell(Rectangle rect);", "@Test(timeout = 4000)\n public void test043() throws Throwable {\n Range range0 = Range.ofLength(0L);\n Range range1 = Range.of(0L);\n Range range2 = range1.intersection(range0);\n boolean boolean0 = range0.equals(range2);\n assertFalse(range1.isEmpty());\n assertTrue(range2.isEmpty());\n assertFalse(range2.equals((Object)range1));\n assertTrue(boolean0);\n }", "static boolean intersectsRect(R2Vector a, R2Vector b, R2Rect rect) {\n // First check whether the bound of AB intersects \"rect\".\n R2Rect bound = R2Rect.fromPointPair(a, b);\n if (!rect.intersects(bound)) {\n return false;\n }\n\n // Otherwise AB intersects \"rect\" if and only if all four vertices of \"rect\"\n // do not lie on the same side of the extended line AB. We test this by\n // finding the two vertices of \"rect\" with minimum and maximum projections\n // onto the normal of AB, and computing their dot products with the edge\n // normal.\n R2Vector n = R2Vector.sub(b, a).ortho();\n int i = (n.x >= 0) ? 1 : 0;\n int j = (n.y >= 0) ? 1 : 0;\n double max = n.dotProd(R2Vector.sub(rect.getVertex(i, j), a));\n double min = n.dotProd(R2Vector.sub(rect.getVertex(1 - i, 1 - j), a));\n return (max >= 0) && (min <= 0);\n }", "@Test\n public void isOverlap_interval1ContainsInterval2OnEnd_trueReturned() throws Exception{\n Interval interval1 = new Interval(-1,5);\n Interval interval2 = new Interval(0,3);\n\n boolean result = SUT.isOverlap(interval1,interval2);\n Assert.assertThat(result,is(true));\n }", "Multimap<String, String> intersects(RectangleLatLng bounds);", "@Override\n public Rectangle intersects( Rectangle boundingBox )\n {\n return null;\n }", "Rectangle getCollisionBox();", "List<PathRectangle> getCollisionRectangles();", "public boolean overlapsWith()\r\n\t{\r\n\t\tboolean alive = false;\r\n\t\tfor (Platforms platform : platforms)\r\n\t\t{\r\n\t\t\tif (getAvatar().getX() == platform.getX() && getAvatar().getY() == platform.getY())\r\n\t\t\t{\r\n\t\t\t\talive = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn alive;\r\n\t}", "public static boolean intersectsRectangleRectangle(int r1x, int r1y, int r1width, int r1height, int r2x, int r2y, int r2width, int r2height) {\n\t\t\n\t\tif(r1width == 0 || r1height == 0) { return false; }\n\t\tif(r2width == 0 || r2height == 0) { return false; }\n\t\t\n\t\tint r1MinX = r1x;\n\t\tint r1MinY = r1y;\n\t\tint r1MaxX = r1x+r1width;\n\t\tint r1MaxY = r1y+r1height;\n\t\tint r2MinX = r2x;\n\t\tint r2MinY = r2y;\n\t\tint r2MaxX = r2x+r2width;\n\t\tint r2MaxY = r2y+r2height;\n\t\t\n\t\tboolean intersects =\tr1MaxX > r2MinX &&\n\t\t\t\t\t\t\t\tr1MinX < r2MaxX &&\n\t\t\t\t\t\t\t\tr1MaxY > r2MinY &&\n\t\t\t\t\t\t\t\tr1MinY < r2MaxY;\n\t\treturn intersects;\n\t}", "boolean overlap(Reservation other);", "boolean losCompare(double x1, double y1, double x2, double y2, CObject pHo)\r\n {\r\n double delta;\r\n int x, y;\r\n\r\n int xLeft = pHo.hoX - pHo.hoImgXSpot;\r\n int xRight = xLeft + pHo.hoImgWidth;\r\n int yTop = pHo.hoY - pHo.hoImgYSpot;\r\n int yBottom = yTop + pHo.hoImgHeight;\r\n\r\n if (x2 - x1 > y2 - y1)\r\n {\r\n delta = (double) (y2 - y1) / (double) (x2 - x1);\r\n if (x2 > x1)\r\n {\r\n if (xRight < x1 || xLeft >= x2)\r\n {\r\n return false;\r\n }\r\n }\r\n else\r\n {\r\n if (xRight < x2 || xLeft >= x1)\r\n {\r\n return false;\r\n }\r\n }\r\n y = (int) (delta * (xLeft - x1) + y1);\r\n if (y >= yTop && y < yBottom)\r\n {\r\n return true;\r\n }\r\n\r\n y = (int) (delta * (xRight - x1) + y1);\r\n if (y >= yTop && y < yBottom)\r\n {\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n else\r\n {\r\n delta = (double) (x2 - x1) / (double) (y2 - y1);\r\n if (y2 > y1)\r\n {\r\n if (yBottom < y1 || yTop >= y2)\r\n {\r\n return false;\r\n }\r\n }\r\n else\r\n {\r\n if (yBottom < y2 || yTop >= y1)\r\n {\r\n return false;\r\n }\r\n }\r\n x = (int) (delta * (yTop - y1) + x1);\r\n if (x >= xLeft && x < xRight)\r\n {\r\n return true;\r\n }\r\n\r\n x = (int) (delta * (yTop - y1) + x1);\r\n if (x >= xLeft && x < xRight)\r\n {\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range3);\n List<Range> list1 = range2.complementFrom(list0);\n Range range4 = Range.of(1207L);\n assertFalse(range4.isEmpty());\n \n boolean boolean0 = range2.isSubRangeOf(range3);\n assertTrue(boolean0);\n \n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range2.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem3.toString();\n range0.equals(list1);\n assertSame(range2, range1);\n assertEquals(0, list1.size());\n \n range_CoordinateSystem1.toString();\n long long0 = range0.getEnd();\n assertEquals(255L, long0);\n }", "@Test\n public void isOverlap_interval1OverlapsInterval2OnStart_trueReturned() throws Exception{\n Interval interval1 = new Interval(-1,5);\n Interval interval2 = new Interval(3,12);\n\n boolean result = SUT.isOverlap(interval1,interval2);\n Assert.assertThat(result,is(true));\n }", "private static boolean areOverlapping( int ix0, int ix1, int len )\n {\n if( ix0<ix1 ){\n return ix0+len>ix1;\n }\n else {\n return ix1+len>ix0;\n }\n }", "public boolean doOverlap(Cell a, Cell b) {\n\t\tfloat dx = a.position.x - b.position.x;\n\t\tfloat dy = a.position.y - b.position.y;\n\t\tfloat cellSizeF = (float) cellSize;\n\t\t//cellSizeF = cellSizeF - .2f;\n\t\t//app.println(\"cellSizeF: \" + cellSizeF);\n\n\t\t// simple box check\n\t\tif (app.abs(dx) < cellSizeF && app.abs(dy) < cellSizeF) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean contains(Rectangle2D arg0) {\n\t\treturn false;\n\t}", "public boolean intersects(BoundingBox other) {\r\n\t\treturn !(other.left > getRight()\r\n\t\t\t || other.getRight() < left\r\n\t\t\t || other.top > getBottom()\r\n\t\t\t || other.getBottom() < top);\r\n\t}", "boolean isIncludeBounds();", "public boolean overlaps(Rectangle2D r2) {\n double xDistance = (Rectangle2D.centerX > centerX) ? Rectangle2D.centerX - centerX : centerX - Rectangle2D.centerX;\n double yDistance = (Rectangle2D.centerY > centerY) ? Rectangle2D.centerY - centerY : centerY - Rectangle2D.centerY;\n\n return (xDistance <= (width + r2.width) / 2 && yDistance <= (height + r2.height) / 2);\n\n }", "private boolean overlaps(int x1, int z1, int x2, int z2, int radius)\r\n {\r\n int var6 = x1 - x2;\r\n int var7 = z1 - z2;\r\n return var6 >= -radius && var6 <= radius ? var7 >= -radius && var7 <= radius : false;\r\n }", "void createRectangles();", "public abstract boolean intersect(BoundingBox bbox);", "public static Boolean intersectPixels(Rectangle rectangleA, Color[][] dataA, Rectangle rectangleB, Color[][] dataB)\r\n {\n int top = (int) Math.max(rectangleA.getMinY(), rectangleB.getMinY());\r\n int bottom = (int) Math.min(rectangleA.getMaxY(), rectangleB.getMaxY());\r\n int left = (int) Math.max(rectangleA.getMinX(), rectangleB.getMinX());\r\n int right = (int) Math.min(rectangleA.getMaxX(), rectangleB.getMaxX());\r\n\r\n // Check every point within the intersection bounds\r\n for (int y = top; y < bottom; y++)\r\n {\r\n for (int x = left; x < right; x++)\r\n {\r\n // Get the color of both pixels at this point\r\n \tColor colorA = dataA[(int) (x - rectangleA.getMinX())][(int) (y - rectangleA.getMinY())];\r\n \tColor colorB = dataB[(int) (x - rectangleB.getMinX())][(int) (y - rectangleB.getMinY())];\r\n\r\n // If both pixels are not completely transparent,\r\n if (colorA.getAlpha() != 0 && colorB.getAlpha() != 0)\r\n {\r\n // then an intersection has been found\r\n return true;\r\n }\r\n }\r\n }\r\n // No intersection found\r\n return false;\r\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-2147483648L), 1146L);\n long long0 = range0.getBegin();\n assertEquals((-2147483648L), long0);\n \n Range range1 = Range.of(1146L);\n range1.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n List<Range> list0 = range1.complementFrom(linkedList0);\n range0.complementFrom(list0);\n Range range2 = Range.ofLength(1146L);\n Range range3 = range2.intersection(range1);\n assertTrue(range3.isEmpty());\n \n long long1 = range1.getEnd();\n assertEquals(1146L, long1);\n \n boolean boolean0 = range0.intersects(range2);\n assertTrue(boolean0);\n \n range1.equals(range2);\n Range.of(2641L);\n List<Range> list1 = range0.complement(range2);\n assertEquals(1, list1.size());\n }", "private boolean hasOverlap(int[] i1, int[] i2)\n {\n // Special case of consecutive STEP-BY-STEP intervals\n if(i1[0] <= i2[0] && i2[0] <= i1[1])\n return true;\n if(i2[0] <= i1[0] && i1[0] <= i2[1])\n return true;\n return false;\n }", "boolean between(tPoint p2)\n {\n if (! this.collinear(p2))\n return false;\n \n //check to see if line is vertical\n if (this.p0.x != this.p1.x)\n {\n //if not vertical, check to see if point overlaps in x\n return (((this.p0.x < p2.x) && (p2.x < this.p1.x)) |\n ((this.p0.x > p2.x) && (p2.x > this.p1.x)));\n }\n else\n {\n //if vertical, check to see if point overlaps in y\n return (((this.p0.y < p2.y) && (p2.y < this.p1.y)) |\n ((this.p0.y > p2.y) && (p2.y > this.p1.y)));\n }\n }", "public boolean overlap(float[] a, float[] b) {\r\n return ( (b[0] <= a[0] && a[0] <= b[3]) || (b[0] <= a[3] && a[3] <= b[3]) ) &&\r\n ( (b[1] <= a[1] && a[1] <= b[4]) || (b[1] <= a[4] && a[4] <= b[4]) ) &&\r\n ( (b[2] <= a[2] && a[2] <= b[5]) || (b[2] <= a[5] && a[5] <= b[5]) );\r\n }", "public static void main(String[] args) {\n\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter r1's center x-, y-coordinates, width, and height:\");\n\t\tdouble x1 = input.nextDouble();\n\t\tdouble y1 = input.nextDouble();\n\t\tdouble w1 = input.nextDouble();\n\t\tdouble h1 = input.nextDouble();\n\n\t\tSystem.out.print(\"Enter r2's center x-, y-coordinates, width, and height:\");\n\t\tdouble x2 = input.nextDouble();\n\t\tdouble y2 = input.nextDouble();\n\t\tdouble w2 = input.nextDouble();\n\t\tdouble h2 = input.nextDouble();\n\n\t\tdouble topRx1 = x1 + w1 / 2;\n\t\tdouble topRy1 = y1 + h1 / 2;\n\n\t\tdouble bottomLx1 = x1 - w1 / 2;\n\t\tdouble bottomLy1 = y2 - h1 / 2;\n\n\t\tdouble topRx2 = x2 + w2 / 2;\n\t\tdouble topRy2 = y2 + h2 / 2;\n\n\t\tdouble bottomLx2 = x2 - w2 / 2;\n\t\tdouble bottomLy2 = y2 - h2 / 2;\n\n\t\tif (isInside(topRx1, topRy1, bottomLx1, bottomLy1, topRx2, topRy2, bottomLx2, bottomLy2)) {\n\t\t\tSystem.out.println(\"r2 is inside r1\");\n\t\t} else if (isOverlapping(topRx1, topRy1, bottomLx1, bottomLy1, topRx2, topRy2, bottomLx2, bottomLy2)) {\n\t\t\tSystem.out.println(\"r2 overlaps r1\");\n\t\t} else {\n\t\t\tSystem.out.println(\"r2 does not overlap r1\");\n\t\t}\n\t}", "private boolean isColliding(Node node1, Node node2){\n\t\tfinal int offset = 2;\n\t\tBounds bounds1 = node1.getBoundsInParent();\n\t\tBounds bounds2 = node2.getBoundsInParent();\n\t\tbounds1 = new BoundingBox(bounds1.getMinX() + offset, bounds1.getMinY() + offset,\n\t\t\t\tbounds1.getWidth() - offset * 2, bounds1.getHeight() - offset * 2);\n\t\tbounds2 = new BoundingBox(bounds2.getMinX() + offset, bounds2.getMinY() + offset,\n\t\t\t\tbounds2.getWidth() - offset * 2, bounds2.getHeight() - offset * 2);\n\t\treturn bounds1.intersects(bounds2);\n\t}", "public boolean willOverlap() {\n/* 208 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test(timeout = 4000)\n public void test037() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-2147483648L), (-2147483648L));\n boolean boolean0 = range0.equals(range_CoordinateSystem0);\n boolean boolean1 = range0.intersects(range0);\n assertTrue(boolean1 == boolean0);\n assertFalse(boolean1);\n }", "Rectangle getBoundingBox(Rectangle rect);", "private boolean overlapsWith(int offset1, int length1, int offset2, int length2) {\n \t\tint end= offset2 + length2;\n \t\tint thisEnd= offset1 + length1;\n \n \t\tif (length2 > 0) {\n \t\t\tif (length1 > 0)\n \t\t\t\treturn offset1 < end && offset2 < thisEnd;\n \t\t\treturn offset2 <= offset1 && offset1 < end;\n \t\t}\n \n \t\tif (length1 > 0)\n \t\t\treturn offset1 <= offset2 && offset2 < thisEnd;\n \t\treturn offset1 == offset2;\n \t}", "@Override\r\n\tpublic boolean results(Element element)\r\n\t{\r\n\t\t// checks whether the x coordinate of the given element lies between the x coordinates of the two positions of this inPartOfBoard-condition\r\n\t\tif(((element.getPosition().getCoordX() >= this.getPosition1().getCoordX()) && (element.getPosition().getCoordX() <= this.getPosition2().getCoordX()))\r\n\t\t\t\t|| ((element.getPosition().getCoordX() <= this.getPosition1().getCoordX()) && (element.getPosition().getCoordX() >= this.getPosition2().getCoordX())))\r\n\t\t{\r\n\t\t\t// checks whether the y coordinate of the given element lies between the y coordinates of the two positions of this inPartOfBoard-condition\r\n\t\t\tif(((element.getPosition().getCoordY() >= this.getPosition1().getCoordY()) && (element.getPosition().getCoordY() <= this.getPosition2().getCoordY()))\r\n\t\t\t\t\t|| ((element.getPosition().getCoordY() <= this.getPosition1().getCoordY()) && (element.getPosition().getCoordY() >= this.getPosition2().getCoordY())))\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static boolean doPixelsOverlap(int x1, int width1, int x2, int width2){\n\t\treturn\tx1 < x2 + width2 && x1 + width1 > x2;\n\t}", "@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 }", "boolean checkIfValidToCreate(int start, int end) {\n return myMarkerTree.processOverlappingWith(start, end, region->{\n int rStart = region.getStartOffset();\n int rEnd = region.getEndOffset();\n if (rStart < start) {\n if (region.isValid() && start < rEnd && rEnd < end) {\n return false;\n }\n }\n else if (rStart == start) {\n if (rEnd == end) {\n return false;\n }\n }\n else {\n if (rStart > end) {\n return true;\n }\n if (region.isValid() && rStart < end && end < rEnd) {\n return false;\n }\n }\n return true;\n });\n }", "public CFWRect intersectsLine( CFWPoint poiBegI, CFWPoint poiEndI)\t{\r\n\t\t//1.rejust rect\r\n\t\t//correct: (m_poiLT.m_fX < m_poiRB.m_fX && m_poiLT.m_fY < m_poiRB.m_fY)\r\n\t\tif(m_poiLT.m_fX > m_poiRB.m_fX && m_poiLT.m_fY > m_poiRB.m_fY)\t{\r\n\t\t\t//exchange all\r\n\t\t\tCFWPoint poiTmp = m_poiLT;\r\n\t\t\tm_poiLT = m_poiRB;\r\n\t\t\tm_poiRB = poiTmp;\r\n\t\t}\r\n\t\telse if(m_poiLT.m_fX > m_poiRB.m_fX && m_poiLT.m_fY < m_poiRB.m_fY)\t{\r\n\t\t\t//exchange X\r\n\t\t\tfloat fXTmp = m_poiLT.m_fX;\r\n\t\t\tm_poiLT.m_fX = m_poiRB.m_fX;\r\n\t\t\tm_poiRB.m_fX = fXTmp;\r\n\t\t}\r\n\t\telse if(m_poiLT.m_fX < m_poiRB.m_fX && m_poiLT.m_fY > m_poiRB.m_fY)\t{\r\n\t\t\t//exchange Y\r\n\t\t\tfloat fYTmp = m_poiLT.m_fY;\r\n\t\t\tm_poiLT.m_fY = m_poiRB.m_fY;\r\n\t\t\tm_poiRB.m_fY = fYTmp;\r\n\t\t}\r\n\t\t//2.intersect test\r\n\t\tCFWPoint poiOutOfRect = new CFWPoint();\r\n\t\tboolean bPoiInsideRect = false;\r\n\t\tCFWRect rectRet = new CFWRect();\r\n\t\tif(!checkPoiInside( poiBegI, poiEndI))\t{\r\n\t\t\t//System.out.println(\"the line has no cross point with the rectangle!\");\r\n\t\t\treturn(rectRet);\r\n\t\t}\r\n\t\telse if(!checkPoiInside( poiEndI, poiBegI))\t{\r\n\t\t\t//System.out.println(\"the line has no cross point with the rectangle!\");\r\n\t\t\treturn(rectRet);\r\n\t\t}\r\n\t\telse\t{\r\n\t\t\tif(isInsideArea( 9, poiBegI))\t{\r\n\t\t\t\tif(isInsideArea( 9, poiEndI))\t{\r\n\t\t\t\t\t//System.out.println(\"the line has no cross point with the rectangle!\");\r\n\t\t\t\t\treturn(rectRet);\r\n\t\t\t\t}\r\n\t\t\t\trectRet.m_poiLT = poiBegI;\r\n\t\t\t\tpoiOutOfRect = poiEndI;\r\n\t\t\t\tbPoiInsideRect = true;\r\n\t\t\t}\r\n\t\t\tif(isInsideArea( 9, poiEndI))\t{\r\n\t\t\t\tif(isInsideArea( 9, poiBegI))\r\n\t\t\t\t\treturn(rectRet);\r\n\t\t\t\trectRet.m_poiLT = poiEndI;\r\n\t\t\t\tpoiOutOfRect = poiBegI;\r\n\t\t\t\tbPoiInsideRect = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//3.intersect\r\n\t\t//if the line is vertical to X/Y, return the line segment\r\n\t\tif(poiEndI.m_fX == poiBegI.m_fX)\t{\r\n\t\t\tif(!bPoiInsideRect)\t{\r\n\t\t\t\trectRet.m_poiLT.m_fX = poiEndI.m_fX;\r\n\t\t\t\t//less than the m_poiLT'Y, use the m_poiLT'Y\r\n\t\t\t\trectRet.m_poiLT.m_fY = Math.max( Math.min(poiBegI.m_fY, poiEndI.m_fY), m_poiLT.m_fY);\r\n\t\t\t\t//larger than m_poiRB's Y, use the m_poiRB's Y\r\n\t\t\t\trectRet.m_poiRB.m_fY = Math.min( Math.max(poiBegI.m_fY, poiEndI.m_fY), m_poiRB.m_fY);\r\n\t\t\t}\r\n\t\t\telse\t{\r\n\t\t\t\tif(poiOutOfRect.m_fY < m_poiLT.m_fY)\r\n\t\t\t\t\trectRet.m_poiRB.m_fY = m_poiLT.m_fY;\r\n\t\t\t\telse if(poiOutOfRect.m_fY > m_poiRB.m_fY)\r\n\t\t\t\t\trectRet.m_poiRB.m_fY = m_poiRB.m_fY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trectRet.m_poiRB.m_fX = poiEndI.m_fX;\r\n\t\t\t\r\n\t\t}\r\n\t\telse if(poiEndI.m_fY == poiBegI.m_fY)\t{\r\n\t\t\tif(!bPoiInsideRect)\t{\r\n\t\t\t\trectRet.m_poiLT.m_fX = Math.max( Math.min( poiBegI.m_fX, poiEndI.m_fX), m_poiLT.m_fX);\r\n\t\t\t\trectRet.m_poiLT.m_fY = poiEndI.m_fY;\r\n\t\t\t\trectRet.m_poiRB.m_fX = Math.min( Math.max( poiBegI.m_fX, poiEndI.m_fX), m_poiRB.m_fX);\r\n\t\t\t}\r\n\t\t\telse\t{\r\n\t\t\t\tif(poiOutOfRect.m_fX < m_poiLT.m_fX)\r\n\t\t\t\t\trectRet.m_poiRB.m_fX = m_poiLT.m_fX;\r\n\t\t\t\telse if(poiOutOfRect.m_fX > m_poiRB.m_fX)\r\n\t\t\t\t\trectRet.m_poiRB.m_fX = m_poiRB.m_fX;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trectRet.m_poiRB.m_fY = poiEndI.m_fY;\r\n\t\t}\r\n\t\telse\t{\r\n\t\t\t//build line function\r\n\t\t\tdouble dK = (poiEndI.m_fY - poiBegI.m_fY)/(poiEndI.m_fX - poiBegI.m_fX);\r\n\t\t\tdouble dB = poiBegI.m_fY - dK*poiBegI.m_fX;\r\n\t\t\t//find intersect points\r\n\t\t\tCFWPoint poiIntersA = new CFWPoint( m_poiLT.m_fX - 1.0f, m_poiLT.m_fY - 1.0f, 0.0f);\r\n\t\t\tCFWPoint poiIntersB = new CFWPoint( m_poiLT.m_fX - 1.0f, m_poiLT.m_fY - 1.0f, 0.0f);\r\n\t\t\tfloat fXTmpA = (float)((m_poiLT.m_fY - dB)/dK);\r\n\t\t\tfloat fXTmpB = (float)((m_poiRB.m_fY - dB)/dK);\r\n\t\t\tfloat fYTmpA = (float)(dK*m_poiLT.m_fX + dB);\r\n\t\t\tfloat fYTmpB = (float)(dK*m_poiRB.m_fX + dB);\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fXTmpA, m_poiLT.m_fX, m_poiRB.m_fX, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = fXTmpA;\r\n\t\t\t\t\tpoiIntersA.m_fY = m_poiLT.m_fY;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = fXTmpA;\r\n\t\t\t\t\tpoiIntersB.m_fY = m_poiLT.m_fY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fXTmpB, m_poiLT.m_fX, m_poiRB.m_fX, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = fXTmpB;\r\n\t\t\t\t\tpoiIntersA.m_fY = m_poiRB.m_fY;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = fXTmpB;\r\n\t\t\t\t\tpoiIntersB.m_fY = m_poiRB.m_fY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fYTmpA, m_poiLT.m_fY, m_poiRB.m_fY, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = m_poiLT.m_fX;\r\n\t\t\t\t\tpoiIntersA.m_fY = fYTmpA;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = m_poiLT.m_fX;\r\n\t\t\t\t\tpoiIntersB.m_fY = fYTmpA;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fYTmpB, m_poiLT.m_fY, m_poiRB.m_fY, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = m_poiRB.m_fX;\r\n\t\t\t\t\tpoiIntersA.m_fY = fYTmpB;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = m_poiRB.m_fX;\r\n\t\t\t\t\tpoiIntersB.m_fY = fYTmpB;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(bPoiInsideRect)\t{\r\n\t\t\t\tCFWVector vecBE = new CFWVector(poiOutOfRect.sub(rectRet.m_poiLT));\r\n\t\t\t\tCFWVector vecBA = new CFWVector(poiIntersA.sub(rectRet.m_poiLT));\r\n\t\t\t\tCFWVector vecBB = new CFWVector(poiIntersB.sub(rectRet.m_poiLT));\r\n\t\t\t\tif(vecBE.isSameDir_VerticalIn(vecBA))\t{\r\n\t\t\t\t\trectRet.m_poiRB = poiIntersA;\r\n\t\t\t\t}\r\n\t\t\t\telse if(vecBE.isSameDir_VerticalIn(vecBB))\t{\r\n\t\t\t\t\trectRet.m_poiRB = poiIntersB;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\t{\r\n\t\t\t\trectRet.m_poiLT = poiIntersA;\r\n\t\t\t\trectRet.m_poiRB = poiIntersB;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//last check : intersected line segment whether inside rectangle\r\n\t\tif(!isInsideArea( 9, rectRet.m_poiLT) || !isInsideArea( 9, rectRet.m_poiRB))\t{\r\n\t\t\tSystem.out.println(\"generated line segment isn't inside rectangle!\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn(rectRet);\r\n\t}", "private static Rect getCollisionBounds(Rect rect1, Rect rect2) {\n gcbleft = Math.max(rect1.left, rect2.left);\n gcbtop = Math.max(rect1.top, rect2.top);\n gcbright = Math.min(rect1.right, rect2.right);\n gcbbottom = Math.min(rect1.bottom, rect2.bottom);\n gcbbounds.set(gcbleft, gcbtop, gcbright, gcbbottom);\n return gcbbounds;\n }", "@Test(timeout = 4000)\n public void test42() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-2147483648L), 1146L);\n long long0 = range0.getBegin();\n assertEquals((-2147483648L), long0);\n \n Range range1 = Range.of(1146L);\n boolean boolean0 = range1.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n List<Range> list0 = range1.complementFrom(linkedList0);\n range0.complementFrom(list0);\n Range range2 = Range.ofLength(1146L);\n Range range3 = range2.intersection(range1);\n long long1 = range1.getEnd();\n assertEquals(1146L, long1);\n \n boolean boolean1 = range0.intersects(range2);\n boolean boolean2 = range1.equals(range2);\n assertFalse(boolean2 == boolean1);\n \n range0.getEnd();\n Range.of(2641L);\n List<Range> list1 = range0.complement(range2);\n assertEquals(1, list1.size());\n \n boolean boolean3 = range3.startsBefore(range1);\n assertTrue(boolean3 == boolean0);\n assertTrue(range3.isEmpty());\n assertFalse(boolean3);\n }", "String isIntersect(pair pair1){\n\t\tString s;\n\t\tif(pair1.z==true){\n\t\t\tif(pair1.x>=xRange.x && pair1.x<=xRange.y){ s=\"mid\";\n\t\t\treturn s;\n\t\t\t}\n\t\t\telse if(pair1.x<xRange.x){s=\"right\";\n\t\t\treturn s;\n\t\t\t}\n\t\t\telse{s=\"left\";\n\t\t\treturn s;\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t \n\t\t}\n\t\telse{\n\t\t\tif(pair1.y>=yRange.x && pair1.y<=yRange.y){ s=\"mid\";\n\t\t\treturn s;}\n\t\t\telse if(pair1.y<yRange.x){s=\"right\";\n\t\t\treturn s;\n\t\t\t} \n\t\t\telse{s=\"left\";\n\t\t\treturn s;\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t \n\t\t}\t\t\t\t \n\t}", "public void displayRectangles() {\n\n\n int arr[] = IntStream.of(findDuplicates(TricolourController.BloodCells)).distinct().toArray(); //takes only the unique values from the array\n int arrWhite[] = IntStream.of(findDuplicates(TricolourController.WhiteCells)).distinct().toArray();\n int rIndex = 0;\n int lIndex = 0;\n int numCells = 0;\n\n for(int num : arrWhite) {\n System.out.println(num);\n }\n\n for(int j=0; j < arr.length - 1; j++) {\n for (int i = 0; i < TricolourController.BloodCells.length; i++) {\n if (TricolourController.BloodCells[i] == arr[j]) {\n int x = i % width, y = i / width;\n if (r[rIndex] == null) {\n r[rIndex] = new Rectangle(x, y, 1, 1);\n numCells++;\n }\n else {\n if (x > r[rIndex].getX() + r[rIndex].getWidth()) r[rIndex].setWidth(x - r[rIndex].getX());\n if (x < r[rIndex].getX()) {\n r[rIndex].setWidth(r[rIndex].getX() + r[rIndex].getWidth() - x);\n r[rIndex].setX(x);\n }\n if (y > r[rIndex].getY() + r[rIndex].getHeight()) r[rIndex].setHeight(y - r[rIndex].getY());\n }\n }\n }\n if (r[rIndex] != null) {\n r[rIndex].setFill(Color.TRANSPARENT);\n if(r[rIndex].getWidth() * r[rIndex].getHeight() > 2500) {\n r[rIndex].setStroke(Color.BLUE);\n }\n else r[rIndex].setStroke(Color.DARKGREEN);\n\n r[rIndex].setTranslateX(ImageViewTri.getLayoutX());\n r[rIndex].setTranslateY(ImageViewTri.getLayoutY());\n ((Pane) ImageViewTri.getParent()).getChildren().add(r[rIndex++]);\n RedCellText.setText(String.valueOf(numCells));\n }\n l[lIndex] = new Label();\n l[lIndex].setText(String.valueOf(numCells));\n l[lIndex].setTextFill(Color.BLACK);\n l[lIndex].setTranslateX(r[rIndex - 1].getX());\n l[lIndex].setTranslateY(r[rIndex - 1].getY());\n\n ((Pane) ImageViewTri.getParent()).getChildren().add(l[lIndex++]);\n }\n\n//Handles the white cell rectangles.\n int whitenumcells = 0;\n for(int j=0; j < arrWhite.length - 1; j++) {\n for (int i = 0; i < TricolourController.WhiteCells.length; i++) {\n if (TricolourController.WhiteCells[i] == arrWhite[j]) {\n int x = i % width, y = i / width;\n if (r[rIndex] == null) {\n r[rIndex] = new Rectangle(x, y, 1, 1);\n whitenumcells++;\n }\n else {\n if (x > r[rIndex].getX() + r[rIndex].getWidth()) r[rIndex].setWidth(x - r[rIndex].getX());\n if (x < r[rIndex].getX()) {\n r[rIndex].setWidth(r[rIndex].getX() + r[rIndex].getWidth() - x);\n r[rIndex].setX(x);\n }\n if (y > r[rIndex].getY() + r[rIndex].getHeight()) r[rIndex].setHeight(y - r[rIndex].getY());\n }\n }\n }\n if (r[rIndex] != null) {\n r[rIndex].setFill(Color.TRANSPARENT);\n r[rIndex].setStroke(Color.YELLOW);\n\n r[rIndex].setTranslateX(ImageViewTri.getLayoutX());\n r[rIndex].setTranslateY(ImageViewTri.getLayoutY());\n ((Pane) ImageViewTri.getParent()).getChildren().add(r[rIndex++]);\n WhiteCellText.setText(String.valueOf(whitenumcells));\n }\n l[lIndex] = new Label();\n l[lIndex].setText(String.valueOf(whitenumcells));\n l[lIndex].setTextFill(Color.BLACK);\n l[lIndex].setTranslateX(r[rIndex - 1].getX());\n l[lIndex].setTranslateY(r[rIndex - 1].getY());\n\n ((Pane) ImageViewTri.getParent()).getChildren().add(l[lIndex++]);\n }\n }", "public boolean adjoins(Rectangle rectangle) {\n int startX = Math.max(start.getX(), rectangle.start.getX());\n int startY = Math.max(start.getY(), rectangle.start.getY());\n\n int endX = Math.min(end.getX(), rectangle.end.getX());\n int endY = Math.min(end.getY(), rectangle.end.getY());\n\n return startX <= endX && startY <= endY;\n }", "public void test_containsLorg_eclipse_swt_graphics_Point() {\n\tfinal int COUNT = 60000000;\n\t\n\tRectangle rect = new Rectangle(1, 2, 3, 4);\n\tPoint p1 = new Point(2, 3);\n\tPoint p2 = new Point(9, 10);\n\t\n\tPerformanceMeter meter = createMeter(\"contains\");\n\tmeter.start();\n\tfor (int i = 0; i < COUNT; i++) {\n\t\trect.contains(p1);\t\t// does contain\n\t}\n\tmeter.stop();\n\t\n\tdisposeMeter(meter);\n\t\n\tmeter = createMeter(\"disjoint\");\n\tmeter.start();\n\tfor (int i = 0; i < COUNT; i++) {\n\t\trect.contains(p2);\t\t// does not contain\n\t}\n\tmeter.stop();\n\t\n\tdisposeMeter(meter);\n}" ]
[ "0.7459399", "0.6985812", "0.6981745", "0.68845785", "0.68672943", "0.6678339", "0.6612196", "0.65365386", "0.6471377", "0.6460414", "0.6438621", "0.6382663", "0.63670516", "0.6331207", "0.6314152", "0.6314152", "0.6293453", "0.626898", "0.6267849", "0.6257837", "0.6254159", "0.6231483", "0.6226851", "0.6216223", "0.61865294", "0.61846644", "0.61696327", "0.61625195", "0.6156076", "0.61348355", "0.6128937", "0.6122436", "0.61187696", "0.60969865", "0.60645235", "0.6063078", "0.6061933", "0.6039351", "0.6022692", "0.60167027", "0.5990282", "0.5961509", "0.5961272", "0.5948337", "0.59369886", "0.5935546", "0.59302515", "0.59139484", "0.5911883", "0.5908325", "0.59058243", "0.5899058", "0.5874506", "0.58715355", "0.58696157", "0.58631504", "0.58510005", "0.58369815", "0.5834888", "0.583135", "0.5827557", "0.5826855", "0.5813845", "0.5812643", "0.5808263", "0.57794595", "0.57728845", "0.57716346", "0.5767436", "0.5757394", "0.5756192", "0.57553715", "0.5734272", "0.57310534", "0.5729287", "0.5727622", "0.57186633", "0.571593", "0.57041097", "0.5700182", "0.56980747", "0.5682826", "0.568241", "0.5678879", "0.5672933", "0.5658623", "0.56502825", "0.56426656", "0.5640043", "0.56235087", "0.5623268", "0.56166965", "0.56107855", "0.56086504", "0.560733", "0.5600173", "0.5599319", "0.55833006", "0.55807334", "0.5565317", "0.5559977" ]
0.0
-1
return (a / b) % b;
public static boolean dividesEvenly(int a, int b) { if ((a % b) == 0) { return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double divide(double a, double b, boolean rem){ return rem? a%b: a/b; }", "public int modulo(int a, int b) {\n return a % b;\n }", "private static int cprModFunction(int a, int b) {\n\t\tint res = a % b;\n\t\tif (res < 0)\n\t\t\tres += b;\n\t\treturn res;\n\t}", "private static int wrap(int a, int b)\n {\n return (a < 0) ? (a % b + b) : (a % b);\n }", "public static float modulus(float a, float b)\n\t{\n\t\treturn (a % b + b) % b;\n\t}", "public int division(int a, int b) {\n return a / b;\n }", "@Override\r\n\tpublic int call(int a, int b) {\n\t\treturn a/b;\r\n\t}", "static int modulo(int x, int y) {\n return (x%y);\n }", "@Override\n\tpublic int calculation(int a, int b) {\n\t\treturn b/a;\n\t}", "public static int mod(int a,int b) {\n\t\tif (b == 0) return 0;\n\t\tif (b<0) {\n\t\t\treturn -mod(-a,-b);\n\t\t} else if(a<0) {\n\t\t\twhile (Math.abs(a-b)>b)a+=b;\n\t\t\treturn a;\n\t\t} else {\n\t\t\twhile (a-b>=0) a-=b;\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}", "public static double div(double a, double b){\r\n\t\treturn a/b;\r\n\t}", "private static int gcd(int a, int b)\r\n\t{\r\n\t\tint remainder = a % b;\r\n\t\tif(remainder == 0)\r\n\t\t{\r\n\t\t\treturn b;\r\n\t\t}\r\n\t\treturn gcd(b, remainder);\r\n\t}", "private long maxDivide(long a, long b) {\n\t\twhile (a % b == 0) {\n\t\t\ta = a / b;\n\t\t}\n\t\treturn a;\n\t}", "private static int gcd(int a, int b) {\n\t\tif(a==0){\n\t\t\treturn b;\n\t\t}\n\t\treturn gcd(b%a,a);\n\t}", "public static int mod(int x, int y) {\n return x % y;\n }", "@Override\r\n\tpublic int umul(int a,int b) {\n\t\treturn a/b;\r\n\t}", "public T div(T first, T second);", "public int div(int a, int b) {\n\t\t\treturn compute(a, b, OPER_DIV);\n\t\t}", "static int gcd(int a, int b) {\r\n\t\tif (b == 0)\r\n\t\t\treturn a;\r\n\t\treturn gcd(b, a % b);\r\n\t}", "double divide (double a, double b) {\n\t\tdouble result = a/b;\n\t\treturn result;\n\t}", "public static double div(double a, double b) {\n return a / b;\n }", "private int gcd(int a, int b){\r\n int r, temp;\r\n if( a<b ){ temp = a; a = b; b = temp; }\r\n while( b!=0 ){ r = a%b; a = b; b = r; }\r\n return a;\r\n }", "public static int gcd(int a, int b) {\r\n\t\twhile(b > 0) {\r\n\t\t\tint temp = b;\r\n\t\t\tb = a % b;\r\n\t\t\ta = temp;\r\n\t\t}\r\n\t\t\r\n\t\treturn a;\r\n\t}", "@Override\n\tpublic double divide(double a, double b) {\n\t\treturn (a/b);\n\t}", "@Override\npublic void div(int a, int b) {\n\t\n}", "private static boolean gcd(int a, int b) {\n while (b > 0) {\n int temp = b;\n b = a % b;\n a = temp;\n }\n return a == 1;\n }", "private static int pair_GCF(int a, int b) {\n int t;\n while (b != 0) {\n t = a;\n a = b;\n b = t % b;\n }\n return a;\n }", "public double divide(double a, double b) {\n\t\treturn a/b;\n\t}", "public int dividir(int a, int b) throws ExececaoCalculo{\n \n if(b==0){\n //ExececaoCalculo é uma class que esta nesse pacote atual\n throw new ExececaoCalculo(a, b);\n }\n return a/b;\n }", "public int gcd(int a, int b) {\n // write your code here\n if (b != 0) {\n return gcd(b, a % b);\n }\n else\n return a;\n }", "int div(int num1, int num2) {\n\t\treturn num1/num2;\n\t}", "public static int gcd(int a, int b){\n int tmp = a;\r\n a = Math.max(a,b);\r\n b = Math.min(tmp,b);\r\n \r\n //write GCD\r\n int remainder;\r\n do{\r\n remainder = a%b;\r\n a = b;\r\n b = remainder;\r\n } while(remainder !=0);\r\n \r\n return a;\r\n }", "public static int DIV_ROUND_UP(int a, int b) {\n\treturn (a + b - 1) / b;\n }", "private static BigInteger divideAndRound(BigInteger a, BigInteger b) {\r\n BigInteger result = a.divide(b);\r\n //Case 1: Integer part of the quotient is positive, a%b*2>=b, then the float part of the quotient>=.5, therefore add 1 to quotient\r\n if(result.signum()>0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)>=0)\r\n result = result.add(BigInteger.ONE);\r\n //Case 2: Integer part of the quotient is negative, a%b*2<=b but a%b<>0 , \r\n //then the float part of the quotient<=-0.5, therefore subtract 1 from quotient\r\n else if(result.signum()<0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)<=0 && !a.mod(b).equals(BigInteger.ZERO))\r\n result = result.subtract(BigInteger.ONE);\r\n //Case 3: Integer part of the quotient is zero then two cases arise: a>0 or a<0\r\n else if(result.signum()==0)\r\n { \r\n //Case 1.1: a>0.5 then result=1\r\n if(a.compareTo(BigInteger.ZERO)>0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)>=0)\r\n result = BigInteger.ONE;\r\n //Case 1.1: a<-0.5 then result=-1\r\n else if(a.compareTo(BigInteger.ZERO)<0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)<=0)\r\n result = BigInteger.ZERO.subtract(BigInteger.ONE); //-1 :)\r\n }\r\n return result;\r\n }", "private double calcG(int a, int b) {\n return a % 2 == 0 && b % 2 == 0 ? 20 : a % 2 == 1 && b % 2 == 1 ? 1 : 5;\n }", "public int division(){\r\n return Math.round(x/y);\r\n }", "static int valDiv2 (){\n return val/2;\n }", "public static int gcd(int a, int b) {\n int t = 0;\n while (b != 0) {\n t = b;\n b = a % b;\n a = t;\n }\n return Math.abs(a);\n }", "public static int HCF(int a, int b){\r\n int x, i, hcf = 0;\r\n \r\n for(i = 1; i<=a || i<=b; i++){\r\n if(a%i == 0 && b%i == 0){\r\n hcf = i;\r\n }} \r\n //System.out.print(hcf);\r\n return hcf;\r\n }", "public int pgcdByDE(int a, int b) throws Exception{\n if(a <1 || b <1){\n throw new Exception(\"a et b doivent etre >= 1\");\n }\n int reste = a > b ? a % b : b % a;\n if(reste == 0)\n return a > b ? b : a;\n if(a > b){\n a = reste;\n }else b = reste;\n return pgcdByDE(a,b);\n }", "private static void helloHelloModulo() {\n int a = 1;\n int b = 10;\n int c = 1 / 10;\n\n int d = 1 % 10;\n\n\n System.out.println(\" Result deleniya \" + c);\n System.out.println(\" Result deleniya \" + d);\n\n\n int делимое = 75;\n int делитель = 13;\n int f = делимое % делитель;\n\n int остаток = делимое - (делимое / делитель) * делитель;\n int j = 7 % 2;\n\n System.out.println(f);\n System.out.println(остаток);\n\n\n }", "public static int gcd(int a, int b){\r\n return a>b ? lnko_ordered(a,b) : lnko_ordered(b,a);\r\n }", "public int compare(Integer a,Integer b)\n\t{\n\t\treturn a%2-b%2;\n\t}", "private static int gcd (int a, int b) {\n int m = Math.max (Math.abs (a), Math.abs (b));\n if (m == 0) throw new ArithmeticException (\" zero in gcd \");\n int n = Math.min (Math.abs (a), Math.abs (b));\n while (n > 0) {\n a = m % n;\n m = n;\n n = a;\n }\n return m;\n }", "public static int LCM(int a, int b){\r\n int lowest = a * b / GCD(a,b);\r\n //System.out.print(lowest);\r\n return lowest;\r\n }", "public int gcd(int a, int b) {\n\t\tint result;\n\t\tif (a > 0) {\n\t\t\tresult = gcd(b % a, a);\n\t\t} else {\n\t\t\tresult = b;\n\t\t}\n\n\t\treturn result;\n\t}", "static int greatestDenominator(int a, int b) {\n int denominator = 0;\n\n // Loops from 0 to max(a, b) to test denominators\n for (int i = 1; i < Math.max(a, b); i++) {\n if (a % i == 0 && b % i == 0) {\n denominator = i;\n }\n }\n\n return denominator;\n }", "@Override\r\n\tpublic int divNo(int a, int b) throws ArithmeticException {\n\t\tif(b==0)\r\n\t\t\tthrow new ArithmeticException();\r\n\t\treturn a/b;\r\n\t}", "public static int GCD(int a, int b){\r\n if (b == 0){\r\n return a;\r\n }\r\n return GCD(b,a%b);\r\n }", "public static void main(String[] args) {\n\n double x = 34.56;\n double y = 2.45;\n\n System.out.println(x + y);\n System.out.println(x - y);\n System.out.println(x * y);\n System.out.println(x / y);\n\n var a = 5;\n int b = 9;\n\n System.out.println(a + b);\n System.out.println(a - b);\n System.out.println(a * b);\n System.out.println(a / b);\n System.out.println(a / (double)b);\n\n System.out.println(a % b);\n\n }", "private static long modPow(long a, long b, long c) {\n long res = 1;\n for (int i = 0; i < b; i++)\n {\n res *= a;\n res %= c;\n }\n return res % c;\n }", "@Override\n public Float div(Float lhs, Float rhs) {\n\t\n\tassert(rhs != 0);\n\t\n\tfloat res = lhs/rhs;\n\treturn res;\n }", "static long gcd(long a, long b) {\n\t\ta = Math.abs(a); b = Math.abs(b);\n\t\tif(a < b) return gcd(b,a);\n\t\tif(b == 0) return a;\n\t\treturn gcd(a%b, b);\n\t}", "private int getLCD(int a, int b){\n return ( (a * b) / getGCD(a, b) ); \n }", "private int getGCD(int a, int b) {\r\n if ( b == 0 ) {\r\n return a;\r\n } else {\r\n return getGCD(b, a % b);\r\n }\r\n }", "public static double div() {\n System.out.println(\"Enter dividend\");\n double a = getNumber();\n System.out.println(\"Enter divisor\");\n double b = getNumber();\n\n return a / b;\n }", "static long lcm(long a, long b) \n\t\t{ \n\t\t\treturn (a*b)/gcd(a, b); \n\t\t}", "BaseNumber divide(BaseNumber operand);", "public static int gcd(int a, int b) {\n\t\t// take absolute values\n\t\tif (a < 0) {\n\t\t\ta *= -1;\n\t\t}\n\t\tif (b < 0) {\n\t\t\tb *= -1;\n\t\t}\n\n\t\t// ensure a > b\n\t\tif (a < b) {\n\t\t\tint temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\t\t// a = b * (a / b) + (a % b)\n\t\t// then b = (a % b) * ((a % b) / b) + (a % b) % b\n\t\t// by the division algorithm. Execute until some\n\t\t// such product has no remainder, the remainder of\n\t\t// the previous equation is GCD(a, b).\n\t\twhile (b > 0) {\n\t\t\tint temp = b;\n\t\t\tb = a % b;\n\t\t\ta = temp;\n\t\t}\n\t\treturn a;\n\t}", "int gcd(int a, int b) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t int x,y,r=1;\r\n\t\t if(a<b)\r\n\t\t {\r\n\t\t\t x = b;\r\n\t\t\t y = a;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\t x = a;\r\n\t\t\t y = b;\r\n\t\t }\r\n\t\t while(r!=0)\r\n\t\t {\r\n\t\t r = x%y;\r\n\t\t if(r==0)\r\n\t\t\t break;\r\n\t\t x = y;\r\n\t\t y = r;\r\n\t\t }\r\n\t\t// System.out.println(\"====\"+y);\r\n\t\treturn y;\r\n\t}", "private static int findGcd(int a, int b) {\n\n\t\tint low = a < b ? a : b;\n\t\tint high = a < b ? b : a;\n\n\t\tif (high % low == 0) {\n\t\t\treturn low;\n\t\t} else {\n\t\t\treturn findGcd(high, high % low);\n\t\t}\n\t}", "static String kangaroo(int x1, int v1, int x2, int v2) {\n int x=x1-x2;\n int v=v2-v1;\n if(v!=0){\n if(x%v==0 && x/v>0){\n return \"YES\";\n }else {return \"NO\";}\n\n }else {return \"NO\";}\n\n }", "@Test\n public void test(){\n int a = 3;\n int b = 6;\n System.out.println(a % b);\n System.out.println(Long.MAX_VALUE);\n }", "public static void main(String args[])\n {\n int a=8%3; //Finding the reminder of 8 when divided by 3 using the modulus operator '%'\n\n System.out.println(\"a=\"+a);\n\n }", "public static int GCD(int a, int b){\n\t\tif(b == 0) return a;\n\t\treturn GCD(b, a%b);\n\t}", "public LongNum div2(LongNum divided){\n LongNum res = divided.copy();\n for(int i = res.size()-1;i>=0;i--){\n if(i!=0)res.set(i-1,res.get(i-1)+(res.get(i)%2)*base);\n res.set(i , Math.floorDiv(res.get(i),2));\n }\n return res;\n }", "public double divisao (double numero1, double numero2){\n\t}", "@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}", "@Test\n public void testModulo() {\n System.out.println(\"modulo\");\n int x = 0;\n int y = 0;\n int expResult = 0;\n int result = utilsHill.modulo(x, y);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int gcd = 1, lcm = 1;\n int temp = a;\n int temp2 = b;\n // int fact = 1;\n if (a > b) {\n\n for (int i = a; i < a * b;i+=a) {\n if ( i % b == 0) {\n lcm = i;\n break;\n // System.out.println(lcm);\n } \n }\n } else {\n for (int i = b; i < a * b; i+=b) {\n if ( i%a == 0) {\n lcm = i;\n break;\n // System.out.println(lcm);\n } \n }\n\n }\n gcd = (a * b) / lcm;\n System.out.println(gcd);\n System.out.println(lcm);\n }", "protected final double mod(double value, double modulus) {\n return (value % modulus + modulus) % modulus;\n }", "public int devision(int a, int b) {\n\t\tSystem.out.println(\"Division Method is Called\");\n\t\tint c=a/b;\n\t\treturn c;\n\t}", "public static int lcm(int a, int b) {\r\n\t\treturn a * (b / gcd(a, b));\r\n\t}", "public static BinaryExpression divide(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public static long PGCD (int a, int b) {\r\n\r\n\t\tlong pgcd = 0;\r\n\t\tint r = 0;\r\n\r\n\t\ta = Math.abs(a);\r\n\t\tb = Math.abs(b);\r\n\r\n\t\twhile(true){\r\n\t\t\tif (b == 0) {\r\n\t\t\t\tpgcd = a;\r\n\t\t\t\tbreak;\r\n\t\t\t} else {\r\n\t\t\t\tr = a % b;\r\n\t\t\t\ta = b;\r\n\t\t\t\tb = r;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn pgcd;\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tint a = 2;\n\t\tint b = 10;\n\t\tint c = a-(a/b)*b;\n\t\tSystem.out.println(c);\n\t\tint result = a;\n\t\twhile(result-b>=0){\n\t\t\tresult-=b;\n\t\t\tSystem.out.println(result);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"result:\"+result);\n\t}", "public static int lnko_ordered(int a, int b){\r\n if (b==0) return a;\r\n return lnko_ordered(b, a%b);\r\n }", "public static double divide(double num1,double num2){\n\n // return num1/num2 ;\n\n if(num2==0){\n return 0 ;\n } else {\n return num1/num2 ;\n }\n }", "public static double removeSharedDigit(int a, int b) {\n if (a == b) return -1;\r\n if (a == (10*(b%10) + (b/10))) return -1;\r\n if (a%10 == b%10 && a%10 != 0) return (double)((int)a/10) / ((int)(b/10));\r\n if (a/10 == b/10) return (double)((int)a%10) / ((int)(b%10));\r\n if (a/10 == b%10) return (double)((int)a%10) / ((int)(b/10));\r\n if (a%10 == b/10) return (double)((int)a/10) / ((int)(b%10));\r\n return -1;\r\n }", "public static int division(int x, int y) {\n\t\treturn x/y;\n\t}", "public HugeUInt mod(HugeUInt b) {\r\n \t HugeUInt q = new HugeUInt(this);\r\n HugeUInt t;\r\n HugeUInt m;\r\n int lenA = q.getSize();\r\n int lenB = b.getSize();\r\n int sh = lenA - lenB;\r\n int d; \r\n while (b.compareTo(q) <= 0) {\r\n \tsh = lenA - lenB;\r\n t = q.shiftRight(sh);\r\n if (t.compareTo(b) < 0) {\r\n sh--;\r\n }\r\n d = 9;\r\n m = b.multiply(d).shiftLeft(sh);\r\n while (q.compareTo(m) < 0) {\r\n d--;\r\n m = b.multiply(d).shiftLeft(sh);\r\n }\r\n q = q.subtract(m);\r\n q.trim();\r\n lenA = q.getSize();\r\n }\r\n q.trim();\r\n return q;\r\n }", "int getRemainderPercent();", "public static int uniform( int a, int b ) {\n return a + uniform( b - a );\n }", "private long function(long a, long b) {\n if (a == UNIQUE) return b;\n else if (b == UNIQUE) return a;\n\n // return a + b; // sum over a range\n // return (a > b) ? a : b; // maximum value over a range\n return (a < b) ? a : b; // minimum value over a range\n // return a * b; // product over a range (watch out for overflow!)\n }", "public static NumberP Division(NumberP first, NumberP second)\n {\n return OperationsManaged.PerformArithmeticOperation\n (\n first, second, ExistingOperations.Division\n ); \t\n }", "public static double modulo(double val, double mod) {\n double n = Math.floor(val / mod);\n double r = val - n * mod;\n return Util.almost_equals(r,mod) ? 0.0 : r;\n }", "private int gcd(int a, int b) {\n // Note that the loop below, as-is, will time out on negative inputs.\n // The gcd should always be a positive number.\n // Add code here to pre-process the inputs so this doesn't happen.\n if ( a < 0 ) {\n a = - a;\n }\n if ( b < 0 ) {\n b = - b;\n }\n\n \twhile (a != b)\n \t if (a > b)\n \t\t a = a - b;\n \t else\n \t\t b = b - a;\n \treturn a;\n }", "@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}", "public void divide() {\n\t\t\n\t}", "static int hcf(int num1, int num2){\n int i = 1;\n int hcf = 0;\n\n while(i<=num1 || i<=num2){\n if (num1%i == 0 && num2%i==0){\n hcf = i;\n }\n i++;\n }\n return hcf;\n }", "private static int modExp(int a, int b, int n) {\n\n // get a char array of the bits in b\n char[] k = (Integer.toBinaryString(b)).toCharArray();\n\n // initialize variables\n int c = 0, f = 1;\n // loop over every bit in k\n for (int i = 0; i < k.length; i ++) {\n\n // for every bit, i.e. if 0 or 1, do this\n c *= 2;\n f = (f * f) % n;\n\n // If current bit is equal to 1, then do this\n if (k[i] == '1') {\n c += 1;\n f = (f * a) % n;\n }\n }\n\n // returns the remainder\n return f;\n }", "public static int p_div(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"please put the first number that you want to divide:\");\n int v_div_number_1 = keyboard.nextInt();\n System.out.println(\"please put the second number that you want to divide:\");\n int v_div_number_2 = keyboard.nextInt();\n int v_total_div= v_div_number_1/v_div_number_2;\n return v_total_div;\n }", "private int getGCD(int a, int b) {\n \n /** This ensures the larger of the two numbers is in a */\n if(a < b){\n /** Temp variable used for swapping two variables */\n int temp = a;\n a = b;\n b = temp;\n }\n\n /** The remainder needs to be stored to recursively find the gcd */\n int remainder;\n if((remainder = a % b) == 0) {\n return b;\n } else {\n return getGCD(b, remainder);\n }\n }", "void div(double val) {\r\n\t\tresult = result / val;\r\n\t}", "private int getIndex(int val){\n return val%bucket;\n }", "long modInverse(long a, long m) \r\n { \r\n\t\t long m0 = m; \r\n long y = 0, x = 1; \r\n \r\n if (m == 1) \r\n return 0; \r\n \r\n while (a > 1) \r\n { \r\n // q is quotient \r\n \tlong q = a / m; \r\n \r\n \tlong t = m; \r\n \r\n // m is remainder now, process \r\n // same as Euclid's algo \r\n m = a % m; \r\n a = t; \r\n t = y; \r\n \r\n // Update x and y \r\n y = x - q * y; \r\n x = t; \r\n } \r\n \r\n // Make x positive \r\n if (x < 0) \r\n x += m0; \r\n \r\n return x; \r\n }", "private void handleIndivisible() {\n\t\n}", "public static void calcIntegersDivBy()\r\n\t{\r\n\t\tint x = 5;\r\n\t\tint y = 20;\r\n\t\tint p = 3;\r\n\t\tint result = 0;\r\n\t\tif (x % p == 0)\r\n\t\t\tresult = (y / p - x / p + 1);\r\n\t\telse\r\n\t\t\tresult = (y / p - x / p);\r\n\t\tSystem.out.println(result);\r\n\t}", "private static int findLCM(int a, int b) {\n return a * (b / findGCD(a, b));\n }", "public static float div(int value1, int value2){\r\n return (float) value1 / value2;\r\n }" ]
[ "0.80061954", "0.7947117", "0.7859751", "0.7844171", "0.7540139", "0.7323108", "0.71928996", "0.714367", "0.7097991", "0.69693875", "0.6955937", "0.69270444", "0.6850551", "0.6831497", "0.68274605", "0.68133223", "0.681181", "0.6800868", "0.67441964", "0.67296505", "0.6678904", "0.66605467", "0.6627194", "0.6625601", "0.66187304", "0.6555718", "0.65242666", "0.65240747", "0.6522088", "0.6519905", "0.6501954", "0.6425778", "0.64210755", "0.6388438", "0.63614565", "0.63532096", "0.6313741", "0.63133156", "0.6291936", "0.62846696", "0.6266375", "0.6264912", "0.6258205", "0.6254513", "0.62021077", "0.6195979", "0.6181307", "0.61784834", "0.6168922", "0.6167542", "0.61468285", "0.6138762", "0.6129618", "0.61289346", "0.6128863", "0.6124273", "0.61213166", "0.6117902", "0.61114806", "0.60504055", "0.60344183", "0.60194474", "0.6017615", "0.6000409", "0.59848946", "0.59514636", "0.59497076", "0.59306586", "0.58967775", "0.58936936", "0.5890111", "0.5868847", "0.5864117", "0.5849522", "0.58455724", "0.58451104", "0.5844234", "0.583831", "0.58356154", "0.58268374", "0.5822503", "0.58169436", "0.5814095", "0.58014345", "0.5791325", "0.5779857", "0.57694966", "0.57691956", "0.5767057", "0.57665986", "0.5760345", "0.5759891", "0.575255", "0.57504433", "0.5749792", "0.57427955", "0.57369804", "0.5733769", "0.57282037", "0.5727501" ]
0.62911075
39
/ Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution.
public static void main(String[] args) { Scanner in = new Scanner(System.in); int N = in.nextInt(); int[] arr = new int[N]; for (int i = 0; i < N; i++) { arr[i] = in.nextInt(); } Arrays.sort(arr); int size = arr.length; int index = 0; while (size > 0) { System.out.println(size); int count = 0; while (index + count < N && arr[index] == arr[index + count]) { count++; } size -= count; index += count; count = 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSolution s = new Solution();\r\n\t}", "public static void main(String[] args) throws IOException {\n\t\t//Scanner in = new Scanner(System.in);\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tsolve(in, out);\n\t\tout.close();\n\t\tin.close();\t\n\t}", "public static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n\t\tProblemSolver problemSolver = new ProblemSolver();\n\t\tproblemSolver.solveTheProblem(in, out);\t\t\n\t\tout.close();\t\t\n\t}", "public void solution() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(solution());\r\n\t}", "public static void main(String[] args) {\n\n Solution2.solution();\n }", "private Solution() { }", "private Solution() { }", "private Solution() {\n\n }", "public static void main(String []args) throws IOException {\n\tFastScanner in = new FastScanner(System.in);\n\tPrintWriter out = \n\t\tnew PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)), false); \n\tsolve(in, out);\n\tin.close();\n\tout.close();\n }", "private Solution() {\n }", "public static void main(String[] args) throws IOException{\n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\r\n\r\n \tint n = Integer.parseInt(f.readLine());\r\n \t\r\n \tint[] a = new int[n];\r\n \tStringTokenizer st = new StringTokenizer(f.readLine());\r\n \tfor(int i = 0; i < n; i++) a[i] = Integer.parseInt(st.nextToken());\r\n \t\r\n \tSystem.out.println(solution(a));\r\n \r\n //out.close();\r\n }", "public static void main(String[] args) throws IOException {\n\t\tin = new Scanner(new File(\"square.in\"));\n\t\tout = new PrintWriter(new File(\"square.out\"));\n\t\t\n\t\tinit();\n\t\tsolve();\n\t\t\n\t\tin.close();\n\t\tout.close();\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(solution(0));\n\n\t}", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (scanner.hasNextLine()) {\n\t\t\tString input = scanner.nextLine();\n\t\t\tSystem.out.println(solve(input));\n\t\t\t\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n String problem = \"Herman\";\n\n // Assign string type variable to solution string\n String result = solution(problem);\n\n //Print solution result\n System.out.println(result);\n }", "public static void main(String[] args) {\r\n\t\tSolver m = new Solver();\r\n\t\t\r\n\r\n\r\n\t\ttry {\r\n\t\t\tm.readData(\"data/Test_case_1.in\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\r\n\t\tint answer = m.solve(\"data/Test_case_1.in\");\r\n\r\n\t\tSystem.out.println(answer);\r\n\t\t\r\n\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tSolution s = new Solution();\n\t\ts.solution(2, 4, 2, 1);\n\t}", "public static void main(String[] args) \r\n {\r\n // TODO: Read the input from the user and call produceAnswer with an equation\r\n \tScanner in = new Scanner(System.in);\r\n \tString problem = in.nextLine();\r\n \tin.close();\r\n \tSystem.out.printf(\"Result: %s\" , produceAnswer(problem));\r\n }", "public static void main(String[] args) {\n\t\t\tSystem.out.println(Solution(5, 83));\n\t\t\t\n\t\t}", "public static void main(String[] args) {\n Scanner ob = new Scanner(System.in);\n Solution solution = null;\n int testcases = ob.nextInt();\n ob.nextLine();\n for (int i = 0; i < testcases; i++) {\n String numsLine = ob.nextLine();\n String[] numsLineParts = numsLine.trim().split(\" \");\n int dimensions = Integer.valueOf(numsLineParts[0]);\n int numOperations = Integer.valueOf(numsLineParts[1]);\n solution = new Solution(dimensions);\n for (int j = 0; j < numOperations; j++) {\n String line = ob.nextLine();\n String[] lineParts = line.split(\" \");\n if (lineParts[0].equals(\"UPDATE\")) {\n solution.update(Integer.valueOf(lineParts[1])-1, Integer.valueOf(lineParts[2])-1, Integer.valueOf(lineParts[3])-1, Integer.valueOf(lineParts[4]));\n }\n if (lineParts[0].equals(\"QUERY\")) {\n solution.query(Integer.valueOf(lineParts[1])-1, Integer.valueOf(lineParts[2])-1, Integer.valueOf(lineParts[3])-1, Integer.valueOf(lineParts[4])-1, Integer.valueOf(lineParts[5])-1, Integer.valueOf(lineParts[6])-1);\n }\n }\n }\n }", "public static void main(String[] args) {\n\r\n\t\tnew Main().sol();\r\n\t}", "public static void main(String[] args) throws IOException {\n\t\tSalesmanTour ss = new SalesmanTour();\n\t\tss.input();\n\t\tSystem.out.println(ss.solve());\n\t}", "private Solution() {\n //constructor\n }", "public static void main(String[] args) throws IOException {\n\t\tString task = \"palsquare\"; //XXX change this\n\t\tString path = !TESTING ? task + \".in\"\n\t\t\t\t: System.getProperty(\"user.dir\") + File.separator + \"src\" + File.separator + \"test.in\";\n\t\tInputReader in = new InputReader(new FileInputStream(path));\n\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(task + \".out\")));\n\t\tsolve(in, out);\n\t\tout.close();\n\t}", "private void generateSolution() {\n\t\t// TODO\n\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\ttry{\r\n\t\t\tScanner sc= new Scanner(new File(inpPath));\t//new File(inpPath)\r\n\t\t\tPrintWriter out = new PrintWriter(new File(outPath));\r\n\t\t\tint cases = sc.nextInt();\r\n\t\t\tfor(int t=1;t<=cases;t++){\r\n\t\t\t\tsolve(t,sc,out);\r\n\t\t\t}\r\n\t\t\tout.flush();\r\n\t\t\tout.close();\r\n\t\t}catch(Exception ex){ex.printStackTrace();}\r\n\t\t\r\n\t}", "public static void main(String[] args)\n\t{\n\t\tScanner in = new Scanner(System.in);\n\t\tStringBuilder answers = new StringBuilder();\n\n\t\tanswers.append(\"PERFECTION OUTPUT\\n\");\n\t\ttry\n\t\t{\n\t\t\tint value;\n\t\t\twhile (true)\n\t\t\t{\n\t\t\t\tvalue = in.nextInt();\n\t\t\t\tif (value == 0) break;\n\n\t\t\t\tanswers.append(solve(value));\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(e);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tanswers.append(\"END OF OUTPUT\");\n\n\t\tSystem.out.println(answers);\n\t}", "public static void main(String[] args) throws IOException {\n\t\tin = new BufferedReader(new FileReader(\"cowdance.in\"));\n\t\tout = new PrintWriter(new File(\"cowdance.out\"));\n\t\t\n\t\tinit();\n\t\tsolve();\n\t\t\n\t\tin.close();\n\t\tout.close();\n\t}", "public static void main(String[] args) throws IOException {\n\n String path = \"D:\\\\GitHub\\\\Competetions\\\\CodeJam\\\\Code\\\\src\\\\B12016\\\\\";\n String input = \"bsmall.in\", output = \"bsmall.out\";\n FileInputStream fip = new FileInputStream(path + input);\n FileOutputStream fop = new FileOutputStream(path + output);\n in = fip;\n out = new PrintWriter(fop);\n B a = new B();\n a.solve();\n out.close();\n }", "public static void main(String[] args) {\n\t\tSolution sol = new Solution();\n\t\tsol.test();\n\t}", "public static void main (String args []) throws IOException\r\n\t{\n\t\tScanner in = new Scanner(new File(\"moo.in\"));\r\n\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"moo.out\")));\r\n\t\tint n = in.nextInt();\r\n//\t\tSystem.out.println(solve(n,0));\r\n\t\tout.println(solve(n,0));\r\n\t\tout.flush();\r\n\t}", "public static void main(String[] args) {\n System.out.println(Arrays.toString(solution(\"\")));\n System.out.println(Arrays.toString(solution(\"abcdef\")));\n System.out.println(Arrays.toString(solution(\"HelloWorld\")));\n System.out.println(Arrays.toString(solution(\"abcde\")));\n System.out.println(Arrays.toString(solution(\"LovePizza\")));\n\n }", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\tint t = Integer.parseInt(br.readLine());\n\t\tint a = 0, b = 0;\n\t\tfor (int i = 0; i < t; i++) {\n\t\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\t\t\ta = Integer.parseInt(st.nextToken());\n\t\t\tb = Integer.parseInt(st.nextToken());\n\t\t\tbw.write(solution(a, b) + \"\\n\");\n\t\t}\n\t\tbw.flush();\n\t\tbw.close();\n\t}", "public static void main(String[] args) {\n Last_coding_exercises.task17();\n\n\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(Arrays.toString(solution(8, 1)));\r\n\t}", "public static void main(String[] args) throws Exception\n\t{\n\t\tBufferedReader br = new BufferedReader(new FileReader(\"input6.txt\"));\n\t\tSystem.setOut(new PrintStream(new File(\"output.txt\")));\n\n\t\tsolve(br);\n\t}", "@Test\n public void test() {\n Solution solution = new Solution();\n\n }", "@Test\n public void test() {\n Solution solution = new Solution();\n\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] arr = new int[4];\n for (int i = 0; i < 4; i++)\n arr[i] = sc.nextInt();\n \n Q1 q1 = new Q1();\n int[] answer = q1.solution(arr);\n \n for (int i = 0; i < answer.length; i++) {\n System.out.println(answer[i]);\n }\n }", "public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t//BufferedReader br = new BufferedReader(new FileReader(\"input/vol2/Problem127.in\"));\n\t\tString line = \"\";\n\t\t\n\t\twhile(true) {\n\t\t\tLinkedList<String> strings = new LinkedList<String>();\n\t\t\tLinkedList<Card> deck = new LinkedList<Card>();\n\t\t\tline = br.readLine().trim();\n\t\t\tif(line.equals(\"#\"))\n\t\t\t\tbreak;\n\t\t\tCollections.addAll(strings, line.split(\" \"));\n\t\t\tline = br.readLine().trim();\n\t\t\tCollections.addAll(strings, line.split(\" \"));\n\t\t\tfor(String str : strings) {\n\t\t\t\tdeck.add(new Card(str));\n\t\t\t}\n\t\t\tTableau solution = new Tableau();\n\t\t\tfor(Card c : deck) {\n\t\t\t\t//System.out.print(\"Adding: \" + c + \" \");\n\t\t\t\tsolution.add(c);\n\t\t\t\t//System.out.println(solution);\n\t\t\t\t//solution.debug();\n\t\t\t}\n\t\t\tSystem.out.println(solution);\n\t\t}\n\t\t//System.out.println(\"Runtime: \" + (System.currentTimeMillis() - startTime) + \"ms\");\n\t}", "public void findSolution() {\n\n\t\t// TODO\n\t}", "public void Main(){\n }", "public static void main(String[] args) {\n\n // create initial board from file\n In in = new In(args[0]);\n int N = in.readInt();\n int[][] tiles = new int[N][N];\n for (int i = 0; i < N; i++)\n for (int j = 0; j < N; j++)\n tiles[i][j] = in.readInt();\n Board initial = new Board(tiles);\n\n // check if puzzle is solvable; if so, solve it and output solution\n if (initial.isSolvable()) {\n Solver solver = new Solver(initial);\n StdOut.println(\"Minimum number of moves = \" + solver.moves());\n for (Board board : solver.solution())\n StdOut.println(board);\n }\n\n // if not, report unsolvable\n else {\n StdOut.println(\"Unsolvable puzzle\");\n }\n}", "public static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tNumberGame ng = new NumberGame();\n\t\tng.solve();\n\t\t//ng.test();\n\t}", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tTest01 t = new Test01();\r\n\t\t\r\n\t\t//String st = \"1927\";\r\n\t\t//int in\t= 2;\t// n 개 제거\r\n\r\n\t\tString st = \"1231234\";\r\n\t\tint in\t= 3;\t\r\n\t\t\r\n\t\tString an = t.solution(st, in);\r\n\t\t\r\n\t\tSystem.out.println(an);\r\n\t}", "private void testSolution(String input, String output) {\n runs++;\n\n // Load the problem & solution\n ProblemSpec problemSpec = Solution.loadProblem(input);\n Solution solution = new Solution(problemSpec);\n\n // Solve and time the solution\n long startTime = System.currentTimeMillis();\n List<State> states = solution.solve();\n long endTime = System.currentTimeMillis();\n durations.put(input, endTime - startTime);\n\n // Output the solution\n Solution.writeSolution(Formatter.format(states), output);\n\n problemSpec = Solution.loadProblem(input, output);\n if (solutionPasses(problemSpec)) {\n passes++;\n }\n\n successes++;\n }", "public static void main(String[] args) throws IOException {\n// new Homework01();\n new Homework02();\n }", "void run() throws IOException {\n\r\n\t\treader = new BufferedReader(new FileReader(\"input.txt\"));\r\n\r\n\t\tout = new PrintWriter(new FileWriter(\"output.txt\"));\r\n\t\ttokenizer = null;\r\n\t\tsolve();\r\n\t\treader.close();\r\n\t\tout.flush();\r\n\r\n\t}", "public static void main(String[] args) {\n InputData inputData = new InputData();\n FindNumberOfSteps findNumberOfSteps = new FindNumberOfSteps();\n PrintResult printResult = new PrintResult();\n printResult.print(findNumberOfSteps.find(inputData.input()));\n }", "public static void main(String[] args) throws IOException {\n\r\n \r\n \r\n }", "public static void main(String[] args) throws IOException {\n\t\t\t\r\n\t\t\tint [] numReps= {3,1,2,2,2};\r\n\t\t\tMathModelClass.solveMe(85, 5, 2,numReps, 1);\r\n\t\r\n\t\t}", "public static void main(String[] args) {\n\t\tString filename = \"src/y20161B/B-small-practice\";\n\t\t//String filename = \"src/y20161B/B-large-practice\";\n\n\t\tFileInputStream file;\n\t\tint T;\n\n\t\ttry {\n\t\t\tfile = new FileInputStream(filename+\".in\");\n\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(file));\n\n\t\t\tT = Integer.parseInt(in.readLine());\n\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(filename+\".out\"));\n\n\t\t\tfor (int i=0; i<T; i++) {\n\t\t\t\tint ind = i+1;\n\t\t\t\t// parser\n\t\t\t\tString buff[] = in.readLine().split(\" \");\n\t\t\t\tString C = buff[0];\n\t\t\t\tString J = buff[1];\n\t\t\t\t\n\t\t\t\t// calcul\n\t\t\t\tString res = solve(C, J);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Result \"+i+\": \"+res);\n\t\t\t\tbw.write(\"Case #\"+ind+\": \"+res+\"\\n\");\n\t\t\t}\n\t\t\tbw.close();\n\n\t\t\tin.close();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint [] arr = {4,2,3,5};\r\n\t\tint [] answer = solution(arr);\r\n\t\tfor(int i=0;i<answer.length;i++)\r\n\t\t\tSystem.out.print(answer[i]+\" \");\r\n\t}", "public static void main(String[] args) throws FileNotFoundException, IOException{\n InputStream inputStream = new FileInputStream(new File(\"./src/B-large.in\"));\n OutputStream outputStream = new FileOutputStream(new File(\"./src/B-large.out\"));\n InputReaderRevengePancakes in = new InputReaderRevengePancakes(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskRevengePancakes solver = new TaskRevengePancakes();\n solver.solve(1, in, out);\n out.close();\n }", "public static void main(String[] args) throws IOException {\n br = new BufferedReader(new FileReader(\"input.txt\"));\r\n\r\n int T = nextInt();\r\n for (int t = 1; t <= T; t++) {\r\n nextInt();\r\n int X = nextInt();\r\n String lString = nextToken();\r\n\r\n StringBuilder s = new StringBuilder();\r\n for (; X > 0; X--) s.append(lString);\r\n char[] arr = s.toString().toCharArray();\r\n String soln = solve(arr) ? \"YES\" : \"NO\";\r\n\r\n System.out.printf(\"Case #%d: %s%n\", t, soln);\r\n }\r\n }", "public static void main(String[] args) throws Exception\n\t{\n\t\tBufferedReader br = new BufferedReader(new FileReader(\"input6.txt\"));\tSystem.setOut(new PrintStream(new File(\"output.txt\")));\n\t\t\n\t\tint t = Integer.parseInt(br.readLine());\n\t\tfor(int i = 1; i <= t; i++)\n\t\t\tSystem.out.println(\"Case #\"+i+\": \"+solve(br));\n\t}", "public static void main(String[] args) {\r\n\t\tint N=1;\r\n\t\tint[][] trust = {};\r\n\t\tSolution sol = new Solution();\r\n\t\tSystem.out.println(sol.findJudge(N, trust));\r\n\t}", "public static void main(String[] args) \n\t{\n\t\tinitialize(\"\");\n\t\t\n\t\t//making instance from file name\n\n\t\tString str = \"A-n32-k5.vrp\";\n\t\tString fileName = \"input//\" + str;\n\t\t\n\t\t\n\t\tInstance problem = new VRPInstance(fileName);\n\t\tSystem.out.println(problem.comment);\n\t\t//solve problem\n\n\t\t//Solver solver2 = new SimpleGreedySolver(problem);\n\t\t//Solver solver2 = new NearestNeighborGreedySolver(problem);\n\t\t//Solver solver = new ClarkeWrightGreedySolver(problem);\n\t\t//Solver solver = new EHSBASolver(problem);\n\t\t//solver2.solve();\n\t\t//solver2.printResult();\n\t\t\n\t\t//solver = new ClarkeWrightGreedySolver(problem);\n\t\tSolver solver3 = new EHSBASolver(problem);\n\t\tsolver3.solve();\n\t\tsolver3.printResult();\n\t\t\n\t\tSystem.out.println(\"finished.\");\n\t\t\n\t\t\n\t\t/*File folder = new File(\"input\");\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\t\n\t\tfor(int i = 0; i < listOfFiles.length; i++)\n\t\t{\n\t\t\n\t\t\tString str = listOfFiles[i].getName();\n\t\t\tSystem.out.println(str);\n\t\t\tif(listOfFiles[i].isFile() && str.substring(0, 1).equalsIgnoreCase(\"A\"))\n\t\t\t\tfileName = \"input\\\\\" + str;\n\t\t\telse\n\t\t\t\tcontinue;\n\n\t\t\t//fileName = \"input\\\\\" + fileName;\n\t\t\tInstance problem = new VRPInstance(fileName);\n\t\t\tSystem.out.println(problem.comment);\n\t\t\t//solve problem\n\t\n\t\t\t//Solver solver = new SimpleGreedySolver(problem);\n\t\t\t//Solver solver = new NearestNeighborGreedySolver(problem);\n\t\t\tSolver solver = new ClarkeWrightGreedySolver(problem);\n\t\t\t//Solver solver = new EHSBASolver(problem);\n\t\t\tsolver.solve();\n\t\t\tsolver.printResult();\t\n\n\t\t}*/\n\n\t\t\n\t}", "public static void main(String[] args) {\n In in = new In(args[0]);\n int n = in.readInt();\n int[][] blocks = new int[n][n];\n for (int i = 0; i < n; i++)\n for (int j = 0; j < n; j++)\n blocks[i][j] = in.readInt();\n\n Board initial = new Board(blocks);\n\n // solve the puzzle\n Solver solver = new Solver(initial);\n\n // print solution to standard output\n if (!solver.isSolvable())\n StdOut.println(\"No solution possible\");\n else {\n StdOut.println(\"Minimum number of moves = \" + solver.moves());\n for (Board board : solver.solution())\n StdOut.println(board);\n }\n }", "public static void main(String[] args) {\n In in = new In(args[0]);\n int n = in.readInt();\n int[][] blocks = new int[n][n];\n for (int i = 0; i < n; i++)\n for (int j = 0; j < n; j++)\n blocks[i][j] = in.readInt();\n Board initial = new Board(blocks);\n\n // solve the puzzle\n Solver solver = new Solver(initial);\n\n // print solution to standard output\n if (!solver.isSolvable())\n StdOut.println(\"No solution possible\");\n else {\n StdOut.println(\"Minimum number of moves = \" + solver.moves());\n for (Board board : solver.solution())\n StdOut.println(board);\n }\n }", "public static void main(String[] args) {\n int[] arr = {10, 2, 5, 1, 8, 12};\n System.out.println(solution(arr));\n }", "public static void main(String[] args) {\n /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */\n Scanner sc = new Scanner(System.in);\n int cases = sc.nextInt();\n for(int i=0;i<cases;i++){\n \tString[] strArray = sc.next().split(\"\");\n\n \tString odd = \"\";\n \tString even = \"\";\n \t\n \tfor(int j=1;j<strArray.length;j++){\n \t\tif(j%2==0){\n\t\t\t\t\teven += strArray[j];\n \t\t}else{\n \t\t\todd += strArray[j];\n \t\t}\n \t\t\n \t}\n \t\n \tSystem.out.println(odd + \" \" + even);\n }\n }", "public void main(){\n }", "public static void main(String[] args) {\n\n\t\tsolution();\n\n\t\t// int maxDivisor = Divided.getMaxDivisor(1, 3);\n\t\t// System.out.println(\"maxDivisor:\" + maxDivisor);\n\n\t}", "public static void main() {\n \n }", "public static void main(String[] args){\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(solution(\"ACACACA\"));\r\n\t}", "public static void main(String[] args) {\n\t\tint A[]={2,1,0,0,0};\r\n\t\tSystem.out.println(solution(A));\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tint A[] = new int[5];\n\t\tA[0]=3;\n\t\tA[1]=1;\n\t\tA[2]=2;\n\t\tA[3]=4;\n\t\tA[4]=3;\n\t\tSolution s = new Solution();\n\t\tSystem.out.println(s.solution(A));\n\t}", "public static void main(String args[]) {\n\n\t\tFlowers example = new Flowers();\n\t\t\n\t\texample.model();\n\n\t\tif (example.search())\n\t\t\tSystem.out.println(\"Solution(s) found\");\n\t\t\n\t}", "public static void main(String[] args) {\n String str = \"The one-hour drama series Westworld is a dark odyssey about the dawn of artificial consciousness and the evolution of sin. Set at the intersection of the near future and the reimagined past, it explores a world in which every human appetite, no matter how noble or depraved, can be indulged.\";\n\n System.out.println(solution1(str));\n }", "public static void main(String[] args) {\n\t\tint[] number = new int[] {1, 1, 1, 1, 1};\n\t\tint target = 3;\n\t\t\n\t\tSolution s = new Solution();\n\t\tint result = s.solution(number, target);\n\t\tSystem.out.println(result);\n\t}", "@Test\n public void testSolution() {\n assertSolution(\"425\", \"input-day01-2018.txt\");\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tArrayList<Integer> arr = new ArrayList<>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarr.add(sc.nextInt());\n\t\t}\n\t\tint k = sc.nextInt();\n\t\tSolution sol = new Solution();\n\t\tSystem.out.println(sol.solve(arr, k));\n\t\tsc.close();\n\t}", "public static void main(String[] args) {\n\t\tint arr[] = {9,3,9,3,9,7,9};\n\t\tSolution(arr);\n\t}", "public Main() {\n }", "public Main() {\n }", "public static void main(String[] args) { \n \n //read in filename from user\n String filenameInput = args[0];\n \n //create new maze/graph\n Maze newMaze = new Maze(filenameInput);\n \n //call toString\n //String stringMaze = newMaze.toString();\n \n //print the string maze\n //System.out.println(stringMaze);\n \n //call findPath\n //System.out.println(newMaze.findPath());\n \n for (Vertex v : newMaze.findPath()) System.out.print(v.getName());\n \n //print solution?\n //System.out.println(newMaze.solution);\n \n \n }", "public static void main(String[] args) {\n String name = \"ABAAABB\";\n\n System.out.println(solution(name));\n }", "public static void main(String[] args) {\n\t\tint[] A = {51,31,43};\n\t\tSystem.out.println(solution(A));\n\n\t}", "public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\r\n System.out.print(BinaryReversalMethod(s.nextLine()));\r\n s.close();\r\n }", "public static void main(String[] args) // solve a slider puzzle (given below)\n {\n In in = new In(args[0]);\n int N = in.readInt();\n int[][] blocks = new int[N][N];\n for (int i = 0; i < N; i++)\n for (int j = 0; j < N; j++)\n blocks[i][j] = in.readInt();\n Board initial = new Board(blocks);\n\n // solve the puzzle\n Solver solver = new Solver(initial);\n\n // print solution to standard output\n if (!solver.isSolvable())\n StdOut.println(\"No solution possible\");\n else {\n StdOut.println(\"Minimum number of moves = \" + solver.moves());\n for (Board board : solver.solution())\n StdOut.println(board);\n \n \t\n }\n}", "public Main() {\n \n \n }", "public Main() {\n }", "public static void main()\n\t{\n\t}", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(br.readLine().trim());\n\t\tint tc = Integer.parseInt(st.nextToken());\n\t\tfor (int i = 0; i < tc; i++) {\n\t\t\tst = new StringTokenizer(br.readLine().trim());\n\t\t\tint x = Integer.parseInt(st.nextToken());\n\t\t\tint y = Integer.parseInt(st.nextToken());\n\t\t\tsolve(y - x);\n\t\t}\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n Scanner scanner = new Scanner(new FileInputStream(\"/Users/guoziren/IdeaProjects/剑指offer for Java/src/main/java/com/ustc/leetcode/algorithmidea/dynamicprogramming/input.txt\"));\n }", "public interface SASolution extends Solution {\r\n\r\n /**\r\n * Generates a neighbor solution using this solution\r\n *\r\n * @return\r\n */\r\n public SASolution getNeighborSolution();\r\n\r\n /**\r\n * Prints this solution\r\n *\r\n * @return\r\n */\r\n public String getAsString();\r\n\r\n}", "public static void main(String[] args) throws IOException {\n\r\n }", "public Main() {\r\n }", "public Main() {\r\n }", "public static void main(String[] args) {\n int lineSize = Integer.parseInt(args[0]);\n String[] input = getInput(args);\n\n WordWrap ww = new WordWrap(lineSize, input);\n Long start = System.currentTimeMillis();\n Integer[] lines = ww.solve();\n Long end = System.currentTimeMillis();\n\n System.out.println(\"solved in \"+((end-start)/1000.0) +\" seconds\");\n printResult(lines, input);\n }", "public static void main(String[] args) {\n System.out.println(solution(new int[]{3,1,2,4,3}));\n }", "public static void main(String[] args) {\n\t\tnew Challenge09();\r\n\t}", "public static void main(String[] args){\n Solution solution = new Solution();\n System.out.println(solution.convertToTitle(27));\n }", "public static void main(String[] args) {\n In in = new In(args[0]);\n int n = in.readInt();\n int[][] tiles = new int[n][n];\n for (int i = 0; i < n; i++)\n for (int j = 0; j < n; j++)\n tiles[i][j] = in.readInt();\n Board initial = new Board(tiles);\n\n // Solve the puzzle\n Solver solver = new Solver(initial);\n\n // Print solution to standard output\n if (!solver.isSolvable())\n StdOut.println(\" No solution possible \");\n else {\n StdOut.println(\" Minimum number of moves = \" + solver.moves());\n for (Board solutionboard : solver.solution())\n StdOut.println(solutionboard);\n }\n\n }", "public static void main(String[] args) {\n\t\tSolution s = new Solution();\n\t\tint[] nums = {4,5,6,7,0,1,2};\n\t\tSystem.out.println(s.search(nums, 0));\n\t}", "public Main() {}", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tArrayList<String> problems = new ArrayList<>();\n\t\t\n\t\t\n\t\tint noOfInputs = Integer.parseInt(in.nextLine());\n\t\t\n\t\tfor(int x=0; x<noOfInputs; x++) {\n\t\t\tproblems.add(in.nextLine());\n\t\t}\n\t\tin.close();\n\t\t\n\t\tfor(String p : problems) {\n\t\t\tint no = getFibonacciIndex(p);\n\t\t\t//System.out.print( no + \"\\n\\t\" + p + \"\\n\\t\" + getFib(no) + \"\\n\" );\n\t\t\tSystem.out.print(no + \" \");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t}", "public static void main(String[] args) {\n\t\tMain m=new Main();\n\t\tSystem.out.println(m.solve(\"abcd\"));\n\t}" ]
[ "0.75280106", "0.7303422", "0.72608393", "0.72363067", "0.7178064", "0.71745384", "0.7022264", "0.7022264", "0.68939406", "0.68699366", "0.6857948", "0.68238825", "0.68213546", "0.6809923", "0.6807801", "0.6805596", "0.6782698", "0.6770123", "0.6755418", "0.6753114", "0.6750817", "0.67347395", "0.6717301", "0.6706645", "0.6694287", "0.6651606", "0.66501707", "0.66278076", "0.66235226", "0.6621958", "0.6615442", "0.66057396", "0.6602287", "0.6585006", "0.6520085", "0.65010077", "0.64946944", "0.64697295", "0.64697295", "0.64609826", "0.64557177", "0.64406085", "0.6415948", "0.639306", "0.63843274", "0.6365387", "0.63447833", "0.6341386", "0.63392", "0.63311493", "0.6330592", "0.6325357", "0.6314658", "0.6309571", "0.6297083", "0.6268973", "0.626577", "0.6256522", "0.62489575", "0.6241918", "0.6230459", "0.62300694", "0.6229653", "0.62219816", "0.6215901", "0.6212836", "0.6203505", "0.62006277", "0.61977464", "0.6193003", "0.6185834", "0.6180364", "0.6169907", "0.6166941", "0.61659384", "0.61613095", "0.616109", "0.616109", "0.61588854", "0.61587274", "0.6158015", "0.6150775", "0.6149509", "0.61487585", "0.6148447", "0.6145762", "0.6139585", "0.6137239", "0.61351067", "0.6133941", "0.6132761", "0.6132761", "0.61272985", "0.61250347", "0.6116417", "0.61012554", "0.60979575", "0.6090302", "0.6087521", "0.6086861", "0.6086469" ]
0.0
-1
Notification of user being revoked
public void onEventMainThread(RevokedStateEvent event) { if (event.isRevoked()) { EventBus.getDefault().unregister(this); stopSelf(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void revoke();", "void setShowRevokedStatus(boolean b);", "public void cancelInvitionUser() {\n\n }", "public void revokePermission(String objectId, User user, List<String> actions) throws UserManagementException;", "User canceledUserRegistration(User user) throws LogicException;", "@Test\n public void revokeRevoked() {\n var uid = UID.apply();\n var user = UserAuthorization.random();\n var granted = Instant.now();\n var privilege = DatasetPrivilege.CONSUMER;\n var executor = UserId.random();\n\n var grant = DatasetGrant.createApproved(\n uid, user, privilege,\n executor, granted, Markdown.lorem());\n\n /*\n * When\n */\n DatasetGrant firstRevoked = grant.revoke(UserId.random(), Instant.now(), Markdown.lorem());\n DatasetGrant secondRevoked = firstRevoked.revoke(UserId.random(), Instant.now(), Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(firstRevoked)\n .as(\"The request is closed and not active after it is revoked\")\n .satisfies(g -> {\n assertThat(g.asDatasetMember()).isNotPresent();\n assertThat(g.isOpen()).isFalse();\n assertThat(g.isActive()).isFalse();\n assertThat(g.isClosed()).isTrue();\n })\n .isEqualTo(secondRevoked);\n }", "void onUserRemoved(@UserIdInt int userId);", "@Override\n\tpublic void revoke(User subject, Permission permission)\n\t{\n\t\t//TODO figure out how to implement since we're using role based permissions\n\t}", "@Override\n\t\tpublic void onUnfavorite(User arg0, User arg1, Status arg2) {\n\t\t\t\n\t\t}", "@Test\n public void rejectRevoked() {\n /*\n * Given\n */\n var uid = UID.apply();\n var user = UserAuthorization.random();\n var granted = Instant.now();\n var privilege = DatasetPrivilege.CONSUMER;\n var executor = UserId.random();\n\n var grant = DatasetGrant.createApproved(\n uid, user, privilege,\n executor, granted, Markdown.lorem());\n\n var revoked = grant.revoke(UserId.random(), Instant.now(), Markdown.lorem());\n\n /*\n * When\n */\n var rejected = revoked.reject(UserId.random(), Instant.now(), Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(rejected)\n .as(\"The reject should not be successful\")\n .satisfies(a -> {\n assertThat(a.isFailure()).isTrue();\n });\n }", "public interface UserSignedOutListener {\n\n void onUserSignedOut();\n}", "HasValue<Boolean> getIsRevoked();", "public String getRevokeDate() {\r\n return revokeDate;\r\n }", "@Test\n public void acceptRevoked() {\n /*\n * Given\n */\n var uid = UID.apply();\n var user = UserAuthorization.random();\n var granted = Instant.now();\n var privilege = DatasetPrivilege.CONSUMER;\n var executor = UserId.random();\n\n var grant = DatasetGrant.createApproved(\n uid, user, privilege,\n executor, granted, Markdown.lorem());\n\n var revoked = grant.revoke(UserId.random(), Instant.now(), Markdown.lorem());\n\n /*\n * When\n */\n var approved = revoked.approve(executor, Instant.now(), Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(approved)\n .as(\"The approval should not be successful\")\n .satisfies(a -> {\n assertThat(a.isFailure()).isTrue();\n });\n }", "void leave(User user);", "public void revokeAccess(CommandSender sender, String[] args) {\n if (sender instanceof Player && ( ((Player) sender).hasPermission(\"mf.revokeaccess\") || ((Player) sender).hasPermission(\"mf.default\")) ) {\n\n Player player = (Player) sender;\n\n if (args.length > 1) {\n if (args[1].equalsIgnoreCase(\"cancel\")) {\n if (main.playersRevokingAccess.containsKey(player.getName())) {\n main.playersRevokingAccess.remove(player.getName());\n player.sendMessage(ChatColor.GREEN + \"Cancelled!\");\n return;\n }\n }\n }\n else {\n player.sendMessage(ChatColor.RED + \"Usage: /mf revokeaccess (player-name)\");\n return;\n }\n\n if (!main.playersRevokingAccess.containsKey(player.getName())) {\n main.playersRevokingAccess.put(player.getName(), args[1]);\n player.sendMessage(ChatColor.GREEN + \"Right click a locked block to revoke this player's access to it! Type '/mf revokeaccess cancel' to cancel!\");\n }\n else {\n player.sendMessage(ChatColor.RED + \"You have already entered this command! Type '/mf revokeaccess cancel' to cancel!\");\n }\n\n }\n\n }", "boolean unblockUser(User user);", "@Override\n protected void onPlusClientRevokeAccess() {\n }", "@Override\n protected void onPlusClientRevokeAccess() {\n }", "public void declinePermission(String objectId, User user) throws UserManagementException;", "public abstract void revokeModerator(String nickname);", "public void Logout(){\n preferences.edit().remove(userRef).apply();\n }", "void onDisconnect(User user);", "@Override\r\n public void userRemovedOnServer(User user) throws RemoteException, SQLException\r\n {\r\n property.firePropertyChange(\"userRemoved\", null, user);\r\n }", "void forgotten(TwoWayEvent.Forgotten<DM, UMD, DMD> evt);", "public abstract void deactivation(FollowMeManager manager);", "public void onDeactivation() { }", "public void setRevokeDate(String revokeDate) {\r\n this.revokeDate = revokeDate;\r\n\r\n }", "@Override\n\tpublic void onUnfavorite(User source, User target, Status unfavoritedStatus) {\n\n\t}", "@Override\n\t\tpublic void onCancelAuth(Bundle values) {\n\n\t\t}", "@Override\n\t\tpublic void onCancelAuth(Bundle values) {\n\n\t\t}", "@Override\n public void onCancel() {\n Log.d(TAG, \"User cancelled login.\");\n }", "@Test\n public void revokeRequested() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n /*\n * When\n */\n DatasetGrant revoked = grant.revoke(UserId.random(), Instant.now(), Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(revoked)\n .as(\"The request is closed and not active after it is revoked\")\n .satisfies(g -> {\n assertThat(g.asDatasetMember()).isNotPresent();\n assertThat(g.isOpen()).isFalse();\n assertThat(g.isActive()).isFalse();\n assertThat(g.isClosed()).isTrue();\n });\n }", "@Override\n public void onCancel() {\n Log.d(TAG, \"User cancelled login.\");\n updateRefreshTokenUI(true);\n }", "@DefaultMessage(\"Since this user has no permissions and is inactive, deletion is invalid\")\n @Key(\"systemUser.userDeleteInvalid\")\n String systemUser_userDeleteInvalid();", "@Override\n protected void onUserLeaveHint() {\n super.onUserLeaveHint();\n notification.showNotification();\n moveTaskToBack(true);\n }", "@Override\n protected void onUserLeaveHint() {\n super.onUserLeaveHint();\n notification.showNotification();\n moveTaskToBack(true);\n }", "long getRevokeDelay();", "@Override\n\tpublic int deleteUserReimbRecord(int reimbid) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void onUserNeedLogout() {\n\t\t\n\t}", "@Override\n\tpublic void onUserNeedLogout() {\n\t\t\n\t}", "public void onCancelFavouriteDeletion();", "public abstract void revokeMembership(String nickname);", "public static Boolean isAlreadyRevoked(String proposalId, String userId, String roleId) {\n Query query = null;\n @SuppressWarnings(\"rawtypes\")\n List histList = null;\n Boolean isAlreadyRevoked = true;\n try {\n OBContext.setAdminMode();\n // Task No. 7304\n /*\n * String sqlString = \" select pmgmt.escm_proposalmgmt_id from escm_proposalmgmt pmgmt \" +\n * \" left join (select ad_role_id, createdby, escm_proposalmgmt_id, requestreqaction from escm_proposalmgmt_hist where seqno=\"\n * + \" (select max(seqno) from escm_proposalmgmt_hist \" +\n * \" where escm_proposalmgmt_id =:Escm_Proposalmgmt_ID and Requestreqaction not in ('RMIR','RMIREQ','RMI','RMIRES','F','FR'))\"\n * +\n * \" and escm_proposalmgmt_id =:Escm_Proposalmgmt_ID) hist on hist.escm_proposalmgmt_id=pmgmt.escm_proposalmgmt_id \"\n * + \" where exists (select 1 from escm_proposalmgmt \" +\n * \" where escm_proposalmgmt_id =:Escm_Proposalmgmt_ID and createdby =:AD_User_ID and ad_role_id=:AD_Role_ID) \"\n * +\n * \" and pmgmt.escm_proposalmgmt_id =:Escm_Proposalmgmt_ID and requestreqaction='SUB' and requestreqaction!='REV' \"\n * ;\n */\n String sqlString = \" select requestreqaction, ad_role_id, createdby \"\n + \" from escm_proposalmgmt_hist where Escm_Proposalmgmt_ID = :Escm_Proposalmgmt_ID \"\n + \" order by created desc limit 1 \";\n query = OBDal.getInstance().getSession().createSQLQuery(sqlString);\n query.setParameter(\"Escm_Proposalmgmt_ID\", proposalId);\n // query.setParameter(\"AD_User_ID\", userId);\n // query.setParameter(\"AD_Role_ID\", roleId);\n histList = query.list();\n if (histList.size() > 0) {\n Object[] row = (Object[]) histList.get(0);\n if (\"SUB\".equals(row[0].toString()) && roleId.equals(row[1].toString())\n && userId.equals(row[2].toString())) {\n isAlreadyRevoked = false;\n }\n }\n } catch (Exception e) {\n log.error(\"Exception in isAlreadyRevoked \" + e.getMessage());\n OBDal.getInstance().rollbackAndClose();\n } finally {\n OBContext.restorePreviousMode();\n }\n return isAlreadyRevoked;\n }", "public void unauthorized() {\n super.unauthorized();\n LoginFragment.this.getTracker().send(new HitBuilders.EventBuilder().setCategory(\"sign_in\").setAction(\"incorrect\").setLabel(\"incorrect\").build());\n Answers.getInstance().logLogin(new LoginEvent().putSuccess(false));\n new AlertDialog.Builder(LoginFragment.this.getActivity()).setMessage(R.string.incorrect_email_or_password).setPositiveButton(17039370, (DialogInterface.OnClickListener) null).show();\n }", "@Test\n public void revokeApproved() {\n var uid = UID.apply();\n var user = UserAuthorization.random();\n var granted = Instant.now();\n var privilege = DatasetPrivilege.CONSUMER;\n var executor = UserId.random();\n\n var grant = DatasetGrant.createApproved(\n uid, user, privilege,\n executor, granted, Markdown.lorem());\n\n /*\n * When\n */\n DatasetGrant revoked = grant.revoke(UserId.random(), Instant.now(), Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(revoked)\n .as(\"The request is closed and not active after it is revoked\")\n .satisfies(g -> {\n assertThat(g.asDatasetMember()).isNotPresent();\n assertThat(g.isOpen()).isFalse();\n assertThat(g.isActive()).isFalse();\n assertThat(g.isClosed()).isTrue();\n });\n }", "void unFollow(User user);", "public static /* synthetic */ void lambda$finishUserStopped$4(UserController userController, int userId) {\n synchronized (userController.mLock) {\n if (userController.mStartedUsers.get(userId) != null) {\n Slog.w(\"ActivityManager\", \"User was restarted, skipping key eviction\");\n }\n }\n }", "java.lang.String getKeyRevocationActionType();", "private void playUnsubscriptionConfirmationPromptAndUnsubscribeUser(String callerId) throws AgiException, DAOException\n\t{\n\t\tstreamFile(Constants.PROMPT_FOR_SUCCESSFUL_UNSUBSCRIPTION);\n\n\t\tUserBean user = UserManagerImpl.getInstance().loadByPrimaryKey(callerId);\n\n\t\tuser.setSubscriptionStatus(Constants.SUBSCRIPTION_STATUS_UNSUBSCRIBED);\n\n\t\tuser.update();\n\t}", "private void revokeGplusAccess() {\n if (mGoogleApiClient.isConnected()) {\n Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);\n Plus.AccountApi.revokeAccessAndDisconnect(mGoogleApiClient)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(Status arg0) {\n Log.e(TAG, \"User access revoked!\");\n mGoogleApiClient.connect();\n updateUI(false);\n }\n });\n }\n }", "private void onRemoteUserLeft() {\n removeRemoteVideo();\n }", "private void signOut() {\n MailboxServer.removeClient(this);\n clientResponse(\"GoodyBye!\");\n }", "@Override\n public void onCanceled() {\n\n logOutNow();\n\n }", "private void revokeUserLoginAndUpdateNotes(long studentID) throws Exception {\n int fee = getPendingFee(studentID);\n fee += 25;\n\n String url = MASTER_URL + MEMBERS + studentID + \".api\";\n\n URL obj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) obj.openConnection();\n con.setDoOutput(true);\n // request method\n con.setRequestMethod(\"PUT\");\n\n // request headers\n con.setRequestProperty(\"token\", USER_TOKEN);\n con.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\n String data = \"user[description]=Owes $\" + fee;\n\n OutputStreamWriter writer = new OutputStreamWriter(con.getOutputStream());\n\n writer.write(data);\n writer.close();\n\n con.getResponseCode();\n\n revokeLogin(studentID);\n\n }", "@Override\n public void onCancel(Platform arg0, int arg1) {\n Log.d(TAG, \"onCancel: ============授权取消\");\n }", "@Override\r\n\tpublic RemoteResult deactivateIMUser(String userName) {\n\t\treturn null;\r\n\t}", "public void deactivate(Person user) \r\n\t{\r\n\t\tdb.user_editUser(user.getUsername(), user.getFirstName(), user.getLastName(), \r\n\t\t\t\t\t\t user.getPassword(), user.getType(), 'N');\r\n\t}", "@Override\n\t\tpublic void onCancel() {\n\t\t\tonLoginFinished(getErrorJsonbject(DOMException.CODE_USER_CANCEL, DOMException.MSG_USER_CANCEL), false);\n\t\t}", "@Override\n\t\tpublic void onUserListUnsubscription(User arg0, User arg1, UserList arg2) {\n\t\t\t\n\t\t}", "public void receiveResultrevokeApplication(\n boolean result\n ) {\n }", "@Override\n\t\tpublic void onUnfollow(User arg0, User arg1) {\n\t\t\t\n\t\t}", "private void revokeGooglePlusAccess() {\n if (mGoogleApiClient.isConnected()) {\n Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);\n Plus.AccountApi.revokeAccessAndDisconnect(mGoogleApiClient)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(Status arg0) {\n Log.e(TAG, \"User access revoked!\");\n mGoogleApiClient.connect();\n }\n\n });\n }\n }", "@Override\n\tpublic void onRetweet(User source, User target, Status retweetedStatus) {\n\n\t}", "@SuppressWarnings(\"unused\")\n private void revokeGplusAccess() {\n if (mGoogleApiClient.isConnected()) {\n Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);\n Plus.AccountApi.revokeAccessAndDisconnect(mGoogleApiClient).setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(Status arg0) {\n Log.e(TAG, \"User access revoked!\");\n mGoogleApiClient.connect();\n updateUI(false);\n }\n });\n }\n }", "public void deactivateUser(long userId, int status) {\r\n\t\t// Deactivar el usuario cuando se desactiva en Liferay.\r\n\t\t// Equivalente a un borrado l�gico\r\n\t\tLOG.info(\"AutoSenderService: deactivateUser userId = \" + userId\r\n\t\t\t\t+ \", status = \" + status);\r\n\t\tUser user = getUser(userId);\r\n\t\tif (user != null && user.getUserId() != null\r\n\t\t\t\t&& user.getLiferayUserId() != null) {\r\n\t\t\t// Status = 0 significa que el usuario sea vuele a activar, caso que\r\n\t\t\t// ser� imposible\r\n\t\t\tif (status != 0) {\r\n\t\t\t\tSystem.out.println(\"AutoSenderService: deactivate user\");\r\n\t\t\t\tsetUserAction(user, ActionTypeName.DELETE_USER); // TODO a�adir\r\n\t\t\t\t// ActionType\r\n\t\t\t\t// DEACTIVATE\r\n\t\t\t\tuserService.deactivate(user.getLiferayUserId(),\r\n\t\t\t\t\t\tActionTypeName.DELETE_USER); // borrado l�gico\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void logOutUser() {\n\t\t\n\t}", "@DefaultMessage(\"This action will remove all the permissions for this user and make it inactive. The user itself will not be removed.\")\n @Key(\"systemUser.deleteUserMessage\")\n String systemUser_deleteUserMessage();", "@Override\n\tpublic void onUserListUnsubscription(User subscriber, User listOwner, UserList list) {\n\n\t}", "@Override\n\t\tpublic void onUnblock(User arg0, User arg1) {\n\t\t\t\n\t\t}", "void undoExpenseTracker() throws NoUserSelectedException;", "@Override\n\t\tpublic void onDeactive(AcStatusEvent event) {\n\n\t\t}", "public void confirmPermission(String objectId, User user) throws UserManagementException;", "protected void onCancelRequestReceipts() {\n \tmTxtStatus.setText(\"requestReceipts onCancel\");\n }", "public void onDeletionNotice(StatusDeletionNotice arg0) { }", "public void oncancel() {\r\n Users user = ui.getUser();\r\n newRating = ratingEJB.findByUserAndRecipe(user, recipe);\r\n\r\n if (newRating != null) {\r\n ratingEJB.removeRecipeRating(newRating);\r\n }\r\n }", "Boolean signOut();", "public abstract void revokeVoice(String nickname);", "public void revokeAllPrivilegesForSubject(GrouperSession grouperSession, Subject subject);", "protected void notificationOnExpiration() {\n }", "public void onUserLeaveHint() {\n\t\tsuper.onUserLeaveHint();\n\t\tfinish();\n\t}", "private void handleMangerKickUserOut() {\n String userName = EventMessageParser.extractUserName(this.message);\n SocketConnection targetConnection = SocketManager.getInstance()\n .getUserConnection(userName);\n targetConnection.send(this.message);\n }", "public boolean isRevoked(String serialNo) throws SQLException {\n\n\t\tboolean revoked = false;\n\t\tint re = -1;\n\n\t\ttry {\n\n\t\t\tMap<String, Object> param = new HashMap<String, Object>();\n\t\t\tparam.put(\"serialNo\", serialNo);\n\t\t\tparam.put(\"status\", GPMSConstants.STS_REVOKED);\n\n\t\t\tre = ((Integer) sqlSessionMeta.selectOne(\"selectRevokedClientBySerialNo\", param)).intValue();\n\t\t\tif (re > 0) {\n\t\t\t\trevoked = false;\n\t\t\t} else {\n\t\t\t\trevoked = true;\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tre = -1;\n\t\t\trevoked = true;\n\t\t}\n\n\t\treturn revoked;\n\t}", "public void destroy(User user);", "public void userLoggedOut(User user) \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"User logged out\");\n\t\t\tMainActivity.this.userLoggedOut();\n\t\t}", "public boolean cancelEvent(String userId, String eventId){\n Organizer og = (Organizer)idToPerson.get(userId);\n if (og.getEventsSignedUp().contains(eventId)){ // check that they are currently signed up fro the event\n og.cancelSpot(eventId);\n return true;\n }\n return false;\n }", "public void revoke() {\n WebsitePreferenceBridge.nativeRevokeUsbPermission(mOrigin, mEmbedder, mObject);\n }", "Order removeDeliveredStatus(Order order, User user);", "void remove(User user) throws AccessControlException;", "public void user_lost() {\n\tresetExpComp();\r\n }", "public void userLoggedOut(User user) \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"User logged out\");\n\t\t\tMainActivity.this.userLoggedOut();\t\n\t\t}", "void unblock(User user) throws RepositoryException;", "@Override\n public void onCancel() {\n Log.d(TAG, \"User cancelled Edit Profile.\");\n Toast.makeText(getBaseContext(), getString(R.string.editFailure), Toast.LENGTH_SHORT)\n .show();\n }", "@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}", "void unloadUser(KingdomUser user);", "@Override\n public void removeListner(_User user) throws RemoteException {\n this.ListenerClient.remove(user);\n this.ListenerClient.forEach(new BiConsumer<_User, _ClientListener>() {\n @Override\n public void accept(_User user, _ClientListener clientListener) {\n try {\n Logger.getGlobal().log(Level.INFO,\"User \" + user.getLogin() + \" leave the private chat\");\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }\n });\n }", "@Override\n public void onDeactivate() {\n }", "public void deletetask(UserDto user);", "@Test\n public void testGrantPreviouslyRevokedWithPrejudiceShowsPrompt_part2() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CALENDAR));\n\n // Request the permission and allow it\n BasePermissionActivity.Result thirdResult = requestPermissions(new String[] {\n Manifest.permission.READ_CALENDAR}, REQUEST_CODE_PERMISSIONS + 2,\n BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Make sure the permission is granted\n assertPermissionRequestResult(thirdResult, REQUEST_CODE_PERMISSIONS + 2,\n new String[] {Manifest.permission.READ_CALENDAR}, new boolean[] {true});\n }", "@Override\n\tpublic void onDeletionNotice(long directMessageId, long userId) {\n\n\t}" ]
[ "0.6393377", "0.6324762", "0.6279051", "0.6188113", "0.6113249", "0.6084953", "0.6072121", "0.6067679", "0.59760326", "0.5959993", "0.5930236", "0.5900153", "0.58995295", "0.5835476", "0.58194214", "0.58164245", "0.5744724", "0.5703774", "0.5703774", "0.57034355", "0.5701815", "0.5648145", "0.5616474", "0.55645066", "0.5558464", "0.5553509", "0.553707", "0.55216104", "0.55190104", "0.55103093", "0.55103093", "0.5467055", "0.54668087", "0.5455933", "0.54501826", "0.544736", "0.544736", "0.5442783", "0.5442071", "0.54266953", "0.54266953", "0.54165626", "0.54157215", "0.5410377", "0.5403914", "0.53988993", "0.5379", "0.5357823", "0.5357656", "0.5355183", "0.53535336", "0.53458506", "0.5316775", "0.5313396", "0.5313172", "0.53121436", "0.5307922", "0.53068084", "0.5305319", "0.52945685", "0.52906364", "0.52877414", "0.52813", "0.5277411", "0.52723163", "0.52626306", "0.5242156", "0.5230315", "0.5230067", "0.5220345", "0.52179956", "0.5217556", "0.5216743", "0.52160364", "0.5213091", "0.5201834", "0.5200254", "0.51842403", "0.5178", "0.51756495", "0.5170517", "0.51696", "0.5169273", "0.5162551", "0.51591396", "0.5158321", "0.5148316", "0.51479965", "0.5142892", "0.51323295", "0.512623", "0.5124867", "0.5123633", "0.5122161", "0.5121331", "0.51064956", "0.5106042", "0.5103534", "0.5100206", "0.509812" ]
0.510374
97
Created by Jasmina on 16/06/2018.
public interface EBookService { List<EBookDTO> readAll(); List<EBookDTO> readByCategory(Long categoryId); EBookDTO readById(Long id); EBookDTO create(EBookDTO eBookDTO); EBookDTO saveAndIndex(EBookDTO eBookDTO); EBookDTO update(Long id, EBookDTO eBookDTO); boolean delete(Long id); File saveEBookFile(byte[] bytes) throws IOException; EBookBaseDTO prepareBase(File file); boolean indexEBook(EBook eBook); boolean deleteEBookIndex(EBook eBook); File getFile(EBook eBook); File getFile(Long id); String getFileName(Long id); boolean deleteFile(String filename); Resource loadFile(Long id); String loadFileString(Long id); List<ResultData> search(SingleFieldSearchDTO singleFieldSearchDTO); List<ResultData> search(MultipleFieldSearchDTO multipleFieldSearchDTO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\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 comer() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n void init() {\n }", "private void poetries() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void init() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public void init() {}", "@Override\n protected void initialize() \n {\n \n }", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "protected MetadataUGWD() {/* intentionally empty block */}", "@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\tpublic void anular() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@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\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override public int describeContents() { return 0; }", "private void init() {\n\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\tprotected void initialize() {\n\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}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void initialize() {\n \n }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "private void m50366E() {\n }", "Petunia() {\r\n\t\t}", "private TMCourse() {\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public Pitonyak_09_02() {\r\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void einkaufen() {\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 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 }", "Consumable() {\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}" ]
[ "0.59297806", "0.57336146", "0.5680874", "0.5567445", "0.5526541", "0.5526541", "0.55209625", "0.54915726", "0.5472746", "0.54656047", "0.5453962", "0.5427435", "0.5427435", "0.5427435", "0.5427435", "0.5427435", "0.5427435", "0.5426115", "0.53946054", "0.5391418", "0.5386152", "0.53833646", "0.5382451", "0.5375094", "0.5372808", "0.53712595", "0.53378826", "0.5334675", "0.5323833", "0.53149104", "0.5313701", "0.5313195", "0.530326", "0.5300012", "0.52988297", "0.52943707", "0.5293883", "0.52888656", "0.52888656", "0.52888656", "0.52888656", "0.52888656", "0.5287977", "0.52708334", "0.5270127", "0.5259956", "0.52503765", "0.5249399", "0.5249399", "0.52438956", "0.5242797", "0.5242797", "0.52378184", "0.5232259", "0.5230503", "0.52255714", "0.522462", "0.5221585", "0.52175456", "0.52175456", "0.52175456", "0.52136916", "0.52003527", "0.52003527", "0.52003527", "0.51967925", "0.51907414", "0.51907414", "0.51804495", "0.5179883", "0.5179883", "0.5179883", "0.5156903", "0.5154115", "0.5149211", "0.51451373", "0.51411587", "0.51395917", "0.51347333", "0.51243806", "0.5117477", "0.51169777", "0.5109564", "0.5107436", "0.5107436", "0.5107436", "0.5107215", "0.5107215", "0.5107215", "0.5107215", "0.5107215", "0.5107215", "0.5107215", "0.5105033", "0.51046723", "0.51045585", "0.5099241", "0.50969243", "0.50969243", "0.509307", "0.5092779" ]
0.0
-1
/ Konstruktor til klassen Spill hvor vi gjor alt
Spill(){ in = new Scanner(System.in); spiller = new Spiller(in.nextLine()); datamaskin = new Spiller("Datamaskin"); // oppretter en datamaskin-spiller spillSteinSaksPapir(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getClass_();", "Object getClass_();", "public MijnKlasse()\r\n\t\t{\r\n\t\t\tmijnMethode();\r\n\t\t}", "public void consulterClassement() {\n\t\t\n\t}", "private UsineJoueur() {}", "public SlanjePoruke() {\n }", "Klassenstufe createKlassenstufe();", "public OOP_207(){\n\n }", "public Classe() {\r\n }", "protected FanisamBato(){\n\t}", "private DittaAutonoleggio(){\n \n }", "protected EmpleadoPlantilla(com.matisse.reflect.MtClass mtCls) {\n super(mtCls);\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "@Override\n public String getClassName() {\n return kelas;\n }", "@Override\n public String getClassName() {\n return kelas;\n }", "public AntrianPasien() {\r\n\r\n }", "zzebg(zzebe zzebe, Class cls) {\n super(cls);\n this.zzhzx = zzebe;\n }", "public Kullanici() {}", "public TebakNusantara()\n {\n }", "private stendhal() {\n\t}", "private void __setClassDescription() {\n\t\tEOClassDescription cd = EOClassDescription.classDescriptionForClass(getClass());\n\t\tif (cd == null) {\n\t\t\tthrow new IllegalStateException(\"Unabled to find an EOClassDescription for objects of \" + getClass());\n\t\t}\n\t\t__setClassDescription(cd);\n\t}", "@Override\n public void perish() {\n \n }", "public EvSocialClass ()\n {\n super();\n }", "@Override\n\tpublic void VisitClassNode(BunClassNode Node) {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private TMCourse() {\n\t}", "public Foret(){\n super(\"Foret\");\n }", "private Rekenhulp()\n\t{\n\t}", "public Clade() {}", "private Infer() {\n\n }", "private ControleurAcceuil(){ }", "Petunia() {\r\n\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public Husdjurshotell(){}", "protected Doodler() {\n\t}", "public Pasien() {\r\n }", "public Trening() {\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public Propiedad(){\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "protected Asignatura()\r\n\t{}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public nomina()\n {\n deducidoClase = new deducido();\n devengadoClase = new devengado();\n }", "private DarthSidious(){\n }", "protected Approche() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"class FatherClass\";\n\t}", "public QLNhanVien(){\n \n }", "default boolean isClass() {\n return false;\n }", "@Override\n\tpublic String typeKey() {\n\t return \"class\";\n\t}", "public Empfänger() {\t\t\t\t\t// std. Konstruktor\r\n\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void prot() {\n }", "public DetArqueoRunt () {\r\n\r\n }", "@Override\n\tpublic void setClassMissing() {\n\n\t}", "protected AusschreibungMapper() {\r\n\t}", "public Supercar() {\r\n\t\t\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public InsulinType(){\n super();\n }", "@Override\n\t/**\n\t * sets the class ID for the created class, the class ID is the\n\t * primary method for identifying a class's name and all of its methods,\n\t * variables, and comments \n\t * \n\t * @param s \n\t */\n\tpublic void setClassID(int s) {\n\t\tID = s;\n\t}", "@Override\r\n\t\tpublic String getClassName()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public NhanVien()\n {\n }", "protected void showClass()\n {\n inspectorManager.getClassInspectorInstance(obj.getClassRef(), pkg, this);\n }", "public contrustor(){\r\n\t}", "public Cgg_jur_anticipo(){}", "private IngenicoDisplay(){\n\n }", "@Override // opcional\n public void init(){\n\n }", "@Override\n public String getClassType(){\n return \"Assistant Professor\";\n }", "public Salle() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public ProxyModel(String classname) {\r\n\t\tsuper(classname);\r\n\t}", "public Sistema(){\r\n\t\t\r\n\t}", "public Propuestas() {}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "public void sousClasseAnnoce()\n {\n try {\n Class c = Class.forName(\"lpae.entites.Annonce\");\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(GestionnaireSecurite.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public PrnPrivitakVo() {\r\n\t\tsuper();\r\n\t}", "public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }", "public Rol() {}", "public Aritmetica(){ }", "public void setClassName(String className) { this.className=className; }", "@Override\n void init() {\n }", "public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }", "public clientesagregarclass() {\n initComponents();\n }", "public VotacaoSegundoDia() {\n\n\t}", "public Ov_Chipkaart() {\n\t\t\n\t}", "VehicleClass() {}", "@Override\n\tpublic void extends_(JDefinedClass cls) {\n\n\t}", "public AbstractClass() { //Sobrecarga del constructor AbstractClass ya que se puede inicializar de 2 maneras\n }", "public Achterbahn() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void setClass_(String newValue);", "Constructor() {\r\n\t\t \r\n\t }", "private QuadradoPerfeito() {\n }", "public Anschrift() {\r\n }", "@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void visit(OWLClass cls) {\n\t\taddFact(RewritingVocabulary.CLASS, cls.getIRI());\n\t}", "public AfiliadoVista() {\r\n }", "public TargetClass() {\n super();\n }", "public TutorIndustrial() {}" ]
[ "0.6940118", "0.6940118", "0.68967265", "0.6875544", "0.6483071", "0.64481795", "0.6445633", "0.6424494", "0.6381903", "0.6367914", "0.6364356", "0.6355026", "0.6342006", "0.63310325", "0.63290226", "0.6328987", "0.630715", "0.61913407", "0.61846656", "0.61309856", "0.6123979", "0.6117211", "0.60986537", "0.60746", "0.60656327", "0.60552186", "0.6052805", "0.60498786", "0.6035746", "0.60185474", "0.60172397", "0.6013682", "0.60109246", "0.60101885", "0.59983796", "0.59978557", "0.59949553", "0.5981675", "0.5981595", "0.59759575", "0.59721977", "0.5958552", "0.59473455", "0.5945848", "0.5944303", "0.593785", "0.592846", "0.5913221", "0.59081215", "0.590241", "0.5901623", "0.5899828", "0.5898935", "0.5891748", "0.58896303", "0.588808", "0.5859786", "0.5856115", "0.585313", "0.5851322", "0.5848469", "0.58408153", "0.5838493", "0.5836663", "0.5836568", "0.58308166", "0.5830709", "0.5828198", "0.5827086", "0.5821638", "0.5820122", "0.58171165", "0.58135223", "0.58033645", "0.5802577", "0.57987964", "0.57986456", "0.57985175", "0.57941103", "0.57936174", "0.5791192", "0.5787983", "0.57868266", "0.57748353", "0.57747746", "0.577443", "0.57722366", "0.5763118", "0.5759448", "0.5755888", "0.57556194", "0.57529736", "0.5749841", "0.5747753", "0.5743636", "0.573145", "0.573052", "0.5724961", "0.57224685", "0.572179", "0.5720821" ]
0.0
-1
/Metode for aa sjekke hvem som vant
public void finnVinner(){ if (spiller.harStein() && datamaskin.harPapir()){ System.out.println(datamaskin + " har vunnet"); }else if (spiller.harStein() && datamaskin.harSaks()){ System.out.println(spiller + " har vunnet"); }else if (spiller.harSaks() && datamaskin.harPapir()){ System.out.println(spiller + " har vunnet"); }else if (spiller.harSaks() && datamaskin.harStein()){ System.out.println(datamaskin + "har vunnet"); }else if (spiller.harPapir() && datamaskin.harStein()){ System.out.println(spiller + " har vunnet"); }else if (spiller.harPapir() && datamaskin.harSaks()){ System.out.println(datamaskin + " har vunnet"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String dohvatiKontakt();", "public void trenneVerbindung();", "public void asetaTeksti(){\n }", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "@Override // Métodos que fazem a anulação\n\tpublic void vota() {\n\t\t\n\t}", "public void sendeSpielfeld();", "@Override\r\n\tprotected void initVentajas() {\n\r\n\t}", "public IzvajalecZdravstvenihStoritev() {\n\t}", "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "public void klikkaa(Tavarat tavarat, Klikattava klikattava);", "@Override // prekrytie danej metody predka\r\n public String toString() {\r\n return super.toString()\r\n + \" vaha: \" + String.format(\"%.1f kg,\", dajVahu())\r\n + \" farba: \" + dajFarbu() + \".\";\r\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }", "public void setVigencia(String vigencia) { this.vigencia = vigencia; }", "public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}", "void tampilKarakterA();", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "protected String elaboraTemplateAvviso() {\n String testo = VUOTA;\n String dataCorrente = date.get();\n String personeTxt = \"\";\n personeTxt = text.format(numVoci);\n\n if (usaHeadTemplateAvviso) {\n testo += tagHeadTemplateAvviso;\n testo += \"|bio=\";\n testo += personeTxt;\n testo += \"|data=\";\n testo += dataCorrente.trim();\n testo += \"|progetto=\";\n testo += tagHeadTemplateProgetto;\n testo = LibWiki.setGraffe(testo);\n }// end of if cycle\n\n return testo;\n }", "public void somaVezes(){\n qtVezes++;\n }", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void trykkPaa() throws TrykketPaaBombe {\n // Ingenting skal skje dersom en av disse er true;\n if (brettTapt || trykketPaa || flagget) {\n return;\n }\n\n // Om ruten er en bombe taper man brettet\n if (bombe) {\n trykketPaa = true;\n setText(\"x\");\n setBackground(new Background(new BackgroundFill(Color.RED, CornerRadii.EMPTY, Insets.EMPTY)));\n throw new TrykketPaaBombe();\n }\n // Om ruten har null naboer skal et stoerre omraade aapnes\n else if (bombeNaboer == 0) {\n Lenkeliste<Rute> besokt = new Lenkeliste<Rute>();\n Lenkeliste<Rute> aapneDisse = new Lenkeliste<Rute>();\n aapneDisse.leggTil(this);\n // Rekursiv metode som fyller aapneDisse med riktige ruter\n finnAapentOmraade(besokt, aapneDisse);\n for (Rute r : aapneDisse) {\n r.aapne();\n }\n } else {\n aapne();\n }\n }", "public void verwerkRijVoorKassa() {\r\n while(kassarij.erIsEenRij()) {\r\n Persoon staatBijKassa = kassarij.eerstePersoonInRij();\r\n kassa.rekenAf(staatBijKassa);\r\n }\r\n }", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "public static void dodavanjeTeretnogVozila() {\n\t\tString vrstaVozila = \"Teretno Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 20000;\n\t\tdouble cenaServisa = 10000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedista = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tSystem.out.println(\"Unesite maximalnu masu koje vozilo moze da prenosi u KG !!\");\n\t\tint maxMasauKg = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite maximalnu visinu u m:\");\n\t\tdouble visinauM = UtillMethod.unesiteBroj();\n\t\tTeretnaVozila vozilo = new TeretnaVozila(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja, predjeno, preServisa,\n\t\t\t\tcenaServisa, cenaDan, brSedista, brVrata, vozObrisano, servisiNadVozilom, maxMasauKg, visinauM);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"--------------------------------------\");\n\t}", "@Override\n\tpublic String dohvatiKontakt() {\n\t\treturn \"Naziv tvrtke: \" + naziv + \", mail: \" + getEmail() + \", tel: \" + getTelefon() + \", web: \" + web;\n\t}", "public void Ordenamiento() {\n\n\t}", "public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }", "public void reserveer() {\n System.out.println(\"de eigenaar van de auto is: \" + i.eigenaar());\n\n }", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "public void visMedlemskabsMenu ()\r\n {\r\n System.out.println(\"Du har valgt medlemskab.\");\r\n System.out.println(\"Hvad Oensker du at foretage dig?\");\r\n System.out.println(\"1: Oprette et nyt medlem\");\r\n System.out.println(\"2: Opdatere oplysninger paa et eksisterende medlem\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "private void vereenvoudigAction() {\n foutLabel.setText(\"\");\n int teller = Integer.parseInt(tellerVeld.getText());\n int noemer = Integer.parseInt(noemerVeld.getText());\n if (noemer <= 0) {\n foutLabel.setText(\"Noemer moet positief zijn\");\n }\n else if (teller < 0) {\n foutLabel.setText(\"Teller mag niet negatief zijn\");\n }\n else {\n Breuk breuk = new Breuk(teller, noemer); \n if (breuk != null) {\n breuk.vereenvoudig();\n tellerVeld.setText(breuk.getTeller() + \"\");\n noemerVeld.setText(breuk.getNoemer() + \"\");\n }\n }\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "protected String getTitoloPaginaMadre() {\n return VUOTA;\n }", "public void validerSaisie();", "public void verarbeite() {\n\t\t\r\n\t}", "@Override\n public String toString(){\n return \"G(\"+this.getVidas()+\")\";\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "public void avvia() {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n getModuloRisultati().avvia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n super.avvia();\n\n }", "public boolean vegallomasonVan()\r\n\t{\r\n\t\treturn vegallomas;\r\n\t}", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "private void laskeMatkojenKesto() {\n matkojenkesto = 0.0;\n\n for (Matka m : matkat) {\n matkojenkesto += m.getKesto();\n }\n }", "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "@Override\n public void affiche(){\n System.out.println(\"Loup : \\n points de vie : \"+this.ptVie+\"\\n pourcentage d'attaque : \"+this.pourcentageAtt+\n \"\\n dégâts d'attaque : \"+this.degAtt+\"\\n pourcentage de parade :\"+this.pourcentagePar+\n \"\\n position : \"+this.pos.toString());\n\n }", "private String nalozZvieraNaVozidlo() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz cislo zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Prepravitelny z = (Prepravitelny) zoo.getZvierataZOO(pozicia - 1);\r\n zoo.nalozZivocicha(z);\r\n zoo.odstranZivocicha(pozicia - 1);\r\n return \"Zviera \" + z + \"\\n\\tbolo nalozene na prepravne vozidlo\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nemozno prepravit\\n\\t\";\r\n } catch (NullPointerException exNP) {\r\n return \"Zviera c. \" + pozicia + \" nie je v ZOO\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }", "public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "private static void cajas() {\n\t\t\n\t}", "public String getVigencia() { return this.vigencia; }", "private void xuLyLayMaDichVu() {\n int result = tbDichVu.getSelectedRow();\n String maDV = (String) tbDichVu.getValueAt(result, 0);\n hienThiDichVuTheoMa(maDV);\n }", "@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}", "@Override\n\tpublic String getInformeVendedor() {\n\t\treturn \"Informe trimestre 3\";\n\t}", "private static PohonAVL seimbangkanKembaliKanan(PohonAVL p) {\n //...\n // Write your codes in here\n }", "public MatkaKokoelma() {\n tallentaja = new TXTTallentaja();\n matkat = new ArrayList<Matka>();\n matkojenkesto = 0.0;\n }", "private void kasvata() {\n T[] uusi = (T[]) new Object[this.arvot.length * 3 / 2 + 1];\n for (int i = 0; i < this.arvot.length; i++) {\n uusi[i] = this.arvot[i];\n }\n this.arvot = uusi;\n }", "@Override\n\tpublic int sacameVida(ElementoAlien a) {\n\t\treturn 20;\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic int sacameVida(ElementoFuente a) {\n\t\treturn 10;\n\t}", "public void zugInWerkstatt() {\n werkstatt++;\n }", "public static void dodavanjePutnickogVozila() {\n\t\tString vrstaVozila = \"Putnicko Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja100 = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 10000;\n\t\tdouble cenaServisa = 8000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedist = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tPutnickoVozilo vozilo = new PutnickoVozilo(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja100, predjeno,\n\t\t\t\tpreServisa, cenaServisa, cenaDan, brSedist, brVrata, vozObrisano, servisiNadVozilom);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"---------------------------------------\");\n\t}", "@Override\n\tpublic int sacameVida(ElementoSoldado a) {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void zpracujObjednavky()\n\t{\n\t\tint idtmp = 0;\n\t\tfloat delkaCesty = 0;\n\t\t\n\t\tif (this.objednavky.isEmpty())\n\t\t{\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tNakladak nakl = (Nakladak) getVolneAuto();\n\t\t\n\t\tnakl.poloha[0] = this.poloha[0];\n\t\tnakl.poloha[1] = this.poloha[1];\n\t\tObjednavka ob = this.objednavky.remove();\n\n\t\t/*System.out.println();\n\t\tSystem.out.println(\"Objednavka hospody:\" + ob.id + \" se zpracuje pres trasu: \");\n\t\t */\n\t\tdelkaCesty += vyberCestu(this.id, ob.id, nakl);\n\t\t\n\t\twhile(nakl.pridejObjednavku(ob))\n\t\t{\n\t\t\tidtmp = ob.id;\n\t\t\t\n\t\t\tob = vyberObjednavku(ob.id);\n\t\t\tif (ob == null)\n\t\t\t{\n\t\t\t\tob=nakl.objednavky.getLast();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tobjednavky.remove(ob);\n\t\t\t\n\t\t\tdelkaCesty += vyberCestu(idtmp, ob.id, nakl);\n\t\t\t\n\t\t\tif((nakl.objem > 24)||(13-Simulator.getCas().hodina)*(nakl.RYCHLOST) + 100 < delkaCesty){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t/*\n\t\t\tif((Simulator.getCas().hodina > 12) && (delkaCesty > 80) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif((Simulator.getCas().hodina > 9) && (delkaCesty > 130) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}*/\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t//cesta zpatky\n\t\tvyberCestu(ob.id, this.id, nakl);\n\t\tif (nakl.objem >= 1)\n\t\t{\n\t\t\tnakl.kDispozici = false;\n\t\t\tnakl.jede = true;\n\t\t\t//vytvoreni nove polozky seznamu pro statistiku\n\t\t\tnakl.novaStatCesta();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnakl.resetCesta();\n\t\t}\n\t}", "public void asignarVida();", "public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}", "public void mostraDados() {\n System.out.println(\"O canal atual é: \" + tv.getCanal());\n System.out.println(\"O volume atual é: \" + tv.getVolume());\n System.out.println(\"--------------------------------------\");\n }", "@Override\n\tpublic int sacameVida(ElementoPiedra a) {\n\t\treturn 20;\n\t}", "public void visOversikt() {\r\n System.out.println(\"\\nPerson Oversikt:\");\r\n\r\n for(Person person : personListe.values()) {\r\n System.out.println(\"\\n\" + person);\r\n System.out.println(person + \" eier \" + (person.eierSize() + person.utlaantSize()) + \" DVD'er\");\r\n System.out.println(person + \" laaner ut \" + person.utlaantSize() + \" DVD'er\");\r\n System.out.println(person + \" laaner \" + person.laanerSize() + \" DVD'er\");\r\n }\r\n }", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "@Override\n\tpublic void verkaufen() {\n\t\tif( (bestand - abgenommeneMenge) < 0)\n\t\t\tthis.setBestand(0);\n\t\telse\n\t\t\tthis.setBestand(this.getBestand() - abgenommeneMenge);\n//\t\tSystem.out.println(\"Bestand danach:\" + bestand);\n\t}", "public VistaGraficaQytetet() {\n ArrayList <String> nombres = obtenerNombreJugadores();\n modelo = Qytetet.getInstance();\n controlador = ControladorQytetet.getInstance(nombres);\n initComponents();\n creaMenuOperacion();\n creaMenuCasilla();\n update();\n }", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "public ConversorVelocidad() {\n //setTemperaturaConvertida(0);\n }", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "void berechneUmfang() {\r\n\t\tfor (int i = 1; i < m_ANZAHL_POINTS; i++) {\r\n\t\t\tm_umfang += m_pointArray[i].distance(m_pointArray[i-1]);\t\t\r\n\t\t}\r\n\t}", "private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "@Override\n\tpublic void acomodaVista() {\n\n\t}", "@Override\n\tpublic void manejoVida(int cantVida, int tipCambio) {\n\t\t\n\t}", "private void verificaVencedor(){\n\n // Metodo para verificar o vencedor da partida\n\n if(numJogadas > 4) {\n\n String vencedor = tabuleiro.verificaVencedor();\n\n vencedor = (numJogadas == tabuleiro.TAM_TABULEIRO && vencedor == null) ? \"Deu Velha!\" : vencedor;\n\n if (vencedor != null) {\n\n mostraVencedor(vencedor);\n temVencedor = true;\n\n }\n\n }\n\n }", "public void stampajSpisak() {\n\t\t\n\t\tif (prviFilm != null) {\n\t\t\t\n\t\t\tFilm tekuciFilm = prviFilm;\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tSystem.out.println(\"Filmovi: \");\n\t\t\t\n\t\t\twhile (tekuciFilm != null) {\n\t\t\t\t\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\"Film #\" + count + \": '\" + tekuciFilm.naziv + \"'\");\n\t\t\t\t\n\t\t\t\tif (tekuciFilm.sadrzaj == null) {\n\t\t\t\t\tSystem.out.println(\"\\tNema unetih glumaca.\");\n\t\t\t\t} else {\n\t\t\t\t\tGlumac tekuciGlumac = tekuciFilm.sadrzaj;\n\t\t\t\t\t\n\t\t\t\t\twhile (tekuciGlumac != null) {\n\t\t\t\t\t\tSystem.out.println(\"\\t\" + tekuciGlumac);\n\t\t\t\t\t\ttekuciGlumac = tekuciGlumac.veza;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttekuciFilm = tekuciFilm.veza;\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\tSystem.out.println(\"Spisak je prazan.\");\n\t\t}\n\t}", "public void recibeOrden() {\r\n\t\tSystem.out.println(\"Ordene mi General\");\r\n\t}", "private void vorgangParameterUebernehmen(\n String autorEmail,\n Vorgang vorgang,\n String typ,\n Long kategorie,\n String positionWGS84,\n String oviWkt,\n String adresse,\n String beschreibung,\n Boolean fotowunsch,\n String bild,\n Boolean verlaufErgaenzen\n ) throws BackendControllerException {\n\n if (verlaufErgaenzen == null) {\n verlaufErgaenzen = false;\n }\n\n if (typ != null) {\n EnumVorgangTyp evt = EnumVorgangTyp.valueOf(typ);\n if (verlaufErgaenzen && !vorgang.getTyp().equals(evt)) {\n verlaufDao.persist(verlaufDao.addVerlaufToVorgang(vorgang, EnumVerlaufTyp.typ,\n vorgang.getTyp().getText(), evt.getText(), autorEmail));\n }\n vorgang.setTyp(evt);\n if (vorgang.getTyp() == null) {\n throw new BackendControllerException(2, \"[typ] nicht korrekt\", \"Der Typ ist nicht korrekt.\");\n }\n }\n\n if (kategorie != null) {\n Kategorie newKat = kategorieDao.findKategorie(kategorie);\n\n if (verlaufErgaenzen && !vorgang.getKategorie().getId().equals(newKat.getId())) {\n verlaufDao.persist(verlaufDao.addVerlaufToVorgang(vorgang, EnumVerlaufTyp.kategorie,\n vorgang.getKategorie().getParent().getName() + \" / \" + vorgang.getKategorie().getName(),\n newKat.getParent().getName() + \" / \" + newKat.getName(), autorEmail));\n }\n vorgang.setKategorie(newKat);\n if (vorgang.getKategorie() == null\n || vorgang.getKategorie().getParent() == null\n || vorgang.getKategorie().getParent().getTyp() != vorgang.getTyp()) {\n throw new BackendControllerException(4, \"[kategorie] nicht korrekt\", \"Die Kategorie ist nicht gültig.\");\n }\n }\n\n if (positionWGS84 != null) {\n try {\n vorgang.setPositionWGS84(positionWGS84);\n } catch (Exception e) {\n throw new BackendControllerException(12, \"[positionWGS84] nicht korrekt\", \"Die Ortsangabe ist nicht korrekt.\", e);\n }\n }\n\n if (oviWkt != null) {\n try {\n vorgang.setOviWkt(oviWkt);\n } catch (Exception e) {\n throw new BackendControllerException(6, \"[oviWkt] nicht korrekt\", \"Die Ortsangabe ist nicht korrekt.\");\n }\n }\n\n if (vorgang.getOviWkt() == null) {\n throw new BackendControllerException(5, \"[position] nicht korrekt\", \"Keine gültige Ortsangabe.\");\n }\n\n if (!vorgang.getOvi().within(grenzenDao.getStadtgrenze().getGrenze())) {\n throw new BackendControllerException(13, \"[position] außerhalb\", \"Die neue Meldung befindet sich außerhalb des gültigen Bereichs.\");\n }\n\n if (adresse != null) {\n vorgang.setAdresse(adresse);\n } else {\n String neueAdresse = \"nicht zuordenbar\";\n if (oviWkt != null) {\n Point point = pointWktToPoint(oviWkt);\n neueAdresse = geoService.calculateAddress(point);\n } else if (positionWGS84 != null) {\n try {\n Point point = transformPosition(pointWktToPoint(positionWGS84), wgs84Projection, internalProjection);\n neueAdresse = geoService.calculateAddress(point);\n } catch (FactoryException | MismatchedDimensionException | TransformException e) {\n logger.error(e);\n }\n }\n vorgang.setAdresse(neueAdresse);\n }\n\n if (beschreibung != null) {\n if (verlaufErgaenzen && (vorgang.getBeschreibung() == null || !vorgang.getBeschreibung().equals(beschreibung))) {\n verlaufDao.persist(verlaufDao.addVerlaufToVorgang(vorgang, EnumVerlaufTyp.beschreibung, vorgang.getBeschreibung(), beschreibung, autorEmail));\n }\n vorgang.setBeschreibung(beschreibung);\n }\n\n if (fotowunsch != null) {\n if (verlaufErgaenzen && !Objects.equals(vorgang.getFotowunsch(), fotowunsch)) {\n verlaufDao.persist(verlaufDao.addVerlaufToVorgang(vorgang, EnumVerlaufTyp.fotowunsch,\n vorgang.getFotowunsch() ? \"aktiv\" : \"inaktiv\", vorgang.getFotowunsch() ? \"inaktiv\" : \"aktiv\", autorEmail));\n }\n vorgang.setFotowunsch(fotowunsch);\n }\n\n if (bild != null && bild.getBytes().length > 0) {\n vorgangDao.persist(vorgang);\n try {\n imageService.setImageForVorgang(Base64.decode(bild.getBytes()), vorgang);\n vorgang.setFotoFreigabeStatus(EnumFreigabeStatus.intern);\n vorgang.setFotowunsch(false);\n } catch (Exception e) {\n throw new BackendControllerException(11, \"[bild] nicht korrekt\", \"Das Bild ist fehlerhaft und kann nicht verarbeitet werden.\", e);\n }\n }\n }", "@Override\n\tpublic void prijmiNaklad(Objednavka ob, int idAuta) {\n\t\tsuper.prijmiNaklad(ob, idAuta);\n\t\tthis.sklad += ob.objem;\n\t}", "public MaschinenVerwaltung() {\r\n setMaschinenListe();\r\n setEinKopfMaschinenListe();\r\n setZweiBisAchtKopfMaschine();\r\n setZehnUndMehrKopfMaschine();\r\n }", "public AutomatZustand()\r\n\t{\r\n\t\tthis.ew_lokal = Automat.eingabewort;\r\n\t}", "public void vaaraSyote() {\n System.out.println(\"En ymmärtänyt\");\n kierros();\n }", "@Override\n\tpublic void anular() {\n\n\t}", "Kerucut(){\r\n Tabung tab = new Tabung();\r\n tinggi=tab.getTinggi();\r\n }", "private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }", "public void erzaehlWas() {\n // Das Gleiche was jedes Tier sagt.\n super.erzaehlWas();\n\n // Zusaetzliche Aussage des Affen\n System.out.println(\"Affen sind einfach die besten Tiere.\");\n }", "public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "@Override public String getMasa(){\n return \"gruesa \";\n }" ]
[ "0.6830317", "0.67231303", "0.67187625", "0.6545737", "0.6430167", "0.6412619", "0.64112294", "0.6384824", "0.6328984", "0.6272359", "0.6269688", "0.626554", "0.6216983", "0.6210813", "0.6205256", "0.62012583", "0.6185004", "0.6182159", "0.6174468", "0.61697793", "0.6164477", "0.6156047", "0.61446726", "0.61445564", "0.6128974", "0.61176497", "0.61133665", "0.6112357", "0.61054343", "0.610504", "0.60979486", "0.6093859", "0.608729", "0.6079483", "0.60700935", "0.60636836", "0.6055214", "0.6051709", "0.60481334", "0.6045745", "0.60424465", "0.60364085", "0.6034735", "0.6033283", "0.6033112", "0.6030563", "0.6020358", "0.601478", "0.6002395", "0.59959066", "0.5993082", "0.59930086", "0.5990556", "0.59904164", "0.59864956", "0.5985295", "0.5984114", "0.5983517", "0.59745353", "0.5973903", "0.5968696", "0.59588903", "0.5957036", "0.5947847", "0.59437805", "0.59374976", "0.59342927", "0.5928579", "0.59283763", "0.591893", "0.591724", "0.59092623", "0.5906961", "0.5904042", "0.5903418", "0.5901212", "0.58987457", "0.589158", "0.5891154", "0.5884637", "0.5871019", "0.5870171", "0.5861826", "0.5860312", "0.5857652", "0.5856954", "0.5855168", "0.5853957", "0.5852574", "0.585236", "0.58494467", "0.5848987", "0.58463", "0.5843101", "0.5841579", "0.58415276", "0.5830774", "0.58291644", "0.5828463", "0.58248353", "0.5818162" ]
0.0
-1
API of logic component for deliverable (should only have one interface for logic, change later)
public interface LogicDeliverable { /** * Executes the command and returns the result. * @param commandText The command as entered by the user. * @return the result of the command execution. * @throws CommandException If an error occurs during command execution. * @throws ParseException If an error occurs during parsing. */ CommandResult execute(String commandText) throws CommandException, ParseException; /** * Returns the DeliverableBook. * * @see ModelDeliverable#getDeliverableBook() */ ReadOnlyDeliverableBook getDeliverableBook(); /** Returns an unmodifiable view of the filtered list of deliverables */ ObservableList<Deliverable> getFilteredDeliverableList(); /** Returns the internal list of deliverables */ ObservableList<Deliverable> getInternalDeliverableList(); /** Returns the deliverable that is currently in view */ Deliverable getDeliverableInView(); /** * Returns the user prefs' deliverable book file path. */ Path getDeliverableBookFilePath(); /** * Returns the user prefs' GUI settings. */ GuiSettings getGuiSettings(); /** * Set the user prefs' GUI settings. */ void setGuiSettings(GuiSettings guiSettings); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Delivery {\n\n void postDelivery(PlusRequest<?> plusRequest, Response<?> response);\n}", "public interface CommunicationService {\n public String postDeployment(UnitDeliveryResource unitDeliveryResource);\n\n public String postService(UnitServiceResource unitServiceResource);\n\n public boolean checkLocality(UnitDeliveryResource unitDeliveryResource);\n\n public List<SiteReource> getSites();\n}", "public interface SendMoney {\n boolean sendMoney(Transfer transfer);\n}", "public interface CompensatableWork {\n\n /**\n * A method implementing work which can be confirmed and/or compensated by ConfirmationHandler and CompensationHandler.\n */\n void execute();\n\n}", "public interface Sendable {\n\n}", "public interface ToNetworkProcessor {\n\n /**\n * Send message.\n *\n * @param message the message\n */\n void sendMessage(String message);\n}", "public interface Logic {\n /**\n * Executes the command and returns the result.\n * @param commandText The command as entered by the user.\n * @return the result of the command execution.\n * @throws CommandException If an error occurs during command execution.\n * @throws ParseException If an error occurs during parsing.\n */\n CommandResult execute(String commandText) throws CommandException, ParseException;\n\n /**\n * Returns the c.\n *\n * @see seedu.booking.model.Model#getBookingSystem()\n */\n ReadOnlyBookingSystem getBookingSystem();\n\n /** Returns an unmodifiable view of the filtered list of persons */\n ObservableList<Person> getFilteredPersonList();\n\n /** Returns an unmodifiable view of the upcoming list of bookings */\n ObservableList<Booking> getUpcomingBookingList();\n\n /** Returns an unmodifiable view of the filtered list of bookings */\n ObservableList<Booking> getFilteredBookingList();\n\n /** Returns an unmodifiable view of the filtered list of venue */\n ObservableList<Venue> getFilteredVenueList();\n\n /**\n * Returns the user prefs' booking system file path.\n */\n Path getBookingSystemFilePath();\n\n /**\n * Returns the user prefs' GUI settings.\n */\n GuiSettings getGuiSettings();\n\n /**\n * Set the user prefs' GUI settings.\n */\n void setGuiSettings(GuiSettings guiSettings);\n}", "public interface IDelivery {\n /**\n * Distribution request response result\n * \n * @param request\n * @param response\n */\n public void postRequestResponse(Request<?> request, Response<?> response);\n\n /**\n * Distribute Failure events\n * \n * @param request\n * @param error\n */\n public void postError(Request<?> request, HttpException error);\n\n /**\n * Distribution to read the cached results response\n * @param request\n * @param cacheData\n */\n public <T>void postCacheResponse(Request<?> request, T cacheData);\n \n /**\n * Prepare events at the start of the request\n * @param request\n */\n public void postRequestPrepare(Request<?> request);\n \n /**\n * Distribution to retry event\n * @param request\n * @param previousError An exception before\n */\n public void postRequestRetry(Request<?> request, int currentRetryCount, HttpException previousError);\n \n /**\n * Delivered current progress for request\n * @param request\n * @param transferredBytesSize\n * @param totalSize\n */\n public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);\n \n /**\n * Delivered upload progress for request\n * @param request\n * @param transferredBytesSize\n * @param totalSize\n * @param currentFileIndex The subscript is currently being uploaded file\n * @param currentFile Is currently being uploaded files\n */\n\tpublic void postRequestUploadProgress(Request<?> request, long transferredBytesSize, long totalSize, int currentFileIndex, File currentFile);\n\n}", "public interface IExchange {\r\n}", "public interface IMakeOrderactivity {\n\n void uploadRes(boolean res, OrderEx result);\n void updateLogisticFee(boolean res, LogisticFee logisticFee);\n void updateAddress(List<Address> list);\n}", "public interface ExchangeTasks {\n\n public Map<String, BotPrice> getData() throws ExchangeException;\n\n}", "public interface IShopEngine {\n\n\n /**\n * Moves a product from basket to archive basket\n */\n public void doShopping(IBasket basket,IArchiveBasket archiveBasket);\n\n}", "public interface WithHoldOrderContract {\r\n\r\n ResponseData resendWithholdOrder();\r\n \r\n}", "@ImplementedBy(PaypalCreditCardProcessor.class)\r\npublic interface CreditCardProcessor {\r\n\r\n public ChargeResult charge(CreditCard creditCard, double amount);\r\n\r\n}", "public interface SendService {\n\n void send(String exchange,String routingKey,String content);\n}", "public interface IBankWorkerAction extends INormalUserAction {\n // 查用户的信用\n void checkUserCredit();\n // 冻结用户账号\n void freezeUserAccount();\n}", "public interface MobileAppExpert {\n\n void deliverMobileApp();\n\n}", "public interface MessageProcessor{\n\n public void execMessage(MessageWrapper messageWrapper);\n}", "public interface ResourceChangeForMaketService {\n\n void send(Object o,User operator);\n}", "public interface Provider {\n public Sender produce();\n}", "public interface Comunicator {\n \n\n}", "public interface Packing {\n public String pack();\n}", "public interface Cashier {\n\t\n\t// Sent from waiter to computer a bill for a customer\n\tpublic abstract void msgComputeBill(String choice, Customer c, Waiter w, int tableNumber, Map<String, Double> menu);\n\t\n\t// Sent from a customer when making a payment\n\tpublic abstract void msgPayment(Customer customer, Cash cash);\n\n\tpublic abstract void msgAskForPayment(String food, int batchSize, Market market, double price);\n\n\tpublic abstract String getCash();\t\n\t\n\tpublic abstract String getTotalDebt(); \n}", "public interface IBusiness {\n public Map<String, Object> trade(Map<String, Object> msgMap);\n}", "public interface Logic {\n\n /**\n * Executes the command and returns the result.\n * @param commandText The command as entered by the user.\n * @return the result of the command execution.\n * @throws Exception If an error occurs during command execution.\n */\n CommandResult execute(String commandText) throws Exception;\n\n double getTotalExpenses();\n double getTotalInventory();\n double getTotalSales();\n double getRemainingBudget();\n double getExpenseTarget();\n double getSalesTarget();\n double getBudgetTarget();\n List<String> getTransactionCategories();\n List<String> getInventoryCategories();\n double getTransactionTotalByCategory(String category);\n double getInventoryTotalByCategory(String category);\n double getSalesTotalByMonth(LocalDate month);\n double getBudgetLeftByMonth(LocalDate month);\n List<OverallCommandResult> checkNotifications();\n}", "public interface DispatchingService {\n void startMovingShips(int numberShipTypeA, int numberShipTypeD, int numberShipTypeP, ControlValues controlValues) throws InterruptedException;\n void clearSquare();\n ArrayList<CellSquare> getSquareToJSON();\n}", "public interface IICCpuCardPresenter {\n void cardPower();\n void cardHalt();\n void exist();\n void exchangeApdu();\n}", "public interface AddDealInteractor {\n void createDeal(String name, String price, String info);\n}", "public interface HullModFleetEffect {\r\n\r\n\t/**\r\n\t * Called for *every* fleet, even fleets that don't have a ship with the specific hullmod.\r\n\t * \r\n\t * Shouldn't try to do a lot here; could have a lot of performance repercussions.\r\n\t * \r\n\t * @param fleet\r\n\t */\r\n\tvoid advanceInCampaign(CampaignFleetAPI fleet);\r\n\t\r\n\t\r\n\t/**\r\n\t * Whether the advanceInCampaign() method should be called for this hullmod.\r\n\t * @return\r\n\t */\r\n\tboolean withAdvanceInCampaign();\r\n\t\r\n\t/**\r\n\t * Whether the withOnFleetSync() method should be called for this hullmod.\r\n\t * @return\r\n\t */\r\n\tboolean withOnFleetSync();\r\n\t\r\n\t\r\n\t/**\r\n\t * Called when anything about the fleet composition changes, including hullmod changes.\r\n\t * Also called for all fleets, including fleets without ships with this hullmod.\r\n\t * @param fleet\r\n\t */\r\n\tvoid onFleetSync(CampaignFleetAPI fleet);\r\n}", "public interface OIMBizLocal {\n \n public void localOp();\n \n public void processEvent(BusinessEvent event);\n}", "public interface FlyBehavior {\n String fly();\n}", "public interface IModel{\r\n ApiServer doRxRequest();\r\n}", "public interface IProgressiveCustomRouting {\n void setStateGetter(Supplier<ProgressiveState> stateGetter);\n void setCustomCommand(Consumer<String> command);\n}", "public interface MovimentacaoChainHandler {\n\n void handleMovimentacao(Movimentacao movimentacao);\n}", "public interface AlipayPresenter\n{\n void alipayRequest();\n}", "public interface LocationModel {\n void getLocation(Subscriber<CommonResult> subscriber, GetLocationParam param);\n\n void sendLocation(Subscriber<CommonResult> subscriber, SendLocationParam param);\n}", "public interface WarehouseOperativeObserver {\n void updateOrder(OrderComponent orderComponent) throws OrderUpdateException;\n}", "public interface BoardBiz {\n\n public boolean writeArticle(BoardVO boardVO);\n public BoardVO getOneArticles(int boardId);\n public List<BoardVO> getAllArticles(BoardSearchVO boardSearchVO);\n public boolean removeArticle(int boardId);\n public boolean uploadArticle(BoardVO boardVO);\n\n}", "public interface ActionHandler {\n ModelApiResponse handleActionChoice(ActionChoice choice);\n List<AvailableActions> getActionsCurrentlyAvailable();\n}", "public interface Action {\n void buy();\n\n void sell();\n\n void drop();\n\n void pickup();\n\n}", "public interface ReceiverService {\n void process(String message);\n}", "public abstract boolean isDelivered();", "public interface Sendable {\n /**\n * Raw message to send\n */\n String getRawMessage();\n}", "public interface IAisMsgCommondService {\n\n /**\n * 常规预报AIS消息控制\n * */\n public int generalForecastCommond(GeneralForecastBo generalForecastBo);\n\n /**\n * 数值预报AIS消息控制\n * */\n public int numericalForecastCommond(List<NumericalForecastBo> numericalForecastBoList);\n\n /**\n * 短消息控制\n * */\n public int messageCommond(MessageBo msgBo);\n}", "public interface ServerProcessor {\n\n\t/**\n\t * Handle request,then return Object\n\t * \n\t * @param request\n\t * @return Object\n\t */\n\tObject handle(Object request);\n\t\n}", "public interface BusinessExecutor {\n\n int getBusinessType();\n\n void execute(String businessId);\n\n}", "public interface Action {\n\n /**\n * Execute.\n *\n * @param router the router\n * @param request the request\n * @return the response\n */\n public Response execute(Router router, Request request);\n\n}", "public interface OrderAction \r\n{\r\n\tpublic void add(Drink drink);\r\n\tpublic Drink getDrink(int i);\r\n\tpublic double getSubTotal();\r\n\tpublic double getTotal(double tip);\r\n}", "public interface Domainclient {\n public void investment();\n}", "public interface Component {\n\n public void operation();\n}", "public interface ITicketSpotBiz {\n //send ticket\n public void sendTicket(Player player);\n}", "public interface DeliveryService {\n\n public List<Delivery> listDelivery(int pageStart, int pageSize);\n\n public int countDelivery();\n\n public List<Delivery> listDeliveryByStock(int pageStart, int pageSize, String class_id, String entity_id, String stock_id, String officeId);\n\n public List<Delivery> listDeliveryByOffice(int pageStart, int pageSize,String stock_id);\n\n public List<Delivery> listDeliveryUNIONStorageByOffice(int pageStart, int pageSize, String stock_id);\n\n public Map<String, Object> addDelivery(Stock stock, Delivery delivery,String status);\n\n public Map<String, Object> addDelivery(Delivery delivery, String status);\n\n public boolean updateDeliveryStatus(String id);\n\n public Map<String, Object> deliveryReport(String startDate,String endDate);\n\n}", "public interface BuilderIntf extends LogicIntf {\r\n\r\n\t/**\r\n\t * Executes build process.\r\n\t * @return built and runnable instance.\r\n\t */\r\n\tpublic RunnerIntf build();\r\n\r\n}", "public interface Flyable\n{\n public void updateConditions();\n public void registerTower(WeatherTower weatherTower);\n public void unregisterTower(WeatherTower weatherTower);\n}", "public interface PoolingQueueService {\n\n void setIMessageProcessor(final IMessageProcessor iMessageProcessor) throws PoolingQueueException;\n\n MessageMapper cconn(String serialNumber, String contentType, MessageMapper messageMapper);\n\n MessageMapper cpull(String serialNumber);\n\n MessageMapper cpush(String serialNumber, String applicationID, String broadcast, String contentType, MessageMapper messageMapper);\n\n MessageMapper aconn(String serialNumber, String applicationID, String contentType, MessageMapper messageMapper);\n\n MessageMapper apull(String serialNumber, String applicationID, String messageAmount);\n\n MessageMapper apush(String serialNumber, String applicationID, String contentType, MessageMapper messageMapper);\n\n}", "public interface Logic {\n /**\n * Executes the command and returns the result.\n * @param commandText The command as entered by the user.\n * @return the result of the command execution.\n * @throws CommandException If an error occurs during command execution.\n * @throws ParseException If an error occurs during parsing.\n */\n CommandResult execute(String commandText) throws CommandException, ParseException;\n\n /**\n * Returns the AddressBook.\n *\n * @see organice.model.Model#getAddressBook()\n */\n ReadOnlyAddressBook getAddressBook();\n\n /**\n * Returns a list of persons to be displayed\n */\n ObservableList<Person> getDisplayedPersonList();\n\n /**\n * Returns the user prefs' address book file path.\n */\n Path getAddressBookFilePath();\n\n /**\n * Returns the user prefs' GUI settings.\n */\n GuiSettings getGuiSettings();\n\n /**\n * Set the user prefs' GUI settings.\n */\n void setGuiSettings(GuiSettings guiSettings);\n}", "public interface PaymentStrategy {\n\n void pay(double amount);\n\n}", "public interface SendMailService {\n void send(MailSendDto mailConfigDto);\n}", "interface Workshop{\n\tabstract public void work();\n}", "public interface ISmartFlyper {\n <T> T send(WrapperMethod method);\n}", "public interface IScheduleInteractor\n extends IScheduleableInteractor {\n\n List<ScheduleItemDTO> getScheduleEvents(FilterConditions conditions);\n\n List<DateTime> getDatesWithoutEvents(FilterConditions conditions);\n\n boolean eventExist(int id);\n\n ScheduleItemDTO getEvent(int eventId);\n}", "public interface IPullWxUser {\n\n /**\n * 把公众号推荐给用户\n */\n void pull(WxPullPublicObservable publicObservable) ;\n\n}", "public interface WorkflowOrchestrator {\n\n <T> Workflow<T> start(WorkflowMeta workflowMeta, Entity<T> entity);\n List<Task> onComplete(Task task, ExecutionContext context);\n List<Task> onFailure(Task task);\n}", "public interface MessageSender {\n boolean handle(Context context, MessageResponse response);\n}", "public interface OrderExcuter {\n void excute(IOrder order);\n\n}", "public interface AdditionalOrderInforCaller {\n\t/*\n\t * Command define from Order Confirmation API Guide\n\t * JSON and XML format\n\t */\n\t@Headers({\"Accept: application/json\",\"Content-Type: application/json\"})\n\t@RequestLine(\"POST /ordermgmt/order/addorderinfo?sellerid={sellerid}\")\n\tGetAdditionalOrderInformationResponse sendAdditionalOrderInforRequestJSON(@Param(\"sellerid\") String sellerID, GetAdditionalOrderInformationRequest body);\n\t\n\t@Headers({\"Accept: application/xml\",\"Content-Type: application/xml\"})\n\t@RequestLine(\"POST /ordermgmt/order/addorderinfo?sellerid={sellerid}\")\n\tGetAdditionalOrderInformationResponse sendAdditionalOrderInforRequestXML(@Param(\"sellerid\") String sellerID, GetAdditionalOrderInformationRequest body);\n\n\t// Implement default method of interface class that according to Variables.MediaType to run at JSON or XML request.\n\tdefault GetAdditionalOrderInformationResponse sendAdditionalOrderInforRequest(GetAdditionalOrderInformationRequest body) {\n\t\tswitch(Variables.MediaType) {\n\t\tcase JSON:\t\t\t\n\t\t\treturn sendAdditionalOrderInforRequestJSON(Content.SellerID, body);\n\t\t\t\n\t\tcase XML:\t\t\t\n\t\t\treturn sendAdditionalOrderInforRequestXML(Content.SellerID, body);\t\n\t\t\t\n\t\tdefault:\n\t\t\tthrow new RuntimeException(\"Never Happened!\");\n\t\t}\n\t\t\t\t\n\t}\n\t\n\tstatic AdditionalOrderInforCaller buildJSON() {\n\t\tVariables.MediaType = MEDIA_TYPE.JSON;\n\t\t\n\t\treturn new CallerFactory<AdditionalOrderInforCaller>()\n\t\t\t.jsonBuild(AdditionalOrderInforCaller.class, Variables.LogLevel, Variables.Retryer, OrderClient.genClient());\t\t\n\t}\n\n\tstatic AdditionalOrderInforCaller buildXML() {\n\t\tVariables.MediaType = MEDIA_TYPE.XML;\n\t\t\n\t\treturn new CallerFactory<AdditionalOrderInforCaller>()\n\t\t\t.xmlBuild(AdditionalOrderInforCaller.class, Variables.LogLevel, Variables.Retryer, OrderClient.genClient());\t\t\n\t}\n\t\n}", "public interface Flyable{\r\n\tString fly();\r\n}", "public interface AsynchChannelsGateway {\n\n public Message<String> send(Message<String> message);\n\n}", "public interface ApiCommand extends Serializable {\n public void execute(GiftApiClient apiClient);\n}", "public interface SingleTaskOrderController {\n\n /**\n * This method is used to place a SingleTaskOrder.\n *\n * @param user The user who wants to place the order\n * @param order The order the caller wants to place.\n */\n public void placeSingleTaskOrder(User user, SingleTaskOrder order);\n\n}", "public interface IMessageInputStrategy{\n public abstract Message getMessage();\n}", "public interface CoreServiceInvoker {\n\n\n GWRequest processRequest(Object requestData, InterfaceMapper mapper);\n\n /**\n * 处理请求信息\n */\n GWRequest processRequest(Object requestData, InterfaceMapper mapper, boolean needPackage);\n\n /**\n * 调用核心方法\n */\n GWResponse invoke(GWRequest request, boolean needPackage);\n\n /**\n * 处理返回信息\n */\n Object analysisResponse(GWRequest request, GWResponse response);\n Object analysisResp(GWRequest request, GWResponse response);\n}", "public interface CommonService {\r\n\r\n\t/**\r\n\t * Get all currency details.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tList<CurrencyDTO> getCurrencies();\r\n\t\r\n\t/**\r\n\t * Send email\r\n\t * \r\n\t * @param emailReq\r\n\t * @return\r\n\t * @throws UtilityServicesException\r\n\t */\r\n\tboolean sendEmail(EmailReq emailReq) throws UtilityServicesException;\r\n}", "@Override\n\tpublic boolean isDeliverable() {\n\t\treturn true;\n\t}", "public interface Offerable {\n //this is a marker interface to allow a function in Checkout to run depending on what subclass of item is being used as an argument\n}", "public interface IFlowableStrategy {\n\n <T> Publisher<CacheResult<T>> flow(RxCache rxCache, String key, Flowable<T> source, Type type);\n}", "public interface IConvertContract {\n interface IConvertView extends IBaseView{\n void showOrderGoods(List<OrderGoodsDto> orderGoodsDtos);\n void startSelectAddress();\n void showDefaultAddress(AddressDto addressDto);\n\n void showConversionGoodsResult(boolean isSuccess);\n void showTotalMoney(int totalMoney);\n }\n\n interface IConvertModel{\n Observable<String> doConversionGoods(List<OrderGoodsDto> orderGoodsDtos);\n Observable<AddressDto> getDefaultAddress();\n }\n\n interface IConvertPresenter{\n void doSelectAddress();\n void getDefaultAddress();\n void doConvertGoodsToOrder(List<GoodsDto> goodsDtos);\n void doConversionGoods(List<OrderGoodsDto> orderGoodsDtos);\n void doSetTotalMoney(int totalMoney);\n }\n}", "public void deliverStone1() {\n }", "public interface FlowLogicCommonMethods {\n Party firstNotary(@NotNull ServiceHub $receiver);\n StateAndRef loadState(@NotNull ServiceHub $receiver, @NotNull UniqueIdentifier linearId, @NotNull Class clazz);\n Party resolveIdentity(@NotNull ServiceHub $receiver, @NotNull AbstractParty abstractParty);\n\n\n public static final class DefaultImpls {\n @NotNull\n public static Party firstNotary(@NotNull ServiceHub receiver) {\n Intrinsics.checkParameterIsNotNull(receiver, \"receiver\");\n Party var10000 = (Party)CollectionsKt.firstOrNull(receiver.getNetworkMapCache().getNotaryIdentities());\n if (var10000 != null) {\n return var10000;\n } else {\n throw (new NotaryNotFoundException(\"No available notary.\"));\n }\n }\n\n @NotNull\n public static StateAndRef loadState(@NotNull ServiceHub receiver,\n @NotNull UniqueIdentifier linearId,\n @NotNull Class cls) {\n Intrinsics.checkParameterIsNotNull(receiver, \"receiver\");\n Intrinsics.checkParameterIsNotNull(linearId, \"linearId\");\n Intrinsics.checkParameterIsNotNull(cls, \"cls\");\n LinearStateQueryCriteria queryCriteria = new LinearStateQueryCriteria((List)null, CollectionsKt.listOf(linearId), StateStatus.UNCONSUMED, (Set)null);\n StateAndRef var10000 = (StateAndRef)CollectionsKt.singleOrNull(receiver.getVaultService().queryBy(cls, (QueryCriteria)queryCriteria).getStates());\n if (var10000 != null) {\n return var10000;\n } else {\n throw (new StateNotFoundOnVaultException(\"State with id \" + linearId + \" not found.\"));\n }\n }\n\n @NotNull\n public static Party resolveIdentity(@NotNull ServiceHub receiver, @NotNull AbstractParty abstractParty) {\n Intrinsics.checkParameterIsNotNull(receiver, \"$receiver\");\n Intrinsics.checkParameterIsNotNull(abstractParty, \"abstractParty\");\n return receiver.getIdentityService().requireWellKnownPartyFromAnonymous(abstractParty);\n }\n }\n}", "public interface ProductHandler {\n void handle(Product product);\n}", "public interface IComponent {\n \n double getCosto();\n void setCosto(double valor);\n String getFunciona();\n \n}", "public interface Sender {\r\n public void send();\r\n}", "public interface Restaurant4Customer {\n\n\t/**\n\t * @param amount The cost that was not paid and is added to the amount owed by the customer\n\t *\n\t * Sent by the cashier if the customer does not have enough money to pay.\n\t */\n\tpublic abstract void msgPayNextTime(double amount);\n\n\tpublic abstract void msgAnimationFinishedGoToSeat();\n\n\tpublic abstract void msgAnimationFinishedGoToWaitingArea();\n\n\tpublic abstract void msgAnimationFinishedLeaveRestaurant();\n\n\tpublic abstract void gotHungry();\n\n\tpublic abstract Object getGui();\n\n\tpublic abstract void setWaiter(Restaurant4Waiter waiter);\n\n\tpublic abstract void msgRestaurantIsFull(int seat);\n\n\tpublic abstract void msgFollowMe(int table);\n\n\tpublic abstract void msgWhatDoYouWant();\n\n\tpublic abstract void msgChooseNewOrder();\n\n\tpublic abstract void msgHereIsYourFood();\n\n\tpublic abstract void msgHereIsYourCheck(double checkAmt);\n\n\tpublic abstract void setHost(Restaurant4Host h1);\n\n\tpublic abstract void setCashier(Restaurant4Cashier ca);\n\n}", "public interface BaseExportFileApi {\n boolean export(String data);\n}", "public interface Strategy {\n\n\n\tpublic void operation();\n\n}", "public interface BlockDownloader {\n\n /**\n * send the request and check that we received the correct block.\n */\n Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);\n}", "public interface BusinessBar {\n String bar(String message);\n String bar2(String message);\n\n}", "public interface Pipeline {\n void pushMessage(ChatMessage message);\n}", "public interface Transferable {\n\n\n\n /**\n *\n * @throws Exception\n */\n void init() throws Exception;\n\n\n /**\n *\n * @throws Exception\n */\n void parseHeader() throws Exception;\n\n\n /**\n *\n * @throws Exception\n */\n void parseBody() throws Exception;\n\n\n /**\n *\n * @throws Exception\n */\n void finish() throws Exception;\n}", "public interface DistributorConnector {\n\n /**\n * Lets the factory know what the current demand of the distributor is.\n *\n * @param demandPerType the demand of the distributer by type\n */\n public void setDemand(Map<ClockType, Integer> demandPerType);\n\n /**\n * Registers a listener for clock updates in the distributor stock.\n *\n * @param listener the listener to be registered\n * @return a subscription for the registration that can be cancelled\n */\n public Subscription subscribeForDistributorDeliveries(ClockListener listener);\n\n /**\n * Removes the given clock from the distributor stock.\n *\n * @param removedClock the clock to be removed.\n */\n public void removeClockFromStock(Clock removedClock);\n}", "public interface ShipmentsInterface {\n\n /**\n * Method that calcule the cost of the shipment\n *\n * @param purchase the purchase shipment\n * @return the cost of the shipment\n */\n public double calculateCost(Purchase purchase);\n\n}", "public interface CommercialUpdateNotificationService {\n void notify(Commercial commercial);\n}", "public interface Implementor {\n // 实现抽象部分需要的某些具体功能\n void operationImpl();\n}", "public interface Transport {\r\n /**\r\n * Prepares connection to server and returns connection output stream.\r\n * \r\n * @param info\r\n * connection information object containing target URL, content encoding, etc.\r\n * @return connection output stream\r\n * @throws TransportException\r\n */\r\n OutputStream prepare(ConnectionInfo info) throws TransportException;\r\n \r\n \r\n // this method used for wsg request -- by felix\r\n /**\r\n * Prepares connection to server and returns connection output stream.\r\n * \r\n * @param info\r\n * connection information object containing target URL, content encoding, etc.\r\n * @return connection output stream\r\n * @throws TransportException\r\n */\r\n void prepare(ConnectionInfo info,byte[] reqXml) throws TransportException;\r\n\tpublic InputStream configPrepare(ConnectionInfo info) throws TransportException;\r\n public InputStream prepareAndConnect(ConnectionInfo info) throws TransportException ;\r\n public void prepareWsgPost(ConnectionInfo info,byte[] reqXml) throws TransportException ;\r\n \r\n\r\n /**\r\n * Sends request to server and receives a response.\r\n * <em>{@link #prepare(ConnectionInfo)} should be called prior to performing an exchange.</em>\r\n * \r\n * @return input stream containing server response\r\n * \r\n * @throws TransportException\r\n */\r\n InputStream exchange() throws TransportException;\r\n\r\n /**\r\n * Closes any pending connections and frees transport resources.\r\n */\r\n void close();\r\n}", "public interface IServiceOrderDetailView {\n void getOrderInfoSuccess(Orders orders);\n\n void reDistributeSuccess();\n}", "public interface Payable\r\n{\r\n\tdouble getPaymentAmount(); // calculate payment; no implementation\r\n}", "public interface GiftContract {\n\n interface IGiftModel {\n Observable<BaseBean<GiftBean>> activityGift(String dailyId);\n }\n\n interface View extends BaseView {\n void activityGiftSuccess(GiftBean giftBean);\n }\n\n}", "public interface IAction {\n /**\n * request dispatcher.\n * @param request objet resuete\n * @param response objet reponse\n * @return String return if the response is ok or ko\n */\n String execute(HttpServletRequest request, HttpServletResponse response);\n}", "public interface OrderService {\n\n void makeOrder(Order order);\n}", "public interface sendNotification {\n\n boolean sendFiestaEmail(FiestaPlayer fiestaPlayer, eMailMessage e_mail, String subject);\n\n boolean sendEmail(Player player, eMailMessage e_mail, String subject);\n\n boolean sendFixtureMail(Player player, eMailMessage mail);\n\n}" ]
[ "0.6529892", "0.6496352", "0.6375498", "0.63557124", "0.63249147", "0.63241595", "0.62786806", "0.6251816", "0.62358946", "0.61297876", "0.61076164", "0.6066607", "0.6047828", "0.6036405", "0.60297155", "0.6006085", "0.59880686", "0.59533435", "0.5946167", "0.59422725", "0.5931899", "0.5926542", "0.59237134", "0.5912387", "0.5910384", "0.5909484", "0.58862036", "0.58821666", "0.58632827", "0.5854746", "0.58472425", "0.58405894", "0.58321416", "0.5803126", "0.57880527", "0.5784623", "0.5782354", "0.57815516", "0.57807", "0.57805896", "0.57730603", "0.57715404", "0.57685566", "0.5767417", "0.5762844", "0.5759985", "0.5757953", "0.5755561", "0.57464725", "0.5746395", "0.574261", "0.5737981", "0.5736494", "0.57360667", "0.5733094", "0.5728745", "0.5726916", "0.57174194", "0.57173955", "0.57136637", "0.5713331", "0.5704026", "0.5703542", "0.57033134", "0.5701118", "0.569366", "0.5687662", "0.5687187", "0.56789756", "0.56596076", "0.56591797", "0.56495404", "0.5639205", "0.563685", "0.5636175", "0.5632624", "0.5628369", "0.5616992", "0.5615856", "0.5614202", "0.5605729", "0.5601931", "0.5599359", "0.5597701", "0.5595446", "0.5594841", "0.5594654", "0.5593073", "0.55900747", "0.55869466", "0.5582151", "0.5581695", "0.5580588", "0.5580082", "0.5576953", "0.55767214", "0.557625", "0.5573855", "0.55710876", "0.55710167" ]
0.7749695
0
Executes the command and returns the result.
CommandResult execute(String commandText) throws CommandException, ParseException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CommandResult execute();", "CommandResult execute(String commandText) throws Exception;", "protected String execute(String command)\n {\n if (this.isValid()) { \n try { \n JSch jsch = new JSch(); \n jsch.addIdentity(this.privatekey, this.publickey, this.passphrase.getBytes()); \n\n Session session = jsch.getSession(this.user, this.host, this.port);\n session.setConfig(\"StrictHostKeyChecking\", \"no\");\n session.connect();\n\n ChannelExec channel = (ChannelExec)session.openChannel(\"exec\");\n channel.setCommand(command);\n channel.setErrStream(System.err);\n InputStream in = channel.getInputStream(); \n channel.connect();\n\n byte[] data = new byte[1024];\n StringBuilder stdout = new StringBuilder();\n while(true) {\n while (in.available() > 0) {\n int read = in.read(data,0 ,1024);\n if (read < 0) \n break; \n stdout.append(new String(data, 0, read ));\n }\n if (channel.isClosed()) {\n if (in.available() > 0)\n continue;\n break;\n }\n Thread.sleep(500); // I absolutely don't of this is too much or less\n }\n int code = channel.getExitStatus();\n\n LOGGER.debug(\"exit code: \" + code + \" message: \" + stdout); \n\n channel.disconnect();\n session.disconnect();\n return stdout.toString();\n } \n catch (JSchException | IOException | InterruptedException ex) {\n LOGGER.error(ex.getMessage(), ex);\n }\n }\n \n return \"\";\n }", "public int execute(String cmd) throws IOException, TapisException\n {\n return execute(cmd, new ByteArrayOutputStream(DEFAULT_OUTPUT_LEN));\n }", "@Override\n\tpublic String execute() throws Exception {\n\t\t\n\t\treturn super.execute();\n\t}", "@Override\n\tpublic String execute() throws Exception {\n\t\treturn super.execute();\n\t}", "@Override\n\tpublic String execute() throws Exception {\n\t\treturn super.execute();\n\t}", "@Override\n\tpublic String execute() throws Exception {\n\t\treturn super.execute();\n\t}", "public int execute();", "@SuppressWarnings(\"unchecked\")\n public <T> T execute() {\n return (T) fetchResponse(getCallToExecute());\n }", "protected int execute(String command) {\n\t\treturn 0; //TODO let shell execute this\n\t}", "boolean executeCommand(ICommand _command) throws Exception;", "R execute();", "@Override\n\t\t\tpublic Boolean execute() throws EvrythngException {\n\t\t\t\tHttpClient client = new DefaultHttpClient();\n\t\t\t\ttry {\n\t\t\t\t\t// Execute request (response status code will be automatically checked):\n\t\t\t\t\treturn command.execute(client) != null;\n\t\t\t\t} finally {\n\t\t\t\t\tcommand.shutdown(client);\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\tpublic String execute() throws Exception {\n\t\treturn null;\r\n\t}", "CommandResult execute(String commandText) throws CommandException, ParseException, UnmappedPanelException;", "void execute() throws CommandExecutionException;", "public boolean execute();", "Optional<String> execute(String command, List<String> args);", "public synchronized String execute() throws PowerShellException {\n\t\treturn this.execute(false);\n\t}", "public State execute(int command, State state);", "private CommandResult executeCommand(String commandText) throws CommandException,\n ParseException, InvalidTaskListOperationException, IllegalArgumentException {\n try {\n CommandResult commandResult = logic.execute(commandText);\n logger.info(\"Result: \" + commandResult.getFeedbackToUser());\n feedbackBox.setFeedbackToUser(commandResult.getFeedbackToUser());\n refreshTitle();\n\n // categoryPanel.setFeedbackToUser(commandResult.getFeedbackToUser());\n if (commandResult.isExit()) {\n handleExit();\n }\n\n return commandResult;\n } catch (CommandException | ParseException | InvalidTaskListOperationException | IllegalArgumentException e) {\n logger.info(\"Invalid command: \" + commandText);\n feedbackBox.setFeedbackToUser(e.getMessage());\n throw e;\n }\n }", "public void execute();", "public void execute();", "public void execute();", "public void execute();", "WrappedAnswer execute(WrappedCommand aWrappedCommand);", "public void execute() {\n\t\ttry {\n\t\t\tMethod method = this.getClass().getMethod(parseMethod(), new Class[0]);\n\t\t\tmethod.invoke(this, new Object[0]);\n\t\t} catch (NoSuchMethodException | SecurityException e) {\n\t\t\tSystem.out.println(\"Unknown option: \" + command);\n\t\t} catch (IllegalAccessException | IllegalArgumentException e) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Invalid usage of: \" + command + \", the following error \" + \"was given: \" + e.getMessage());\n\t\t} catch (InvocationTargetException e) {\n\t\t\tSystem.out.println(\"An error occurred while executing '\" + command + \"'. The \"\n\t\t\t\t\t+ \"following error was given: \" + e.getCause());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "<T extends Command> T execute(T command);", "@Api(1.1)\n public Response execute() throws HaloNetException {\n return mBuilder.mClient.request(mRequest);\n }", "public abstract int execute();", "public String execute() throws Exception {\n\t\treturn \"success\";\n\t}", "@SuppressWarnings(\"unchecked\")\n public void execute() {\n execute(null, null);\n }", "@Override\n public byte[] execute() {\n return buildResponse();\n }", "@Override\n\tpublic String execute() throws Exception {\n\t\t\n\t\treturn \"success\";\n\t \n\t\t\n\t}", "@Override\n\tpublic CommandProxy execute() {\n\t\tCommandProxy proxy = build();\n\t\tproxy.execute();\n\t\treturn proxy;\n\t}", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "public void execute() {\n if (hasError())\n return;\n\n runLocally();\n runRemotely();\n }", "boolean execute();", "@Test\n\tpublic void execute() {\n\t\tcommand.execute(request);\n\t}", "public Result executeCommand(Command command) {\n return command.execute(this.taskList, this.parser, this.aliasStorage, this.taskStorage, ui);\n }", "ExecutionResult<Void> execute();", "public native int execute(String name);", "public static String executeCommand(String command) {\r\n\r\n\t StringBuffer output = new StringBuffer();\r\n\r\n\t Process p;\r\n\t try {\r\n\t p = Runtime.getRuntime().exec(command);\r\n\t p.waitFor();\r\n\t BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));\r\n\r\n\t String line = \"\"; \r\n\t while ((line = reader.readLine())!= null) {\r\n\t output.append(line + \"\\n\");\r\n\t }\r\n\r\n\t } catch (Exception e) {\r\n\t e.printStackTrace();\r\n\t }\r\n\r\n\t return output.toString();\r\n\t}", "private CommandResult executeCommand(String commandText) throws CommandException, ParseException {\n try {\n runningCommand = true;\n if (DateCustom.isValidDate(commandText.trim())) {\n commandText = \"taskcal \" + commandText;\n }\n CommandResult commandResult = logic.execute(commandText);\n logger.info(\"Result: \" + commandResult.getFeedbackToUser());\n resultDisplay.setFeedbackToUser(commandResult.getFeedbackToUser());\n runningCommand = false;\n\n if (commandResult.isExit()) {\n handleExit();\n }\n\n if (commandResult.isShowHelp()) {\n handleHelp();\n }\n return commandResult;\n } catch (CommandException | ParseException e) {\n runningCommand = false;\n logger.info(\"Invalid command: \" + commandText);\n resultDisplay.setFeedbackToUser(e.getMessage());\n throw e;\n }\n }", "public Object executeScript(String command);", "public void execute() {\n }", "@Override\n\tpublic Object execute() {\n\n\t\treturn null;\n\t}", "public void execute() {\n\t\t\n\t}", "private CommandResult executeCommand(String commandText) throws CommandException, ParseException {\n try {\n CommandResult commandResult = logic.execute(commandText);\n logger.info(\"Result: \" + commandResult.getFeedbackToUser());\n resultDisplay.setFeedbackToUser(commandResult.getFeedbackToUser());\n if (commandResult.isToExit()) {\n handleExit();\n }\n if (commandResult.isToShowHelp()) {\n handleHelp();\n }\n if (commandResult.isToUpdateLeftPanel()) {\n updateLeftPanel();\n }\n if (commandResult.isToUpdateRightPanel()) {\n updateRightPanel();\n }\n if (commandResult.getIndexToShow() != null) {\n listPanel.selectDisplayable(commandResult.getIndexToShow());\n }\n if (commandResult.getNewPlaceholderText() != null) {\n commandBox.updatePlaceholder(commandResult.getNewPlaceholderText());\n } else if (!commandBox.getPlaceholder().equals(CommandBox.DEFAULT_PLACEHOLDER_TEXT)) {\n commandBox.updatePlaceholder(CommandBox.DEFAULT_PLACEHOLDER_TEXT);\n }\n return commandResult;\n } catch (CommandException | ParseException e) {\n logger.info(\"Invalid command: \" + commandText);\n resultDisplay.setFeedbackToUser(e.getMessage());\n throw e;\n }\n }", "public int execute(String cmd, OutputStream outErrStream) \n throws IOException, TapisException\n {\n return execute(cmd, outErrStream, outErrStream);\n }", "public String Execute( String command ){\r\n\t\tString Return = \"\";\r\n\t\tString TypeOfReturn = \"Return>\";\r\n\t\ttry{\r\n\t\t\t//Connect();\r\n\t\t\tStatement dbStatement = conn.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE,\r\n\t\t\t\tResultSet.CONCUR_READ_ONLY );\r\n\t\t\t//DatabaseMetaData m = conn.getMetaData();\r\n\t\t\t//m.getColumns();\r\n\r\n\t\t\tResultSet dbResults = dbStatement.executeQuery( command );\r\n\r\n\t\t\twhile( dbResults.next()){\r\n\t\t\t\tReturn += dbResults.getString( 1 );\t \r\n\t\t\t\t// very simple results processing...\r\n\t\t\t}\r\n\t\t}catch( Exception x ){\r\n\t\t\tReturn = x.toString();\r\n\t\t\tError = x.toString();\r\n\t\t\tTypeOfReturn = \"Error>\";\r\n\t\t}\r\n\t\treturn \"<\" + TypeOfReturn + Return + \"</\" + TypeOfReturn + \"\\0\";\r\n\t\t\t// '\\0' required by Flash\r\n\t}", "private CommandResult executeCommand(String commandText) throws CommandException, ParseException {\n try {\n CommandResult commandResult = logic.execute(commandText);\n if (UiUtil.isGeneralCommand(commandResult)) {\n UiUtil.handleGeneralCommand((GeneralCommandResult) commandResult);\n return commandResult;\n }\n\n uiStateListener.updateState(commandResult.getCommandResultType());\n commandResultStateListener.updateState(commandResult);\n return commandResult;\n } catch (CommandException | ParseException e) {\n logger.info(\"Invalid command: \" + commandText);\n resultDisplay.setFeedbackToUser(e.getMessage());\n quizScoreDisplay.setFeedbackToUser(e.getMessage());\n throw e;\n }\n }", "Future<Object> execCmd(byte[] cmd, byte[]... params);", "@Override\n public void execute() {\n this.setMyReturnValue(myHandler.getXcor());\n }", "@Override\n\tpublic void execute() {\n\t\tcmdReceiver.send();\n\t}", "public void execute() throws MissingDescriptionException, InvalidCommandException {\n }", "private String exec(String cmd, File ws, String errorMessage) throws IOException, ProcessingException {\n listener.info(\"Executing: \"+cmd);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n int r = new Proc(cmd, null, baos, ws).join();\n if(r!=0) {\n listener.info(baos.toString());\n throw new ProcessingException(errorMessage);\n }\n return baos.toString();\n }", "public String execute() throws Exception {\n\t\treturn SUCCESS;\r\n\t}", "public String execute() throws Exception {\n\t\treturn SUCCESS;\r\n\t}", "public void execute() {\n\n\t}", "@Override\n\tpublic String execute() throws Exception {\n\t\treturn \"send\";\n\t}", "public abstract boolean doCommand() throws Exception;", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "public void execute() {\r\n\t\r\n\t}", "@Override\n\tpublic String execute() throws Exception {\n\t\tmessage = \"hello world111\";\n\t\treturn \"success\";\n\t}", "protected void execute() {}", "@Override\n public String execute() throws Exception {\n return SUCCESS;\n }", "public int execute() throws IOException {\n\t\tCommandLine commandLine = createCommandLineForExecutable();\n\t\tappendGraphPathParameters(commandLine);\n\t\tappendThreadingParameters(commandLine);\n\t\tappendAlgorithmParameters(commandLine);\n\t\tappendOutputPathParameters(commandLine);\n\n\t\tLOG.debug(\"Starting job with command line: {}\", commandLine.toString());\n\n\t\tExecutor executor = createCommandExecutor();\n\t\texecutor.setStreamHandler(new PumpStreamHandler(System.out));\n\t\texecutor.setExitValue(0);\n\t\treturn executor.execute(commandLine);\n\t}", "private void executeCommand() {\n\t\texpression += operand;\n\t\tdouble execute = command.execute(expression);\n\t\toperand = new StringBuilder(Double.toString(execute));\n\t\tfirstOperand = true;\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public Object executeCommand() {\n\t\tif( this.newUser == null ) {\r\n\t\t\tSystem.out.println(\"this.newUser == null\");\r\n\t\t\treturn NewUserActor.NULL_USER;\r\n\t\t}\r\n\t\t//User currentUser = new User();\r\n\t\t\r\n\t\t// 要求Utility增加createNewUser(User userToBeAdded),Utility的数据都在DataPool里面\r\n\t\tSystem.out.println(this.newUser.getUserName());\r\n\t\tint result=DataPool.getInstance().createNewUser(this.newUser);\r\n\t\t// 由于底层没有实现,样例到此为止\r\n\t\t\r\n\t\t// 剩下的事情就是Utility向数据库检查合法性checkExistUser(),和更新数据库 createNewUserData()\t\r\n\t\t// 最后Utility更新DataPool并返回结果即可\r\n\t\tif(result==-2)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"USer Already Exist!!!\");\r\n\t\t\treturn NewUserActor.USER_EXIST;\r\n\t\t}\r\n\t\treturn NewUserActor.SUCCEED;\r\n\t}", "@Override\n\tpublic String execute() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String execute() {\n\t\treturn null;\n\t}", "protected String execCommand(String command) {\n\t\treturn executor.execCommand(command);\n\t}", "@Override\n public String execute() throws Exception {\n\treturn SUCCESS;\n }", "public void exec();", "public void execute(){\n\t\t\n\t}", "protected void execute() {\n command.start();\n }", "@Override\n public void execute() throws EngineException {\n Object target = JavaReflectionUtil.getObject(this.target, \n callStatement.getEntries().subList(1,\n callStatement.getEntries().size() - 1));\n this.getParent().setResult(executeMethod(target, callStatement));\n pop();\n }", "public String execute() {\n\r\n\t return \"\";\r\n\t }", "private void executeCommand() {\n Command command = null;\n\n switch (commandType) {\n case LIST:\n command = new ListCommand(taskManager, parameterData.getDescription());\n break;\n case DONE:\n command = new DoneCommand(taskManager, parameterData.getTaskNumber());\n break;\n case TODO:\n command = new AddCommand(taskManager, TaskType.TODO, parameterData.getDescription());\n break;\n case DEADLINE:\n command = new AddCommand(taskManager,\n TaskType.DEADLINE, parameterData.getDescription(),\n parameterData.getDateTime());\n break;\n case EVENT:\n command = new AddCommand(taskManager,\n TaskType.EVENT, parameterData.getDescription(),\n parameterData.getDateTime());\n break;\n case DELETE:\n command = new DeleteCommand(taskManager, parameterData.getTaskNumber());\n break;\n case BYE:\n command = new ByeCommand(taskManager);\n break;\n case FIND:\n command = new FindCommand(taskManager,\n parameterData.getFilterString(),\n parameterData.getMatchDate(),\n parameterData.getTimeSearch());\n break;\n case HELP:\n command = new HelpCommand(taskManager);\n break;\n default:\n commandUi.printNoCommandRan();\n }\n\n try {\n command.execute();\n } catch (IndexOutOfBoundsException e) {\n commandUi.printTaskDoneNotInRange();\n } catch (IllegalStateException e) {\n commandUi.printInvalidParameters();\n }\n }", "public ResultSet execute(String command) {\n try {\n connect = getConnection();\n statement = connect.createStatement();\n statement.execute(command);\n return statement.getResultSet();\n } catch (SQLException e) {\n System.err.println(\"Error while executing SQL statement\" + e.toString());\n return null;\n }\n }", "T execute() throws Exception;", "@Deprecated\n public static int execute(String command) throws ExecutionException {\n return execute(command, null, (OutputStream)null, (OutputStream)null, -1, 500);\n }", "public abstract T execute() throws Exception;", "@Override\r\n public void execute()\r\n {\r\n printInvalidCommandMessage();\r\n }", "@Override\r\n\tpublic void execute() throws Exception {\n\t\t\r\n\t}", "@Override\n public CommandResult execute(String commandText) throws CommandException, ParseException {\n logger.info(\"----------------[USER COMMAND][\" + commandText + \"]\");\n\n CommandResult commandResult;\n //Parse user input from String to a Command\n Command command = weeblingoParser.parseCommand(commandText);\n //Executes the Command and stores the result\n commandResult = command.execute(model);\n\n try {\n // Whenever a command is successfully executed, we will store all the content of FlashcardBook.\n storage.saveFlashcardBook(model.getFlashcardBook());\n } catch (IOException ioe) {\n throw new CommandException(FILE_OPS_ERROR_MESSAGE + ioe, ioe);\n }\n\n return commandResult;\n }" ]
[ "0.74551815", "0.7035694", "0.67570883", "0.6724153", "0.6695187", "0.6687024", "0.6687024", "0.6687024", "0.6674072", "0.6486407", "0.64638346", "0.64378214", "0.6309831", "0.6302412", "0.6300366", "0.6294803", "0.6294118", "0.62903875", "0.6281694", "0.62784654", "0.62608254", "0.6254144", "0.625286", "0.625286", "0.625286", "0.625286", "0.61883485", "0.61817205", "0.6172018", "0.61464953", "0.6143754", "0.6121268", "0.61142325", "0.6095288", "0.60814774", "0.6069663", "0.60632145", "0.60632145", "0.60632145", "0.60632145", "0.60632145", "0.60632145", "0.60632145", "0.6050204", "0.60430694", "0.60326093", "0.60048074", "0.6004129", "0.5993141", "0.59928614", "0.5991262", "0.59880346", "0.59854704", "0.59660065", "0.59639937", "0.59639376", "0.59614795", "0.5959224", "0.59576", "0.59506345", "0.5949719", "0.5949477", "0.5944095", "0.5933196", "0.5924724", "0.5924724", "0.5897625", "0.5893582", "0.5892966", "0.5878314", "0.5878314", "0.5868293", "0.58660793", "0.58610934", "0.58588165", "0.58564824", "0.5852154", "0.58502185", "0.58502185", "0.58502185", "0.58477837", "0.58447284", "0.58447284", "0.58405566", "0.5833123", "0.58296674", "0.5829494", "0.5827752", "0.5827362", "0.5823574", "0.58168685", "0.58116996", "0.58026296", "0.57806593", "0.5779603", "0.57784116", "0.5770296", "0.5765899" ]
0.6678805
10
Returns an unmodifiable view of the filtered list of deliverables
ObservableList<Deliverable> getFilteredDeliverableList();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ObservableList<Deliverable> getInternalDeliverableList();", "public java.util.List<WorldUps.UGoDeliver> getDeliveriesList() {\n if (deliveriesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(deliveries_);\n } else {\n return deliveriesBuilder_.getMessageList();\n }\n }", "java.util.List<WorldUps.UDeliveryMade> \n getDeliveredList();", "java.util.List<WorldUps.UGoDeliver> \n getDeliveriesList();", "public java.util.List<WorldUps.UDeliveryMade> getDeliveredList() {\n if (deliveredBuilder_ == null) {\n return java.util.Collections.unmodifiableList(delivered_);\n } else {\n return deliveredBuilder_.getMessageList();\n }\n }", "public WorldUps.UGoDeliver getDeliveries(int index) {\n return deliveries_.get(index);\n }", "public List<AnnotatedLinkWrapper> getItemsUnfiltered() {\n return getDelegate().getExtendedItems().stream()\n .map(AnnotatedLinkWrapper::new)\n .filter(al -> al.getTarget() != null)\n .filter(al -> al.getTarget().isInProduction())\n .collect(Collectors.toList());\n }", "public java.util.List<WorldUps.UGoDeliver> getDeliveriesList() {\n return deliveries_;\n }", "ObservableList<Task> getUnfilteredTaskList();", "WorldUps.UGoDeliver getDeliveries(int index);", "ObservableList<ReadOnlyEvent> getFilteredEventList();", "public java.util.List<? extends WorldUps.UGoDeliverOrBuilder> \n getDeliveriesOrBuilderList() {\n if (deliveriesBuilder_ != null) {\n return deliveriesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(deliveries_);\n }\n }", "public java.util.List<WorldUps.UDeliveryMade> getDeliveredList() {\n return delivered_;\n }", "public WorldUps.UGoDeliver getDeliveries(int index) {\n if (deliveriesBuilder_ == null) {\n return deliveries_.get(index);\n } else {\n return deliveriesBuilder_.getMessage(index);\n }\n }", "public Builder clearDeliveries() {\n if (deliveriesBuilder_ == null) {\n deliveries_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n deliveriesBuilder_.clear();\n }\n return this;\n }", "ObservableList<Task> getFilteredTaskList();", "public List<SensorResponse> getFilteredList(){\n return filteredList;\n }", "public List<T> getCopyOfUnfilteredItemList(){\n synchronized (listsLock){\n if (originalList != null){\n return new ArrayList<T>(originalList);\n } else {\n // if original list is null filtered list is unfiltered\n return new ArrayList<T>(filteredList);\n }\n }\n }", "ObservableList<Booking> getFilteredBookingList();", "java.util.List<com.google.cloud.channel.v1.PurchasableOffer> \n getPurchasableOffersList();", "List<String> getActiveFilters();", "public List<FilterableProperty> filterableProperties() {\n return this.innerProperties() == null ? null : this.innerProperties().filterableProperties();\n }", "ObservableList<Appointment> getFilteredAppointmentList();", "ObservableList<Person> getFilteredPersonList();", "public Collection<Miniserver> getFilteredMiniservers(){\n return this.filteredMiniservers;\n }", "ObservableList<MenuItem> getFilteredMenuItemList();", "WorldUps.UDeliveryMade getDelivered(int index);", "public Product[] getConsumerVisibleProducts () {\n return null;\n }", "public java.util.List<? extends WorldUps.UGoDeliverOrBuilder> \n getDeliveriesOrBuilderList() {\n return deliveries_;\n }", "private List<Equipe> getFavoriteEquipes(List<Equipe> allEquipes) {\n\t\tList<Equipe> retain = new ArrayList<Equipe>(allEquipes.size());\n\t\tfor (Equipe equipe : allEquipes) {\n\t\t\tif (equipe.favorite) {\n\t\t\t\tretain.add(equipe);\n\t\t\t}\n\t\t}\n\t\treturn retain;\n\t}", "private List<Enemy> filterEnemies(List<Enemy> enemies, Point towerPosition) {\n return enemies.stream().filter(e -> canReach(new Point((int) e.getX(), (int) e.getY()), towerPosition)).collect(Collectors.toList());\n }", "ObservableList<Link> getUnfilteredLinkList();", "ObservableList<Patient> getFilteredPatientList();", "public Set<Sendable> getSendables() {\r\n\t\tSet<Sendable> sendables = new HashSet<>();\r\n\t\tfor (Entity[] es : this.entities) {\r\n\t\t\tfor (Entity e : es) {\r\n\t\t\t\tif (e instanceof Sendable) {\r\n\t\t\t\t\tsendables.add((Sendable) e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sendables;\r\n\t}", "public WorldUps.UGoDeliverOrBuilder getDeliveriesOrBuilder(\n int index) {\n return deliveries_.get(index);\n }", "public List<MessageFilter> getFilters();", "ObservableList<Venue> getFilteredVenueList();", "public WorldUps.UDeliveryMade getDelivered(int index) {\n return delivered_.get(index);\n }", "public java.util.List<WorldUps.UGoDeliver.Builder> \n getDeliveriesBuilderList() {\n return getDeliveriesFieldBuilder().getBuilderList();\n }", "Deliverable getDeliverableInView();", "@Override\n\tpublic boolean isDeliverable() {\n\t\treturn true;\n\t}", "public void filterList(ArrayList<GroupChannel> filteredList) {\n }", "WorldUps.UGoDeliverOrBuilder getDeliveriesOrBuilder(\n int index);", "public static Observable<String> getObservableFiltered() {\n return observableSrc;//todo\n }", "ObservableList<Module> getFilteredModuleList();", "ObservableList<Module> getFilteredModuleList();", "ObservableList<Expense> getFilteredExpenseList() throws NoUserSelectedException;", "List<String> getFilters();", "protected List<Tuple<Operator, Property>> getPropertyFilters() {\n if (properties == null) {\n EntityDescriptor ed = getDescriptor();\n properties = filters.stream()\n .map(filter -> Tuple.create(filter.getFirst(), ed.getProperty(filter.getSecond())))\n .toList();\n }\n\n return Collections.unmodifiableList(properties);\n }", "default Collection<ItemStack> getContentsMatchingSimulated(Predicate<ItemStack> predicate) {\n\t\treturn this.getContentsSimulated().stream().map(ItemStack::copy).filter(predicate).collect(Collectors.toList());\n\t}", "com.google.cloud.channel.v1.PurchasableOffer getPurchasableOffers(int index);", "public java.util.List<? extends WorldUps.UDeliveryMadeOrBuilder> \n getDeliveredOrBuilderList() {\n if (deliveredBuilder_ != null) {\n return deliveredBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(delivered_);\n }\n }", "default Collection<ItemStack> getContentsMatching(Predicate<ItemStack> predicate) {\n\t\treturn this.getContents().values().stream().filter(predicate).collect(Collectors.toList());\n\t}", "public List<String> build()\n {\n return filters;\n }", "List<JSONObject> getFilteredItems();", "public List<String> getNotExportedSearchableFields() {\n return Collections.unmodifiableList(notExportedSearchableFields);\n }", "@GetMapping(\"/filtering-list\")\n\tpublic MappingJacksonValue retrieveListOfSomeBean() {\n\t\tList<SomeBean> list = Arrays.asList(new SomeBean(\"value1\", \"value2\", \"value3\"),\n\t\t\t\tnew SomeBean(\"value4\", \"value5\", \"value6\"));\n\n\t\tSimpleBeanPropertyFilter filter = SimpleBeanPropertyFilter.filterOutAllExcept(\"field2\", \"field3\");\n\n\t\tMappingJacksonValue mapping = filteringList(list, filter);\n\n\t\treturn mapping;\n\t}", "public interface ArmorFilter {\n List<Equipment> filter(List<Equipment> equipmentList);\n}", "List<Worker<?, ?>> getRecipients() {\n\t\tList<Worker<?, ?>> retval = Collections.unmodifiableList(recipients);\n\t\treturn retval;\n\t}", "ObservableList<Link> getFilteredLinkList();", "public java.util.List<WorldUps.UDeliveryMade.Builder> \n getDeliveredBuilderList() {\n return getDeliveredFieldBuilder().getBuilderList();\n }", "public FilterSource[] getFilterSources();", "private void collectUsingStream() {\n List<Person> persons =\n Arrays.asList(\n new Person(\"Max\", 18),\n new Person(\"Vicky\", 23),\n new Person(\"Ron\", 23),\n new Person(\"Harry\", 12));\n\n List<Person> filtered = persons\n .stream()\n .filter(p -> p.name.startsWith(\"H\"))\n .collect(Collectors.toList());\n\n System.out.println(\"collectUsingStream Filtered: \" + filtered);\n }", "public ArrayList<Task> getVisibleTasks() {\n ArrayList<Task> visibleTasks = new ArrayList<>();\n forAllTasks(new Consumer(visibleTasks) {\n /* class com.android.server.wm.$$Lambda$DisplayContent$TaskStackContainers$rQnI0Y8R9ptQ09cGHwbCHDiG2FY */\n private final /* synthetic */ ArrayList f$0;\n\n {\n this.f$0 = r1;\n }\n\n @Override // java.util.function.Consumer\n public final void accept(Object obj) {\n DisplayContent.TaskStackContainers.lambda$getVisibleTasks$0(this.f$0, (Task) obj);\n }\n });\n return visibleTasks;\n }", "public Filter [] getFilters() {\n return this.Filters;\n }", "public Filter [] getFilters() {\n return this.Filters;\n }", "@Nonnull\n public List<DeliveryItem> getItems() {\n return items;\n }", "public ArrayList<Product> getProducts() {\n\t\tArrayList<Product> scannedItems = new ArrayList<>();\n\n\t\tArrayList<Item> currentPurchases = purchaseList.getCurrentPurchases(); \n\n\t\tfor (Item item : currentPurchases) {\n\t\t\tProduct possibleProductToShow = this.getProductFromItem(item);\n\t\t\tif (possibleProductToShow != null) {\n\t\t\t\tscannedItems.add(possibleProductToShow);\n\t\t\t}\n\t\t}\n\n\t\treturn scannedItems;\n\t}", "java.util.List<? extends WorldUps.UDeliveryMadeOrBuilder> \n getDeliveredOrBuilderList();", "java.util.List<? extends WorldUps.UGoDeliverOrBuilder> \n getDeliveriesOrBuilderList();", "public final List<Produceable> findAllApplyable() {\r\n/* 29 */ return this.dao.findAll();\r\n/* */ }", "public List<Product> getFilteredRecommendedProductsList() {\n return filteredRecommendedProductsList;\n }", "public boolean isDelivered() {\n return !getMode().isCollection() && !isCarried();\n }", "public boolean isDeliverable() {\n if (getMode().isCollection() || !isCarried()) return false;\n return Map.isSameLocation(plan.cdst, carrier.getLocation());\n }", "public synchronized RewardItem[] takeHarvest()\n\t{\n\t\tfinal RewardItem[] harvest = harvestItems;\n\t\t\n\t\tharvestItems = null;\n\t\t\n\t\treturn harvest;\n\t}", "@Override\n public final CardCollectionView getCards(final boolean filter) {\n\n CardCollectionView cards = super.getCards(false);\n if (!filter) {\n return cards;\n }\n\n boolean hasFilteredCard = false;\n for (Card c : cards) {\n if (c.isPhasedOut()) {\n hasFilteredCard = true;\n break;\n }\n }\n\n if (hasFilteredCard) {\n CardCollection filteredCollection = new CardCollection();\n for (Card c : cards) {\n if (!c.isPhasedOut()) {\n filteredCollection.add(c);\n }\n }\n cards = filteredCollection;\n }\n return cards;\n }", "abstract List<String> getForwarded();", "@Override\n public List<Exchangeable> getExchangeables() {\n return null;\n }", "public List<Vegetable> getVegetables() {\n ArrayList<Vegetable> vegetables = new ArrayList<>();\n for (VegetablePortion vegetablePortion : list) {\n vegetables.add(vegetablePortion.getVegetable());\n }\n return vegetables;\n }", "public List<COSName> getFilters()\n {\n COSBase filters = stream.getFilters();\n if (filters instanceof COSName)\n {\n return Collections.singletonList((COSName) filters);\n } \n else if (filters instanceof COSArray)\n {\n return (List<COSName>)((COSArray) filters).toList();\n }\n return Collections.emptyList();\n }", "Collection<T> doFilter(RepositoryFilterContext context);", "public Collection getAllReceivables()\n throws RemoteException;", "@GetMapping(\"/filtering-list\")\r\n\tpublic MappingJacksonValue retrieveListBean() {\n\t\tList<SomeBean> list = Arrays.asList(new SomeBean(\"value1\",\"value2\",\"value3\"),\r\n\t\t\t\tnew SomeBean(\"value10\",\"value20\",\"value30\")\r\n\t\t\t\t);\r\n\t\tMappingJacksonValue mapping = new MappingJacksonValue(list);\r\n\t\tSimpleBeanPropertyFilter filter = SimpleBeanPropertyFilter.filterOutAllExcept(\"field3\", \"field2\");\r\n\t\tFilterProvider filters = new SimpleFilterProvider().addFilter(\"SomeBeanFilter\", filter);\r\n\t\tmapping.setFilters(filters);\r\n\t\treturn mapping;\r\n\t}", "@Override\r\n\tpublic List<Filtering> selectByAll() {\n\t\treturn filteringMapper.selectByAll();\r\n\t}", "WorldUps.UDeliveryMadeOrBuilder getDeliveredOrBuilder(\n int index);", "boolean hasFiltered() {\n return filtered;\n }", "public List<Food> getPortionedFoods() {\n return FoodListManager.convertListToPortionedFoods(foodEntries);\n }", "public Builder clearDelivered() {\n if (deliveredBuilder_ == null) {\n delivered_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n deliveredBuilder_.clear();\n }\n return this;\n }", "public List<FilterItem> getFilterItems() {\n\t\treturn filterItems;\n\t}", "public java.util.List<? extends WorldUps.UDeliveryMadeOrBuilder> \n getDeliveredOrBuilderList() {\n return delivered_;\n }", "public interface CustomerSubsetFilterStrategy {\r\n Set<Customer> applyFilter(List<Customer> customers);\r\n}", "public WorldUps.UGoDeliverOrBuilder getDeliveriesOrBuilder(\n int index) {\n if (deliveriesBuilder_ == null) {\n return deliveries_.get(index); } else {\n return deliveriesBuilder_.getMessageOrBuilder(index);\n }\n }", "@Override\n\tpublic Collection<Object> getItemIds() {\n\t\tHashSet<Object> filteredItemIds = new HashSet<Object>(super.getItemIds()),\n\t\t\t\titemIds = new HashSet<Object>(filteredItemIds);\n\t\tFilter filter = getAppliedFiltersAsConjunction();\n\t\tItem item = null;\n\t\tfor (Object itemId : itemIds) {\n\t\t\tif (itemId instanceof UUID) {\n\t\t\t\titem = getItem(itemId);\n\t\t\t\tif (item != null) {\n\t\t\t\t\tif (!filter.passesFilter(itemId, item)) {\n\t\t\t\t\t\tfilteredItemIds.remove(itemId);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfilteredItemIds.remove(itemId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn filteredItemIds;\n\t}", "public List<COSName> getFilters() {\n/* 312 */ List<COSName> retval = null;\n/* 313 */ COSBase filters = this.stream.getFilters();\n/* 314 */ if (filters instanceof COSName) {\n/* */ \n/* 316 */ COSName name = (COSName)filters;\n/* 317 */ retval = new COSArrayList<COSName>(name, (COSBase)name, (COSDictionary)this.stream, COSName.FILTER);\n/* */ }\n/* 319 */ else if (filters instanceof COSArray) {\n/* */ \n/* 321 */ retval = ((COSArray)filters).toList();\n/* */ } \n/* 323 */ return retval;\n/* */ }", "private List<TestCandidate> getFilteredTestCandidates() {\n // Apply suite filters.\n if (!suiteFilters.isEmpty()) {\n for (Filter f : suiteFilters) {\n if (!f.shouldRun(suiteDescription)) {\n return Collections.emptyList();\n }\n }\n }\n \n // Apply method filters.\n if (testFilters.isEmpty()) {\n return testCandidates;\n }\n \n final List<TestCandidate> filtered = new ArrayList<TestCandidate>(testCandidates);\n for (Iterator<TestCandidate> i = filtered.iterator(); i.hasNext(); ) {\n final TestCandidate candidate = i.next();\n for (Filter f : testFilters) {\n if (!f.shouldRun(Description.createTestDescription(\n candidate.instance.getClass(), candidate.method.getName()))) {\n i.remove();\n break;\n }\n }\n }\n return filtered;\n }", "public List reserveAll() {\n \n final List result;\n final List reserveList;\n \n synchronized (m_reservableListMutex) {\n purgeZombieResources();\n \n result = new ArrayList(m_reservables.size());\n reserveList = new ArrayList(m_reservables);\n }\n \n while (reserveList.size() > 0) {\n // Iterate backwards so remove is cheap.\n final ListIterator iterator =\n reserveList.listIterator(reserveList.size());\n \n while (iterator.hasPrevious()) {\n final Reservable reservable = (Reservable)iterator.previous();\n \n if (reservable.isSentinel()) {\n iterator.remove();\n }\n else if (reservable.reserve()) {\n result.add(reservable);\n iterator.remove();\n }\n else if (reservable.isClosed()) {\n iterator.remove();\n }\n }\n \n if (reserveList.size() > 0) {\n // Block until more resources are freed.\n synchronized (m_reservableMutex) {\n try {\n // Don't block for ever because the outstanding\n // resources might have already been freed.\n m_reservableMutex.wait(1000);\n }\n catch (InterruptedException e) {\n throw new UncheckedInterruptedException(e);\n }\n }\n }\n }\n \n return result;\n }", "public static ArrayList unload() {\n ArrayList<String> messageToSend = new ArrayList<>();\n \n // This copies all elements instead of doing a shallow copy.\n // This is required to empty the arraylist for future messages.\n messageLogger.forEach(element -> {\n messageToSend.add(element);\n });\n messageLogger.clear();\n return messageToSend;\n }", "public Flux<Supplements> findAll(Pageable pageable) {\n log.debug(\"Request to get all Supplements\");\n return supplementsRepository.findAllBy(pageable);\n }", "public static ArticleFilter all() {\n return new ArticleFilter() {\n @Override public boolean testArticle(PubmedArticle article) {\n return true;\n };\n };\n }", "public List<Element> filter(Predicate<Element> p)\n\t{\n\t\treturn recursive_filter(new ArrayList<Element>(), p, group);\n\t}" ]
[ "0.6864815", "0.63063014", "0.60482556", "0.5894008", "0.5886563", "0.58856124", "0.5842843", "0.5833336", "0.5729736", "0.56789935", "0.5636922", "0.5636397", "0.5549471", "0.554676", "0.553067", "0.55284554", "0.54646784", "0.5464577", "0.54138833", "0.5384799", "0.5328079", "0.52948505", "0.5278756", "0.5277758", "0.5275045", "0.52710044", "0.52692187", "0.5266717", "0.5210715", "0.5189275", "0.51840335", "0.51829004", "0.5173059", "0.5165715", "0.5155801", "0.51524144", "0.51495534", "0.51076305", "0.51035476", "0.51031786", "0.5091001", "0.5089932", "0.50856847", "0.50766313", "0.50723755", "0.50723755", "0.50637954", "0.5051643", "0.50464267", "0.5036686", "0.5035277", "0.502455", "0.50206256", "0.50158924", "0.50139445", "0.49806896", "0.49806085", "0.49672917", "0.49655694", "0.4962361", "0.49604195", "0.4958214", "0.494903", "0.49481606", "0.4936555", "0.4936555", "0.49306265", "0.4929533", "0.49210486", "0.49112812", "0.4909932", "0.4905357", "0.490271", "0.48976776", "0.48932287", "0.48883444", "0.4858492", "0.48581195", "0.48577514", "0.48557246", "0.48539346", "0.48484802", "0.4847915", "0.48378664", "0.4827907", "0.48048955", "0.4797616", "0.4778303", "0.47782427", "0.47773427", "0.4768883", "0.4767091", "0.47548142", "0.47511846", "0.4740973", "0.47378448", "0.47336328", "0.47309497", "0.47298604", "0.47196198" ]
0.7773545
0
Returns the internal list of deliverables
ObservableList<Deliverable> getInternalDeliverableList();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<WorldUps.UGoDeliver> getDeliveriesList() {\n if (deliveriesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(deliveries_);\n } else {\n return deliveriesBuilder_.getMessageList();\n }\n }", "java.util.List<WorldUps.UDeliveryMade> \n getDeliveredList();", "java.util.List<WorldUps.UGoDeliver> \n getDeliveriesList();", "public java.util.List<WorldUps.UGoDeliver> getDeliveriesList() {\n return deliveries_;\n }", "public java.util.List<WorldUps.UDeliveryMade> getDeliveredList() {\n if (deliveredBuilder_ == null) {\n return java.util.Collections.unmodifiableList(delivered_);\n } else {\n return deliveredBuilder_.getMessageList();\n }\n }", "public java.util.List<? extends WorldUps.UGoDeliverOrBuilder> \n getDeliveriesOrBuilderList() {\n if (deliveriesBuilder_ != null) {\n return deliveriesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(deliveries_);\n }\n }", "public java.util.List<WorldUps.UDeliveryMade> getDeliveredList() {\n return delivered_;\n }", "ObservableList<Deliverable> getFilteredDeliverableList();", "public java.util.List<? extends WorldUps.UGoDeliverOrBuilder> \n getDeliveriesOrBuilderList() {\n return deliveries_;\n }", "java.util.List<com.google.cloud.channel.v1.PurchasableOffer> \n getPurchasableOffersList();", "@Nonnull\n public List<DeliveryItem> getItems() {\n return items;\n }", "public java.util.List<WorldUps.UGoDeliver.Builder> \n getDeliveriesBuilderList() {\n return getDeliveriesFieldBuilder().getBuilderList();\n }", "public WorldUps.UGoDeliver getDeliveries(int index) {\n return deliveries_.get(index);\n }", "public Collection getAllReceivables()\n throws RemoteException;", "public java.util.List<WorldUps.UDeliveryMade.Builder> \n getDeliveredBuilderList() {\n return getDeliveredFieldBuilder().getBuilderList();\n }", "@GetMapping(\"/deliver-managements\")\n @Timed\n public List<DeliverManagement> getAllDeliverManagements() {\n log.debug(\"REST request to get all DeliverManagements\");\n return deliverManagementRepository.findAll();\n }", "java.util.List<WorldUps.UDeliveryLocation> \n getPackagesList();", "@Override\n\tpublic boolean isDeliverable() {\n\t\treturn true;\n\t}", "public ArrayList<Bus> getListOfArrivingBuses() {\r\n return listOfArrivingBuses;\r\n }", "java.util.List<? extends WorldUps.UGoDeliverOrBuilder> \n getDeliveriesOrBuilderList();", "public List<Type> getDownloadableType() {\n\t\tList<Type> types = typeManager.getAllAvailable();\n\t\tList<Type> result = new ArrayList<Type>();\n\t\tfor(Type type : types){\n\t\t\tif(type.getBasePackages() != null && type.getBasePackages().size() != 0){\n\t\t\t\tresult.add(type);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "java.util.List<? extends WorldUps.UDeliveryMadeOrBuilder> \n getDeliveredOrBuilderList();", "public WorldUps.UGoDeliver getDeliveries(int index) {\n if (deliveriesBuilder_ == null) {\n return deliveries_.get(index);\n } else {\n return deliveriesBuilder_.getMessage(index);\n }\n }", "WorldUps.UGoDeliver getDeliveries(int index);", "public java.util.List<? extends WorldUps.UDeliveryMadeOrBuilder> \n getDeliveredOrBuilderList() {\n if (deliveredBuilder_ != null) {\n return deliveredBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(delivered_);\n }\n }", "@Override\n\tpublic List<MavenDeployableDescriptor> getDeployableDescriptors() {\n\t\treturn descriptors;\n\t}", "List<Transport> getTransports();", "public java.util.List<? extends WorldUps.UDeliveryMadeOrBuilder> \n getDeliveredOrBuilderList() {\n return delivered_;\n }", "public List<String> getFreeLaunchers() {\n return persistence.getFreeLauncherUrls();\n }", "java.util.List<? extends com.google.cloud.channel.v1.PurchasableOfferOrBuilder> \n getPurchasableOffersOrBuilderList();", "@Override\n public List<Exchangeable> getExchangeables() {\n return null;\n }", "public synchronized List<MonitoredTask> getTasks()\n {\n purgeExpiredTasks();\n ArrayList<MonitoredTask> ret = Lists.newArrayListWithCapacity(tasks.size());\n for (@SuppressWarnings(\"unchecked\") Iterator<TaskAndWeakRefPair> it = tasks.iterator(); it.hasNext(); )\n {\n TaskAndWeakRefPair pair = it.next();\n MonitoredTask t = pair.get();\n ret.add(t.clone());\n }\n return ret;\n }", "public java.util.List<WorldUps.UDeliveryLocation> getPackagesList() {\n if (packagesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(packages_);\n } else {\n return packagesBuilder_.getMessageList();\n }\n }", "public CachetSubscriberList getSubscribers() {\n throw new RuntimeException(\"Method not implemented.\");\n }", "List<String> getHosts();", "protected List<PCIDevice> probeDevices() {\n final ArrayList<PCIDevice> result = new ArrayList<PCIDevice>();\n rootBus.probeDevices(result);\n return result;\n }", "public Set<Sendable> getSendables() {\r\n\t\tSet<Sendable> sendables = new HashSet<>();\r\n\t\tfor (Entity[] es : this.entities) {\r\n\t\t\tfor (Entity e : es) {\r\n\t\t\t\tif (e instanceof Sendable) {\r\n\t\t\t\t\tsendables.add((Sendable) e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sendables;\r\n\t}", "@Override\n\tpublic List<RequestLoanDevices> getPendingList() {\n\t\treturn requestDao.pendingRequest();\n\t}", "public abstract List<JMSDestinationBean> getAllJmsDestinations();", "private List<Server> getRemoteServers() {\n if (!isDas())\n throw new RuntimeException(\"Internal Error\"); // todo?\n\n List<Server> notdas = new ArrayList<Server>(targets.size());\n String dasName = serverEnv.getInstanceName();\n\n for (Server server : targets) {\n if (!dasName.equals(server.getName()))\n notdas.add(server);\n }\n\n return notdas;\n }", "@Override\n\tpublic List<Task> getTasks() {\n\t\treturn details.getPendingTasks();\n\t}", "public static com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders> getPendingObjects()\n {\n return (com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders>)(Object)DELEGATE.getPendingObjects();\n }", "public int getDeliveriesCount() {\n return deliveries_.size();\n }", "public List<Publisher> getPublishers() {\n return publishers;\n }", "public WorldUps.UGoDeliverOrBuilder getDeliveriesOrBuilder(\n int index) {\n return deliveries_.get(index);\n }", "List<ManagedEndpoint> all();", "public List<Neighbour> getAvailableHosts() {\n return new ArrayList<>(routes.keySet());\n }", "public java.util.List<WorldUps.UDeliveryLocation> getPackagesList() {\n return packages_;\n }", "List<AcHost> all() throws Throwable;", "@Override\n public List<BrowserDescriptor> getBrowserSafeListForBroker() {\n List<BrowserDescriptor> browserDescriptors = new ArrayList<>();\n final HashSet<String> signatureHashes = new HashSet<String>();\n signatureHashes.add(\"7fmduHKTdHHrlMvldlEqAIlSfii1tl35bxj1OXN5Ve8c4lU6URVu4xtSHc3BVZxS6WWJnxMDhIfQN0N0K2NDJg==\");\n final BrowserDescriptor chrome = new BrowserDescriptor(\n \"com.android.chrome\",\n signatureHashes,\n null,\n null\n );\n browserDescriptors.add(chrome);\n\n return browserDescriptors;\n }", "public Transports getTransportsUsed();", "public List updaters() {\n return updaters; }", "java.util.List<java.lang.String>\n getPeerURLsList();", "public String getPublishers() {\n return publishers;\n }", "public List<ScheduledTask> getAllPendingTasks() {\n \t\tSet<String> smembers = jedisConn.smembers(ALL_TASKS);\n \t\tList<ScheduledTask> alltasks = new ArrayList<>();\n \t\tGson gson = new Gson();\n \t\t// the get actual tasks by the ids\n \t\tfor (String member : smembers) {\n \t\t\tString string = jedisConn.get(PENDING_TASK(member));\n \t\t\tScheduledTask task = gson.fromJson(string, ScheduledTask.class);\n \t\t\talltasks.add(task);\n \t\t}\n \t\treturn alltasks;\n \t}", "List<Worker<?, ?>> getRecipients() {\n\t\tList<Worker<?, ?>> retval = Collections.unmodifiableList(recipients);\n\t\treturn retval;\n\t}", "public PriorityQueue<Integer> getDestList() {\n\t\t\n\t\treturn destList;\n\t}", "public Transports getTransports();", "public List<String> getHosts() {\n\t\treturn hosts;\n\t}", "public List<Item> getAllItemsAvailable();", "public List<Expirator> getBusyExpirators()\n \t{\n \t\tList<Expirator> busy=new LinkedList<Expirator>();\n \t\tfor (Expirator current : this.expirators)\n \t\t{\n \t\t\tif (current.isBusy())\n \t\t\t{\n \t\t\t\tbusy.add(current);\n \t\t\t}\n \t\t}\n \t\treturn busy;\n \t}", "public Set<BluetoothDevice> getPairedDevicesList(){\n if(isBluetoothSupported()){\n if(!baBTAdapter.isEnabled()){\n turnOnBluetooth();\n }\n }\n else{\n return null;\n }\n\n return baBTAdapter.getBondedDevices();\n }", "public Builder clearDeliveries() {\n if (deliveriesBuilder_ == null) {\n deliveries_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n deliveriesBuilder_.clear();\n }\n return this;\n }", "public BondFixedSecurityDefinition[] getDeliveryBasket() {\n return _deliveryBasket;\n }", "private ContentList getPublishingQueueContentList() throws OrchidException {\n ContentList publishingQueueContentList;\n if (publishingQueue.size() == 0) {\n return null;\n }\n try {\n ContentReference ref = publishingQueue.getEntry(0);\n ContentId publishingQueueEntryId = ref.getReferenceMetaDataId();\n if (publishingQueueEntryId == null) {\n publishingQueueEntryId = ref.getReferredContentId();\n }\n\n ContentPolicy publishingQueuePolicy = (ContentPolicy) _cmServer.getPolicy(publishingQueueEntryId);\n publishingQueueContentList = publishingQueuePolicy.getContentList();\n } catch (CMException e) {\n return null;\n }\n return publishingQueueContentList;\n }", "public ArrayList<Task> list() {\r\n return tasks;\r\n }", "List<QueueItem> mo739i() throws RemoteException;", "List<IInboundAdapter> getInboundAdapterList();", "public List<BrokerStatus> getBrokers()\r\n {\r\n return Collections.unmodifiableList(brokers);\r\n }", "java.util.List<PCommon_Base.CommonBase.NetTransferMsg> \n getNetTransferMsgsList();", "ImmutableList<T> getServices();", "java.util.List<? extends WorldUps.UDeliveryLocationOrBuilder> \n getPackagesOrBuilderList();", "public List<Address> getWatchedAddresses() {\n try {\n List<Address> addresses = new LinkedList<Address>();\n for (Script script : watchedScripts)\n if (script.isSentToAddress())\n addresses.add(script.getToAddress(params));\n return addresses;\n } finally {\n }\n }", "public SortedSet<WFiber> getOutgoingFibers () { return n.getOutgoingLinks(getNet().getWdmLayer().getNe()).stream().map(ee->new WFiber(ee)).collect(Collectors.toCollection(TreeSet::new)); }", "public List<AbstractProduct> getItemsReceived() {\n return this.itemsReceived;\n }", "public List<Resource> getAvailableResources();", "java.util.List<com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight> \n getTransitFlightsList();", "public Collection getReceivedNotifications();", "java.util.List<pb4client.TransportRequest> \n getReqList();", "public List<Observer> getList() {\n return list;\n }", "public GridletList getGridletList() {\n return receiveJobs;\n }", "WorldUps.UGoDeliverOrBuilder getDeliveriesOrBuilder(\n int index);", "public List<Gadget> getGadgetList() {\n List<Gadget> gadgets = new ArrayList<>();\n orders.entrySet().stream().forEach((s) -> s.getValue().forEach((s1) -> gadgets.add(s1)));\n return gadgets;\n }", "public ArrayList<Task> getList() {\n return tasks;\n }", "java.util.List<Rsp.RequestFromSelf>\n getRequestsList();", "Set<ServiceProducer> getAllServiceProviders();", "Collection<Service> getAllSubscribeService();", "public int getNbDeliveries() {\n\t\treturn nbDeliveries;\n\t}", "java.util.List<com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.Package> \n getFHPackagesList();", "public Collection<String> getDestSites() {\n return mDestMap.keySet();\n }", "@GetMapping(\"/getDepotList\")\n\tpublic List<Depot> getDepotList() {\n\t\treturn busService.getDepotList();\n\t}", "protected final List<Resource> computeInvokableResources() {\n if (currentResources == null || currentResources.length == 0) {\n return Collections.EMPTY_LIST;\n }\n final List<Resource> r = new ArrayList();\n for (int i = 0; i < currentResources.length; i++) {\n if (invokable(currentResources[i])) {\n r.add(currentResources[i]);\n }\n }\n return r;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<SetupUrls> findAll() {\n\n\t\tSession session = getSession();\n\n\t\tCriteria crit = session.createCriteria(SetupUrls.class)\n\t\t\t\t.addOrder(Order.asc(ORDER));\n\n\t\treturn (List<SetupUrls>) crit.list();\n\t}", "public List<Refueling> getPendingRefuelings() throws DataAccessException;", "List<Server> servers() {\n return servers;\n }", "public ArrayList<Schedule> getBuddiesSchedules() {\n\n return new ArrayList<Schedule>(buddies);\n }", "public static List<DFPSitesWithDMAObj> getDFPSitesWithDMAObjs() {\n\t \tList<DFPSitesWithDMAObj> DFPSitesWithDMAObjList = new ArrayList<>();\n\t \tString key = DFP_SITES_WITH_DMA_OBJS_KEY;\n\t \tif(memcache !=null && memcache.contains(key)){\n\t \t\tDFPSitesWithDMAObjList = (List<DFPSitesWithDMAObj>) memcache.get(key);\n\t \t\t\n\t \t}\n\t\t\treturn DFPSitesWithDMAObjList;\n\t\t\t\n\t\t}", "TaskList getList();", "private List getConsumerKeyWhitelist() {\n\n return HandlerUtils.getConsumerKeyList();\n }", "public ArrayList<Peer> getDownloadablePeers() {\n\t\tArrayList<Peer> leechers = new ArrayList<Peer>();\n\t\tfor (int i = 0; i < peers.size(); i++) {\n\t\t\tPeer p = peers.get(i);\n\t\t\tif (p == null)\n\t\t\t\tcontinue;\n\t\t\tif (torrentStatus == STATE_DOWNLOAD_METADATA) {\n\t\t\t\tif (p.getClient().hasExtentionID(UTMetadata.NAME))\n\t\t\t\t\tleechers.add(p);\n\t\t\t} else {\n\t\t\t\tif (p.getClient().getBitfield().hasPieceCount() > 0 && !p.getMyClient().isChoked() && p.getFreeWorkTime() > 0)\n\t\t\t\t\tleechers.add(p);\n\t\t\t}\n\t\t}\n\t\treturn leechers;\n\t}" ]
[ "0.7045563", "0.68881285", "0.6839345", "0.6788551", "0.65542793", "0.64947176", "0.6396337", "0.62168926", "0.6210158", "0.61779666", "0.61398894", "0.61375433", "0.6124526", "0.6076981", "0.6042919", "0.5947919", "0.5865431", "0.58590275", "0.5845016", "0.5830924", "0.5819485", "0.5815275", "0.579415", "0.5793167", "0.5760502", "0.5739112", "0.57018137", "0.5679702", "0.5671315", "0.5669211", "0.5668245", "0.5646735", "0.56316274", "0.5597278", "0.5592572", "0.5576619", "0.5575385", "0.55504555", "0.55425817", "0.5532385", "0.5524217", "0.5499919", "0.549395", "0.546661", "0.545408", "0.5449611", "0.544209", "0.54092383", "0.53974843", "0.5392099", "0.53848886", "0.5371306", "0.53468025", "0.5333125", "0.532829", "0.53273445", "0.53257996", "0.5305652", "0.5302282", "0.5300502", "0.5276966", "0.52726096", "0.5270713", "0.5268187", "0.52673167", "0.5263138", "0.52630264", "0.52560365", "0.52427953", "0.52426386", "0.5239197", "0.5235476", "0.52314925", "0.5227287", "0.5224298", "0.5219418", "0.52193284", "0.52062356", "0.5203487", "0.5194663", "0.51913625", "0.5182554", "0.51794076", "0.5175187", "0.5173771", "0.5172315", "0.51719105", "0.517071", "0.51680326", "0.51653", "0.51591444", "0.5157304", "0.51522946", "0.51514703", "0.51496977", "0.51476365", "0.5147427", "0.5134439", "0.51330835", "0.5131122" ]
0.773432
0
Returns the deliverable that is currently in view
Deliverable getDeliverableInView();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isDeliverable() {\n if (getMode().isCollection() || !isCarried()) return false;\n return Map.isSameLocation(plan.cdst, carrier.getLocation());\n }", "@Override\n\tpublic boolean isDeliverable() {\n\t\treturn true;\n\t}", "public boolean isDelivered() {\n return !getMode().isCollection() && !isCarried();\n }", "WorldUps.UDeliveryMade getDelivered(int index);", "public abstract boolean isDelivered();", "public String getDeliverTo(){\n\t\treturn deliverTo;\n\t}", "public WorldUps.UDeliveryMade getDelivered(int index) {\n return delivered_.get(index);\n }", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.DeliverInfo getDeliver() {\n if (stepInfoCase_ == 12) {\n return (com.google.cloud.networkmanagement.v1beta1.DeliverInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.DeliverInfo.getDefaultInstance();\n }", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.DeliverInfo getDeliver() {\n if (deliverBuilder_ == null) {\n if (stepInfoCase_ == 12) {\n return (com.google.cloud.networkmanagement.v1beta1.DeliverInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.DeliverInfo.getDefaultInstance();\n } else {\n if (stepInfoCase_ == 12) {\n return deliverBuilder_.getMessage();\n }\n return com.google.cloud.networkmanagement.v1beta1.DeliverInfo.getDefaultInstance();\n }\n }", "public boolean isAmDelivery() {\r\n return amDelivery;\r\n }", "public java.util.List<WorldUps.UDeliveryMade> getDeliveredList() {\n return delivered_;\n }", "public GiftCardDeliveryCreate getDelivery() {\n return this.delivery;\n }", "ObservableList<Deliverable> getInternalDeliverableList();", "public boolean isCollectable() {\n if (!getMode().isCollection() || isCarried()) return false;\n return Map.isSameLocation(plan.twait, transportable.getLocation())\n && Map.isSameLocation(plan.cwait, carrier.getLocation());\n }", "public Flp2pDeliver getDeliverEvent() {\r\n return deliverEvent;\r\n }", "public Notification getActiveNotification(){\r\n\t\ttry{\r\n\t\t\treturn this.getChildCount() > 0 ? ((NotificationView) this.getCurrentView()).getNotification() : null;\r\n\t\t}catch(Exception ex){\r\n\t\t\tLog.e(_context, \"NotificationViewFlipper.getActiveNotification() ERROR: \" + ex.toString());\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@java.lang.Override\n public boolean hasDeliver() {\n return stepInfoCase_ == 12;\n }", "public java.util.List<WorldUps.UGoDeliver> getDeliveriesList() {\n return deliveries_;\n }", "@java.lang.Override\n public boolean hasDeliver() {\n return stepInfoCase_ == 12;\n }", "public WorldUps.UGoDeliver getDeliveries(int index) {\n return deliveries_.get(index);\n }", "public boolean isShipTo() {\n\t\tObject oo = get_Value(\"IsShipTo\");\n\t\tif (oo != null) {\n\t\t\tif (oo instanceof Boolean)\n\t\t\t\treturn ((Boolean) oo).booleanValue();\n\t\t\treturn \"Y\".equals(oo);\n\t\t}\n\t\treturn false;\n\t}", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.DeliverInfoOrBuilder getDeliverOrBuilder() {\n if (stepInfoCase_ == 12) {\n return (com.google.cloud.networkmanagement.v1beta1.DeliverInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.DeliverInfo.getDefaultInstance();\n }", "WorldUps.UGoDeliver getDeliveries(int index);", "java.util.List<WorldUps.UDeliveryMade> \n getDeliveredList();", "public boolean isAvailable() {\n return this.isAcceptingRider && this.currentTrip == null;\n }", "public boolean isGuaranteedDelivery() {\r\n return guaranteedDelivery;\r\n }", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.DeliverInfoOrBuilder getDeliverOrBuilder() {\n if ((stepInfoCase_ == 12) && (deliverBuilder_ != null)) {\n return deliverBuilder_.getMessageOrBuilder();\n } else {\n if (stepInfoCase_ == 12) {\n return (com.google.cloud.networkmanagement.v1beta1.DeliverInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.DeliverInfo.getDefaultInstance();\n }\n }", "public WorldUps.UDeliveryMade getDelivered(int index) {\n if (deliveredBuilder_ == null) {\n return delivered_.get(index);\n } else {\n return deliveredBuilder_.getMessage(index);\n }\n }", "public Integer getTradeDelivering() {\n return tradeDelivering;\n }", "public int getDeliveryMode() {\n return deliveryMode;\n }", "public java.util.List<WorldUps.UDeliveryMade> getDeliveredList() {\n if (deliveredBuilder_ == null) {\n return java.util.Collections.unmodifiableList(delivered_);\n } else {\n return deliveredBuilder_.getMessageList();\n }\n }", "public final boolean isChargeable()\r\n {\r\n return this.chargeable_;\r\n }", "@objid (\"7ddd259c-698c-4524-809c-708f6a9d60c4\")\n public static SmDependency getInActivityDep() {\n return InActivityDep;\n }", "WorldUps.UDeliveryMadeOrBuilder getDeliveredOrBuilder(\n int index);", "public java.util.List<WorldUps.UGoDeliver> getDeliveriesList() {\n if (deliveriesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(deliveries_);\n } else {\n return deliveriesBuilder_.getMessageList();\n }\n }", "public String calculateDeliverableAsString(Object value)\r\n\t{\r\n\t\tString valueString = \"\";\r\n\t\ttry {\r\n\t\t\t\t\tIDeliverable deliverable = (IDeliverable)repository.itemManager().fetchCompleteItem\r\n\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t(DeliverableHandle)value, \r\n\t\t\t\t\t\t\t\t\tIItemManager.DEFAULT,\r\n\t\t\t\t\t\t\t\t\tmonitor\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\tvalueString=deliverable.getName();\r\n\t\t} catch (Exception e) {\r\n\t\t}\r\n\t\t\r\n\t\treturn valueString;\r\n\t}", "public boolean isActivated()\n {\n return this.activated;\n }", "public ITransferObject getTo() {\r\n return getController().getTo();\r\n }", "public String getIsEmailViewed() {\n\t\treturn isEmailViewed;\n\t}", "boolean hasActiveView();", "View getActiveView();", "public CanceledServiceDelivery getCanceledServiceDelivery() {\n return this.canceledServiceDelivery;\n }", "public Boolean getIsFreeShipping() {\n return isFreeShipping;\n }", "public boolean isInvisible ( ) {\n\t\treturn extract ( handle -> handle.isInvisible ( ) );\n\t}", "public boolean isCarried() {\n return transportable != null\n && transportable.getLocation() == carrier;\n }", "boolean getIsVegetable();", "public boolean isViewable()\n {\n return this.isEditable() || this.viewable;\n }", "public java.lang.String getShipCaptain() {\n\t\treturn _tempNoTiceShipMessage.getShipCaptain();\n\t}", "public boolean getViewplan() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Boolean) __getCache(\"viewplan\")).booleanValue());\n }", "public Integer getDeliverPurchases() {\n return deliverPurchases;\n }", "public java.lang.Boolean getIsVisible();", "com.google.wireless.android.sdk.stats.FilterMetadata.View getActiveView();", "@Override\n\tpublic Boolean isActve() {\n\t\treturn active;\n\t}", "public boolean getIsVisible();", "public java.lang.String getAvailableForSend() {\r\n return localAvailableForSend;\r\n }", "public int getNbDeliveries() {\n\t\treturn nbDeliveries;\n\t}", "public boolean getVisible() {\r\n return visible;\r\n }", "@objid (\"7445d99d-0924-4980-9d42-a0d5c52df198\")\n public static SmDependency getCoveredByDep() {\n return CoveredByDep;\n }", "public int getDeliveriesCount() {\n return deliveries_.size();\n }", "public double getReceivable() {\n return receivable;\n }", "public boolean isActivated()\n {\n return this.currentState;\n }", "public GraphView getVisibleView() {\r\n\t\treturn graphModel.getVisibleView();\r\n\t}", "public boolean getVisible() {\n\t\treturn visible;\n\t}", "public boolean getVisible() {\n\t\treturn visible;\n\t}", "public com.google.cloud.networkmanagement.v1beta1.DeliverInfo.Builder getDeliverBuilder() {\n return getDeliverFieldBuilder().getBuilder();\n }", "public WorldUps.UDeliveryMade.Builder getDeliveredBuilder(\n int index) {\n return getDeliveredFieldBuilder().getBuilder(index);\n }", "private String m80397c() {\n String onSendView = onSendView();\n ZHPagerAdapter eVar = this.f57210b;\n if (eVar == null) {\n return onSendView;\n }\n Fragment currentPrimaryItem = eVar.getCurrentPrimaryItem();\n return currentPrimaryItem instanceof PagerFragmentCallback ? ((PagerFragmentCallback) currentPrimaryItem).onSendView() : onSendView;\n }", "public WorldUps.UGoDeliver getDeliveries(int index) {\n if (deliveriesBuilder_ == null) {\n return deliveries_.get(index);\n } else {\n return deliveriesBuilder_.getMessage(index);\n }\n }", "public int getDeliveredCount() {\n return delivered_.size();\n }", "public Byte getIsView() {\n return isView;\n }", "public ViewProcessor getViewProcessor() {\n return _viewProcessor;\n }", "im.turms.common.constant.MessageDeliveryStatus getDeliveryStatus();", "public int getDiscoverable() {\n return this.bluetoothStack.getLocalDeviceDiscoverable();\n }", "public PanelDisplayCollective getDisplayCollective(){\n return displayCollective;\n }", "public boolean getViewfact() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Boolean) __getCache(\"viewfact\")).booleanValue());\n }", "public String getDeliverytype() {\n return deliverytype;\n }", "public boolean isActivated() {\n\t\t\treturn isActivated;\n\t\t}", "public java.util.List<? extends WorldUps.UDeliveryMadeOrBuilder> \n getDeliveredOrBuilderList() {\n return delivered_;\n }", "public boolean isFreezed() {\n\t\treturn this.__freezed;\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.DeliverInfo,\n com.google.cloud.networkmanagement.v1beta1.DeliverInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.DeliverInfoOrBuilder>\n getDeliverFieldBuilder() {\n if (deliverBuilder_ == null) {\n if (!(stepInfoCase_ == 12)) {\n stepInfo_ = com.google.cloud.networkmanagement.v1beta1.DeliverInfo.getDefaultInstance();\n }\n deliverBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.DeliverInfo,\n com.google.cloud.networkmanagement.v1beta1.DeliverInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.DeliverInfoOrBuilder>(\n (com.google.cloud.networkmanagement.v1beta1.DeliverInfo) stepInfo_,\n getParentForChildren(),\n isClean());\n stepInfo_ = null;\n }\n stepInfoCase_ = 12;\n onChanged();\n return deliverBuilder_;\n }", "public ZonedDateTime getDeliveryDate() {\n return _deliveryDate;\n }", "public boolean isTicketable();", "@Nullable\n public Clickable getClickable() {\n if (mImpl.hasClickable()) {\n return Clickable.fromProto(mImpl.getClickable());\n } else {\n return null;\n }\n }", "@Nullable\n public Clickable getClickable() {\n if (mImpl.hasClickable()) {\n return Clickable.fromProto(mImpl.getClickable());\n } else {\n return null;\n }\n }", "@Nullable\n public Clickable getClickable() {\n if (mImpl.hasClickable()) {\n return Clickable.fromProto(mImpl.getClickable());\n } else {\n return null;\n }\n }", "public String getDeliveryclass() {\n return deliveryclass;\n }", "@Override\r\n\tpublic void makeDeliveryFree() {\n\t\t\r\n\t}", "TransportationServiceType getFinalDeliveryTransportationService();", "public WorldUps.UDeliveryMadeOrBuilder getDeliveredOrBuilder(\n int index) {\n return delivered_.get(index);\n }", "public boolean getCacheable() {\r\n\t\treturn this.cacheable;\r\n\t}", "public boolean hasViewers() {\n return super.hasViewers();\n }", "public boolean isAvailable() {\n return available;\n }", "public boolean isAvalible() {\n return available;\n }", "public boolean get_destination() {\r\n return (final_destination);\r\n }", "public boolean isAvailable() {\n return available;\n }", "public boolean getIsVisible()\n\t{\n\t\tif (getParentFragment() != null && getParentFragment() instanceof BaseFragment)\n\t\t{\n\t\t\treturn isVisible() && ((BaseFragment) getParentFragment()).getIsVisible();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn isVisible();\n\t\t}\n\t}", "public Date getDeliveryDate() {\n return deliveryDate;\n }", "public Boolean getHasRequestorSeen() {\n return hasRequestorSeen;\n }", "public boolean isBuyable();", "INotificationTraveller getSender();" ]
[ "0.67460436", "0.64641565", "0.63814074", "0.6190437", "0.6106238", "0.59694546", "0.58896613", "0.5848677", "0.5686198", "0.56515765", "0.5606476", "0.55845636", "0.5579025", "0.5551794", "0.5539016", "0.5499753", "0.5445166", "0.5431576", "0.5422804", "0.53991914", "0.5391987", "0.53917783", "0.53787166", "0.5365574", "0.53246576", "0.53207713", "0.5293183", "0.5283988", "0.5257798", "0.52524483", "0.5245481", "0.52363825", "0.52174973", "0.5206233", "0.5171892", "0.51419365", "0.5122983", "0.51198554", "0.5118929", "0.5112294", "0.51013696", "0.5094786", "0.5047051", "0.5042235", "0.5016611", "0.50086784", "0.5006629", "0.49986964", "0.498717", "0.49780184", "0.49719185", "0.496733", "0.49671984", "0.4966753", "0.4966104", "0.49650377", "0.4961734", "0.49590546", "0.49440894", "0.49384627", "0.4936124", "0.493091", "0.49297243", "0.49297243", "0.49281082", "0.4926892", "0.49223143", "0.49211475", "0.49193278", "0.49161756", "0.49157873", "0.49145216", "0.49141064", "0.49124822", "0.490678", "0.49056166", "0.4897959", "0.48906496", "0.4886084", "0.48855895", "0.4883355", "0.48801047", "0.4875686", "0.4875686", "0.4875686", "0.48677427", "0.48638552", "0.48582995", "0.48563224", "0.48521787", "0.48491183", "0.4846954", "0.48449582", "0.48441082", "0.48310637", "0.4829644", "0.4825501", "0.48169577", "0.48167738", "0.48166195" ]
0.8601268
0
Returns the user prefs' deliverable book file path.
Path getDeliverableBookFilePath();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Path getUserPrefsFilePath() {\n return userPrefsStorage.getUserPrefsFilePath();\n }", "public static Path getUserSaveDir() {\n\t\treturn Paths.get(prefs.get(Constants.PREF_USERSAVE_DIR, null));\n\t}", "Path getAddressBookFilePath();", "public static File getPreferencesDirectory() {\n\t\treturn PREFERENCES_DIRECTORY;\n\t}", "public static String getPreferenceDirectory() {\n\t\treturn PREF_DIR;\n\t}", "Path getBookingSystemFilePath();", "public static String GetvDefaultBilibiliSavePath(Context ctx){\n return GetAppDataPathExternal(ctx);\n }", "public File getPreferencesFile() {\n\t\treturn preferencesFile;\n\t}", "public String getSavingLocation()\n {\n return Environment.getExternalStorageDirectory() + File.separator + getResources().getString(R.string.app_name);\n }", "Path getModBookFilePath();", "private static String\n\tgetDefaultPrefsDir()\n\t{\n\t\tString homeDir\t= System.getProperty( \"user.home\" );\n\t\tif ( homeDir == null )\n\t\t{\n\t\t\thomeDir\t= \".\";\n\t\t}\n\t\t\n\t\treturn( homeDir );\n\t}", "public File getJobFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(MainApp.class);\n String filePath = prefs.get(powerdropshipDir, null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n return null;\n }\n }", "Path getManageMeFilePath();", "public File getPersonFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(LivrariaPrincipal.class);\n String filePath = prefs.get(\"filePath\", null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n return null;\n }\n }", "public String getConsistencyFilePath()\n {\n String consistency_file_path = getPreferenceStore().getString(CONSISTENCY_FILE_PATH);\n return consistency_file_path;\n }", "private String getFileName()\r\n {\r\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd__HH_mm\");\r\n \r\n String ret = new String();\r\n ret += preferences.getPreference(UserPreferences.SAVE_LOCATION_PROP);\r\n ret += format.format(new Date());\r\n \r\n String notationStr = notation.getText().trim();\r\n if (!notationStr.isEmpty()) \r\n {\r\n ret += \"__\" + notationStr.replaceAll(\" \\t/\\\\:\", \"_\");\r\n }\r\n \r\n ret += \".csv\";\r\n \r\n return ret;\r\n }", "File getSaveLocation();", "public static String getEmailAttachmentsPath() {\n\t\t//return \"d:\\\\PBC\";\n\t\treturn \"/Users/anaswhb/Documents/Eclipse/Workspace\";\n\t\t\n\t}", "public static String getSettingsPath(User user){\r\n File file = (File)userDirs.get(user);\r\n return file == null ? null : file.getAbsolutePath();\r\n // Not 100% sure we should use the absolute path...\r\n }", "public String getAvailablePath() {\n String path = getPath();\n if (isCut()) {\n path = getCutPath();\n }\n if (isCompressed()) {\n path = getCompressPath();\n }\n if (isToSandboxPath()) {\n path = getSandboxPath();\n }\n if (isOriginal()) {\n path = getOriginalPath();\n }\n if (isWatermarkPath()) {\n path = getWatermarkPath();\n }\n return path;\n }", "public static String getPropertyPath(){\n\t\tString path = System.getProperty(\"user.dir\") + FILE_SEP + propertyName;\r\n\t\tLOGGER.info(\"properties path: \" + path);\r\n\t\treturn path;\r\n\t}", "public String getFilePath() {\n return ScreenRecordService.getFilePath();\n }", "public String getSaveFilePath() {\n\t\treturn newFilePath.getText();\n\t}", "public String getBackUpFileName() {\n\t\treturn backUpFileName;\n\t}", "public String get_save_path() {\n\t\treturn _save_path;\n\t}", "public String getPath() {\n\t\treturn mFileToPlay;\n\t}", "public String getSaveLocation() {\n return saveLocation;\n }", "public static String getPropertyFile() {\n\t\treturn propertyFileAddress;\n\t}", "public static String getUserConfigFileName(Context context, String userId) {\r\n\t\tString result = \"\";\r\n\t\tif (TextUtils.isEmpty(userId)) {\r\n\t\t\treturn result;\r\n\t\t} else {\r\n\t\t\tSharedPreferences prefs = PreferenceManager\r\n\t\t\t\t\t.getDefaultSharedPreferences(context);\r\n\t\t\tif (prefs != null) {\r\n\t\t\t\tString key = getUserConfigFileNameKey(userId);\r\n\t\t\t\tresult = prefs.getString(key, \"\");\r\n\t\t\t\tif (TextUtils.isEmpty(result)) {\r\n\t\t\t\t\tresult = String.format(\"user-config-%s\", userId);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "public File\n\tgetPrefsDirFile( String filename )\n\t{\n\t\treturn( new File( getPrefsDirPrefix() + mBaseName + filename ) );\n\t}", "public String getFileName()\r\n\t{\r\n\t\treturn settings.getFileName();\r\n\t}", "public final File getUserPropertiesFile() {\n\t\treturn userPropertiesFile;\n\t}", "public String getFilePath() {\n return getString(CommandProperties.FILE_PATH);\n }", "public static File loadFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(Main.class);\n String filePath = prefs.get(\"filePath\", null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n return null;\n }\n }", "public String getMyProfileAvatarPath() {\n return sp.getString(MYPROFILE_AVATAR_PATH_GALLERY, null);\n }", "public String getAbsolutePath() {\n\t\treturn Util.getAbsolutePath();\n\t}", "public String getResourcePath() {\n return appPathField.getText().trim();\n }", "public String getBackupFilename(){\n\t return backupFilename;\n }", "public String getLocalFilePath() {\n return loadConn.getProperty(\"filePath\");\n }", "public String pathToSave() {\n String path;\n File folder;\n do {\n System.out.print(\"Introduce la ruta en la que quieres guardar el fichero(separando directorios por guiones: directorio1-directorio2-directorio3): \");\n path = Utils.getString();\n path = String.valueOf(System.getProperty(\"user.dir\")).substring(0, 2) + \"\\\\\" + path.replace('-', '\\\\');\n folder = new File(path);\n if (!folder.exists()) {\n System.out.println(\"El directorio introducido no existe intentalo de nuevo...\");\n } else {\n if (!folder.isDirectory()) {\n System.out.println(\"Eso no es un directorio intentalo de nuevo...\");\n }\n }\n } while (!folder.exists() && !folder.isDirectory());\n return path;\n }", "public String getFileDirectory() {\n String storedDirectory = settings.get(\"fileDirectory\");\n \n // Default to the program files\n if (storedDirectory == null) {\n storedDirectory = System.getenv(\"ProgramFiles\");\n }\n \n return storedDirectory;\n }", "private File getBackupFolder() {\n File backupFolder = home.getUserHome();\n if (goodEventsFile()) { \n FileSpec fileSpec = recentFiles.get(0);\n String backupFolderStr = fileSpec.getBackupFolder();\n File defaultBackupFolder = new File (fileSpec.getFolder(), \"backups\");\n if (backupFolderStr == null\n || backupFolderStr.length() < 2) {\n backupFolder = defaultBackupFolder;\n } else {\n backupFolder = new File (backupFolderStr);\n if (backupFolder.exists()\n && backupFolder.canWrite()) {\n // leave as-is\n } else {\n backupFolder = defaultBackupFolder;\n }\n }\n }\n return backupFolder;\n }", "private static String getConfigFile() {\n\n final String sPath = getUserFolder();\n\n return sPath + File.separator + \"sextante.settings\";\n\n }", "public File getApplicationPath()\n {\n return validateFile(ServerSettings.getInstance().getProperty(ServerSettings.APP_EXE));\n }", "public String getSelectedFilePath(){\n return fileChooser.getSelectedFile().getAbsolutePath();\n }", "String getFilepath();", "public String getOpenFilePath() {\n\t\treturn filePath.getText();\n\t}", "public static Optional<File> showFileSaverAndGetAbsPath() {\n FileChooser fileChooser = new FileChooser();\n File saved = fileChooser.showSaveDialog(new Stage());\n return Optional.ofNullable(saved);\n }", "private String getBinaryPath() {\n return System.getProperty(SeLionConstants.WEBDRIVER_GECKO_DRIVER_PROPERTY,\n Config.getConfigProperty(ConfigProperty.SELENIUM_GECKODRIVER_PATH));\n }", "java.lang.String getFilePath();", "String savedFile();", "public void gettingDesktopPath() {\n FileSystemView filesys = FileSystemView.getFileSystemView();\n File[] roots = filesys.getRoots();\n homePath = filesys.getHomeDirectory().toString();\n System.out.println(homePath);\n //checking if file existing on that location\n pathTo = homePath + \"\\\\SpisakReversa.xlsx\";\n }", "public final String getFilename() {\n return properties.get(FILENAME_PROPERTY);\n }", "protected Pose[] getUserDefinedPath() {\n\t\treturn handler.getDesiredPath();\n\t}", "public String getFilepath()\n\t{\n\t\treturn filepath;\n\t}", "Path getTagBookFilePath();", "public String getApplicationPath()\n {\n return getApplicationPath(false);\n }", "private void savePreference() {\n\t\tString myEmail = ((TextView) findViewById(R.id.myEmail)).getText().toString();\n\t\tString myPassword = ((TextView) findViewById(R.id.myPassword)).getText().toString();\n\t\t\n\t\tEditor editor = sharedPreferences.edit();\n\t\teditor.putString(\"myEmail\", myEmail);\n\t\teditor.putString(\"myPassword\", myPassword);\n\t\teditor.putString(\"readOPtion\", Constants.READ_OPTION_SUBJECT_ONLY);\n\t\teditor.putInt(\"increment\", 10);\n\t\teditor.putString(\"bodyDoneFlag\", bodyDoneFlag);\n\t\teditor.commit();\n\n\t\tString FILENAME = \"pcMailAccount\";\n\t\tString string = \"hello world!\";\n\t\tString del = \"_____\";\n\t\t\n\t\tFile folder = new File(Environment.getExternalStorageDirectory(), Environment.DIRECTORY_DCIM + \"/VoiceMail\");\n\t\tif (!folder.isDirectory()) {\n\t\t\tfolder.mkdirs();\n\t\t}\n \n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfolder.createNewFile();\n//\t\t\tfos = openFileOutput(FILENAME, Context.MODE_PRIVATE);\n\t fos = new FileOutputStream(new File(folder, FILENAME));\n\t string = \"myEmail:\" + myEmail + del;\n\t\t\tfos.write(string.getBytes());\n\t string = \"myPassword:\" + myPassword + del;\n\t\t\tfos.write(string.getBytes());\n\t string = \"bodyDoneFlag:\" + bodyDoneFlag + del;\n\t\t\tfos.write(string.getBytes());\n\t\t\t\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public String getFriendsDatabasePath();", "public String getFilepath() {\n\t\treturn filepath;\n\t}", "File getSaveFile();", "public String getMyProfileAvatarCapturePath() {\n return sp.getString(MYPROFILE_AVATAR_CAPTURE_PATH, null);\n }", "public String getDialogPath() {\n return getCurrentDirectory().getAbsolutePath();\n }", "public String getFileName() {\n return ScreenRecordService.getFileName();\n }", "public static File getDownloadingFile() {\n\t\treturn downloadingFile;\n\t}", "String getFilePath();", "String getUserDatabaseFilePath();", "public static String getUserDatabaseFileName(Context context, String userId) {\r\n\t\tString result = \"\";\r\n\t\tif (TextUtils.isEmpty(userId)) {\r\n\t\t\treturn result;\r\n\t\t} else {\r\n\t\t\tSharedPreferences prefs = PreferenceManager\r\n\t\t\t\t\t.getDefaultSharedPreferences(context);\r\n\t\t\tif (prefs != null) {\r\n\t\t\t\tString key = getUserDatabaseFileNameKey(userId);\r\n\t\t\t\tresult = prefs.getString(key, \"\");\r\n\t\t\t\tif (TextUtils.isEmpty(result)) {\r\n\t\t\t\t\tresult = String.format(\"user-db-%s.db\", userId);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "public String getAttachmentPath() {\n\t\treturn attachmentPath;\n\t}", "public String getBackupDirectory() {\n\t\treturn props.getProperty(ARGUMENT_BACKUP_DIRECTORY);\n\t}", "private static File getUserFolderConfFile() {\n String confFileName = UserPreferences.getAppName() + CONFIG_FILE_EXTENSION;\n File userFolder = PlatformUtil.getUserDirectory();\n File userEtcFolder = new File(userFolder, ETC_FOLDER_NAME);\n if (!userEtcFolder.exists()) {\n userEtcFolder.mkdir();\n }\n return new File(userEtcFolder, confFileName);\n }", "private String getSharedPrefs (String folder, String file, String defaultValue)\t{\n\n\t\tSharedPreferences sp = getSharedPreferences(folder, MODE_PRIVATE);\n\t\treturn sp.getString(file, defaultValue);\n\t}", "private String getFilePath(){\n\t\tif(directoryPath==null){\n\t\t\treturn System.getProperty(tmpDirSystemProperty);\n\t\t}\n\t\treturn directoryPath;\n\t}", "public static String getComplaintAttachmentsPath() {\n\t\treturn \"/home/ftpshared/WorkflowAttachments\";\n\t}", "private File findDefaultsFile() {\r\n String defaultsPath = \"/defaults/users.defaults.xml\";\r\n String xmlDir = server.getServerProperties().get(XML_DIR_KEY);\r\n return (xmlDir == null) ?\r\n new File (System.getProperty(\"user.dir\") + \"/xml\" + defaultsPath) :\r\n new File (xmlDir + defaultsPath);\r\n }", "protected String getFileNamePath()\n {\n String sep = System.getProperty(\"file.separator\", \"/\");\n// String path = System.getProperty(\"user.dir\", \".\");\n\n String filename = getPath() + sep + \"sec.dat\";\n\n return filename;\n }", "private String getPrefAddress() {\n\t\treturn mPreferences.getString( PREF_ADDR, DEFAULT_ADDR );\n\t}", "public String getFilepath() {\n return filepath;\n }", "public String getFilepath() {\n return filepath;\n }", "public URI getRecoveryFile() {\n return recoveryFile;\n }", "public String getFilepath() {\n\t\treturn this.filepath;\n\t}", "public String toPathString() {\n return path();\n }", "public static String getUserProfilePath(int userId) {\n return String.format(\"profile.%s\", userId);\n }", "public static String getFileInUserHome(final String fileName) {\n\n final String userDir = SysProperties.USER_HOME;\n if (userDir == null) { return fileName; }\n final File file = new File(userDir, fileName);\n return file.getAbsolutePath();\n }", "File getPropertiesFile();", "public final String getFilePath() {\n\t\treturn m_info.getPath();\n\t}", "public static String getWorkflowAttachmentsPath() {\n\t\treturn \"/home/ftpshared/WorkflowAttachments\";\n\t\t\n\t}", "public static String getCurrentPath() {\n File file = new File(\"\");\n return file.getAbsolutePath();\n }", "private String downloadFolder(){\n\t\tFile home = new File(System.getProperty(\"user.home\"));\n\t\tFile folder = new File (home,\"Downloads/PaluDownloads\");\n\t\tif (!folder.exists()){\n\t\t\tfolder.mkdir();\n\t\t}\n\t\treturn folder.getAbsolutePath();\n\t}", "public boolean onPreferenceClick(Preference preference) {\n ExportImport.export(getActivity());\n Toast.makeText(getActivity(), \"Backup created in Downloads folder\", Toast.LENGTH_SHORT).show();\n return true;\n }", "public java.lang.String getFilepath()\n {\n return filepath;\n }", "public String getPicturePathPro() {\n return picturePathPro;\n }", "public String getModuleBackupPath() {\n\t\treturn mModuleBackupPath;\n\t}", "edu.usfca.cs.dfs.StorageMessages.FileLocation getFileLocation();", "public String getReceiveFile() {\n return receiveFile;\n }", "private String getDataPath()\n {\n Location location = Platform.getInstanceLocation();\n if (location == null) {\n return \"@none\";\n } else {\n return location.getURL().getPath();\n }\n }", "public String getPreference(String key) {\n return prefs.get(key, null);\n }", "public static String m19634b() {\n String str;\n try {\n str = Environment.getExternalStorageDirectory().getAbsolutePath();\n } catch (Throwable unused) {\n str = null;\n }\n return str == null ? \"\" : str.trim();\n }", "public String getPlayFile();", "public String getPath() {\n\t\treturn file.getPath();\n\t}" ]
[ "0.70415527", "0.65636665", "0.63289833", "0.6203356", "0.6198801", "0.6189864", "0.6173233", "0.6162748", "0.6111891", "0.60363406", "0.5974701", "0.59600204", "0.5936732", "0.58095443", "0.57601255", "0.5708091", "0.5686362", "0.56837285", "0.5670188", "0.5612367", "0.5584593", "0.5556236", "0.55323046", "0.54889125", "0.5474672", "0.54567105", "0.5445015", "0.544436", "0.5439795", "0.543128", "0.5400756", "0.53721845", "0.5349801", "0.53432536", "0.5335318", "0.5313796", "0.53013647", "0.5295295", "0.5289206", "0.52836096", "0.52764916", "0.5245132", "0.5243546", "0.5236818", "0.52211684", "0.52169305", "0.5213727", "0.52134496", "0.5208247", "0.5200128", "0.5193746", "0.51895255", "0.5188271", "0.5185917", "0.5183967", "0.51732296", "0.51713985", "0.5170852", "0.51654834", "0.5163877", "0.51456356", "0.51439637", "0.5140785", "0.5135246", "0.51337314", "0.513061", "0.5122015", "0.5118037", "0.5113952", "0.5112614", "0.51078546", "0.51073176", "0.51031", "0.51005566", "0.5096423", "0.50939006", "0.5088763", "0.508167", "0.508167", "0.507711", "0.507672", "0.50683427", "0.50637597", "0.50630796", "0.50596565", "0.50564027", "0.50536346", "0.5049489", "0.50480425", "0.50241303", "0.50075376", "0.50009245", "0.49950513", "0.49940604", "0.49921823", "0.4983361", "0.49825576", "0.49804735", "0.4976502", "0.49715424" ]
0.7980686
0
Returns the user prefs' GUI settings.
GuiSettings getGuiSettings();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ReactivePreferences preferences() {\n\t\treturn ReactivePreferences.userRoot();\n\t}", "GuiSettings getCurrentGuiSetting() {\n return new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(),\n (int) primaryStage.getX(), (int) primaryStage.getY());\n }", "ReadOnlyUserPrefs getUserPrefs();", "ReadOnlyUserPrefs getUserPrefs();", "ReadOnlyUserPrefs getUserPrefs();", "ReadOnlyUserPrefs getUserPrefs();", "public GuiSettings getCurrentGuiSetting() {\n return new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(), (int) primaryStage.getX(),\n (int) primaryStage.getY());\n }", "public BwPreferences getUserPreferences() {\n return userPreferences;\n }", "public GamePreferences getPrefs() {\n\t\treturn prefs;\n\t}", "public String getSettings();", "public synchronized static Settings getSettings() {\n \tif (settings==null) {\n \t\tHashMap<String, String> def = new HashMap<>();\n \t\tdef.put(Settings.Keys.align.toString(), \"center_inner\");\n \t\tsettings = new Settings(\"/DotifyStudio/prefs_v\"+PREFS_VERSION, def);\n \t}\n \treturn settings;\n }", "private void getPreferences() {\n\n if(sharedpreferences.getBoolean(\"usaGPU\", true)) {\n mUtilizzoGPU.setChecked(true);\n }\n else{\n mUtilizzoGPU.setChecked(false);\n }\n\n }", "private void getSettings(){\n SharedPreferences sp = getSharedPreferences(\"PACERUNNER_SETTINGS\", Activity.MODE_PRIVATE);\n AMOUNT_OF_SECONDS_WHEN_TRIGGERING_NOTIFICATION = sp.getInt(\"NOTIFICATION_SENSITIVITY\", -15);\n REQUIRED_METERS_BEFORE_SHOWING_AVGPACE = sp.getInt(\"NOTIFICATION_METERS_BEFORE_START\", 500);\n }", "public Form getUserSettingsForm() throws ProcessManagerException {\r\n try {\r\n com.silverpeas.workflow.api.model.DataFolder userInfos = processModel\r\n .getUserInfos();\r\n if (userInfos == null)\r\n return null;\r\n \r\n return new XmlForm(userInfos.toRecordTemplate(currentRole, getLanguage(),\r\n false));\r\n } catch (FormException we) {\r\n throw new ProcessManagerException(\"ProcessManagerSessionController\",\r\n \"processManager.ERR_GET_USERSETTINGS_FORM\", we);\r\n } catch (WorkflowException fe) {\r\n throw new ProcessManagerException(\"ProcessManagerSessionController\",\r\n \"processManager.ERR_GET_USERSETTINGS_FORM\", fe);\r\n }\r\n }", "private MinesweeperPreferences getPrefs() {\n return Main.getPrefs();\n }", "void getSettings(ControlsSettings settings);", "private void showUserSettings() {\n\t\tSharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"\\n Send report:\"+ sharedPrefs.getBoolean(\"prefSendReport\", true));\n\t}", "public Preferences getPrefs() {\n return _prefs;\n }", "private void showUserSettings() {\n\t\t\tSharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);\n\t\t\tStringBuilder builder = new StringBuilder();\n\t\t\tbuilder.append(\"\\n Send report:\"+ sharedPrefs.getBoolean(\"prefSendReport\", true));\n\t\t}", "public JComponent getPreferenceUI() {\n\t\treturn null;\n\t}", "private void showUserPreferences() {\r\n MyAccount ma = state.getMyAccount();\r\n \r\n mOriginName.setValue(ma.getOriginName());\r\n SharedPreferencesUtil.showListPreference(this, MyAccount.Builder.KEY_ORIGIN_NAME, R.array.origin_system_entries, R.array.origin_system_entries, R.string.summary_preference_origin_system);\r\n mOriginName.setEnabled(!ma.isPersistent());\r\n \r\n if (mEditTextUsername.getText() == null\r\n || ma.getUsername().compareTo(mEditTextUsername.getText()) != 0) {\r\n mEditTextUsername.setText(ma.getUsername());\r\n }\r\n StringBuilder summary = new StringBuilder(this.getText(R.string.summary_preference_username));\r\n if (ma.getUsername().length() > 0) {\r\n summary.append(\": \" + ma.getUsername());\r\n } else {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextUsername.setSummary(summary);\r\n mEditTextUsername.setEnabled(ma.canSetUsername());\r\n\r\n if (ma.isOAuth() != mOAuth.isChecked()) {\r\n mOAuth.setChecked(ma.isOAuth());\r\n }\r\n // In fact, we should hide it if not enabled, but I couldn't find an easy way for this...\r\n mOAuth.setEnabled(ma.canChangeOAuth());\r\n\r\n if (mEditTextPassword.getText() == null\r\n || ma.getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n mEditTextPassword.setText(ma.getPassword());\r\n }\r\n summary = new StringBuilder(this.getText(R.string.summary_preference_password));\r\n if (TextUtils.isEmpty(ma.getPassword())) {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextPassword.setSummary(summary);\r\n mEditTextPassword.setEnabled(ma.getConnection().isPasswordNeeded());\r\n\r\n int titleResId;\r\n switch (ma.getCredentialsVerified()) {\r\n case SUCCEEDED:\r\n titleResId = R.string.title_preference_verify_credentials;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials));\r\n break;\r\n default:\r\n if (ma.isPersistent()) {\r\n titleResId = R.string.title_preference_verify_credentials_failed;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials_failed));\r\n } else {\r\n titleResId = R.string.title_preference_add_account;\r\n if (ma.isOAuth()) {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_oauth));\r\n } else {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_basic));\r\n }\r\n }\r\n break;\r\n }\r\n mVerifyCredentials.setTitle(titleResId);\r\n mVerifyCredentials.setSummary(summary);\r\n mVerifyCredentials.setEnabled(ma.isOAuth() || ma.getCredentialsPresent());\r\n }", "public void setSettings(UserPrefs prefs) {\n tfDataPath.setText(prefs.getProperty(UserPrefs.DATA_ROOT));\n // Save this for a comparison later\n existingDataPath = prefs.getProperty(UserPrefs.DATA_ROOT);\n\n String backup = prefs.getProperty(UserPrefs.BACKUP_FOLDER);\n // Nothing there, so add default based on username - this is OK\n if(backup == null || backup.length() == 0) {\n backup = DataFiler.getDefaultBackupFolder(prefs.getUserName());\n }\n tfBackupPath.setText(backup);\n\n cbBackUpOnExit.setSelected(prefs.getBooleanProperty(UserPrefs.BACKUP));\n\n tfNagSave.setText(prefs.getProperty(UserPrefs.SAVE_NAG_MINS));\n\n cbIncludeText.setSelected(prefs.getBooleanProperty(UserPrefs.MESSAGE_QUOTE));\n\n // L&F\n String lf = prefs.getProperty(UserPrefs.APP_LOOK_FEEL);\n cbLookAndFeel.setSelectedItem(lf);\n\n UIManager.LookAndFeelInfo[] systemLookAndFeels = UIManager.getInstalledLookAndFeels();\n for(int i = 0; i < systemLookAndFeels.length; i++) {\n if(systemLookAndFeels[i].getClassName().equals(lf)) {\n cbLookAndFeel.setSelectedIndex(i);\n break;\n }\n }\n\n cbShowStatusMessages.setSelected(prefs.getBooleanProperty(UserPrefs.STATUS_MESSAGES));\n }", "public static IPreferenceStore getUIStore() {\n return getUIPlugin().getPreferenceStore();\n }", "Preferences userRoot();", "public UserSettings getUserSettings() {\n\t\treturn userSettings;\n\t}", "private void getAutonomousPrefs() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(hardwareMap.appContext);\n alliance = preferences.getString(\"AllianceColor\", \"error\");\n frontBack = preferences.getString(\"FrontBack\", \"error\");\n getPartnerGlyph = preferences.getBoolean(\"PickupAllianceGlyph\", false);\n getPitGlyph = preferences.getBoolean(\"PickupPitGlyph\", false);\n }", "private void readSharedPreferences() {\n SharedPreferences sharedPref = getActivity().getSharedPreferences(SETTINGS_FILE_KEY, MODE_PRIVATE);\n currentDeviceAddress = sharedPref.getString(SETTINGS_CURRENT_DEVICE_ADDRESS, \"\");\n currentDeviceName = sharedPref.getString(SETTINGS_CURRENT_DEVICE_NAME, \"\");\n currentFilenamePrefix = sharedPref.getString(SETTINGS_CURRENT_FILENAME_PREFIX, \"\");\n currentSubjectName = sharedPref.getString(SETTINGS_SUBJECT_NAME, \"\");\n currentShoes = sharedPref.getString(SETTINGS_SHOES, \"\");\n currentTerrain = sharedPref.getString(SETTINGS_TERRAIN, \"\");\n }", "private void getPreferences() {\n Account rootAccount = book.getRootAccount();\n displayedSecuritiesList = rootAccount.getPreference(\"StockGlance_displayedSecurities\", \"\");\n allowMissingPrices = rootAccount.getPreferenceBoolean(\"StockGlance_DisplayMissingPrices\", false);\n timelySnapshotInterval = rootAccount.getPreferenceInt(\"StockGlance_TimelyWindow\", 7);\n }", "public static BleTrackerPreferences getPreferences() {\n return preferences;\n }", "public SharedPreferences getPrefs() { return this.prefs; }", "public SharedPreferences GetSettings() {\n return mSettings;\n }", "public static @NotNull Settings getSettings ()\n {\n Application application = ApplicationManager.getApplication ();\n SettingsPlugin settingsPlugin = application.getComponent (SettingsPlugin.class);\n return settingsPlugin.getSettings ();\n }", "private void getPreferences() {\n Constants constants = new Constants();\n android.content.SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n\n serverUrl = sharedPreferences.getString(\"LedgerLinkBaseUrl\", constants.DEFAULTURL);\n IsEditing = SharedPrefs.readSharedPreferences(getActivity(), \"IsEditing\", \"0\");\n tTrainerId = SharedPrefs.readSharedPreferences(getActivity(), \"ttrainerId\", \"-1\");\n vslaId = SharedPrefs.readSharedPreferences(getActivity(), \"vslaId\", \"-1\");\n\n vslaName = DataHolder.getInstance().getVslaName();\n representativeName = DataHolder.getInstance().getGroupRepresentativeName();\n representativePost = DataHolder.getInstance().getGroupRepresentativePost();\n repPhoneNumber = DataHolder.getInstance().getGroupRepresentativePhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n physAddress = DataHolder.getInstance().getPhysicalAddress();\n regionName = DataHolder.getInstance().getRegionName();\n grpPhoneNumber = DataHolder.getInstance().getGroupPhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n locCoordinates = DataHolder.getInstance().getLocationCoordinates();\n grpSupportType = DataHolder.getInstance().getSupportTrainingType();\n numberOfCycles = DataHolder.getInstance().getNumberOfCycles();\n }", "public NetworkCallInformation getPreferences() {\n return preferencesModel.getPreferences();\n\n }", "private void readPreferences() {\n configAutonomousCommand();\n }", "com.google.apps.alertcenter.v1beta1.Settings getSettings();", "protected String readSettings() {\n String output = \"\";\n for (String setting: settings.keySet()) {\n String value = settings.get(setting);\n output += setting + \":\" + value + \"\\n\";\n }\n return output;\n }", "UserSettings getByUser();", "@JavascriptInterface\n public String getPreference(String name) {\n Log.d(TAG, \"getPreference: \" + name);\n return preferences.getString(name, \"\");\n }", "public UserSettings getUserSettings(String username);", "public String prefsAutomaticallyCheck();", "@Override\n public Path getUserPrefsFilePath() {\n return userPrefsStorage.getUserPrefsFilePath();\n }", "Settings getSettings();", "public static Collection<String> getPreferences(){\n\t\treturn preferences;\n\t}", "protected abstract IEditorPreferences getPreferences();", "public String getFxSettings() {\r\n return \"{}\";\r\n }", "private void showUserPreferences() {\r\n MyAccount ma = state.getAccount();\r\n \r\n mOriginName.setValue(ma.getOriginName());\r\n SharedPreferencesUtil.showListPreference(this, MyAccount.Builder.KEY_ORIGIN_NAME, R.array.origin_system_entries, R.array.origin_system_entries, R.string.summary_preference_origin_system);\r\n \r\n mOriginName.setEnabled(!state.builder.isPersistent() && TextUtils.isEmpty(ma.getUsername()));\r\n \r\n if (mEditTextUsername.getText() == null\r\n || ma.getUsername().compareTo(mEditTextUsername.getText()) != 0) {\r\n mEditTextUsername.setText(ma.getUsername());\r\n }\r\n StringBuilder summary;\r\n if (ma.getUsername().length() > 0) {\r\n summary = new StringBuilder(ma.getUsername());\r\n } else {\r\n summary = new StringBuilder(this.getText(ma.alternativeTermForResourceId(R.string.summary_preference_username)));\r\n }\r\n mEditTextUsername.setDialogTitle(this.getText(ma.alternativeTermForResourceId(R.string.dialog_title_preference_username)));\r\n mEditTextUsername.setTitle(this.getText(ma.alternativeTermForResourceId(R.string.title_preference_username)));\r\n mEditTextUsername.setSummary(summary);\r\n mEditTextUsername.setEnabled(!state.builder.isPersistent() && !ma.isUsernameValidToStartAddingNewAccount());\r\n \r\n boolean isNeeded = ma.canChangeOAuth();\r\n if (ma.isOAuth() != mOAuth.isChecked()) {\r\n mOAuth.setChecked(ma.isOAuth());\r\n }\r\n // In fact, we should hide it if not enabled, but I couldn't find an easy way for this...\r\n mOAuth.setEnabled(isNeeded);\r\n if (isNeeded) {\r\n mOAuth.setTitle(R.string.title_preference_oauth);\r\n mOAuth.setSummary(ma.isOAuth() ? R.string.summary_preference_oauth_on : R.string.summary_preference_oauth_off);\r\n } else {\r\n mOAuth.setTitle(\"\");\r\n mOAuth.setSummary(\"\");\r\n }\r\n \r\n isNeeded = ma.getConnection().isPasswordNeeded();\r\n if (mEditTextPassword.getText() == null\r\n || ma.getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n mEditTextPassword.setText(ma.getPassword());\r\n }\r\n if (isNeeded) {\r\n mEditTextPassword.setTitle(R.string.title_preference_password);\r\n summary = new StringBuilder(this.getText(R.string.summary_preference_password));\r\n if (TextUtils.isEmpty(ma.getPassword())) {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n } else {\r\n summary = null;\r\n mEditTextPassword.setTitle(\"\");\r\n }\r\n mEditTextPassword.setSummary(summary);\r\n mEditTextPassword.setEnabled(isNeeded);\r\n \r\n int titleResId;\r\n boolean addAccountOrVerifyCredentialsEnabled = ma.isOAuth() || ma.getCredentialsPresent();\r\n switch (ma.getCredentialsVerified()) {\r\n case SUCCEEDED:\r\n titleResId = R.string.title_preference_verify_credentials;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials));\r\n break;\r\n default:\r\n if (state.builder.isPersistent()) {\r\n titleResId = R.string.title_preference_verify_credentials_failed;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials_failed));\r\n } else {\r\n if (!ma.isUsernameValidToStartAddingNewAccount()) {\r\n addAccountOrVerifyCredentialsEnabled = false;\r\n }\r\n titleResId = R.string.title_preference_add_account;\r\n if (ma.isOAuth()) {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_oauth));\r\n } else {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_basic));\r\n }\r\n }\r\n break;\r\n }\r\n addAccountOrVerifyCredentials.setTitle(titleResId);\r\n addAccountOrVerifyCredentials.setSummary(summary);\r\n addAccountOrVerifyCredentials.setEnabled(addAccountOrVerifyCredentialsEnabled);\r\n }", "IngestModuleGlobalSettingsPanel getGlobalSettingsPanel();", "private static String getConfigFile() {\n\n final String sPath = getUserFolder();\n\n return sPath + File.separator + \"sextante.settings\";\n\n }", "String getPreference(String user, String preferenceName) throws OntimizeJEERuntimeException;", "public static String getSharedPrefs() {\n return SHARED_PREFS;\n }", "Preferences systemRoot();", "private void showPreferenceSettings() {\n \tfor(PrefKeysE k: PrefKeysE.values()) {\n \t\tString key = k.getKey();\n \t\tboolean isFound = Tt.isPreferencePresent(key);\n \t\tint prtFlags = 0; //don't print from getPreference()\n// \t\tboolean valB;\n// \t\tint valI;\n// \t\tdouble valD;\n \t\tString valFoundStr = \"\";\n \t\tString prefix = String.format(\"%-40s: %-7s: found? %s, default \", key, k.getType().name(), (isFound ? \"Y\" : \"N\"));\n \t\tswitch(k.getType()) {\n \t\tcase BOOLEAN:\n \t\t\tboolean dfltB = k.getDefaultBoolean();\n \t\t\tvalFoundStr += dfltB;\n \t\t\tif(isFound) {\n \t\t\t\tboolean val = Tt.getPreference(k, dfltB, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += \", current \" + val;\n \t\t\t}\n \t\t\tbreak;\n \t\tcase INT:\n \t\t\tint dfltI = k.getDefaultInt();\n \t\t\tvalFoundStr += dfltI;\n \t\t\tif(isFound) {\n \t\t\t\tint val = Tt.getPreference(k, dfltI, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += \", current \" + val;\n \t\t\t}\n \t\t\tbreak;\n \t\tcase DOUBLE:\n \t\t\tdouble dfltD = k.getDefaultDouble();\n \t\t\tvalFoundStr = String.format(\"% 1.4f\", dfltD);\n \t\t\tif(isFound) {\n \t\t\t\tdouble val = Tt.getPreference(k, dfltD, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += String.format(\", current % 1.4f\", val);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase STRING:\n \t\t\tString dfltS = k.getDefaultString();\n\t\t\t\tvalFoundStr += \"'\" + dfltS + \"'\";\n \t\t\tif(isFound) {\n \t\t\t\tString val = Tt.getPreference(k, dfltS, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += \", current '\" + val + \"'\";\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n\t\t\tP.println(prefix + valFoundStr);\n\n// \t\tif(k.getType().equals(PrefTypeE.BOOLEAN)) \n \t}\n }", "static Menu settings ()\r\n \t{\r\n \t\tfinal byte width = 45;\r\n \t\tOption ram, rightHanded, dumpState, trackTime, assembly, compression;\r\n \t\tString label [] = {\"Which settings field would you\",\r\n \t\t\"like to modify?\"};\r\n \t\tMenu settings = new Menu (label, \"Change program settings.\", width);\r\n \t\t\r\n \t\t//Initialising options:\r\n \t\tassembly = new Editor (Settings.assembly, \"Assembly Definitions\");\r\n \t\trightHanded = new Toggle (Settings.rightHanded, \"RAM select\", \"Right\", \"Left\"); //True stands for right;\r\n \t\t//False for left.\r\n \t\tdumpState = new Toggle (Settings.dumpState, \"Data Recording\");\r\n \t\ttrackTime = new Toggle (Settings.trackTime, \"Time Tracking\");\r\n \t\tram = new PickNumber (Settings.rAMallowed, \"RAM Allowed\", \"bytes\");\r\n \t\tcompression = new Toggle (Settings.compressNBT, \"Schematic compression\");\r\n \t\t\r\n \t\t//Adding options to setting menu:\r\n \t\tsettings.addOption(assembly);\r\n \t\tsettings.addOption(rightHanded);\r\n \t\tsettings.addOption(dumpState);\r\n \t\tsettings.addOption(trackTime);\r\n \t\tsettings.addOption(ram);\r\n \t\t//Settings menu will display these options in the order they are added here.\r\n \t\t\r\n \t\t//TODO option for program name, target and programming language settings.\r\n \t\t\r\n \t\treturn settings;\r\n \t}", "public String getUserConfig() {\n return userConfig;\n }", "private static void changeSettings() {\n\t\t\n\t\tfinal Settings sett = config;\n\t\t\n\t\tfinal JDialog settingsDialog = new JDialog(frame, \"Change settings\");\n\t\t\n\t\tsettingsDialog.getContentPane().setLayout(new BorderLayout());\n\t\tsettingsDialog.setPreferredSize(new Dimension(350,150));\n\t\t\n\t\tJPanel settings = new JPanel();\n\t\tsettings.setLayout(new GridLayout(3,2));\n\t\t\n\t\tJLabel lblDB = new JLabel(\"Update DB dynamically\");\n\t\tJRadioButton rbDB = new JRadioButton();\n\t\trbDB.setSelected(sett.isUpdateDB());\n\t\trbDB.addItemListener(new ItemListener(){\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setUpdateDB(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setUpdateDB(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\t\t\n\t\tJLabel lblGUI = new JLabel(\"Use Graphical User Interface\");\n\t\tJRadioButton rbGUI = new JRadioButton();\n\t\trbGUI.setSelected(sett.isGUI());\n\t\trbGUI.addItemListener(new ItemListener() {\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setGUI(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setGUI(false);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t});\n\t\t\n\t\tJLabel lblFile = new JLabel(\"Working file\");\n\t\tfinal JTextField tfFile = new JTextField(sett.getWorkingFile());\n\t\t\t\t\n\t\tsettings.add(lblDB);\n\t\tsettings.add(rbDB);\n\t\tsettings.add(lblGUI);\n\t\tsettings.add(rbGUI);\n\t\tsettings.add(lblFile);\n\t\tsettings.add(tfFile);\n\t\t\n\t\tJButton btnSave = new JButton(\"Save settings\");\n\t\tbtnSave.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif(!saved) {\n\t\t \t\tint option = JOptionPane.showOptionDialog(frame,\n\t\t \t\t\t\t\"Updating the settings will reset the application\\nThere are unsaved changes\\nDo you want to save them now?\",\n\t\t \t\t\t\t\"Unsaved changes\",JOptionPane.YES_NO_CANCEL_OPTION,\n\t\t \t\t\t\tJOptionPane.WARNING_MESSAGE, null, null, 0);\n\t\t \t\tswitch(option) {\n\t\t \t\tcase 0:\n\t\t \t\t\ttoggleSaved(portfolio.save(WORKING_FILE));\n\t\t \t\tdefault:\n\t\t \t\t\tbreak; \t \t\t\n\t\t \t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsett.setWorkingFile(tfFile.getText());\n\t\t\t\t\n\t\t\t\tsett.save();\n\t\t\t\tconfig = new Settings(sett);\n\t\t\t\tsettingsDialog.dispose();\n\t\t\t\t\n\t\t\t\tif(!sett.isGUI()){\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\texit = false;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!sett.isUpdateDB()){\n\t\t\t\t\tportfolio.init(config.getWorkingFile());\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION);\n\t\t\t\t\tbtnRestore.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tportfolio.initDB();\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION+\" ** Linked to Database **\");\n\t\t\t\t\tbtnRestore.setEnabled(false);\n\t\t\t\t}\n\t\t\t\t\topTable.setModel((TableModel) new ProjectTableModel(portfolio.getOngoingProjects()));\n\t\t\t\t\tfpTable.setModel((TableModel) new ProjectTableModel(portfolio.getFinishedProjects()));\n\t\t\t\t\tsel.init(portfolio);\n\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsettingsDialog.add(settings, BorderLayout.CENTER);\n\t\tsettingsDialog.add(btnSave, BorderLayout.PAGE_END);\n\t\t\n\t\tsettingsDialog.pack();\n\t\tsettingsDialog.setVisible(true);\t\n\t}", "public Object createPrefsEditor()\n \t{\n \t\treturn this.createPrefsEditor(true, false);\n \t}", "public User getPrefsUser() {\n Gson gson = new Gson();\n String json = prefs.getString(USER_PREFS, \"\");\n return gson.fromJson(json, User.class);\n }", "public static SharedPreferences getSharedPrefs() {\n return App.getAppContext().getSharedPreferences(PREFS_LABEL, Context.MODE_PRIVATE);\n }", "public void savingVariablesWebConfig(){\n SharedPreferences prefs = getSharedPreferences(Constants.PREFERENCES_NAME, Context.MODE_PRIVATE);\n //Save data of user in preferences\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_ACCEPTED, \"3\");\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_VISIBLE, \"10\");\n editor.putString(Constants.PREF_VALUE_MAX_TIME_ORDERS, \"15\");\n editor.commit();\n }", "public SharedPreferences prefs() {\n\n SharedPreferences prefs = context.getSharedPreferences(APP_IDS_PREFS_NAME, Context.MODE_PRIVATE); // Private because it can still be accessed from other apps with the same User ID\n return prefs;\n }", "protected Map<String, String> getSettings() {\n\n return (Map<String, String>) getExtraData().get(ProcessListener.EXTRA_DATA_SETTINGS);\n }", "public interface PreferencesHelper {\r\n\r\n int getUserLoggedInMode();\r\n\r\n void setUserLoggedInMode(DataManager.LoggedInMode mode);\r\n\r\n String getUserName();\r\n\r\n void setUserName(String userName);\r\n\r\n String getAccessToken();\r\n\r\n void setAccessToken(String accessToken);\r\n\r\n String getUserProfilePicUrl();\r\n\r\n void setUserProfilePicUrl(String profilePicUrl);\r\n\r\n String getStoredProfilePicPath();\r\n\r\n void setStoredProfilePicPath(String profilePicPath);\r\n\r\n}", "protected static void getSettingsFromFile(){\n\t\t Properties properties = new Properties();\r\n\t\t try {\r\n\t\t\t try {\r\n\t\t\t\t FileInputStream fi = new FileInputStream(MT4jSettings.getInstance().getDefaultSettingsPath() + \"Settings.txt\");\r\n\t\t\t\t properties.load(fi);\t\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\tlogger.debug(\"Couldnt load Settings.txt from the File system. Trying to load it as a resource..\");\r\n\t\t\t\tInputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(\"Settings.txt\");\r\n\t\t\t\t if (in != null){\r\n\t\t\t\t\t properties.load(in);\t\r\n\t\t\t\t }else{\r\n\t\t\t\t\t logger.debug(\"Couldnt load Settings.txt as a resource. Using defaults.\");\r\n\t\t\t\t\t throw new FileNotFoundException(\"Couldnt load Settings.txt as a resource\");\r\n\t\t\t\t }\r\n\t\t\t}\r\n\t\r\n\t\t\t MT4jSettings.fullscreen = Boolean.parseBoolean(properties.getProperty(\"Fullscreen\", Boolean.valueOf(MT4jSettings.getInstance().isFullscreen()).toString()).trim());\r\n\t\t\t //Use java's fullscreen exclusive mode (real fullscreen) or just use an undecorated window at fullscreen size \r\n\t\t\t MT4jSettings.getInstance().fullscreenExclusive = Boolean.parseBoolean(properties.getProperty(\"FullscreenExclusive\", Boolean.valueOf(MT4jSettings.getInstance().isFullscreenExclusive()).toString()).trim());\r\n\t\t\t //Which display to use for fullscreen\r\n\t\t\t MT4jSettings.getInstance().display = Integer.parseInt(properties.getProperty(\"Display\", String.valueOf(MT4jSettings.getInstance().getDisplay())).trim());\r\n\t\r\n\t\t\t MT4jSettings.getInstance().windowWidth = Integer.parseInt(properties.getProperty(\"DisplayWidth\", String.valueOf(MT4jSettings.getInstance().getWindowWidth())).trim());\r\n\t\t\t MT4jSettings.getInstance().windowHeight = Integer.parseInt(properties.getProperty(\"DisplayHeight\", String.valueOf(MT4jSettings.getInstance().getWindowHeight())).trim());\r\n\t\t\t \r\n\t\t\t //FIXME at fullscreen really use the screen dimension? -> we need to set the native resoultion ourselves!\r\n\t\t\t //so we can have a lower fullscreen resolution than the screen dimensions\r\n\t\t\t if (MT4jSettings.getInstance().isFullscreen() && !MT4jSettings.getInstance().isFullscreenExclusive()){\r\n\t\t\t\t Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t\t\t MT4jSettings.getInstance().windowWidth = screenSize.width;\r\n\t\t\t\t MT4jSettings.getInstance().windowHeight = screenSize.height;\r\n\t\t\t }\r\n\t\t\t /*\r\n\t\t\t //Comment this to not change the window width to the screen width in fullscreen mode\r\n\t\t\t else{\r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t\t */\r\n\t\t\t \r\n\t\t\t MT4jSettings.getInstance().maxFrameRate = Integer.parseInt(properties.getProperty(\"MaximumFrameRate\", String.valueOf(MT4jSettings.getInstance().getMaxFrameRate())).trim());\r\n\t\t\t MT4jSettings.getInstance().renderer = Integer.parseInt(properties.getProperty(\"Renderer\", String.valueOf(MT4jSettings.getInstance().getRendererMode())).trim());\r\n\t\t\t MT4jSettings.getInstance().numSamples = Integer.parseInt(properties.getProperty(\"OpenGLAntialiasing\", String.valueOf(MT4jSettings.getInstance().getNumSamples())).trim());\r\n\t\r\n\t\t\t MT4jSettings.getInstance().vSync = Boolean.parseBoolean(properties.getProperty(\"Vertical_sync\", Boolean.valueOf(MT4jSettings.getInstance().isVerticalSynchronization()).toString()).trim());\r\n\t\r\n\t\t\t //Set frametitle\r\n\t\t\t String frameTitle = properties.getProperty(\"Frametitle\", MT4jSettings.getInstance().getFrameTitle().trim());\r\n\t\t\t MT4jSettings.getInstance().frameTitle = frameTitle;\r\n\t\r\n\t\t } catch (Exception e) {\r\n\t\t\t logger.error(\"Error while loading Settings.txt. Using defaults.\");\r\n\t\t }\r\n\t\t settingsLoadedFromFile = true;\r\n\t}", "private void preferences() {\n final Preferences prefs = Preferences.userNodeForPackage(DesktopPane.class);\n final JFileChooser chooser = new JFileChooser(prefs.get(SCREENSHOT_DIRECTORY_PREFS, null));\n chooser.setDialogTitle(\"Output directory for screenshots\");\n chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n switch (chooser.showOpenDialog(this)) {\n case JFileChooser.APPROVE_OPTION: {\n final File directory = chooser.getSelectedFile();\n if (directory != null) {\n prefs.put(SCREENSHOT_DIRECTORY_PREFS, directory.getPath());\n }\n break;\n }\n }\n }", "public File getPreferencesFile() {\n\t\treturn preferencesFile;\n\t}", "private Settings() {\n prefs = NbPreferences.forModule( Settings.class );\n }", "private void fetchPreferences() {\n macAddress = prefs.getString(getString(R.string.pref_mac), DEF_VALUE);\n macSet = prefs.getBoolean(getString(R.string.mac_set), false);\n //fetch previous values for temp, max, min\n tempMeasured = Double.parseDouble(prefs.getString(getString(R.string.text_temp), \"0\"));\n tempMax = Double.parseDouble(prefs.getString(getString(R.string.text_max), \"0\"));\n tempMin = Double.parseDouble(prefs.getString(getString(R.string.text_min), \"0\"));\n }", "public void loadPreferences() {\n\t\tVector v = dboxini.getSection(\"WindowState\");\n\t\tif (v != null && v.size() == 1) {\n\t\t\tDimension scrSize = Toolkit.getDefaultToolkit().getScreenSize();\n\n\t\t\tConfigSection wp = (ConfigSection) v.elementAt(0);\n\t\t\tint x = wp.getIntProperty(\"xLoc\",-1);\n\t\t\tint y = wp.getIntProperty(\"yLoc\",-1);\n\t\t\tint w = wp.getIntProperty(\"width\",-1);\n\t\t\tint h = wp.getIntProperty(\"height\",-1);\n\n\t\t\tif (w > -1 && h > -1) {\n\t\t\t\tif (w > scrSize.width) w = scrSize.width;\n\t\t\t\tif (h > scrSize.height) h = scrSize.height;\n\t\t\t\tsetSize(w,h);\n\t\t\t}\n\n\t\t\tDimension winSize = getSize();\n\n\t\t\tif (x > -1 && y > -1) {\n\t\t\t\tif (x + winSize.width > scrSize.width) x = scrSize.width - winSize.width;\n\t\t\t\tif (y + winSize.height > scrSize.height) y = scrSize.height - winSize.height;\n\n\t\t\t\tsetLocation(x,y);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tx = (scrSize.width - winSize.width) / 2;\n\t\t\t\ty = (scrSize.height - winSize.height) / 2;\n\n\t\t\t\tint dx = x + winSize.width - scrSize.width;\n\t\t\t\tif (dx > 0)\n\t\t\t\t\tx -= dx;\n\n\t\t\t\tif (x < 0)\n\t\t\t\t\tx = 0;\n\n\t\t\t\tint dy = y + winSize.height - scrSize.height;\n\t\t\t\tif (dy > 0)\n\t\t\t\t\ty -= dy;\n\n\t\t\t\tif (y < 0)\n\t\t\t\t\ty = 0;\n\n\t\t\t\tsetLocation(x,y);\n\t\t\t}\n\t\t}\n\t\t// Otherwise, use the default.\n\t\telse {\n\t\t\tsetSize(800,550);\n\t\n\t\t\tDimension scrSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\t\tDimension winSize = getSize();\n\t\n\t\t\tint x = (scrSize.width - winSize.width) / 2;\n\t\t\tint y = (scrSize.height - winSize.height) / 2;\n\t\n\t\t\tint dx = x + winSize.width - scrSize.width;\n\t\t\tif (dx > 0)\n\t\t\t\tx -= dx;\n\t\n\t\t\tif (x < 0)\n\t\t\t\tx = 0;\n\t\n\t\t\tint dy = y + winSize.height - scrSize.height;\n\t\t\tif (dy > 0)\n\t\t\t\ty -= dy;\n\t\n\t\t\tif (y < 0)\n\t\t\t\ty = 0;\n\t\n\t\t\tsetLocation(x,y);\n\t\t}\n\t}", "int wkhtmltoimage_get_global_setting(PointerByReference settings, Pointer name, Pointer value, int vs);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "private void saveCurrentPreferences() {\n\t\toldUnitType = preferences.getInt(\"displayUnit\", UnitType.FOOTINCH.getId());\n\t\toldPrecision = preferences.getInt(\"precision\", 16);\n\t\toldRounding = preferences.getBoolean(\"roundUp\", true);\n\t\toldDisplayOptions = preferences.getString(\"displayOptions\", context.getString(R.string.displayAutomatic));\n\t}", "public static synchronized void getSettingsWindow() {\n if (WINDOW == null) {\n WINDOW = new JFrame(\"Settings\");\n WINDOW.setContentPane(new SettingsWindow().settingsPanel);\n WINDOW.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n WINDOW.pack();\n }\n WINDOW.setVisible(true);\n WINDOW.requestFocus();\n }", "public String getPrefsAutoLoadDescription();", "public PropertySet getViewProperties() {\r\n return prefs;\r\n }", "public void updateUserPrefs(UserPrefs prefs) {\n // Get the backup path in the Text Field\n String backup = tfBackupPath.getText().trim();\n\n // Nothing there, so add default based on username - this is OK\n if(backup.length() == 0) {\n backup = DataFiler.getDefaultBackupFolder(prefs.getUserName());\n }\n\n prefs.putProperty(UserPrefs.BACKUP_FOLDER, backup);\n\n prefs.putProperty(UserPrefs.BACKUP, cbBackUpOnExit.isSelected());\n prefs.putProperty(UserPrefs.SAVE_NAG_MINS, tfNagSave.getText().trim());\n\n try {\n int mins = Integer.parseInt(tfNagSave.getText().trim());\n MainFrame.getInstance().mainMenu.actionSave.setNagInterval(mins);\n }\n catch(Exception ex) {\n //MainFrame.getInstance().mainMenu.actionSave.setNagInterval(0);\n }\n\n prefs.putProperty(UserPrefs.MESSAGE_QUOTE, cbIncludeText.isSelected());\n\n LookAndFeel lf = (LookAndFeel)cbLookAndFeel.getSelectedItem();\n prefs.putProperty(UserPrefs.APP_LOOK_FEEL, lf.getClassName());\n\n prefs.putProperty(UserPrefs.STATUS_MESSAGES, cbShowStatusMessages.isSelected());\n }", "public HashMap<String, Object> getUserConfig() {\n return userConfig;\n }", "public void printSettingsContents() {\n String fileName = \"collect.settings\";\n try {\n ClassLoader classLoader = getClass().getClassLoader();\n FileInputStream fin = new FileInputStream(\n classLoader.getResource(fileName).getFile());\n ObjectInputStream ois = new ObjectInputStream(fin);\n Map<?, ?> user_entries = (Map<?, ?>) ois.readObject();\n for (Map.Entry<?, ?> entry : user_entries.entrySet()) {\n Object v = entry.getValue();\n Object key = entry.getKey();\n System.out.println(\"user.\" + key.toString() + \"=\" + v.toString());\n }\n Map<?, ?> admin_entries = (Map<?, ?>) ois.readObject();\n for (Map.Entry<?, ?> entry : admin_entries.entrySet()) {\n Object v = entry.getValue();\n Object key = entry.getKey();\n System.out.println(\"admin.\" + key.toString() + \"=\" + v.toString());\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public interface GeneralPreferenceHelper {\n String PREF_USER_NAME = \"pref_name_user\";\n String PREF_ENABLE_SOCIAL = \"pref_social_recomendation\";\n}", "public IPreferenceStore getTextPreferenceStore() {\n return fPreferenceStore;\n }", "int wkhtmltoimage_get_global_setting(PointerByReference settings, String name, ByteBuffer value, int vs);", "public static SharedPreferences.Editor getSharedPrefsEditor() {\n return PreferencesUtils.getSharedPrefs().edit();\n }", "public static PreferencesView createPreferencesView() {\n // Retrieve application preferences and attach them to their view\n // (This instance must be instanciated after dependencies)\n final LinkedHashMap<String, JPanel> panels = new LinkedHashMap<String, JPanel>(2);\n panels.put(\"General settings\", new PreferencePanel());\n\n final PreferencesView preferencesView = new PreferencesView(getFrame(), Preferences.getInstance(), panels);\n preferencesView.init();\n\n return preferencesView;\n }", "private static SharedPreferences getSharedPreferences() {\n Context ctx = AppUtils.getAppContext();\n return ctx.getSharedPreferences(\"pref_user_session_data\", Context.MODE_PRIVATE);\n }", "public final void updateGUIFromPrefs() {\n try {\n angleStepSizeSpinner_.setValue(Double.parseDouble(prefs_.get(PrefUtils.ANGLESTEPSIZE, \"0.0\")));\n startAngleField_.setText(prefs_.get(PrefUtils.STARTANGLE, \"\"));\n doubleZeroCheckBox_.setSelected(Boolean.parseBoolean(prefs_.get(PrefUtils.DOUBLEZERO, \"\")));\n saveImagesCheckBox_.setSelected(Boolean.parseBoolean(prefs_.get(PrefUtils.ACQSAVEIMAGES, \"\")));\n acqdirRootField_.setText(prefs_.get(PrefUtils.ACQDIRROOT, \"\"));\n acqnamePrefixField_.setText(prefs_.get(PrefUtils.ACQNAMEPREFIX, \"\"));\n String channelGroup = core_.getChannelGroup();\n prefs_.put(PrefUtils.CHANNEL, channelGroup + \": \" + core_.getCurrentConfig(channelGroup));\n coeff3Field_.setText(PrefUtils.parseCal(3, prefs_, gui_));\n coeff2Field_.setText(PrefUtils.parseCal(2, prefs_, gui_));\n coeff1Field_.setText(PrefUtils.parseCal(1, prefs_, gui_));\n coeff0Field_.setText(PrefUtils.parseCal(0, prefs_, gui_));\n channelField_.setText(prefs_.get(PrefUtils.CHANNEL,\"\"));\n } catch (Exception ex) {\n Logger.getLogger(AcquisitionPanel.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "String getFlashPref();", "public static File getPreferencesDirectory() {\n\t\treturn PREFERENCES_DIRECTORY;\n\t}", "public Properties storeSettings() {\r\n return mSettings.storeSettings();\r\n }" ]
[ "0.6816022", "0.6768748", "0.67441183", "0.67441183", "0.67441183", "0.67441183", "0.66998833", "0.6665768", "0.6560002", "0.64900774", "0.6487052", "0.6462275", "0.6316966", "0.6316718", "0.6295891", "0.62830025", "0.6245727", "0.6164226", "0.6161001", "0.61140084", "0.61110353", "0.6094575", "0.6085173", "0.6072719", "0.60678965", "0.60573745", "0.6040779", "0.5986375", "0.5974909", "0.5969866", "0.59602916", "0.5933236", "0.5923839", "0.5893781", "0.5892264", "0.5874612", "0.58625895", "0.5859919", "0.585835", "0.58545417", "0.5847498", "0.58389014", "0.5836602", "0.5836181", "0.58259577", "0.58204097", "0.57935125", "0.57843685", "0.5772664", "0.5751235", "0.5738728", "0.57207257", "0.5717892", "0.5679513", "0.56592774", "0.56511354", "0.56478727", "0.56394464", "0.56288755", "0.5623494", "0.5621477", "0.56155795", "0.55696994", "0.55661184", "0.5559015", "0.5552836", "0.5549508", "0.5548694", "0.5531658", "0.55263174", "0.55232066", "0.55232066", "0.55232066", "0.55232066", "0.55232066", "0.55232066", "0.55232066", "0.5523064", "0.55212694", "0.551265", "0.5509299", "0.5499795", "0.5493999", "0.5493473", "0.54687834", "0.54675484", "0.54657453", "0.54592586", "0.54515886", "0.544362", "0.5430849", "0.54305476", "0.54241395", "0.54216623" ]
0.7832417
6
Set the user prefs' GUI settings.
void setGuiSettings(GuiSettings guiSettings);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSettings(UserPrefs prefs) {\n tfDataPath.setText(prefs.getProperty(UserPrefs.DATA_ROOT));\n // Save this for a comparison later\n existingDataPath = prefs.getProperty(UserPrefs.DATA_ROOT);\n\n String backup = prefs.getProperty(UserPrefs.BACKUP_FOLDER);\n // Nothing there, so add default based on username - this is OK\n if(backup == null || backup.length() == 0) {\n backup = DataFiler.getDefaultBackupFolder(prefs.getUserName());\n }\n tfBackupPath.setText(backup);\n\n cbBackUpOnExit.setSelected(prefs.getBooleanProperty(UserPrefs.BACKUP));\n\n tfNagSave.setText(prefs.getProperty(UserPrefs.SAVE_NAG_MINS));\n\n cbIncludeText.setSelected(prefs.getBooleanProperty(UserPrefs.MESSAGE_QUOTE));\n\n // L&F\n String lf = prefs.getProperty(UserPrefs.APP_LOOK_FEEL);\n cbLookAndFeel.setSelectedItem(lf);\n\n UIManager.LookAndFeelInfo[] systemLookAndFeels = UIManager.getInstalledLookAndFeels();\n for(int i = 0; i < systemLookAndFeels.length; i++) {\n if(systemLookAndFeels[i].getClassName().equals(lf)) {\n cbLookAndFeel.setSelectedIndex(i);\n break;\n }\n }\n\n cbShowStatusMessages.setSelected(prefs.getBooleanProperty(UserPrefs.STATUS_MESSAGES));\n }", "public void setPreference() {\n prefs = Preferences.userRoot().node(this.getClass().getName());\n String ID1 = \"Test1\";\n String ID2 = \"Test2\";\n String ID3 = \"Test3\";\n// First we will get the values\n// Define a boolean value\n System.out.println(prefs.getBoolean(ID1, true));\n// Define a string with default \"Hello World\n System.out.println(prefs.get(ID2, \"Hello World\"));\n// Define a integer with default 50\n System.out.println(prefs.getInt(ID3, 50));\n// Now set the values\n prefs.putBoolean(ID1, false);\n prefs.put(ID2, \"Hello Europa\");\n prefs.putInt(ID3, 45);\n\t\t\n prefs.remove(ID1);// Delete the preference settings for the first value\n }", "public void setUserPreferences(final BwPreferences val) {\n userPreferences = val;\n }", "private static void changeSettings() {\n\t\t\n\t\tfinal Settings sett = config;\n\t\t\n\t\tfinal JDialog settingsDialog = new JDialog(frame, \"Change settings\");\n\t\t\n\t\tsettingsDialog.getContentPane().setLayout(new BorderLayout());\n\t\tsettingsDialog.setPreferredSize(new Dimension(350,150));\n\t\t\n\t\tJPanel settings = new JPanel();\n\t\tsettings.setLayout(new GridLayout(3,2));\n\t\t\n\t\tJLabel lblDB = new JLabel(\"Update DB dynamically\");\n\t\tJRadioButton rbDB = new JRadioButton();\n\t\trbDB.setSelected(sett.isUpdateDB());\n\t\trbDB.addItemListener(new ItemListener(){\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setUpdateDB(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setUpdateDB(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\t\t\n\t\tJLabel lblGUI = new JLabel(\"Use Graphical User Interface\");\n\t\tJRadioButton rbGUI = new JRadioButton();\n\t\trbGUI.setSelected(sett.isGUI());\n\t\trbGUI.addItemListener(new ItemListener() {\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setGUI(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setGUI(false);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t});\n\t\t\n\t\tJLabel lblFile = new JLabel(\"Working file\");\n\t\tfinal JTextField tfFile = new JTextField(sett.getWorkingFile());\n\t\t\t\t\n\t\tsettings.add(lblDB);\n\t\tsettings.add(rbDB);\n\t\tsettings.add(lblGUI);\n\t\tsettings.add(rbGUI);\n\t\tsettings.add(lblFile);\n\t\tsettings.add(tfFile);\n\t\t\n\t\tJButton btnSave = new JButton(\"Save settings\");\n\t\tbtnSave.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif(!saved) {\n\t\t \t\tint option = JOptionPane.showOptionDialog(frame,\n\t\t \t\t\t\t\"Updating the settings will reset the application\\nThere are unsaved changes\\nDo you want to save them now?\",\n\t\t \t\t\t\t\"Unsaved changes\",JOptionPane.YES_NO_CANCEL_OPTION,\n\t\t \t\t\t\tJOptionPane.WARNING_MESSAGE, null, null, 0);\n\t\t \t\tswitch(option) {\n\t\t \t\tcase 0:\n\t\t \t\t\ttoggleSaved(portfolio.save(WORKING_FILE));\n\t\t \t\tdefault:\n\t\t \t\t\tbreak; \t \t\t\n\t\t \t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsett.setWorkingFile(tfFile.getText());\n\t\t\t\t\n\t\t\t\tsett.save();\n\t\t\t\tconfig = new Settings(sett);\n\t\t\t\tsettingsDialog.dispose();\n\t\t\t\t\n\t\t\t\tif(!sett.isGUI()){\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\texit = false;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!sett.isUpdateDB()){\n\t\t\t\t\tportfolio.init(config.getWorkingFile());\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION);\n\t\t\t\t\tbtnRestore.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tportfolio.initDB();\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION+\" ** Linked to Database **\");\n\t\t\t\t\tbtnRestore.setEnabled(false);\n\t\t\t\t}\n\t\t\t\t\topTable.setModel((TableModel) new ProjectTableModel(portfolio.getOngoingProjects()));\n\t\t\t\t\tfpTable.setModel((TableModel) new ProjectTableModel(portfolio.getFinishedProjects()));\n\t\t\t\t\tsel.init(portfolio);\n\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsettingsDialog.add(settings, BorderLayout.CENTER);\n\t\tsettingsDialog.add(btnSave, BorderLayout.PAGE_END);\n\t\t\n\t\tsettingsDialog.pack();\n\t\tsettingsDialog.setVisible(true);\t\n\t}", "void setPreference(String user, String preferenceName, String value) throws OntimizeJEERuntimeException;", "public void setPrefs(GamePreferences prefs) {\n\t\tthis.prefs = prefs;\n\t}", "void setSettings(ControlsSettings settings);", "public void updateUserPrefs(UserPrefs prefs) {\n // Get the backup path in the Text Field\n String backup = tfBackupPath.getText().trim();\n\n // Nothing there, so add default based on username - this is OK\n if(backup.length() == 0) {\n backup = DataFiler.getDefaultBackupFolder(prefs.getUserName());\n }\n\n prefs.putProperty(UserPrefs.BACKUP_FOLDER, backup);\n\n prefs.putProperty(UserPrefs.BACKUP, cbBackUpOnExit.isSelected());\n prefs.putProperty(UserPrefs.SAVE_NAG_MINS, tfNagSave.getText().trim());\n\n try {\n int mins = Integer.parseInt(tfNagSave.getText().trim());\n MainFrame.getInstance().mainMenu.actionSave.setNagInterval(mins);\n }\n catch(Exception ex) {\n //MainFrame.getInstance().mainMenu.actionSave.setNagInterval(0);\n }\n\n prefs.putProperty(UserPrefs.MESSAGE_QUOTE, cbIncludeText.isSelected());\n\n LookAndFeel lf = (LookAndFeel)cbLookAndFeel.getSelectedItem();\n prefs.putProperty(UserPrefs.APP_LOOK_FEEL, lf.getClassName());\n\n prefs.putProperty(UserPrefs.STATUS_MESSAGES, cbShowStatusMessages.isSelected());\n }", "private void showPreference(){\r\n if(userPreferencesForm == null) {\r\n userPreferencesForm = new UserPreferencesForm(mdiForm,true);\r\n }\r\n userPreferencesForm.loadUserPreferences(mdiForm.getUserId());\r\n userPreferencesForm.setUserName(mdiForm.getUserName());\r\n userPreferencesForm.display();\r\n }", "void setGui(Gui gui);", "private void setGUI()\r\n\t{\r\n\t\tbubblePB = setProgressBar(bubblePB);\r\n\t\tinsertionPB = setProgressBar(insertionPB);\r\n\t\tmergePB = setProgressBar(mergePB);\r\n\t\tquickPB = setProgressBar(quickPB);\r\n\t\tradixPB = setProgressBar(radixPB);\r\n\t\t\r\n\t\tsetLabels();\r\n\t\tsetPanel();\r\n\t\tsetLabels();\r\n\t\tsetFrame();\r\n\t}", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n add(mainTitle);\n add(content);\n add(diffSlider);\n add(colourChooser);\n add(mainB);//button to main menu\n diffSlider.requestFocus();\n }", "private void setPreferences(Preferences preferences) {\n this.preferences = preferences;\n }", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "private void setupSettingWindow()\n {\n setGUI.setWindowListener(new WindowListener() {\n @Override\n public void windowOpened(WindowEvent we) {\n }\n\n @Override\n public void windowClosing(WindowEvent we) {\n }\n\n @Override\n public void windowClosed(WindowEvent we) {\n player1Color = setGUI.getPlayer1Color();\n player2Color = setGUI.getPlayer2Color();\n }\n\n @Override\n public void windowIconified(WindowEvent we) {\n }\n\n @Override\n public void windowDeiconified(WindowEvent we) {\n }\n\n @Override\n public void windowActivated(WindowEvent we) {\n }\n\n @Override\n public void windowDeactivated(WindowEvent we) {\n }\n });\n }", "public DeveloperPrefsPanel(DeveloperPreferences prefs) {\n\t\tthis.prefs = prefs;\n\t\tinitComponents();\n\t}", "public void handlePreferences() {\n displayPrefs ();\n }", "private void showUserPreferences() {\r\n MyAccount ma = state.getMyAccount();\r\n \r\n mOriginName.setValue(ma.getOriginName());\r\n SharedPreferencesUtil.showListPreference(this, MyAccount.Builder.KEY_ORIGIN_NAME, R.array.origin_system_entries, R.array.origin_system_entries, R.string.summary_preference_origin_system);\r\n mOriginName.setEnabled(!ma.isPersistent());\r\n \r\n if (mEditTextUsername.getText() == null\r\n || ma.getUsername().compareTo(mEditTextUsername.getText()) != 0) {\r\n mEditTextUsername.setText(ma.getUsername());\r\n }\r\n StringBuilder summary = new StringBuilder(this.getText(R.string.summary_preference_username));\r\n if (ma.getUsername().length() > 0) {\r\n summary.append(\": \" + ma.getUsername());\r\n } else {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextUsername.setSummary(summary);\r\n mEditTextUsername.setEnabled(ma.canSetUsername());\r\n\r\n if (ma.isOAuth() != mOAuth.isChecked()) {\r\n mOAuth.setChecked(ma.isOAuth());\r\n }\r\n // In fact, we should hide it if not enabled, but I couldn't find an easy way for this...\r\n mOAuth.setEnabled(ma.canChangeOAuth());\r\n\r\n if (mEditTextPassword.getText() == null\r\n || ma.getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n mEditTextPassword.setText(ma.getPassword());\r\n }\r\n summary = new StringBuilder(this.getText(R.string.summary_preference_password));\r\n if (TextUtils.isEmpty(ma.getPassword())) {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextPassword.setSummary(summary);\r\n mEditTextPassword.setEnabled(ma.getConnection().isPasswordNeeded());\r\n\r\n int titleResId;\r\n switch (ma.getCredentialsVerified()) {\r\n case SUCCEEDED:\r\n titleResId = R.string.title_preference_verify_credentials;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials));\r\n break;\r\n default:\r\n if (ma.isPersistent()) {\r\n titleResId = R.string.title_preference_verify_credentials_failed;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials_failed));\r\n } else {\r\n titleResId = R.string.title_preference_add_account;\r\n if (ma.isOAuth()) {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_oauth));\r\n } else {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_basic));\r\n }\r\n }\r\n break;\r\n }\r\n mVerifyCredentials.setTitle(titleResId);\r\n mVerifyCredentials.setSummary(summary);\r\n mVerifyCredentials.setEnabled(ma.isOAuth() || ma.getCredentialsPresent());\r\n }", "public final void updateGUIFromPrefs() {\n try {\n angleStepSizeSpinner_.setValue(Double.parseDouble(prefs_.get(PrefUtils.ANGLESTEPSIZE, \"0.0\")));\n startAngleField_.setText(prefs_.get(PrefUtils.STARTANGLE, \"\"));\n doubleZeroCheckBox_.setSelected(Boolean.parseBoolean(prefs_.get(PrefUtils.DOUBLEZERO, \"\")));\n saveImagesCheckBox_.setSelected(Boolean.parseBoolean(prefs_.get(PrefUtils.ACQSAVEIMAGES, \"\")));\n acqdirRootField_.setText(prefs_.get(PrefUtils.ACQDIRROOT, \"\"));\n acqnamePrefixField_.setText(prefs_.get(PrefUtils.ACQNAMEPREFIX, \"\"));\n String channelGroup = core_.getChannelGroup();\n prefs_.put(PrefUtils.CHANNEL, channelGroup + \": \" + core_.getCurrentConfig(channelGroup));\n coeff3Field_.setText(PrefUtils.parseCal(3, prefs_, gui_));\n coeff2Field_.setText(PrefUtils.parseCal(2, prefs_, gui_));\n coeff1Field_.setText(PrefUtils.parseCal(1, prefs_, gui_));\n coeff0Field_.setText(PrefUtils.parseCal(0, prefs_, gui_));\n channelField_.setText(prefs_.get(PrefUtils.CHANNEL,\"\"));\n } catch (Exception ex) {\n Logger.getLogger(AcquisitionPanel.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void settings() {\n\n\t\tthis.addWindowListener(controller);\n\t\tthis.setVisible(true);\n\t\tthis.setSize(1000, 660);\n\t\tthis.validate();\n\t\tthis.repaint();\n\n\t}", "public void settings() {\n btSettings().push();\n }", "public void setUserPreferences (int outdoorPref, int nightlifePref, int hotelPref, int shoppingPref, int restaurantPref) {\n\t\tpreferences.clear(); \n\t\tpreferences.add(outdoorPref); \n\t\tpreferences.add(nightlifePref); \n\t\tpreferences.add(hotelPref); \n\t\tpreferences.add(shoppingPref); \n\t\tpreferences.add(restaurantPref); \n\t}", "private void preferences() {\n final Preferences prefs = Preferences.userNodeForPackage(DesktopPane.class);\n final JFileChooser chooser = new JFileChooser(prefs.get(SCREENSHOT_DIRECTORY_PREFS, null));\n chooser.setDialogTitle(\"Output directory for screenshots\");\n chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n switch (chooser.showOpenDialog(this)) {\n case JFileChooser.APPROVE_OPTION: {\n final File directory = chooser.getSelectedFile();\n if (directory != null) {\n prefs.put(SCREENSHOT_DIRECTORY_PREFS, directory.getPath());\n }\n break;\n }\n }\n }", "private void showUserSettings() {\n\t\tSharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"\\n Send report:\"+ sharedPrefs.getBoolean(\"prefSendReport\", true));\n\t}", "public void saveUserSettings() {\n\t}", "private void changeUIdefaults() {\n\t\tUIManager.put(\"TaskPaneContainer.useGradient\", Boolean.FALSE);\n\t\tUIManager.put(\"TaskPaneContainer.background\",\n\t\t\t\tColors.LightGray.color(0.5f));\n\n\t\t// setting taskpane defaults\n\t\tUIManager.put(\"TaskPane.font\", new FontUIResource(new Font(\"Verdana\",\n\t\t\t\tFont.BOLD, 16)));\n\t\tUIManager.put(\"TaskPane.titleBackgroundGradientStart\",\n\t\t\t\tColors.White.color());\n\t\tUIManager.put(\"TaskPane.titleBackgroundGradientEnd\",\n\t\t\t\tColors.LightBlue.color());\n\t}", "private void showUserSettings() {\n\t\t\tSharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);\n\t\t\tStringBuilder builder = new StringBuilder();\n\t\t\tbuilder.append(\"\\n Send report:\"+ sharedPrefs.getBoolean(\"prefSendReport\", true));\n\t\t}", "protected void showMineSettings() {\r\n settingsFrame.setLocation( scorePanel.getLocationOnScreen() );\r\n settingsFrame.setVisible( true );\r\n }", "private void initialize() {\n\t\tfrmSettings = new JFrame();\n\t\tfrmSettings.setTitle(\"Settings\");\n\t\tfrmSettings.setBounds(100, 100, 594, 420);\n\t\tfrmSettings.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmSettings.getContentPane().setLayout(null);\n\n\t\tJLabel lblSettings = new JLabel(\"Check the appropriate checkbox to change the values\");\n\t\tlblSettings.setBounds(10, 8, 558, 14);\n\t\tfrmSettings.getContentPane().add(lblSettings);\n\n\t\tstorage_panel = new JPanel();\n\t\tstorage_panel.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \"Storage\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\tstorage_panel.setBounds(20, 33, 548, 65);\n\t\tfrmSettings.getContentPane().add(storage_panel);\n\t\tstorage_panel.setLayout(null);\n\n\t\tJLabel lblDefaultPathfor = new JLabel(\"Default path (for reports):\");\n\t\tlblDefaultPathfor.setBounds(10, 27, 149, 14);\n\t\tstorage_panel.add(lblDefaultPathfor);\n\n\t\treport_path = new JTextField();\n\t\treport_path.setText(AppConfigInfo.getDefaultStorage());\n\t\treport_path.setBounds(171, 23, 367, 20);\n\t\tstorage_panel.add(report_path);\n\t\treport_path.setColumns(10);\n\n\t\twork_hours_panel = new JPanel();\n\t\twork_hours_panel.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \"Work-hours\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\twork_hours_panel.setBounds(20, 112, 548, 90);\n\t\tfrmSettings.getContentPane().add(work_hours_panel);\n\t\twork_hours_panel.setLayout(null);\n\n\t\tJLabel lblNewLabel = new JLabel(\"Full-day hours (hh:mm:ss):\");\n\t\tlblNewLabel.setBounds(10, 26, 161, 14);\n\t\twork_hours_panel.add(lblNewLabel);\n\n\t\tJLabel lblHalfdayHours = new JLabel(\"Half-day hours (hh:mm:ss):\");\n\t\tlblHalfdayHours.setBounds(10, 54, 161, 14);\n\t\twork_hours_panel.add(lblHalfdayHours);\n\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tDate df = new Date(), dh = new Date();\n\t\ttry {\n\t\t\tdf = sdf.parse(AppConfigInfo.getFullWorkingHours());\n\t\t\tdh = sdf.parse(AppConfigInfo.getHalfWorkingHours());\n\t\t} catch (Exception ex) {\n\n\t\t}\n\t\tfull_day_spinner = new JSpinner(new SpinnerDateModel());\n\t\tfull_day_spinner.setEditor(new JSpinner.DateEditor(full_day_spinner, sdf.toPattern()));\n\t\tfull_day_spinner.setValue(df);\n\t\tfull_day_spinner.setBounds(171, 23, 122, 20);\n\t\twork_hours_panel.add(full_day_spinner);\n\n\t\thalf_day_spinner = new JSpinner(new SpinnerDateModel());\n\t\thalf_day_spinner.setEditor(new JSpinner.DateEditor(half_day_spinner, sdf.toPattern()));\n\t\thalf_day_spinner.setValue(dh);\n\t\thalf_day_spinner.setBounds(171, 51, 122, 20);\n\t\twork_hours_panel.add(half_day_spinner);\n\n\t\tadmin_profile_panel = new JPanel();\n\t\tadmin_profile_panel.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \"Admin profile\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\tadmin_profile_panel.setBounds(20, 211, 548, 123);\n\t\tfrmSettings.getContentPane().add(admin_profile_panel);\n\t\tadmin_profile_panel.setLayout(null);\n\n\t\tlblNewLabel_1 = new JLabel(\"Existing password:\");\n\t\tlblNewLabel_1.setBounds(10, 28, 151, 14);\n\t\tadmin_profile_panel.add(lblNewLabel_1);\n\n\t\tlblNewPassword = new JLabel(\"New password:\");\n\t\tlblNewPassword.setBounds(10, 54, 151, 14);\n\t\tadmin_profile_panel.add(lblNewPassword);\n\n\t\tlblReenterPassword = new JLabel(\"Re-enter password:\");\n\t\tlblReenterPassword.setBounds(10, 79, 151, 14);\n\t\tadmin_profile_panel.add(lblReenterPassword);\n\n\t\texisting_password = new JPasswordField();\n\t\texisting_password.setBounds(171, 25, 159, 20);\n\t\tadmin_profile_panel.add(existing_password);\n\n\t\tnew_password = new JPasswordField();\n\t\tnew_password.setBounds(171, 51, 159, 20);\n\t\tadmin_profile_panel.add(new_password);\n\n\t\tre_entered_password = new JPasswordField();\n\t\tre_entered_password.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\tif (!re_entered_password.getText().equals(new_password.getText())) {\n\t\t\t\t\tpassword_status_label.setText(\"Password does not match.\");\n\t\t\t\t} else if (re_entered_password.getText().equals(new_password.getText())) {\n\t\t\t\t\tpassword_status_label.setText(\"\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t\tre_entered_password.setBounds(171, 76, 159, 20);\n\t\tadmin_profile_panel.add(re_entered_password);\n\n\t\tpassword_status_label = new JLabel(\"\");\n\t\tpassword_status_label.setBounds(340, 79, 198, 14);\n\t\tadmin_profile_panel.add(password_status_label);\n\n\t\tstorage_check = new JCheckBox(\"\");\n\t\tstorage_check.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tif (storage_check.isSelected()) {\n\t\t\t\t\tstorage_panel.setEnabled(true);\n\t\t\t\t\tenableReportPanelFields();\n\t\t\t\t} else {\n\t\t\t\t\tstorage_panel.setEnabled(false);\n\t\t\t\t\tdisableReportPanelFields();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tstorage_check.setBounds(0, 56, 21, 23);\n\t\tfrmSettings.getContentPane().add(storage_check);\n\n\t\twork_hours_check = new JCheckBox(\"\");\n\t\twork_hours_check.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tif (work_hours_check.isSelected()) {\n\t\t\t\t\twork_hours_panel.setEnabled(true);\n\t\t\t\t\tenableWorkHourPanelFields();\n\t\t\t\t} else {\n\t\t\t\t\twork_hours_panel.setEnabled(false);\n\t\t\t\t\tdisableWorkHourPanelFields();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\twork_hours_check.setBounds(0, 149, 21, 23);\n\t\tfrmSettings.getContentPane().add(work_hours_check);\n\n\t\tadmin_profile_check = new JCheckBox(\"\");\n\t\tadmin_profile_check.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tif (admin_profile_check.isSelected()) {\n\t\t\t\t\tadmin_profile_panel.setEnabled(true);\n\t\t\t\t\tenableAdminProfilePanelFields();\n\t\t\t\t} else {\n\t\t\t\t\tadmin_profile_panel.setEnabled(false);\n\t\t\t\t\tdisableAdminProfilePanelFields();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tadmin_profile_check.setBounds(0, 263, 21, 23);\n\t\tfrmSettings.getContentPane().add(admin_profile_check);\n\n\t\tapply_button = new JButton(\"Apply\");\n\t\tapply_button.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tif (storage_check.isSelected()) {\n\t\t\t\t\tif (report_path.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter the storage path.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treport_status = UpdateAppSettings.updateStoragePath(report_path.getText());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (work_hours_check.isSelected()) {\n\t\t\t\t\tif (full_day_spinner.getValue().toString().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter the full day hours.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (half_day_spinner.getValue().toString().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter the half day hours.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\twork_hours_status = UpdateAppSettings.updateWorkigHours((Date) full_day_spinner.getValue(),\n\t\t\t\t\t\t\t\t(Date) half_day_spinner.getValue());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (admin_profile_check.isSelected()) {\n\t\t\t\t\tif (existing_password.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter your existing password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (new_password.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter new password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (re_entered_password.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please re-enter new password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (!new_password.getText().equals(re_entered_password.getText())) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Re-entered password does not match.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (re_entered_password.getText().equals(existing_password.getText())) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings,\n\t\t\t\t\t\t\t\t\"New password cannot be same as the existing password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tadmin_password_status = UpdateAppSettings.updateAdminPassword(existing_password.getText(),\n\t\t\t\t\t\t\t\tre_entered_password.getText());\n\t\t\t\t\t\tif (!admin_password_status) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Wrong password entered.\", \"Error\",\n\t\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (report_status || work_hours_status || admin_password_status) {\n\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Settings applied successfully.\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tapply_button.setBounds(239, 348, 89, 23);\n\t\tfrmSettings.getContentPane().add(apply_button);\n\n\t\tlabel = new JLabel(\"\\u00A9 Copyright 2017. Saraswat Infotech Ltd\");\n\t\tlabel.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 9));\n\t\tlabel.setBounds(363, 368, 205, 14);\n\t\tfrmSettings.getContentPane().add(label);\n\t}", "public PreferencesDialog (JFrame owner)\n {\n this (owner, \"OPENMARKOV User Preferences\",\n OpenMarkovPreferences.OPENMARKOV_NODE_PREFERENCES, true/*\n * ,\n * OpenMarkovPreferences\n * .\n * OPENMARKOV_KERNEL_PREFERENCES\n * , false\n */);\n }", "public void setPreferences(Preferences preferences) {\n\n this.preferences = preferences;\n }", "private void showUserPreferences() {\r\n MyAccount ma = state.getAccount();\r\n \r\n mOriginName.setValue(ma.getOriginName());\r\n SharedPreferencesUtil.showListPreference(this, MyAccount.Builder.KEY_ORIGIN_NAME, R.array.origin_system_entries, R.array.origin_system_entries, R.string.summary_preference_origin_system);\r\n \r\n mOriginName.setEnabled(!state.builder.isPersistent() && TextUtils.isEmpty(ma.getUsername()));\r\n \r\n if (mEditTextUsername.getText() == null\r\n || ma.getUsername().compareTo(mEditTextUsername.getText()) != 0) {\r\n mEditTextUsername.setText(ma.getUsername());\r\n }\r\n StringBuilder summary;\r\n if (ma.getUsername().length() > 0) {\r\n summary = new StringBuilder(ma.getUsername());\r\n } else {\r\n summary = new StringBuilder(this.getText(ma.alternativeTermForResourceId(R.string.summary_preference_username)));\r\n }\r\n mEditTextUsername.setDialogTitle(this.getText(ma.alternativeTermForResourceId(R.string.dialog_title_preference_username)));\r\n mEditTextUsername.setTitle(this.getText(ma.alternativeTermForResourceId(R.string.title_preference_username)));\r\n mEditTextUsername.setSummary(summary);\r\n mEditTextUsername.setEnabled(!state.builder.isPersistent() && !ma.isUsernameValidToStartAddingNewAccount());\r\n \r\n boolean isNeeded = ma.canChangeOAuth();\r\n if (ma.isOAuth() != mOAuth.isChecked()) {\r\n mOAuth.setChecked(ma.isOAuth());\r\n }\r\n // In fact, we should hide it if not enabled, but I couldn't find an easy way for this...\r\n mOAuth.setEnabled(isNeeded);\r\n if (isNeeded) {\r\n mOAuth.setTitle(R.string.title_preference_oauth);\r\n mOAuth.setSummary(ma.isOAuth() ? R.string.summary_preference_oauth_on : R.string.summary_preference_oauth_off);\r\n } else {\r\n mOAuth.setTitle(\"\");\r\n mOAuth.setSummary(\"\");\r\n }\r\n \r\n isNeeded = ma.getConnection().isPasswordNeeded();\r\n if (mEditTextPassword.getText() == null\r\n || ma.getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n mEditTextPassword.setText(ma.getPassword());\r\n }\r\n if (isNeeded) {\r\n mEditTextPassword.setTitle(R.string.title_preference_password);\r\n summary = new StringBuilder(this.getText(R.string.summary_preference_password));\r\n if (TextUtils.isEmpty(ma.getPassword())) {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n } else {\r\n summary = null;\r\n mEditTextPassword.setTitle(\"\");\r\n }\r\n mEditTextPassword.setSummary(summary);\r\n mEditTextPassword.setEnabled(isNeeded);\r\n \r\n int titleResId;\r\n boolean addAccountOrVerifyCredentialsEnabled = ma.isOAuth() || ma.getCredentialsPresent();\r\n switch (ma.getCredentialsVerified()) {\r\n case SUCCEEDED:\r\n titleResId = R.string.title_preference_verify_credentials;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials));\r\n break;\r\n default:\r\n if (state.builder.isPersistent()) {\r\n titleResId = R.string.title_preference_verify_credentials_failed;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials_failed));\r\n } else {\r\n if (!ma.isUsernameValidToStartAddingNewAccount()) {\r\n addAccountOrVerifyCredentialsEnabled = false;\r\n }\r\n titleResId = R.string.title_preference_add_account;\r\n if (ma.isOAuth()) {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_oauth));\r\n } else {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_basic));\r\n }\r\n }\r\n break;\r\n }\r\n addAccountOrVerifyCredentials.setTitle(titleResId);\r\n addAccountOrVerifyCredentials.setSummary(summary);\r\n addAccountOrVerifyCredentials.setEnabled(addAccountOrVerifyCredentialsEnabled);\r\n }", "private void setupSimplePreferencesScreen() {\n if (!isSimplePreferences(this)) {\n return;\n }\n\n addPreferencesFromResource(R.xml.pref_empty);\n\n addHeader(R.string.pref_header_game);\n addPreferencesFromResource(R.xml.pref_game);\n this.gameModeSettingsPreferenceScreen = getPreferenceScreen();\n\n addHeader(R.string.pref_header_other);\n addPreferencesFromResource(R.xml.pref_other);\n\n Preference key_game_mode_summary = findPreference(getResources().getString(R.string.key_game_mode_summary));\n this.key_game_mode_summary = key_game_mode_summary;\n\n Preference useCodePreference = findPreference(getResources().getString(R.string.key_use_code));\n this.useCodePreference = useCodePreference;\n useCodePreference.setOnPreferenceChangeListener(USE_CODE_PREFERENCE_LISTENER);\n\n Preference customWidthPreference = findPreference(getResources().getString(R.string.key_custom_maze_width));\n customWidthPreference.setSummary(String.valueOf(getCustomMazeWidth()));\n this.customWidthPreference = customWidthPreference;\n customWidthPreference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {\n @Override\n public boolean onPreferenceChange(Preference preference, Object value) {\n try {\n int width = Math.min(Math.max(Integer.parseInt(value.toString()), getResources().getInteger(R.integer.min_custom_maze_size)), getResources().getInteger(R.integer.max_custom_maze_size));\n synchronized (SettingsActivity.class) {\n SettingsActivity.customMazeWidth = width;\n }\n preference.setSummary(String.valueOf(width));\n } catch (NumberFormatException e) {\n }\n return true;\n }\n });\n Preference customHeightPreference = findPreference(getResources().getString(R.string.key_custom_maze_height));\n customHeightPreference.setSummary(String.valueOf(getCustomMazeHeight()));\n this.customHeightPreference = customHeightPreference;\n customHeightPreference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {\n @Override\n public boolean onPreferenceChange(Preference preference, Object value) {\n try {\n int height = Math.min(Math.max(Integer.parseInt(value.toString()), getResources().getInteger(R.integer.min_custom_maze_size)), getResources().getInteger(R.integer.max_custom_maze_size));\n synchronized (SettingsActivity.class) {\n SettingsActivity.customMazeHeight = height;\n }\n preference.setSummary(String.valueOf(height));\n } catch (NumberFormatException e) {\n }\n return true;\n }\n });\n Preference customCreatePreference = findPreference(getResources().getString(R.string.key_custom_maze_create));\n this.customCreatePreference = customCreatePreference;\n customCreatePreference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n Maze2D.GeneratedMaze maze = generateCustomMaze(SettingsActivity.this);\n synchronized (SettingsActivity.class) {\n SettingsActivity.loadSeedMaze = maze;\n }\n if (maze != null) {\n SettingsActivity.this.finish();\n }\n return true;\n }\n });\n Preference customSolvePreference = findPreference(getResources().getString(R.string.key_custom_maze_solve));\n this.customSolvePreference = customSolvePreference;\n customSolvePreference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n synchronized (SettingsActivity.class) {\n SettingsActivity.showSolution = true;\n }\n SettingsActivity.this.finish();\n return true;\n }\n });\n Preference regularCreatePreference = findPreference(getResources().getString(R.string.key_maze_create));\n this.regularCreatePreference = regularCreatePreference;\n regularCreatePreference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n if (MainActivity.getGameMode() == GameMode.REGULAR) {\n synchronized (SettingsActivity.class) {\n SettingsActivity.newRegularMaze = true;\n }\n } else {\n synchronized (SettingsActivity.class) {\n SettingsActivity.newFillMaze = true;\n }\n }\n SettingsActivity.this.finish();\n return true;\n }\n });\n\n ListPreference algorithmPreference = (ListPreference) findPreference(getResources().getString(R.string.key_algorithm));\n this.algorithmPreference = algorithmPreference;\n\n // Bind the summaries of EditText/List/Dialog/Ringtone preferences to\n // their values. When their values change, their summaries are updated\n // to reflect the new value, per the Android Design guidelines.\n ListPreference gameModePreference = (ListPreference) findPreference(getResources().getString(R.string.key_game_mode));\n this.gamePreference = gameModePreference;\n bindPreferenceSummaryToValue(gameModePreference);\n String[] names = GameMode.getNames(this);\n gameModePreference.setEntries(names);\n gameModePreference.setEntryValues(names);\n GameMode gameMode = MainActivity.getGameMode();\n if (gameMode != null) {\n gameModePreference.setValueIndex(gameMode.getID());\n }\n\n bindPreferenceSummaryToValue(algorithmPreference);\n names = MazeAlgorithm.getNames(this, true);\n algorithmPreference.setEntries(names);\n algorithmPreference.setEntryValues(names);\n MazeAlgorithm algorithm = MainActivity.getAlgorithm();\n if (algorithm != null) {\n algorithmPreference.setDefaultValue(algorithm.getLocalName(this));\n }\n\n SwitchPreference showTracerPreference = (SwitchPreference) findPreference(getResources().getString(R.string.key_show_tracer));\n showTracerPreference.setOnPreferenceChangeListener(TOGGLE_TRACER_PREFERENCE_LISTENER);\n showTracerPreference.setDefaultValue(MainActivity.toggleTracer());\n\n SwitchPreference squareCellsPreference = (SwitchPreference) findPreference(getResources().getString(R.string.key_square_cells));\n squareCellsPreference.setOnPreferenceChangeListener(SQUARE_CELLS_PREFERENCE_LISTENER);\n squareCellsPreference.setDefaultValue(MainActivity.squareCells());\n\n Preference recalibratePreference = findPreference(getResources().getString(R.string.key_recalibrate));\n recalibratePreference.setOnPreferenceClickListener(RECALIBRATE_PREFERENCE_LISTENER);\n\n Preference defaultTiltPreference = findPreference(getResources().getString(R.string.key_default_tilt));\n defaultTiltPreference.setOnPreferenceClickListener(DEFAULT_TILT_PREFERENCE_LISTENER);\n\n prepareGameModeGUI(MainActivity.getGameMode());\n }", "private void setupSimplePreferencesScreen() {\n if (!isSimplePreferences(this)) {\n return;\n }\n\n // In the simplified UI, fragments are not used at all and we instead\n // use the older PreferenceActivity APIs.\n\n // Add 'general' preferences.\n addPreferencesFromResource(R.xml.pref_general);\n\n // Bind the summaries of EditText/List/Dialog/Ringtone preferences to\n // their values. When their values change, their summaries are updated\n // to reflect the new value, per the Android Design guidelines.\n bindPreferenceSummaryToValue(findPreference(\"pref_favColor\"));\n }", "private void settings() {\n\t\tthis.setVisible(true);\n\t\tthis.setSize(800,200);\n\t}", "private void settings() {\n\t\tIntent intent = new Intent(this, ActivitySettings.class);\n\t\tstartActivity(intent);\n\t}", "private void setPrefs( File build_file ) {\n if ( _settings != null )\n _settings.load( build_file );\n else\n _settings = new OptionSettings( build_file );\n _prefs = _settings.getPrefs();\n }", "private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n String aaString = sharedPreferences.getString(getString(R.string.pref_antalAktier_key), getString(R.string.pref_antalAktier_default));\n// float aaFloat = Float.parseFloat(aaString);\n editTextAntalAktier.setText(aaString);\n\n String kk = sharedPreferences.getString(getString(R.string.pref_koebskurs_key), getString(R.string.pref_koebskurs__default));\n editTextKoebskurs.setText(kk);\n\n String k = sharedPreferences.getString(getString(R.string.pref_kurtage_key), getString(R.string.pref_kurtage_default));\n editTextKurtage.setText(k);\n\n// float minSize = Float.parseFloat(sharedPreferences.getString(getString(R.string.pref_size_key),\n// getString(R.string.pref_size_default)));\n// mVisualizerView.setMinSizeScale(minSize);\n\n // Register the listener\n sharedPreferences.registerOnSharedPreferenceChangeListener(this);\n }", "public void setupGUI(){\n //home button\n homeBtn = (ImageButton) findViewById(R.id.home_button);\n homeBtn.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n goToHome();\n }\n });\n\n sharedpreferences = getSharedPreferences(savedColor, Context.MODE_PRIVATE);\n\n int value1 = sharedpreferences.getInt(\"value1\", 0);\n int value2 = sharedpreferences.getInt(\"value2\", 0);\n int value3 = sharedpreferences.getInt(\"value3\", 0);\n int value4 = sharedpreferences.getInt(\"set\", 0);\n if(value4 != 0){\n View v = findViewById(R.id.measure_id_3);\n v.setBackgroundColor(Color.rgb(value1, value3, value2));\n setContentView(v);\n }\n }", "protected void setWindowDefaultSize(UserPrefs prefs) {\n primaryStage.setHeight(prefs.getGuiSettings().getWindowHeight());\n primaryStage.setWidth(prefs.getGuiSettings().getWindowWidth());\n if (prefs.getGuiSettings().getWindowCoordinates() != null) {\n primaryStage.setX(prefs.getGuiSettings().getWindowCoordinates().getX());\n primaryStage.setY(prefs.getGuiSettings().getWindowCoordinates().getY());\n }\n }", "private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n //set the driver name and track variables using methods below, which are also called from onSharedPreferencesChanged\n setDriver(sharedPreferences);\n setTrack(sharedPreferences);\n }", "public void switchToSettings() {\r\n\t\tlayout.show(this, \"settingsPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "private void saveSettings() {\n \tLog.i(\"T4Y-Settings\", \"Save mobile settings\");\n \t\n \tmobileSettings.setAllowAutoSynchronization(autoSynchronizationCheckBox.isChecked());\n mobileSettings.setAllowAutoScan(autoScanCheckBox.isChecked());\n mobileSettings.setAllowAutoSMSNotification(autoSMSNotificationCheckBox.isChecked());\n \n \tmainApplication.setMobileSettings(mobileSettings);\n }", "public void setPreference(View v){\n SharedPreferences.Editor editor = settings.edit();\n String prefValue = cHelpers.getText(this, R.id.editText);\n editor.putString(\"key1\",prefValue);\n editor.commit();\n cHelpers.show_toast(this, \"Preference Saved\");\n }", "void setDefaultPreference(String preferenceName, String value) throws OntimizeJEERuntimeException;", "private void getPreferences() {\n\n if(sharedpreferences.getBoolean(\"usaGPU\", true)) {\n mUtilizzoGPU.setChecked(true);\n }\n else{\n mUtilizzoGPU.setChecked(false);\n }\n\n }", "@SuppressWarnings(\"deprecation\")\n\tprivate void setupSimplePreferencesScreen() {\n\t\tif (!isSimplePreferences(this)) {\n\t\t\treturn;\n\t\t}\n\n\t\taddPreferencesFromResource(R.xml.pref_blank);\n\n\t\t// Add 'filters' preferences.\n\t\tPreferenceCategory fakeHeader = new PreferenceCategory(this);\n\n\t\t// Add 'appearance' preferences.\n\t\tfakeHeader = new PreferenceCategory(this);\n\t\tfakeHeader.setTitle(R.string.appearance);\n\t\tgetPreferenceScreen().addPreference(fakeHeader);\n\t\taddPreferencesFromResource(R.xml.pref_appearance);\n\n\t\t// Add 'text color' preferences.\n\t\tfakeHeader = new PreferenceCategory(this);\n\t\tfakeHeader.setTitle(R.string.text_color);\n\t\tgetPreferenceScreen().addPreference(fakeHeader);\n\t\taddPreferencesFromResource(R.xml.pref_textcolor);\n\n\t\t// Add 'info' preferences.\n\t\tfakeHeader = new PreferenceCategory(this);\n\t\tfakeHeader.setTitle(R.string.information);\n\t\tgetPreferenceScreen().addPreference(fakeHeader);\n\t\taddPreferencesFromResource(R.xml.pref_info);\n\n\t\t// Add others\n\t\tsetupOpenSourceInfoPreference(this, findPreference(getString(R.string.pref_info_open_source)));\n\t\tsetupVersionPref(this, findPreference(getString(R.string.pref_version)));\n\n\t}", "private void initGui() {\n initSeekBar();\n initDateFormatSpinner();\n GuiHelper.defineButtonOnClickListener(view, R.id.settings_buttonSave, this);\n\n }", "private void setPreferences(String sw, boolean checked) {\n SharedPreferences sp = getActivity().getSharedPreferences(SETTINGS, Context.MODE_PRIVATE );\n SharedPreferences.Editor editor = sp.edit();\n editor.putBoolean(sw,checked);\n editor.apply();\n\n }", "public void openUserSettings() {\n\t\ttry {\n\t\t\tFXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UserSettingsView.fxml\"));\n\t\t\tfxmlLoader.setResources(bundle);\n\t\t\tParent root1 = (Parent) fxmlLoader.load();\n\t\t\tStage stage = new Stage();\n\t\t\tUserSettingsController usc = fxmlLoader.getController();\n\t\t\tusc.setMainController(this);\n\t\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\t\t\t// stage.initStyle(StageStyle.UNDECORATED);\n\t\t\tstage.setTitle(bundle.getString(\"uSHeaderLabel\"));\n\t\t\tstage.setScene(new Scene(root1));\n\t\t\tstage.show();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setUserSettings(UserSettings userSettings) {\n\t\tthis.userSettings = userSettings;\n\t}", "private void updateSetupGUI() {\n\t\tif (isLoggedIn == false) {\n\t\t\trestoreGameLabel.setVisible(false);\n\t\t\trestoreGameButton.setVisible(false);\n\t\t\tcreateAccountButton.setVisible(true);\n\t\t\tcreateAccountLabel.setVisible(true);\n\t\t\tseparator_1.setVisible(true);\n\t\t} else {\n\t\t\tcreateAccountButton.setVisible(false);\n\t\t\tcreateAccountLabel.setVisible(false);\n\t\t\tseparator_1.setVisible(false);\n\t\t\trestoreGameLabel.setVisible(true);\n\t\t\trestoreGameButton.setVisible(true);\n\t\t}\n\t}", "private void configureUI() {\r\n // UIManager.put(\"ToolTip.hideAccelerator\", Boolean.FALSE);\r\n\r\n Options.setDefaultIconSize(new Dimension(18, 18));\r\n\r\n Options.setUseNarrowButtons(settings.isUseNarrowButtons());\r\n\r\n // Global options\r\n Options.setTabIconsEnabled(settings.isTabIconsEnabled());\r\n UIManager.put(Options.POPUP_DROP_SHADOW_ENABLED_KEY,\r\n settings.isPopupDropShadowEnabled());\r\n\r\n // Swing Settings\r\n LookAndFeel selectedLaf = settings.getSelectedLookAndFeel();\r\n if (selectedLaf instanceof PlasticLookAndFeel) {\r\n PlasticLookAndFeel.setPlasticTheme(settings.getSelectedTheme());\r\n PlasticLookAndFeel.setTabStyle(settings.getPlasticTabStyle());\r\n PlasticLookAndFeel.setHighContrastFocusColorsEnabled(\r\n settings.isPlasticHighContrastFocusEnabled());\r\n } else if (selectedLaf.getClass() == MetalLookAndFeel.class) {\r\n MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());\r\n }\r\n\r\n // Work around caching in MetalRadioButtonUI\r\n JRadioButton radio = new JRadioButton();\r\n radio.getUI().uninstallUI(radio);\r\n JCheckBox checkBox = new JCheckBox();\r\n checkBox.getUI().uninstallUI(checkBox);\r\n\r\n try {\r\n UIManager.setLookAndFeel(selectedLaf);\r\n } catch (Exception e) {\r\n System.out.println(\"Can't change L&F: \" + e);\r\n }\r\n\r\n }", "private void setupSimplePreferencesScreen() {\n\n addPreferencesFromResource(R.xml.pref_weight);\n\n final Activity activity = getActivity();\n\n CustomPreferenceCategory fakeHeader = new CustomPreferenceCategory(activity);\n fakeHeader = new CustomPreferenceCategory(activity);\n fakeHeader.setTitle(R.string.pref_header_about);\n getPreferenceScreen().addPreference(fakeHeader);\n addPreferencesFromResource(R.xml.pref_about);\n\n // Bind the summaries of EditText/List/Dialog/Ringtone preferences to\n // their values. When their values change, their summaries are updated\n // to reflect the new value, per the Android Design guidelines.\n bindPreferenceSummaryToValue(findPreference(getResources().getString(R.string.pref_units_key)));\n bindPreferenceSummaryToValue(findPreference(getResources().getString(R.string.pref_plate_style_key)));\n bindPreferenceSummaryToValue(findPreference(getResources().getString(R.string.pref_bar_weight_key)));\n bindPreferenceSummaryToValue(findPreference(getResources().getString(R.string.pref_formula_key)));\n\n Preference aboutButton = (Preference)findPreference(getString(R.string.pref_about_button));\n aboutButton.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n AboutDialog aboutDialog = new AboutDialog();\n aboutDialog.show(getFragmentManager(), \"AboutDialog\");\n return true;\n }\n });\n\n Preference rateButton = (Preference)findPreference(getString(R.string.pref_rate_button));\n rateButton .setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n Uri uri = Uri.parse(\"market://details?id=\" + activity.getPackageName());\n Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri);\n try {\n startActivity(goToMarket);\n } catch (ActivityNotFoundException e) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://play.google.com/store/apps/details?id=\" + activity.getPackageName())));\n }\n return true;\n }\n });\n\n final RepCheckPreferenceFragment repCheckPreferenceFragment = this;\n\n Preference resetButton = (Preference)findPreference(getString(R.string.pref_reset_button));\n resetButton.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n DialogFragment saveAsNewDialog = ConfirmResetDialog.newInstance(new ResetResponseHandler(repCheckPreferenceFragment));\n saveAsNewDialog.show(activity.getFragmentManager(), \"RenameSetDialog\");\n return true;\n }\n });\n }", "@FXML\n private void saveSettings()\n {\n boolean changes = false;\n String newUsername = changeUsernameField.getText();\n\n if (checkChangeUsernameValidity(newUsername) && checkUsername(newUsername, changeUsernameErrorLabel)) {\n changeUsername(newUsername);\n changeUsernameField.setPromptText(newUsername);\n updateProfileLabels();\n changes = true;\n }\n if (bufferImage != null)\n {\n controllerComponents.getAccount().setProfilePicture(bufferImage);\n updateProfilePictures();\n changes = true;\n }\n bufferImage = null;\n if (changes)\n {\n saveFeedbackLabel.setText(\"Changes saved.\");\n } else\n {\n saveFeedbackLabel.setText(\"You have not made any changes.\");\n }\n }", "public void setAccountSettingsPanel(Pane accountSettingsPanel)\n {\n this.accountSettingsPanel = accountSettingsPanel;\n }", "public void run()\r\n {\n invokeLater(new Runnable() \r\n {\r\n public void run()\r\n {\r\n _lblUser.setText(_userEdit.getText());\r\n }\r\n }); \r\n \r\n // Save at persistent store\r\n saveOptions(_userEdit.getText(), _passEdit.getText(), _freqEdit.getText());\r\n popScreen(SetupScreen.this);\r\n }", "public static void ShowAdminPreferences() {\n if (Controller.permission.GetUserPermission(\"EditUser\")) {\n ToggleVisibility(UsersPage.adminWindow);\n } else {\n DialogWindow.NoAccessTo(\"Admin options\");\n }\n }", "public SettingsWindow()\n {\n House.seed = System.currentTimeMillis();\n initWindow();\n showWindows();\n }", "public void setlogUserIn() {\n\t\tmenu1.setOnAction(event -> {\n\t\t\topenUserSettings();\n\t\t});\n\t\tmenu2.setOnAction(event -> {\n\t\t\tsetlogUserOut();\n\t\t});\n\t\tuserMenuButton.setText(controller.loggedIn());\n\t\tuserMenuButton.setStyle(\"-fx-font-size: 10pt; -fx-text-fill:black;\"); // MUOTOILU CSSSSSÄÄÄÄN\n\t\tuserMenuButton.getItems().addAll(menu1, menu2);\n\t\tloggedinuser.setVisible(true);\n\t\tloggedinuser.setText(bundle.getString(\"mVloggedin\"));\n\t\tloggedinuser.setGraphic(userMenuButton);\n\t\tloggedinuser.setContentDisplay(ContentDisplay.RIGHT);\n\t\tuserSettings.setVisible(true);\n\t\tloginoption.setVisible(false);\n\t}", "private void Settings(){\n setUndecorated(true); \r\n\t setSize(250,70);\r\n\t setLocationRelativeTo(null);\r\n setAlwaysOnTop(true);\r\n\t setVisible(true);\r\n \r\n addMouseListener(new HandleStatusDialog());\r\n addWindowListener(new HandleStatusDialog());\r\n }", "public void setGUIManager(GUIManager guiManager)\r\n {\r\n mGUIManager = guiManager;\r\n }", "private void restoreSettings() {\n getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n getWindow().getDecorView().setSystemUiVisibility(systemUiVisibilitySetting);\n\n }", "private void setWindowDefaultSize(UserPrefs prefs) {\n primaryStage.setHeight(prefs.getGuiSettings().getWindowHeight());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"165\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n primaryStage.setWidth(prefs.getGuiSettings().getWindowWidth());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"166\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n if (prefs.getGuiSettings().getWindowCoordinates() != null) {\n primaryStage.setX(prefs.getGuiSettings().getWindowCoordinates().getX());\n\t\t\tTemplateClass.instrum(\"LineNumber: \",\"168\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n primaryStage.setY(prefs.getGuiSettings().getWindowCoordinates().getY());\n\t\t\tTemplateClass.instrum(\"LineNumber: \",\"169\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n }\n\t\tTemplateClass.instrum(\"LineNumber: \",\"167\", \"Type: \",\"org.eclipse.jdt.core.dom.IfStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n }", "public void setVars() {\n\t\tif (jEdit.getPlugin(\"console.ConsolePlugin\") != null) {\n\t\t\tconsole.ConsolePlugin.setSystemShellVariableValue(\"LUAJ\", getLuaJ());\n\t\t}\n\t}", "private SizeModifierSettingsEditor() {\n\t\tinitComponents();\n\t\tsettings = SizeModifierSettings.getInstance();\n\t\tloadSettings();\n\t\tmainShell.pack();\n\t\tmainShell.setBounds(\n\t\t\tCrunch3.mainWindow.getShell().getBounds().x + Crunch3.mainWindow.getShell().getBounds().width / 2 - mainShell.getBounds().width / 2,\n\t\t\tCrunch3.mainWindow.getShell().getBounds().y + Crunch3.mainWindow.getShell().getBounds().height / 2 - mainShell.getBounds().height / 2,\n\t\t\tmainShell.getBounds().width,\n\t\t\tmainShell.getBounds().height);\n\t\tmainShell.open();\n\t}", "@Override\r\n public void onCreate(Bundle savedInstanceState) { \t\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.settings); \r\n String oldtitle = (String) getTitle();\r\n setTitle(oldtitle + \" > Settings\");\r\n \r\n //Load the settings\r\n SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);\r\n String liveid = settings.getString(\"liveusername\", \"\");\r\n String password = settings.getString(\"livepassword\", \"\");\r\n String saved_livedownloaddp = settings.getString(\"livedownloaddp\", \"\");\r\n String saved_liveignorestockdp = settings.getString(\"liveignorestockdp\", \"\");\r\n\r\n \teLiveID = ((TextView)findViewById(R.id.editLiveID));\r\n \teLiveID.setText(liveid); \t\r\n \tePassword = ((TextView)findViewById(R.id.editPassword));\r\n \tePassword.setText(password); \r\n \t\r\n \tliveremember = ((CheckBox)findViewById(R.id.checkRememberlive));\r\n \th_livedownloaddp = ((CheckBox)findViewById(R.id.checkDownloadDP));\r\n \th_liveignorestockdp = ((CheckBox)findViewById(R.id.checkIgnoreStockDP));\r\n \t\r\n \tif(liveid.length() > 0 || password.length() > 0)\r\n \t\tliveremember.setChecked(true);\r\n \t\r\n \tif(saved_livedownloaddp.equals(\"true\")) {\r\n \t\th_livedownloaddp.setChecked(true);\r\n \t}\r\n\r\n \tif(saved_liveignorestockdp.equals(\"true\")) {\r\n \t\th_liveignorestockdp.setChecked(true);\r\n \t}\r\n \t\r\n \tButton btnSave = (Button)findViewById(R.id.btnSave);\r\n btnSave.setOnClickListener(btnSaveOnClick);\r\n \r\n Button btnCancel = (Button)findViewById(R.id.btnDiscard);\r\n btnCancel.setOnClickListener(btnCancelOnClick);\r\n }", "public void setGui(HMI gui) {\n this.gui = gui;\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tshowSettingDialog(msg.what);\n\t\t\t// super.handleMessage(msg);\n\t\t}", "public void setupServerSettings() {\r\n\t\tmnuServerSettings.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tnew EmailSettingsGUI();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "int wkhtmltoimage_set_global_setting(PointerByReference settings, String name, String value);", "public void setSettings(final String settings);", "public void settingsMenu() {\n /*\n * we need to create new settings scene because settings may be changed and\n * we need to show those changes\n */\n Game.stage.setScene(createSettingsMenuScene());\n Game.stage.show();\n }", "public void setCurAuthUserPrefs(final BwAuthUserPrefs val) {\n curAuthUserPrefs = val;\n }", "public void updatePreferences() {\n\n Toast.makeText(this, \"enter your data\", Toast.LENGTH_SHORT).show();\n startActivity(new Intent(this, SipSettingsActivity.class));\n\n }", "private void setupSettings() {\n add(announcementBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(currentGamesBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(chatRoomBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(friendsListBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(leaderboardBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n }", "private void setValuesInSharedPrefernce() {\r\n\r\n\t\tmSharedPreferences_reg.edit().putString(\"ProfileImageString\", profileImageString).commit();\r\n\t\tmSharedPreferences_reg.edit().putString(\"PseudoName\", psedoName).commit();\r\n\t\tmSharedPreferences_reg.edit().putString(\"Pseudodescription\", profiledescription).commit();\r\n\t}", "public void setProperty(String name, String value, User user)\r\n {\r\n if (user.isGuest())\r\n {\r\n Map<String, String> prefs = getSessionPreferences();\r\n prefs.put(name, value);\r\n }\r\n else\r\n {\r\n PropertyManager.PropertyMap prefs = getPreferences(user, true);\r\n prefs.put(name, value);\r\n prefs.save();\r\n }\r\n }", "private void frameSettings(String title) {\r\n\t\tsetTitle(title);\r\n\r\n\t\tsetSize(400, 720);\r\n\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetUndecorated(true); // Do not display the buttons of the frame\r\n\t\tsetAlwaysOnTop(true);\r\n\t\tsetResizable(false);\r\n\t\tsetBackground(new Color(0, 0, 0, 0));\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t}", "public void setUI(Window ui)\n {\n this.ui = ui;\n theLogger.info(\"Set reference to Window (UI)\");\n }", "private void loadSettings() {\n \tLog.i(\"T4Y-Settings\", \"Load mobile settings\");\n \tmobileSettings = mainApplication.getMobileSettings();\n \t\n \t//update display\n autoSynchronizationCheckBox.setChecked(mobileSettings.isAllowAutoSynchronization());\n autoScanCheckBox.setChecked(mobileSettings.isAllowAutoScan());\n autoSMSNotificationCheckBox.setChecked(mobileSettings.isAllowAutoSMSNotification());\n }", "public void setGUI(DominionGUI gui) {\r\n\t\tgameGUI = gui;\r\n\t}", "public void setSettings(final Properties settings) {\r\n this.settings = settings;\r\n\r\n replay = new Replay(settings);\r\n\r\n for(final MenuItem item : eventMenu.getItems()) {\r\n if (item instanceof CustomMenuItem) {\r\n final String event = item.getText();\r\n final CustomMenuItem customItem = ((CustomMenuItem) item);\r\n if (customItem.getContent() instanceof CheckBox) {\r\n final CheckBox checkBox = (CheckBox) customItem.getContent();\r\n checkBox.setSelected(replay.notableEvents.contains(event));\r\n }\r\n }\r\n }\r\n\r\n zoomStep = Integer.parseInt(settings.getProperty(\"zoom.step\", \"100\"));\r\n\r\n daysCombo.getItems().addAll(settings.getProperty(\"list.delta.per.tick\", \"1;30;365\").split(\";\"));\r\n daysCombo.getSelectionModel().select(settings.getProperty(\"delta.per.tick\", \"1\"));\r\n try {\r\n periodCombo.getSelectionModel().select(Integer.parseInt(settings.getProperty(\"period.per.tick\", \"0\")));\r\n } catch (NumberFormatException e) {\r\n periodCombo.getSelectionModel().selectFirst();\r\n settings.setProperty(\"period.per.tick\", \"0\");\r\n }\r\n\r\n langCombo.getSelectionModel().select(settings.getProperty(\"locale.language\", \"en\"));\r\n\r\n replay.drawBorders = \"true\".equals(settings.getProperty(\"borders\", \"false\"));\r\n\r\n focusEdit.setText(settings.getProperty(\"focus\", \"\"));\r\n\r\n saveDirectory = new File(settings.getProperty(\"save.dir\", \"\"));\r\n if (!saveDirectory.exists() || !saveDirectory.isDirectory()) {\r\n saveDirectory = new File(Replay.DEFAULT_SAVE_DIR);\r\n if (!saveDirectory.exists() || !saveDirectory.isDirectory()) {\r\n saveDirectory = new File(System.getProperty(\"user.home\"), \"/\");\r\n }\r\n }\r\n\r\n serDirectory = new File(settings.getProperty(\"ser.dir\", \"\"));\r\n if (!serDirectory.exists() || !serDirectory.isDirectory()) {\r\n serDirectory = new File(Replay.DEFAULT_SAVE_DIR);\r\n if (!serDirectory.exists() || !serDirectory.isDirectory()) {\r\n serDirectory = new File(System.getProperty(\"user.home\"), \"/\");\r\n }\r\n }\r\n\r\n subjectsCheckMenuItem.setSelected(replay.subjectsAsOverlords);\r\n\r\n gifMenu.setVisible(!settings.getProperty(\"gif\", \"false\").equals(\"true\"));\r\n gifLoopCheckMenuItem.setSelected(settings.getProperty(\"gif.loop\", \"true\").equals(\"true\"));\r\n gifWidthEdit.setText(settings.getProperty(\"gif.width\", \"0\"));\r\n gifHeightEdit.setText(settings.getProperty(\"gif.height\", \"0\"));\r\n gifBreakEdit.setText(settings.getProperty(\"gif.new.file\", \"0\"));\r\n gifStepEdit.setText(settings.getProperty(\"gif.step\", \"100\"));\r\n gifDateCheckMenuItem.setSelected(settings.getProperty(\"gif.date\", \"true\").equals(\"true\"));\r\n gifDateColorPicker.setValue(Color.web(settings.getProperty(\"gif.date.color\", \"0x000000\")));\r\n gifDateSizeEdit.setText(settings.getProperty(\"gif.date.size\", \"12\"));\r\n gifDateXEdit.setText(settings.getProperty(\"gif.date.x\", \"60\"));\r\n gifDateYEdit.setText(settings.getProperty(\"gif.date.y\", \"60\"));\r\n gifSubimageCheckMenuItem.setSelected(settings.getProperty(\"gif.subimage\", \"false\").equals(\"true\"));\r\n gifSubimageXEdit.setText(settings.getProperty(\"gif.subimage.x\", \"0\"));\r\n gifSubimageYEdit.setText(settings.getProperty(\"gif.subimage.y\", \"0\"));\r\n gifSubimageWidthEdit.setText(settings.getProperty(\"gif.subimage.width\", \"\"));\r\n gifSubimageHeightEdit.setText(settings.getProperty(\"gif.subimage.height\", \"\"));\r\n\r\n bordersCheckMenuItem.setSelected(settings.getProperty(\"borders\", \"false\").equals(\"true\"));\r\n disableLog = settings.getProperty(\"log.disable\", \"false\").equals(\"true\");\r\n\r\n eu4Directory = new File(settings.getProperty(\"eu4.dir\"));\r\n try {\r\n lock.acquire();\r\n loadData();\r\n } catch (InterruptedException e) { }\r\n }", "private void saveSettings()\n {\n try\n {\n // If remember information is true then save the ip and port\n // properties to the projects config.properties file\n if ( rememberLoginIsSet_ )\n {\n properties_.setProperty( getString( R.string.saved_IP ), mIP_ );\n properties_.setProperty( getString( R.string.saved_Port ),\n mPort_ );\n }\n\n // Always save the remember login boolean\n properties_.setProperty( getString( R.string.saveInfo ),\n String.valueOf( rememberLoginIsSet_ ) );\n\n File propertiesFile =\n new File( this.getFilesDir().getPath().toString()\n + \"/properties.txt\" );\n FileOutputStream out =\n new FileOutputStream( propertiesFile );\n properties_.store( out, \"Swoop\" );\n out.close();\n }\n catch ( Exception ex )\n {\n System.err.print( ex );\n }\n }", "public PreferencesPanel()\n {\n initComponents();\n CB_CHECK_NEW.setSelected( Main.get_long_prop(Preferences.CHECK_NEWS) > 0);\n CB_CACHE_MAILS.setSelected( Main.get_long_prop(Preferences.CACHE_MAILFILES) > 0);\n\n\n\n COMBO_UI.removeAllItems();\n ArrayList<String> ui_names = UI_Generic.get_ui_names();\n for (int i = 0; i < ui_names.size(); i++)\n {\n String string = ui_names.get(i);\n COMBO_UI.addItem(string);\n }\n\n last_ui = (int)Main.get_long_prop(Preferences.UI, 0l);\n if (last_ui < COMBO_UI.getItemCount())\n COMBO_UI.setSelectedIndex( last_ui );\n else\n COMBO_UI.setSelectedIndex( 0 );\n\n String ds = Main.get_prop( Preferences.DEFAULT_STATION );\n if (ds != null && ds.length() > 0)\n {\n ParseToken pt = new ParseToken(ds);\n String ip = pt.GetString(\"IP:\");\n long po = pt.GetLongValue(\"PO:\");\n boolean only_this = pt.GetBoolean(\"OT:\");\n TXT_SERVER_IP.setText(ip);\n if (po > 0)\n TXT_SERVER_PORT.setText(Long.toString(po) );\n CB_NO_SCANNING.setSelected(only_this);\n }\n\n String l_code = Main.get_prop( Preferences.COUNTRYCODE, \"DE\");\n\n if (l_code.compareTo(\"DE\") == 0)\n COMBO_LANG.setSelectedIndex(0);\n if (l_code.compareTo(\"EN\") == 0)\n COMBO_LANG.setSelectedIndex(1); \n }", "public void setGuiObject(Object guiObject);", "public PreferencesDialog (JFrame owner, String title)\n {\n this (owner, title, OpenMarkovPreferences.OPENMARKOV_NODE_PREFERENCES, true/*\n * ,\n * OpenMarkovPreferences\n * .\n * OPENMARKOV_KERNEL_PREFERENCES\n * ,\n * false\n */);\n }", "@Override\n\tprotected void performDefaults() {\n\t\t// Get the preference store\n\t\tfinal IPreferenceStore preferenceStore = getPreferenceStore();\n\n\t\tspiLength.setSelection(preferenceStore.getDefaultInt(DEFAULT_PASSWORD_LENGTH));\n\t\tbtnUseLowercase.setSelection(preferenceStore.getDefaultBoolean(USE_LOWERCASE_LETTERS));\n\t\tbtnUserUppercase.setSelection(preferenceStore.getDefaultBoolean(USE_UPPERCASE_LETTERS));\n\t\tbtnUseDigits.setSelection(preferenceStore.getDefaultBoolean(USE_DIGITS));\n\t\tbtnUseSymbols.setSelection(preferenceStore.getDefaultBoolean(USE_SYMBOLS));\n\t\tbtnUseEaseToRead.setSelection(preferenceStore.getDefaultBoolean(USE_EASY_TO_READ));\n\t\tbtnUseHexOnly.setSelection(preferenceStore.getDefaultBoolean(USE_HEX_ONLY));\n\n\t}" ]
[ "0.78317875", "0.69390213", "0.66959566", "0.66888314", "0.6654882", "0.6621704", "0.66071826", "0.65355814", "0.63041353", "0.6288255", "0.6260576", "0.624673", "0.61866", "0.61674017", "0.61674017", "0.61674017", "0.61674017", "0.61674017", "0.61674017", "0.61674017", "0.61603826", "0.6140116", "0.61305636", "0.6127517", "0.6125093", "0.61132014", "0.6095208", "0.6085752", "0.6082511", "0.6052629", "0.6030906", "0.6026458", "0.60037243", "0.59837806", "0.5978966", "0.59694076", "0.59369904", "0.58990544", "0.5880939", "0.588067", "0.5866262", "0.58491546", "0.5835161", "0.5829837", "0.5754684", "0.57362247", "0.572183", "0.57180333", "0.5716059", "0.5710398", "0.5709783", "0.5709771", "0.56981736", "0.569025", "0.5685089", "0.5665801", "0.56585485", "0.5649693", "0.56398094", "0.56194067", "0.5614861", "0.5612192", "0.56093097", "0.55914444", "0.5576111", "0.5562432", "0.55490804", "0.55471784", "0.5535636", "0.55309886", "0.5530636", "0.55255413", "0.55214316", "0.5512986", "0.5508612", "0.5499391", "0.5499097", "0.54954106", "0.5489389", "0.54861236", "0.5480423", "0.5479231", "0.5478108", "0.5477457", "0.54770505", "0.5472341", "0.5470964", "0.5470334", "0.5458313", "0.5450912", "0.54327625", "0.5431107", "0.54282963", "0.5420458" ]
0.7727082
7
Returns a SFML Color based on the tile's type
private Color determineColorFromType(String type) { Iterator<String> iterator = this.tileTypeColorMap.keySet().iterator(); while (iterator.hasNext()) { String key = iterator.next(); if (key == type) { return tileTypeColorMap.get(key); } } return this.ERROR_COLOR; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Color getColor(BlockType type) {\n\t\tswitch (type) {\n\t\tcase Z : \n\t\t\treturn z;\n\t\tcase S :\n\t\t\treturn s;\n\t\tcase LEFT :\n\t\t\treturn left;\n\t\tcase RIGHT : \n\t\t\treturn right;\n\t\tcase LINE :\n\t\t\treturn line;\n\t\tcase TRIANGLE :\n\t\t\treturn tri;\n\t\tcase SQUARE :\n\t\t\treturn square;\n\t\tdefault :\n\t\t\treturn null;\n\t\t}\n\t}", "protected final Color getColor() {\n\t\treturn tile.getColor();\n\t}", "private void assignTileColor() {\n boolean isLightTile = ((tileCoordinate + tileCoordinate / 8) % 2 == 0);\n setBackground(isLightTile ? LIGHT_TILE_COLOR : DARK_TILE_COLOR);\n }", "public int getRenderColor(int p_149741_1_)\n {\n \n \tBlock[] coloredStones = MachineryCraft.blocks.coloredStoneSlab;\n \n \tfor(int i = 0; i<coloredStones.length; i++){\n \t\tif(this == coloredStones[i]) return this.colors[i];\n \t\t\n \t}\n \treturn colors[1];\n \n }", "public Color getColor() {\n switch(this.value) {\n case 2: return new Color(0xEEE4DA);\n case 4: return new Color(0xEDE0C8);\n case 8: return new Color(0xF2B179);\n case 16: return new Color(0xF59563);\n case 32: return new Color(0xF67C5F);\n case 64: return new Color(0xF65E3B);\n case 128: return new Color(0xEDCF72);\n case 256: return new Color(0xEDCC61);\n case 512: return new Color(0xEDC850);\n case 1024: return new Color(0xEDC53F);\n case 2048: return new Color(0xEDC22E);\n \n }\n // Default color for null tiles\n return new Color(0xCDC1B4);\n }", "public GameColor getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "public String getPieceColor(){\n\t\t\n\t\tif(xPosition>=ColumnNumber.firstColumn.ordinal() && xPosition<=ColumnNumber.eightColumn.ordinal() && xPosition>=RowNumber.firstRow.ordinal() && xPosition<=RowNumber.eightRow.ordinal()){\n\t\t\t\n\t\t\tif(isIcon){\n\t\t\t\treturn piece.getColor();\n\t\t\t}else{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}else{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t\n\t}", "String getColour();", "String getTileType();", "java.awt.Color getColor();", "public int tileType(){\n\t\treturn this.type;\n\t}", "String getColor();", "public static TetriminoColor getColorFromType(final TetriminoType type) {\n\t\tfinal TetriminoColor[] palette = {\n\t\t\tnew TetriminoColor(20, 255, 255), // stick\n\t\t\tnew TetriminoColor(240, 240, 20), // box\n\t\t\tnew TetriminoColor(130, 30, 130), // stairs\n\t\t\tnew TetriminoColor(40, 255, 40), // right snake\n\t\t\tnew TetriminoColor(0, 67, 0), // left snake\n\t\t\tnew TetriminoColor(40, 50, 255), // left L\n\t\t\tnew TetriminoColor(255, 160, 20), // right L\n\t\t};\n\t\treturn palette[type.ordinal()];\n\t}", "public int getColor();", "public int getColor();", "public Piece.color getColor() { return color; }", "public Color getColor()\n {\n return mTeam.getColor();\n }", "public int getColor(){\r\n\t\treturn color;\r\n\t}", "private Color findColor(Object annotationType) {\n \t\tColor color= (Color) fColorTable.get(annotationType);\n \t\tif (color != null)\n \t\t\treturn color;\n \n \t\tif (fAnnotationAccess instanceof IAnnotationAccessExtension) {\n \t\t\tIAnnotationAccessExtension extension= (IAnnotationAccessExtension) fAnnotationAccess;\n \t\t\tObject[] superTypes= extension.getSupertypes(annotationType);\n \t\t\tif (superTypes != null) {\n \t\t\t\tfor (int i= 0; i < superTypes.length; i++) {\n \t\t\t\t\tcolor= (Color) fColorTable.get(superTypes[i]);\n \t\t\t\t\tif (color != null)\n \t\t\t\t\t\treturn color;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\treturn null;\n \t}", "@Override\n\tpublic Color getColor(String colorType) {\n\t\t\n\t\tif(colorType == null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tif(colorType.equalsIgnoreCase(\"RED\")){\n\t\t\treturn new Red();\n\t\t} else if(colorType.equalsIgnoreCase(\"GREEN\")){\n\t\t\treturn new Green();\n\t\t} else if(colorType.equalsIgnoreCase(\"Blue\")){\n\t\t\treturn new Blue();\n\t\t}\n\t\t\n\t\treturn null;\n\t\t\n\t}", "public static TileType getTypeFromColor(Color color){\n\n for (TileType type : TileType.values()) {\n if (type.color.equals(color)) return type;\n }\n\n return null;\n }", "public Color getColor();", "public Color getColor();", "public Color getColor();", "public int getColor(){\n\t\treturn color;\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "@Override\n public String getColor() {\n return this.color.name();\n }", "public boolean testColourcomponents(EIfcpixeltexture type) throws SdaiException;", "public int getColor() {\n return color;\n }", "Color userColorChoose();", "public String getColor(){\r\n return color;\r\n }", "public String getColor() { \n return color; \n }", "abstract Color getColor();", "int getColour();", "public Color getColor() { return color; }", "private static int getSlimeColorByPos(@Nullable BlockPos pos, FoliageType type, @Nullable BlockPos add) {\n if (pos == null) {\n return SlimeColorizer.getColorStatic(type);\n }\n if (add != null) {\n pos = pos.add(add);\n }\n\n int color = SlimeColorizer.getColorForPos(pos, type);\n return color == 0 ? 0xFF00F4DA : color;\n }", "public int getColor() {\n \t\treturn color;\n \t}", "public Color getColor() { return color.get(); }", "@Test\n public void getColorReturnsTheRightColor() {\n assertEquals(0xaa00ff, Tetromino.T.getColor());\n }", "public PieceColor getColor(){\r\n\t\treturn this.color;\r\n\t}", "public RMColor getColor() { return getFill()==null? RMColor.black : getFill().getColor(); }", "@Override\n Color getColor() {\n return new Color(32, 83, 226, 255);\n }", "public String getColor()\n {\n return color;\n }", "public String getColor()\n {\n return color;\n }", "@Nonnull\n @Override\n public DyeColor getColor() {\n return this.getMushroomType().getColor();\n }", "public String getColor(){\n\t\treturn color;\n\t}", "public String getColor(){\n return this._color;\n }", "public Color getColor()\n {\n return color;\n }", "public Color getColor(){\n return color;\n }", "public Color getColor()\n { \n return color;\n }", "@Override\n\t\tpublic Color color() { return color; }", "public String getColor() {\r\n return color;\r\n }", "public abstract Color getColor();", "public int getTileType() {\r\n\t\treturn 3;\r\n\t}", "public int getBiomeGrassColor()\n {\n double d0 = (double)this.getFloatTemperature();\n double d1 = (double)this.getFloatRainfall();\n return ((ColorizerGrass.getGrassColor(d0, d1) & 16711422) + 5115470) / 2;\n }", "public int getColor() {\r\n return Color;\r\n }", "public Color color(){\n return PackedCard.color(this.nbCard);\n }", "public Color getColor() {\n return color;\n }", "public Color getColor()\n {\n return color;\n }", "@Override\n public String getType() {\n return \"Color change\";\n }", "public Color getOperationColor(int typeOp){\n for (int i=0; i<tabTypeOp.length; i++){\n if (tabTypeOp[i].getType() == typeOp){\n return tabTypeOp[i].getColor();\n }\n }\n return null;\n }", "public String getColor(){\n return this.color;\n }", "public Color getColor() {\n return color;\r\n }", "public Integer getColor() {\n\t\treturn color;\n\t}", "public int getBiomeGrassColor()\n {\n return 11176526;\n }", "abstract String getColor();", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public Color getColor() {\r\n return this.BoardColor;\r\n }", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\n {\n return color;\n }", "private static int getTypeColorByMeta(int meta)\n \t{\n \t\tfor (FeatherType type : FeatherType.values())\n \t\t{\n \t\t\tif (type.meta == meta)\n \t\t\t\treturn type.color.getRGB();\n \t\t}\n \t\t\n \t\tGenericMod.logger.warn(\"Tried to get type color with an unregistered metadata value, \"\n \t\t\t\t+ \"returning default value instead.\", new IllegalArgumentException());\n \t\t\n \t\treturn FEATHER_RED.color.getRGB();\n \t}", "public int getColor(ItemStack par1ItemStack)\n {\n \n NBTTagCompound nbttagcompound = par1ItemStack.getTagCompound();\n\n if (nbttagcompound == null)\n {\n return 4984077;\n }\n else\n {\n NBTTagCompound nbttagcompound1 = nbttagcompound.getCompoundTag(\"display\");\n return nbttagcompound1 == null ? 4984077 : (nbttagcompound1.hasKey(\"color\") ? nbttagcompound1.getInteger(\"color\") : 4984077);\n }\n \n }", "int getContactColor();", "public String getColor() {\n return currentLocation.getNodeColor();\n }", "abstract public String getColor();", "abstract public String getColor();", "public String getColor() {\r\n\t\treturn color;\r\n\t}", "public int getColor() {\n return this.color;\n }", "public String getColor()\n {\n return this.color;\n }", "Integer getTxtColor();", "@Override\r\n public Llama.Color getColor() {\r\n return color;\r\n }", "@Override\n public Color getColor() {\n return color;\n }", "@Override\n public String getColor() {\n return this.color;\n }", "public Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\r\n return color;\r\n }", "@Override\r\n\tpublic String Color() {\n\t\treturn Color;\r\n\t}" ]
[ "0.6829812", "0.6789101", "0.64524007", "0.6309163", "0.6243598", "0.6151531", "0.61470884", "0.61470884", "0.61470884", "0.61470884", "0.61470884", "0.6104537", "0.5984494", "0.59787494", "0.59663194", "0.594107", "0.59362304", "0.5921079", "0.5917269", "0.5917269", "0.59136105", "0.59043807", "0.5873176", "0.5871226", "0.5845458", "0.58350563", "0.58285457", "0.58285457", "0.58285457", "0.5819651", "0.5819651", "0.5808955", "0.5795569", "0.57874495", "0.57869756", "0.5783576", "0.5781577", "0.577156", "0.57649726", "0.5760417", "0.57379895", "0.57238513", "0.5723268", "0.57221466", "0.5719861", "0.56997985", "0.56986934", "0.56853634", "0.56853634", "0.5670981", "0.566677", "0.5666749", "0.56665885", "0.5661656", "0.5659924", "0.5659077", "0.5654913", "0.5648736", "0.5643206", "0.56423736", "0.56401736", "0.56318164", "0.5631701", "0.56296736", "0.56283593", "0.56235546", "0.56217307", "0.5618227", "0.5610443", "0.5608682", "0.5603199", "0.559709", "0.559709", "0.559709", "0.559709", "0.559709", "0.559709", "0.559709", "0.559709", "0.5595113", "0.5589852", "0.5589852", "0.5589852", "0.5587494", "0.5585393", "0.5582673", "0.55813926", "0.5581282", "0.5581282", "0.55789036", "0.5578387", "0.55771077", "0.55763793", "0.556632", "0.5556008", "0.5555071", "0.5544776", "0.5544776", "0.5544776", "0.5540506" ]
0.7359738
0
Loops the glyphs and draws them all to the screen
public void renderMap(GameMap gameMap, Player player) { this.drawMapGlyphs(gameMap, player); // this.getGlyphs(gameMap, player); // for(Text text : this.getGlyphs(gameMap)) // window.getRenderWindow().draw(text); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void draw() {\n\n // Current generation (y-position on canvas)\n int generation = 0;\n\n // Looping while still on canvas\n while (generation < canvasHeight / CELL_SIZE) {\n\n // Next generation\n cells = generate(cells);\n\n // Drawing\n for (int i = 0; i < cells.length; i++) {\n gc.setFill(colors[cells[i]]);\n gc.fillRect(i * CELL_SIZE, generation * CELL_SIZE, CELL_SIZE, CELL_SIZE);\n }\n\n // Next line..\n generation++;\n }\n }", "@Override\r\n\tpublic void myPaint(Graphics g) {\n\t\tfor (int i = 0; i < karo.length; i++) {\r\n\t\t\tkaro[i].zeichnen(g);\r\n\t\t}\r\n\t}", "private void drawStuff() {\n //Toolkit.getDefaultToolkit().sync();\n g = bf.getDrawGraphics();\n bf.show();\n Image background = window.getBackg();\n try {\n g.drawImage(background, 4, 24, this);\n\n for(i=12; i<264; i++) {\n cellKind = matrix[i];\n\n if(cellKind > 0)\n g.drawImage(tile[cellKind], (i%12)*23-3, (i/12)*23+17, this);\n }\n\n drawPiece(piece);\n drawNextPiece(pieceKind2);\n\n g.setColor(Color.WHITE);\n g.drawString(\"\" + (level+1), 303, 259);\n g.drawString(\"\" + score, 303, 339);\n g.drawString(\"\" + lines, 303, 429);\n\n } finally {bf.show(); g.dispose();}\n }", "public abstract void drawChars(char data[], int offset, int length, int x, int y);", "public void draw(Window w) {\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tdouble angle = i * Math.PI / 10;\n\t\t\tint row = rb + (int) Math.round((height * Math.cos(angle)));\n\t\t\tint col = cb + (int) Math.round((width * Math.sin(angle)));\n\t\t\tw.setCell(row, col, character);\n\t\t}\n\t}", "public void drawAllGraphics(){\r\n\t\t \r\n\t}", "public void draw() {\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setPenRadius(.01);\n for (Point2D p : s) {\n p.draw();\n }\n }", "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 }", "@Override\n public void handlePaint()\n {\n for(GraphicObject obj : this.graphicObjects)\n {\n obj.draw();\n }\n \n }", "void draw_text(int x, int y, char[][] _display, String txt) {\n for (int i = 0; i < txt.length(); i++)\n {\n draw_char(x + i, y, _display, txt.charAt(i));\n }\n }", "public void displayCode (Graphics g){\r\n\t\tfor (int i = 0 ; i < counter; i++){\r\n\t\t\tif (code.charAt(i) == '1'){\r\n\t\t\t\tdrawOne(g);\r\n\t\t\t\tdelay(500);\r\n\t\t\t}\r\n\t\t\telse if (code.charAt(i) == '2'){\r\n\t\t\t\tdrawTwo(g);\r\n\t\t\t\tdelay(500);\r\n\t\t\t}\r\n\t\t\telse if (code.charAt(i) == '3'){\r\n\t\t\t\tdrawThree(g);\r\n\t\t\t\tdelay(500);\r\n\t\t\t}\r\n\t\t\telse if (code.charAt(i) == '4'){\r\n\t\t\t\tdrawFour(g);\r\n\t\t\t\tdelay(500);\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tdisplay = false; //display is equal to false when displaying code has finished\r\n\t}", "public void drawAll(){\n for (Triangle triangle : triangles) {\n triangle.draw();\n }\n for (Circle circle : circles) {\n circle.draw();\n }\n for(Rectangle rectangle : rectangles){\n rectangle.draw();\n }\n }", "public void paintComponent(Graphics g){\n super.paintComponent(g);\n for(int i = 0; i < count; i++){\n drawObjects[i].draw(g);\n } \n }", "public void UIDrawing(Graphics g)\n {\n key.draw(g);\n bomb.draw(g);\n heart.setxPos(originalxPos);\n heart.setyPos(originalyPos);\n halfHeart.setxPos(originalxPos);\n halfHeart.setyPos(originalyPos);\n emptyHeart.setxPos(originalxPos);\n emptyHeart.setyPos(originalyPos);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30)); \n if(this.getKeys() < 10)\n {\n g.setColor(Color.BLACK);\n g.drawString(\": 0\" + this.getKeys(), 40 + 2, 100);\n g.drawString(\": 0\" + this.getKeys(), 40 - 2, 100);\n g.drawString(\": 0\" + this.getKeys(), 40, 100 + 2);\n g.drawString(\": 0\" + this.getKeys(), 40, 100 - 2);\n g.setColor(Color.WHITE);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30));\n g.drawString(\": 0\"+ this.getKeys(), 40, 100);\n }\n else\n {\n g.setColor(Color.BLACK);\n g.drawString(\": \" + this.getKeys(), 40 + 2, 100);\n g.drawString(\": \" + this.getKeys(), 40 - 2, 100);\n g.drawString(\": \" + this.getKeys(), 40, 100 + 2);\n g.drawString(\": \" + this.getKeys(), 40, 100 - 2);\n g.setColor(Color.WHITE);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30));\n g.drawString(\": \"+ this.getKeys(), 40, 100);\n }\n if(this.getBombs() < 10)\n {\n g.setColor(Color.BLACK);\n g.drawString(\": 0\" + this.getBombs(), 40 + 2, 150);\n g.drawString(\": 0\" + this.getBombs(), 40 - 2, 150);\n g.drawString(\": 0\" + this.getBombs(), 40, 150 + 2);\n g.drawString(\": 0\" + this.getBombs(), 40, 150 - 2);\n g.setColor(Color.WHITE);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30));\n g.drawString(\": 0\"+ this.getBombs(), 40, 150);\n }\n else\n {\n g.setColor(Color.BLACK);\n g.drawString(\": \" + this.getBombs(), 40 + 2, 150);\n g.drawString(\": \" + this.getBombs(), 40 - 2, 150);\n g.drawString(\": \" + this.getBombs(), 40, 150 + 2);\n g.drawString(\": \" + this.getBombs(), 40, 150 - 2);\n g.setColor(Color.WHITE);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30));\n g.drawString(\": \"+ this.getBombs(), 40, 150);\n }\n for(int i = 0; i < this.getMaxHp() / 2; i++)\n {\n emptyHeart.setxPos(originalxPos + (35 * i));\n if(i >= 6)\n {\n emptyHeart.setyPos(originalyPos + 30);\n emptyHeart.setxPos(originalxPos + (35 * (i - 6)));\n }\n emptyHeart.draw(g);\n }\n for(int i = 0; i < this.getHealth() / 2; i++)\n {\n heart.setxPos(originalxPos + (35 * i));\n if(i >= 6)\n {\n heart.setyPos(originalyPos + 30);\n heart.setxPos(originalxPos + (35 * (i - 6)));\n }\n heart.draw(g);\n if(i == this.getHealth()/2 - 0.5 && ((int)this.getHealth() % 2) != 0)\n {\n halfHeart.setxPos(originalxPos + (35 * i));\n if(i >= 6)\n {\n halfHeart.setxPos(originalxPos + (35 * (i - 6)));\n halfHeart.setyPos(originalyPos + 30);\n }\n halfHeart.draw(g);\n }\n }\n }", "@Override\n public void paint(Graphics g) {\n g.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 200));\n\n g.setColor(Color.cyan);\n String GameName = \"BALLAND BAR\";\n int x_pos = 150;\n int y_pos = 300;\n int alpha = 8;\n for (int i = 0; i < GameName.length(); i++) {\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha * 0.1f));\n g.drawString(Character.toString(GameName.charAt(i)), x_pos, y_pos);\n x_pos += 150;\n // alpha -= 1;\n }\n\n g.setColor(Color.orange);\n GameName = \"GAME\";\n x_pos = 700;\n y_pos = 550;\n for (int i = 0; i < GameName.length(); i++) {\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha * 0.1f));\n g.drawString(Character.toString(GameName.charAt(i)), x_pos, y_pos);\n x_pos += 150;\n // alpha -= 1;\n }\n /*\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 7 * 0.1f));\n g.drawString(\"G\", 650, 300);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 6 * 0.1f));\n g.drawString(\"A\", 800, 300);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 5 * 0.1f));\n g.drawString(\"M\", 950, 300);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 4 * 0.1f));\n g.drawString(\"E\", 1150, 300);\n\n g.setColor(Color.cyan);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 4 * 0.1f));\n g.drawString(\"N\", 650, 500);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 5 * 0.1f));\n g.drawString(\"A\", 800, 500);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 6 * 0.1f));\n g.drawString(\"M\", 950, 500);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 7 * 0.1f));\n g.drawString(\"E\", 1150, 500);\n */\n }", "private void draw_text() {\n\t\tcopy_text_into_buffer();\n\t\tVoteVisApp.instance().image(text_buffer_, frame_height_ / 2,\n\t\t\t-text_graphics_.height / 2);\n\t}", "private void drawStrings(Canvas canvas)\n\t{\n\t\tPaint dark = new Paint();\n\t\tdark.setARGB(255, 15, 74, 0);\n\t\tdark.setTextAlign(Paint.Align.CENTER);\n\t\tfloat cellWidth = (Math.min(getMeasuredHeight(), getMeasuredWidth()) - PADDING);\n\t\tcellWidth = cellWidth/(float)_height;\n\t\tdark.setTextSize(cellWidth / 4 * 3);\n\n\t\tTypeface font = Typeface.createFromAsset(getContext().getAssets(), \n\t\t\t\t\"fonts/Roboto.ttf\");\n\t\tdark.setTypeface(font);\n\t\tfor ( int i = 0; i < _board.getSize(); ++i ) \n\t\t{\n\t\t\tString letter = _board.getElementAt(i);\n\t\t\tint x = i % _height;\n\t\t\tint y = i / _height;\n\t\t\tcanvas.drawText(letter, x * (cellWidth) + cellWidth / 2, y * (cellWidth) + cellWidth / 4 * 3, dark);\n\t\t}\n\t}", "public void render (DrawingCanvas canvas){\n //System.out.println(\"drawing \"+wd+\"*\"+ht+\" at (\"+x+\",\"+y+\")\");\n canvas.setForeground(col);\n canvas.drawString(str, x, y, false);\n canvas.setForeground(Color.lightGray);\n canvas.drawRect(x,y-13,(str.length()*8),16);\n }", "public void draw() {\n for (Point2D i : pointsSet)\n i.draw();\n }", "void draw_pieces(int x, int y, char[][] _display, char[][] _board) {\n for (int i = 0; i < 8; i++) {\n for (int j = 0; j < 8; j++) {\n switch (_board[i][j]) {\n case ' ':\n break;\n case 'p':\n draw_text(i*8 + 2 + x, j*4 + 2 + y, _display, \" _ \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 1, _display, \" (_) \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 2, _display, \" /_\\\\ \");\n break;\n case 'r':\n draw_text(i*8 + 2 + x, j*4 + 2 + y, _display, \" [###] \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 1, _display, \" |_| \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 2, _display, \" /___\\\\ \");\n break;\n case 'k':\n draw_text(i*8 + 2 + x, j*4 + 2 + y, _display, \" /\\\\_ \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 1, _display, \" / o = \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 2, _display, \" \\\\ \\\\ \");\n break;\n case 'b':\n draw_text(i*8 + 2 + x, j*4 + 2 + y, _display, \" O \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 1, _display, \" ( ) \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 2, _display, \" / \\\\ \");\n break;\n case 'q':\n draw_text(i*8 + 2 + x, j*4 + 2 + y, _display, \" \\\\\\\\|// \");\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 1, _display, \" )_( \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 2, _display, \" /___\\\\ \" );\n break;\n case 'K':\n draw_text(i*8 + 2 + x, j*4 + 2 + y, _display, \" [###] \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 1, _display, \" (___) \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 2, _display, \" /___\\\\ \");\n break;\n default:\n break;\n }\n }\n }\n }", "public void display()\n\t{\n\t\tfor(Character characher : characterAdded)\n\t\t{\t\n\t\t\tif(!characher.getIsDragging())\n\t\t\t{ \n\t\t\t\t//when dragging, the mouse has the exclusive right of control\n\t\t\t\tcharacher.x = (float)(circleX + Math.cos(Math.PI * 2 * characher.net_index/net_num) * radius);\n\t\t\t\tcharacher.y = (float)(circleY + Math.sin(Math.PI * 2 * characher.net_index/net_num) * radius);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tint lineWeight = 0;\n\t\t//draw the line between the characters on the circle\n\t\tif(characterAdded.size() > 0)\n\t\t{\n\t\t\tfor(Character characher : characterAdded)\n\t\t\t{\n\t\t\t\tfor(Character ch : characher.getTargets())\n\t\t\t\t{\n\t\t\t\t\tif(ch.net_index != -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int i = 0; i < links.size(); i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tJSONObject tem = links.getJSONObject(i);\n\t\t\t\t\t\t\tif((tem.getInt(\"source\") == characher.index) && \n\t\t\t\t\t\t\t\t\t\t\t\t(tem.getInt(\"target\") == ch.index))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tlineWeight = tem.getInt(\"value\");\n\t\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\tparent.strokeWeight(lineWeight/4 + 1);\t\t\n\t\t\t\t\t\tparent.noFill();\n\t\t\t\t\t\tparent.stroke(0);\n\t\t\t\t\t\tparent.line(characher.x, characher.y, ch.x, ch.y);\n\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}", "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 void draw() {\n for (Point2D point : pointSet) {\n point.draw();\n }\n }", "public void draw() {\n for (Point2D p: mPoints) {\n StdDraw.filledCircle(p.x(), p.y(), 0.002);\n }\n }", "private void render() {\n\n // Clear the whole screen\n gc.clearRect(0, 0, canvas.getWidth(), canvas.getHeight());\n\n // Draw the background image\n gc.drawImage(curMap.getMap(), 0,0, canvas.getWidth(), canvas.getHeight());\n\n // Draw Paths\n for(DrawPath p : pathMap.values()) {\n p.draw(gc);\n }\n\n // Draw all of the lines and edges\n\n // Lines\n for(Line l : lineMap.values()) {\n l.draw(gc);\n }\n\n // Points\n for(Point p : pointMap.values()) {\n p.draw(gc);\n }\n\n // Images\n for(Img i : imgMap.values()) {\n i.draw(gc);\n }\n\n // Text\n for(Text t : textMap.values()) {\n t.draw(gc);\n }\n }", "public void paintComponent(Graphics g){\n super.paintComponent(g);\n\n //casting the Graphics g to Graphics2D which is the updated version\n Graphics2D g2d = (Graphics2D)g;\n g2d.setFont(new Font(\"Times new Roman,\", Font.PLAIN,20));\n g2d.setColor(Color.white);\n //class rendering hints attribute to specify whether you want objects to be rendered as quickly as possible\n g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\n int y = textY;\n\n for(String line : text.split(\"\\n\")){\n int stringLength = (int)g2d.getFontMetrics().getStringBounds(line,g2d).getWidth();\n int x = getWidth()/2 - stringLength/2;\n g2d.drawString(line,x, y +=28);\n }\n }", "public void print() {\n System.out.print(\"\\033[H\\033[2J\");\n for(int y = 0; y < this.height; y++) {\n for (int x = 0; x < this.width; x++) {\n ColoredCharacter character = characterLocations.get(new Coordinate(x , y));\n if (character == null) {\n System.out.print(\" \");\n } else {\n System.out.print(character);\n }\n }\n System.out.print(\"\\n\");\n }\n }", "void draw_rect(int x, int y, int w, int h, char[][] _display, char c) {\n for (int i = 0; i < w; i++) {\n draw_char(x + i, y, _display, c);\n }\n for (int i = 0; i < h; i++) {\n draw_char(x + w, y + i, _display, c);\n }\n for (int i = w; i > 0; i--) {\n draw_char(x + i, y + h, _display, c);\n }\n for (int i = h; i > 0; i--) {\n draw_char(x, y + i, _display, c);\n }\n }", "public void draw()\r\n\t{\r\n\t\tsynchronized (lines)\r\n\t\t{\r\n\t\t\tfor(int i = lines.size()-1; i >= 0; i--)\r\n\t\t\t{\r\n\t\t\t\tlines.get(i).draw();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void paint() {\n for (int row = 0; row < ROWS; ++row) {\n for (int col = 0; col < COLS; ++col) {\n cells[row][col].paint();\n if (col < COLS - 1) System.out.print(\"|\");\n }\n System.out.println();\n if (row < ROWS - 1) {\n System.out.println(\"-----------\");\n }\n }\n }", "@Override\n\tprotected void onDraw(Canvas canvas) {\n\t\tsuper.onDraw(canvas);\n\t\tint w = getMeasuredWidth();\n\t\tint h = getMeasuredHeight();\n\t\tint h1 = h/letter.length;\n\t\tLog.e(\"huang\", \"w:\"+w+\" h:\"+h);\n\t\t\n\t\tPaint paint = new Paint();\n\t\tpaint.setTextSize(12);\n\t\tpaint.setStyle(Style.FILL);\t\t\n\t\tpaint.setTextAlign(Align.CENTER);\n\t\tpaint.setColor(color);\n\t\tfor(int t=0; t<27; ++t){\n\t\t\tif(t==0){\n\t\t\t\tcanvas.drawBitmap(bm, w/2-20, h1*t+h1/2-10, paint);\n\t\t\t} else {\n\t\t\t\tString temp = String.valueOf(letter[t]);\n\t\t\t\tcanvas.drawText(temp, w/2-8, h1/2+h1*t, paint);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void render() {\n\t\ttheMap.draw(g);\n\t\ttheTrainer.draw(g);\n\t}", "private void draw() {\n this.player.getMap().DrawBackground(this.cameraSystem);\n\n //Dibujamos al jugador\n player.draw();\n\n for (Character character : this.characters) {\n if (character.getMap() == this.player.getMap()) {\n character.draw();\n }\n }\n\n //Dibujamos la parte \"superior\"\n this.player.getMap().DrawForeground();\n\n //Sistema de notificaciones\n this.notificationsSystem.draw();\n\n this.player.getInventorySystem().draw();\n\n //Hacemos que la cámara se actualice\n cameraSystem.draw();\n }", "@Override\n protected final void setGraphics() {\n super.setGraphics();\n Graphics g = toDraw.getGraphics();\n g.setColor(Color.BLACK); \n \n for (int i = 0; i < choices.size(); i++) { \n g.drawString(choices.get(i).getValue(), wGap, (i + 1) * hItemBox);\n }\n }", "public void drawSelf() {\n for (Point p : matches) {\n this.drawPoint(p, Color.WHITE);\n }\n }", "protected void drawButtons() {\n\t\tint spaceX = 50;\n\t\tint spaceY = 500;\t\n\t\t\n\t\tint aux = 1;\n\t\tfor(int i = 65; i < 91; i++) {\n\n\t\t\tLetterButton button = new LetterButton((char) i, (25 + spaceX ) * aux, spaceY);\n\t\t\taux++;\n\t\t\tif(aux == 14) {\n\t\t\t\tspaceY += 25 + 50;\n\t\t\t\taux = 1;\n\t\t\t}\n\t\t\tthis.add(button);\n\t\t}\n\t\t\n\t}", "public void paintComponent(final Graphics the_graphics)\n {\n super.paintComponent(the_graphics);\n final Graphics2D g2d = (Graphics2D) the_graphics;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, \n RenderingHints.VALUE_ANTIALIAS_ON);\n g2d.setFont(my_font);\n g2d.setColor(Color.WHITE);\n g2d.setStroke(new BasicStroke(STROKE_SIZE));\n g2d.drawString(PIECE_STRING, (getWidth() / (STROKE_SIZE * STROKE_SIZE)) - \n (PIECE_STRING.length() / STROKE_SIZE), (int) (getHeight() * LABEL_STARTING_Y));\n \n for (int y = Piece.NUMBER_OF_BLOCKS - 1; 0 <= y; y--) \n {\n for (int x = 0; x < Piece.NUMBER_OF_BLOCKS; x++) \n {\n for (int i = 0; i < Piece.NUMBER_OF_BLOCKS; i++) \n {\n final Point block = my_board.nextPiece().blocks()[i];\n if (block.x() == x && block.y() == y) \n {\n g2d.setColor(my_board.nextPiece().color());\n g2d.fill(new Rectangle2D.Double((x * getWidth() * BLOCK_SIZE_CONSTANT) + \n (int) (getWidth() * BLOCK_STARTING_X), (getHeight() / 2) + \n (float) (getWidth() * BLOCK_SIZE_CONSTANT) - (y * getWidth() * \n BLOCK_SIZE_CONSTANT), getWidth() * BLOCK_SIZE_CONSTANT, getWidth() * \n BLOCK_SIZE_CONSTANT));\n g2d.setColor(Color.DARK_GRAY);\n g2d.draw(new Rectangle2D.Double((x * getWidth() * BLOCK_SIZE_CONSTANT) + \n (int) (getWidth() * BLOCK_STARTING_X), (getHeight() / 2) + \n (float) (getWidth() * BLOCK_SIZE_CONSTANT) - (y * getWidth() * \n BLOCK_SIZE_CONSTANT), getWidth() * BLOCK_SIZE_CONSTANT, getWidth() * \n BLOCK_SIZE_CONSTANT));\n } \n }\n }\n }\n }", "public void draw()\n\t{\n\t\tSystem.out.println(\" |-------------------------------|\");\n\t\t\n\t\tfor (int i = 0; i < board_size; i++)\n\t\t{\n\t\t\tSystem.out.print(board_size - i + \" |\");\n\t\t\t\n\t\t\tfor (int j = 0; j < board_size; j++)\n\t\t\t{\n\t\t\t\tif (getPiece(i,j) == null) {System.out.print(\" |\");}\n\t\t\t\telse {System.out.print(\" \" + getPiece(i,j).getSymbol().toChar() + \" |\");}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\" |-------------------------------|\");\n\t\t}\n\t\t\n\t\tSystem.out.println(\" A B C D E F G H \\n\");\n\t}", "protected void visualizeCharacters(Document doc, PdfDrawer drawer) throws VisualizerException {\n for (Page page : doc.getPages()) {\n for (Character character : page.getCharacters()) {\n visualizeCharacter(character, drawer);\n }\n }\n }", "@Override\t\n public void paint(Graphics g)\n {\n\t char [] chText={'T','a','n','z','e','n','d','e',' ','S','c','h','r','i','f','t'};\n\t \n\t g.setFont (new Font(\"Helvetica\", Font.BOLD, 20));\n\t FontMetrics m=g.getFontMetrics();\n\t int height=m.getHeight ()+5;\n\t int width=m.charWidth(chText[0]);\n\t \n\t //Correct width, if a bigger char exists:\n\t for (int i=1; i < chText.length; i++)\n\t {\n\t\t if(m.charWidth(chText[i])> width)\n\t\t {\n\t\t\t width=m.charWidth(chText[i]);\n\t\t }\n\t }\t\t \n\t \n\t for (int j=0;j<chText.length;j++)\n\t {\n\t\t int start=(int)Math.round(20*Math.random());\n\t\t g.setColor(Palette[start%Palette.length]);\n\t\t g.drawChars(chText,j,1,j*width,height+start);\n\t }\n }", "public void draw(Graphics2D g2d) {\r\n for (int i = 0; i < lines.size(); ++i) {\r\n int deltaX = (width - getGlobalFontMetrics().stringWidth(lines.elementAt(i))) / 2;\r\n int deltaY = getGlobalFontMetrics().getHeight() * (i + 1) - getGlobalFontMetrics().getDescent();\r\n g2d.drawString(lines.elementAt(i), x + deltaX + 1, y + deltaY);\r\n }\r\n }", "@Override\r\n public void render(final Graphics graphics) throws Exception\r\n {\n for (int index = 0; index < characters.size(); index++)\r\n {\r\n //get the current character\r\n Character character = characters.get(index);\r\n \r\n //only render if the character is not dead\r\n if (!character.isDead())\r\n character.render(graphics, getImage());\r\n }\r\n }", "@Override\r\n\tpublic void onCustomDraw(Graphics2D g) {\n\t\tg.setColor(Color.black);\r\n\t\tg.fillRect(x, y, width, height);\r\n\t\tg.setColor(Color.green);\r\n\t\tfor(int i = 0; i < 50; i++){\r\n\t\t\tif(text[i] != null){\r\n\t\t\t\tg.drawString(text[i], 11, (i*10)+20);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void draw(Graphics w) {\n\n\t\tfor (int x = 0; x < worldWidth; x++) {\n\t\t\tfor (int y = 0; y < worldHeight; y++) {\n\t\t\t\ttileArr[x][y].draw(w);\n\t\t\t}\n\t\t}\n\t\tif (lost) {\n\t\t\tw.drawString(\"YOU LOST\", 100, 200);\n\t\t\tw.drawString(\"Press R key to start again!\", 100, 400);\n\t\t} else if (isFinished) {\n\t\t\tw.drawString(\"YOU WIN.\", 100, 200);\n\t\t}\n\n\t}", "@Override\r\n\tpublic void run() {\n\t\tfor(int i =0; i < times; i++) {\r\n\t\t\tSystem.out.print(charToPrint);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "private void drawStrings(Graphics g, int wid, int hei) {\n Font f = new Font(\"Font.PLAIN\", Font.BOLD, hei / 20);\n g.setFont(f);\n g.setColor(Color.white);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 - 2, hei / 10 - 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 5, hei / 10 * 3 - 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 - 2, hei / 2 - 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 - 2, hei / 2 + hei / 20 + 3);\n g.setColor(Color.black);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 + 2, hei / 10 + 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 9, hei / 10 * 3 + 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 + 2, hei / 2 + 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 + 2, hei / 2 + hei / 20 + 7);\n g.setColor(Color.red);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20, hei / 10);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 7, hei / 10 * 3);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20, hei / 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63, hei / 2 + hei / 20 + 5);\n }", "public void drawEssentialComponents(){\n//\t\tDraw the Player\n\t\tbatch.draw(Player.getPlayerImage(), Player.getxPlayerLoc(), Player.getyPlayerLoc(), Player.getPlayerImage().getWidth() * Player.getPlayerScale(),Player.getPlayerImage().getHeight() * Player.getPlayerScale());\t\t\n\t\t\n\t\t\n//\t\tDraw the Boxes\n\t\tfor(Box aAnswer:possAnswers){\n\t\t\tif(aAnswer.isDrawable()){\n\t\t\t\tbatch.draw(aAnswer.getImage(), aAnswer.getBoxXStart(), aAnswer.getBoxYStart(), aAnswer.getImage().getWidth() * aAnswer.getBoxScale(),aAnswer.getImage().getHeight() * aAnswer.getBoxScale());\t\t\t\n\t\t\t\tfont1.draw(batch,Character.toString(aAnswer.getDisplaySelection()), aAnswer.getBoxXStart(), aAnswer.getBoxYStart());\n\t\t\t\tfont.draw(batch,(aAnswer.getDisplaySelection() + \": \" + aAnswer.getaString()), aAnswer.getDrawXLoc(),aAnswer.getDrawYLoc() );\n//\t\t\t\tfont.drawWrapped(batch, (aAnswer.getDisplaySelection() + \": \" + aAnswer.getaString()), aAnswer.getDrawXLoc(),aAnswer.getDrawYLoc(), setBoxWindow(aAnswer.))\n\t\t\t}\n\t\t}\n\n//\t\tDraw the Question\n\t\tfont.draw(batch, ques, 0 , screenHeight );\n\n\t}", "private void draw (String printable, StringBuffer canvas) {\r\n \t\t\tcanvas.append(\"| \");\r\n \t\t\t\r\n \t\t\tcanvas.append(printable);\r\n \t\t\tfor (int i=printable.length(); i<width-4; i++) //Fill in the spaces.\r\n \t\t\t{\r\n \t\t\t\tcanvas.append(' ');\r\n \t\t\t}\r\n \t\t\tcanvas.append(\" |\\n\");\r\n \t\t}", "@Override\n\tpublic void render() {\n\t\tif (this.hidden) {\n\t\t\treturn;\n\t\t}\n\n\t\tsuper.render();\n\n\t\tthis.font.draw(Graphics.batch, this.label, this.getX(),\n\t\t\tthis.getY() + (this.getHeight() - this.font.getLineHeight()) / 2);\n\t}", "private void drawSquares() {\n for (Square square : gui.game) {\n new SquareRenderer(gui, g2, square);\n }\n }", "public void draw() {\n \n // TODO\n }", "public void render(GraphicsContext aGraphicsContext) {\n for (EnemyFish currEnemyFish : fEnemyFishList) {\n currEnemyFish.getSprite().render(aGraphicsContext);\n }\n }", "public void paint() {\n BufferStrategy bs;\n bs = this.getBufferStrategy();\n\n Graphics g = bs.getDrawGraphics();\n g.drawImage(background, 0, 0, this.getWidth(), this.getHeight(), null);\n if (this.blackHoles != null) {\n for (BlackHole blackHole : this.blackHoles) {\n blackHole.paint(g);\n }\n }\n if (this.balls != null) {\n for (int i = 0; i <this.balls.size() ; i++) {\n this.balls.get(i).paint(g);\n }\n\n }\n\n bs.show();\n g.dispose();\n\n }", "@Override\n public void paintComponent(Graphics g) {\n g.setColor(Color.WHITE);\n g.fillRect(0,0,super.getWidth(),super.getHeight());\n\n for (DrawableVector instruction : instructions){\n instruction.draw(g, getWidth(), getHeight());\n }\n if (currentInstruction != null){\n currentInstruction.draw(g, getWidth(), getHeight());\n }\n }", "public void draw()\r\n {\r\n\tfinal GraphicsLibrary g = GraphicsLibrary.getInstance();\r\n\t_level.draw(g);\r\n\t_printText.draw(\"x\" + Mario.getTotalCoins(), 30, _height - 36, false);\r\n\t_printText.draw(\"C 000\", _width - 120, _height - 36, false);\r\n\t_printText.draw(Mario.getLives() + \"UP\", 240, _height - 36, false);\r\n\t_printText.draw(Mario.getPoints() + \"\", 400, _height - 36, false);\r\n\t_coin.draw();\r\n\t_1UP.draw();\r\n }", "private void render() {\n\n if (state == STATE.PAUSE) {\n\n return;\n }\n\n\n if (state == STATE.MENU) {\n\n menu.draw();\n arrow.render();\n return;\n\n }\n\n if (state == STATE.INSTRUCTIONS) {\n instructions.draw();\n return;\n }\n\n for (int i = 0; i < spaceShips.size(); i++) {\n spaceShips.get(i).render();\n }\n\n\n for (Enemy enemy : enemies) {\n enemy.render();\n }\n\n for (int i = 0; i < powerUps.size(); i++) {\n\n powerUps.get(i).render();\n }\n\n for (int i = 0; i < enemyBullets.size(); i++) {\n\n enemyBullets.get(i).render();\n }\n\n for (int i = 0; i < friendlyBullets.size(); i++) {\n\n friendlyBullets.get(i).render();\n }\n\n topBar.render();\n bottomBar.render();\n fps.render();\n score.render();\n\n\n }", "public void paintComponent(Graphics g) {\n \n super.paintComponent(g); // call superclass's paint method\n\n //this.setBackground(Color.GRAY); \n \n // Iterators & misc. variables\n int i;\n int j;\n char tempchar;\n String tempstring = null;\n \n // Length of the lines\n int rowlinelength = numcols*boxsize;\n int collinelength = numrows*boxsize;\n \n // Draw the row lines\n int yloc;\n for(i = 0;i<numrows+1;i++){\n yloc = i*boxsize;\n g.drawLine(0, yloc, rowlinelength, yloc); \n }\n \n // Draw the column lines\n int xloc;\n for(i = 0;i<numcols+1;i++){\n xloc = i*boxsize;\n g.drawLine(xloc, 0, xloc, collinelength);\n }\n \n // Set the font\n g.setFont(new Font(\"SansSerif\", Font.PLAIN, 24));\n \n // Draw the text\n for(i = 0;i<numrows;i++){\n yloc = (boxsize*i) + (int)Math.floor(boxsize/2); \n for(j = 0;j<numcols;j++){\n xloc = (boxsize*j) + (int)Math.floor(boxsize/2);\n tempchar = chargrid[i][j];\n tempstring = Character.toString(tempchar);\n g.drawString(tempstring, xloc, yloc);\n }\n }\n \n \n }", "public void paint(Graphics g){\n \n for (int r=0; r < hexes.length; r++){ \n for (int c=0; c < hexes[r].length; c++){\n int x = (c*(55+HORIZONTAL_GAP))+(200-((2-(Math.abs(r-2)))*(55+HORIZONTAL_GAP)/2));\n int y = (r*(45+VERTICAL_GAP))+50;\n g.drawImage(hexes[r][c],x,y,this);\n g.drawImage(rolls[r][c],x+15,y+20,this);\n } \n }\n }", "public void draw(Graphics g)\n {\n for (int row = 4; row < 24; row++) {\n for (int col = 0; col < 10; col++) {\n if (cells[row][col] != null) {\n cells[row][col].draw(getCellXCoord(col), getCellYCoord(row), g);\n }\n }\n }\n }", "public void draw() {\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setPenRadius(0.01);\n for (Point2D point : points) {\n StdDraw.point(point.x(), point.y());\n }\n StdDraw.setPenRadius();\n }", "private void drawString(final Graphics2D gfx, final List<String> lines) {\n for (int offset = 0; offset < lines.size(); ++offset) {\n gfx.setPaint(Color.BLACK);\n gfx.drawString(\n lines.get(offset),\n 0, gfx.getFontMetrics().getHeight() * (offset + 1)\n );\n }\n }", "private synchronized void paint() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferStrategy bs;\n\t\tbs = this.getBufferStrategy();\n\t\t\n\t\tGraphics2D g = (Graphics2D) bs.getDrawGraphics();\n\t\tg.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillRect(0, 0, this.getWidth(), this.getHeight());\n\t\t\n\t\tif(this.reiniciar == true){\n\t\t\tString ca = \"\" + cuentaAtras;\n\t\t\tg.setColor(Color.WHITE); \n\t\t\tg.setFont(new Font (\"Consolas\", Font.BOLD, 80));\n\t g.drawString(\"Puntuación: \" + puntuacion, 100, 200);\n\t \n\t g.setColor(Color.WHITE); \n\t\t\tg.setFont(new Font (\"Consolas\", Font.BOLD, 300));\n\t g.drawString(ca, 400, 500);\n\t \n\t g.setColor(Color.WHITE); \n\t\t\tg.setFont(new Font (\"Consolas\", Font.BOLD, 40));\n\t\t\tg.drawString(\"Pulsa enter para volver a jugar\", 150, 600);\n\t\t}\n\t\t\n\t\telse if(this.reiniciar == false){\n\t\t\tfor(int i=0;i<numDisparos;i++){ \n\t\t\t\t disparos[i].paint(g);\n\t\t\t}\n\t\t\tfor(int i=0;i<numAsteroides;i++){\n\t\t\t\t asteroides[i].paint(g);\n\t\t\t}\n\t\t\t\n\t\t\tif(this.isNaveCreada()==true && nave!=null){\n\t\t\t\tnave.paint(g);\n\t\t\t}\n\t\t\t\n\t\t\tif(enemigo.isVivo()==true){\n\t\t\t\tenemigo.paint(g);\n\t\t\t\t\n\t\t\t\tfor(int i=0;i<numDisparosE;i++){ \n\t\t\t\t\t disparosE[i].paint(g);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tg.setColor(Color.WHITE); \n\t\t\tg.drawString(\"Puntuacion \" + puntuacion,20,20); \n\t\t\t\n\t\t\tg.setColor(Color.WHITE); \n\t\t\tg.drawString(\"Vida \" + this.getVidas(),20,40);\n\t\t}\n\t\t\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "private void paintNumbers() {\n\n g2d.setColor(_BOARDCOLOR);\n g2d.drawString(\"0\", 100, 150);\n g2d.drawString(\"1\", 200, 150);\n g2d.drawString(\"2\", 300, 150);\n g2d.drawString(\"3\", 400, 150);\n g2d.drawString(\"4\", 100, 250);\n g2d.drawString(\"5\", 200, 250);\n g2d.drawString(\"6\", 300, 250);\n g2d.drawString(\"7\", 400, 250);\n g2d.drawString(\"8\", 100, 350);\n g2d.drawString(\"9\", 200, 350);\n g2d.drawString(\"10\", 300, 350);\n g2d.drawString(\"11\", 400, 350);\n g2d.drawString(\"12\", 100, 450);\n g2d.drawString(\"13\", 200, 450);\n g2d.drawString(\"14\", 300, 450);\n g2d.drawString(\"15\", 400, 450);\n }", "private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n } else {\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n g.setColor(Color.white);\n g.drawLine(0, 500, 595, 500);\n player.render(g);\n for (int i = 0; i < aliens.size(); i++) {\n Alien al = aliens.get(i);\n al.render(g);\n }\n if (shotVisible) {\n shot.render(g);\n }\n\n if(gameOver==false)\n {\n gameOver();\n }\n for(Alien alien: aliens){\n Bomb b = alien.getBomb();\n b.render(g);\n }\n g.setColor(Color.red);\n Font small = new Font(\"Helvetica\", Font.BOLD, 20);\n g.setFont(small);\n g.drawString(\"G - Guardar\", 10, 50);\n g.drawString(\"C - Cargar\", 10, 70);\n g.drawString(\"P - Pausa\", 10, 90);\n\n if(keyManager.pause)\n {\n g.drawString(\"PAUSA\", 250, 300);\n }\n \n bs.show();\n g.dispose();\n }\n\n }", "@Override\r\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\tg.drawString(str, 10, 10);\r\n\t\tg.drawLine(10, 20, 110, 20);\r\n\t\tg.drawRect(pX, 30, 100, 100);\r\n\t\t\r\n\t}", "public void draw() {\n GraphicsContext gc = getGraphicsContext2D();\n /*gc.clearRect(0, 0, getWidth(), getHeight());\n\n if (squareMap != null) {\n squareMap.draw(gc);\n }\n if (hexMap != null) {\n hexMap.draw(gc);\n }*/\n\n // Draw animations\n for (SpriteAnimationInstance anim : animationList) {\n anim.draw(gc);\n }\n\n // Lastly draw the dialogue window, no matter which canvas\n // we are on, all the same.\n DfSim.dialogueWindow.draw(gc);\n\n /*if (landMap != null) {\n landMap.draw(gc);\n }*/\n\n // Draw a border around the canvas\n //drawBorder(gc);\n\n // And now just draw everything directly from the simulator\n /*for (Raindrop item : sim.getDrops()) {\n drawMovableCircle(gc, item);\n }\n for (Earthpatch item : sim.getPatches()) {\n drawMovableCircle(gc, item);\n }\n for (SysShape item : sim.getShapes()) {\n drawSysShape(gc, item);\n }\n for (Spike item : sim.getSpikes()) {\n drawMovablePolygon(gc, item);\n }\n for (GravityWell item : sim.getGravityWells()) {\n drawGravityWell(gc, item);\n }*/\n }", "public void drawString(AttributedCharacterIterator iterator, int x, int y)\r\n\t{\r\n\t\t// System.out.println(\"drawString att\");\r\n\t}", "public static void main(String[] args) {\n String keyboard = \"q2we4r5ty7u8i9op-[=zxdcfvgbnjmk,;/' \";\r\n // number of strings variable\r\n int numberOfStrings = keyboard.length();\r\n GuitarString[] guitarStringsArray = new GuitarString[numberOfStrings];\r\n RingBuffer sampleBuff = new RingBuffer();\r\n \r\n StdDraw.setXscale(0, 100); // sets x scale from 0 to 100\r\n StdDraw.setYscale(-10,10); // sets y scale from -10 to 10 (y should be between -1 and 1)\r\n StdDraw.enableDoubleBuffering(); // drawing takes place on off-screen canvas\r\n \r\n int x = 0;\r\n for (int i = 0; i < numberOfStrings; i++) {\r\n double f = 440.0 * Math.pow(2, (i - 24) / 12.0);\r\n guitarStringsArray[i] = new GuitarString(f);\r\n }\r\n \r\n while (true) {\r\n double sample = 0;\r\n if (StdDraw.hasNextKeyTyped()) {\r\n char key = StdDraw.nextKeyTyped();\r\n if (keyboard.indexOf(key) != -1) {\r\n guitarStringsArray[keyboard.indexOf(key)].pluck();\r\n }\r\n }\r\n\t for (int j = 0; j < guitarStringsArray.length; j++) {\r\n\t sample += guitarStringsArray[j].sample();\r\n\t }\r\n\t //System.out.println(sample);\r\n\t // plays audio\r\n\t StdAudio.play(sample); \r\n\t // enqueues sample into buffer\r\n\t sampleBuff.enqueue(sample);\r\n\t \r\n\t // if buffer size is greater than 1\r\n\t if (sampleBuff.size() > 1) {\r\n\t \tSystem.out.println(\"x: \" + x);\r\n\t // if x == 0 clear the drawing \r\n\t if (x == 100) {\r\n\t \tx = 0;\r\n\t \tStdDraw.clear();\r\n\t }\r\n\t // draws from (x, buff.deq) to (x+1, buff.peek)\r\n\t StdDraw.line(x, sampleBuff.dequeue(), x+1, sampleBuff.peek());\r\n\t // shows and pauses the drawing \r\n\t \r\n\t StdDraw.show();\r\n\t StdDraw.pause(10);\r\n\t \r\n\t // x iterator\r\n\t x++;\r\n\t } \r\n\t \r\n\t for (int j = 0; j < guitarStringsArray.length; j++) {\r\n\t guitarStringsArray[j].tic();\r\n\t } \r\n }\r\n }", "@Override\r\n\tpublic void render(GameContainer gc, Renderer r) {\n\t\tr.drawTextInBox(posX, posY, width, height, color1, text);\r\n\t\t//r.noiseGen();\r\n\t}", "public void render(GameContainer gc, Graphics g){\n\n for(Renderable r:renderables){\n r.render(gc, g);\n }\n\n if(this.gameData.getCurrentRoom().getRoomType() == MasarRoom.VICTORYROOM) {\n this.gameData.getImageList().get(2).draw(226, 284);\n }\n\n if(this.gameData.getCurrentRoom().getRoomType() == MasarRoom.DEFEATROOM) {\n this.gameData.getImageList().get(3).draw(120, 288);\n }\n\n\n if(roomType == GAMEROOM){\n\n for(Renderable l: this.gameData.getLinkList()){\n l.render(gc, g);\n }\n for(Renderable s: this.gameData.getSystemList()){\n s.render(gc, g);\n }\n\n this.gameData.getImageList().get(0).draw(300, 5);\n this.gameData.getImageList().get(1).draw(800, 5);\n this.gameData.getButtonsImages().get(\"Enemy\").drawNextSubimage(600, 16);\n this.gameData.getButtonsImages().get(\"Allied\").drawNextSubimage(500, 16);\n\n TrueTypeFont font = this.gameData.getFont(\"UITopFont\");\n font.drawString(536, 0, \"VS\" , Color.green);\n\n int popa = this.gameData.getPopA();\n int pope = this.gameData.getPopE();\n int resa = this.gameData.getResA();\n int rese = this.gameData.getResE();\n\n if ( popa > 1000000 ) font.drawString(480 - font.getWidth(\"\"+popa/1000000 + \"M\"), 0, \"\"+popa/1000000 + \"M\" , Color.cyan);\n else if ( popa > 1000 ) font.drawString(480 - font.getWidth(\"\"+popa/1000 + \"K\"), 0, \"\"+popa/1000 + \"K\" , Color.cyan);\n else font.drawString(480 - font.getWidth(\"\"+popa), 0, \"\"+popa , Color.cyan);\n font.drawString(295 - font.getWidth(\"\"+resa), 0, \"\"+resa , Color.cyan);\n\n if ( pope > 1000000 ) font.drawString(620, 0, \"\"+pope/1000000 + \"M\" , Color.red);\n else if ( pope > 1000 ) font.drawString(620, 0, \"\"+pope/1000 + \"K\" , Color.red);\n else font.drawString(620, 0, \"\"+pope , Color.red);\n font.drawString(830, 0, \"\"+rese , Color.red);\n\n for(WindowSystem w: this.gameData.getWindowList()){\n if(w.getMs().isShowWindow())\n w.render(gc, g);\n }\n\n //this.getClickManager().renderHitboxes(gc, g);\n\n }\n\n //this.getClickManager().renderHitboxes(gc, g);\n }", "@Override\r\n public void paint(Graphics g) {\r\n super.paint(g);\r\n Letter letter = new Letter(\"C\", getPosition());\r\n letter.paint(g);\r\n }", "public void paint(Graphics g) {\n Graphics2D g2d = (Graphics2D) g;\n g2d.draw(glyphPath);\n }", "public void draw() {\n\t\tfor (Link link : links)\n\t\t\tlink.draw();\n\t}", "@Override\n\tpublic void paint(Graphics g) {\n\t\tg.setColor(getBackground());\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\n\t\t// Draw each of the DrawSurfaces in the correct order.\n\t\tfor (Object element : aiDrawingOrder) {\n\t\t\tpaint(g, element);\n\t\t}\n\t}", "public void paintComponenet(){\r\n\t\tfor(DShape ds : shapes){\r\n\t\t\tds.draw();\r\n\t\t}\r\n\t}", "@Override\n void draw(@NonNull Canvas canvas) {\n for (PatternCell patternCell : mPatternCells) {\n patternCell.draw(canvas, false); //TODO\n }\n }", "public void draw(Graphics2D gc){\r\n\r\n Font curFont = gc.getFont();\r\n gc.setFont(font);\r\n Paint curColor = gc.getPaint();\r\n gc.setPaint(textColor);\r\n //gc.drawString(text, x, y); // This would look better but doesn't seem to work with hit testing.\r\n\r\n FontRenderContext frc = gc.getFontRenderContext();\r\n TextLayout textLayout = new TextLayout(text, font, frc);\r\n AffineTransform moveTo = AffineTransform.getTranslateInstance(x, y);\r\n textShape = textLayout.getOutline(moveTo);\r\n gc.fill(textShape);\r\n gc.setFont(curFont);\r\n gc.setPaint(curColor);\r\n }", "private void drawImages() {\n\t\t\r\n\t}", "@Override\n\tpublic void draw() {\n\t\tbg.draw();\n\t\tfor(Test2 t : test)\n\t\t\tt.draw();\n\t\tfor(Test2 t : test2)\n\t\t\tt.draw();\n\t\t\n\t\tfor(Test2 t : test3)\n\t\t\tt.draw();\n\t\tobj.draw();\n\t\tEffect().drawEffect(1);\n\t}", "public void paint() {\r\n\t\tBufferStrategy bf = base.frame.getBufferStrategy();\r\n\t\ttry {\r\n\t\t\tg = bf.getDrawGraphics();\r\n\t\t\tg.clearRect(0, 0, 1024, 768);\r\n\t\t\tg.setFont(normal);\r\n\t\t\tif (gameState == 1) {\r\n\t\t\t\tg.drawImage(playButton, playButtonXM, playButtonYM, playButtonWidthM, playButtonHeightM, this);\t\t\t\t\r\n\t\t\t}else if (gameState == 3){\r\n\t\t\t\tint weaponPosX = ((arrow2X-arrowX) /2) + arrowX - 20;\r\n\t\t\t\tint weaponPosY = arrowY - 15;\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY2ndRow, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY2ndRow, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY3rdRow, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY3rdRow, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY4thRow, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY4thRow, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(playButton, playButtonX, playButtonY, playButtonWidth, playButtonHeight, this);\r\n\r\n\t\t\t\t//text boxes above choices\r\n\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\tg.drawString(\"Weapon\", weaponPosX, weaponPosY);\r\n\t\t\t\tg.drawString(\"Difficulty\", weaponPosX, (arrowY2ndRow - 15));\r\n\t\t\t\tg.drawString(\"Number of AI\", weaponPosX - 12, (arrowY3rdRow - 15));\r\n\t\t\t\tg.drawString(\"Number of players\", weaponPosX - 20, (arrowY4thRow - 15));\r\n\r\n\t\t\t\tif (getDifficulty() == 1){\r\n\t\t\t\t\tg.drawImage(Easy, difficultyXPos, arrowY2ndRow, difficultyWidth , arrowHeight, this);\r\n\t\t\t\t}else if (getDifficulty() == 2) {\r\n\t\t\t\t\tg.drawImage(Normal, difficultyXPos, arrowY2ndRow, difficultyWidth, arrowHeight, this);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tg.drawImage(Hard, difficultyXPos, arrowY2ndRow, difficultyWidth, arrowHeight, this);\r\n\t\t\t\t}\r\n\t\t\t\tif (getAttackStyle() == 2) {\r\n\t\t\t\t\tg.drawImage(Arrowr, weaponPosX -85, weaponPosY + 15, (arrow2X - arrowX) - 280, arrowHeight, this);\r\n\t\t\t\t}else {\r\n\t\t\t\t\t//due to the sword using all of the x positions the width is slightly different\r\n\t\t\t\t\tg.drawImage(SwordL, weaponPosX -85, weaponPosY + 15, (arrow2X - arrowX) - 300, arrowHeight, this);\r\n\t\t\t\t}\r\n\t\t\t\tint AIXPos = weaponPosX;\r\n\t\t\t\tif (AINum >= 10 && AINum<100) {\r\n\t\t\t\t\tAIXPos -=25;\r\n\t\t\t\t} else if (AINum >= 100 && AINum < 1000) {\r\n\t\t\t\t\t//the reason why this grows by 40 instead of an additional 20 is because we are not storing the variable\r\n\t\t\t\t\t//of current position anywhere so we just add another 20 onto the decrease\r\n\t\t\t\t\tAIXPos-=50;\r\n\t\t\t\t} else if (AINum >= 1000) {\r\n\t\t\t\t\tAIXPos-=75;\r\n\t\t\t\t}\r\n\t\t\t\tg.setFont(numbers);\r\n\t\t\t\tString currentNum = Integer.toString(AINum);\r\n\t\t\t\tString currentPlayerString = Integer.toString(currentPlayer);\r\n\t\t\t\tg.drawString(currentNum, AIXPos, arrowY3rdRow + 72);\r\n\t\t\t\tg.drawString(currentPlayerString, weaponPosX, arrowY4thRow + 72);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif ((!escape) && (!dead) &&(!allAIDead)) {\r\n\t\t\t\t\tg.drawImage(picture, 0, 0, base.frame.getWidth(), base.frame.getHeight(), this);\r\n\t\t\t\t\tfor (int i = 0; i < playerObject.length; i++) {\r\n\t\t\t\t\t\tint playerX = (int) playerObject[i].getX();\r\n\t\t\t\t\t\tint playerY = (int) playerObject[i].getY();\r\n\t\t\t\t\t\tg.setColor(Color.darkGray);\r\n\t\t\t\t\t\t// health bar\r\n\t\t\t\t\t\tg.fillRect(playerX, playerY - 30, 100, healthY);\r\n\t\t\t\t\t\tg.setColor(Color.red);\r\n\t\t\t\t\t\tg.fillOval(playerX, playerY, 20, 20);\r\n\t\t\t\t\t\tg.fillRect(playerX, playerY - 30, (int) (playerObject[i].getHealth()/2) , healthY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//AI\r\n\t\t\t\t\tfor (int i = 0; i < AIObject.length; i++) {\r\n\t\t\t\t\t\tif (!AIObject[i].isDead()) {\r\n\t\t\t\t\t\t\tint AIRoundedX = (int) AIObject[i].getAIX();\r\n\t\t\t\t\t\t\tint AIRoundedY = (int) AIObject[i].getAIY();\r\n\t\t\t\t\t\t\tif (AIObject[i].getColor() == null) {\r\n\t\t\t\t\t\t\t\tint red = generator.nextInt(256);\r\n\t\t\t\t\t\t\t\tint green = generator.nextInt(256);\r\n\t\t\t\t\t\t\t\tint blue = generator.nextInt(256);\r\n\t\t\t\t\t\t\t\tColor newColor = new Color(red,green,blue);\r\n\t\t\t\t\t\t\t\tg.setColor(newColor);\r\n\t\t\t\t\t\t\t\tAIObject[i].setColor(newColor);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tg.setColor(AIObject[i].getColor());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tg.fillOval(AIRoundedX, AIRoundedY, 20, 20);\r\n\t\t\t\t\t\t\tAIDeadCount = 0;\r\n\t\t\t\t\t\t\tg.setColor(Color.darkGray);\r\n\t\t\t\t\t\t\tg.fillRect(AIRoundedX, AIRoundedY - 40, AI_ORIG_HEALTH/AI_HEALTH_WIDTH_SCALE, healthY);\r\n\t\t\t\t\t\t\tg.setColor(AIObject[i].getColor());\r\n\t\t\t\t\t\t\tg.fillRect(AIRoundedX, AIRoundedY - 40, (int) AIObject[i].getAIHealth()/AI_HEALTH_WIDTH_SCALE, healthY);\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tAIDeadCount++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// early access banner\r\n\t\t\t\t\tg.drawImage(earlyAccess, 0, 24, this);\r\n\r\n\t\t\t\t\tif (attackStyle == 2) {\r\n\t\t\t\t\t\tif (drawArrow == true) {\r\n\t\t\t\t\t\t\tinFlight = true;\r\n\t\t\t\t\t\t\tshouldPlaySound = true;\r\n\t\t\t\t\t\t\tif ((fireLeft) && (currentlyDrawingArrow != 2)) {\r\n\t\t\t\t\t\t\t\tgoingLeft = true;\r\n\t\t\t\t\t\t\t\tgoingRight = false;\r\n\t\t\t\t\t\t\t\tcurrentlyDrawingArrow = 1;\r\n\t\t\t\t\t\t\t\tg.drawImage(Arrowl, Math.round(aX), Math.round(aY), this);\r\n\r\n\t\t\t\t\t\t\t} else if ((fireRight) && (currentlyDrawingArrow != 1)) {\r\n\t\t\t\t\t\t\t\tgoingRight = true;\r\n\t\t\t\t\t\t\t\tgoingLeft = false;\r\n\t\t\t\t\t\t\t\tcurrentlyDrawingArrow = 2;\r\n\t\t\t\t\t\t\t\tg.drawImage(Arrowr, Math.round(aX), Math.round(aY), this);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif ((aX >= 1024) || (!drawArrow) || (aX <= 0)) {\r\n\t\t\t\t\t\t\tinFlight = false;\r\n\t\t\t\t\t\t\taX = playerObject[0].getX();\r\n\t\t\t\t\t\t\taY = playerObject[0].getY();\r\n\t\t\t\t\t\t\tcurrentlyDrawingArrow = 0;\r\n\t\t\t\t\t\t\tdrawArrow = false;\r\n\t\t\t\t\t\t\tshouldPlaySound = false;\r\n\t\t\t\t\t\t\tnotPlayingSound = false;\r\n\t\t\t\t\t\t\talreadyShot = false;\r\n\t\t\t\t\t\t\tif (wasReleased) {\r\n\t\t\t\t\t\t\t\tlClick = false;\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\telse {\r\n\t\t\t\t\t\tint roundedX = Math.round(playerObject[0].getX());\r\n\t\t\t\t\t\tint roundedY = Math.round(playerObject[0].getY());\r\n\t\t\t\t\t\tif (drawSword) {\r\n\t\t\t\t\t\t\tswordCount++;\r\n\t\t\t\t\t\t\tif (mouseLeft) {\r\n\t\t\t\t\t\t\t\tif (swordCount < 5) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX - 2, roundedY - 45, this);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount > 5 && swordCount <=15) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(Sword45L, roundedX - 45, roundedY - 30, this);\r\n\t\t\t\t\t\t\t\t}else if (swordCount >15 && swordCount<30) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordL, roundedX - 63, roundedY, this);\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount >30 || !drawSword){\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX - 2, roundedY - 45, this);\r\n\t\t\t\t\t\t\t\t\tswordCount = 0;\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\tif (swordCount < 5) {\r\n\t\t\t\t\t\t\t\t\t//image flip g.drawImage(SwordHorizontalL, Math.round(x) - 2, Math.round(y) - 45, -SwordHorizontalL.getWidth(this),SwordHorizontalL.getHeight(this),this);\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX + 20, roundedY - 45,\r\n\t\t\t\t\t\t\t\t\t\t\t-swordHorizontalLWidth,swordHorizontalLWidth,this);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount > 5 && swordCount <=15) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(Sword45L, roundedX + 80, roundedY - 30,\r\n\t\t\t\t\t\t\t\t\t\t\t-sword45LWidth, sword45LHeight, this);\r\n\t\t\t\t\t\t\t\t}else if (swordCount >15 && swordCount<30) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordL, roundedX +90, roundedY, -swordLWidth, swordLHeight, this);\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount >30 || !drawSword){\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX + 20, roundedY - 45,\r\n\t\t\t\t\t\t\t\t\t\t\t-swordHorizontalLWidth, swordHorizontalLHeight, this);\r\n\t\t\t\t\t\t\t\t\tswordCount = 0;\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (shield) {\r\n\t\t\t\t\t\t\tif (mouseLeft) {\r\n\t\t\t\t\t\t\t\tg.drawImage(shieldImage, roundedX - 5, roundedY - 5, shieldWidth, scaledShieldHeight, this);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tg.drawImage(shieldImage, roundedX + 5, roundedY - 5, shieldWidth, scaledShieldHeight, this);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif(mouseLeft) {\r\n\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX - 2, roundedY - 45, this);\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX + 20, roundedY - 45,\r\n\t\t\t\t\t\t\t\t\t\t-SwordHorizontalL.getWidth(this), SwordHorizontalL.getHeight(this), this);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tswordCount = 0;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (wasReleased) {\r\n\t\t\t\t\t\t\tlClick = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else if (escape) {\r\n\t\t\t\t\tg.setColor(Color.white);\r\n\t\t\t\t\tg.drawRect(0, 0, 1024, 768);\r\n\t\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\t\tg.drawString(\"PAUSED\", 512, 389);\r\n\t\t\t\t}\r\n\t\t\t\telse if (dead) {\r\n\t\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\t\tg.drawRect(0, 0, 1024, 768);\r\n\t\t\t\t\tg.drawString(\"Dead\", 512, 389);\r\n\t\t\t\t} else if(allAIDead) {\r\n\t\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\t\tg.drawRect(0, 0, 1024, 768);\r\n\t\t\t\t\tg.drawString(\"You win\", 512, 389);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tg.dispose();\r\n\t\t}\r\n\t\t// Shows the contents of the backbuffer on the screen.\r\n\t\tbf.show();\r\n\t}", "public void drawString(AttributedCharacterIterator iterator, float x, float y)\r\n\t{\r\n\t\t// System.out.println(\"drawString att2\");\r\n\t}", "public void draw() {\r\n\t\tbackground(255); // Clear the screen with a white background\r\n\r\n\t\ttextSize(12);\r\n\t\tfill(0);\r\n\r\n\t\tstroke(0);\r\n\t\tcurve.draw(this);\r\n\t}", "public void printNextChar()\n\t{\n\t\tif(line < linesSize)\n\t\t{\n\t\t\tString nextChar = Character.toString(lines[line].charAt(charIndex));\n\t\t\t\n\t\t\t// Prints our desired character\n\t\t\ttry\n\t\t\t{\n\t\t\t\tGraphics g = messageCanvas.getGraphics();\n\t\t\t\tg.setColor(Color.white);\n\t\t\t\tg.drawString(nextChar, rowWidth, line * font.getLineHeight());\n\t\t\t\tg.flush();\n\t\t\t}\n\t\t\tcatch(SlickException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tcharIndex ++;\n\t\t\tif(charIndex > lines[line].length()-1)\n\t\t\t{\n\t\t\t\tcharIndex = rowWidth = 0;\n\t\t\t\tline ++;\n\t\t\t}\n\t\t\telse\n\t\t\t\trowWidth += font.getWidth(nextChar);\n\t\t}\n\t}", "public void draw() {\n\t\t\r\n\t\tSystem.out.println(\"drawing...\");\r\n\t\t\r\n\t}", "private void createFont(boolean created) {\n\t\tVertexTex[] vertices = new VertexTex[text.length() * 4];\n\t\t\n\t\tint[] indices = new int[text.length() * 6];\n\t\t\n\t\tfloat cursor = 0;\n\t\tfor(int i = 0; i < text.length(); i++) {\n\t\t\tFontChar c = font.getChar(text.charAt(i));\n\t\t\tif(c == null)\n\t\t\t\tc = font.getChar('?');\n\t\t\t\n\t\t\t\n\t\t\tfloat x = cursor + c.X_OFFSET;\n\t\t\tfloat y = -c.Y_OFFSET;\n\t\t\t\n\t\t\tvertices[0 + i * 4] = new VertexTex(\n\t\t\t\tnew Vector3f(x, y, 0),\n\t\t\t\tnew Vector2f(c.T_X / texture.getWidth(), c.T_Y / texture.getHeight())\n\t\t\t);\n\t\t\t\n\t\t\tvertices[1 + i * 4] = new VertexTex(\n\t\t\t\tnew Vector3f(x + c.T_WIDTH, y, 0),\n\t\t\t\tnew Vector2f((c.T_X + c.T_WIDTH) / texture.getWidth(), c.T_Y / texture.getHeight())\n\t\t\t);\n\t\t\t\n\t\t\tvertices[2 + i * 4] = new VertexTex(\n\t\t\t\tnew Vector3f(x + c.T_WIDTH, y - c.T_HEIGHT, 0),\n\t\t\t\tnew Vector2f((c.T_X + c.T_WIDTH) / texture.getWidth(), (c.T_Y + c.T_HEIGHT) / texture.getHeight())\n\t\t\t);\n\t\t\t\n\t\t\tvertices[3 + i * 4] = new VertexTex(\n\t\t\t\tnew Vector3f(x, y - c.T_HEIGHT, 0),\n\t\t\t\tnew Vector2f(c.T_X / texture.getWidth(), (c.T_Y + c.T_HEIGHT) / texture.getHeight())\n\t\t\t);\n\t\t\t\n\t\t\tcursor += c.X_ADVANCE;\n\t\t\t\n\t\t\tindices[0 + i * 6] = 3 + i * 4;\n\t\t\tindices[1 + i * 6] = 0 + i * 4;\n\t\t\tindices[2 + i * 6] = 1 + i * 4;\n\t\t\tindices[3 + i * 6] = 3 + i * 4;\n\t\t\tindices[4 + i * 6] = 1 + i * 4;\n\t\t\tindices[5 + i * 6] = 2 + i * 4;\n\t\t}\n\t\t\n\t\tif(created)\n\t\t\tmesh.reallocateData(GL15.GL_STATIC_DRAW, vertices, indices);\n\t\telse\n\t\t\tmesh = new Mesh(vertices, indices);\n\t}", "public void paint(Graphics g )\n {\n super.paint(g); // is no super.paint(), then lines stay on screen \n \n for ( int i=0; i<allTheShapesCount; i++ )\n {\n allTheShapes[ i ] . drawMe(g);\n }\n }", "@Override\n protected void childDraw(Canvas canvas, float factor) {\n LogUtil.e(TAG, \"childDraw\");\n for (int i = 0; i < tspans.size(); i++) {\n Tspan tspan = tspans.get(i);\n paint.setColor(tspan.getFill());\n paint.setTextSize(tspan.getFont_size() * factor);\n paint.setTypeface(tspan.getFont_family());\n canvas.drawText(tspan.text, x, tspan.y * factor,\n paint);\n x += paint.measureText(tspan.getText());\n paint.reset();\n }\n x=0;\n\n }", "void render() {\n smooth();\n for (int x = 0; x < yvalues.length; x++) {\n noStroke();\n fill(0,0,255,100);\n ellipseMode(CENTER);\n ellipse(x*xspacing,yvalues[x],16,16);\n }\n }", "private void render() {\n\t\tBufferStrategy buffStrat = display.getCanvas().getBufferStrategy();\n\t\tif(buffStrat == null) {\n\t\t\tdisplay.getCanvas().createBufferStrategy(3); //We will have 3 buffered screens for the game\n\t\t\treturn;\n\t\t}\n\n\t\t//A bufferstrategy prevents flickering since it preloads elements onto the display.\n\t\t//A graphics object is a paintbrush style object\n\t\tGraphics g = buffStrat.getDrawGraphics();\n\t\t//Clear the screen\n\t\tg.clearRect(0, 0, width, height); //Clear for further rendering\n\t\t\n\t\tif(State.getState() !=null) {\n\t\t\tState.getState().render(g);\n\t\t}\n\t\t//Drawings to be done in this space\n\t\t\n\t\t\n\t\t\n\t\tbuffStrat.show();\n\t\tg.dispose();\n\t}", "public static void mainDraw(Graphics graphics) {\n Color[] colors = {Color.green, Color.blue, Color.red, Color.cyan};\n int rectangles[] = {50, 100, 150, 200};\n for (int k = 0; k < 4; k++) {\n toCenter(graphics, rectangles[k], colors[k]);\n }\n }", "@Override\n\tpublic void draw() {\n\t\tif (isWhite){\n\t\t\tSystem.out.print(\"\\u2656\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.print(\"\\u265C\");\n\t\t}\t\t\n\t}", "public void paint() {\r\n\r\n\t\tsuper.paint();\r\n\t\r\n\t\tint len = _composites.size();\r\n\t\tfor (int i = 0; i < len; i++) {\r\n\t\t\tComposite c = _composites.get(i);\r\n\t\t\tc.paint();\r\n\t\t}\t\t\t\t\t\t\r\n\t}", "@Override\r\n\tpublic void render() {\n\t\tv.textFont(BODY_FONT);\r\n\t\tv.textAlign(LEFT);\r\n\t\tv.textSize(16);\r\n\r\n\t\tfor(Overlay overlay : overlays) {\r\n\t\t\toverlay.render();\r\n\t\t}\r\n\t}", "public void draw() {\n\t\t\tfloat[] vertices = new float[mVertices.size()];\n\t\t\tfor (int i = 0; i < vertices.length; i++)\n\t\t\t\tvertices[i] = mVertices.get(i);\n\t\t\t\n\t\t\tfloat[] textureCoords = null;\n\t\t\tif (mTextureID != 0) {\n\t\t\t\ttextureCoords = new float[mTextureCoords.size()];\n\t\t\t\tfor (int i = 0; i < textureCoords.length; i++)\n\t\t\t\t\ttextureCoords[i] = mTextureCoords.get(i);\n\t\t\t}\n\t\t\t\n\t\t\tshort[] indices = new short[mIndices.size()];\n\t\t\tfor (int i = 0; i < indices.length; i++)\n\t\t\t\tindices[i] = mIndices.get(i);\n\t\t\t\n\t\t\t// Get OpenGL\n\t\t\tGL10 gl = GameGraphics2D.this.mGL;\n\t\t\t\n\t\t\t// Set render state\n\t\t\tgl.glDisable(GL10.GL_LIGHTING);\n\t\t\tgl.glEnable(GL10.GL_DEPTH_TEST);\n\t\t\tgl.glEnable(GL10.GL_BLEND);\n\n\t\t\tif (mBlendingMode == BLENDING_MODE.ALPHA)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);\n\t\t\telse if (mBlendingMode == BLENDING_MODE.ADDITIVE)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE);\n\t\t\t\n\t\t\tif (mTextureID != 0)\n\t\t\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\t\telse\n\t\t\t\tgl.glDisable(GL10.GL_TEXTURE_2D);\n\t\t\t\n\t\t\t// Draw the batch of textured triangles\n\t\t\tgl.glColor4f(Color.red(mColour) / 255.0f,\n\t\t\t\t\t\t Color.green(mColour) / 255.0f,\n\t\t\t\t\t\t Color.blue(mColour) / 255.0f,\n\t\t\t\t\t\t Color.alpha(mColour) / 255.0f);\n\t\t\t\n\t\t\tif (mTextureID != 0) {\n\t\t\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);\n\t\t\t\tgl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(textureCoords));\n\t\t\t}\n\t\t\t\n\t\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(vertices));\n\t\t\tgl.glDrawElements(GL10.GL_TRIANGLES, indices.length,\n\t\t\t\t\tGL10.GL_UNSIGNED_SHORT, GameGraphics.getShortBuffer(indices));\n\t\t}", "private void draw(){\n\t\t\t Point level = new Point(txtBoard_top_left.x, txtBoard_top_left.y);\n\t\t\t level_info = new TextInfo(g, level, txt_width, size*4, LEVEL, this.level);\n\t\t\t level_info.drawTextInfo();\n\t\t\t \n\t\t\t // draw 2nd text info\n\t\t\t Point lines = new Point(level.x, level.y+size*2);\n\t\t\t lines_info = new TextInfo(g, lines, txt_width, size*4, LINES, this.lines);\n\t\t\t lines_info.drawTextInfo();\n\t\t\t \n\t\t\t // draw 3rd text info\n\t\t\t Point score = new Point(lines.x, lines.y+size*2);\n\t\t\t score_info = new TextInfo(g, score, txt_width, size*4, SCORE, this.score);\n\t\t\t score_info.drawTextInfo();\t\t\n\t\t}", "@Override\n\tpublic void render(GameContainer gc, Graphics g) {\n\t\tfloat x = getX(), y = getY(), width = getWidth(), height = getHeight();\n\t\tg.setColor(new Color(0.5f, 0.5f, 0.5f, 0.8f));\n\t\tg.fillRoundRect(x, y, width, height, 5);\n\t\t\n\t\tg.setColor(Color.black);\n\t\tg.drawString(\"Map needs to be drawn below\", x + (width - g.getFont().getWidth(\"Map needs to be drawn below\")) * 0.5f , y + 20);\n\t\tg.drawString(\"Orange - current cell\", x + 20, y + 50);\n\t\tg.drawString(\"Green - explored cell\", x + 20, y + 70);\n\t\tg.drawString(\"White - unexplored cell\", x + 20, y + 90);\n\t\tg.drawString(\"Line - connection\", x + 20, y + 110);\n\t\tg.drawString(\"Dot - contains item\", x + 20, y + 130);\n\t\t\n\t\tg.setColor(Color.orange);\n\t\tg.fillRoundRect(x + width/2 - 3, y + height/2 - 3, 46, 46, 5);\n\t\t\n\t\tg.setColor(Color.green);\n\t\tg.fillRoundRect(x + width/2 - 3 + 50, y + height/2 - 3, 46, 46, 5);\n\t\tg.fillRoundRect(x + width/2 - 3 + 100, y + height/2 - 3, 46, 46, 5);\n\t\t\n\t\tg.setColor(Color.white);\n\t\tg.fillRoundRect(x + width/2 - 3 + 100, y + height/2 - 3 + 50, 46, 46, 5);\n\t\t\n\t\tg.setColor(Color.darkGray);\n\t\tg.fillRoundRect(x + width/2, y + height/2, 40, 40, 5);\n\t\tg.fillRoundRect(x + width/2 + 50, y + height/2, 40, 40, 5);\n\t\tg.fillRoundRect(x + width/2 + 100, y + height/2, 40, 40, 5);\n\t\tg.fillRoundRect(x + width/2 + 100, y + height/2 + 50, 40, 40, 5);\n\t\t\n\t\tg.drawLine(x + width/2 + 40, y + height/2 + 20, x + width/2 + 50, y + height/2 + 20);\n\t\tg.drawLine(x + width/2 + 40 + 50, y + height/2 + 20, x + width/2 + 50 + 50, y + height/2 + 20);\n\t\tg.drawLine(x + width/2 + 120, y + height/2 + 40, x + width/2 +\t120, y + height/2 + 50);\n\t\t\n\n g.setColor(Color.cyan);\n g.fillOval(x + width/2 - 3 + 120, y + height/2 + 17, 6, 6);\n\t\t\n\t}", "public void paintOn(int x, int y, Screen screen) {\n\t\tstart = new Point(x, y);\n\t\tfor (int i = 0; x <= start.x + screen.getBoard()[0].length; x++) {\n\t\t\tif (screen.isValid(x, start.y))\n\t\t\t\tif (indexIsValid(i))\n\t\t\t\t\tscreen.paintAt(x, start.y, this.text.charAt(i));\n\t\t\ti++;\n\t\t}\n\t}", "@Override\r\n protected void paintChildren(Graphics g) {\n ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, \r\n RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\r\n super.paintChildren(g);\r\n }" ]
[ "0.6658745", "0.6547148", "0.6515815", "0.64729714", "0.64443815", "0.6361403", "0.632005", "0.62867004", "0.6271745", "0.6242199", "0.62169725", "0.6215647", "0.6196041", "0.6181473", "0.6154363", "0.61170346", "0.61029226", "0.6088035", "0.6075837", "0.6071251", "0.60531074", "0.6043914", "0.6030651", "0.60297394", "0.6028385", "0.6019609", "0.6004094", "0.6003196", "0.59844613", "0.59705174", "0.59510803", "0.5947795", "0.5945447", "0.5942007", "0.5941617", "0.5934841", "0.5928019", "0.58993125", "0.5897759", "0.58942693", "0.5887317", "0.5883626", "0.5871928", "0.58676666", "0.5862684", "0.5860328", "0.5860328", "0.5860328", "0.5857889", "0.5848692", "0.5836759", "0.58328104", "0.5831765", "0.5813622", "0.5801955", "0.58011717", "0.5788033", "0.578689", "0.57815576", "0.577765", "0.57744384", "0.577256", "0.5769234", "0.5759413", "0.5758509", "0.5754871", "0.5742038", "0.5736179", "0.5731478", "0.5731194", "0.57276446", "0.5721007", "0.57048285", "0.56959724", "0.56956744", "0.5692566", "0.5691323", "0.5690779", "0.5687757", "0.56792873", "0.5678964", "0.56735504", "0.56679755", "0.5654261", "0.5651003", "0.56488955", "0.5644835", "0.5642407", "0.56323016", "0.56267333", "0.5625636", "0.5623367", "0.56197196", "0.56177044", "0.5615902", "0.5612829", "0.56120485", "0.5605037", "0.5603634", "0.5602816", "0.55994153" ]
0.0
-1
This is previous page_terms
public List<PageNode> getPages() { return page_terms; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void previousPage() throws IndexOutOfBoundsException;", "private void prevPage()\n {\n if(currentPage - 1 >= 1)\n {\n nextPageButton.setEnabled(true);\n if(currentPage -2 < 1)\n prevPageButton.setEnabled(false);\n \n paginate(--currentPage, getResultsPerPage());\n updatePageLabel(currentPage, maxPage);\n }\n }", "public void previousPage() {\n\t\tthis.skipEntries -= NUM_PER_PAGE;\n\t\tif (this.skipEntries < 1) {\n\t\t\tskipEntries = 1;\n\t\t}\n\t\tloadEntries();\n\t}", "private Token previous() {\n return tokens.get(current-1);\n }", "private void previousButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n if(this.page == 0){\n Warning.run(\"No previous page here.\");\n }\n else{\n this.page--;\n this.update();\n }\n }", "protected ActionForward previousPage( UserRequest request )\n {\n int pageNumber = request.getParameterAsInt( PAGE_KEY, 2 );\n HttpServletRequest req = request.getRequest();\n req.setAttribute( PAGE_KEY, \"\"+ --pageNumber );\n return request.getMapping().findForward( PAGE_KEY + pageNumber );\n }", "public String returnToPreviousPage() {\n if (datasetVersion.isDraft()) {\n return \"/dataset.xhtml?persistentId=\" +\n datasetVersion.getDataset().getGlobalId().asString() + \"&version=DRAFT&faces-redirect=true\";\n }\n return \"/dataset.xhtml?persistentId=\"\n + datasetVersion.getDataset().getGlobalId().asString()\n + \"&faces-redirect=true&version=\"\n + datasetVersion.getVersionNumber() + \".\" + datasetVersion.getMinorVersionNumber();\n }", "protected void showPreviousPage() {\n\t\tshowPage(currPageIndex - 1, Direction.BACKWARD);\n\n\t}", "@Override\r\n\tpublic String prev() {\n\t\tString pre;\r\n\r\n\t\tpre = p.getPrev();\r\n\r\n\t\tif (pre != null) {\r\n\t\t\tthisPrevious = true;\r\n\t\t\tinput(pre);\r\n\t\t}\r\n\t\treturn pre;\r\n\t}", "public TeacherPage clickPreviousPageButton() {\n previousPage.click();\n return this;\n }", "public void previous();", "public IWizardPage getPreviousPage();", "@Override\n\tpublic boolean hasPreviousPage() {\n\t\treturn false;\n\t}", "public void prev();", "public void Prev();", "String getPrevious();", "public Content getNavLinkPrevious() {\n Content li;\n if (prev != null) {\n Content prevLink = getLink(new LinkInfoImpl(configuration,\n LinkInfoImpl.Kind.CLASS, prev)\n .label(prevclassLabel).strong(true));\n li = HtmlTree.LI(prevLink);\n }\n else\n li = HtmlTree.LI(prevclassLabel);\n return li;\n }", "public static Result prev() {\r\n\t\tMap<String, String> requestData = Form.form().bindFromRequest().data();\r\n\t\tString idCurrentNode = requestData.get(RequestParams.CURRENT_NODE);\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tString username = CMSSession.getEmployeeName();\r\n\r\n\t\tDecision previousDecision = CMSGuidedFormFill.getPreviousDecision(\r\n\t\t\t\tformName, username, idCurrentNode);\r\n\r\n\t\treturn ok(backdrop.render(previousDecision));\r\n\t}", "boolean hasPreviousPage();", "@Override\n\tpublic Menu previousMenu() {\n\t\treturn prevMenu;\n\t}", "@Override\n\tpublic Pageable previousPageable() {\n\t\treturn null;\n\t}", "public Pageable previousOrFirst() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public String previousNoticesPage() {\n logger.debug(\"Previous page of Marriage notices search list loaded\");\n noOfRows = appParametersDAO.getIntParameter(MR_APPROVAL_ROWS_PER_PAGE);\n pageNo = printStart / noOfRows;\n\n filterAndLoadMarriageNotices();\n\n printStart -= noOfRows;\n populateBasicLists();\n showNoticeSearchResultSize();\n return SUCCESS;\n }", "private void backPage()\n {\n page--;\n open();\n }", "public void previousSlide() {\r\n\t\tpresentation.prevSlide();\r\n\t}", "public String getPreviousToken() {\n return previousToken;\n }", "public void setPreviousPage(IWizardPage page);", "public void previous() {\n if (hasPrevious()) {\n setPosition(position - 1);\n }\n }", "public static void previous() {\n\t\tsendMessage(PREVIOUS_COMMAND);\n\t}", "public\tString\tgetPreviousSignature() {\n\t\t\treturn\tthis.prevSignature;\n\t\t}", "private String doGoBack( HttpServletRequest request )\r\n {\r\n String strJspBack = request.getParameter( StockConstants.MARK_JSP_BACK );\r\n\r\n return StringUtils.isNotBlank( strJspBack ) ? ( AppPathService.getBaseUrl( request ) + strJspBack )\r\n : ( AppPathService.getBaseUrl( request ) + JSP_MANAGE_CATEGORYS );\r\n }", "public Token getPreviousToken() {\n return previousToken;\n }", "public void setPrev(String prev){\n\t\tthis.prev = prev;\n\t}", "public PrevPage getPP(){\r\n\t\treturn ppage;\r\n\t}", "public void setPreviousPage(MouseEvent event) {\n\t\tm_previousPage = event;\n\t}", "Object previous();", "public java.lang.String getPreviousMedicalCategorisatrion () {\n\t\treturn previousMedicalCategorisatrion;\n\t}", "public T previous()\n {\n // TODO: implement this method\n return null;\n }", "public void back() {\n //noinspection ResultOfMethodCallIgnored\n previous();\n }", "private void displayPrevious() {\n SharedPreferences filterSetting = getSharedPreferences(\"filterSetting\",0);\n myMostRecentWeekCheckbox.setChecked(filterSetting.getBoolean(\"myMostRecent\",false));\n myDisplayAllCheckbox.setChecked(filterSetting.getBoolean(\"myDisplayAll\",false));\n foMostRecentWeekCheckbox.setChecked(filterSetting.getBoolean(\"foMostRecent\",false));\n foDisplayAllCheckbox.setChecked(filterSetting.getBoolean(\"foDisplayAll\",false));\n myReasonEditText.setText(filterSetting.getString(\"myReason\",null));\n foReasonEditText.setText(filterSetting.getString(\"foReason\",null));\n int mySpinner = filterSetting.getInt(\"mySpinner\",0);\n if (mySpinner != 0){\n myEmotionalStateSpinner.setSelection(mySpinner);\n }\n int foSpinner = filterSetting.getInt(\"foSpinner\",0);\n if (foSpinner != 0){\n foEmotionalStateSpinner.setSelection(foSpinner);\n }\n }", "@Override\r\n\t\tpublic boolean hasPrevious() {\n\t\t\treturn false;\r\n\t\t}", "public node getPrevious() {\n\t\t\treturn previous;\n\t\t}", "private void previousQuestion() {\n if (mCurrentIndex > 0) {\n mCurrentIndex = (mCurrentIndex - 1) % questions.length;\n }\n else\n mCurrentIndex = questions.length - 1;\n int question = questions[mCurrentIndex].getTextResId();\n mText.setText(question);\n }", "public boolean isPreviousPage() {\n return previousPage;\n }", "public void prevSlide() {\n\t\tif (currentSlideNumber > 0) {\n\t\t\tsetSlideNumber(currentSlideNumber - 1);\n\t }\n\t}", "private void prevHistoryEntry()\n {\n if (this.historyPos > 0) {\n this.historyPos--;\n this.textInput.setText(this.history.get(this.historyPos));\n this.textInput.setSelection(this.history.get(this.historyPos).length());\n }\n }", "public E previousStep() {\r\n\t\tthis.current = this.values[Math.max(this.current.ordinal() - 1, 0)];\r\n\t\treturn this.current;\r\n\t}", "public void setPreviousMedicalCategorisatrion (java.lang.String previousMedicalCategorisatrion) {\n\t\tthis.previousMedicalCategorisatrion = previousMedicalCategorisatrion;\n\t}", "private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }", "protected JButton getPrevious()\n {\n return previous;\n }", "public boolean hasPrevious()\n {\n // TODO: implement this method\n return false;\n }", "public ExtremeEntry previous() {\n\n\t\tsetLastReturned(getLastReturned().getPrevious());\n//\t\tnextIndex--;\n\t\tcheckForComodification();\n\t\treturn getLastReturned();\n\t}", "public boolean hasPrevious() {\n return getPage() > 0;\n }", "public Node getPrev() {\n return null;\n }", "public void previous()\n {\n if (size != 0)\n {\n current = current.previous();\n }\n\n }", "public Page getPrevPageObject() {\n return getPageObject(this.currentIndex.viewIndex - 1);\n }", "public boolean hasPrevious() {\n\t\t\t\treturn false;\r\n\t\t\t}", "@Nullable\n WizardPage flipToPrevious();", "public Node getPrevious() {\n return previous;\n }", "public ListElement getPrevious()\n\t {\n\t return this.previous;\n\t }", "@Override\n\t\tpublic int previousIndex() {\n\t\t\treturn 0;\n\t\t}", "public MyNode<? super E> getPrevious()\n\t{\n\t\treturn this.previous;\n\t}", "private void displayPrevious() {\r\n\t\ti--;\r\n\t\tdisplayCurrentPicture();\r\n\t}", "public int previousIndex() {\r\n \treturn index - 1; \r\n }", "@Override\r\n\tpublic void beforeNavigateBack(WebDriver arg0) {\n\t\t\r\n\t}", "public void previous() {\n if (highlight.getMatchCount() > 0) {\n Point point = highlight.getPreviousMatch(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n return;\n }\n Point point = file.getPreviousModifiedPoint(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n }", "boolean isPreviousButtonDisabled() {\r\n\t\treturn prevPage.isDisabled();\r\n\t}", "@Override\n public int previousIndex()\n {\n return idx-1;\n }", "public void previousBtnClicked(View v){\n\t\tresetSelection();\r\n\t\tnextQuestion(-1);\r\n\t\tshowQuesAndAnswers();\r\n\t}", "@Override\r\n\t\tpublic E previous() {\n\t\t\tcaret = caret.prev();\r\n\t\t\tif (caret == null)\r\n\t\t\t\tthrow new NoSuchElementException();\r\n\t\t\tnextIndex--;\r\n\t\t\treturn caret.n.data[caret.idx];\r\n\t\t}", "public Version getPrev(){\n\t\treturn prev;\n\t}", "K previous();", "public DependencyElement previous() {\n\t\treturn prev;\n\t}", "public String getPrevDate() \n\t{\n\t\tm_calendar.set (Calendar.DAY_OF_MONTH, getDayOfMonth() -1);\n\t\treturn getTodayDate();\n\t}", "@JsonProperty(\"previous_sibling\")\n @ApiModelProperty(value = \"The previous dialog node.\")\n public String getPreviousSibling() {\n return previousSibling;\n }", "public DoubleNode<T> getPrevious()\n {\n\n return previous;\n }", "@Override\n public final char previous() {\n if (--index >= lower) {\n return text.charAt(index);\n }\n index = lower;\n return DONE;\n }", "public PrevPageAbstract getPPAbst(){\r\n\t\treturn ppagea;\r\n\t}", "protected String getPageNavigation()\n {\n return \"\";\n }", "public DSAGraphNode<E> getPrevious()\n {\n return previous;\n }", "public SlideNode getPrev() {\n\t\treturn prev;\n\t}", "public Node getPrev()\r\n\t{\r\n\t\treturn prev;\r\n\t}", "@Override\n\tpublic void beforeNavigateBack(WebDriver arg0) {\n\n\t}", "public void previousSolution() {\r\n\t\tif (solutionIndex > 0) {\r\n\t\t\tsolutionIndex--;\r\n\t\t\tcreateObjectDiagram(solutions.get(solutionIndex));\r\n\t\t} else {\r\n\t\t\tLOG.info(LogMessages.pagingFirst);\r\n\t\t}\r\n\t}", "public Node getPrev()\n {\n return this.prev;\n }", "public void inputPrev() {\n --this.currentIndex;\n this.currentUnit = getUnit(this.currentIndex);\n this.currentChName = this.currentUnit.chName;\n }", "public Node getPrev() {\n return prev;\n }", "public void setPreviousPage(boolean value) {\n this.previousPage = value;\n }", "private void previousButtonMouseClicked(java.awt.event.MouseEvent evt) {\n if(previousButton.isEnabled() == false || checkUpdateInventoryError() == true) return;\n recordChanged();\n current --;\n displayCurrentStock();\n }", "@Override\r\n public int previousIndex() {\r\n if (previous == null) {\r\n return -1;\r\n }\r\n return previousIndex;\r\n }", "public ListElement<T> getPrev()\n\t{\n\t\treturn prev;\n\t}", "public void setPrev(Level previous) {\n\t\tthis.prev = previous;\n\t}", "public int previousIndex()\n {\n // TODO: implement this method\n return -1;\n }", "public void setPrevious(MyNode<? super E> _previous)\n\t{\n\t\tthis.previous = _previous;\n\t\t//this.previous = _previous;\n\t}", "void previous() throws NoSuchRecordException;", "public void outputPrev() {\n --this.currentIndex;\n this.currentChName = this.operOutHeaders.get(this.currentIndex);\n }", "private final int internalPrev(int n) {\n if (n == 0 || n == -1 || this.backwardsTrie == null) {\n return n;\n }\n resetState();\n while (n != -1 && n != 0 && breakExceptionAt(n)) {\n n = this.delegate.previous();\n }\n return n;\n }", "public void returnToPrevious(View v) {\n }", "void prevSet(Entry e) {\r\n\t\t\tprev = e;\r\n\t\t}", "public int getTermIndex() {return termIndex;}", "public int getPrevious() {\n\t\treturn this.previous;\n\t}" ]
[ "0.6087295", "0.6076642", "0.6061875", "0.59544975", "0.5936211", "0.5909506", "0.58590496", "0.5857581", "0.5810854", "0.5803336", "0.5748241", "0.57017356", "0.5697384", "0.5674848", "0.5652355", "0.5630291", "0.5614658", "0.56139165", "0.55801034", "0.5557516", "0.55568814", "0.554225", "0.55319333", "0.5516494", "0.55102205", "0.55023843", "0.5470388", "0.5465675", "0.5438397", "0.54291826", "0.5428068", "0.5395186", "0.53943783", "0.53820735", "0.5379652", "0.5374792", "0.5348994", "0.5348942", "0.53476167", "0.53450775", "0.5343294", "0.53396416", "0.5328351", "0.5318028", "0.5307224", "0.53021806", "0.52815604", "0.527994", "0.5276653", "0.5273508", "0.5269551", "0.52683794", "0.5252404", "0.5247659", "0.5232782", "0.5217079", "0.521176", "0.52109736", "0.51928097", "0.5182704", "0.51641035", "0.51408064", "0.5129848", "0.5118431", "0.51180977", "0.510898", "0.5100693", "0.5099196", "0.50856936", "0.50842935", "0.5074339", "0.50728816", "0.5069772", "0.5065226", "0.506324", "0.5059662", "0.50433093", "0.5032398", "0.5031438", "0.5028718", "0.5028384", "0.5028001", "0.50155824", "0.50145465", "0.50126344", "0.50120044", "0.5010624", "0.5005631", "0.500083", "0.49979347", "0.4997509", "0.4983592", "0.49735016", "0.4971805", "0.49687737", "0.4956057", "0.49392682", "0.49385047", "0.49380213", "0.49194863", "0.49146485" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { for(int count = 1 ; count <=3 ; ++count) { System.out.print(count+"★★★★");//요자리 요거 대신에 13~15행의 내용?? System.out.println(); } for( int col = 1; col <=4 ; col++ ) { System.out.print('★'); } System.out.println("///////////"); for(int count = 1 ; count <=3 ; ++count) { for(int col = 1 ; count <=4 ; col++) { System.out.print('★'); } System.out.println(); } }
{ "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
Methods for LOGIN MODULE
@RequestMapping(value = "/user/loginForm", method = RequestMethod.GET) public ModelAndView loginForm(HttpServletRequest request) { log.debug("User login"); String communityId = "-1"; ModelAndView model=new ModelAndView("form/login","command",new User()); model.addObject("selectedCommunity", communityId); return model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void login() {\n\t\t\r\n\t}", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void login() {\n\r\n\t}", "Login() { \n }", "public void LogIn() {\n\t\t\r\n\t}", "private void login(String username,String password){\n\n }", "private LogIn() {}", "void login(String user, String password);", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "public void doLogin() {\r\n\t\tif(this.getUserName()!=null && this.getPassword()!=null) {\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"Select idUser,nom,prenom,userName,type,tel from t_user where userName=? and pass=? and status=?\");\r\n\t\t\t\tps.setString(1, this.getUserName());\r\n\t\t\t\tps.setString(2, this.getPassword());\r\n\t\t\t\tif(rs.next()) {\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"idUser\", rs.getInt(\"idUser\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"nom\", rs.getString(\"nom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"prenom\", rs.getString(\"prenom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"userName\", rs.getString(\"userName\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"type\", rs.getString(\"type\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"tel\", rs.getString(\"tel\"));\r\n\t\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"view/welcome.xhtml\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tnew Message().error(\"echec de connexion\");\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tnew Message().warnig(\"Nom d'utilisateur ou mot de passe incorrecte\");\r\n\t\t}\r\n\t}", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "public abstract void login(String userName, String password) throws RemoteException;", "public boolean login(String X_Username, String X_Password){\n return true;\n //call the function to get_role;\n //return false;\n \n \n }", "public void StartLogIn(){\n\t}", "@Override\r\n\tpublic void MemberLogin() {\n\r\n\t}", "public boolean loginUser();", "private void loadLogin(){\n }", "public Login() {\r\n\t\tinitialize();\r\n\t}", "@Override \n public void commandLogin(String userName, String password)\n {\n }", "public abstract boolean showLogin();", "public Login() {\n initComponents();\n KiemTraKN();\n }", "void successLogin();", "@Override\n\tpublic boolean managerLogin(Context ctx) {\n\t\tString username = ctx.formParam(\"username\");\n\t\tString password = ctx.formParam(\"password\");\n\t\tboolean result = authService.managerLogIn(username, password);\n\t\treturn result;\n\t}", "protected Response login() {\n return login(\"\");\n }", "Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }", "public abstract User login(User data);", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "@Override\n\tpublic synchronized String login(String username, String password) throws HFModuleException {\n\t\tLog.d(\"HFModuleManager\", \"login\");\n\t\t\n\t\tUserLoginPayload payload = new UserLoginPayload();\n\t\tpayload.setAccessKey(HFConfigration.accessKey);\n\t\tpayload.setUserName(username);\n\t\tpayload.setPassword(password);\n\t\tpayload.setMac(getMacAddress());\n\t\tpayload.setClientName(android.os.Build.MANUFACTURER);\n\t\t\n\t\tUserLoginRequest request = new UserLoginRequest();\n\t\trequest.setPayload(payload);\n\t\t\n\t\ttry {\n\t\t\tUserIdResponse response = cloudSecurityManager.login(request);\n\t\t\t\n\t\t\t\n\t\t\t//[should remove these code later]\n\t\t\tthis.setSid(response.getSessionId());\n\t\t\tHFLocalSaveHelper.getInstence().getMainUserInfoHelper()\n\t\t\t\t\t.setUserName(HFConfigration.cloudUserName);\n\t\t\tHFLocalSaveHelper.getInstence().getMainUserInfoHelper()\n\t\t\t\t\t.setPswd(HFConfigration.cloudPassword);\n\t\t\tHFLocalSaveHelper.getInstence().setAccesskey(\n\t\t\t\t\tHFConfigration.accessKey);\n\t\t\tHFLocalSaveHelper.getInstence().setIsregisted(true);\n\t\t\tManagerFactory.getManager(context, IHFSFManager.class).syncRemoteModuleInfo(\n\t\t\t\t\tnew SyncModuleEventListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onSyncSuccess() {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tnotifyLoginEvent(true);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onSyncErr() {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tnotifyLoginEvent(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t//[should remove these code later] the end \n\t\t\t\n\t\t\tString sessionId = response.getSessionId();\n\t\t\tString userId = response.getPayload().getUserId();\n\t\t\t\n\t\t\tUserInfo userInfo;\n\t\t\twhile ((userInfo = userInfoDao.getActiveUserInfo()) != null) {\n\t\t\t\tuserInfo.setActive(false);\n\t\t\t\tuserInfoDao.saveUserInfo(userInfo);\n\t\t\t}\n\t\t\t\n\t\t\tuserInfo = userInfoDao.getUserInfo(userId);\n\t\t\tif (userInfo == null) {\n\t\t\t\tuserInfo = new UserInfo();\n\t\t\t\tuserInfo.setUserId(userId);\n\t\t\t}\n\t\t\tuserInfo.setUserName(username);\n\t\t\tuserInfo.setPassword(password);\n\t\t\tuserInfo.setToken(sessionId);\n\t\t\tuserInfo.setTokenExpiredTime(System.currentTimeMillis() + UserInfo.TOKEN_EXPIRED_TIME);\n\t\t\tuserInfo.setActive(true);\n\t\t\tuserInfo.setAccessKey(payload.getAccessKey());\n\t\t\tuserInfoDao.saveUserInfo(userInfo);\n\t\t\t\n\t\t\treturn sessionId;\n\t\t} catch (CloudException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t\tthrow new HFModuleException(e1.getErrorCode(), e1.getMessage());\n\t\t}\n\t}", "private void loggedInUser() {\n\t\t\n\t}", "private void loginSuccess(String uname) {\n }", "protected boolean login() {\n\t\tString Id = id.getText();\n\t\tif (id.equals(\"\")){\n\t\t\tJOptionPane.showMessageDialog(null, \"请输入用户名!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tUserVO user = bl.findUser(Id);\n\t\tif (user == null){\n\t\t\tJOptionPane.showMessageDialog(null, \"该用户不存在!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (! user.getPassword().equals(String.valueOf(key.getPassword()))){\n\t\t\tSystem.out.println(user.getPassword());\n\t\t\tJOptionPane.showMessageDialog(null, \"密码错误!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tsimpleLoginPanel.this.setVisible(false);\n\t\tUserblService user2 = new Userbl(Id);\n\t\tReceiptsblService bl = new Receiptsbl(user2);\n\t\tClient.frame.add(new simpleMainPanel(user2,bl));\n\t\tClient.frame.repaint();\n\t\t\n\t\treturn true;\n\t\t\n\t}", "public login() {\r\n\t\tsuper();\r\n\t}", "void loginDone();", "public login() {\n initComponents();\n \n \n }", "public User logInUser(final String login, final String password);", "public final void login() {\n Activity_ExtensionKt.hideSoftKeyboard(this);\n if (hasAllRequiredField()) {\n EditText editText = (EditText) _$_findCachedViewById(C2723R.C2726id.etUserName);\n Intrinsics.checkExpressionValueIsNotNull(editText, \"etUserName\");\n String obj = editText.getText().toString();\n if (obj != null) {\n this.username = StringsKt.trim((CharSequence) obj).toString();\n EditText editText2 = (EditText) _$_findCachedViewById(C2723R.C2726id.etPassword);\n Intrinsics.checkExpressionValueIsNotNull(editText2, \"etPassword\");\n String obj2 = editText2.getText().toString();\n if (obj2 != null) {\n this.password = StringsKt.trim((CharSequence) obj2).toString();\n LoginViewModel loginViewModel = this.viewModel;\n if (loginViewModel == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"viewModel\");\n }\n EditText editText3 = (EditText) _$_findCachedViewById(C2723R.C2726id.etUserName);\n Intrinsics.checkExpressionValueIsNotNull(editText3, \"etUserName\");\n String obj3 = editText3.getText().toString();\n EditText editText4 = (EditText) _$_findCachedViewById(C2723R.C2726id.etPassword);\n Intrinsics.checkExpressionValueIsNotNull(editText4, \"etPassword\");\n loginViewModel.login(obj3, editText4.getText().toString());\n return;\n }\n throw new TypeCastException(\"null cannot be cast to non-null type kotlin.CharSequence\");\n }\n throw new TypeCastException(\"null cannot be cast to non-null type kotlin.CharSequence\");\n }\n }", "public abstract boolean login(String email, String passwaord) throws CouponSystemException;", "@Override\n\tpublic ResultMessage login(String user_name, String password) throws RemoteException{\n\t\treturn null;\n\t}", "void loginAttempt(String email, String password);", "public Person login(String username, String password);", "public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}", "int authenticateUser(IDAOSession session, String userName, String password);", "public String accionLogin(){\n\t\t\r\n\t\tlog.info(\"Ingreso hacer login del usuario!!! \");\r\n\t\tString retorno = null;\r\n\t\ttry {\r\n\t\t\tString pass = new CriptPassword().getHashSH1(loginBaking.getUserBean().getPass());\r\n\t\t\tUser u = ejbMangerUser.login(loginBaking.getUserBean().getNick(), pass);\r\n\t\t\tloginBaking.setUserBean(u);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tList<Network> listNetwork = ejbNetwork.listNetwork();\r\n\t\t\tHttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n\t\t\tsession.setAttribute(\"listaNetwork\", listNetwork);\r\n\t\t\t\r\n\t\t\tretorno = \"site/home\";\r\n\t\t} catch (InSideException ex) {\r\n\t\t\tlog.error(ex.getKeyMSGError());\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage (FacesMessage.SEVERITY_ERROR, \r\n\t\t\t\t\t\tBundleUtil.getMessageResource(ex.getKeyMSGError()), \r\n\t\t\t\t\t\tBundleUtil.getMessageResource(ex.getKeyMSGError())));\r\n\t\t}\r\n\t\tlog.debug(\"Pagina de redireccion --->> \" + retorno);\r\n\t\tlog.info(\"fin de Login!!!\");\r\n\t\treturn retorno;\r\n\t}", "private void _login() throws SessionException {\n\n \n String servergroup = (String) this._argTable.get(CMD.SERVERGROUP);\n String filetype = (String) this._argTable.get(CMD.FILETYPE);\n String user = (String) this._argTable.get(CMD.USER);\n String password = (String) this._argTable.get(CMD.PASSWORD);\n this._client = new Client(this._domainFile);\n \n //if (servergroup == null) {\n // servergroup = this._client.getDefaultGroup();\n // if (servergroup != null)\n // this._argTable.put(CMD.SERVERGROUP, servergroup);\n //}\n if (servergroup != null)\n {\n if (!this._client.isGroupDefined(servergroup))\n throw new SessionException(\"Group \" + servergroup\n + \" not found in domain!\", Constants.DOMAINLOOKUPERR); \n }\n \n //if (servergroup != null && !l.contains(servergroup))\n // throw new SessionException(\"Group \" + servergroup\n // + \" not found in domain!\", Constants.DOMAINLOOKUPERR);\n if (filetype != null)\n {\n \t this._client.login(user, password, servergroup, filetype);\n }\n else\n {\n \t this._client.login(user, password);\n \t if (servergroup != null)\n \t this._client.setDefaultGroup(servergroup);\n }\n \n if (this._argTable.get(CMD.SERVERGROUP) == null)\n \t this._argTable.put(CMD.SERVERGROUP, \n \t this._client.getDefaultGroup());\n \n }", "public abstract void onLogin();", "@Override\r\n\t\t\tpublic void onLogin(String username, String password) {\n\r\n\t\t\t}", "public User login(String loginName, String password) throws UserBlockedException;", "@Override\r\n\tpublic void Login(DbInterface dbi) {\n\t\t\r\n\t}", "User login(String username, String password);", "public User doAuthentication(String account, String password);", "public interface login {\n\n void LoginUser(String Username, String Password);\n\n}", "@Override\r\n\tpublic user login(String name, String pwd) {\n\t\treturn userM.login(pwd,name);\r\n\t\t\r\n\t}", "private void userLogin(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "public Login() {\n inicializarUsuarios();\n }", "Login.Req getLoginReq();", "@Override\n\tpublic void goToLogin() {\n\t\t\n\t}", "@Action(value = \"userAction_login\", results = {\n\t\t\t@Result(name = \"login-error\", location = \"/login.jsp\"),\n\t\t\t@Result(name = \"login-ok\", type = \"redirect\", location = \"/index.jsp\"),\n\t\t\t@Result(name = \"login-params-error\", location = \"/login.jsp\") })\n\t@InputConfig(resultName = \"login-params-error\")\n\tpublic String login() {\n\t\tremoveSessionAttribute(\"key\");\n\t\ttry {\n\t\t\t// 1.获取subject对象\n\t\t\tSubject subject = SecurityUtils.getSubject();\n\t\t\t// 2.获取令牌对象(封装参数数据)\n\t\t\tUsernamePasswordToken token = new UsernamePasswordToken(\n\t\t\t\t\tmodel.getEmail(), model.getPassword());\n\t\t\tsubject.login(token);\n\t\t\treturn \"login-ok\";\n\t\t} catch (AuthenticationException e) {\n\t\t\te.printStackTrace();\n\t\t\tthis.addActionError(this.getText(\"login.emailorpassword.error\"));\n\t\t\treturn \"login-error\";\n\t\t}\n\t}", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "RequestResult loginRequest() throws Exception;", "public void login(User user);", "public String login() {\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\r\n System.out.println(\"Username: \" + email);\r\n System.out.println(\"Password: \" + password);\r\n try {\r\n //this method will actually check in the realm for the provided credentials\r\n request.login(this.email, this.password);\r\n\r\n } catch (ServletException e) {\r\n context.addMessage(null, new FacesMessage(\"Login failed.\"));\r\n return \"error\";\r\n }\r\n return \"/faces/users/index.xhtml\";\r\n }", "private void logIn() {\n char[] password = jPasswordField1.getPassword();\n String userCode = jTextField1.getText();\n\n String txtpassword = \"\";\n for (char pw : password) {\n txtpassword += pw;\n }\n if (\"\".equals(txtpassword)) {\n JOptionPane.showMessageDialog(this, textBundle.getTextBundle().getString(\"enterPassword\"), \"No Password\", JOptionPane.WARNING_MESSAGE);\n } else if (txtpassword.equals(userData.get(0).toString())) {\n jPasswordField2.setEnabled(true);\n jPasswordField3.setEnabled(true);\n jPasswordField2.setEditable(true);\n jPasswordField3.setEditable(true);\n jPasswordField2.grabFocus();\n }\n }", "@Override\n public boolean userLogin(String username, String password) \n {\n User tmpUser = null;\n tmpUser = getUser(username);\n if(tmpUser == null) return false;\n if(tmpUser.getPassword().equals(password)) return true;\n return false;\n }", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public abstract String getLoginName();", "@Override\n\tpublic boolean login(String username, String password) {\n\t\treturn true;\n\t}", "void login(String userName) throws IllegalArgumentException, IOException;", "public com.sun.jna.PointerType login(Credentials c) throws RelationException;", "public Integer logIn(String u_name, String u_pw){\n //find entry with u_name = this.u_name\n //probably not so safe\n //getting user with index 0 because getUserFromUsername returns List\n User user = userDao.getUserFromUsername(u_name).get(0);\n //print at console\n LOGGER.info(\"User: \" + user);\n //returns integer 1 if user.get_pw equals to this.pw or 0 if not\n if (user.getU_Pw().equals(u_pw)){\n return user.getU_Id();\n }else{\n return 0;\n }\n }", "@Test\r\n\tpublic void login() {\n\t\tUser loginExit = userMapper.login(\"wangxin\", \"123456\");\r\n\t\tif (loginExit == null) {\r\n\t\t\tSystem.out.println(\"用户不存在\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(loginExit);\r\n\t\t\tSystem.out.println(\"登录成功!\");\r\n\t\t}\r\n\t}", "public abstract boolean isLoginRequired();", "LoginContext login(String username, String password) throws LoginException;", "public void handleLogin() {\n\t\tString username = usernameInput.getText();\n\t\tString password = passwordInput.getText();\n\n\t\t// Saves username and password if remember me is ticked\n\t\t// otherwise it deletes the file.\n\t\tif (rememberMeCheckbox.isSelected()) {\n\t\t\twriteRememberMe(username, password);\n\t\t} else {\n\t\t\tclearRememberMe();\n\t\t}\n\n\n\t\ttryUsernamePassword(username, password);\n\t}", "boolean hasLogin();", "boolean hasLogin();", "public Login() {\n\t\tsuper();\n\t}", "public int logIn() {\n guestPresenter.printLogInMessage();\n int id = requestInt(\"id\");\n char[] password = requestString(\"password\").toCharArray();\n UserManager.UserType user = guestManager.logIn(id, password);\n\n if (user == null) {\n guestPresenter.logInFailure();\n return -1;\n } else {\n return id;\n }\n }", "public Page_Home doDefaultLogin() {\n\t\tLogStatus.info(\"Logging in with username :: \\'\" + TestUtils.getValue(\"username\") + \"\\' and password :: \\'\"\n\t\t\t\t+ TestUtils.getValue(\"password\") + \"\\'\");\n\t\tDriverManager.getDriver().findElement(By.name(\"username\")).sendKeys(TestUtils.getValue(\"username\"));\n\t\tDriverManager.getDriver().findElement(By.name(\"password\")).sendKeys(TestUtils.getValue(\"password\"));\n\t\tDriverManager.getDriver().findElement(By.id(\"Registration Desk\")).click();\n\t\tDriverManager.getDriver().findElement(By.id(\"loginButton\")).click();\n\n\t\treturn new Page_Home();\n\n\t}", "public int login() {\n\t\t\n\t\tString inId;\n\t\tint loginResult = -1;\n\t\tString inName;\n\t\tScanner scan = new Scanner(new FilterInputStream(System.in) {\n\t\t\t@Override\n\t\t\tpublic void close() {\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tSystem.out.println(\"Welcome\\n\");\n\t\t\n\t\twhile (true) {\n\t\t\tSystem.out.println(\"Please sign in\");\n\t\t\tSystem.out.print(\"ID\t: \");\t\t\n\t\t\tinId = scan.next();\n\t\t\t\n\t\t\tSystem.out.print(\"Name\t: \");\n\t\t\tinName = scan.next();\n\t\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tloginResult = dbc.login(inId, inName);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\t\n\t\t\tif (loginResult == 1 || loginResult == 2) {\n\t\t\t\tid = inId;\n\t\t\t\tname = inName;\n\t\t\t\tbreak;\n\t\t\t}\t\t\n\t\t\telse if (loginResult == -1) {\n\t\t\t\tSystem.out.println(\"Error in login query\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\telse if (loginResult == 0) {\n\t\t\t\tSystem.out.println(\"Wrong authentication\");\n\t\t\t}\n\t\t}\t\n\t\t\n\t\tscan.close();\n\t\t\n\t\treturn loginResult;\n\t}", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "private void signIn() {\n }", "public int login(String username, String password) \n {\n\treturn this.acctCtrl.login(username, password);\n\n }", "@Override\n\tpublic boolean login(String username, String password) {\n\t\treturn false;\n\t}", "public String login()\n\t{\n\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\tUsersBean userBean = new UsersBean();\n\t\ttry {\n//\t\t\tctx = new InitialContext(props);\n\t\t\t\n\t\t\t//userBean = (usersPersistentBean) ctx.lookup(\"usersPersistentBean\");\n\t\t\tUser attempting_user = new User();\n\t\t\tattempting_user.setUsername(getUsername());\n\t\t\tattempting_user.setPassword(getPassword());\n\t\t\tUser resultUser = userBean.getUser(attempting_user);\n\t\t\tif (resultUser.getUsername() != null)\n\t\t\t{\n\t\t\t\tsetIsAdmin(resultUser.isAdmin());\n\t\t\t\tsetUserId(resultUser.getUserId());\n\t\t\t\tsetLoginMessage(\"success\");\n\t\t\t\tcontext.getExternalContext().redirect(\"basicCalculator.xhtml\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsetLoginMessage(\"*Incorrect Username and password\");\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn getLoginMessage();\t\t\n\t}", "@Override\r\n\tprotected void onLoginSuccess() {\n\t\t\r\n\t}", "public void login() {\n\t\tloggedIn = true;\n\t}", "public Login() {\n initComponents();\n hideregister ();\n }", "@Override\n\tpublic boolean login(String username, String password) {\n\t\treturn userProviderService.login(username, password);\n\t}", "public String login() throws Exception {\n System.out.println(user);\n return \"toIndex\" ;\n }", "public String login() {\r\n String ruta = \"\";\r\n UsuarioDAO usuDAO = new UsuarioDAO();\r\n if (usuDAO.Login(this) != null) {\r\n ruta = FN.ruta(\"menu\");\r\n Empresa em = new Empresa();\r\n em.setEmpresa(\"2101895685\");\r\n em.setRazonSocial(\"Tibox SRL\");\r\n em.setDireccion(\"MiCasa\");\r\n SSU.sEmpresa(em);\r\n SSU.sUsuario(this);\r\n }\r\n return ruta;\r\n }", "@Override\n\tpublic boolean login(Map<String, Object> map) {\n\t\treturn false;\n\t}", "@Override\n \tpublic void clientLoggedIn(NetHandler clientHandler, INetworkManager manager, Packet1Login login)\n \t{\n \t}", "public UserLoginhandle() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void onLoginSuccess() {\n\t\t\n\t}", "@Request(opcode = OpCode.CSLogin)\n public RetPacket handlerLogin(Object clientData, Session session){\n return null;\n }", "public login() {\n initComponents();\n }", "public boolean login(){\r\n try{\r\n DbManager0 db = DbManager0.getInstance();\r\n Query q = db.createQuery(\"SELECT * FROM user WHERE username = '\"+this.login+\"' and password = '\"+this.pwd+\"';\");\r\n QueryResult rs = db.execute(q);\r\n rs.next();\r\n if(rs.wasNull()) return false;\r\n this.id = rs.getInt(\"id\")+\"\";\r\n return true;\r\n }\r\n catch(SQLException ex){\r\n throw new RuntimeException( ex.getMessage(), ex );\r\n }\r\n }", "public String login() {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n return \"/index?faces-redirect=true\";\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/pages/login.xhtml\";\n }" ]
[ "0.7940014", "0.79192984", "0.77405554", "0.7600756", "0.7579557", "0.7558272", "0.75383663", "0.7350786", "0.7341708", "0.73357123", "0.72461796", "0.7229644", "0.72250503", "0.72131", "0.7204095", "0.7199166", "0.7189963", "0.7151239", "0.711982", "0.71103436", "0.709917", "0.7081189", "0.70719874", "0.7059067", "0.7038387", "0.70375997", "0.7009034", "0.69918495", "0.6951971", "0.6951274", "0.69510996", "0.694747", "0.6899183", "0.68941253", "0.68577904", "0.68544537", "0.685275", "0.68446845", "0.68426216", "0.68400687", "0.6836442", "0.6835927", "0.6833096", "0.68297565", "0.6816513", "0.6794636", "0.677103", "0.67571986", "0.6752532", "0.6749496", "0.6745948", "0.6745245", "0.67430013", "0.67418975", "0.67416644", "0.6741328", "0.6730129", "0.6727497", "0.6721449", "0.6713592", "0.67109835", "0.67086446", "0.6701858", "0.66999096", "0.66921484", "0.6680158", "0.66797966", "0.66772544", "0.66745895", "0.66702026", "0.66681623", "0.6666631", "0.6664105", "0.66609627", "0.6658966", "0.6654932", "0.66546005", "0.66546005", "0.6643245", "0.66428727", "0.6639856", "0.6637664", "0.66350585", "0.66315395", "0.6627803", "0.66227156", "0.66139686", "0.66122025", "0.66077924", "0.66071165", "0.6604731", "0.6583015", "0.65776634", "0.6576721", "0.6575728", "0.65730464", "0.65701663", "0.6554594", "0.6554367", "0.65387267", "0.6536975" ]
0.0
-1
Methods for REGISTRATION MODULE
@RequestMapping(value = "/user/registrationForm", method = RequestMethod.GET) public ModelAndView registrationForm(HttpServletRequest request) { log.debug("User registration"); String communityId = "-1"; ModelAndView model=new ModelAndView("form/registration","command",new User()); model.addObject("selectedCommunity", communityId); return model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RegistrationModule createRegistrationModule();", "private reg1() {\n }", "public abstract void register();", "String regen();", "private void registToWX() {\n }", "void register();", "public void register(){\n }", "Registry getRegistry();", "Registry getRegistry();", "Registry getRegistry( );", "public static void registerISTERs() {\n\n\t}", "public UserRegistry getUserRegistry();", "public void register(RegistrationData d) {}", "static void register() {\n }", "protected void __register()\n {\n }", "protected void __register()\n {\n }", "protected void register(String data){\n }", "public interface RegistryFactory {\n\n /**\n * 连接注册中心.\n * \n * 连接注册中心需处理契约:<br>\n * 1. 当设置check=false时表示不检查连接,否则在连接不上时抛出异常。<br>\n * 2. 支持URL上的username:password权限认证。<br>\n * 3. 支持backup=10.20.153.10备选注册中心集群地址。<br>\n * 4. 支持file=registry.cache本地磁盘文件缓存。<br>\n * 5. 支持timeout=1000请求超时设置。<br>\n * 6. 支持session=60000会话超时或过期设置。<br>\n * \n * @param url 注册中心地址,不允许为空\n * @return 注册中心引用,总不返回空\n */\n Registry getRegistry(URL url);\n\n}", "@Override\n\tpublic void registrarLlegada() {\n\t\t\n\t}", "public RegistrationInfo getRegistrationInfo();", "@Override\n\tpublic void registrarLlegada() {\n\t}", "Register.Res getRegisterRes();", "RegistrationRule createRegistrationRule();", "void register(RegisterData data) throws Exception;", "private void register(String username,String password){\n\n }", "private Registry() {\n dbgLog.fine(\"Registry constructor is called\");\n }", "Registry getRequestRegistry();", "RegisterParam getRegister();", "public void beginRegister() {}", "protected void startRegActivity() {\n }", "@Override\n\tpublic void registrarSalida() {\n\t\t\n\t}", "@Override\n\tpublic void registrarSalida() {\n\t\t\n\t}", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "public Register() {\n\n this.literatureRegister = new ArrayList<>();\n }", "@Override\n\tpublic void registrarSalida() {\n\n\t}", "public void openRegister() {\n\n }", "public REGISTRARSE()\n {\n \t this.datos=new DATOS();\n }", "Registries createExtension();", "public interface RegistrationService {\n\n\t/**\n\t * Return the stored registration information.\n\t *\n\t * @return RegistrationInfo\n\t */\n\tpublic RegistrationInfo getRegistrationInfo();\n\t\n\t/**\n\t * Stores the registration information. <b>Note:</b> At least one course and an employment status must be chosen.\n\t * This validation is done prior to calling this method. It is done in the RegistrationServlet.doPost() method.\n\t *\n\t * @param name - name of the registrant\n\t * @param email - email of the registrant\n\t * @param courses - courses selected, at least one course is required\n\t * @param employmentStatus - employment status, this is required\n\t * @param hotel - hotel accommodation\n\t * @param parking - parking permit\n\t */\n\tpublic void setRegistrationInfo(String name,\n\t\t\t\t\t\t\t\t\tString email,\n\t\t\t\t\t\t\t\t\tList<String> courses,\n\t\t\t\t\t\t\t\t\tString employmentStatus,\n\t\t\t\t\t\t\t\t\tString hotel,\n\t\t\t\t\t\t\t\t\tString parking);\n\t/**\n\t * Returned the stored cost information.\n\t *\n\t * @return CostInfo\n\t */\n\tpublic CostInfo getCostInfo();\n\t\n\t/**\n\t * Removes a selected course.\n\t *\n\t * @param course - name of the course to remove\n\t */\n\tpublic void removeCourse(String course);\n\t\n\t/**\n\t * Return the courses as a String array.\n\t *\n\t * @return String[]\n\t */\n\tpublic String[] getCourses();\n}", "protected abstract void registerUser(Map<String, String> registrationInfo);", "public Boolean register(HttpServletRequest request) throws Exception;", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "public ErrorCode regist( String uname, String pass ){\n ErrorCode eCode = userBaseInfoManager.regist( uname, uname + \"nick\", pass );\n if( eCode.isSuccess() ) {\n User user = getUserByName( uname );\n initNewUser( user );\n }\n return eCode;\n }", "private RMIRegistrator() {\n\t// nothing\n }", "public static int register() {\n\t\treturn 0;\n\t}", "private FormulaExtensionProviderRegistry() {\n\t\t// Singleton implementation\n\t\tif (provider == null) {\n\t\t\tloadProvider();\n\t\t}\n\t}", "@Override\n protected Void doInBackground(Void... params) {\n ServerUtilities.register(context, name, email, regId);\n return null;\n }", "@Override\n\tpublic void registrarEntrada() {\n\n\t}", "private RegisterUser() {\n\n }", "public Register() {\n\t\tsuper();\n\t}", "public static void enableRegNotifications() {\n\t\t\n\t}", "public interface Registries {\n\n /***/\n ElementHandlerRegistry getElementHandlerRegistry();\n\n /***/\n AnnotationRegistry getAnnotationHandlerRegistry();\n\n /***/\n PainterRegistry getPaintRegistry();\n\n /**\n * Bundles up extension of each registry.\n */\n Registries createExtension();\n}", "public REG(Reg r) {\n\t\treg = r;\n\t}", "@Test\r\n\t public void registerBaseCase() {\n\t\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",50);\r\n\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t assertTrue(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2017));\r\n\t //this.student.hasSubmitted(\"gurender\", \"p1\", \"ecs60\", 2017);\r\n\t \r\n\t }", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "private static RegistryKey<World> register(String name){\n return RegistryKey.of(Registry.WORLD_KEY, new Identifier(Shurlin.MODID, name));\n }", "@SuppressWarnings(\"unchecked\")\npublic boolean register() throws Exception {\n\tArrayList<Member> members;\n\tmembers = (ArrayList<Member>)Utility.deserialize(\"members.ser\");\n\tif(members == null) {\n\t\tmembers = new ArrayList<Member>();\n\t}\n\tif(this.checkUserNameExists(members)== false) {\n\t\tmembers.add(this);\n\t\tUtility.serialize(members, \"members.ser\");\n\t\treturn true;\n\t}\n\telse {\n\t\treturn false;\n\t}\n}", "public interface IRegService {\n int regUser(String uerId);\n boolean userLogin(String userPassword,String username);\n}", "@Test\r\n\t public void register4() {\n\t\t \tthis.admin.createClass(\"ecs61\",2017,\"sean\",2);\r\n\t\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs61\", 2017));\r\n\t \r\n\t }", "public String mo56450e() {\n return \"registration\";\n }", "@Test\r\n\t public void register2() {\n\t\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2017));\r\n\t \r\n\t }", "@Test\r\n\t public void register1() {\n\t\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",50);\r\n\t \t\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2017));\r\n\t \r\n\t }", "public int register() \n { \n File file = new File(MSB_REGISTION_FILE);\n if(!file.exists()) \n {\n LOGGER.info(\"Stop registering as can't find msb registion file:\" + file.getAbsolutePath()); \n return CommonConstant.MsbRegisterCode.MSDB_REGISTER_FILE_NOT_EXISTS;\n }\n\n Map<?, ?> msbRegistionBodyMap = getMsbRegistrationData();\n if(null == msbRegistionBodyMap)\n {\n LOGGER.info(\"Reading data from msb registion file failed:\" + file.getAbsolutePath()); \n return CommonConstant.MsbRegisterCode.MSDB_REGISTER_FILE_NOT_EXISTS;\n }\n\n LOGGER.info(\"Registering body: \" + JsonUtil.toJson(msbRegistionBodyMap));\n\n bRegistrationStatus = sendRequest(msbRegistionBodyMap);\n \n return bRegistrationStatus \n ? CommonConstant.MsbRegisterCode.MSDB_REGISTER_SUCESS \n : CommonConstant.MsbRegisterCode.MSDB_REGISTER_FAILED;\n }", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "public void register (java.lang.String userClass, java.lang.String udtClass) { throw new RuntimeException(); }", "public void setReg2(String inMemoryEntry);", "@Override\n\tprotected void customizeRegistration(Dynamic registration) {\n\tsuper.customizeRegistration(registration);\n\t}", "abstract public String getRegNum();", "public void registerWithServer();", "@Override\r\n\tpublic void register() {\n\t\t\r\n\t}", "@Override\n public void run() {\n if (serverR.equals(available)){\n Log.d(TAG, \"run: REGISTERED SUCCESSFULLY\");\n\n } else {\n Log.d(TAG, \"run: REGISTRATION ERROR\");\n Toast.makeText(getApplicationContext(),\n \"Something went wrong.\", Toast.LENGTH_LONG).show();\n }\n }", "Registration(String u, char[] fPassword, char[] sPassword)\n\t{//constructor that initializes the variables above\n\t\tusername = u;\n\t\tfirstPassword = new String(fPassword);\n\t\tsecondPassword = new String(sPassword);\n\t}", "public boolean canRegister() {\n return true;\n }", "public static Result register(){\n Skier loggedInSkier=Session.register();\n if(loggedInSkier!=null) {\n login(loggedInSkier);\n return renderHome(loggedInSkier);\n }else\n return badRequest(index.render(\"Something went wrong!\"));\n }", "public boolean registerToServer() throws Exception{\n \t\n\t\t// On crée un objet container pour contenir nos donnée\n\t\t// On y ajoute un AdminStream de type Registration avec comme params le login et le mot de pass\n \tRegistrationRequest regRequest = new RegistrationRequest(login, pass);\n\t\ttry {\n\t\t\t// On tente d'envoyer les données\n\t\t\toos_active.writeObject(regRequest);\n\t\t\t// On tente de recevoir les données\n\t\t\tRegistrationResponse regResponse = (RegistrationResponse)ois_active.readObject();\n\n\t\t\t// On switch sur le type de retour que nous renvoie le serveur\n\t\t\t// !!!Le type enum \"Value\" est sujet à modification et va grandir en fonction de l'avance du projet!!!\n\t\t\tswitch(regResponse.getResponseType()){\n\t\t\tcase REG_ALREADY_EXISTS:\n\t\t\t\topResult = \"Error : User already exist!\";\n\t\t\t\treturn false;\n\t\t\tcase REG_LOGIN_BAD_FORMAT:\n\t\t\t\topResult = \"Error : login bad format!\";\n\t\t\t\treturn false;\n\t\t\tcase REG_PASS_BAD_FORMAT:\n\t\t\t\topResult = \"Error : password bad format!\";\n\t\t\t\treturn false;\n\t\t\tcase REG_SUCCESS:\n\t\t\t\topResult = \"Account registration succeed!\";\n\t\t\t\treturn true;\n\t\t\tcase REG_UNKNOW_ERROR:\n\t\t\t\topResult = \"Error : Unknown error!\";\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new ClientChatException (ClientChatException.IO_ERREUR, \"ERROR: Communication Error\");\n\t\t}\n\t\treturn false;\n }", "public IUser getRegistrator(){\n\t\treturn User.get().\n\t\t\t\tsetPerson(Person.get()\n\t\t\t\t\t\t.setFirstname(\"Regisytator\")\n\t\t\t\t\t\t.setLastname(\"Registrator\")\n\t\t\t\t\t\t.setEmail(\"rr@ukr.net\")\n\t\t\t\t\t\t.build()\n\t\t\t\t\t\t)\n\t\t\t\t.setAccount(Account.get()\n\t\t\t\t\t\t.setLogin(\"registrator\")\n\t\t\t\t\t\t.setPassword(\"registrator\")\n\t\t\t\t\t\t.setRole(\"REGISTRATOR\")\n\t\t\t\t\t\t.setStatus(\"ACTIVE\")\n\t\t\t\t\t\t.setCommunity(\"Україна\")\n\t\t\t\t\t\t.build()\n\t\t\t\t\t\t.setData(\"\")\n\t\t\t\t\t\t.setRegisterNumber(\"14\")\n\t\t\t\t\t\t.setRegistratorNumber(\"804:23:17:026:79000:\")\n\t\t\t\t\t\t.setVolumeNumber(\"12345\")\n\t\t\t\t\t\t)\n\t\t\t\t.build();\t\n\t}", "Register.Req getRegisterReq();", "public void initRMIBindings() {\n\tString name = null;\n\ttry {\n Configuration configuration=proxy.getConfiguration();\n if (configuration.accessLogViaRMI) {\n SipStack sipStack=proxy.getSipStack();\n Iterator it =sipStack.getListeningPoints();\n ListeningPoint lp = (ListeningPoint) it.next();\n String stackIPAddress = sipStack.getIPAddress();\n name = \"//\" + stackIPAddress + \":\" + 0 + \"/\" +\n sipStack.getStackName()\n + \"/\" + \"test.jainproxy.Registrar\";\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Exporting Registration Table \" + name);\n }\n Naming.rebind(name,this);\n }\n else {\n if (ProxyDebug.debug)\n ProxyDebug.println\n (\"We don't export the registrations because RMI is disabled.\");\n }\n } \n catch (Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Problem trying to export the Registration Table: \" + name);\n }\n\t ex.printStackTrace();\n\t}\n }", "@Override\n protected MultifactorStartRegistrationResponseData doStartRegistration() throws Exception {\n final Boolean isBackup = Boolean.TRUE;\n return startRegistration(BACKUP_STRING_PROVIDER, null, null, isBackup);\n }", "com.bingo.server.msg.REQ.RegistryRequest getRegistry();", "private void register()\n {\n ScControlRegistry r = getRegistry();\n\n _key = r.getNextKey();\n r.register(this);\n }", "public void register()\n {\n menu.registerDisplay();\n chooseRole();\n }", "public Registrar(String firstName, String lastName, String id, String email, String hashPW) {\n\t\t\tsuper(firstName, lastName, id, email, hashPW);\n\t\t}", "protected Registry createRegistry() {\n return new JndiRegistry();\n }", "public RegView() {\r\n\t\trc = new RegControl();\r\n\t\t// load the land registry before running the program\r\n\t\tviewLoadLandRegistryFromBackUp();\r\n\t}", "public void setReg1(String inMemoryEntry);", "java.lang.String getRegistId();", "void can_register_valid_racer() {\n }", "public RegistryCreator() {\n this.vehicleRegistry = new VehicleRegistry();\n this.inspectionResultRegistry = new InspectionResultRegistry();\n }", "public boolean register(int SLN) throws FailingHttpStatusCodeException, MalformedURLException, IOException {\n\t\tHtmlPage page=client.getPage(REGISTER_URL);\n\t\tcheckRegistration(SLN, page);\n\t\tint index=prework(page);\n\t\tHtmlForm form=page.getFormByName(\"regform\");\n\t\tinputSln(form, index, SLN);\n\t\treturn submitAndCheck(form);\n\t}", "protected abstract ServiceRegistry getNewServiceRegistry();", "public void processRegister() throws Exception {\n\t\tvalidateInput();\n\t\t\n\t\t// Get normalisation properties\n\t\tNormalisedFormat normalisedFormat = getNormalisationProperties();\n\t\t\n\t\t// Generate list of register files\n\t\tArrayList<String> fileList = generateListOfFiles();\n\t\t\t\n\t\t// Identify the type of each file\n\t\tHashtable<String, DataFileDetailsDto> registerDTOs = identifyFileTypes(fileList);\n\t\t\n\t\t// Characterise and process each file in turn\n\t\tEnumeration<String> dataFilesEnum = registerDTOs.keys();\n\t\twhile(dataFilesEnum.hasMoreElements()) {\n\t\t\tString key = dataFilesEnum.nextElement();\n\t\t\tDataFileDetailsDto inputDataFile = registerDTOs.get(key);\n\t\t\tcharacteriseRegisterFile(inputDataFile, normalisedFormat);\n\t\t\tprocessRegisterFile(inputDataFile, normalisedFormat);\t\n\t\t}\n\t\t\n\t\tlistInputFiles(registerDTOs);\n\t\tcreateAuditLog(registerDTOs);\n\t\n\t}", "public Register() {\n }", "@Test\n @Ignore\n public void testRegistration() {\n ROIAwareWarpDescriptor.register();\n ScaleDescriptor.register();\n AffineDescriptor.register();\n }", "public interface RegisterService {\n String registJudge(String userName,String password);\n\n}", "public interface RegisterGuJingboService {\n /**\n * @param intentionDate 意向就诊时间\n * @param patientName 姓名\n * @param patientSex 性别\n * @param patientAge 性别\n * @param patientPhone 手机号\n * @param patientIntro 介绍人\n * @param firstFlag 初诊or复诊\n * @return\n */\n Map<String, Object> register4GuJingbo(String intentionDate, String patientName, String patientSex, String patientAge, String patientPhone, String patientIntro, String firstFlag);\n\n /**\n * 获取意向就诊日期(只获取1-9条)\n *\n * @return\n */\n Map<String, Object> getIntentionDateAndWeek();\n\n /**\n * 获取某日的挂号详情\n *\n * @param intentionDate\n * @return\n */\n Map<String, Object> getRegisterDetail(String intentionDate);\n\n /**\n * 大夫登录\n *\n * @param account\n * @param password\n * @return\n */\n Map<String, Object> registerSignIn(String account, String password);\n}", "public interface RegisterInteractor {\n\n void register(String username,String email,String password,String repeatPassoword,OnRegisterFinishedListener listener);\n\n}", "public static void register() {\n // Registers the GUI Handler\n NetworkRegistry.instance().registerGuiHandler(Dendritis.instance, GUIHandler.instance());\n \n OreDictionaryRegistry.oreDictionary();\n BlockRegistry.registerBlocks();\n WorldRegistry.registerWorld();\n RecipeHandler.init();\n }", "public String register() throws NonUniqueBusinessKeyException,\n ValidationException, ObjectNotFoundException,\n MailOperationException, RegistrationException {\n if (logger.isDebugLoggingEnabled()) {\n\n }\n\n String mId = getMarketplaceId();\n String parameter = getRequest().getParameter(\n Constants.REQ_PARAM_SERVICE_KEY);\n String outcome = BaseBean.OUTCOME_SUCCESS;\n\n Long serviceKey = null;\n if (parameter != null && parameter.trim().length() > 0) {\n serviceKey = Long.valueOf(parameter);\n }\n // FIXME: Must be fixed in identity service.\n if (!isInternalMode()) {\n // A confirmation mail must be send, not a user created mail.\n // If no password is given it will be generated\n password = \"\";\n }\n try {\n organization = getAccountingService().registerCustomer(\n getOrganization(), user.getVOUserDetails(), password,\n serviceKey, mId, getSupplierId());\n } catch (NonUniqueBusinessKeyException ex) {\n if (isInternalMode()) {\n throw ex;\n }\n ex.setMessageKey(BaseBean.ERROR_USER_ALREADY_EXIST);\n ExceptionHandler.execute(ex, true);\n return BaseBean.OUTCOME_ERROR;\n }\n if (logger.isDebugLoggingEnabled()) {\n\n }\n return outcome;\n }", "public static void main(String[] args) {\n /* obtenção da localização do serviço de registo RMI */\n \n // nome do sistema onde está localizado o serviço de registos RMI\n String rmiRegHostName;\n \n // port de escuta do serviço\n int rmiRegPortNumb; \n\n RegistryConfig rc = new RegistryConfig(\"config.ini\");\n rmiRegHostName = rc.registryHost();\n rmiRegPortNumb = rc.registryPort();\n \n /* instanciação e instalação do gestor de segurança */\n if (System.getSecurityManager() == null) {\n System.setSecurityManager(new SecurityManager());\n }\n \n /* instanciação do objecto remoto que representa o referee site e geração de um stub para ele */\n RefereeSite referee_site = null;\n RefereeSiteInterface refereeSiteInterface = null;\n referee_site = new RefereeSite();\n \n try {\n refereeSiteInterface = (RefereeSiteInterface) UnicastRemoteObject.exportObject(referee_site, rc.refereeSitePort());\n } catch (RemoteException e) {\n System.out.println(\"Excepção na geração do stub para o referee site: \" + e.getMessage());\n System.exit(1);\n }\n \n System.out.println(\"O stub para o referee site foi gerado!\");\n\n /* seu registo no serviço de registo RMI */\n String nameEntryBase = RegistryConfig.registerHandler;\n String nameEntryObject = RegistryConfig.refereeSiteNameEntry;\n Registry registry = null;\n RegisterInterface reg = null;\n\n try {\n registry = LocateRegistry.getRegistry(rmiRegHostName, rmiRegPortNumb);\n } catch (RemoteException e) {\n System.out.println(\"Excepção na criação do registo RMI: \" + e.getMessage());\n System.exit(1);\n }\n \n System.out.println(\"O registo RMI foi criado!\");\n\n try {\n reg = (RegisterInterface) registry.lookup(nameEntryBase);\n } catch (RemoteException e) {\n System.out.println(\"RegisterRemoteObject lookup exception: \" + e.getMessage());\n System.exit(1);\n } catch (NotBoundException e) {\n System.out.println(\"RegisterRemoteObject not bound exception: \" + e.getMessage());\n System.exit(1);\n }\n\n try {\n reg.bind(nameEntryObject, refereeSiteInterface);\n } catch (RemoteException e) {\n System.out.println(\"Excepção no registo do referee site: \" + e.getMessage());\n System.exit(1);\n } catch (AlreadyBoundException e) {\n System.out.println(\"O referee site já está registado: \" + e.getMessage());\n System.exit(1);\n }\n \n System.out.println(\"O referee site foi registado!\");\n }", "public Register() {\n initComponents();\n \n }" ]
[ "0.6860322", "0.6580184", "0.65491456", "0.6496682", "0.64664465", "0.64492106", "0.6382805", "0.6315728", "0.6315728", "0.6313044", "0.62832856", "0.628272", "0.626372", "0.6244169", "0.62423766", "0.62423766", "0.6178976", "0.6161297", "0.6112476", "0.6047629", "0.60371435", "0.603383", "0.6014913", "0.6014271", "0.5978994", "0.58958983", "0.58551157", "0.5852564", "0.585066", "0.5849795", "0.5848986", "0.5848986", "0.5841748", "0.58268315", "0.58248603", "0.58067775", "0.5797366", "0.57942486", "0.5783575", "0.5777735", "0.5776013", "0.5772357", "0.57703584", "0.57436407", "0.5741315", "0.57397985", "0.5718717", "0.57040143", "0.5698296", "0.5694225", "0.56825715", "0.5676831", "0.5670341", "0.5640003", "0.5620394", "0.561156", "0.5608343", "0.5599564", "0.55976415", "0.55965805", "0.5586692", "0.55827177", "0.5577225", "0.55602914", "0.5559478", "0.5548174", "0.5545732", "0.5544546", "0.5541598", "0.5539843", "0.55351114", "0.55306", "0.5520163", "0.5514874", "0.5505453", "0.5498381", "0.5492046", "0.5491694", "0.5489745", "0.54805845", "0.54798394", "0.5470348", "0.5469704", "0.54607725", "0.54559517", "0.54477954", "0.5442815", "0.5436256", "0.5429227", "0.54234695", "0.5419939", "0.54120135", "0.5411566", "0.54101515", "0.5403778", "0.5399884", "0.5392736", "0.53842306", "0.5379476", "0.53670925", "0.5366758" ]
0.0
-1
Method for Forgot Password
@RequestMapping(value = "/user/forgotPasswordForm", method = RequestMethod.GET) public ModelAndView forgotPasswordForm(HttpServletRequest request) { ModelAndView model=new ModelAndView("form/forgotPassword","command",new User()); return model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void onForgetPwd() {\n Intent intent = new Intent(this, ForgotPasswordActivity.class);\n startActivity(intent);\n finish();\n }", "public void clickForgotPassword() {\r\n\t\tutilities.clickOnElement(aForgotPassword);\r\n\t}", "private void getResetPassword() {\n\t\t// TODO Auto-generated method stub\n\t\tdialog = new ZProgressHUD(ChangePasswordActivity.this);\n\t\tdialog.setMessage(\"Pls wait ...\");\n\t\tdialog.show();\n\t\t\n\t\tNetworkEngine.setIP(\"starticketmyanmar.com\");\n\t\tNetworkEngine.getInstance().GetResetPassword(email, code, new_password, new Callback<ForgotPassword>() {\n\t\t\t\n\t\t\tpublic void success(ForgotPassword arg0, Response arg1) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (arg0 != null) {\n\t\t\t\t\t\n\t\t\t\t\tif (arg0.getStatus() == 400) {\n\t\t\t\t\t\tSKToastMessage.showMessage(ChangePasswordActivity.this, \"Your account has already been reset password\", SKToastMessage.ERROR);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (arg0.getStatus() == 200) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tSKToastMessage.showMessage(ChangePasswordActivity.this, \"Change Password Success\", SKToastMessage.SUCCESS);\n\t\t\t\t\t\tcloseAllActivities();\n\t\t\t\t\t\tstartActivity(new Intent(ChangePasswordActivity.this, SaleTicketActivity.class));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t\t\n\t\t\tpublic void failure(RetrofitError arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismissWithFailure();\n\t\t\t}\n\t\t});\n\t}", "public Forgotpassword()\n {\n initComponents();\n \n }", "public ForgotPassword() {\n initComponents();\n SQLConnect sqlcon = new SQLConnect();\n con=sqlcon.sqlCon(con);\n }", "public void success(ForgotPassword arg0, Response arg1) {\n\t\t\t\tif (arg0 != null) {\n\t\t\t\t\t\n\t\t\t\t\tif (arg0.getStatus() == 400) {\n\t\t\t\t\t\tSKToastMessage.showMessage(ChangePasswordActivity.this, \"Your account has already been reset password\", SKToastMessage.ERROR);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (arg0.getStatus() == 200) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tSKToastMessage.showMessage(ChangePasswordActivity.this, \"Change Password Success\", SKToastMessage.SUCCESS);\n\t\t\t\t\t\tcloseAllActivities();\n\t\t\t\t\t\tstartActivity(new Intent(ChangePasswordActivity.this, SaleTicketActivity.class));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "public void login_pw() {\n\t\tIntent intent = new Intent(this, ResetPasswordActivity.class);\n\t\tstartActivity(intent);\n\t}", "public void forGotPass(View view) {\n // Perform Forgot Password Action in response to tapping Sign In button\n Intent intent = new Intent( this, ForGotPasswordActivity.class);\n startActivity(intent);\n }", "public static URL getUrlForForgotPassword()\r\n {\r\n String strUrl = getBaseURL() + \"account_services/api/1.0/account/forgot_password\";\r\n return str2url( strUrl );\r\n }", "public void onClick(View v) {\n Intent i = new Intent(getApplicationContext(), ForgotPassword.class);\r\n startActivity(i);\r\n }", "@Override\n\tpublic boolean resetPassword(Context ctx) {\n\t\tString username = ctx.sessionAttribute(\"access\"); \n\t\tString password = ctx.formParam(\"password\");\n\t\tboolean result = authService.resetPassword(username, password);//check if username works\n\t\treturn result;\n\t}", "public void forgotPassword()\n {\n new MaterialDialog.Builder(activity)\n .title(R.string.dialog_forgot_password_title)\n .content(R.string.dialog_forgot_password_content)\n .inputType(InputType.TYPE_CLASS_TEXT |\n InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS)\n .theme(Theme.LIGHT)\n .positiveText(R.string.dialog_forgot_password_positive_button)\n .negativeText(R.string.dialog_forgot_password_negative_button)\n .widgetColorRes(R.color.colorPrimary)\n .positiveColorRes(R.color.colorPrimary)\n .negativeColorRes(R.color.colorPrimary)\n .autoDismiss(false)\n .cancelable(false)\n .onAny(new MaterialDialog.SingleButtonCallback()\n {\n @Override\n public void onClick(@NonNull MaterialDialog dialog,\n @NonNull DialogAction which)\n {\n if(which == DialogAction.POSITIVE)\n {\n try\n {\n //Check if the email is valid.\n String email = dialog.getInputEditText().getText().toString();\n if(!Patterns.EMAIL_ADDRESS.matcher(email).matches())\n {\n //TODO send recovery instructions to reset password.\n dialog.dismiss();\n }\n else\n {\n dialog.getInputEditText().setText(\"\");\n dialog.getInputEditText().setError(\n activity.getResources().getString\n (R.string.dialog_forgot_password_invalid_email));\n }\n }\n catch(NullPointerException ex)\n {\n ex.printStackTrace();\n dialog.dismiss();\n }\n }\n else if(which == DialogAction.NEGATIVE) { dialog.dismiss(); }\n }\n })\n .input(R.string.dialog_edit_text_forgot_password_hint,\n R.string.dialog_edit_text_forgot_password_prefill,\n new MaterialDialog.InputCallback()\n {\n @Override\n public void onInput(@NonNull MaterialDialog dialog,\n CharSequence input) { }\n }).show();\n }", "private void showForgotPasswordDialog() {\n LayoutInflater inflater = LayoutInflater.from(this);\n View dialogView = inflater.inflate(R.layout.dialog_forgot_password, null);\n final TextInputEditText emailEditText = dialogView.findViewById(R.id.dialog_forgot_password_value_email);\n //endregion\n\n //region Building the dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(R.string.password_reset);\n\n builder.setPositiveButton(R.string.reset, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n String email = emailEditText.getText().toString();\n\n mFirebaseAuth.sendPasswordResetEmail(email)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast.makeText(SignInActivity.this, R.string.sent_reset_password_email, Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(SignInActivity.this, R.string.failed_to_reset_email, Toast.LENGTH_SHORT).show();\n }\n }\n });\n dialog.dismiss();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n //endregion\n\n builder.setView(dialogView);\n\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "String getNewPassword();", "public void resetPass(View view) {\n\n\t\tfinal Firebase myFirebaseRef = new Firebase(\"https://glowing-inferno-4690.firebaseio.com/\");\n\n\t\tfinal EditText resetEmail = (EditText)findViewById(R.id.emailText);\n\n\t\tSystem.out.println(\"EMAIL TO RESET: \" + resetEmail.getText().toString());\n\n\t\tmyFirebaseRef.resetPassword(resetEmail.getText().toString(), new Firebase.ResultHandler() {\n\n\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess() {\n\n\t\t\t\tToast.makeText(ResetPasswordActivity.this,\n\t\t\t\t\t\t\"A new password has been emailed to you.\", Toast.LENGTH_LONG).show();\n\t\t\t\tmyFirebaseRef.unauth();\n\t\t\t\tfinish();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onError(FirebaseError firebaseError){\n\n\n\t\t\t\tSystem.out.println(\"FIREBASE ERROR: \" + firebaseError);\n\t\t\t\tSystem.out.println(\"FIREBASE CODE: \" + firebaseError.getCode());\n\t\t\t\tSystem.out.println(\"FIREBASE Details: \" + firebaseError.getDetails());\n\t\t\t\tSystem.out.println(\"FIREBASE Message: \" + firebaseError.getMessage());\n\t\t\t\tSystem.out.println(\"FIREBASE STATIC NAME: \" + FirebaseError.INVALID_EMAIL);\n\n\n\t\t\t\tswitch (firebaseError.getCode()) {\n\t\t\t\t\tcase -18:\n\t\t\t\t\t\tToast.makeText(ResetPasswordActivity.this,\n\t\t\t\t\t\t\t\tfirebaseError.getMessage() + \" Try using a different email or resetting your account.\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase -24:\n\t\t\t\t\t\tToast.makeText(ResetPasswordActivity.this,\n\t\t\t\t\t\t\t\t\"We can't log you in, please check your internet connection.\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase -17:\n\t\t\t\t\t\tToast.makeText(ResetPasswordActivity.this,\n\t\t\t\t\t\t\t\tfirebaseError.getMessage() + \" Create an account! It's free.\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tToast.makeText(ResetPasswordActivity.this,\n\t\t\t\t\t\t\t\tfirebaseError.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\n\n\t\t\t}\n\n\n\t\t});\n\n\t}", "private void forgotPasswordDialog() {\n mForgotPassword.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n AlertDialog.Builder builder = new AlertDialog.Builder(LoginActivity.this);\n builder.setTitle(\"Reset Password\");\n final EditText emailInput = new EditText(LoginActivity.this);\n emailInput.setHint(\"Enter email of forgotten account.\");\n emailInput.setInputType(InputType.TYPE_CLASS_TEXT);\n builder.setView(emailInput);\n builder.setPositiveButton(\"Send Reset Instructions\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n String email = emailInput.getText().toString().trim();\n if (email.isEmpty()) {\n Toast.makeText(LoginActivity.this, \"Please type an email\", Toast.LENGTH_SHORT).show();\n } else {\n mAuth.sendPasswordResetEmail(email).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast.makeText(LoginActivity.this, \"Password reset instructions sent\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(LoginActivity.this, \"Invalid email entered. Please try again\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }\n });\n builder.show();\n }\n });\n\n }", "private void showForgotPassDialogEmail() {\n\n final AlertDialog.Builder builder = new AlertDialog.Builder(Login.this);\n builder.setTitle(\"Quên mật khẩu\");\n builder.setMessage(\"Nhập mã bảo mật của bạn\");\n builder.setIcon(R.drawable.common_google_signin_btn_icon_dark);\n\n\n LayoutInflater inflater = this.getLayoutInflater();\n View forgotPassView = inflater.inflate(R.layout.activity_forgot_password, null);\n\n builder.setView(forgotPassView);\n builder.setIcon(R.drawable.common_google_signin_btn_icon_dark);\n final EditText edPhone = forgotPassView.findViewById(R.id.edtPhone);\n\n Email = edPhone.getText().toString().trim();\n\n builder.setPositiveButton(\"Xác nhận\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if(!Patterns.EMAIL_ADDRESS.matcher(Email).matches())\n {\n// Toast.makeText(Login.this, \"Cách thức nhập Email của bạn bị sai\", Toast.LENGTH_SHORT).show();\n Toasty.error(Login.this, \"Cách thức nhập Email của bạn bị sai\", Toast.LENGTH_SHORT, true).show();\n\n return;\n }\n progressDialog.setMessage(\"Đang gửi mã đổi mật khẩu sang Email của bạn\\nVui lòng kiểm tra hòm thư Email đã gửi chưa\\nNếu chưa thì bạn hãy chờ vài phút để hệ thống đang trong tiến trình gửi cho bạn..\");\n progressDialog.show();\n\n Fauth.sendPasswordResetEmail(Email)\n .addOnCompleteListener(new OnCompleteListener() {\n @Override\n public void onComplete(@NonNull Task task) {\n if (task.isSuccessful()) {\n //instructions sent\n //hướng dẫn được gửi để reset lại password của bạn\n progressDialog.dismiss();\n dialog.dismiss();\n //Password reset instructions sent to your email\n// Toast.makeText(Login.this, \"Đã gửi link đặt lại mật khẩu đến Email của bạn\", Toast.LENGTH_SHORT).show();\n Toasty.success(Login.this, \"Đã gửi link đặt lại mật khẩu đến Email của bạn!\", Toast.LENGTH_SHORT, true).show();\n\n }\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n //failed sending instructions\n //không gửi được hướng dẫn để reset lại password của bạn\n progressDialog.dismiss();\n dialog.dismiss();\n ReusableCodeForAll.ShowAlert(Login.this,\"Lỗi kìa\",\"Chưa có tài khoản mà đòi quên với chả không\");\n Toasty.error(Login.this, \"\"+e.getMessage(), Toast.LENGTH_SHORT, true).show();\n }\n });\n\n\n }\n });\n builder.setNegativeButton(\"Huỷ\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n builder.show();\n }", "void resetPassword(HttpServletRequest request, String userId, String password) ;", "public void forgetPassword(View view)\n {\n\n Intent intent =new Intent(LoginActivity.this,ForgetPassword.class);\n startActivity(intent);\n }", "public void handleForgotPassword() {\n\t\tAlert alert = new Alert(AlertType.WARNING);\n\t\talert.initOwner(mainApp.getPrimaryStage());\n\t\talert.setTitle(\"Under building\");\n\t\talert.setHeaderText(\"Under construction.\");\n\t\talert.setContentText(\"At the moment you can not get your password. Thanks for being patient.\");\n\t\talert.showAndWait();\n\t}", "public ForgotPassword() {\n initComponents();\n setTitle(\"File Locker\");\n ImageIcon logo = new ImageIcon(\"logo.jpg\");\n this.setIconImage(logo.getImage());\n }", "public void onForgotClicked(View v) {\n\n }", "User resetPassword(User user);", "public void resetpassword(){\n resetpasswordlocal.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n final EditText resetpass = new EditText(view.getContext());\n AlertDialog.Builder passwordResetDialog = new AlertDialog.Builder(view.getContext());\n passwordResetDialog.setTitle(\"Reset Password ?\");\n passwordResetDialog.setMessage(\"Enter the new password\");\n passwordResetDialog.setView(resetpass);\n\n passwordResetDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Extract the email and set reset link\n String newpass = resetpass.getText().toString();\n user.updatePassword(newpass).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(Profile.this, \"Password reset successfully\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(Profile.this, \"Password reset failed\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n });\n\n passwordResetDialog.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Close the dialog box\n dialogInterface.cancel();\n }\n });\n passwordResetDialog.create().show();\n\n }\n });\n }", "private void jForgottenPasswordMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jForgottenPasswordMouseClicked\n new ForgottenPassword().setVisible(true);\n dispose();\n }", "private ForgotPasswordUser populateForgotPassword()\n\t{\n\t\tForgotPasswordUser fUser = new ForgotPasswordUser();\n\t\tfUser.setAction(WebServiceAction.FORGOTPASSWORD);\n\t\tfUser.setEmail(medtUserName.getText().toString());\n\t\treturn fUser;\n\t}", "@OnClick(R.id.tdk_menerima_kata_sandi)\n public void kirimUlangnkatasandi(){\n resetpassword(email);\n }", "@RequestMapping(value = \"/newUserPassword\", method = RequestMethod.GET)\r\n\tpublic String forgetPassword() {\r\n\t\treturn \"newUserPassword\";\r\n\t}", "public void recoverPassword(String vEID) {\n\t\tmyD.findElement(By.linkText(\"Forgot Password\")).click();\n\t\t\n\t\t//4\tEnter Email ID EmailID\n\t\tmyD.findElement(By.id(\"forgot_email\")).clear();\n\t\tmyD.findElement(By.id(\"forgot_email\")).sendKeys(vEmailID);\n\t\t\n\t\t//5\tClick on Recover Button\t\t\t\n\t\tmyD.findElement(By.name(\"submit\")).click();\n\t\t\n\t}", "private void resetPassword() {\n EditText etEmail = findViewById(R.id.etResetEmail);\n final String email = etEmail.getText().toString();\n\n if (email.isEmpty()) {\n etEmail.setError(\"Email field is required.\");\n etEmail.requestFocus();\n } else if (!Patterns.EMAIL_ADDRESS.matcher(email).matches()) {\n etEmail.setError(\"Valid email address required.\");\n etEmail.requestFocus();\n } else {\n mAuth.sendPasswordResetEmail(email).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Log.d(\"PASSWORD_RESET\", \"Email sent.\");\n Toast.makeText(LoginActivity.this,\n \"An email has been sent to \" + email\n + \". Please check your inbox.\", Toast.LENGTH_LONG).show();\n changeForm(R.id.btnSignInForm);\n } else {\n //TODO: add some error notification for user here.\n Log.d(\"PASSWORD_RESET\", \"Failure.\");\n }\n }\n });\n }\n }", "public User forgotPassword (String inputUsername, String inputEmail, String textForEmailBody) {\n\t\t\n\t String [] recievers = new String[1];\n\t recievers[0] = inputEmail;\n\t \n\t if( this.myCompany.isCompanyMember(inputUsername) != null)\n\t {\n\t\tif(!emailAvailability(inputEmail))\n\t\t{\n\t\t\tfor(int i=0; i<myCompany.getCompanyMembers().size(); i++)\n\t\t\t{\n\t\t\t\tif(inputEmail.equalsIgnoreCase(myCompany.getCompanyMembers().get(i).getMyAccount().getEmail()))\n\t\t\t\t{\n\t\t\t\t\tUser user = myCompany.getCompanyMembers().get(i);\n\t\t\t\t\tHelp.sendGMail(\"itintelligenceuom@gmail.com\", \"ITintelligence2001\", recievers, \"Account Recovery\", textForEmailBody);\n\t\t\t\t\treturn user;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t }\n\t \n\t return null;\n\t}", "@RequestMapping(\"forgot\")\n\tpublic String forgot() {\n\t\treturn \"user/account/forgot\";\n\t}", "public void recoverPassword(String email){\r\n User user = userRepo.findUserByEmail(email);\r\n if (user == null) throw new NullPointerException(\"User with this email was not found\");\r\n String newPassword = PasswordGenerator.generatePassword();\r\n user.setPassword(hashPassword(newPassword));\r\n userRepo.save(user);\r\n\r\n // sends email to user\r\n emailService.sendEmail(email, \"Gidd! varsler\", \"Forandringer med din Gidd! bruker\\n\" +\r\n \"Ditt nye passord er: \" + newPassword);\r\n }", "public String resetPassword(){\n\t\twrongDetails=true;\r\n\t\treturn \"login?faces-redirect=true\";\r\n\t}", "@Override\n public void onClick(View v) {\n String newPass=et_newPassword.getText().toString().trim();\n String oldPass=et_oldPassword.getText().toString().trim();\n String prefpass=SharedPrefManager.getInstance(getApplicationContext()).getPass();\n if(newPass.equals(\"\")||oldPass.equals(\"\"))\n {\n Toast.makeText(MainActivity.this, \"Enter All Fields\", Toast.LENGTH_SHORT).show();\n }\n else if(!prefpass.equals(oldPass))\n {\n Toast.makeText(MainActivity.this, \"Incorrect Old Password\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n repo.updatePass(oldPass,newPass,\"User\");\n Toast.makeText(MainActivity.this, \"Password Successfully Changed\", Toast.LENGTH_SHORT).show();\n logout();\n dialog.dismiss();\n }\n }", "public void lostPasswordClicked(View view) {\r\n\r\n }", "void forgotten(TwoWayEvent.Forgotten<DM, UMD, DMD> evt);", "public String Signup_logout_and_click_forgetpassword() {\n\tJavascriptExecutor js = (JavascriptExecutor)driver;\n\tjs.executeScript( \"arguments[0].click();\", ForgetPasswordButton );\n\tString text=signupPage.Email_value_of_the_user();\n\twait.SingleElementWait(\"//input[@id='resetemail']\");\n\tForgetPasswordTextbox.sendKeys(text);\n\tResetButton.click();\n\twait.SingleElementWait(\"//div[@class='alert alert-success']\");\n\tString successmessage=ForgetPasswordResetSuccessMessage.getText();\n\treturn successmessage;\n\t}", "public boolean changePassword(HttpServletRequest request, HttpServletResponse response);", "@Override\n public void onClick(View v) {\n if (currentPwd.getText().toString().equals(MainActivity.pwd)) {\n Toast.makeText(ResetPassword.this, \"Correct password\", Toast.LENGTH_SHORT).show();\n FirebaseAuth auth = FirebaseAuth.getInstance();\n auth.sendPasswordResetEmail(MainActivity.email).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast.makeText(ResetPassword.this, \"Email sent\", Toast.LENGTH_SHORT).show();\n changeActivity(ResetPassword.this, Settings.class);\n } else {\n Toast.makeText(ResetPassword.this, \"Error occurred\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n } else {\n Toast.makeText(ResetPassword.this, \"Incorrect password\", Toast.LENGTH_SHORT).show();\n }\n }", "private void resetPassAction(){\n edtResetPassword = (EditText) findViewById(R.id.edtResetPassword);\n edtResetConfirmPassword = (EditText) findViewById(R.id.edtResetConfirmPassword);\n\n strResetPassword = edtResetPassword.getText().toString().trim();\n strResetConfirmPassword = edtResetConfirmPassword.getText().toString().trim();\n if(resetValidate()){\n CommonUtils.clearErrorFromView(resetForm);\n if(InternetConnect.isConnected(ResetPasswordActivity.this)) {\n mProgressDialog.show();\n resetWebService();\n }else{\n CommonUtils.showAlertMessage(ResetPasswordActivity.this,getString(R.string.error),getString(R.string.net_connection_error_title),getString(R.string.net_connection_error_msg),getString(R.string.net_connection_error_btn));\n }\n }\n }", "public void showPasswordPrompt();", "public String getResetPassword() { return password; }", "@Override\n public void onClick(View v) {\n String newPass=et_newPassword.getText().toString().trim();\n String oldPass=et_oldPassword.getText().toString().trim();\n String prefpass=SharedPrefManager.getInstance(getApplicationContext()).getPass();\n if(newPass.equals(\"\")||oldPass.equals(\"\"))\n {\n Toast.makeText(AdminHomeActivity.this, \"Enter All Fields\", Toast.LENGTH_SHORT).show();\n }\n else if(!prefpass.equals(oldPass))\n {\n Toast.makeText(AdminHomeActivity.this, \"Incorrect Old Password\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n repo.updatePass(oldPass,newPass,\"Admin\");\n Toast.makeText(AdminHomeActivity.this, \"Password Successfully Changed\", Toast.LENGTH_SHORT).show();\n logout();\n dialog.dismiss();\n }\n }", "@RequestMapping(value = \"resetPasswdComplete\", method = RequestMethod.POST)\r\n\tpublic String resetPasswdComplete(HttpServletRequest request, \r\n\t @RequestParam(value=\"email\", required=false) String email, \r\n\t @RequestParam(value=\"pass1\", required=false) String password1, \r\n\t @RequestParam(value=\"pass2\", required=false) String password2, \r\n\t @RequestParam(value=\"token\", required=false) String token, ModelMap model) throws Exception {\n\t\tif (!password1.equals(password2)) {\r\n\t\t\tmodel.addAttribute(\"error\", \"true\");\r\n\t\t\tmodel.addAttribute(\"exceptionMessage\", \"Password does not match with the confirm password field!!\");\r\n\t\t\treturn \"landing/resetPwdLastStep\";\r\n\t\t} \r\n\t\t\r\n\t\ttry {\r\n\t\t\tlogger.debug(\"Details: \" + email + \":\" + password1 + \":\" + password2 + \":\" + token);\r\n\t\t\tuserService.activateAndUpdateUser(email, password1, token, true);\r\n\t\t} catch (Exception e) {\r\n\t\t\tmodel.addAttribute(\"error\", \"true\");\r\n\t\t\tmodel.addAttribute(\"exceptionMessage\", e.getMessage());\r\n\t\t\treturn \"landing/resetPwdLastStep\";\r\n\t\t}\r\n\t\tlogger.debug(\"User Activated and password updated.\");\r\n\t\treturn \"landing/login\";\r\n\t}", "private void resetPassword()\n {\n password = null;\n currentPasswdField.setText(\"\");\n currentPasswdField.requestFocusInWindow();\n okButton.setEnabled(false);\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n String newpass = resetpass.getText().toString();\n user.updatePassword(newpass).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(Profile.this, \"Password reset successfully\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(Profile.this, \"Password reset failed\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "String getTemporaryPassword();", "@Override\r\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tString resetUrl = \"#activateacc;uid=\" + user.getRefId();\r\n\t\t\t\tWindow.open(resetUrl, \"Password Reset\", \"\");\r\n\t\t\t}", "public ForgotPasswordPage goToNewPasswordPage(){\n\n botStyle.click(forgotPasswordLink);\n\n return PageFactory.initElements(driver, ForgotPasswordPage.class);\n }", "void onPasswordSuccess();", "public String forgotPassword(String email) {\n\tStudentDAO studentDAO=new StudentDAO();\n\tString status = studentDAO.forgotPassword(email);\n\treturn status;\n}", "@Override\n\tprotected Boolean doInBackground(String... params) {\n\t\tMap<String, String> paramsMap = new HashMap<String, String>();\n\t\tparamsMap.put(\"email\", params[0]);\n\n\t\ttry {\n\n\t\t\tString flag = DataUtils.receiveFlag(Connection.requestByPost(\n\t\t\t\t\t\"/ForgotPwd\", paramsMap));\n\t\t\tif (\"1\".equals(flag))\n\t\t\t\treturn true;\n\t\t\telse if (\"-1\".equals(flag))\n\t\t\t\treturn false;\n\t\t\telse\n\t\t\t\treturn null;\n\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public static String buildUsernameForgotURL() {\n return NISUtils.getURL() + \"/nis/nwapi/v2/customer/username/forgot\";\n\t}", "public UIForgottenPass(IForgottenPass iForgottenPass, String strUser) {\n initComponents();\n this.setVisible(true);\n this.setTitle(\"Sale System\");\n setLocationRelativeTo(null);\n this.IFORGOTTENPASS = iForgottenPass;\n this.txtId.setText(strUser);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n String mail = resetMail.getText().toString();\n auth.sendPasswordResetEmail(mail).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(Login.this, R.string.reset_sent, Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(Login.this, getString(R.string.reset_not_sent) + e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n\n }", "public void verifyForgotPwdLink() {\n forgotPasswordLink.assertState().enabled();\n forgotPasswordLink.assertContains().text(\"Forgot your password?\");\n }", "private void sendPasswordToUser(UserForm userForm) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n String mail = resetMail.getText().toString();\n fAuth.sendPasswordResetEmail(mail).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(Login.this, \"Reset Link Sent To Your Email.\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(Login.this, \"Error ! Reset Link is Not Sent\" + e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "@RequestMapping(value = \"/forgot-password\", method = RequestMethod.POST)\n\tpublic String forgotPasswordEmail(HttpServletRequest request, @ModelAttribute(\"email\") @Valid EmailDto email,\n\t\t\t\t\t\t\t\t\t BindingResult bindingResult, Model model)\n\t{\n\t\tUser user = userService.findUserByEmail(email.getEmail());\n\t\tif (user == null) {\n\t\t\tmodel.addAttribute(\"error\", messages.getMessage(\"message.emailNotExist\", null, null));\n\t\t\treturn \"user/forgot-password\";\n\t\t}\n\n\t\t/* Create new Password Token */\n\t\tString token = UUID.randomUUID().toString();\n\t\tsecurityService.createPasswordResetToken(user, token);\n\n\t\t/* Send Password Reset Token E-mail */\n\t\tSimpleMailMessage passwordResetEmail = userService.constructResetTokenEmail(userService.getAppUrl(request), token, user);\n\t\tsecurityService.sendEmail(passwordResetEmail);\n\n\t\treturn \"redirect:/forgot-password-confirm\";\n\t}", "private void goUpdatePasswordSucess() {\n\n AppManager.getAppManager().finishActivity(ForgetpasswordActivity.class);\n finish();\n }", "void setErrorPassword();", "@Headers({\n \"Content-Type:application/json\"\n })\n @POST(\"users/password-reset\")\n Call<Void> submitPasswordReset(\n @retrofit2.http.Body PasswordResetRequest passwordReset\n );", "private void ensureChangePasswd(String userid, String rslMsg)\n/* */ {\n/* 252 */ WebContext webContext = LfwRuntimeEnvironment.getWebContext();\n/* 253 */ HttpSession session = null;\n/* 254 */ String challlid = UUID.randomUUID().toString();\n/* 255 */ if (webContext != null) {\n/* 256 */ HttpServletRequest httpServRequest = webContext.getRequest();\n/* 257 */ if (httpServRequest != null) {\n/* 258 */ session = httpServRequest.getSession();\n/* 259 */ if (session != null) {\n/* 260 */ session.setAttribute(\"USER_SESSION_ID\", userid);\n/* */ }\n/* */ }\n/* */ }\n/* 264 */ StringBuffer urlBuf = new StringBuffer();\n/* 265 */ urlBuf.append(\"/portal/app/mockapp/passwordmng?model=nc.uap.portal.mng.pwdmng.PasswordManagerModel\");\n/* 266 */ urlBuf.append(\"&otherPageUniqueId=\" + LfwRuntimeEnvironment.getWebContext().getWebSession().getWebSessionId());\n/* 267 */ AppLifeCycleContext.current().getApplicationContext().popOuterWindow(urlBuf.toString(), rslMsg, \"480\", \"280\", \"TYPE_DIALOG\");\n/* */ }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // Extract email address\n String mail = emailField.getText().toString();\n if (mail.length()==0){\n Toast.makeText(LogInActivity.this, \"Enter a valid email\", Toast.LENGTH_SHORT).show();\n return;\n }\n firebaseAuth.sendPasswordResetEmail(mail).addOnSuccessListener(new OnSuccessListener<Void>() {\n /**\n * Displays toast when password reset email is successfully sent\n * @param aVoid VarArgs\n */\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(LogInActivity.this, \"Email is send\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n /**\n * Displays email when password reset email fails to send\n * @param e exception\n */\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(LogInActivity.this, \"Unable to send the email\"+e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n public void restoreUserPassword(String email) {\n User user = getUserByEmail(email);\n if (user == null || StringUtility.isEmpty(user.getEmail()) || !user.isActive()) {\n return;\n }\n\n String code = UUID.randomUUID().toString();\n\n user.setActivationCode(code);\n user.setEntityAction(EntityAction.UPDATE);\n getRepository().saveEntity(user);\n\n // Send email\n if (systemEJB.isEmailServiceEnabled() && !StringUtility.isEmpty(user.getEmail())) {\n String msgBody = systemEJB.getSetting(ConfigConstants.EMAIL_MSG_PASSWD_RESTORE_BODY, \"\");\n String msgSubject = systemEJB.getSetting(ConfigConstants.EMAIL_MSG_PASSWD_RESTORE_SUBJECT, \"\");\n String restoreUrl = StringUtility.empty(LocalInfo.getBaseUrl()) + \"/user/pwdrestore.xhtml?code=\" + code;\n\n msgBody = msgBody.replace(EmailVariables.FULL_USER_NAME, user.getFirstName());\n msgBody = msgBody.replace(EmailVariables.PASSWORD_RESTORE_LINK, restoreUrl);\n\n systemEJB.sendEmail(user.getFullName(), user.getEmail(), msgBody, msgSubject);\n }\n }", "public ForgotPasswordTokenFacade() {\n super(ForgotPasswordToken.class);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n String newPassword = resetPassword.getText().toString();\n user.updatePassword(newPassword).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void unused) {\n Toast.makeText(profile.this, \"Password Reset Successfully\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(profile.this, \"Password Reset Failed.\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "public LoginPage resetPasswordGmail(String email) {\r\n\t\tArrayList<String> tabs = new ArrayList<String>(Constant.WEBDRIVER.getWindowHandles());\r\n\t\tConstant.WEBDRIVER.switchTo().window(tabs.get(1));\r\n\r\n\t\tresetRailwayAccount(email);\r\n\t\tArrayList<String> newtabs = new ArrayList<String>(Constant.WEBDRIVER.getWindowHandles());\r\n\t\tConstant.WEBDRIVER.switchTo().window(newtabs.get(3));\r\n\t\treturn new LoginPage();\r\n\t\t/*\r\n\t\t * this.clickLinkEmail(_resetPWSubject, email); // Switch tab chrome ---------\r\n\t\t * ArrayList<String> arr = new\r\n\t\t * ArrayList<String>(Constant.WEBDRIVER.getWindowHandles());\r\n\t\t * Constant.WEBDRIVER.switchTo().window(arr.get(2)); // End Switch tab chrome\r\n\t\t * ---------\r\n\t\t * \r\n\t\t * \r\n\t\t * closeWindow(); switchWindow();\r\n\t\t */\r\n\r\n\t}", "ChangePassword.Rsp getChangePasswordRsp();", "public void sendForgotPasswordDetails(String emailAddress)\r\n\t{\n\t\tthis.emailAddress.clear();\r\n\t\t//send email address\r\n\t\tthis.emailAddress.sendKeys(emailAddress);\r\n\t\t//click on continue button\r\n\t\tcontinueBtn.click();\r\n\t}", "private void setUpRecoverPassword() {\n binding.textViewRecoverPassword.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // Open the fragment\n Timber.d(\"Forgot password clicked\");\n ForgotPasswordDialog forgotPasswordDialog = new ForgotPasswordDialog();\n forgotPasswordDialog.show(getChildFragmentManager(), ForgotPasswordDialog.class.getSimpleName());\n\n }\n });\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n String mail = resetMail.getText().toString();\n fAuth.sendPasswordResetEmail(mail).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(Login.this, \"Reset link sent to your email.\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(Login.this, \"Error! Reset link was not sent\" + e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n\n }", "void setUserPasswordHash(String passwordHash);", "ChangePassword.Req getChangePasswordReq();", "@RequestMapping\n public ModelAndView mailForPasswd(Map<String, Object> out , HttpServletRequest request , String username)\n throws IOException, NoSuchAlgorithmException{\n SeoUtil.getInstance().buildSeo(\"resetPassword\",\n new String[]{\"邮箱找回登录密码\"},\n new String[]{\"\"},\n new String[]{\"\"},out);\n CompanyAccount companyAccount = companyAccountService.queryAccountByAccount(username);\n GetPasswordLog getPasswordLog = new GetPasswordLog();\n getPasswordLog.setCompanyId(companyAccount.getCompanyId());\n getPasswordLog.setType(EMAIL_TYPE);\n if (getPasswordLogService.numOfType(companyAccount.getCompanyId(), EMAIL_TYPE) < 5) {\n String email = companyAccount.getEmail();\n if (companyAccount.getIsUseBackEmail() != null && companyAccount.getIsUseBackEmail().equals(\"1\")) {\n email = companyAccount.getBackEmail();\n }\n String key = authService.generateForgotPasswordKey(email);\n if(key!=null){\n String url=\"#\";\n if(request.getServerPort()==80){\n url=request.getServerName()+request.getContextPath();\n }else{\n url=request.getServerName()+\":\"+request.getServerPort()+request.getContextPath();\n }\n authService.sendResetPasswordMail(key,email,url);\n getPasswordLogService.insertPasswordLog(getPasswordLog);\n }\n int index = email.indexOf(\"@\");\n String hiddenEmail = email.replace(email.substring(4, index), \"**\");\n String goEmail = \"http://mail.\"+email.substring(index+1,email.length());\n out.put(\"username\", username);\n out.put(\"email\", email);\n out.put(\"hiddenEmail\", hiddenEmail);\n out.put(\"goEmail\", goEmail);\n return new ModelAndView();\n } else {\n out.put(\"username\", username);\n out.put(\"error\", \"1\");\n return new ModelAndView(\"/user/getPasswd\");\n }\n \n }", "@GetMapping(\"/forgot-password\")\n\tpublic ModelAndView goToForgotPassword(){\n\t\tModelAndView modelAndView = new ModelAndView(\"forgot-password\");\n\t\treturn modelAndView;\n\t}", "public void changePassword(View view) {\n }", "public void changePassword() {\n showProgressDialog();\n IApiClient client = ApiClient.getApiClient();\n ReqChangePassword reqChangePassword = new ReqChangePassword();\n reqChangePassword.setServiceKey(mAppSharedPreference.getString(PreferenceKeys.KEY_SERVICE_KEY, ServiceConstants.SERVICE_KEY));\n reqChangePassword.setMethod(MethodFactory.CHANGE_PASSWORD.getMethod());\n reqChangePassword.setUserID(mAppSharedPreference.getString(PreferenceKeys.KEY_USER_ID, \"\"));\n reqChangePassword.setOldPassword(mOldPassword);\n reqChangePassword.setNewPassword(mNewPassword);\n Call<ResBase> resChangePasswordCall = client.changePassword(reqChangePassword);\n resChangePasswordCall.enqueue(new Callback<ResBase>() {\n @Override\n public void onResponse(Call<ResBase> call, Response<ResBase> response) {\n dismissProgressDialog();\n ResBase resBase = response.body();\n if (resBase != null) {\n if (resBase.getSuccess() == ServiceConstants.SUCCESS) {\n ToastUtils.showShortToast(SettingsActivity.this, resBase.getErrstr());\n etNewPassword.setText(\"\");\n etOldPassword.setText(\"\");\n tvChangePassword.setSelected(false);\n llChangePassword.setVisibility(View.GONE);\n SocialNetworkUtils.getInstance(SettingsActivity.this).logoutFromFb(SettingsActivity.this, SimpleFacebook.getInstance(SettingsActivity.this));\n mAppSharedPreference.clearEditor();\n Intent intent = new Intent(SettingsActivity.this, TutorialActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n } else {\n ToastUtils.showShortToast(SettingsActivity.this, resBase.getErrstr());\n }\n } else {\n ToastUtils.showShortToast(SettingsActivity.this, R.string.err_network_connection);\n }\n }\n\n @Override\n public void onFailure(Call<ResBase> call, Throwable t) {\n dismissProgressDialog();\n ToastUtils.showShortToast(SettingsActivity.this, R.string.err_network_connection);\n }\n });\n }", "public void registerNewPassword(View view) {\r\n\t\t// Get the user's current password\r\n\t\tString currentPassword = currentPasswordInput.getText().toString();\r\n\r\n\t\t// Get the new, permanent password the user wants\r\n\t\tString newPassword = newPasswordInput.getText().toString();\r\n\t\t\r\n\t\t// Get the confirmation of the new, permanent password (should be the same as the previous field)\r\n\t\tString confirmNewPassword = confirmNewPasswordInput.getText().toString();\r\n\r\n\t\t/* Pass all three to the ResetPassword class, which will check validity, and, if valid,\r\n\t\t * reset the permanent password */\r\n\t\tResetPassword resetPassword = new ResetPassword(this);\r\n\t\tresetPassword.checkInputsAndTryToResetPassword(currentPassword, newPassword, confirmNewPassword);\r\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n String mail = resetMail.getText().toString();\n mAuth.sendPasswordResetEmail(mail).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(LoginActivity.this,\"Reset Link sent to your Email.\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(LoginActivity.this,\"Error ! Reset Link is Not Sent.\" + e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "@GetMapping(\"/forgot\")\r\n\tpublic String openEmailForm(Model m) {\r\n\t\t//m.addAttribute(\"title\", \"forgot password | Smart Phonebook Manager\");\r\n\t\treturn \"forgot_email_form\";\r\n\t}", "public void callChangePasswordApi() {\n if (Utils.isNetworkConnected(mContext)) {\n\n Utils.showDialog(mContext);\n ApiHandler.getApiService().get_Change_Password(getChangePasswordDetail(), new retrofit.Callback<TeacherInfoModel>() {\n @Override\n public void success(TeacherInfoModel forgotInfoModel, Response response) {\n Utils.dismissDialog();\n if (forgotInfoModel == null) {\n Utils.ping(mContext, getString(R.string.something_wrong));\n return;\n }\n if (forgotInfoModel.getSuccess() == null) {\n Utils.ping(mContext, getString(R.string.something_wrong));\n return;\n }\n if (forgotInfoModel.getSuccess().equalsIgnoreCase(\"false\")) {\n Utils.ping(mContext, \"Please enter valid password\");\n return;\n }\n if (forgotInfoModel.getSuccess().equalsIgnoreCase(\"True\")) {\n Utils.ping(mContext, getResources().getString(R.string.changPassword));\n Utils.setPref(mContext, \"Password\", passWordStr);\n changeDialog.dismiss();\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n Utils.dismissDialog();\n error.printStackTrace();\n error.getMessage();\n Utils.ping(mContext, getString(R.string.something_wrong));\n }\n });\n } else {\n Utils.ping(mContext, getString(R.string.internet_connection_error));\n }\n }", "@Override\r\n\tpublic int forget_pwd(userData user) {\n\t\ttry {\r\n\t\t\tString pwd = MD5.md5_salt(user.getUser_pwd());\r\n\t\t\tHashMap<String,String> t = new HashMap();\r\n\t\t\tt.put(\"key\", user.getKey());\r\n\t\t\tt.put(\"value\", user.getUser_phone());\r\n\t\t\tString phone = AES.decode(t);\r\n\t\t\tSystem.out.println(\"修改密码phone:\"+phone+\"final: \"+ pwd);\r\n\t\t\tthis.userRespository.forget_pwd(pwd, phone);\r\n\t\t\treturn 201;\r\n\t\t}catch(Exception e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 400;\r\n\t\t}\r\n\t\t\r\n\t}", "public String modifyPassword(ActionEvent evt) {\r\n\r\n\t\tString v$navigation = null;\r\n\r\n\t\tString v$oldPwd = getDefaultVue().getOldPassword();\r\n\t\tString v$newPwd = getDefaultVue().getNewPassword();\r\n\t\tString v$confirmPwd = getDefaultVue().getConfirmNewPassword();\r\n\t\t\r\n\t\tif(v$newPwd == null || v$newPwd.isEmpty()){\r\n\t\t\tFacesUtil.addInfoMessage(\"\", \"Nouveau mot de passe vide\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tif(v$newPwd.length()>30){\r\n\t\t\tFacesUtil.addInfoMessage(\"\", \"Taille du nouveau mot de passe trés longue, moins de 30 caractéres\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tif(v$oldPwd.equals(v$newPwd)){\r\n\t\t\tFacesUtil.addInfoMessage(\"\", \"Ancien mot de passe identique au nouveau\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\tif (v$newPwd.equals(v$confirmPwd)) {\r\n\t\t\ttry {\r\n\r\n\t\t\t\tAdminSvcoDeleguate.getSvcoUsr().modifierPwd(getDefaultVue().getLogin(), v$oldPwd, v$newPwd, SysGehoToolBox.getInfoUser());\r\n\r\n\t\t\t\t getDefaultVue().setModified(true);\r\n\t\t\t\t FacesUtil.addInfoMessage(\"\", \"Modification de mot de passe réussie\");\r\n\t\t\t}\r\n\r\n\t\t\tcatch (SysGehoAppException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (ServiceLocatorException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tFacesUtil.addWarnMessage(\"\", \"Confirmation différente du nouveau mot de passe\");\r\n\t\t}\r\n\r\n\t\treturn v$navigation;\r\n\t}", "String getUserPassword();", "public void reEnterAgentPassword(String reAPwd) throws Exception {\n\n\t\twdriver.findElement(By.xpath(\"//input[@placeholder='Please re-enter your password']\")).click();\n\t\twdriver.findElement(By.xpath(\"//input[@placeholder='Please re-enter your password']\")).clear();\n\t\twdriver.findElement(By.xpath(\"//input[@placeholder='Please re-enter your password']\")).sendKeys(reAPwd);\n\t}", "boolean hasPassword2();", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n String mail = resetMail.getText().toString();\n firebaseAuth.sendPasswordResetEmail(mail).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(LogIn.this,\"Reset Link sent.\",Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(LogIn.this,\"Error | Reset Link not sent.\",Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\r\n\t\tpublic void onClick(View view)\r\n\t\t{\n\t\t showForgotIdDialog();\r\n\t\t}", "public interface ForgottenPasswordInteractor {\n void resetPassword(ForgottenPasswordListener listener,String email);\n}", "public void reSend(View view)\n {\n try{\n if (AppUtils.isNetworkAvailable(this)) {\n new ForgotPassword(username).execute();\n }//end of network if\n else\n {\n appsingleton.SnackbarMessage(getResources().getString(R.string.st_internet_error),\"\",et_username);\n }\n }catch(Exception e){\n e.printStackTrace();\n appsingleton.ToastMessage(\"\" + e.getMessage());\n }\n }", "@Test(priority=1)\n public void resetPasswordTest() throws InterruptedException {\n\t teacherPOM.clickLostPassword(); \n\t teacherPOM.enterUsername(\"swapna18\");\n\t teacherPOM.clickSendMsgBtn();\n\t teacherPOM.checkMsg();\n\t try {\n\t\tscreenShot.captureScreenShot(\"Fourth\");\n\t} catch (Exception e) {\n\t \te.printStackTrace();\n\t}\n\t Thread.sleep(10000);\n\t driver.get(\"https://gmail.com\");\n\t teacherPOM.loginMyGmailid(\"testpurpose774\");\n\t teacherPOM.clickNext1();\n\t teacherPOM.loginMyGmail(\"Gautham@143\");\n\t teacherPOM.clickNext2();\n\t teacherPOM.checkMailForPassword();\n\t teacherPOM.checkPasswordLink();\n\t Thread.sleep(10000);\n\t driver.navigate().to(\"https://gmail.com\");\n\t teacherPOM.checkMailForPassword();\n\t teacherPOM.getPassword();\n\t \n\t }", "private void sendPwResetEmail(String email)\n {\n FirebaseAuth auth = FirebaseAuth.getInstance();\n String emailAddress = email;\n\n auth.sendPasswordResetEmail(emailAddress)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Log.d(TAG, \"Email sent.\");\n }\n }\n });\n }", "@Override\n public void onClick(View view) {\n final EditText emailField = new EditText(view.getContext());\n AlertDialog.Builder passwordResetDialog = new AlertDialog.Builder(view.getContext());\n passwordResetDialog.setIcon(android.R.drawable.ic_dialog_email)\n .setTitle(\"Reset password\")\n .setMessage(\"Enter your email to receive the reset link\")\n .setView(emailField)\n .setNegativeButton(\"NO\",null)\n .setPositiveButton(\"YES\", new DialogInterface.OnClickListener() {\n /**\n * Confirms password reset request\n * Sends an email to user to reset password\n * @param dialogInterface interface\n * @param i index\n */\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // Extract email address\n String mail = emailField.getText().toString();\n if (mail.length()==0){\n Toast.makeText(LogInActivity.this, \"Enter a valid email\", Toast.LENGTH_SHORT).show();\n return;\n }\n firebaseAuth.sendPasswordResetEmail(mail).addOnSuccessListener(new OnSuccessListener<Void>() {\n /**\n * Displays toast when password reset email is successfully sent\n * @param aVoid VarArgs\n */\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(LogInActivity.this, \"Email is send\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n /**\n * Displays email when password reset email fails to send\n * @param e exception\n */\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(LogInActivity.this, \"Unable to send the email\"+e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }\n });\n passwordResetDialog.create().show();\n }", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();" ]
[ "0.7318434", "0.72286946", "0.69949764", "0.69793886", "0.6927798", "0.68959534", "0.68718326", "0.68265975", "0.68159556", "0.67596704", "0.6702235", "0.66954213", "0.6644417", "0.6627165", "0.66226095", "0.65963393", "0.659602", "0.6594267", "0.65510994", "0.6531558", "0.65263313", "0.65148693", "0.6498477", "0.64476675", "0.6442497", "0.6440017", "0.64350295", "0.64260125", "0.64173496", "0.6416337", "0.64090824", "0.6406869", "0.6401501", "0.6390737", "0.63772213", "0.63757867", "0.6371636", "0.6370983", "0.63388616", "0.63261604", "0.6324325", "0.6285212", "0.62850136", "0.62813365", "0.62750596", "0.626436", "0.6263021", "0.62626576", "0.62569875", "0.6248445", "0.62324333", "0.6224126", "0.6203423", "0.616071", "0.6160641", "0.61529654", "0.61369646", "0.6132503", "0.6127858", "0.61242646", "0.61210763", "0.61131746", "0.6106873", "0.6105643", "0.60965675", "0.6095769", "0.6090297", "0.6085974", "0.60773593", "0.6076504", "0.60764533", "0.607389", "0.60627216", "0.60475415", "0.60458845", "0.60329545", "0.60285854", "0.60247314", "0.6020515", "0.60132605", "0.60060483", "0.6004888", "0.5988417", "0.5985484", "0.59841555", "0.59682125", "0.59630513", "0.5956771", "0.5945105", "0.5943992", "0.59404624", "0.5934376", "0.5919821", "0.5919088", "0.5914574", "0.5910721", "0.5910721", "0.5910721", "0.5910721", "0.5910721", "0.5910721" ]
0.0
-1
TODO Autogenerated method stub
@Override public ArrayList<CauThu> getDSCauThu(String maDoi) { return null; }
{ "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
Get Report List request sample returns a list of reports; by default the most recent ten reports, regardless of their acknowledgement status
private static void invokeGetReportList(MarketplaceWebService service, GetReportListRequest request) { try { GetReportListResponse response = service.getReportList(request); System.out.println("3454823177017127"); } catch (MarketplaceWebServiceException ex) { System.out.println("Caught Exception: " + ex.getMessage()); System.out.println("Response Status Code: " + ex.getStatusCode()); System.out.println("Error Code: " + ex.getErrorCode()); System.out.println("Error Type: " + ex.getErrorType()); System.out.println("Request ID: " + ex.getRequestId()); System.out.print("XML: " + ex.getXML()); System.out.println("ResponseHeaderMetadata: " + ex.getResponseHeaderMetadata()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(method = RequestMethod.GET, value = \"/getReports\")\r\n public List<Reports> getReports() {\r\n\r\n List<Reports> results = reportsRepository.getReportsByDate();\r\n return results;\r\n\r\n }", "List<ReportDescriptor> getReportDescriptors();", "@Path(\"/list\")\n @GET\n @Produces(XML)\n public Response getStorageReportList(){\n log.debug(\"Getting storage report list\");\n\n try {\n String xml = resource.getStorageReportList();\n return responseOkXml(xml);\n } catch (Exception e) {\n return responseBad(e);\n }\n }", "@Override\n public List getReports(String orderBy, Long count, String fromDate, String toDate) {\n return null;\n }", "public List<Integer> getReports(){\n\t\treturn reports;\n\t}", "String getReportsTo();", "public List<IncomingReport> list() throws DAOException;", "@GET\n @Path(\"/pending-reports\")\n @Produces(\"application/json;charset=UTF-8\")\n @NoCache\n @RolesAllowed({ \"admin\" })\n public List<ReportVo> getPendingReports(@QueryParam(\"lang\") String lang) {\n return reportService.getPendingReports(lang);\n }", "List<ReportSummary> getReportSummary(String reportType);", "java.util.List<com.google.cloud.osconfig.v1alpha.VulnerabilityReport> \n getVulnerabilityReportsList();", "public String[] getReports()\n {\n return null;\n }", "private static GetReportsResponse getReport(Analyticsreporting service) throws IOException {\n // Create the DateRange object.\n DateRange dateRange = new DateRange();\n dateRange.setStartDate(\"7DaysAgo\");\n dateRange.setEndDate(\"today\");\n\n // Create the Metrics object.\n Metric sessions = new Metric()\n .setExpression(\"ga:sessions\")\n .setAlias(\"sessions\");\n\n //Create the Dimensions object.\n Dimension browser = new Dimension()\n .setName(\"ga:browser\");\n\n // Create the ReportRequest object.\n ReportRequest request = new ReportRequest()\n .setViewId(VIEW_ID)\n .setDateRanges(Arrays.asList(dateRange))\n .setDimensions(Arrays.asList(browser))\n .setMetrics(Arrays.asList(sessions));\n\n ArrayList<ReportRequest> requests = new ArrayList<ReportRequest>();\n requests.add(request);\n\n // Create the GetReportsRequest object.\n GetReportsRequest getReport = new GetReportsRequest()\n .setReportRequests(requests);\n\n // Call the batchGet method.\n GetReportsResponse response = service.reports().batchGet(getReport).execute();\n\n // Return the response.\n return response;\n }", "private List<Integer> getTimeReports(HttpServletRequest request, int nbrOfReports) {\n\t\tList<Integer> timeReports = new ArrayList<Integer>();\n\t\tfor (int i=1; i<=nbrOfReports; i++) {\n\t\t\tString reportIDstr = request.getParameter(\"reportIDs\"+i);\n\t\t\tif (reportIDstr != null) {\n\t\t\t\tint reportID = Integer.parseInt(reportIDstr);\n\t\t\t\ttimeReports.add(reportID);\n\t\t\t}\n\t\t}\n\t\treturn timeReports;\n\t}", "public List<ReportData> getReportData() {\n return reportData;\n }", "public ReportResponse(List<ReportData> reportData) {\n this.reportData = reportData;\n }", "List<Report> selectAll();", "@GET\n @Path(\"/report\")\n @NotAuthenticated\n public Response getReport() {\n \n try {\n File design = opalRuntime.getFileSystem().getLocalFile(resolveFileInFileSystem(\"/report-templates/\" + name + \".rptdesign\"));\n if(!design.exists()) {\n return Response.status(Status.NOT_FOUND).build();\n }\n File reports = opalRuntime.getFileSystem().getLocalFile(resolveFileInFileSystem(\"/reports/\" + name));\n if(!reports.exists()) {\n if(!reports.mkdirs()) {\n return Response.serverError().build();\n }\n }\n File report = new File(reports, name + \"-\" + System.currentTimeMillis() + \".pdf\");\n reportService.render(\"PDF\", null, design.getAbsolutePath(), report.getAbsolutePath());\n if(report.exists()) {\n return Response.ok().build();\n } else {\n return Response.serverError().build();\n }\n } catch(Exception e) {\n e.printStackTrace();\n return Response.serverError().build();\n }\n }", "@Override\r\n\tpublic List<Report> getReport(Agents agent, Date from, Date to) {\n\t\treturn null;\r\n\t}", "public List<ReportDTO> getAllReports() {\r\n\r\n\t\tdateConverter = new DateConverter();\r\n\r\n\t\tList<Report> reports = (List<Report>) reportsRepository.findAll();\r\n\t\tList<ReportDTO> reportDTOs = new ArrayList<>();\r\n\r\n\t\tfor (Report report : reports) {\r\n\t\t\tReportDTO reportDTO = new ReportDTO();\r\n\t\t\treportDTO.setId(report.getId());\r\n\t\t\treportDTO.setCustomerName(report.getCustomer().getCustomerName());\r\n\t\t\treportDTO.setPlace(report.getPlace());\r\n\t\t\treportDTO.setOrderNumber(report.getOrderNumber());\r\n\t\t\treportDTO.setQualityLevel(report.getQualityLevel().getValue());\r\n\t\t\treportDTO.setTypeOfTesting(report.getTypeOfTesting());\r\n\t\t\treportDTO.setReportNumber(report.getReportNumber());\r\n\t\t\treportDTO.setExaminatedObject(report.getExaminatedObject());\r\n\t\t\treportDTO.setMeasuringEquipment(\r\n\t\t\t\t\treport.getMeasuringEquipment().getName() + \" \" + report.getMeasuringEquipment().getDeviceCode());\r\n\t\t\treportDTO.setTechnicalDocument(\r\n\t\t\t\t\treport.getTechnicalDocument().getNumber() + \" \" + report.getTechnicalDocument().getTitle());\r\n\r\n\t\t\treportDTO.setExaminationDate(dateConverter.createDateToString(report.getExaminationDate()));\r\n\t\t\treportDTO.setPerformer(report.getPerformer().getFirstName() + \" \" + report.getPerformer().getLastName());\r\n\t\t\treportDTO.setAprover(report.getPerformer().getFirstName() + \" \" + report.getPerformer().getLastName());\r\n\r\n\t\t\tList<ResultsOfExamination> resultsOfExaminations = resultsOfExaminationRepository.findByReport(report);\r\n\t\t\tList<ResultOfExaminationDTO> resultOfExaminationDTOs = new ArrayList<>();\r\n\r\n\t\t\tfor (ResultsOfExamination resultsOfExamination : resultsOfExaminations) {\r\n\t\t\t\tResultOfExaminationDTO resultOfExaminationDTO = new ResultOfExaminationDTO();\r\n\t\t\t\tresultOfExaminationDTO.setElementNumber(resultsOfExamination.getElementNumber());\r\n\t\t\t\tresultOfExaminationDTO\r\n\t\t\t\t\t\t.setDistanceFromReferencePoint(resultsOfExamination.getDistanceFromReferencePoint());\r\n\t\t\t\tresultOfExaminationDTO.setIndicationLength(resultsOfExamination.getIndicationLength());\r\n\t\t\t\tresultOfExaminationDTO.setImperfectionSymbol(resultsOfExamination.getImperfectionSymbol());\r\n\t\t\t\tresultOfExaminationDTO.setRemarks(resultsOfExamination.getRemarks());\r\n\t\t\t\tresultOfExaminationDTO.setResult(resultsOfExamination.getResult());\r\n\t\t\t\tresultOfExaminationDTOs.add(resultOfExaminationDTO);\r\n\t\t\t\treportDTO.setResultsOfExaminationtsList(resultOfExaminationDTOs);\r\n\t\t\t}\r\n\r\n\t\t\treportDTOs.add(reportDTO);\r\n\r\n\t\t}\r\n\t\treturn reportDTOs;\r\n\r\n\t}", "@Override\r\n\tpublic List<Report> getReport(Agents agent, Integer month) {\n\t\treturn null;\r\n\t}", "@RequestMapping(method = RequestMethod.GET)\n public ModelAndView getReportPage() {\n ModelAndView modelAndView = new ModelAndView();\n modelAndView.setViewName(\"report\");\n modelAndView.addObject(\"performers\", reportService.getAllPerformers());\n return modelAndView;\n }", "@RequestMapping(value = \"list\", method = RequestMethod.GET)\n public ModelAndView listReports(HttpServletRequest request, HttpServletResponse response, HttpSession session, RedirectAttributes redirectAttr) throws Exception {\n\n ModelAndView mav = new ModelAndView();\n mav.setViewName(\"/reports\");\n\n /* Get the list of programs in the system */\n List<reports> reports = reportmanager.getAllReports();\n\n mav.addObject(\"reports\", reports);\n\n return mav;\n\n }", "private List getReportIDList() throws Exception\r\n\t{\r\n\t\tfinal String hqlQuery = \"select id from edu.wustl.catissuecore.domain.\" +\r\n\t\t\t\t\"pathology.DeidentifiedSurgicalPathologyReport where \"\r\n\t\t\t\t+ CaTIESConstants.COLUMN_NAME_REPORT_STATUS\r\n\t\t\t\t+ \"='\"\r\n\t\t\t\t+ CaTIESConstants.PENDING_FOR_XML + \"'\";\r\n\t\tfinal List deidReportIDList = (List) CaCoreAPIService.executeQuery(hqlQuery,\r\n\t\t\t\tDeidentifiedSurgicalPathologyReport.class.getName());\r\n\t\treturn deidReportIDList;\r\n\t}", "public HashMap<String, String> getReports(){\n HashMap<String, String> reports = new HashMap<>();\n reports.put(KEY_REPORTS, pref.getString(KEY_REPORTS, null));\n return reports;\n }", "@Override\n public List<ReportRecord> getReport() {\n List<ReportRecord> toReturn = new ArrayList<>();\n toReturn.addAll(this.records);\n // Sort by ski-pass check-date\n toReturn.sort((o1, o2) -> o1.getCheckDate().compareTo(o2.getCheckDate()));\n // Sort by ski-pass id-number\n Collections.sort(toReturn);\n return toReturn;\n }", "public Report getReport();", "com.google.cloud.osconfig.v1alpha.VulnerabilityReport getVulnerabilityReports(int index);", "public nl.webservices.www.soap.InsolvencyReport[] getReports() {\n return reports;\n }", "public List<Report> downloadReports() {\n Instant now = Instant.now();\n\n return runWith(sftp -> {\n boolean isSuccess = false;\n\n try {\n SFTPFileTransfer transfer = sftp.getFileTransfer();\n\n List<Report> reports = sftp.ls(configProperties.getReportsFolder())\n .stream()\n .filter(this::isReportFile)\n .map(file -> {\n InMemoryDownloadedFile inMemoryFile = new InMemoryDownloadedFile();\n try {\n transfer.download(file.getPath(), inMemoryFile);\n return new Report(file.getPath(), inMemoryFile.getBytes());\n } catch (IOException exc) {\n throw new FtpException(\"Unable to download file \" + file.getName(), exc);\n }\n })\n .collect(toList());\n\n isSuccess = true;\n\n return reports;\n } catch (IOException exc) {\n throw new FtpException(\"Error while downloading reports\", exc);\n } finally {\n insights.trackFtpReportDownload(Duration.between(now, Instant.now()), isSuccess);\n }\n });\n }", "public void getAllReportes() throws IOException{\n okhttp3.Request request = new okhttp3.Request.Builder()\n .url(BASE_URL+\"/reportes\")\n .build();\n\n client.newCall(request).enqueue(new Callback(){\n\n @Override\n public void onFailure(Call call, IOException e) {\n\n }\n\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n System.out.println(response.body().string());\n }\n });\n }", "public GetReceivedReportResponse getReceivedReport(GetReceivedReport request) {\n\t\treturn null;\n\t}", "@GET(\"reporting/subscription\")\n Call<PageResourceBillingReport> getSubscriptionReports(\n @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page\n );", "@Override\n public Collection<QName> getSupportedReports() throws WebdavException {\n final Collection<QName> res = new ArrayList<>();\n res.addAll(super.getSupportedReports());\n res.addAll(supportedReports);\n\n return res;\n }", "public List<IncomingReport> listCompany(Company company) throws IllegalArgumentException, DAOException;", "@Override\npublic List<Object[]> getCustomerReport() {\n\treturn dao.getCustomerReport();\n}", "public GenericReportResponse getMininmalSprintReport(BasicReportRequestParams params, JiraRestClient restClient,\n JiraClient jiraClient) {\n logger.debug(\"getMininmalSprintReport\");\n String sprint = params.getSprintName();\n String project = params.getSubProjectName();\n Integer maxResults = 1000;\n Integer startAt = 0;\n int rvId = 0;\n int sprintId = 0;\n if (project == null || sprint == null) {\n logger.error(\"Error: Missing required paramaters\");\n throw new DataException(HttpStatus.BAD_REQUEST.toString(), \"Missing required paramaters\");\n }\n List<SprintReport> sprintReportList = new ArrayList<>();\n SprintReport sprintReport;\n Iterable<Issue> retrievedIssue = restClient.getSearchClient()\n .searchJql(\" sprint = '\" + sprint + \"' AND project = '\" + project + \"'\", 1000, 0, null).claim()\n .getIssues();\n Pattern pattern = Pattern.compile(\"\\\\[\\\".*\\\\[id=(.*),rapidViewId=(.*),.*,name=(.*),startDate=(.*),.*\\\\]\");\n Matcher matcher = pattern\n .matcher(retrievedIssue.iterator().next().getFieldByName(\"Sprint\").getValue().toString());\n if (matcher.find()) {\n sprintId = Integer.parseInt(matcher.group(1));\n rvId = Integer.parseInt(matcher.group(2));\n }\n while (retrievedIssue.iterator().hasNext()) {\n for (Issue issueValue : retrievedIssue) {\n Promise<Issue> issue = restClient.getIssueClient().getIssue(issueValue.getKey());\n sprintReport = new SprintReport();\n try {\n sprintReport.setIssueKey(issue.get().getKey());\n sprintReport.setIssueType(issue.get().getIssueType().getName());\n sprintReport.setStatus(issue.get().getStatus().getName());\n sprintReport.setIssueSummary(issue.get().getSummary());\n if (issue.get().getAssignee() != null) {\n sprintReport.setAssignee(issue.get().getAssignee().getDisplayName());\n } else {\n sprintReport.setAssignee(\"unassigned\");\n }\n if (issue.get().getTimeTracking() != null) {\n if (issue.get().getTimeTracking().getOriginalEstimateMinutes() != null) {\n sprintReport.setEstimatedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getOriginalEstimateMinutes() / 60D));\n } else {\n sprintReport.setEstimatedHours(\"0\");\n }\n if (issue.get().getTimeTracking().getTimeSpentMinutes() != null) {\n sprintReport.setLoggedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getTimeSpentMinutes() / 60D));\n } else {\n sprintReport.setLoggedHours(\"0\");\n }\n }\n sprintReportList.add(sprintReport);\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n }\n startAt += 1000;\n maxResults += 1000;\n retrievedIssue = restClient.getSearchClient()\n .searchJql(\" sprint = '\" + sprint + \"' AND project = '\" + project + \"'\", maxResults, startAt, null)\n .claim().getIssues();\n }\n for (int i = 0; i < 2; i++) {\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n }\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReport.setIssueKey(\"Removed Issues\");\n sprintReportList.add(sprintReport);\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n try {\n RemovedIssues removedIssues = removedIssuesService.get(jiraClient.getRestClient(), rvId, sprintId);\n for (SprintIssue issueValue : removedIssues.getPuntedIssues()) {\n Promise<Issue> issue = restClient.getIssueClient().getIssue(issueValue.getKey());\n sprintReport = new SprintReport();\n try {\n\n sprintReport.setIssueKey(issue.get().getKey());\n sprintReport.setIssueType(issue.get().getIssueType().getName());\n sprintReport.setStatus(issue.get().getStatus().getName());\n sprintReport.setIssueSummary(issue.get().getSummary());\n if (issue.get().getAssignee() != null) {\n sprintReport.setAssignee(issue.get().getAssignee().getDisplayName());\n } else {\n sprintReport.setAssignee(\"unassigned\");\n }\n if (issue.get().getTimeTracking() != null) {\n if (issue.get().getTimeTracking().getOriginalEstimateMinutes() != null) {\n sprintReport.setEstimatedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getOriginalEstimateMinutes() / 60D));\n } else {\n sprintReport.setEstimatedHours(\"0\");\n }\n if (issue.get().getTimeTracking().getTimeSpentMinutes() != null) {\n sprintReport.setLoggedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getTimeSpentMinutes() / 60D));\n } else {\n sprintReport.setLoggedHours(\"0\");\n }\n }\n sprintReportList.add(sprintReport);\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n }\n for (int i = 0; i < 2; i++) {\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n }\n sprintReport = new SprintReport();\n sprintReport.setIssueKey(\"Issues Added during Sprint\");\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n for (String issueValue : removedIssues.getIssuesAdded()) {\n Promise<Issue> issue = restClient.getIssueClient().getIssue(issueValue);\n sprintReport = new SprintReport();\n try {\n\n sprintReport.setIssueKey(issue.get().getKey());\n sprintReport.setIssueType(issue.get().getIssueType().getName());\n sprintReport.setStatus(issue.get().getStatus().getName());\n sprintReport.setIssueSummary(issue.get().getSummary());\n if (issue.get().getAssignee() != null) {\n sprintReport.setAssignee(issue.get().getAssignee().getDisplayName());\n } else {\n sprintReport.setAssignee(\"unassigned\");\n }\n if (issue.get().getTimeTracking() != null) {\n if (issue.get().getTimeTracking().getOriginalEstimateMinutes() != null) {\n sprintReport.setEstimatedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getOriginalEstimateMinutes() / 60D));\n } else {\n sprintReport.setEstimatedHours(\"0\");\n }\n if (issue.get().getTimeTracking().getTimeSpentMinutes() != null) {\n sprintReport.setLoggedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getTimeSpentMinutes() / 60D));\n } else {\n sprintReport.setLoggedHours(\"0\");\n }\n }\n sprintReportList.add(sprintReport);\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n }\n } catch (JiraException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n String filename = project + \"_\" + sprint + \"_minimal_report.csv\";\n filename = filename.replace(\" \", \"_\");\n ConvertToCSV exportToCSV = new ConvertToCSV();\n exportToCSV.exportToCSV(env.getProperty(\"csv.filename\") + filename, sprintReportList);\n GenericReportResponse response = new GenericReportResponse();\n response.setDownloadLink(env.getProperty(\"csv.aliaspath\") + filename);\n response.setReportAsJson(JSONUtils.toJson(sprintReportList));\n return response;\n }", "synchronized static public Report getReport() {\n return new Report(\n collectedEntrys,\n collectables.stream().sorted((a, b) -> a.collectableSince.compareTo(b.collectableSince))\n .collect(Collectors.toList()));\n }", "@Override\r\n\tpublic List<Report> getUserReportList(int userId) {\n\t\treturn reportMapper.selByUserId(userId);\r\n\t}", "@RequestMapping(value = \"/report\", method = RequestMethod.POST)\n\t@ResponseBody\n\tString getReport(HttpServletRequest request, HttpServletResponse response) {\n\n\t\t// Get the Logged in User\n\t\tString name = getLoggedUser();\n\n\t\tString email = request.getParameter(\"email\");\n\t\tRetrieveItems ri = new RetrieveItems(env);\n\t\tList<WorkItem> theList = ri.getItemsDataSQLReport(name);\n\t\tWriteExcel writeExcel = new WriteExcel();\n\t\tSendMessages sm = new SendMessages(env);\n\t\tjava.io.InputStream is = writeExcel.exportExcel(theList);\n\n\t\ttry {\n\t\t\tsm.sendReport(is, email);\n\t\t}catch (IOException e) {\n\t\t\te.getStackTrace();\n\t\t}\n\t\treturn \"Report is created\";\n\t}", "public void setReports(List<Integer> reports) {\n\t\tthis.reports = reports;\n\t}", "public List<IncomingReport> list(boolean discrepancy) throws DAOException;", "@Override\n public List<Report> getStatusList(){\n List<Report> statusList = null;\n statusList = adminMapper.getStatusList();\n return statusList;\n }", "@Override\r\n\tpublic List<Report> getAllReport(int firstRow, Integer pageSize,\r\n\t\t\tReportSearchVO reportSearchVO) throws SQLException {\n\t\treturn reportDao.getAllReport(firstRow, pageSize, reportSearchVO);\r\n\t}", "public void getReportManually() {\n File reportDir = new File(KOOM.getInstance().getReportDir());\n for (File report : reportDir.listFiles()) {\n //Upload the report or do something else.\n }\n }", "@Override\r\n\tpublic List<ReportAndSummary> findAll() {\n\t\tList<ReportAndSummary> result = reportAndSummaryDao.findAll();\r\n\t\treturn result;\r\n\t}", "@Query(value = \"Select t From TestReport t where t.testResult = null\")\n\tpublic List<TestReport> getPendingUpdateTestReports();", "@GetMapping(\"/getWeeklyRecords\")\n public ResponseEntity< List<Record> > getWeeklyRecords(){\n return ResponseEntity.ok().body(this.recordService.getWeeklyRecords());\n }", "protected Map<Report, Integer> getReports() {\n return reports;\n }", "public int getReportCount ()\n {\n return reportCount;\n }", "Iterable<TableReportEntry> getReportEntries(String reportId, AllTablesReportQuery query);", "@Override\r\n\tpublic List<Report> getReport(Date from,Date to) {\r\n\t\treturn jdbcTemplate.query(SQLConstants.SQL_SELECT_ALL_FOR_SUPERADMIN_FROM_N_TO, new RowMapper<Report>() {\r\n\t\t\t@Override\r\n\t\t\tpublic Report mapRow(ResultSet rs, int arg1) throws SQLException {\r\n\t\t\t\tReport report = new Report();\r\n\t\t\t\treport.setPaymentId(rs.getInt(1));\r\n\t\t\t\t//change the date format\r\n\t\t\t\treport.setPaymentTime(rs.getDate(2));\r\n\t\t\t\treport.setTransactionId(rs.getInt(3));\r\n\t\t\t\treport.setUserId(rs.getInt(5));\r\n\t\t\t\treport.setPayment_by(rs.getString(6));\r\n\t\t\t\treport.setBank_acc_id(rs.getInt(8));\r\n\t\t\t\treport.setAmount(rs.getInt(9));\r\n\t\t\t\treport.setStatus(rs.getInt(10));\r\n\t\t\t\treturn report;\r\n\t\t\t}\r\n\t\t}, from, to);\r\n\t}", "java.util.List<? extends com.google.cloud.osconfig.v1alpha.VulnerabilityReportOrBuilder> \n getVulnerabilityReportsOrBuilderList();", "@RequestMapping(value = {\"/report/list\"}, method = RequestMethod.GET)\n public ModelAndView confirmReport() {\n ModelAndView mav = new ModelAndView();\n mav.addObject(\"reportList\", adminReportSearchService.reportList());\n mav.setViewName(\"/admin/mReport\");\n\n return mav;\n }", "@GET\n @Produces(XML)\n public Response getLatestStorageReport(){\n log.debug(\"Getting the latest storage report\");\n\n try {\n InputStream stream = resource.getLatestStorageReport();\n if(null != stream) {\n return responseOkXmlStream(stream);\n } else {\n return responseNotFound();\n }\n } catch (Exception e) {\n return responseBad(e);\n }\n }", "public ArrayList<ArrayList<Double>> getReportsFromServer(LocalDate date)\n {\n\t //Go to DB and ask for reports of a specific date\n\t return null;\n }", "Report createReport();", "public void receiveReport(Report report) {\n\t\tif (report.getClass() == MonitoringListReport.class) {\n\t\t\tMonitoringListReport answer = (MonitoringListReport) report;\n\t\t\treportResponse = answer.getMonitorings();\n\t\t}\n\t}", "int getVulnerabilityReportsCount();", "void onGetAllDataReport(List<Report> reports, Sumary sumary);", "public Account getReportsToAccount() {\n return reportsToAccount;\n }", "public RouteLegCache.Report getReport() {\n\n return RouteLegCache.Report.builder()\n .cacheSize(cache.size())\n .build();\n }", "UsageReport[] getUsageReportsBatch(int batchSize);", "@Override\n\tpublic List<ReportDataSource> getListReportById(String dataSourceId) {\n\t\treturn myBatisDao\n\t\t\t\t.getList(\n\t\t\t\t\t\t\"com.infosmart.mapper.ReportDesignMapper.listReportByDataSourceId\",\n\t\t\t\t\t\tdataSourceId);\n\t}", "private ReportRequest getAdReport(Calendar from, Calendar to) {\r\n\t\tAdPerformanceReportRequest request = new AdPerformanceReportRequest();\r\n\t\trequest.setFormat(ReportFormat.CSV);\r\n\t\trequest.setReportName(\"Ad Report\");\r\n\t\trequest.setAggregation(NonHourlyReportAggregation.DAILY);\r\n\t\trequest.setReturnOnlyCompleteData(false);\r\n\r\n\t\tAccountThroughAdGroupReportScope scope = new AccountThroughAdGroupReportScope();\r\n\t\tArrayOflong accountIds = new ArrayOflong();\r\n\t\taccountIds.getLongs().add(authorizationData.getAccountId());\r\n\t\tscope.setAccountIds(accountIds);\r\n\t\tscope.setCampaigns(null);\r\n\t\tscope.setAdGroups(null); \r\n\t\trequest.setScope(scope);\r\n\r\n\t\tArrayOfAdPerformanceReportColumn value = new ArrayOfAdPerformanceReportColumn();\r\n\t\tList<AdPerformanceReportColumn> columns = value.getAdPerformanceReportColumns();\r\n\t\tString adFields = adsProperties.getProperty(\"api.bing.adPerformanceReport.fields\");\r\n\t\tif (adFields != null && adFields.length() > 2) {\r\n\t\t\tfor (String fieldId : adFields.split(\",\")) {\r\n\t\t\t\tcolumns.add(AdPerformanceReportColumn.fromValue(fieldId));\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_ID);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_TITLE);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.TITLE_PART_1);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.TITLE_PART_2);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_DESCRIPTION);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_GROUP_ID);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_GROUP_NAME);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_GROUP_STATUS);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_STATUS);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.CAMPAIGN_ID);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.CAMPAIGN_NAME);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.CLICKS);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.COST_PER_CONVERSION);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.SPEND);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.CONVERSION_RATE);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.IMPRESSIONS);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.DESTINATION_URL);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.FINAL_URL);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.DISPLAY_URL);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.TIME_PERIOD);\r\n\t\t}\r\n\t\trequest.setColumns(value);\r\n\r\n\t\tReportTime reportTime = new ReportTime();\r\n\t\tDate start = new Date();\r\n\t\tDate end = new Date();\r\n\t\tstart.setDay(from.get(Calendar.DAY_OF_MONTH));\r\n\t\tstart.setMonth(from.get(Calendar.MONTH)+1);\r\n\t\tstart.setYear(from.get(Calendar.YEAR));\r\n\t\tend.setDay(to.get(Calendar.DAY_OF_MONTH));\r\n\t\tend.setMonth(to.get(Calendar.MONTH)+1);\r\n\t\tend.setYear(to.get(Calendar.YEAR));\r\n\t\treportTime.setCustomDateRangeStart(start);\r\n\t\treportTime.setCustomDateRangeEnd(end);\r\n\t\trequest.setTime(reportTime);\r\n\r\n\t\treturn request;\r\n\t}", "@Nested\n public final JDependReports getReports() {\n return reports;\n }", "@Override\r\n\tpublic int selectReport(List<ReportSearchVO> list, HttpServletResponse response)\r\n\t\t\tthrows SQLException {\n\t\tint id = 0;\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tint num = reportDao.selectReport(list.get(i));\r\n\t\t\tif (num == 0) {\r\n\t\t\t\tcontinue;\r\n\t\t\t} else {\r\n\t\t\t\tid += 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn id;\r\n\t}", "private void requestDeleteReport() throws ERTRestApiException, JSONException {\n final Cursor cursor = getReportStatusCursor(SyncStatus.DELETED_REPORT);\n\n if(cursor.getCount() != 0) {\n cursor.moveToFirst();\n\n\n do {\n final Long reportBaseId = cursor.getLong(\n cursor.getColumnIndex(ReportEntry._ID));\n ExpenseReport expenseReport = Utility.createExpenseReportFromCursor\n (cursor);\n final int reportId = expenseReport.getId();\n\n // update the status of delete to true in the mean time\n // if there is an error from the server, the delete\n // status should be changed to false\n ContentValues contentValues = new ContentValues();\n contentValues.put(ReportEntry.COLUMN_IS_DELETED, \"true\");\n getContext().getContentResolver().update(\n ReportEntry.buildReportUriNoNetworkSync(reportId),\n contentValues,\n null,\n null\n );\n\n ERTRestApi.apiDeleteReport(\n reportId,\n new ERTRestApi.ERTRestApiListener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n // delete all expense line items\n Cursor expenseLineItemCursor = getContext().getContentResolver().query(\n ReportContract.ReportEntry.buildReportExpense(reportBaseId),\n null, null, null, null\n );\n int expenseLineItemDeleteCount = 0;\n if(expenseLineItemCursor.getCount() > 0) {\n expenseLineItemCursor.moveToFirst();\n do {\n expenseLineItemDeleteCount += getContext().getContentResolver().delete(\n ExpenseEntry.buildExpenseUri(expenseLineItemCursor.getInt(expenseLineItemCursor.getColumnIndex(ExpenseEntry._ID))),\n null, null\n );\n } while (expenseLineItemCursor.moveToNext());\n }\n expenseLineItemCursor.close();\n Log.i(LOG_TAG, \"Deleted \" + expenseLineItemDeleteCount + \" expense line items\");\n\n getContext().getContentResolver().delete(\n ReportEntry.buildReportUriNoNetworkSync\n (reportBaseId),\n null,\n null\n );\n Log.d(LOG_TAG, \"Report \" + reportBaseId + \" \" +\n \"deleted\");\n }\n },\n new ERTRestApi.ERTRestApiErrorListener() {\n @Override\n public void onErrorResponse(ERTRestApi\n .ERTRestApiError error) {\n // try delete again\n /*updateReportSyncStatus(reportBaseId,\n SyncStatus.DELETED_REPORT);*/\n\n // the delete failed, put the report back in\n // the list\n ContentValues contentValues = new\n ContentValues();\n contentValues.put(ReportEntry\n .COLUMN_IS_DELETED, \"false\");\n getContext().getContentResolver().update(\n ReportEntry\n .buildReportUriNoNetworkSync\n (reportId),\n contentValues,\n null,\n null\n );\n\n Log.e(LOG_TAG, error.getMessage());\n }\n }\n );\n\n updateReportSyncStatus(reportBaseId,SyncStatus.SYNC_IN_PROGRESS);\n\n } while (cursor.moveToNext());\n\n }\n cursor.close();\n }", "@RequestMapping(value = \"/report/xls\")\r\n\tpublic ModelAndView generateXLSReport() {\r\n\r\n\t\tMap<String, Object> parameterMap = new HashMap<String, Object>();\r\n\r\n\t\tList<Person> personList = personService.getAll();\r\n\r\n\t\tJRDataSource person_list = new JRBeanCollectionDataSource(personList);\r\n\r\n\t\tparameterMap.put(\"person_list\", person_list);\r\n\r\n\t\treturn new ModelAndView(\"personReportList_xls\", parameterMap);\r\n\r\n\t}", "ListView getManageReportListView();", "@Override\r\n\tpublic List<Report> getReport(Travel travel, Date from, Date to) {\n\t\treturn null;\r\n\t}", "@RequestMapping(value = \"getReportList\", method = RequestMethod.POST)\n public ModelAndView getReportList(ModelAndView modelAndView,\n @RequestParam(value = \"hiddenStartDate\", required = false) String startDate,\n @RequestParam(value = \"hiddenEndDate\", required = false) String endDate,\n @RequestParam(value = \"hiddenPerformer\", required = false) String performer) {\n\n if (startDate.equals(\"\") & endDate.equals(\"\") & performer.equals(\"\")) {\n modelAndView.addObject(\"resultReportsList\", reportService.getAllEntity());\n } else {\n modelAndView.addObject(\"resultReportsList\", reportService.getAllEntityByPeriodAndPerformer(startDate, endDate, performer));\n }\n modelAndView.setViewName(\"report\");\n modelAndView.addObject(\"performers\", reportService.getAllPerformers());\n return modelAndView;\n }", "public ActionReport getActionReport();", "ListView getShowReportListView();", "public String getReportsToBeGenerated(String reportType) {\r\n\t\tString query = \"\";\r\n\t\t\r\n\t\ttry (Connection connection = DatabaseConnection.getMySQLConnection();\r\n\t\t\t PreparedStatement stmt = connection.prepareStatement(query);) {\r\n\t\t\tResultSet result = stmt.executeQuery();\r\n\t\t\tStringJoiner reports = new StringJoiner(\",,\");\r\n\t\t\twhile (result.next()) {\r\n\t\t\t\treports.add(result.getString(\"REPORT_NAME\"));\r\n\t\t\t}\r\n\t\t\treturn reports.toString();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new ReportGenerationException(\"An error occurred while retrieving reports to be generated.\", e);\r\n\t\t}\r\n\t}", "@Path(\"/{reportID: [^?]+}\")\n @GET\n @Produces(XML)\n public Response getStorageReport(@PathParam(\"reportID\")\n String reportId){\n log.debug(\"Getting storage report with ID: \" + reportId);\n\n try {\n InputStream stream = resource.getStorageReport(reportId);\n if(null != stream) {\n return responseOkXmlStream(stream);\n } else {\n return responseNotFound();\n }\n } catch (Exception e) {\n return responseBad(e);\n }\n }", "private void getReport() {\n\t\tdialog = ProgressDialog.show(this, \"\", \" Please wait...\", true);\n dialog.setCancelable(true);\n\t\tSharedPreferences pref = this.getSharedPreferences(\"User\", Activity.MODE_PRIVATE);\n\t\tString accessToken = pref.getString(\"access_token\", null);\n\t\tNetworkEngine.getInstance().getSeatReport(accessToken, bus_id, agent_id, new Callback<List<SeatReport>>() {\n\t\t\t\n\t\t\tpublic void success(List<SeatReport> arg0, Response arg1) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tseatReports = new ArrayList<SeatReport>();\n\t\t\t\tseatReports = arg0;\n\t\t\t\tlvSeatDetails.setAdapter(new SeatDetailsbyAgentAdapter(SeatDetailsbyAgentActivity.this, seatReports));\n\t\t\t\tdialog.cancel();\n\t\t\t}\n\t\t\t\n\t\t\tpublic void failure(RetrofitError arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.cancel();\n\t\t\t\tLog.i(\"\",\"Hello Error Response Code: \"+arg0.getResponse().getStatus());\n\t\t\t}\n\t\t});\n\t}", "@GetMapping(\"/getMonthlyRecords\")\n public ResponseEntity< List<Record> > getMonthlyRecords(){\n return ResponseEntity.ok().body(this.recordService.getMonthlyRecords());\n }", "@Override\n public FeedbackReportResource getFeedbackReportData(int questionId) {\n QuestionModel byQuestionId = questionRepository.findByQuestionId(questionId);\n if (byQuestionId != null) {\n List<AnswerModel> answerList = answerRepository.findAllById(questionId);\n List<Integer> answerIds = answerList.stream().map(AnswerModel::getId).collect(Collectors.toList());\n List<FeedbackReportModel> feedbackReportModelList = feedbackRepository.getFeedbackCountByQuestionId(answerIds);\n\n FeedbackReportResource feedbackReportResource = new FeedbackReportResource();\n feedbackReportResource.setQuestion(byQuestionId.getQuestion());\n\n\n List<FeedbackReportResource.FeedbackAnswerReportResource> answerReportList = feedbackReportModelList.stream().map(feedbackReportModel -> {\n String answerById = answerRepository.getAnswerById(feedbackReportModel.getAnswerId());\n FeedbackReportResource.FeedbackAnswerReportResource reportResource = new FeedbackReportResource.FeedbackAnswerReportResource();\n reportResource.setAnswer(answerById);\n reportResource.setAnswerCount(feedbackReportModel.getCount());\n return reportResource;\n\n }).collect(Collectors.toList());\n feedbackReportResource.setAnswerReportResources(answerReportList);\n return feedbackReportResource;\n }\n return null;\n }", "@Headers({\n \t\"Content-Type:application/vnd.api+json\" \n })\n @GET(\"api/v2/reports/{id}.json_api\")\n Call<Report> show(\n @retrofit2.http.Path(\"id\") Integer id, @retrofit2.http.Query(\"include\") String include\n );", "@GetMapping(value = \"/surveysPWA\", produces = \"application/json\")\n\t@ResponseStatus(HttpStatus.OK)\n\t@ApiOperation(value = \"Retrieve the list of available surveys\", tags = \"surveys\")\n\t@ApiResponses(value = { @ApiResponse(code = 200, message = \"The list of surveys has been successfully retrieved\"),\n\t\t\t@ApiResponse(code = 404, message = \"Survey not found\")})\n\t@ResponseBody\n\tpublic List<Survey> getSurveysPWA(@ApiParam(value = \"The id of the template\", required = false) @RequestParam(required = false) String templateId,\n\t\t\t@ApiParam(value = \"The user id\", required = false) @RequestParam(required = false) String userId,\n\t\t\t@ApiParam(value = \"Start date\", required = false) @RequestParam(required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate startDate,\n\t\t\t@ApiParam(value = \"End date\", required = false) @RequestParam(required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate endDate,\n\t\t\t@ApiParam(value = \"The status of the ticket\", required = false) @RequestParam(required = false) Status status, \n\t\t\t@ApiParam(value = \"Zero-based page index\", required = false) @RequestParam(required = false) Integer page,\n\t\t\t@ApiParam(value = \"The size of the page to be returned\", required = false) @RequestParam(required = false) Integer size,\n\t\t\t@ApiParam(value = \"Sort the collection in ascending order\", required = false) @RequestParam(required = false, defaultValue = \"false\") boolean sortAsc) \n\t\t\t\t\tthrows ResourceNotFoundException, ParseException {\n\n\t\tlogger.debug(\"GET surveys: start\");\n\n\t\tif (size == null)\n\t\t\tsize = Integer.valueOf((size != null) && (size.intValue() > 0) ? size.intValue() : 10);\n\n\t\tif (page == null)\n\t\t\tpage = 0;\n\n\t\tList<Survey> surveys = surveyService.findSurveys(templateId, userId, startDate, endDate, status, page,\n\t\t\t\tsize, sortAsc);\n\t\t\n\t\tif (surveys.isEmpty())\n\t\t\tthrow new ResourceNotFoundException(\"Surveys\");\n\n\t\treturn surveys;\n\t}", "public static void generateReport() {\n PrintImpl printer = new PrintImpl(realtorLogImpl, propertyLogImpl);\n printer.generateReport(REQUESTS_FILE);\n }", "@RequestMapping(value = \"/getTodayReport\", method = RequestMethod.GET)\r\n public @ResponseBody String getDayWiseReport() {\r\n logger.info(\"in ReportGenerationController getDayWiseReport()\");\r\n\r\n String reportDetails = reportGenerationService.getTodayReport();\r\n\r\n return reportDetails;\r\n }", "public Collection<JasperReport> selectJasperReportsList( Plugin plugin )\n {\n \tCollection<JasperReport> reportList = new ArrayList<JasperReport>( );\n \t\n \ttry ( DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECTALL, plugin ) )\n \t{\n \t\tdaoUtil.executeQuery( );\n\n while ( daoUtil.next( ) )\n {\n JasperReport report = new JasperReport( );\n\n report.setIdReport( daoUtil.getInt( 1 ) );\n report.setCode( daoUtil.getString( 2 ) );\n report.setUrl( daoUtil.getString( 3 ) );\n report.setPool( daoUtil.getString( 4 ) );\n\n reportList.add( report );\n } \t \n \t}\n \t\n return reportList;\n }", "public static List<DailyReport> getDailyReportList(String prj_id, String sub_id) throws Exception {\n List<DailyReport> result = new LinkedList<DailyReport>();\n SC sc = null;\n try {\n sc = new SC(new ConnectionEx(Const.ARE));\n String sql = \"SELECT DISTINCT(SUBSTRING(ts,1,8)) AS dl FROM data WHERE project_id = \" + prj_id\n + \" AND subject_id = \" + sub_id + \" ORDER BY dl DESC\";\n logger.debug(sql);\n sc.execute(sql);\n\n while (sc.next()) {\n DailyReport dr = new DailyReport();\n dr.setDate(sc.getString(\"dl\"));\n Calendar c = Calendar.getInstance();\n c.set(Calendar.YEAR, Integer.parseInt(dr.getDate().substring(0, 4)));\n c.set(Calendar.MONTH, Integer.parseInt(dr.getDate().substring(4, 6)) - 1);\n c.set(Calendar.DAY_OF_MONTH, Integer.parseInt(dr.getDate().substring(6, 8)));\n dr.setText(TimeUtil.DISPLAY_DATE_FORMAT.format(c.getTime()));\n result.add(dr);\n\n dr.setDuration(TimeUtil.formatSecond(getDuration(prj_id, sub_id, dr.getDate())));\n }\n } catch (Exception e) {\n logger.error(e.getMessage(), e);\n throw e;\n } finally {\n try {\n sc.closeAll();\n } catch (Exception e) {\n logger.error(e.getMessage(), e);\n }\n }\n return result;\n }", "public String getReport() {\n return reportDoc.toString();\n }", "@Security.Authenticated(Authenticators.Admin.class)\n public Result reportedComments() {\n List<Report.ReportHelper> list = Report.getAllReports();\n return ok(reportedcommentslist.render(list));\n }", "@RequestMapping(value = \"/get.json\", method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic ResultDto getReportByProjectID(Integer projectID,\n\t\t\tHttpServletRequest request, HttpServletResponse reponse) {\n\t\tlogger.info(\"Call report/get.json\");\n\t\ttry {\n\t\t\tList<Map<String, Object>> reportMap = this.reportService\n\t\t\t\t\t.getReportByProjectID(projectID);\n\n\t\t\treponse.setStatus(Constant.HTTP_OK);\n\t\t\treturn new ResultDto(Constant.ACK, Constant.SUCCEED, reportMap);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlogger.info(\n\t\t\t\t\t\"Call report/get.json met error beacuse of database error\",\n\t\t\t\t\te);\n\t\t\treponse.setStatus(Constant.SERVER_ERROR);\n\t\t\treturn new ResultDto(Constant.NACK, \"get report error.\", null);\n\t\t}\n\t}", "@Override\n public ResponseEntity<?> createReport(OutputReport report) throws IOException, MessagingException {\n Date endDate = midnight();\n Date startDate = midnight();\n if (report.getReportType() == 0) {\n endDate = midnight();\n startDate = setDateBefore(1);\n } else if (report.getReportType() == 1) {\n endDate = midnight();\n startDate = setDateBefore(7);\n } else if (report.getReportType() == 2) {\n endDate = midnight();\n startDate = setDateBefore(30);\n } else if (report.getReportType() == 3) {\n endDate = new Date(report.getEndDate());\n startDate = new Date(report.getStartDate());\n }\n ExcelHelper.writeExcel(report.getReportItemList(), \"NiceJavaBooks.xls\", report.getTotalRevenue());\n Place place = placeRepository.findById(report.getPlaceId()).get();\n String content = \"\";\n if(report.getReportType() == 0){\n content = \"Daily sales report\";\n }else if(report.getReportType() == 1){\n content = \"Weekly sales report\";\n }else if(report.getReportType() == 2){\n content = \"Monthly sales report\";\n }else if(report.getReportType() == 3){\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\n content = \"Sales report from \"+formatter.format(startDate)+\" to \"+formatter.format(endDate);\n }\n sendEmail(new File(\"NiceJavaBooks.xls\"), place.getMail(), content);\n return ResponseEntity.ok(\"OK\");\n }", "@Override\r\n\tpublic List<Report> getReport(Travel travel, Integer month) {\n\t\treturn null;\r\n\t}", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "public Integer getReportId() {\n return reportId;\n }", "PageInfo list(Date beginDate, Date endDate, List<Integer> resources, int pageNo, int pageSize);", "private void getTargetReports(ArrayList<TargetReport> reports)\n\t{\n\t\t// initialize null default value to pass if no connection\n\t\tdouble[] defaultValue = new double[0];\n\t\t\n\t\t// get relevant values\n\t\tdouble[] centerXs = Robot.targetRecievingTable.getNumberArray(\"centerX\", defaultValue);\n\t\tdouble[] centerYs = Robot.targetRecievingTable.getNumberArray(\"centerY\", defaultValue);\n\t\tdouble[] areas = Robot.targetRecievingTable.getNumberArray(\"area\", defaultValue);\n\t\tdouble[] widths = Robot.targetRecievingTable.getNumberArray(\"width\", defaultValue);\n\t\tdouble[] heights = Robot.targetRecievingTable.getNumberArray(\"height\", defaultValue);\n\t\tdouble[] solidities = Robot.targetRecievingTable.getNumberArray(\"solidity\", defaultValue);\n\t\t\n\t\t// for each given, create a new object\n\t\t//ArrayList<TargetReport> reports = new ArrayList<TargetReport>();\n\t\tint i = 0;\n\t\twhile (\ti < centerXs.length && \n\t\t\t\ti < centerYs.length && \n\t\t\t\ti < areas.length && \n\t\t\t\ti < widths.length && \n\t\t\t\ti < heights.length && \n\t\t\t\ti < solidities.length)\n\t\t{\n\t\t\t// it will auto-initialize further scores\n\t\t\treports.add(new TargetReport(centerXs[i],\n\t\t\t\t\t\t\t\t\t centerYs[i],\n\t\t\t\t\t\t\t\t\t areas[i], \n\t\t\t\t\t\t\t\t\t widths[i],\n\t\t\t\t\t\t\t\t\t heights[i],\n\t\t\t\t\t\t\t\t\t solidities[i],\n\t\t\t\t\t\t\t\t\t IDEAL_ASPECT_RATIO,\n\t\t\t\t\t\t\t\t\t IDEAL_AREA_RATIO));\n\t\t\ti++;\n\t\t}\n\t}", "public interface ReportControllerInterface {\n /**\n * Find all list.\n *\n * @return the list\n */\n public List<ItemInfo> FindAll();\n}", "@Override\n public Report getReport() {\n return null;\n }", "public void clearReports()\n {\n reports.clear();\n }", "public String getReportId() {\r\n return reportId;\r\n }", "public abstract void getReport(java.io.Writer writer);", "public Object getReports(String indicatorName, int indicatorId,\n\t\t\tint startTimeperiod, int endTimeperiod);", "@GET\n @Path(\"/\")\n public List<HashMap<String, String>> getAllLists() {\n return mailChimpService.getAllLists();\n }" ]
[ "0.7072525", "0.6873185", "0.67181987", "0.6599422", "0.65726197", "0.6399923", "0.6327831", "0.632128", "0.62480885", "0.6233416", "0.62065446", "0.6197544", "0.6175207", "0.6163015", "0.6138302", "0.61346805", "0.6103605", "0.6097305", "0.6039529", "0.60188025", "0.59855354", "0.59439296", "0.587295", "0.58586895", "0.5852766", "0.58418566", "0.5834274", "0.58274084", "0.5811421", "0.57556695", "0.57416767", "0.57400644", "0.5719446", "0.5684472", "0.56649965", "0.5631339", "0.5608942", "0.5608665", "0.5587826", "0.5569227", "0.5560466", "0.5550325", "0.5537712", "0.5536526", "0.5523422", "0.5521258", "0.55025434", "0.5480761", "0.5477285", "0.5475731", "0.5451926", "0.54388744", "0.5413542", "0.5380889", "0.53805244", "0.5377154", "0.53485405", "0.5320883", "0.5309867", "0.53082836", "0.5299073", "0.5283083", "0.5279961", "0.5259418", "0.5252014", "0.52489483", "0.52444863", "0.52238035", "0.5216048", "0.52113795", "0.5208472", "0.5207198", "0.5184567", "0.51759666", "0.51671493", "0.5166948", "0.51627624", "0.515525", "0.5135228", "0.51239955", "0.51183575", "0.51101154", "0.5095914", "0.50934803", "0.5092603", "0.5084557", "0.5082051", "0.5068026", "0.50548935", "0.50473225", "0.50431705", "0.5041481", "0.50377077", "0.5032126", "0.5019525", "0.50154644", "0.5015088", "0.50109935", "0.50070953", "0.50005335" ]
0.63838637
6
TODO Autogenerated method stub
@Override public Object getItem(int arg0) { return null; }
{ "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
TODO Autogenerated method stub
@Override public long getItemId(int position) { return 0; }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
Raw height and width of image
public int calculateInSampleSize( BitmapFactory.Options options, int reqWidth, int reqHeight) { final int height = options.outHeight; final int width = options.outWidth; int inSampleSize = 1; if (height > reqHeight || width > reqWidth) { if (width > height) { inSampleSize = Math.round((float)height / (float)reqHeight); } else { inSampleSize = Math.round((float)width / (float)reqWidth); } } return inSampleSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getImageHeight() {\n\treturn height;\n }", "public int getImageWidth() {\n\treturn width;\n }", "private void getImgSize(){\n imgSizeX = 1080; //mAttacher.getDisplayRect().right - mAttacher.getDisplayRect().left;\n imgSizeY = 888.783f; //mAttacher.getDisplayRect().bottom - mAttacher.getDisplayRect().top;\n }", "public int getImageHeight()\n\t{\n\t\treturn imgHeight;\n\t}", "public int getImageHeight() {\n\t\treturn imgHeight;\n\t}", "@Test\n public void testImage() {\n int expected = 4;\n assertEquals(expected, image.getHeight());\n assertEquals(expected, image.getWidth());\n }", "public int getImageWidth()\n\t{\n\t\treturn imgWidth;\n\t}", "public int getImageHeight()\n {\n \n int retVal = getImageHeight_0(nativeObj);\n \n return retVal;\n }", "public int getImageWidth() {\n\t\treturn imgWidth;\n\t}", "public int height() {\n return picture.height();\n }", "public int height() \n {\n return this.picture.height();\n }", "public int getArea(){\n return imageArea;\n }", "public Dimension getImageSize() {\n\t\treturn null;\n\t}", "public int[] getActualSize() {\n int[] actualSize = new int[2];\n\n actualSize[0] = originalImage.getWidth();\n actualSize[1] = originalImage.getHeight();\n\n return actualSize;\n }", "public int getImageWidth()\n {\n \n int retVal = getImageWidth_0(nativeObj);\n \n return retVal;\n }", "public Dimension getSize()\n\t{\n\t\treturn new Dimension(image.getWidth(),image.getHeight());\n\t}", "public int height() {\n return picture().height();\n }", "public int getImage();", "public native int getWidth() throws MagickException;", "public interface Image {\n public String getPath();\n\n public String getFormat();\n\n public String getWidth();\n\n public String getHeight();\n\n}", "public int width() {\n return picture.width();\n }", "public static int[] getImageWidthHeight(ImageData[][] imageData){\n ImageData lastImage = imageData[imageData.length-1][imageData.length-1];\n int wid = lastImage.w +lastImage.wIndex;\n int hei = lastImage.h + lastImage.hIndex;\n //Print Details\n System.out.println(\"Last ImageWidthHeight=== Width=\"+wid+\" Height =\"+hei);\n return new int[] {wid,hei};\n }", "public native int getHeight() throws MagickException;", "public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }", "BufferedImage getImage();", "BufferedImage getImage();", "BufferedImage getImage();", "public int width() \n {\n return this.picture.width();\n }", "public int getHeight() {\n return fullPhoto.getHeight();\n }", "int getImgDataCount();", "public int imHeight() {\n\t\treturn image.getHeight(this);\n\t}", "public int getSizeY() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeY;\r\n}", "@Override\r\n public byte[] getCustomImageInBytes() {\r\n\r\n return imageInByte;\r\n }", "public float getIMG(){\n return profile.getImg();\n }", "public String getSize() {\n return fullPhoto.getSize();\n }", "public int getPixelSize() {\n\t\treturn pixelSize;\n\t}", "public int width() {\n return picture().width();\n }", "public int imWidth() {\n\t\treturn image.getWidth(this);\n\t}", "public Rectangle getRect() {\n return new Rectangle(x,y,(imageWeight-50),(imageHeight-50));\n }", "public int getWidth() {\n return fullPhoto.getWidth();\n }", "public abstract int getNormalizedHeight();", "int getMaxRawImages();", "public double getPixelSize() {\n\t\treturn 0;\n\t}", "@Schema(example = \"2186\", description = \"Size of the image in bytes.\")\n public Long getSize() {\n return size;\n }", "public int getPicWidth() {\r\n\t\treturn this.image.getIconWidth();\r\n\t}", "public Rectangle getImage() {\n\t\treturn image;\n\t}", "public long getImageBase()\n throws IOException, EndOfStreamException\n {\n if (imageState_ == ImageStateType.PE64)\n {\n return peFile_.readInt64(relpos(Offsets.IMAGE_BASE_64.position));\n }\n\n return peFile_.readInt32(relpos(Offsets.IMAGE_BASE_32.position));\n }", "@Test\n public void testGetImage() {\n int[][][] copyImage = image.getImage();\n assertEquals(copyImage.length, image.getHeight());\n }", "public native int sizeBlob() throws MagickException;", "public native int getImageType() throws MagickException;", "int getBitsPerPixel();", "private float getRoughPixelSize() {\n\n\t\tfloat size = 380; // mm\n\t\tfloat pixels = getHeight();\n\t\treturn pixels > 0 ? size / pixels : 0;\n\n\t}", "@Test\n public void testGetWidth() throws FitsException, IOException{\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n Assert.assertEquals(100, imageData.getWidth());\n }", "private void getBitmapSize(Uri uri) {\n InputStream is = null;\n try {\n\n is = getInputStream(uri);\n\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(is, null, options);\n\n width = options.outWidth;\n height = options.outHeight;\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException ignored) {\n }\n }\n }\n }", "public long getSizeOfImage()\n throws IOException, EndOfStreamException\n {\n return peFile_.readUInt32(relpos(Offsets.SIZE_OF_IMAGE.position));\n }", "@Test\n public void testGetHeight() throws FitsException, IOException{\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n Assert.assertEquals(100, imageData.getHeight());\n }", "public BufferedImage getImage() {\n\t\t return img;\n\t}", "public int getImageCount() {\n return imageCount;\n }", "private static native void setImagesize_0(long nativeObj, int W, int H);", "public ImageInfo getImage() {\n return image;\n }", "public int getH() { return height; }", "public RMSize getSize() { return new RMSize(getWidth(), getHeight()); }", "private static native void setImageHeight_0(long nativeObj, int val);", "public int getLargeur() {\n return getWidth();\n }", "@Nonnull\n private BufferedImage createImage() {\n return new BufferedImage(getWidth(), getHeight(), getImageType().getType());\n }", "public PImage getImg() {\n \treturn img;\n }", "PImage getImage() {\n return _img;\n }", "int imageCount();", "@Override\n public Dimension getPreferredSize()\n {\n return new Dimension(this.bufferedImage.getWidth(), \n this.bufferedImage.getHeight());\n }", "java.lang.String getImage();", "public int getImageNumber() {\n return imageNumber;\n }", "public abstract BufferedImage getSnapshot();", "public String getImage() { return image; }", "public interface IImage {\n public int getWidth();\n public int getHeight();\n public IGraphics.ImageFormat getFormat();\n public void dispose();\n}", "public Integer getWidth(){return this.width;}", "@Override\r\n\tpublic Image getImg() {\n\t\treturn img.getImage();\r\n\t}", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "public int getHeight() { return height; }", "public int getSizeX() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeX;\r\n}", "public String getSize(int width, int height) {\n try {\n String url;\n\n url = cloudinary.url().format(\"jpg\")\n .transformation(new Transformation().width(width).height(height)).generate(public_id);\n\n return url;\n }catch (NullPointerException e){\n Logger.debug(\"Failed to receive image url.\", e.getMessage());\n return \"null\";\n }\n }", "public int grHeight() { return height; }", "public interface Image {\n\n /**\n * Get number of pixels horizontally\n *\n * @return int number of pixels horizontally\n */\n int getWidth();\n\n /**\n * Get number of pixels vertically\n *\n * @return int number of pixels vertically\n */\n int getHeight();\n\n /**\n * Get the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the red value\n */\n int getRed(int x, int y);\n\n\n /**\n * Get the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the green value\n */\n int getGreen(int x, int y);\n\n /**\n * Get the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the blue value\n */\n int getBlue(int x, int y);\n\n /**\n * Set the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setRed(int x, int y, int value);\n\n\n /**\n * Set the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setGreen(int x, int y, int value);\n\n /**\n * Set the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setBlue(int x, int y, int value);\n}", "public int getHeight() {return height;}", "Image createImage();", "String getImage();", "private byte[] getImageIDESizeParameter() {\n if (ideSize != 1) {\n final byte[] ideSizeData = new byte[] {\n (byte)0x96, // ID\n 0x01, // Length\n ideSize};\n return ideSizeData;\n } else {\n return new byte[0];\n }\n }", "public BufferedImage getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public int getSizeZ() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeZ;\r\n}", "com.google.protobuf.ByteString\n getImageBytes();", "public double getIm() {\r\n return im;\r\n }", "@Override\n public IIOMetadata getImageData() {\n return super.imageData;\n }", "double getArea() {\n return width * height;\n }", "int getHeight() {return height;}", "public String getPixelInfo()\n {\n return pixelInfo.toString();\n }", "public String toString()\n {\n return \"The tesseract's dimensions are \" + getLength() + \" X \" + getWidth() + \" X \" + getHeight() + \" X \" + getwDimension();\n }", "public int Height(){\r\n return height;\r\n }", "private void getWidthandHeight(char[] imagenaux) {\n for (iterator = 3; imagenaux[iterator] != '\\n'; ++iterator) {\n if (imagenaux[iterator] == ' ') anchura = false;\n else {\n if (anchura) {\n int aux = Character.getNumericValue(imagenaux[iterator]);\n width *= 10;\n width += aux;\n } else {\n int aux = Character.getNumericValue(imagenaux[iterator]);\n height *= 10;\n height += aux;\n }\n }\n }\n ++iterator;\n while (imagenaux[iterator] != '\\n') { ++iterator; }\n ++iterator;\n }", "@Test\n\tpublic void testGetHeight() {\n\t\tip = new ImagePlus();\n\t\tip.getHeight();\n\t}" ]
[ "0.7013478", "0.699988", "0.67583126", "0.6750033", "0.6720698", "0.669873", "0.6689511", "0.66860753", "0.66664755", "0.65853953", "0.6539114", "0.6529669", "0.6516078", "0.65081245", "0.64257", "0.63865346", "0.63722134", "0.63092506", "0.6291426", "0.6288455", "0.6252946", "0.62341326", "0.618197", "0.6158717", "0.615819", "0.615819", "0.615819", "0.6144378", "0.61443424", "0.61401063", "0.6103231", "0.6099903", "0.60651374", "0.60592395", "0.6017553", "0.6014474", "0.5984361", "0.5984188", "0.59672165", "0.59642625", "0.5959984", "0.5959759", "0.59582573", "0.5954042", "0.59415966", "0.5931953", "0.59172827", "0.59166247", "0.5890154", "0.5876868", "0.58619386", "0.5858101", "0.5857994", "0.58552325", "0.5850757", "0.5845183", "0.5841783", "0.582109", "0.58189946", "0.5817898", "0.5814005", "0.5794509", "0.57887757", "0.5787256", "0.5754822", "0.575088", "0.57494265", "0.57246256", "0.5720308", "0.5718694", "0.5708866", "0.57061535", "0.5704408", "0.57041174", "0.56999844", "0.5693438", "0.5690735", "0.5688313", "0.5687101", "0.56773496", "0.5668776", "0.56606424", "0.5660228", "0.56601244", "0.5653856", "0.565332", "0.56526333", "0.5651148", "0.5651148", "0.5651148", "0.5641639", "0.5638461", "0.56312215", "0.56304806", "0.56294745", "0.5629049", "0.5615024", "0.5613165", "0.5608674", "0.5605906", "0.5604374" ]
0.0
-1
Defines hashing for a type.
@FunctionalInterface public interface Hashing<A> { /** * <p> * See {@link Object#hashCode()}. * </p> * * @param a * the thing whose hash code is to be computed * * @return * the hash code of the thing */ int hashCodeOf (A a); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getHashType() {\n\t\treturn _hash_type;\n\t}", "public HashAlgorithm getHashInstance(int type) {\n switch (type){\n case Average_Hash:\n return new AverageHashAlgorithm();\n case Difference_Hash:\n return new DifferenceHashAlgorithm();\n case Perceptive_Hash:\n return new PerceptiveHashAlgorithm();\n case Median_Hash:\n return new MedianHashAlgorithm();\n case Wavelet_Hash:\n return new WaveletHashAlgorithm();\n case MD5_Hash:\n return new MD5HashAlgorithm();\n case SHA256_Hash:\n return new SHA256Algorithm();\n case SHA512_Hash:\n return new SHA512Algorithm();\n }\n throw new NullPointerException();\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn type.hashCode();\n\t}", "public static int calculateHash(final Field field) {\n int hash = 17;\n hash = (37 * hash) + field.getName().hashCode();\n Class type = field.getType();\n hash = (37 * hash) + type.getName().hashCode();\n return hash;\n }", "public abstract int doHash(T t);", "@Override\n public int hashCode() {\n return (getType()<<8) | getSubtype();\n }", "public int hash(T input);", "@Override\n public void computeHash(Hasher hasher) {\n }", "String getHashAlgorithm();", "@Override\n public int hashCode()\n {\n return Objects.hash(typeDefProperties);\n }", "public abstract int getHash();", "public static int calculateHash(final Class klass) {\n return klass.getName().hashCode();\n }", "@Override\r\n public int hashCode() {\n return 37 * (37 * (37 * 23 \r\n + typeVariable.getName().hashCode()) \r\n + typeVariable.getGenericDeclaration().hashCode())\r\n + base.hashCode();\r\n }", "private int hashType() {\n // Twelve possibilities\n int answer;\n if (isBomb()) {\n answer = 1;\n } else if (isShield()) {\n answer = 2;\n } else {\n answer = 3;\n }\n if (isFire() && !isKing()) {\n answer += 3 * 1;\n }\n if (!isFire() && isKing()) {\n answer += 3 * 2;\n }\n if (isFire() && isKing()) {\n answer += 3 * 3;\n }\n return answer - 1;\n }", "@Override\n public int hashCode() {\n return Objects.hash(name, type, id);\n }", "int getHash();", "public interface Hasher {\n\n void reset();\n\n void update(byte[] input);\n\n byte[] digest();\n\n String getAlgorithm();\n }", "@Override\n public int hashCode() {\n return new HashCodeBuilder(17, 37)\n .append(getName())\n .append(getType())\n .toHashCode();\n }", "private int hash(T t) {\n int code = t.hashCode();\n return code % Table.size();\n }", "String getHash();", "String getHash();", "private int hasher() {\n int i = 0;\n int hash = 0;\n while (i != length) {\n hash += hashableKey.charAt(i++);\n hash += hash << 10;\n hash ^= hash >> 6;\n }\n hash += hash << 3;\n hash ^= hash >> 11;\n hash += hash << 15;\n return getHash(hash);\n }", "private void rehash()\n {\n int hTmp = 37;\n\n if ( isHR != null )\n {\n hTmp = hTmp * 17 + isHR.hashCode();\n }\n\n if ( id != null )\n {\n hTmp = hTmp * 17 + id.hashCode();\n }\n\n if ( attributeType != null )\n {\n hTmp = hTmp * 17 + attributeType.hashCode();\n }\n \n h = hTmp;\n }", "public int hashCode() {\n int hash = 104473;\n if (token_ != null) {\n // Obtain unencrypted form as common base for comparison\n byte[] tkn = getToken();\n for (int i=0; i<tkn.length; i++)\n hash ^= (int)tkn[i];\n }\n hash ^= (type_ ^ 14401);\n hash ^= (timeoutInterval_ ^ 21327);\n hash ^= (isPrivate() ? 15501 : 12003);\n if (getPrincipal() != null)\n hash ^= getPrincipal().hashCode();\n if (getSystem() != null)\n hash ^= getSystem().getSystemName().hashCode();\n return hash;\n }", "protected abstract int hashOfObject(Object key);", "public static int calculateHash(final Method method) {\n int hash = 17;\n hash = (37 * hash) + method.getName().hashCode();\n for (int i = 0; i < method.getParameterTypes().length; i++) {\n Class type = method.getParameterTypes()[i];\n hash = (37 * hash) + type.getName().hashCode();\n }\n return hash;\n }", "@Override\n public int hashCode() {\n return DEFAULT_HASH_CODE + getType() + getUserName().hashCode() + message.hashCode();\n }", "public interface HashFunction<T> {\n\t/**\n\t * gets the hash value for the input\n\t * @param input the input to be hashed\n\t * @return the hash value\n\t */\n\tpublic int hash(T input);\n}", "int hash(String makeHash, int mod);", "protected int myhash(T x)\r\n\t{\r\n\t\tint hashVal = x.hashCode( );\r\n\t\thashVal %= tableSize;\r\n\t\tif( hashVal < 0 )\r\n\t\t\thashVal += tableSize;\r\n\t\treturn hashVal;\r\n\t}", "@Test\r\n public void testHash() {\r\n Settings expResult = Settings.EXPERT;\r\n int kod = 16 * 30 * 99;\r\n assertEquals(expResult.hashCode(), kod);\r\n \r\n expResult = Settings.INTERMEDIATE;\r\n kod = 16 * 16 * 40;\r\n assertEquals(expResult.hashCode(), kod);\r\n \r\n expResult = Settings.BEGINNER;\r\n kod = 9 * 9 * 10;\r\n assertEquals(expResult.hashCode(), kod);\r\n }", "final int hash(E object)\n {\n // Spread bits to regularize both segment and index locations,\n // using variant of single-word Wang/Jenkins hash.\n int h = object.hashCode();\n h += (h << 15) ^ 0xffffcd7d;\n h ^= (h >>> 10);\n h += (h << 3);\n h ^= (h >>> 6);\n h += (h << 2) + (h << 14);\n h = h ^ (h >>> 16);\n return h;\n }", "public interface TByteHashingStrategy extends Serializable {\n\n /**\n * Computes a hash code for the specified byte. Implementors can use the byte's own value or a\n * custom scheme designed to minimize collisions for a known set of input.\n *\n * @param val byte for which the hashcode is to be computed\n * @return the hashCode\n */\n int computeHashCode(byte val);\n}", "@Override // com.google.common.base.Equivalence\n public int doHash(Object o) {\n return o.hashCode();\n }", "@Override\n public int hashCode() {\n int result;\n long temp;\n result = type.hashCode();\n result = 31 * result + (name != null ? name.hashCode() : 0);\n result = 31 * result + (mainColor != null ? mainColor.hashCode() : 0);\n result = 31 * result + (material != null ? material.hashCode() : 0);\n result = 31 * result + (origin != null ? origin.hashCode() : 0);\n temp = Double.doubleToLongBits(price);\n result = 31 * result + (int) (temp ^ (temp >>> 32));\n result = 31 * result + Arrays.hashCode(ageDelta);\n return result;\n }", "public int hashcode();", "public int hashCode() {\n int hash = 0;\n hash = width;\n hash <<= 8;\n hash ^= height;\n hash <<= 8;\n hash ^= numBands;\n hash <<= 8;\n hash ^= dataType;\n hash <<= 8;\n for (int i = 0; i < bandOffsets.length; i++) {\n hash ^= bandOffsets[i];\n hash <<= 8;\n }\n for (int i = 0; i < bankIndices.length; i++) {\n hash ^= bankIndices[i];\n hash <<= 8;\n }\n hash ^= numBands;\n hash <<= 8;\n hash ^= numBanks;\n hash <<= 8;\n hash ^= scanlineStride;\n hash <<= 8;\n hash ^= pixelStride;\n return hash;\n }", "int hash(T key) throws IOException, NoSuchAlgorithmException {\n\t\tByteArrayOutputStream b = new ByteArrayOutputStream();\n ObjectOutputStream o = new ObjectOutputStream(b);\n o.writeObject(key);\n byte[] data = b.toByteArray();\n \n //hash key using MD5 algorithm\n\t\t//System.out.println(\"Start MD5 Digest\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(data);//this updates the digest using the specified byte array\n \tbyte[] hash = md.digest();\n \tByteBuffer wrapped = ByteBuffer.wrap(hash); // big-endian by default\n \tint hashNum = wrapped.getInt(); \n \treturn hashNum;\n \t\n\t}", "com.google.protobuf.ByteString getHash();", "com.google.protobuf.ByteString getHash();", "@Override\n public int hashCode() {\n if (hash == 0)\n hash = MD5.getHash(owner.getLogin() + description).hashCode();\n return hash;\n }", "public int hashCode()\r\n {\r\n int hash = super.hashCode();\r\n hash ^= hashValue( m_name );\r\n hash ^= hashValue( m_classname );\r\n if( m_implicit )\r\n {\r\n hash ^= 35;\r\n }\r\n hash ^= hashValue( m_production );\r\n hash ^= hashArray( m_dependencies );\r\n hash ^= hashArray( m_inputs );\r\n hash ^= hashArray( m_validators );\r\n hash ^= hashValue( m_data );\r\n return hash;\r\n }", "public int hashCode() {\n return new HashCodeBuilder(7, 29)\n .append(meaning)\n .append(type)\n .append(target)\n .toHashCode(); \n }", "long hash(Block block, int position);", "public final void mHASH() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = HASH;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:432:5: ( '#' )\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:432:16: '#'\n\t\t\t{\n\t\t\tmatch('#'); \n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "private int getHash(Object key) {\n return key.hashCode();\n }", "public int hash(String item);", "public void setHashCode(int hashCode){\n\n }", "public int hashCode() {\n final int HASH_MULTIPLIER = 29;\n int h = HASH_MULTIPLIER * FName.hashCode() + LName.hashCode();\n h = HASH_MULTIPLIER * h + ((Integer)ID).hashCode();\n return h;\n }", "public int hashCode()\n {\n return hash;\n }", "public Builder setHash(int value) {\n bitField0_ |= 0x00000001;\n hash_ = value;\n onChanged();\n return this;\n }", "private int hash(T x)\n {\n // calcolo della chiave ridotta - eventualmente negativa\n int h = x.hashCode() % v.length;\n\n // calcolo del valore assoluto\n if (h < 0)\n h = -h;\n \n return h; \n }", "public int hashCode()\r\n\t{\r\n\t return edgeType.hashCode();\r\n\t}", "@Override\n public int hashCode() {\n return Objects.hash(getId(), getUsername(), getPassword(), getEmail(), isType());\n }", "public int hashCode() {\n return hash.hashCode();\n }", "public abstract int hashCode();", "java.lang.String getHashData();", "public int hash(String w){\n return (Math.abs(w.hashCode()) % hashTable.length);\n }", "public void setHash() throws NoSuchAlgorithmException {\n\t\tString transformedName = new StringBuilder().append(this.titulo).append(this.profesor)\n .append(this.descripcion).append(this.materia.getUniversidad()).append(this.materia.getDepartamento())\n\t\t\t\t.append(this.materia.getCarrera()).append(this.materia.getIdMateria()).append(new Date().getTime()).toString();\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n\t\tmessageDigest.update(transformedName.getBytes(StandardCharsets.UTF_8));\n\t\tthis.hash = new BigInteger(1, messageDigest.digest()).toString(16);\n\t}", "public int getHashLength() {\n\t\treturn hashLength;\n\t}", "public void testHashcode() {\n XYBlockRenderer r1 = new XYBlockRenderer();\n XYBlockRenderer r2 = new XYBlockRenderer();\n int h1 = r1.hashCode();\n int h2 = r2.hashCode();\n }", "@Override\n public int hashCode() {\n\tint hash = 7;\n\thash = 67 * hash + Objects.hashCode(this.targetType);\n\thash = 67 * hash + Objects.hashCode(this.unresolvedType);\n\thash = 67 * hash + Objects.hashCode(this.targetName);\n\thash = 67 * hash + Objects.hashCode(this.targetActions);\n\treturn hash;\n }", "@Override\n public int hashCode() {\n // name's hashCode is multiplied by an arbitrary prime number (13)\n // in order to make sure there is a difference in the hashCode between\n // these two parameters:\n // name: a value: aa\n // name: aa value: a\n return key.hashCode() * 13 + (value == null ? 0 : value.hashCode());\n }", "public static int calculateHash(final Constructor constructor) {\n int hash = 17;\n hash = (37 * hash) + TransformationConstants.INIT_METHOD_NAME.hashCode();\n for (int i = 0; i < constructor.getParameterTypes().length; i++) {\n Class type = constructor.getParameterTypes()[i];\n hash = (37 * hash) + type.getName().replace('/', '.').hashCode();\n }\n return hash;\n }", "static int hash(int h) {\n\t\t // This function ensures that hashCodes that differ only by constant \n\t\t // multiples at each bit position have a bounded number of collisions \n\t\t // (approximately 8 at default load factor).\n\t\th ^= (h >>> 20) ^ (h >>> 12);\n\t\treturn h ^ (h >>> 7) ^ (h >>> 4);\n\t}", "public HashNode(KeyType key, ValueType value) {\r\n this.key = key;\r\n this.value = value;\r\n }", "private String hash(){\r\n return Utility.SHA512(this.simplify());\r\n }", "public HashEntry( AnyType e )\n {\n \tkey = e;\n }", "public void setHash(String hash)\n {\n this.hash = hash;\n }", "public int hashCode()\r\n\t{\n\t\treturn (i % 9); //this will make the values to store in the table based on size of hashtable is 9 and calculation will be (i %9)\r\n\t}", "public void setHash(String hash) {\n this.hash = hash;\n }", "int _hash(int maximum);", "public int hashCode()\n {\n return this.getSQLTypeName().hashCode();\n }", "private int hash1(T key) {\n return (key.toString().charAt(0) + key.toString().length())%newTable.length;\r\n }", "@Override\n public int hashCode() {\n int result = type.hashCode();\n result = 31 * result + description.hashCode();\n result = 31 * result + (sourceName != null ? sourceName.hashCode() : 0);\n result = 31 * result + lineNumber;\n result = 31 * result + defaultLevel.hashCode();\n result = 31 * result + charno;\n return result;\n }", "public HASH256 getHash1(){return hash1;}", "MapBuilder<K,V> hashFunction(ToLongFunction<? super K> hashFunction);", "protected int myHashKey(KeyType key) {\n int hashValue;\n hashValue = key.hashCode() % mTableSize;\n if (hashValue < 0) {\n hashValue += mTableSize;\n }\n return hashValue;\n }", "public String getHash() {\n return hash;\n }", "int baseHash(int hashKey,int length)\n\t{\n\t\tdouble constant = (Math.sqrt(3) - 1);\n\t\tint base = (int) Math.floor((length * ((constant* hashKey) - Math.floor(constant* hashKey)))); \n\t\treturn base; //mod value is not applied at the base hashLevel. It is in the insert/find/reinset respectively\n\t}", "@Override\n public int hashCode() {\n int result = fullwidth.hashCode();\n result = 31 * result + halfwidth.hashCode();\n return result;\n }", "String getHashControl();", "public String getHash()\n {\n return hash;\n }", "public String getHash() {\n return hash;\n }", "public String getHash() {\n return hash;\n }", "public String getHash() {\n return hash;\n }", "static int getHash(Object obj) {\n return getHash(new HashSet<Class>(), obj, 0);\n }", "public void setHash(String hash) {\n this.hash = hash;\n }", "public void setHash(String hash) {\n this.hash = hash;\n }", "public void setHash(String hash) {\n this.hash = hash;\n }", "@Override\n public abstract int hashCode();", "@Override\n public abstract int hashCode();", "@Override\n public abstract int hashCode();", "public int generateHash(StudentClass item)\n {\n \t return item.hashCode() % tableSize;\n }", "private int hash(E e) {\n return Math.abs(e.hashCode()) % table.length;\n }", "@JRubyMethod(name = \"hash\")\n @Override\n public RubyFixnum hash() {\n return getRuntime().newFixnum((int)(((dt.getMillis() / 1000) ^ microseconds()) << 1) >> 1);\n }", "public int hashCode() {\n return (name.ordinal() + 5) * 51;\n }", "@Override\n public int hashCode()\n {\n if (hash != 0) {\n return hash;\n }\n\n hash = provider.hashCode() * 127 + id.hashCode();\n return hash;\n }", "void setHashData(java.lang.String hashData);", "private int hashOf(String key) {\n return key.length();\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn labelTemplate.hashCode() ^ type.hashCode() ^ priority ^ valueTemplate.hashCode();\n\t}" ]
[ "0.7387302", "0.6893273", "0.6782454", "0.6771881", "0.67345697", "0.6650856", "0.66252804", "0.6591038", "0.6529147", "0.6461094", "0.64430267", "0.6399238", "0.63879067", "0.63791656", "0.63748586", "0.63638145", "0.6340492", "0.627147", "0.6264796", "0.6172105", "0.6172105", "0.61535853", "0.61443967", "0.6122818", "0.6104481", "0.6101057", "0.604686", "0.60401714", "0.60392463", "0.60065657", "0.59505665", "0.5919761", "0.5917669", "0.5882988", "0.58713895", "0.58679783", "0.5842031", "0.5811116", "0.5793663", "0.5793663", "0.5746468", "0.57344687", "0.5727374", "0.5721577", "0.57110816", "0.5707061", "0.57011104", "0.56969625", "0.56965005", "0.5693208", "0.56882715", "0.5688228", "0.5685994", "0.568465", "0.5678778", "0.5652715", "0.56455535", "0.56448287", "0.56425184", "0.56370884", "0.5632426", "0.5624673", "0.5614159", "0.561364", "0.56060463", "0.5605187", "0.5602064", "0.55999416", "0.5599283", "0.5599212", "0.5594207", "0.55909264", "0.558781", "0.5586558", "0.558523", "0.5581131", "0.5580706", "0.55769897", "0.55648243", "0.5563179", "0.5559152", "0.55572927", "0.5542605", "0.55410993", "0.55410993", "0.55410993", "0.5531115", "0.5531102", "0.5531102", "0.5531102", "0.5522199", "0.5522199", "0.5522199", "0.55198264", "0.55194366", "0.5517581", "0.55146545", "0.55112016", "0.5509907", "0.5503263", "0.55011714" ]
0.0
-1
Created by znaznazna on 12/5/2016.
public interface DBUpdateListener { void onSuccess(int operationType); void onFailure(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void getExras() {\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\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@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\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void init() {\n\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tprotected void interr() {\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public int getOrder() {\n return 0;\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n void init() {\n }", "private void poetries() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public int getSize() {\n return 1;\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public int getOrder() {\n return 4;\n }", "Petunia() {\r\n\t\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\n public String toString() {\n return \"\";\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 }", "public void mo55254a() {\n }", "@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\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "public void gored() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void just() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public Pitonyak_09_02() {\r\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void nefesAl() {\n\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 public void initialize() {\n \n }", "private UsineJoueur() {}", "@Override\n\tpublic void verkaufen() {\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 public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() { \n }" ]
[ "0.61329395", "0.5871224", "0.58459777", "0.5800242", "0.5787542", "0.5781705", "0.57731485", "0.57731485", "0.57727563", "0.57375044", "0.5737001", "0.56903553", "0.56643647", "0.56639177", "0.5648756", "0.5617466", "0.5612185", "0.55949014", "0.5591008", "0.55691254", "0.5533553", "0.5533553", "0.5528633", "0.54761386", "0.54455256", "0.54395866", "0.54366845", "0.54366845", "0.54366845", "0.54366845", "0.54366845", "0.54366845", "0.54315376", "0.543075", "0.54138327", "0.54110026", "0.5396897", "0.5385248", "0.5380622", "0.5378927", "0.5376969", "0.53764194", "0.5375499", "0.5374221", "0.5369398", "0.53678805", "0.53636736", "0.5360372", "0.5328424", "0.53117824", "0.53086627", "0.53025705", "0.53015816", "0.52968866", "0.5295099", "0.5285058", "0.52809155", "0.5276393", "0.52633286", "0.52633286", "0.52633286", "0.52633286", "0.52633286", "0.52633286", "0.52633286", "0.5263136", "0.5263136", "0.5263136", "0.5263136", "0.5263136", "0.5257495", "0.5256355", "0.5256355", "0.52543056", "0.52513367", "0.52509063", "0.52496684", "0.52479595", "0.52426374", "0.52390665", "0.52317613", "0.52312034", "0.52260214", "0.52260214", "0.52237666", "0.52237666", "0.52202827", "0.52163655", "0.5214688", "0.5214688", "0.5214688", "0.5210054", "0.5200209", "0.5190974", "0.5187461", "0.5187461", "0.5187461", "0.5177984", "0.5177984", "0.5177984", "0.51776266" ]
0.0
-1
Get the display name of the ingredient.
public abstract String getName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "@Override\n\tpublic String getDisplayName() {\n\t\treturn getGivenName() + \" \" + getFamilyName();\n\t}", "String getDisplay_name();", "public String getDisplayName()\n {\n return getString(\"DisplayName\");\n }", "@Override\n\tpublic String getDisplayName() {\n\t\treturn item.getItemStackDisplayName(stack);\n\t\t//#endif\n\t}", "@Override\n public String getDisplayName() {\n return this.name;\n }", "String displayName();", "String displayName();", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "@SuppressWarnings(\"deprecation\")\n\t@Override\n\tpublic String getName() {\n\t\tif (hasCustomName()) {\n\t\t\treturn getCustomNameTag();\n\t\t}\n\n\t\t// return default breed name otherwise\n\t\tString entName = EntityList.getEntityString(this);\n\t\tString breedName = getBreedType().getName().toLowerCase();\n\t\treturn I18n.translateToLocal(\"entity.\" + entName + \".\" + breedName + \".name\");\n\t}", "public String getMealName() {\n return name.getText().toString();\n }", "public String getName() {\n return String.format(\"%s %s\", getFirst(), getLast());\n }", "public String getDisplayName() {\n\t\treturn displayName.get();\n\t}", "@Nonnull\r\n String getDisplayName();", "public String getDisplayName() {\n return this.displayname;\n }", "default String getDisplayName() {\r\n\t\treturn getClass().getSimpleName();\r\n\t}", "@Override\n public String toString() {\n return \"Ingredient'\" + ingredientName + '\\'' +\n \": amount='\" + amount + '\\'';\n }", "public String getDisplayName ( ) {\n\t\treturn handleOptional ( ).map ( Player :: getDisplayName ).orElse ( name );\n\t}", "public String getName() { return displayName; }", "public String getName()\r\n\t{\r\n\t\treturn theItem.getName();\r\n\t}", "@NonNull\n String getDisplayName();", "@Override\n\tpublic String getDisplayName() {\n\t\treturn displayName;\n\t}", "@Override\n\tpublic String getDisplayName() {\n\t\treturn displayName;\n\t}", "public String getDescription(){\n\t\treturn getiIngredient().getDescription() + \", \" + super.getDescription();\n\t}", "@Override\n public String getDisplayName() {\n\n return Messages.displayName();\n }", "public String getDisplayName() {\n return DISPLAY_NAME;\n }", "public String getDisplayName() {\n // The ID is deliberately kept in a pretty user-readable format but we could\n // consider prepending layout/ on ids that don't have it (to make the display\n // more uniform) or ripping out all layout[-constraint] prefixes out and\n // instead prepending @ etc.\n return mId;\n }", "public String getName() {\n return item.getName();\n }", "@NotNull\n String getDisplayName();", "public String getName() {\n return firstName + \" \" + lastName;\n }", "public String getName() {\n return this.id + \", \" + this.nom + \" \" + this.prenom + \", \" + this.cin;\n }", "public String getDisplayText()\n {\n return (getName().length() > 0) ? getName() : \"Neuer Diätplan\";\n }", "public String getName() {\r\n\t\treturn firstName + \" \" + lastName;\r\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn product.getName();\n\t}", "public String getName() {\n return name + \"\";\n }", "public String toString() {\n return getName();\n }", "public static String getDisplayName(String shortName,\r\n IArchetypeService service) {\r\n ArchetypeDescriptor descriptor = getArchetypeDescriptor(shortName,\r\n service);\r\n return (descriptor != null) ? descriptor.getDisplayName() : null;\r\n }", "public String getDisplayName()\n {\n return m_strDisplayName;\n }", "@NotNull\n public String getDisplayName() {\n // The ID is deliberately kept in a pretty user-readable format but we could\n // consider prepending layout/ on ids that don't have it (to make the display\n // more uniform) or ripping out all layout[-constraint] prefixes out and\n // instead prepending @ etc.\n return myId;\n }", "public static String getDisplayName(String shortName) {\r\n return getDisplayName(shortName,\r\n ArchetypeServiceHelper.getArchetypeService());\r\n }", "public String getName()\n {\n return foreName + \" \" + lastName;\n }", "public String getDisplayName() {\n return typeElement.getQualifiedName().toString();\n }", "public String toString() {\n return getName();\n }", "public String toString() {\n return getName();\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 java.lang.String getDisplayName() {\n return this._displayName;\n }", "@ Override\n public final String toString() {\n return getName ( ) ;\n }", "public String getName() {\n return dishName;\n }", "public String getDisplayName() {\n return this.displayName;\n }", "public String getDisplayName() {\n return this.displayName;\n }", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s\", getName());\n\t}", "public String getDisplayName() {\n return mDisplayName;\n }", "public String getDisplayName() {\n return mDisplayName;\n }", "@Override\n\tpublic String getName() {\n\t\treturn ((Extension)_item).getId() + \".\" + ((Extension)_item).getTitle();\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn getName();\r\n\t}", "public String getName (){\r\n return firstName + \" \" + lastName;\r\n }", "public String getDisplayName() {\n if (model != null)\n return model.getDisplayName();\n return super.getDisplayName();\n }", "public String getName(){\n\t\treturn Name; // Return the product's name\n\t}", "public String getDisplayName() {\n return this.displayName;\n }", "@Override\n\tpublic String toString() {\n\t\treturn getName();\n\t}", "public String getDisplayName() {\n if (!TextUtils.isEmpty(mDisplayName)) {\n return mDisplayName;\n }\n if (isVoicemail()) {\n return mContext.getResources().getString(R.string.voicemail);\n } else {\n String displayName = TelecomUtils.getFormattedNumber(mContext, mNumber);\n if (TextUtils.isEmpty(displayName)) {\n displayName = mContext.getString(R.string.unknown);\n }\n return displayName;\n }\n }", "public String toString() {\n\t\treturn getName();\r\n\t}", "public java.lang.String getName();", "public String toString() {\n\t\treturn getName();\n\t}", "public String getDisplayName () {\n return displayName;\n }", "public String getDisplayName () {\n return displayName;\n }", "@Override\n\t\tpublic String toString() {\n\t\t\tString theList = \"\";\n\t\t\tfor (int i = 0; i < this.getSize(); i++) {\n\t\t\t\ttheList += \"Ingredient \" + (i+1) + \": \" + this.getList()[i].toString() + \"\\n\";\n\t\t\t}\n\t\t\treturn theList;\n\t\t}", "public String displayName() {\r\n\t\tString name = \"Unknown\";\r\n\t\tif(EUR.equals(this)) {\r\n\t\t\tname = \"Europe\";\r\n\t\t} else if(JPN.equals(this)) {\r\n\t\t\tname = \"Japan\";\r\n\t\t} else if(USA.equals(this)) {\r\n\t\t\tname = \"USA\";\r\n\t\t} else if(KOR.equals(this)) {\r\n\t\t\tname = \"Korea\";\r\n\t\t}\r\n\t\treturn name;\r\n\t}", "public com.commercetools.api.models.common.LocalizedString getName() {\n return this.name;\n }", "public String getDisplayName() {\n return displayName;\n }", "public String getDisplayName () {\n return impl.getDisplayName ();\n }", "public String getName() {\r\n\t\treturn GDAssemblerUI.getText(UI_TEXT);\r\n\t}", "public String getDisplayName() {\n return _displayName;\n }", "public String getDisplayName() {\n return displayName;\n }", "public String getDisplayName() {\n return displayName;\n }", "public String getDisplayName() {\n return displayName;\n }", "public String getNameOfEntityHere() {\n \n return entityHere_.getName();\n \n }", "@Override\n\tpublic String getBeverageDisplayName(String beverage) throws BeverageNotSupportedException {\n\t\tif(!beverageNameVsDisplayNameMap.containsKey(beverage)){\n\t\t\tthrow new BeverageNotSupportedException(String.format(Messages.NOT_SUPPORTED, beverage));\n\t\t}\n\t\treturn beverageNameVsDisplayNameMap.get(beverage);\n\t}", "@Override\n\tpublic String getName() {\n\t\tfinal PsiElement nameIdentifier = getNameIdentifier();\n\t\treturn nameIdentifier != null ? nameIdentifier.getText() : getText();\n\t}", "public String getDisplayName()\n {\n return displayName;\n }", "public String getDisplayName()\n {\n return displayName;\n }", "public String showName()\r\n {\r\n return name;\r\n }", "public String getDisplayName() {\n return displayName;\n }", "public String getName() {\n return lastname + \", \" + firstname;\n }", "@Override\n public String toString() {\n String formattedLiquidNames = liquids\n .stream()\n .map(Liquid::getName)\n .collect(Collectors.joining(\", \"));\n String totalAlcoholPercentage = String.format(\"%.2f\", getAlcoholPercent());\n\n return \"The '\" + name + \"' includes following ingredients\\n[\" +\n formattedLiquidNames + \"] with a total alcohol percentage of \" + totalAlcoholPercentage + \"%.\";\n }", "@Override\n public String toString() {\n return NameProvider.getNameOfBlockOrItem(this.id, this.data);\n }", "public java.lang.String getNameAsString()\n {\n return getName().toString();\n }" ]
[ "0.728732", "0.728732", "0.728732", "0.728732", "0.728732", "0.728732", "0.70825523", "0.70825523", "0.70825523", "0.70825523", "0.70825523", "0.70825523", "0.7030718", "0.70163023", "0.69530207", "0.68597925", "0.68187845", "0.6803337", "0.6803337", "0.6798222", "0.6798222", "0.6798222", "0.6798222", "0.6778992", "0.6733694", "0.67193335", "0.67065275", "0.66597754", "0.66507", "0.6642552", "0.66128445", "0.6600784", "0.6560313", "0.65582705", "0.6557126", "0.65543085", "0.65543085", "0.6541862", "0.65374804", "0.6529063", "0.6527272", "0.65230334", "0.64989674", "0.64717335", "0.64702666", "0.6465604", "0.64625627", "0.6459289", "0.64394206", "0.6434058", "0.6433231", "0.6430735", "0.6423046", "0.6422513", "0.6422122", "0.6399913", "0.63971406", "0.63971406", "0.6386736", "0.63749176", "0.6374292", "0.6372407", "0.63573426", "0.63573426", "0.6354337", "0.63466275", "0.6345369", "0.6342669", "0.6341159", "0.63390386", "0.63367796", "0.6331949", "0.6331139", "0.63299483", "0.63255715", "0.6312952", "0.630393", "0.6297364", "0.6296845", "0.6296845", "0.62857735", "0.6283354", "0.6272643", "0.62723386", "0.62657785", "0.6258732", "0.6250772", "0.62507606", "0.62507606", "0.62507606", "0.62498", "0.62482834", "0.6244598", "0.62431437", "0.62431437", "0.6239354", "0.6237854", "0.6228215", "0.62268114", "0.62194544", "0.62171775" ]
0.0
-1
Create a new ingredient object.
public abstract Ingredient getNew();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Ingredient() { }", "public Ingredient(){\r\n\t}", "public Ingredient() {\n }", "public Ingredient(){\r\n \r\n }", "public void addIngredientRecipe(IngredientRecipePOJO ingr);", "public Ingredient(String name){\r\n\t\tthis.name = name;\r\n\t}", "public static ItemIngredient of(String input) {\n\t\treturn new OreItemIngredient(input, 1);\n\t}", "public IngredientModel addIngredient(Ingredient ingredient) {\n Traverson traverson = allIngredientsTraverson();\n // use Traverson to navigate and get associated URL\n String ingredientsUrl = traverson.follow(\"ingredients\").asLink().getHref();\n // use RestTemplate to use REST services\n return restTemplate.postForObject(ingredientsUrl, ingredient, IngredientModel.class);\n }", "public Recipe(int inProduced)\n\t{\n\t\tthis.produced = inProduced;\n\t\tingredients = new ArrayList<Ingredient>();\n\t}", "public void agregarIngrediente(Ingrediente ingrediente){\n\t\tingredientes.add(ingrediente);\n\t}", "public Ingredient(String nouveauNom, String nouvelleDescription)\n {\n this.nom = nouveauNom;\n this.description = nouvelleDescription;\n }", "public Ingredient(String description, Money cost, int calories){\r\n //use the setters methods to set description, cost, calories\r\n setDescription(description);\r\n setCost(cost);\r\n setCalories(calories);\r\n }", "public static ItemIngredient of(ItemStack input) {\n\t\treturn new ItemStackIngredient(input);\n\t}", "RecipeObject addRecipe(RecipeObject recipe);", "protected void ingredientDialog() {\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this);\n\t\talert.setTitle(\"Add New Ingredient\");\n\n\t\tfinal EditText ingredientET = new EditText(this);\n\t\tingredientET.setHint(\"Ingredient\");\n\n\t\tfinal EditText unitET = new EditText(this);\n\t\tunitET.setHint(\"Unit of measurement\");\n\n\t\tfinal EditText quantityET = new EditText(this);\n\t\tquantityET.setHint(\"Quantity\");\n\n\t\tLinearLayout layout = new LinearLayout(this);\n\t\tlayout.setOrientation(1); // 1 is for vertical orientation\n\t\tlayout.addView(ingredientET);\n\t\tlayout.addView(unitET);\n\t\tlayout.addView(quantityET);\n\n\t\talert.setView(layout);\n\n\t\talert.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t\tif ((!isEmpty(ingredientET)) && (!isEmpty(unitET))\n\t\t\t\t\t\t&& (!isEmpty(quantityET))) {\n\t\t\t\t\tRecipeView.addIngredient(ingredientET, unitET, quantityET,\n\t\t\t\t\t\t\tcurrentRecipe);\n\t\t\t\t\tpopulateIngredientView();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\talert.setNegativeButton(\"Cancel\",\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t\t\t}\n\t\t\t\t});\n\t\talert.show();\n\t}", "public void addIngredientRecipe(ArrayList<IngredientRecipePOJO> ingr);", "public Ingredient(String name, BigDecimal amount, String unitmeasure, List<Recipe> recipes) {\n this.name = name;\n this.amount = amount;\n this.unitMeasure = unitmeasure;\n this.recipes = recipes;\n }", "public void addIngredient(String ingredient){\n\t\t//Add an ingredient to the ingredientAdapter\n\t\tingredientAdapter.addIngredient(ingredient);\n\t}", "@PostMapping\n public ResponseEntity<IngredientDTO> createIngredient(@RequestBody IngredientDTO ingredientDTO) throws URISyntaxException{\n if (ingredientDTO.getId() != null){\n return ResponseEntity.badRequest().headers(HttpHeadersUtil.createEntityFailureAlert(ENTITY_NAME,\n \"A new ingredient can not be created. Ingredient ID is present.\")).body(null);\n }\n IngredientDTO savedIngredient = ingredientService.saveOrUpdateIngredient(ingredientDTO);\n return ResponseEntity.created(new URI(\"/api/ingredient/\" + savedIngredient.getId()))\n .headers(HttpHeadersUtil.createdEntityAlert(ENTITY_NAME, savedIngredient.getId().toString()))\n .body(savedIngredient);\n }", "@Override\n public void onAddIngredient(String ingredient_name, double quantity, MeasurementUnit unit) {\n\n Intent updateDB = new Intent(this, UpdateIngredientsService.class);\n updateDB.putExtra(UpdateIngredientsService.ING_NAME_KEY, ingredient_name);\n updateDB.putExtra(UpdateIngredientsService.RECIPE_ID_KEY, recipe_id);\n updateDB.putExtra(UpdateIngredientsService.ING_QUANT_KEY, quantity);\n updateDB.putExtra(UpdateIngredientsService.ING_UNIT_KEY, unit);\n updateDB.putExtra(UpdateIngredientsService.ACTION_KEY, UpdateIngredientsService.Action.ADD);\n startService(updateDB);\n\n }", "public IntermediateIngredient(){\n ingredients=new ArrayList<>();\n intermediateIngredients=new ArrayList<>();\n }", "Recipe createRecipe(String title, String description, String ingredients, String instructions, byte[] photo, byte[] photoSmall);", "public void addIngredient(View view) {\n // find the input boxes\n EditText ingredientName = findViewById(R.id.input_Ingredient);\n EditText ingredientQuantity = findViewById(R.id.input_Quantity);\n\n // get the values\n String name = ingredientName.getText().toString();\n String quantity = ingredientQuantity.getText().toString();\n\n if (!(name.equals(\"\"))) {\n // assign it to the recipe\n newRecipe.addIngredient(new Ingredient(name, quantity));\n\n // update the listview for the ingredients\n updateIngredientListView();\n\n // remove the contents of those fields\n ingredientName.setText(\"\");\n ingredientQuantity.setText(\"\");\n }\n else {\n Toast.makeText(this, \"You must enter a name for your ingredient!\", Toast.LENGTH_SHORT).show();\n }\n }", "public Recipe() { }", "public void addIngredient(View view) {\n LinearLayout layout = findViewById(R.id.recipeIngredientsInputLayout);\n EditText text = new EditText(getApplicationContext());\n text.setHint(\"Recipe Ingredient\");\n layout.addView(text);\n }", "@Override\n public String toString() {\n return \"Ingredient'\" + ingredientName + '\\'' +\n \": amount='\" + amount + '\\'';\n }", "@FXML\n\tpublic void addIngredientToProduct(ActionEvent event) {\n\t\tIngredient ingredient = restaurant.returnIngredient(ChoiceIngredients.getValue());\n\t\tboolean ingredientExists = false;\n\n\t\tfor (int i = 0; i < selectedIngredients.size() && ingredientExists == false; i++) {\n\t\t\tif (selectedIngredients.get(i).equalsIgnoreCase(ChoiceIngredients.getValue())) {\n\t\t\t\tingredientExists = true;\n\t\t\t}\n\t\t}\n\t\tif (ingredientExists == false) {\n\t\t\tif (ChoiceIngredients.getValue() != null) {\n\t\t\t\tif (ingredient.getCondition() == Condition.ACTIVE) {\n\t\t\t\t\tselectedIngredients.add(ChoiceIngredients.getValue());\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\n\t\t\t\t\t\t\t\"Ingrediente \" + ChoiceIngredients.getValue() + \" ha sido añadido al producto\");\n\t\t\t\t\tdialog.setTitle(\"Adicion de Ingrediente satisfactoria\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t} else {\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"El ingrediente ha sido deshabilitado por lo que no puede ser utilizado\");\n\t\t\t\t\tdialog.setTitle(\"Error, ingrediente Deshabilitado\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Debe escoger algun ingrediente para que pueda ser añadido\");\n\t\t\t\tdialog.setTitle(\"Campo requerido\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"El ingrediente con el nombre \" + ChoiceIngredients.getValue() + \" ya existe\");\n\t\t\tdialog.setTitle(\"Error, Ingrediente existente\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "public static ItemIngredient of(Item input) {\n\t\treturn new ItemStackIngredient(new ItemStack(input, 1, OreDictionary.WILDCARD_VALUE));\n\t}", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.add_ingredient:\n addEmptyEditTextView();\n break;\n case R.id.save_ingredients:\n Intent intent = new Intent();\n\n newIngredients = new ArrayList<>();\n\n for (int i = 0; i < (dragLinearLayout != null ? dragLinearLayout.getChildCount() : 0); i++) {\n View child = dragLinearLayout.getChildAt(i);\n EditText editTextChild = (EditText) child;\n\n if (!isEditTextEmpty(editTextChild)) {\n// newIngredients.add(decodeIngredientString(editTextChild.getText().toString()));\n// decodeString(editTextChild.getText().toString());\n newIngredients.add(new Ingredients.Ingredient(editTextChild.getText().toString()));\n }\n }\n\n intent.putParcelableArrayListExtra(\"INGREDIENTS\", newIngredients);\n setResult(Activity.RESULT_OK, intent);\n finish();\n break;\n }\n }", "public Ingredient(int fixed) {\n\t\tthis.volume = fixed;\n\t}", "@Override\n public IRecipe addRecipe() {\n return RecipeRegistry.addShapedRecipe(new ItemStack(this),\n \"igi\",\n \"gog\",\n \"igi\",\n 'o', \"obsidian\", 'i', \"ingotIron\", 'g', \"blockGlass\");\n }", "public void addNewRecipe() {\r\n listOfRecipes.add(new Recipe().createNewRecipe());\r\n }", "public static ItemIngredient of(Block input) {\n\t\treturn of(ItemBlock.getItemFromBlock(input));\n\t}", "public void bindIngredient(Ingredient ingredient){\n // Note: amount should be checked for a negative number when the add ingredient\n // button is clicked\n\n // Set the ingredient amount\n ingredientAmountEditText.setText(String.valueOf(ingredient.getAmount()));\n\n removeTextView.setText(\"X\");\n removeTextView.setClickable(true);\n\n // Set the measurement type that is displayed\n switch(ingredient.getType()){\n case TSP:\n measurementTypeTextView.setText(\"TSP\");\n break;\n case TBSP:\n measurementTypeTextView.setText(\"TBSP\");\n break;\n case GAL:\n measurementTypeTextView.setText(\"GAL\");\n break;\n case CUP:\n measurementTypeTextView.setText(\"CUP\");\n break;\n case QT:\n measurementTypeTextView.setText(\"QT\");\n break;\n case PT:\n measurementTypeTextView.setText(\"PT\");\n break;\n case LB:\n measurementTypeTextView.setText(\"LB\");\n break;\n default:\n measurementTypeTextView.setText(\" \");\n break;\n }\n\n // Set the ingredient name in all uppercase letters\n ingredientNameTextView.setText(ingredient.getName());\n\n // Give the remove button a listener that removes this instance of the\n // single ingredient layout\n removeTextView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // Remove ingredient from our ArrayList\n mIngredients.remove(getAdapterPosition());\n\n // Update the items in the RecyclerView\n notifyItemRemoved(getAdapterPosition());\n notifyItemRangeChanged(getAdapterPosition(), mIngredients.size());\n }\n });\n }", "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 }", "public void setIngredientes(java.util.ArrayList<Ingrediente> ingredientes){\n this.ingredientes = ingredientes;\n }", "@Test\n\tpublic void testAddRecipe(){\n\t\t\n\t\ttestingredient1.setName(\"Peanut Butter\");\n\t\ttestingredient2.setName(\"Jelly\");\n\t\ttestingredient3.setName(\"Bread\");\n\t\t\n\t\t\n\t\tingredients.add(testingredient1);\n\t\tingredients.add(testingredient2);\n\t\tingredients.add(testingredient3);\n\t\t\n\t\ttestRecipe.setName(\"PB and J\");\n\t\ttestRecipe.setDescription(\"A nice, tasty sandwich\");\n\t\ttestRecipe.setIngredients(ingredients);\n\t\t\n\t\ttest2.saveRecipe(testRecipe);\n\t\t//test2.deleteRecipe(testRecipe);\n\t}", "@Override\n public void createRecipe(RecipeEntity recipeEntity)\n {\n this.save(recipeEntity);\n }", "public Recipe getRecipe(){\n\t\tRecipe recipe = new Recipe();\n\t\trecipe.setName(name);\n\t\trecipe.setNumPersons(numPersons);\n\t\trecipe.setPrepTime(prepTime);\n\t\trecipe.setRestTime(restTime);\n\t\trecipe.setCookingTime(cookingTime);\n\t\tHashMap<Ingredient, Quantity> ingredients = new HashMap<Ingredient,Quantity>();\n\t\tfor(int i = 0; i<ingredientsList.size(); i++){\n\t\t\tingredients.put(ingredientsList.get(i), quantities.get(i));\n\t\t}\n\t\trecipe.setIngredients(ingredients);\n\t\trecipe.setSteps(steps);\n\t\treturn recipe;\n\t}", "public Recipe createRecipe(String name) {\r\n\t\tRecipe recipe=new Recipe(name,this);\r\n\t\trecipes.add(recipe);\r\n\t\treturn recipe;\r\n\t}", "public Ingredient(Integer key, Integer value) {\n super(key, value);\n assert value > 0 : \"Value should never be 0 or negative\";\n }", "public Ingredient(String name, int count) {\n\t\tthis.name = name;\n\t\tthis.count = count;\n\t}", "public Recipe(String id, String title, String url, ArrayList<String> ingredients,ArrayList<String> category, String image) {\n this.id = id;\n this.title = title;\n this.url = url;\n this.tag = tag;\n this.ingredients = ingredients;\n this.category = category;\n this.image = image;\n }", "@FXML\n\tpublic void buttonCreateIngredient(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString ingredientName = txtIngredientName.getText();\n\t\tIngredient ingredient = restaurant.returnIngredient(ingredientName);\n\n\t\tif (ingredient == null) {\n\t\t\tif (!ingredientName.equals(empty)) {\n\t\t\t\tIngredient objIngredient = new Ingredient(ingredientName);\n\t\t\t\ttry {\n\t\t\t\t\tboolean found = restaurant.addIngredient(objIngredient);\n\t\t\t\t\tIngredient ingredientAdded = restaurant.returnIngredient(ingredientName);// returns the ingredient\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// already added\n\t\t\t\t\tif (found == false) {\n\t\t\t\t\t\tingredientsOptions.add(ingredientName);\n\t\t\t\t\t\tingredientAdded.setCreatedByUser(restaurant.returnUser(empleadoUsername));\n\t\t\t\t\t\tingredientAdded.setEditedByUser(restaurant.returnUser(empleadoUsername));\n\t\t\t\t\t\ttxtIngredientName.setText(\"\");\n\n\t\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\t\tdialog.setContentText(\"El ingrediente \" + objIngredient.getName()\n\t\t\t\t\t\t\t\t+ \" ha sido añadido a la lista de ingredientes del restaurante\");\n\t\t\t\t\t\tdialog.setTitle(\"Ingrediente añadido\");\n\t\t\t\t\t\tdialog.show();\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * restaurant.getIngredients().add(objIngredient);\n\t\t\t\t * ingredientsOptions.add(ingredientName); txtIngredientName.setText(\"\");\n\t\t\t\t * \n\t\t\t\t * Dialog<String> dialog=createDialog();\n\t\t\t\t * dialog.setContentText(\"El ingrediente \"+objIngredient.getName()\n\t\t\t\t * +\" ha sido añadido a la lista de ingredientes del restaurante\");\n\t\t\t\t * dialog.setTitle(\"Ingrediente añadido\"); dialog.show();\n\t\t\t\t */\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"El ingrediente a crear debe tener un nombre \");\n\t\t\t\tdialog.setTitle(\"Error, Campo sin datos\");\n\t\t\t\tdialog.show();\n\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"El ingrediente ya existe\");\n\t\t\tdialog.setTitle(\"Error, Ingrediente existente\");\n\t\t\tdialog.show();\n\t\t\ttxtIngredientName.setText(\"\");\n\t\t}\n\t}", "static void addIngredient(ArrayList<Ingredient> Ingredients,\n\t\t\tString ingredient) {\n\t\tboolean ingredientAdded = false;\n\t\t// check if ingredient is already present and add count accordingly\n\t\tfor (Ingredient ing : Ingredients) {\n\t\t\tif (!ingredientAdded) {\n\t\t\t\tif (ing.equals(ingredient)) {\n\t\t\t\t\ting.addCount();\n\t\t\t\t\tingredientAdded = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// add new ingredient to list if not already present\n\t\tif (!ingredientAdded) {\n\t\t\tIngredients.add(new Ingredient(ingredient));\n\t\t}\n\t}", "public void addIngredient(Ingredient pIngredient) {\n\t\tif (null == pIngredient) {\n\t\t\treturn;\n\t\t}\n\t\tif(getIngredients() == null) {\n\t\t\tsetIngredients(new HashSet<Ingredient>());\n\t\t}\n\t\tgetIngredients().add(pIngredient);\n\t}", "public Ingredient(String name, double cost, double addOnPrice) {\n this.name = name;\n this.cost = cost;\n this.addOnPrice = addOnPrice;\n }", "public void setIngredients(String ingredients) {\n this.ingredients = ingredients;\n }", "public Ingredient getById(Long id) {\n return ingredientRepository.getOne(id);\n }", "public Ingredient(String name, BigDecimal amount, String unitmeasure) {\n this.name = name;\n this.amount = amount;\n this.unitMeasure = unitmeasure;\n }", "public void addIngredient(Ingredient ingredient) {\n stock.put(ingredient, inventoryMax);\n }", "public final void entryRuleIngredient() throws RecognitionException {\n try {\n // InternalPantryTextual.g:79:1: ( ruleIngredient EOF )\n // InternalPantryTextual.g:80:1: ruleIngredient EOF\n {\n before(grammarAccess.getIngredientRule()); \n pushFollow(FOLLOW_1);\n ruleIngredient();\n\n state._fsp--;\n\n after(grammarAccess.getIngredientRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public void rebajoIngredientes() {\n }", "public IngredientFragment() {\n }", "public void addItem(View v){\n //Creates a new IngredientModel, adds it to the List<IngredientModel>\n IngredientModel ingredientModel = new IngredientModel(ingredientEditText.getText().toString());\n ingredientModelList.add(ingredientModel);\n //Notifies the adapter the data set has changed in order to update the recyclerView\n ingredientSearchAdapter.notifyDataSetChanged();\n }", "ShipmentItem createShipmentItem();", "public RecipeForm(){\n\t\tFactory ingredientFactory = new Factory() {\n\t\t\tpublic Object create() {\n\t\t\t\treturn new Ingredient();\n\t\t }\n\t\t};\n\t\tFactory quantityFactory = new Factory(){\n\t\t\tpublic Object create(){\n\t\t\t\treturn new Quantity();\n\t\t\t}\n\t\t};\n\t\t\n\t\tingredientsList = LazyList.decorate(new ArrayList<Ingredient>(), ingredientFactory);\n\t\tquantities = LazyList.decorate(new ArrayList<Quantity>(), quantityFactory);\n\t}", "public Potion(int numIngredients) \n\t{\n\t\tthis.numIngredients= numIngredients;\n\t\tingredients=\"\";\n\t}", "public Recipes()\n {\n\t\titems = new ArrayList<food>();\n }", "public Potion() \n\t{\n\t\tnumIngredients=10;\n\t\tingredients=\"\";\n\t}", "ItemStack createItemStack(CompoundTag tag);", "public Ingredient(int lower, int upper) {\n\t\tRandom rand = new Random();\n\t\tthis.volume = lower + rand.nextInt(upper - lower + 1);\n\t}", "public void onClick(View view) {\n if(Ingredient.getText().length()>=0) {\n newRecipe.ingredients.add(Ingredient.getText().toString());\n //erase text box for next usage\n Ingredient.setText(\"\");\n\n }\n else {\n\n }\n\n }", "public final void rule__Pantry__IngredientAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPantryTextual.g:952:1: ( ( ruleIngredient ) )\n // InternalPantryTextual.g:953:2: ( ruleIngredient )\n {\n // InternalPantryTextual.g:953:2: ( ruleIngredient )\n // InternalPantryTextual.g:954:3: ruleIngredient\n {\n before(grammarAccess.getPantryAccess().getIngredientIngredientParserRuleCall_1_0()); \n pushFollow(FOLLOW_2);\n ruleIngredient();\n\n state._fsp--;\n\n after(grammarAccess.getPantryAccess().getIngredientIngredientParserRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public List<Ingredient> toIngredient(List<String> ingredientsList) {\n\t\tList<Ingredient> ingredients = new ArrayList<Ingredient>();\n\t\tfor (int i = 0; i < ingredientsList.size(); i++) {\n\t\t\tingredients.add(new Ingredient(ingredientsList.get(i)));\n\t\t}\n\t\treturn ingredients;\n\t}", "public void addItem(String name, String quantity)\n\t{\n\t\tingredients.add(new Ingredient(quantity, name));\n\t}", "public Item createItem() {\n if(pickUpImplementation == null)\n {\n pickUpImplementation = new DefaultPickUp();\n }\n\n if(lookImplementation == null)\n {\n lookImplementation = new DefaultLook(R.string.default_look);\n }\n\n if(defaultItemInteraction == null)\n {\n throw new IllegalArgumentException(\"No default interaction specified!\");\n }\n\n\n return new Item(\n id,\n name,\n pickUpImplementation,\n lookImplementation,\n useImplementation,\n defaultItemInteraction\n );\n }", "public JListeIngredient(FoodClientImpl modele) {\n super(modele);\n initComponents();\n }", "@Override\n\tpublic Item create() {\n\t\tLOGGER.info(\"Shoe Name\");\n\t\tString item_name = util.getString();\n\t\tLOGGER.info(\"Shoe Size\");\n\t\tdouble size = util.getDouble();\n\t\tLOGGER.info(\"Set Price\");\n\t\tdouble price = util.getDouble();\n\t\tLOGGER.info(\"Number in Stock\");\n\t\tlong stock = util.getLong();\n\t\tItem newItem = itemDAO.create(new Item(item_name, size, price, stock));\n\t\tLOGGER.info(\"\\n\");\n\t\treturn newItem;\n\t}", "public Product(String ndbNumber, String productName, String manufacturer, String ingredients) {\n\t\tsuper();\n\t\tthis.ndbNumber = ndbNumber;\n\t\tthis.productName = productName;\n\t\tthis.manufacturer = manufacturer;\n\t\tthis.ingredients = ingredients;\n\t}", "ShipmentItemFeature createShipmentItemFeature();", "public static FluidIngredient of(FluidIngredient... ingredients) {\n return new FluidIngredient.Compound(ingredients);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_ingredients, container, false);\n ButterKnife.bind(this, view);\n\n if (getArguments().getParcelable(Product.class.getSimpleName()) != null) {\n product = getArguments().getParcelable(Product.class.getSimpleName());\n } else {\n product = new Product();\n }\n\n return view;\n }", "@Test\n public void createRecipeTest() throws BusinessLogicException {\n RecipeEntity newEntity = factory.manufacturePojo(RecipeEntity.class);\n newEntity.getIngredientes().add(new IngredientEntity());\n RecipeEntity persistence=recipeLogic.createRecipe(newEntity);\n Assert.assertEquals(persistence.getId(), newEntity.getId());\n Assert.assertEquals(persistence.getDescription(), newEntity.getDescription());\n Assert.assertEquals(persistence.getName(), newEntity.getName());\n }", "public void addIngredient(String name, String sQuantity){\r\n int positionIngredient = findIngredientByName(name);\r\n double quantity = Double.parseDouble(sQuantity);\r\n\r\n if(positionIngredient != -1){\r\n quantity += ingredients.get(positionIngredient).getQuantity();\r\n Ingredient ingredient = new Ingredient(ingredients.get(positionIngredient).getName(), quantity);\r\n ingredients.remove(positionIngredient);\r\n ingredients.add(ingredient);\r\n } else {\r\n Ingredient ingredient = new Ingredient(name, quantity);\r\n ingredients.add(ingredient);\r\n }\r\n }", "public Vegetable createVegFromJson(final String rawVeg)\n throws NoSuchIngredientException {\n CoderFactory coderFactory = CoderFactory.getSingleInstance();\n VegetableDecoder vegDecoder = coderFactory.getVegetableDecoder();\n Optional<Vegetable> optionalVeg = vegDecoder.decodeVegetable(rawVeg);\n Vegetable vegetable = optionalVeg.orElseThrow(() ->\n new NoSuchIngredientException(getContentError()));\n return validateVeg(vegetable, rawVeg);\n }", "ItemStack make();", "void createRecipe(Recipe recipe) throws ServiceFailureException;", "public interface IngredientService {\n\n List<Ingredient> getAll();\n Ingredient save(Ingredient ingredient);\n\n}", "public Recipe(String[] in)\r\n {\r\n double temp;\r\n if (in.length == 3){\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2];\r\n this.w_qty = makeDecimal(in[0]);\r\n }\r\n else {if (in.length == 5) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3] + \" \" + in[4];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = Double.parseDouble(in[0])+ temp;\r\n }\r\n else if (in.length == 4) {\r\n if (in[1].contains(\"/\")) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = temp + Double.parseDouble(in[0]);}\r\n else {\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2] + \" \" + in[3];\r\n this.w_qty = makeDecimal(in[0]);}\r\n }\r\n }\r\n this.working_measure = measure;\r\n this.final_measure = measure;\r\n }", "@Override\n\tpublic String ingredients() {\n\t\treturn \"Chicken, Bread, seasoning , cheese\";\n\t}", "public interface IngredientService {\n IngredientDTO getIngredient(Long id);\n\n Ingredient insert(IngredientDTO ingredientDTO);\n\n List<IngredientDTO> getAllIngredients();\n\n Ingredient update(IngredientDTO ingredientDTO);\n\n boolean delete(Long ingredientId);\n\n long getLastEditTimeIngredient();\n\n IngredientUnit insertIngredientUnit(IngredientUnitDTO ingredientUnitDTO);\n\n List<IngredientUnitDTO> getAllIngredientUnits();\n}", "public Recipe createRecipe(String name, String chocolate, String coffee, String milk, String sugar, String price) throws RecipeException {\r\n Recipe recipe = new Recipe();\r\n recipe.setName(name);\r\n recipe.setAmtChocolate(chocolate);\r\n recipe.setAmtCoffee(coffee);\r\n recipe.setAmtMilk(milk);\r\n recipe.setAmtSugar(sugar);\r\n recipe.setPrice(price);\r\n return recipe;\r\n }", "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}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_ingredient);\n\n spinner = findViewById(R.id.progressBarI);\n spinner.setVisibility(View.GONE);\n\n Intent intent = getIntent();\n\n // check from which activity ingredient was chosen\n if (intent.getStringExtra(\"recipeId\") != null) {\n recipe = intent.getStringExtra(\"recipeId\");\n message = \"recipes/\" + recipe + \"/information\";\n\n // get ingredient connected to recipe\n IngredientRequest request = new IngredientRequest(this, message);\n request.getIngredients(this, message);\n }\n\n else if (intent.getStringExtra(\"query\") != null) {\n message = intent.getStringExtra(\"query\");\n\n // get ingredient connected to query\n AutoIngredientRequest autoRequest = new AutoIngredientRequest(this, message);\n autoRequest.getAutoIngredients(this, message);\n }\n }", "public EntityBundleCreate() {}", "@FXML\n\tpublic void enableIngredient(ActionEvent event) {\n\t\tif (!txtNameDisableIngredient.getText().isEmpty()) {\n\t\t\tIngredient ingredient = restaurant.returnIngredient(txtNameDisableIngredient.getText());\n\t\t\tif (ingredient != null) {\n\n\t\t\t\ttry {\n\t\t\t\t\tingredient.setCondition(Condition.ACTIVE);\n\t\t\t\t\trestaurant.saveIngredientsData();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"El ingrediente ha sido habilitado\");\n\t\t\t\t\tdialog.setTitle(\"Ingrediente Habilitado\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t\ttxtNameDisableIngredient.setText(\"\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se ha podido guardar el nuevo estado del Ingrediente\");\n\t\t\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Este Ingrediente no existe\");\n\t\t\t\tdialog.setTitle(\"Error, objeto no existente\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben de ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "@Autowired\n public IngredientService(IngredientRepository ingredientRepository) {\n this.ingredientRepository = ingredientRepository;\n }", "@PutMapping\n public ResponseEntity<IngredientDTO> updateIngredient(@RequestBody IngredientDTO ingredientDTO) throws URISyntaxException{\n if (ingredientDTO.getId() == null){\n return createIngredient(ingredientDTO);\n }\n IngredientDTO updatedIngredient = ingredientService.saveOrUpdateIngredient(ingredientDTO);\n return ResponseEntity.created(new URI(\"/api/ingredient/\" + updatedIngredient.getId()))\n .headers(HttpHeadersUtil.updateEntityAlert(ENTITY_NAME, updatedIngredient.getId().toString()))\n .body(updatedIngredient);\n }", "void createItem (String name, String description, double price);", "public static RecipeFragment newInstance(RecipeIngredient recipeIngredients) {\n RecipeFragment fragment = new RecipeFragment();\n fragment.recipeIngredient = recipeIngredients;\n return fragment;\n }", "public void registerRecipe() {\n\t ItemStack itemStackDroidParts = new ItemStack(SuperDopeJediMod.entityManager.droidParts);\n\t ItemStack itemStackQuadaniumSteelIngot = new ItemStack(SuperDopeJediMod.quadaniumSteelIngot); \n\t ItemStack itemStackThis = new ItemStack(this);\n\t \n\t GameRegistry.addRecipe(itemStackThis, \"xxx\", \"xyx\", \"xxx\", 'x', itemStackDroidParts,\n\t \t\t\t'y', itemStackQuadaniumSteelIngot);\t\n\t}", "private Item initItem() {\n String name = inputName.getText().toString();\n int quantityToBuy = -1;\n if (!inputQuantityToBuy.getText().toString().equals(\"\"))\n quantityToBuy = Integer.parseInt(inputQuantityToBuy.getText().toString());\n String units = inputUnits.getText().toString();\n double price = 0;\n if (!inputPrice.getText().toString().equals(\"\"))\n price = Double.parseDouble(inputPrice.getText().toString());\n int calories = 0;\n if (!inputCalories.getText().toString().equals(\"\"))\n calories = Integer.parseInt(inputCalories.getText().toString());\n ArrayList<String> allergies = allergyActions.getAllergies();\n return new Item(name, 0, units, quantityToBuy, 0, allergies, calories, price);\n }", "public IngredientAdapter(@NonNull Context context, ArrayList<Ingredient> list){\n super(context, 0, list);\n mContext = context;\n ingredientList = list;\n }", "public Ingredient(IngredientName name, IngredientUnit unit, IngredientPrice price, MinimumUnit minimum,\n NumUnits numUnits) {\n requireAllNonNull(name);\n this.name = name;\n this.unit = unit;\n this.price = price;\n this.minimum = minimum;\n this.numUnits = numUnits;\n }", "public void createItemInInventory(Item newItem) {\n\t\tinventory.createItem(newItem);\n\t}", "public void create(Pizza pizza){\n pizza.setID(counter++);\n pizzas.add(pizza);\n }", "public final void rule__Pantry__IngredientAssignment_2_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPantryTextual.g:967:1: ( ( ruleIngredient ) )\n // InternalPantryTextual.g:968:2: ( ruleIngredient )\n {\n // InternalPantryTextual.g:968:2: ( ruleIngredient )\n // InternalPantryTextual.g:969:3: ruleIngredient\n {\n before(grammarAccess.getPantryAccess().getIngredientIngredientParserRuleCall_2_1_0()); \n pushFollow(FOLLOW_2);\n ruleIngredient();\n\n state._fsp--;\n\n after(grammarAccess.getPantryAccess().getIngredientIngredientParserRuleCall_2_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Food() {\n\t\tsuper(\"FOOD.png\");\n\t}", "public Sandwich(String breadType, String[] ingredients,\n\t\t\t String foodType, String description, String fatContent,\n\t\t\t double price)\n\t{\n\t\t\n\t}" ]
[ "0.72905207", "0.72323155", "0.7173357", "0.7032844", "0.6964622", "0.68783116", "0.65172327", "0.6485407", "0.6357105", "0.6289212", "0.6287944", "0.62730354", "0.6214655", "0.619458", "0.6124406", "0.6091719", "0.60845137", "0.608329", "0.6076012", "0.6066685", "0.6029073", "0.6013516", "0.5969196", "0.5948798", "0.5929692", "0.5925719", "0.5908403", "0.58340126", "0.5819648", "0.5818446", "0.57770675", "0.57494843", "0.57376385", "0.57045037", "0.5676862", "0.5652212", "0.56093496", "0.5595533", "0.5570027", "0.5566374", "0.55662197", "0.55612564", "0.5553135", "0.5544175", "0.5523223", "0.55170566", "0.55084425", "0.5504423", "0.5503598", "0.5497126", "0.5483487", "0.5469026", "0.5459652", "0.54569805", "0.54520226", "0.5393835", "0.538908", "0.53845596", "0.53693867", "0.536121", "0.5344739", "0.53405887", "0.5336448", "0.53113353", "0.5310234", "0.5292916", "0.52824533", "0.52781117", "0.52433115", "0.5241819", "0.5231925", "0.5222538", "0.5214234", "0.5213808", "0.5212168", "0.5211571", "0.52074677", "0.5202864", "0.51962507", "0.5181477", "0.51624584", "0.5153947", "0.51500654", "0.5144573", "0.5120612", "0.5119575", "0.51185584", "0.51130044", "0.5101095", "0.50941044", "0.50797474", "0.5078688", "0.50732446", "0.50662464", "0.5064638", "0.5057222", "0.50548303", "0.5038855", "0.5029884", "0.5025597" ]
0.6563777
6
The Ingredient constructor with 1 parameter only, used to construct an ingredient of fixed volume.
public Ingredient(int fixed) { this.volume = fixed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Ingredient(){\r\n\t}", "public Ingredient() { }", "public Ingredient() {\n }", "public Ingredient(){\r\n \r\n }", "public Ingredient(int lower, int upper) {\n\t\tRandom rand = new Random();\n\t\tthis.volume = lower + rand.nextInt(upper - lower + 1);\n\t}", "public Ingredient(String name){\r\n\t\tthis.name = name;\r\n\t}", "public Ingredient(Integer key, Integer value) {\n super(key, value);\n assert value > 0 : \"Value should never be 0 or negative\";\n }", "public Ingredient(String nouveauNom, String nouvelleDescription)\n {\n this.nom = nouveauNom;\n this.description = nouvelleDescription;\n }", "public Recipe(int inProduced)\n\t{\n\t\tthis.produced = inProduced;\n\t\tingredients = new ArrayList<Ingredient>();\n\t}", "public Ingredient(String description, Money cost, int calories){\r\n //use the setters methods to set description, cost, calories\r\n setDescription(description);\r\n setCost(cost);\r\n setCalories(calories);\r\n }", "public abstract Ingredient getNew();", "public static ItemIngredient of(String input) {\n\t\treturn new OreItemIngredient(input, 1);\n\t}", "public static ItemIngredient of(Item input) {\n\t\treturn new ItemStackIngredient(new ItemStack(input, 1, OreDictionary.WILDCARD_VALUE));\n\t}", "public Ingredient(String name, double cost, double addOnPrice) {\n this.name = name;\n this.cost = cost;\n this.addOnPrice = addOnPrice;\n }", "public static ItemIngredient of(ItemStack input) {\n\t\treturn new ItemStackIngredient(input);\n\t}", "public Ingredient(IngredientName name, IngredientUnit unit, IngredientPrice price, MinimumUnit minimum,\n NumUnits numUnits) {\n requireAllNonNull(name);\n this.name = name;\n this.unit = unit;\n this.price = price;\n this.minimum = minimum;\n this.numUnits = numUnits;\n }", "Item(){\r\n\t\tthis(0, new Weight(5), new DukatAmount(0));\r\n\t}", "public static FluidIngredient of(FluidIngredient... ingredients) {\n return new FluidIngredient.Compound(ingredients);\n }", "public Ingredient(String name, BigDecimal amount, String unitmeasure, List<Recipe> recipes) {\n this.name = name;\n this.amount = amount;\n this.unitMeasure = unitmeasure;\n this.recipes = recipes;\n }", "public IntermediateIngredient(){\n ingredients=new ArrayList<>();\n intermediateIngredients=new ArrayList<>();\n }", "public Inventory() {\n this.SIZE = DEFAULT_SIZE;\n this.ITEMS = new ArrayList<>();\n }", "public static ItemIngredient of(Block input) {\n\t\treturn of(ItemBlock.getItemFromBlock(input));\n\t}", "public Ingredient(String name, BigDecimal amount, String unitmeasure) {\n this.name = name;\n this.amount = amount;\n this.unitMeasure = unitmeasure;\n }", "public Ingredient(String name, int count) {\n\t\tthis.name = name;\n\t\tthis.count = count;\n\t}", "public InventoryItem(String name) { \n\t\tthis(name, 1);\n\t}", "Item(Weight weight){\r\n\t\tthis(0, weight, new DukatAmount(0));\r\n\t}", "public IngredientFragment() {\n }", "Item(DukatAmount price){\r\n\t\tthis(0, new Weight(5), price);\r\n\t}", "public Good(String name, double volume, String imgFilePath, double price) {\n this.name = name;\n this.volume = volume;\n this.imgFilePath = imgFilePath;\n this.price = price;\n }", "public Recipe(String[] in)\r\n {\r\n double temp;\r\n if (in.length == 3){\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2];\r\n this.w_qty = makeDecimal(in[0]);\r\n }\r\n else {if (in.length == 5) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3] + \" \" + in[4];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = Double.parseDouble(in[0])+ temp;\r\n }\r\n else if (in.length == 4) {\r\n if (in[1].contains(\"/\")) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = temp + Double.parseDouble(in[0]);}\r\n else {\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2] + \" \" + in[3];\r\n this.w_qty = makeDecimal(in[0]);}\r\n }\r\n }\r\n this.working_measure = measure;\r\n this.final_measure = measure;\r\n }", "public static FluidIngredient of(TagKey<Fluid> fluid, int amount) {\n return new FluidIngredient.TagMatch(fluid, amount);\n }", "Item(long ID, DukatAmount price){\r\n\t\tthis(ID, new Weight(5), price);\r\n\t}", "public DessertItem() {\n this(\"\");\n }", "public Pig() {\n this.id = \"\";\n this.weight = 0;\n this.earTag = \"1230\";\n }", "public Pizza() {\n this(\"small\", 1, 1, 1);\n }", "public Item()\r\n\t{\r\n\t\tserialNum = 00000;\r\n\t\tweight = 0.0;\r\n\t}", "public Food() {\n super(1, 0, 1, 100, 5, 5, Resources.RICHSOIL, Resources.POORSOIL, \"Food\");\n }", "public Item(){\n description = \"No description avaible for this item\";\n weight = 0;\n }", "public StockItem(T product, Integer quantity) {\n this.product = product;\n this.quantity = quantity;\n }", "public OrdinaryTruck(int itemQuantity)\n {\n this.itemQuantity = itemQuantity;\n }", "public Recipe() { }", "public InventoryEntry() {\n super();\n }", "public Potion(int numIngredients) \n\t{\n\t\tthis.numIngredients= numIngredients;\n\t\tingredients=\"\";\n\t}", "public Chicken() {\n\t\tsuper(id, price, type, description, happiness, health);\n\t}", "public Potion() \n\t{\n\t\tnumIngredients=10;\n\t\tingredients=\"\";\n\t}", "public Inventory() {\r\n invPower = 0;\r\n invDefense = 0;\r\n invSpeed = 0;\r\n invAwareness = 0;\r\n treasures = new ArrayList<>();\r\n }", "public Food() {\n\t\tsuper(\"FOOD.png\");\n\t}", "public Inventory() {\r\n initialize();\r\n }", "public InventoryItem(){\r\n this.itemName = \"TBD\";\r\n this.sku = 0;\r\n this.price = 0.0;\r\n this.quantity = 0;\r\n nItems++;\r\n }", "public SuperProduct() {\n\t\tsuper();\n\t}", "public static FluidIngredient of(Fluid fluid, int amount) {\n return new FluidIngredient.FluidMatch(fluid, amount);\n }", "public Sandwich(String breadType, String[] ingredients,\n\t\t\t String foodType, String description, String fatContent,\n\t\t\t double price)\n\t{\n\t\t\n\t}", "public ChickenBurger(int quantity) {\n\t\n\t\tsuper(\"Chicken Burger $8\", \"lettuce, tomato, topped with cheese, onions.\", quantity, 8);\n\t\n\t}", "public Weapon (String name) {\n\t\tsuper(name, weight, itemDamage, 0, 0, quantity);\n\t}", "public Inventory () {\n weaponsInventory = new ArrayList<>();\n pointInventory = 0;\n lenInventory = 0;\n }", "public NBT_Tag(String name) {\nthis.id = 0; //overwritten\nthis.name = name;\n}", "@Override\n public String toString() {\n return \"Ingredient'\" + ingredientName + '\\'' +\n \": amount='\" + amount + '\\'';\n }", "public BaseInventory (long id) {\r\n\t\tsuper(id);\r\n\t}", "public Item(Integer id, String name, String description, double weight, boolean isPickupable, boolean isDropable) {\r\n\t\tthis(id, name, description, ItemType.DEFAULT, weight, isPickupable, isDropable);\r\n\t}", "Quantity initQuantity(Quantity iQuantity)\n {\n iQuantity.updateElementValue(\"Quantity\");\n return iQuantity;\n }", "public Volume()\n {\n setImage(\"volumeOn.png\");\n GreenfootImage volumeOn = getImage();\n volumeOn.scale(70,70);\n setImage(volumeOn);\n soundtrack.playLoop();\n }", "public Recipes()\n {\n\t\titems = new ArrayList<food>();\n }", "public JListeIngredient(FoodClientImpl modele) {\n super(modele);\n initComponents();\n }", "public IntVec3Volume(IntVec3 start, IntVec3 end){\n this.start=start;\n this.end=end;\n }", "protected Product(Parcel in) {\r\n quantity = in.readInt();\r\n name = in.readString();\r\n checked = in.readByte() != 0;\r\n }", "public Item() {\n\t\tthis(rand.nextDouble() * GameManager.NATIVE_WIDTH, -30.0, PowerUp[new Random().nextInt(PowerUp.length)]);\n\t}", "public SimpleOre(int par1, Material material, String mod, CreativeTabs tab) \n\t{\n\t\tsuper(par1, material);\n\t\tthis.modName = mod;\n\t\t\n\t}", "@Override\n public void onAddIngredient(String ingredient_name, double quantity, MeasurementUnit unit) {\n\n Intent updateDB = new Intent(this, UpdateIngredientsService.class);\n updateDB.putExtra(UpdateIngredientsService.ING_NAME_KEY, ingredient_name);\n updateDB.putExtra(UpdateIngredientsService.RECIPE_ID_KEY, recipe_id);\n updateDB.putExtra(UpdateIngredientsService.ING_QUANT_KEY, quantity);\n updateDB.putExtra(UpdateIngredientsService.ING_UNIT_KEY, unit);\n updateDB.putExtra(UpdateIngredientsService.ACTION_KEY, UpdateIngredientsService.Action.ADD);\n startService(updateDB);\n\n }", "public Inventory(String kodeWh,String kodeProd,double hargaProd,int jumlahProd){\n this.kodeWh=kodeWh;\n this.kodeProd=kodeProd;\n this.hargaProd=hargaProd;\n this.jumlahProd=jumlahProd;\n }", "public Item(String name, String image, String flavour, int price) {\n\t\tthis.name = name;\n\t\tthis.image = image;\n\t\tthis.flavour = flavour;\n\t\tthis.price = price;\n\t}", "Quantity createQuantity();", "public Inventory(int INVENTORY_SLOTS) {\n\t\tsuper();\n\t\tthis.inventoryItems = new Item[INVENTORY_SLOTS];\n\t\tthis.INVENTORY_SLOTS = INVENTORY_SLOTS;\n\t}", "public Item(int weigth, String name, String description) {\n this.weigth = weigth;\n this.name = name;\n this.description = description;\n }", "public Vector3(NBTTagCompound nbt)\n {\n this(nbt.getDouble(\"x\"), nbt.getDouble(\"y\"), nbt.getDouble(\"z\"));\n }", "public Strawberries() {\r\n\t\tsuper(price, nutrition, name);\r\n\t}", "public CD(int id,String name, String singer, int numberOfSongs, double price) {\r\n\t\tsuper();\r\n\t\tthis.id = id;\r\n\t\tthis.name = name;\r\n\t\tthis.singer = singer;\r\n\t\tthis.numberOfSongs = numberOfSongs;\r\n\t\tthis.price = price;\r\n\t}", "public Item() {\r\n this.name = \"\";\r\n this.description = \"\";\r\n this.price = 0F;\r\n this.type = \"\";\r\n this.available = 0;\r\n this.wholesaler = new Wholesaler();\r\n this.wholesalerId = 0;\r\n this.category = new Category();\r\n this.categoryId = 0; \r\n }", "Item(int i, String n, String c, double p) {\n this.id = i;\n this.name = n;\n this.category = c;\n this.price = p;\n }", "public Sivic(boolean full) throws InvalidOptionChoice {\n super(full);\n this.setCost(50000);\n this.setName(\"Sivic\");\n }", "public NamespacedNBT() {\n this(new CompoundTag());\n }", "public VOIVector(int initialsize) {\r\n super(initialsize);\r\n }", "public Objects(String item, double baseprice){\r\n this.item = item;\r\n this.baseprice = baseprice;\r\n }", "public void agregarIngrediente(Ingrediente ingrediente){\n\t\tingredientes.add(ingrediente);\n\t}", "public Item(int id, String name, String description, ItemType type, double weight, boolean isPickupable, boolean isDropable) {\r\n\t\tthis.id = id;\r\n\t\tthis.name = name;\r\n\t\tthis.description = description;\r\n\t\tthis.type = type;\r\n\t\tthis.pickupable = isPickupable;\r\n\t\tthis.dropable = isDropable;\r\n\t\tthis.weight = weight;\r\n\t\tthis.usable = null;\r\n\t}", "public Item(String name, int quantity, String um, double unitPrice) {\n\t\tthis.name = name;\n\t\tthis.unitPrice = unitPrice;\n\t\tthis.quantityInStock = quantity;\n\t\tthis.unitOfMeasurement = um;\n\t}", "public Item(final String pDescription, final double pWeight, final String pMotclef)\r\n {\r\n this.aDescription = pDescription;\r\n this.aWeight = pWeight;\r\n this.aMotclef = pMotclef;\r\n }", "public Item()\n {\n super();\n }", "public Item(int id, String name, int quantity, double price, Supplier supplier){\r\n toolId = id;\r\n toolName = name;\r\n toolQuantity = quantity;\r\n toolPrice = price;\r\n toolSupplier = supplier;\r\n }", "public Item(String des, double w){\n description = des;\n weight = w;\n }", "public InventoryItem(String name, int quantity) {\n\t\tthis.name = name;\n\t\tthis.quantity = quantity;\n\t}", "public Product(int productID, String productName, double costPrice, double sellingPrice, String productDescription, int amountInStock, int minimumStock) {\r\n this.productID = productID;\r\n this.productName = productName;\r\n this.costPrice = costPrice;\r\n this.sellingPrice = sellingPrice;\r\n this.productDescription = productDescription;\r\n this.amountInStock = amountInStock;\r\n this.minimumStock = minimumStock;\r\n \r\n }", "public Fish() {\r\n\t}", "public ElectricBike() {\n\t\tsuper();\n\t}", "public Food(String name, int health, int wieght, int value)\n {\n super(name, health, wieght, value);\n }", "ItemStack createItemStack(CompoundTag tag);", "public DiskPoolVolume() {\n }", "public Shampoo(String manufacturer, String productName, double price, int minAge, int unit) {\n super(manufacturer, productName, price, minAge, unit);\n }", "public Food(int x, int y) {\n\t\tsuper(\"FOOD.png\",x,y);\n\t}", "public PizzaIngredientsRawCsvLine(String category, String subCategory, String productName,\n String productDescription, String price, String deliveryFee,\n String isSpicy, String isVegetarian, String isAvailable,\n String ingredientPortion, String ingredientName,\n String standardPizzasauce) {\n this.category = category;\n this.subCategory = subCategory;\n this.productName = productName;\n this.productDescription = productDescription;\n this.price = price;\n this.deliveryFee = deliveryFee;\n this.isSpicy = isSpicy;\n this.isVegetarian = isVegetarian;\n this.isAvailable = isAvailable;\n this.ingredientPortion = ingredientPortion;\n this.ingredientName = ingredientName;\n this.standardPizzasauce = standardPizzasauce;\n }", "public Item(){}" ]
[ "0.75722075", "0.7510604", "0.73093003", "0.72810894", "0.7099039", "0.7015046", "0.67695934", "0.66878283", "0.6447795", "0.6417808", "0.62675416", "0.62618554", "0.62534136", "0.6228305", "0.6204192", "0.6191742", "0.6073974", "0.6067007", "0.6065281", "0.60132813", "0.59930885", "0.59824693", "0.5922809", "0.58542633", "0.58420575", "0.581812", "0.58064556", "0.5782199", "0.5737612", "0.56989485", "0.56909776", "0.5589709", "0.5574372", "0.5554858", "0.5554849", "0.5545927", "0.5541877", "0.55213344", "0.5519596", "0.55178976", "0.54954565", "0.54787993", "0.5462926", "0.54503614", "0.5425135", "0.54209876", "0.5418233", "0.54123914", "0.5411003", "0.54052305", "0.540233", "0.5376406", "0.53711766", "0.53641045", "0.53612566", "0.5358644", "0.53534627", "0.5352955", "0.5352907", "0.5332553", "0.53294206", "0.5321898", "0.53213644", "0.5321094", "0.53125876", "0.5298458", "0.5287356", "0.52865523", "0.5279404", "0.5269918", "0.5238919", "0.52153826", "0.52074355", "0.52052975", "0.5193109", "0.5172124", "0.5170036", "0.51670825", "0.5159769", "0.51596767", "0.51538235", "0.51524687", "0.5149518", "0.51371163", "0.5135623", "0.51310885", "0.51267254", "0.5125429", "0.5119816", "0.5111233", "0.5107855", "0.51022935", "0.5100367", "0.50948304", "0.50895375", "0.508224", "0.5077773", "0.50767285", "0.5076156", "0.507379" ]
0.8573289
0
The Ingredient constructor with 2 parameters, used to construct an ingredient of random volume.
public Ingredient(int lower, int upper) { Random rand = new Random(); this.volume = lower + rand.nextInt(upper - lower + 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Ingredient(){\r\n\t}", "public Ingredient(int fixed) {\n\t\tthis.volume = fixed;\n\t}", "public Ingredient() { }", "public Ingredient(){\r\n \r\n }", "public Ingredient() {\n }", "public Ingredient(String name){\r\n\t\tthis.name = name;\r\n\t}", "public Ingredient(String nouveauNom, String nouvelleDescription)\n {\n this.nom = nouveauNom;\n this.description = nouvelleDescription;\n }", "public Ingredient(String description, Money cost, int calories){\r\n //use the setters methods to set description, cost, calories\r\n setDescription(description);\r\n setCost(cost);\r\n setCalories(calories);\r\n }", "public Recipe(int inProduced)\n\t{\n\t\tthis.produced = inProduced;\n\t\tingredients = new ArrayList<Ingredient>();\n\t}", "public static ItemIngredient of(String input) {\n\t\treturn new OreItemIngredient(input, 1);\n\t}", "public Ingredient(Integer key, Integer value) {\n super(key, value);\n assert value > 0 : \"Value should never be 0 or negative\";\n }", "public static ItemIngredient of(ItemStack input) {\n\t\treturn new ItemStackIngredient(input);\n\t}", "public Ingredient(String name, BigDecimal amount, String unitmeasure, List<Recipe> recipes) {\n this.name = name;\n this.amount = amount;\n this.unitMeasure = unitmeasure;\n this.recipes = recipes;\n }", "public abstract Ingredient getNew();", "public static ItemIngredient of(Item input) {\n\t\treturn new ItemStackIngredient(new ItemStack(input, 1, OreDictionary.WILDCARD_VALUE));\n\t}", "public Ingredient(String name, double cost, double addOnPrice) {\n this.name = name;\n this.cost = cost;\n this.addOnPrice = addOnPrice;\n }", "public IntermediateIngredient(){\n ingredients=new ArrayList<>();\n intermediateIngredients=new ArrayList<>();\n }", "public static ItemIngredient of(Block input) {\n\t\treturn of(ItemBlock.getItemFromBlock(input));\n\t}", "public Ingredient(String name, int count) {\n\t\tthis.name = name;\n\t\tthis.count = count;\n\t}", "public Ingredient(IngredientName name, IngredientUnit unit, IngredientPrice price, MinimumUnit minimum,\n NumUnits numUnits) {\n requireAllNonNull(name);\n this.name = name;\n this.unit = unit;\n this.price = price;\n this.minimum = minimum;\n this.numUnits = numUnits;\n }", "public Ingredient(String name, BigDecimal amount, String unitmeasure) {\n this.name = name;\n this.amount = amount;\n this.unitMeasure = unitmeasure;\n }", "public Inventory() {\n this.SIZE = DEFAULT_SIZE;\n this.ITEMS = new ArrayList<>();\n }", "public InventoryItem(String name) { \n\t\tthis(name, 1);\n\t}", "Item(){\r\n\t\tthis(0, new Weight(5), new DukatAmount(0));\r\n\t}", "public Sandwich(String breadType, String[] ingredients,\n\t\t\t String foodType, String description, String fatContent,\n\t\t\t double price)\n\t{\n\t\t\n\t}", "public Good(String name, double volume, String imgFilePath, double price) {\n this.name = name;\n this.volume = volume;\n this.imgFilePath = imgFilePath;\n this.price = price;\n }", "public IngredientFragment() {\n }", "Item(DukatAmount price){\r\n\t\tthis(0, new Weight(5), price);\r\n\t}", "public Recipe() { }", "public Recipe(String[] in)\r\n {\r\n double temp;\r\n if (in.length == 3){\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2];\r\n this.w_qty = makeDecimal(in[0]);\r\n }\r\n else {if (in.length == 5) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3] + \" \" + in[4];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = Double.parseDouble(in[0])+ temp;\r\n }\r\n else if (in.length == 4) {\r\n if (in[1].contains(\"/\")) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = temp + Double.parseDouble(in[0]);}\r\n else {\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2] + \" \" + in[3];\r\n this.w_qty = makeDecimal(in[0]);}\r\n }\r\n }\r\n this.working_measure = measure;\r\n this.final_measure = measure;\r\n }", "public Item() {\n\t\tthis(rand.nextDouble() * GameManager.NATIVE_WIDTH, -30.0, PowerUp[new Random().nextInt(PowerUp.length)]);\n\t}", "public Potion() \n\t{\n\t\tnumIngredients=10;\n\t\tingredients=\"\";\n\t}", "public Pizza() {\n this(\"small\", 1, 1, 1);\n }", "public Potion(int numIngredients) \n\t{\n\t\tthis.numIngredients= numIngredients;\n\t\tingredients=\"\";\n\t}", "public ArtItemBuilder(){\n this.r = new Random();\n }", "public Recipe(String id, String title, String url, ArrayList<String> ingredients,ArrayList<String> category, String image) {\n this.id = id;\n this.title = title;\n this.url = url;\n this.tag = tag;\n this.ingredients = ingredients;\n this.category = category;\n this.image = image;\n }", "@Override\n public String toString() {\n return \"Ingredient'\" + ingredientName + '\\'' +\n \": amount='\" + amount + '\\'';\n }", "Item(Weight weight){\r\n\t\tthis(0, weight, new DukatAmount(0));\r\n\t}", "public Food() {\n super(1, 0, 1, 100, 5, 5, Resources.RICHSOIL, Resources.POORSOIL, \"Food\");\n }", "public Recipes()\n {\n\t\titems = new ArrayList<food>();\n }", "public DessertItem() {\n this(\"\");\n }", "public static FluidIngredient of(FluidIngredient... ingredients) {\n return new FluidIngredient.Compound(ingredients);\n }", "public Food() {\n\t\tsuper(\"FOOD.png\");\n\t}", "public OrdinaryTruck(int itemQuantity)\n {\n this.itemQuantity = itemQuantity;\n }", "public InventoryItem(){\r\n this.itemName = \"TBD\";\r\n this.sku = 0;\r\n this.price = 0.0;\r\n this.quantity = 0;\r\n nItems++;\r\n }", "public Inventory() {\r\n initialize();\r\n }", "public Inventory () {\n weaponsInventory = new ArrayList<>();\n pointInventory = 0;\n lenInventory = 0;\n }", "public Food()\n {\n x = (int) Math.floor(Math.random() * RANGEX)*20;\n y = (int) Math.floor(Math.random() * RANGEY)*20;\n isEaten = false;\n }", "public JListeIngredient(FoodClientImpl modele) {\n super(modele);\n initComponents();\n }", "public Chicken() {\n\t\tsuper(id, price, type, description, happiness, health);\n\t}", "Item(long ID, DukatAmount price){\r\n\t\tthis(ID, new Weight(5), price);\r\n\t}", "public Item(){\n description = \"No description avaible for this item\";\n weight = 0;\n }", "public void agregarIngrediente(Ingrediente ingrediente){\n\t\tingredientes.add(ingrediente);\n\t}", "public Item(int weigth, String name, String description) {\n this.weigth = weigth;\n this.name = name;\n this.description = description;\n }", "public StockItem(T product, Integer quantity) {\n this.product = product;\n this.quantity = quantity;\n }", "public NBT_Tag(String name) {\nthis.id = 0; //overwritten\nthis.name = name;\n}", "public IngredientAdapter(@NonNull Context context, ArrayList<Ingredient> list){\n super(context, 0, list);\n mContext = context;\n ingredientList = list;\n }", "public Strawberries() {\r\n\t\tsuper(price, nutrition, name);\r\n\t}", "public Product(String ndbNumber, String productName, String manufacturer, String ingredients) {\n\t\tsuper();\n\t\tthis.ndbNumber = ndbNumber;\n\t\tthis.productName = productName;\n\t\tthis.manufacturer = manufacturer;\n\t\tthis.ingredients = ingredients;\n\t}", "public Pig() {\n this.id = \"\";\n this.weight = 0;\n this.earTag = \"1230\";\n }", "public Weapon (String name) {\n\t\tsuper(name, weight, itemDamage, 0, 0, quantity);\n\t}", "public SuperProduct() {\n\t\tsuper();\n\t}", "public void setIngredients(String ingredients) {\n this.ingredients = ingredients;\n }", "public Volume()\n {\n setImage(\"volumeOn.png\");\n GreenfootImage volumeOn = getImage();\n volumeOn.scale(70,70);\n setImage(volumeOn);\n soundtrack.playLoop();\n }", "@Override\n\tpublic String ingredients() {\n\t\treturn \"Chicken, Bread, seasoning , cheese\";\n\t}", "public void rebajoIngredientes() {\n }", "public Inventory(String kodeWh,String kodeProd,double hargaProd,int jumlahProd){\n this.kodeWh=kodeWh;\n this.kodeProd=kodeProd;\n this.hargaProd=hargaProd;\n this.jumlahProd=jumlahProd;\n }", "public Item(String name, String image, String flavour, int price) {\n\t\tthis.name = name;\n\t\tthis.image = image;\n\t\tthis.flavour = flavour;\n\t\tthis.price = price;\n\t}", "public Food(int x, int y) {\n\t\tsuper(\"FOOD.png\",x,y);\n\t}", "public Item()\r\n {\r\n gen = new Random();\r\n color = new Color(gen.nextInt());\r\n x = 200;\r\n w = 100;\r\n h = 18;\r\n }", "public ChickenBurger(int quantity) {\n\t\n\t\tsuper(\"Chicken Burger $8\", \"lettuce, tomato, topped with cheese, onions.\", quantity, 8);\n\t\n\t}", "public Item()\r\n\t{\r\n\t\tserialNum = 00000;\r\n\t\tweight = 0.0;\r\n\t}", "public Item(final String pDescription, final double pWeight, final String pMotclef)\r\n {\r\n this.aDescription = pDescription;\r\n this.aWeight = pWeight;\r\n this.aMotclef = pMotclef;\r\n }", "public void setIngredientes(java.util.ArrayList<Ingrediente> ingredientes){\n this.ingredientes = ingredientes;\n }", "public Item(Integer id, String name, String description, double weight, boolean isPickupable, boolean isDropable) {\r\n\t\tthis(id, name, description, ItemType.DEFAULT, weight, isPickupable, isDropable);\r\n\t}", "public Item(String description, double weight, String name)\n {\n this.description = description;\n this.weight = weight;\n this.name = name;\n }", "DirectionIngredientsAdapter(List<Ingredient> ingredients) {\n this.ingredients = ingredients;\n }", "private Item initItem() {\n String name = inputName.getText().toString();\n int quantityToBuy = -1;\n if (!inputQuantityToBuy.getText().toString().equals(\"\"))\n quantityToBuy = Integer.parseInt(inputQuantityToBuy.getText().toString());\n String units = inputUnits.getText().toString();\n double price = 0;\n if (!inputPrice.getText().toString().equals(\"\"))\n price = Double.parseDouble(inputPrice.getText().toString());\n int calories = 0;\n if (!inputCalories.getText().toString().equals(\"\"))\n calories = Integer.parseInt(inputCalories.getText().toString());\n ArrayList<String> allergies = allergyActions.getAllergies();\n return new Item(name, 0, units, quantityToBuy, 0, allergies, calories, price);\n }", "public SimpleOre(int par1, Material material, String mod, CreativeTabs tab) \n\t{\n\t\tsuper(par1, material);\n\t\tthis.modName = mod;\n\t\t\n\t}", "public Item(String des, double w){\n description = des;\n weight = w;\n }", "public Inventory() {\r\n invPower = 0;\r\n invDefense = 0;\r\n invSpeed = 0;\r\n invAwareness = 0;\r\n treasures = new ArrayList<>();\r\n }", "public Weapon(DropType dropType) {\n\t\tthis(WeaponType.getRandom().toString());\n\t\t// TODO Auto-generated constructor stub\n\t}", "public CustomShirt(int itemID, String description, char colorCode, double price, int orders) {\n\n super( itemID, description, colorCode, price, orders);\n\n }", "Recipe createRecipe(String title, String description, String ingredients, String instructions, byte[] photo, byte[] photoSmall);", "public Shampoo(String manufacturer, String productName, double price, int minAge, int unit) {\n super(manufacturer, productName, price, minAge, unit);\n }", "public Inventory(int INVENTORY_SLOTS) {\n\t\tsuper();\n\t\tthis.inventoryItems = new Item[INVENTORY_SLOTS];\n\t\tthis.INVENTORY_SLOTS = INVENTORY_SLOTS;\n\t}", "public Item(int id, String name, String description, ItemType type, double weight, boolean isPickupable, boolean isDropable) {\r\n\t\tthis.id = id;\r\n\t\tthis.name = name;\r\n\t\tthis.description = description;\r\n\t\tthis.type = type;\r\n\t\tthis.pickupable = isPickupable;\r\n\t\tthis.dropable = isDropable;\r\n\t\tthis.weight = weight;\r\n\t\tthis.usable = null;\r\n\t}", "public Objects(String item, double baseprice){\r\n this.item = item;\r\n this.baseprice = baseprice;\r\n }", "@Override\n public void onAddIngredient(String ingredient_name, double quantity, MeasurementUnit unit) {\n\n Intent updateDB = new Intent(this, UpdateIngredientsService.class);\n updateDB.putExtra(UpdateIngredientsService.ING_NAME_KEY, ingredient_name);\n updateDB.putExtra(UpdateIngredientsService.RECIPE_ID_KEY, recipe_id);\n updateDB.putExtra(UpdateIngredientsService.ING_QUANT_KEY, quantity);\n updateDB.putExtra(UpdateIngredientsService.ING_UNIT_KEY, unit);\n updateDB.putExtra(UpdateIngredientsService.ACTION_KEY, UpdateIngredientsService.Action.ADD);\n startService(updateDB);\n\n }", "public Item(String itemName, double itemPrice, int numPurchased)\n {\n \tname = itemName;\n \tprice = itemPrice;\n \tquantity = numPurchased;\n }", "public Items(String image, int y, int x) {\r\n\t\tsuper(image, y, x);\r\n\t}", "public IntVec3Volume(IntVec3 start, IntVec3 end){\n this.start=start;\n this.end=end;\n }", "public void addIngredientRecipe(IngredientRecipePOJO ingr);", "ItemStack createItemStack(CompoundTag tag);", "public BasketItemBuilder() {\n generateRandomId();\n }", "public InventoryEntry() {\n super();\n }", "public Item(int sn, double w)\r\n\t/*\r\n\t * \t\tsn - serial number\r\n\t * \t\tw - weight\r\n\t */\r\n\t{\r\n\t\tserialNum = sn;\r\n\t\tweight = w;\r\n\t}", "public InventoryItem(String itemName, int sku, double price,int quantity) {\r\n this.itemName = itemName;\r\n this.sku = sku;\r\n this.setPrice(price);\r\n this.setQuantity(quantity);\r\n nItems++;\r\n }", "public void bindIngredient(Ingredient ingredient){\n // Note: amount should be checked for a negative number when the add ingredient\n // button is clicked\n\n // Set the ingredient amount\n ingredientAmountEditText.setText(String.valueOf(ingredient.getAmount()));\n\n removeTextView.setText(\"X\");\n removeTextView.setClickable(true);\n\n // Set the measurement type that is displayed\n switch(ingredient.getType()){\n case TSP:\n measurementTypeTextView.setText(\"TSP\");\n break;\n case TBSP:\n measurementTypeTextView.setText(\"TBSP\");\n break;\n case GAL:\n measurementTypeTextView.setText(\"GAL\");\n break;\n case CUP:\n measurementTypeTextView.setText(\"CUP\");\n break;\n case QT:\n measurementTypeTextView.setText(\"QT\");\n break;\n case PT:\n measurementTypeTextView.setText(\"PT\");\n break;\n case LB:\n measurementTypeTextView.setText(\"LB\");\n break;\n default:\n measurementTypeTextView.setText(\" \");\n break;\n }\n\n // Set the ingredient name in all uppercase letters\n ingredientNameTextView.setText(ingredient.getName());\n\n // Give the remove button a listener that removes this instance of the\n // single ingredient layout\n removeTextView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // Remove ingredient from our ArrayList\n mIngredients.remove(getAdapterPosition());\n\n // Update the items in the RecyclerView\n notifyItemRemoved(getAdapterPosition());\n notifyItemRangeChanged(getAdapterPosition(), mIngredients.size());\n }\n });\n }", "public RecipeMB() {\n }" ]
[ "0.75738925", "0.7572835", "0.75090706", "0.73566234", "0.73360044", "0.71165276", "0.66032445", "0.6601803", "0.64268064", "0.63767153", "0.6276023", "0.622878", "0.6178811", "0.61640537", "0.6079387", "0.6053944", "0.6018883", "0.60160506", "0.60113055", "0.5933545", "0.5882697", "0.5760863", "0.5744375", "0.5734846", "0.568252", "0.56671256", "0.5643504", "0.5620855", "0.56147367", "0.5611094", "0.56035054", "0.5589087", "0.5562205", "0.5531055", "0.552926", "0.55208325", "0.55152696", "0.54984736", "0.5490411", "0.54901916", "0.5474917", "0.54706144", "0.54565614", "0.54436326", "0.5435752", "0.54336524", "0.54191494", "0.54183805", "0.54027194", "0.53929687", "0.53864723", "0.53770405", "0.53688663", "0.53682643", "0.5344158", "0.53270656", "0.5303253", "0.52979875", "0.52905333", "0.52851415", "0.5284136", "0.52743644", "0.52729774", "0.5259927", "0.52518576", "0.52513117", "0.52511907", "0.5234965", "0.5221744", "0.5221656", "0.5218602", "0.52128255", "0.5211191", "0.5194467", "0.519062", "0.518178", "0.5167867", "0.51520836", "0.5147033", "0.51439905", "0.51413447", "0.5140264", "0.5134039", "0.5133813", "0.5131846", "0.5129545", "0.5122699", "0.51164454", "0.5113946", "0.5112807", "0.5111402", "0.5102442", "0.50980943", "0.50905955", "0.5089729", "0.5076689", "0.50710315", "0.5066901", "0.50601906", "0.5052418" ]
0.78439075
0
Get volume of the ingredient.
public int getVolume() { return this.volume; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getVolume() {\n return mBundle.getInt(KEY_VOLUME);\n }", "public double getVolume()\n {\n return volume / 512;\n }", "public int getVolume() {\n return volume;\n }", "public int getVolume() {\n return volume_;\n }", "public int getVolume() {\n return volume_;\n }", "public double getVolume() {\n return volume;\n }", "public int getVolume() {\r\n\t\treturn volume;\r\n\t}", "public double getVolume()\n {\n return this.volume;\n }", "public int getVolume();", "public float getVolume()\n {\n return volume;\n }", "int getVolume() {\n return this.volume;\n }", "public double getVolume() { return volume; }", "int getOriginalVolume();", "int getVolume();", "int getVolume();", "@Override\n public double getVolume() {\n return liquids\n .stream()\n .mapToDouble(Liquid::getVolume)\n .sum();\n }", "public double getVolume() {\n return super.getLado1() * super.getLado2() * this.altura;\n }", "public double volume() {\n\t\treturn this.iWidth * this.iLength * this.iDepth\r\n\t}", "public String volume() {\n return mVolume;\n }", "public double getVolume() {\n\t\treturn height * depth * length;\n\n\t}", "public int volume() {\r\n int xLength = this.getMaximumPoint().getBlockX() - this.getMinimumPoint().getBlockX() + 1;\r\n int yLength = this.getMaximumPoint().getBlockY() - this.getMinimumPoint().getBlockY() + 1;\r\n int zLength = this.getMaximumPoint().getBlockZ() - this.getMinimumPoint().getBlockZ() + 1;\r\n\r\n int volume = xLength * yLength * zLength;\r\n return volume;\r\n }", "BigDecimal getVolume();", "public double volume()\r\n {\r\n double volume = Math.pow(radius, 2) * (height / 3) * Math.PI;\r\n return volume;\r\n }", "public double getVolume() {\n\t\treturn base.getArea() * height;\n\t}", "Double volume() {\n return execute(\"player.volume\");\n }", "public double getVolume() {\n return (getArea() * height);\n }", "public double getTotalVolume() {\n return totalVolume;\n }", "public float getVolume() {\n return 1.0f;\n }", "public byte getVolume(){\r\n\t\treturn volume;\r\n\t}", "public abstract double getVolume();", "public int VolumeGet();", "private double Volume() {\n\t\tdouble volume = (4f / 3f) * Math.PI * Math.pow(_radius, 3);\n\t\treturn volume;\n\t}", "public int calculateVolume() {\n return (int) Math.pow(this.sideLength, 3) ;\n }", "public double getVolume()\r\n\t{\r\n\t\treturn (super.getArea())*h;\r\n\t}", "double volume() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\tpublic int dmr_getVolume() throws RemoteException {\n\t\t\tint current = soundManager.getVolume();\r\n\t\t\tUtils.printLog(TAG, \"current Volume\" + current);\r\n\t\t\treturn current;\r\n\t\t}", "@Override\n\tpublic float volume() {\n\t\tfloat volume = (float) ((4/3) * Math.PI * Math.pow(this.radius, 3));\n\t\treturn volume;\n\t}", "public abstract float volume();", "public abstract double volume();", "public Float getVolume() throws DynamicCallException, ExecutionException {\n return (Float)call(\"getVolume\").get();\n }", "public double getVolume() {\n\n double volume = 0;\n\n double[] v = this.getVertices();\n int[] f = this.getFaces();\n\n for (int i = 0; i < f.length; i += 6) {\n Vector3D v0 = new Vector3D(v[3 * f[i]], v[3 * f[i] + 1], v[3 * f[i] + 2]);\n Vector3D v1 = new Vector3D(v[3 * f[i + 2]], v[3 * f[i + 2] + 1], v[3 * f[i + 2] + 2]);\n Vector3D v2 = new Vector3D(v[3 * f[i + 4]], v[3 * f[i + 4] + 1], v[3 * f[i + 4] + 2]);\n\n v0 = v0.crossProduct(v1);\n volume += v0.dotProduct(v2);\n }\n\n return Math.abs(volume / 6.0);\n }", "public int getSliderVolume() {\n return (int)(this.volume * 100);\n }", "@Override\r\n\tpublic float getVolume() {\n\t\treturn 0;\r\n\t}", "public double getVolumeOfPipe(){\n double lengthPipeInches = lengthOfPipe / 0.0254;\n \n double outerRadius = diameterOfPipe / 2;\n outerRadius = Math.pow(outerRadius,2);\n double outervolumeOfPipe = (Math.PI * outerRadius) * lengthPipeInches;\n \n //get the inner volume pi * r^2 * height\n double innerRadius = (diameterOfPipe / 2) * 0.9;\n innerRadius = Math.pow(innerRadius,2);\n double innervolumeOfPipe = (Math.PI * innerRadius) * lengthPipeInches; \n \n //get the total volume of raw materials\n double totalVolume = outervolumeOfPipe - innervolumeOfPipe;\n \n return totalVolume;\n }", "@Override\n\tpublic double volume() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic double volume() {\n\t\treturn 0;\n\t}", "public long getPropertyVolume();", "@Override\n\tpublic float volume() {\n\t\treturn (float) ((4/3) * Math.PI * Math.pow(radius, 3));\n\t}", "private int getVol() {\r\n\r\n\t\treturn dayVolume;\r\n\t}", "@Override\n\tpublic float volume() {\n\t\treturn 0;\n\t}", "double volume()\n\t{\n\t\t\n\t\treturn width*height*depth;\n\t\t\n\t}", "public Integer getVolumeSize() {\n return this.volumeSize;\n }", "public int getCurrentVolume() {\n return mCurrentVolume;\n }", "public double getcurrentVolume() {\n\t return this.currentVolume;\n\t}", "double volume(){\n\n return widgh*height*depth;\n\n }", "public abstract double calcVolume();", "public abstract double calcVolume();", "public double calcVolume(){\n double area=calcArea(); // calcArea of superclass used\r\n return area*h;\r\n }", "int getRemainingVolume();", "@Resource(resourceId = 2216, operation = Operation.Read)\n public Long readVolume()\t{\n ActionInvocation actionInvocation =\n new ActionInvocation(renderingControlService.getAction(ACTION_GET_VOLUME));\n actionInvocation.setInput(ARG_INSTANCE_ID, new UnsignedIntegerFourBytes(0));\n actionInvocation.setInput(ARG_CHANNEL, VALUE_CHANNEL_MASTER);\n Map<String, ActionArgumentValue> output = UpnpController.getInstance().executeUpnpAction(actionInvocation);\n return ((UnsignedIntegerTwoBytes)output.get(ARG_CURRENT_VOLUME).getValue()).getValue();\n }", "public double volume () {return (4/3)*Math.PI*this.r*this.r*this.r;}", "public Future<Float> getVolume() throws DynamicCallException, ExecutionException {\n return call(\"getVolume\");\n }", "public long getPropertyVolume()\n {\n return iPropertyVolume.getValue();\n }", "public Double getVolumeProgress() {\n return this.volumeProgress;\n }", "public float getVolumeMultiplier();", "public double totalVolume() {\r\n int index = 0;\r\n double listTotalVolume = 0;\r\n while (index < list.size()) {\r\n listTotalVolume += list.get(index).volume();\r\n index++;\r\n }\r\n return listTotalVolume;\r\n }", "public double totalVolume() {\n int index = 0;\n double total = 0.0;\n while (index < icosList.size()) {\n total += icosList.get(index).volume();\n index++; \n } \n return total;\n }", "public float getSoundVolume() {\n return _soundVolume;\n }", "double volume() {\n\treturn width*height*depth;\n}", "public String getVolumeId() {\n return this.volumeId;\n }", "public double getVolumeLitres() {\n return volumeLitres;\n }", "@Override\n\tpublic double getvolume(){\n\t\tdouble[] ab_cross_ac = calculate_vcp(getVector_AB(),getVector_AC());\n\t\t\n\t\t//dot product of ab_cross_ac and ad\n\t\tdouble S = calculate_vdp(ab_cross_ac,getVector_AD());\n\t\t\n\t\t//formula of tetrahedron's volume\n\t\treturn Math.abs(S)/6;\t\n\t}", "public long getCurrentVolume() {\n return currentVolume;\n }", "public double getVolumeNeeded() {\n if (!this.getIsAlive()) {\n return 0.0;\n }\n if (this.ageInWeeks < YOUNG_FISH_AGE_IN_WEEKS) {\n return MINIMUM_WATER_VOLUME_ML;\n } else if (this.ageInWeeks <= MATURE_FISH_AGE_IN_WEEKS) {\n return MINIMUM_WATER_VOLUME_ML * this.ageInWeeks / YOUNG_FISH_AGE_IN_WEEKS;\n } else if (this.ageInWeeks <= MAXIMUM_AGE_IN_WEEKS) {\n return MINIMUM_WATER_VOLUME_ML * MATURE_FISH_WATER_VOLUME_CONSTANT;\n }\n return 0.0;\n }", "@Override\n\tpublic void calcularVolume() {\n\t\t\n\t}", "public long getPropertyVolumeUnity();", "@ApiModelProperty(value = \"The number of shares exchanged during the trading day on the exchange.\")\n public BigDecimal getVolume() {\n return volume;\n }", "public double totalVolume() { \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n \r\n total += list.get(index).volume();\r\n index++; \r\n } \r\n return total;\r\n }", "public float getVolumeFactor() {\r\n\t\treturn volumeFactor;\r\n\t}", "public double getCyclinderVolume();", "public float getVolum() {\n return volum;\n }", "public static int getMusicVolume()\n\t{\n\t\treturn musicVolume;\n\t}", "public double averageVolume() {\n if (numberOfIcosahedrons() == 0) {\n return 0;\n }\n else {\n return totalVolume() / numberOfIcosahedrons();\n }\n }", "public Long getVolumeSizeInBytes() {\n return this.volumeSizeInBytes;\n }", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "public String getVolumeName() {\n return volumeName;\n }", "@Override\n\tpublic Integer getInventoryForAIngredient(Ingredient ingredient){\n\t\treturn beverageInventoryMap.get(ingredient);\n\t}", "public double getAlcoholVolume() {\n return isAlcoholic() ?\n liquids\n .stream()\n .filter(liquid -> liquid.getAlcoholPercent() > 0)\n .mapToDouble(liquid -> (liquid.getVolume() * (liquid.getAlcoholPercent() / 100)))\n .sum()\n : 0.0;\n }", "public static int getSoundEffectVolume()\n\t{\n\t\treturn soundEffectVolume;\n\t}", "public void calcVolume() {\n this.vol = (0.6666666666666667 * Math.PI) * Math.pow(r, 3);\n }", "@Override\n\tpublic void volume() {\n\t\tsolido.volume = (solido.areaBase * altura) / 3;\n\t}", "ModuleComponent volume();", "double volume(){\n return width*height*depth;\n }", "public long getPropertyVolumeUnity()\n {\n return iPropertyVolumeUnity.getValue();\n }", "public double averageVolume() {\r\n double listAvgVolume = 0.0;\r\n if (list.size() != 0) {\r\n listAvgVolume = totalVolume() / list.size();\r\n }\r\n return listAvgVolume;\r\n }", "public Long getVolumeUsedInBytes() {\n return this.volumeUsedInBytes;\n }", "public String getVolumeARN() {\n return this.volumeARN;\n }", "private void calculateVolume() {\n\n\t\t/*\n\n\t\t */\n\t\tfor(int i=0; i<this._prismoidsLength.size(); i++) \n\t\t\tthis._prismoidsVolumes.add(\n\t\t\t\t\tAmount.valueOf(\n\t\t\t\t\t\t\tthis._prismoidsLength.get(i).divide(3)\n\t\t\t\t\t\t\t.times(\n\t\t\t\t\t\t\t\t\tthis._prismoidsSectionsAreas.get(i).getEstimatedValue()\n\t\t\t\t\t\t\t\t\t+ this._prismoidsSectionsAreas.get(i+1).getEstimatedValue()\n\t\t\t\t\t\t\t\t\t+ Math.sqrt(\n\t\t\t\t\t\t\t\t\t\t\tthis._prismoidsSectionsAreas.get(i)\n\t\t\t\t\t\t\t\t\t\t\t.times(this._prismoidsSectionsAreas.get(i+1))\n\t\t\t\t\t\t\t\t\t\t\t.getEstimatedValue()\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t).getEstimatedValue(),\n\t\t\t\t\t\t\tSI.CUBIC_METRE\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\n\t\tfor(int i=0; i<this._prismoidsVolumes.size(); i++)\n\t\t\tthis._fuelVolume = this._fuelVolume\n\t\t\t\t\t\t\t\t\t\t.plus(this._prismoidsVolumes.get(i));\n\t\tthis._fuelVolume = this._fuelVolume.times(2);\n\t\t\n\t}", "double getMaxVolume();", "public long remainingVolume() {\n return volume - volumeSold() - volumeActiveCritters();\n }" ]
[ "0.7730417", "0.7567146", "0.75192446", "0.7491451", "0.7477963", "0.74196637", "0.74048746", "0.73807216", "0.73728186", "0.7357169", "0.733355", "0.7333491", "0.73195463", "0.72829884", "0.72829884", "0.7271723", "0.723057", "0.7215244", "0.7204278", "0.7175379", "0.7167187", "0.7153112", "0.71281344", "0.7095118", "0.7093367", "0.7075528", "0.7069672", "0.70608395", "0.70559794", "0.7046888", "0.6983055", "0.69736606", "0.6960652", "0.695267", "0.6952156", "0.69163156", "0.69073206", "0.68926716", "0.6892133", "0.68089384", "0.679482", "0.6758243", "0.67474216", "0.674469", "0.6724191", "0.6724191", "0.67065144", "0.66868734", "0.66783756", "0.6647096", "0.66196245", "0.66188335", "0.6613507", "0.6610586", "0.6600309", "0.65952295", "0.65952295", "0.6590296", "0.6576595", "0.6576082", "0.657314", "0.65555406", "0.65095514", "0.6501976", "0.64768565", "0.6471644", "0.6463214", "0.64589554", "0.6445452", "0.64283097", "0.6407649", "0.6378133", "0.6362806", "0.63549614", "0.6354072", "0.6302928", "0.62755907", "0.62741077", "0.62518734", "0.62196004", "0.62050885", "0.6199805", "0.61879843", "0.6171507", "0.61701244", "0.616107", "0.61574185", "0.61352473", "0.6123", "0.60941726", "0.6091507", "0.6088169", "0.6086028", "0.6081069", "0.60490185", "0.60340023", "0.6021273", "0.600365", "0.59833425", "0.5981278" ]
0.7349765
10
TODO Autogenerated method stub
@Override public int saveLending(Lending lending) { int key = 0; System.out.println(lending); try { connection = getConnection(); System.out.println("======================user======================="); statement = connection.prepareStatement("insert into lending(user_id,lib_book_id,lending_date,return_date,returned_date,status) values(?,?,?,?,?,?);", Statement.RETURN_GENERATED_KEYS); statement.setInt(1, lending.getUser().getId()); statement.setInt(2, lending.getBook().getId()); statement.setString(3, lending.getLending_date()); statement.setString(4, lending.getReturn_date()); statement.setString(5, lending.getReturned_date()); statement.setInt(6, lending.getLending_status()); statement.executeUpdate(); ResultSet generatedKeys = statement.getGeneratedKeys(); if(generatedKeys.next()) { System.out.println("Insertion done successfully..."); System.out.println("Registration id = "); key = generatedKeys.getInt(1); } else { System.out.println("Registration id = not found "); } } catch(SQLException e) { System.out.println("Error occured in insertion"); e.printStackTrace(); } closeDBResource(); return key; }
{ "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
TODO Autogenerated method stub
@Override public boolean updateLending(Lending lending) { boolean is_update = false; try { connection = getConnection(); statement = connection.prepareStatement("update lending set "+ getAllColumnName()+ "where id=?"); statement.setInt(1, lending.getUser().getId()); statement.setInt(2, lending.getBook().getId()); statement.setString(3,lending.getLending_date()); statement.setString(4, lending.getReturn_date()); statement.setString(5, lending.getReturned_date()); statement.setInt(6,lending.getLending_status()); statement.setInt(7,lending.getId()); int check_id = statement.executeUpdate(); is_update = check_id>0; if(is_update) { Constants.Response.MSG = Constants.Response.MSG_SUCCESS; } else { Constants.Response.MSG = Constants.Response.MSG_FAILED; System.out.println("Updation Failed"); } } catch(SQLException e) { Constants.Response.MSG = Constants.Response.MSG_FAILED; System.out.println("Error occured in insertion"); e.printStackTrace(); } closeDBResource(); return is_update; }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
TODO Autogenerated method stub
private String getAllColumnName() { StringBuilder builder = new StringBuilder(); // .append(COLUMN_id).append("=?,"). builder.append("user_id").append("=?,"); builder.append("lib_book_id").append("=?,"); builder.append("lending_date").append("=?,"); builder.append("return_date").append("=?,"); builder.append("returned_date").append("=?,"); builder.append("status").append("=?"); return builder.toString(); }
{ "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
TODO Autogenerated method stub
@Override public Lending findLendingById(int id) { Lending lending = new Lending(); ResultSet resultset = null; try { connection = getConnection(); statement = connection.prepareStatement("select * from lending where id=?;"); statement.setInt(1,id); resultset = statement.executeQuery(); while(resultset!=null && resultset.next()) { int user_id = resultset.getInt(2); UserService us_se = new UserServiceImpl(); User user = us_se.findUserById(user_id); int lib_book_id = resultset.getInt(3); LibraryBookService lb_se = new LibraryBookServiceImpl(); LibraryBook book = lb_se.findLibraryBookById(lib_book_id); String lending_date = resultset.getString(4); String return_date = resultset.getString(5); String returned_date = resultset.getString(6); int lending_status = resultset.getInt(7); lending = new Lending(id,user,book,lending_date,return_date,returned_date,lending_status); Constants.Response.MSG = Constants.Response.MSG_SUCCESS; } } catch(SQLException e) { Constants.Response.MSG = Constants.Response.MSG_FAILED; System.out.println("Error occured in finding data"); e.printStackTrace(); } closeDBResource(); return lending; }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<Lending> findAllLending() { List<Lending> objectList = new ArrayList<Lending>(); Lending lending = new Lending(); ResultSet resultset = null; try { connection = getConnection(); statement = connection.prepareStatement("select * from lending;"); resultset = statement.executeQuery(); while(resultset!=null && resultset.next()) { int id = resultset.getInt(1); int user_id = resultset.getInt(2); UserService us_se = new UserServiceImpl(); User user = us_se.findUserById(user_id); int lib_book_id = resultset.getInt(3); LibraryBookService lb_se = new LibraryBookServiceImpl(); LibraryBook book = lb_se.findLibraryBookById(lib_book_id); String lending_date = resultset.getString(4); String return_date = resultset.getString(5); String returned_date = resultset.getString(6); int lending_status = resultset.getInt(7); lending = new Lending(id,user,book,lending_date,return_date,returned_date,lending_status); objectList.add(lending); Constants.Response.MSG = Constants.Response.MSG_SUCCESS; } } catch(SQLException e) { Constants.Response.MSG = Constants.Response.MSG_FAILED; System.out.println("Error occured in data finding"); e.printStackTrace(); } closeDBResource(); return objectList; }
{ "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
TODO Autogenerated method stub
@Override public boolean deleteLending(int id) { boolean is_delete = false; try { connection = getConnection(); statement = connection.prepareStatement("delete from lending where id=?;"); statement.setInt(1, id); int check_id = statement.executeUpdate(); is_delete = check_id>0; if(is_delete) { Constants.Response.MSG = Constants.Response.MSG_SUCCESS; } else { Constants.Response.MSG = Constants.Response.MSG_FAILED; } System.out.println("Deletion completed Successfully"); } catch(SQLException e) { Constants.Response.MSG = Constants.Response.MSG_FAILED; System.out.println("Error occured in deletion"); e.printStackTrace(); } closeDBResource(); return is_delete; }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean updateLending1(Lending lending1) { boolean is_update = false; try { connection = getConnection(); statement = connection.prepareStatement("update lending set returned_date=?,status=? where id=?"); statement.setString(1, lending1.getReturned_date()); statement.setInt(2, 0); statement.setInt(3, lending1.getId()); int check_id = statement.executeUpdate(); is_update = check_id>0; if(is_update) { Constants.Response.MSG = Constants.Response.MSG_SUCCESS; } else { Constants.Response.MSG = Constants.Response.MSG_FAILED; System.out.println("Updation Failed"); } } catch(SQLException e) { Constants.Response.MSG = Constants.Response.MSG_FAILED; System.out.println("Error occured in insertion"); e.printStackTrace(); } closeDBResource(); return is_update; }
{ "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
Load the configured parameters through the properties file. TODO: Move to XML instead of properties file
private void loadConfig() throws IOException { final boolean hasPropertiesFile = configFile != null && configFile.exists() && configFile.canRead() && configFile.isFile(); if (hasPropertiesFile) { Properties props = new Properties(); FileInputStream fis = null; try { fis = new FileInputStream(configFile); props.load(fis); Iterator<Object> keys = props.keySet().iterator(); envVariables = new ArrayList<Variable>(); while (keys.hasNext()) { String key = (String) keys.next(); if (key.equalsIgnoreCase(GRKeys.GDAL_CACHEMAX)) { // Setting GDAL_CACHE_MAX Environment variable if available String cacheMax = null; try { cacheMax = (String) props.get(GRKeys.GDAL_CACHEMAX); if (cacheMax != null) { int gdalCacheMaxMemory = Integer.parseInt(cacheMax); // Only for validation Variable var = new Variable(); var.setKey(GRKeys.GDAL_CACHEMAX); var.setValue(cacheMax); envVariables.add(var); } } catch (NumberFormatException nfe) { if (LOGGER.isLoggable(Level.WARNING)) { LOGGER.log(Level.WARNING, "Unable to parse the specified property as a number: " + cacheMax, nfe); } } } else if (key.equalsIgnoreCase(GRKeys.GDAL_DATA) || key.equalsIgnoreCase(GRKeys.GDAL_LOGGING_DIR) || key.equalsIgnoreCase(GRKeys.TEMP_DIR)) { // Parsing specified folder path String path = (String) props.get(key); if (path != null) { final File directory = new File(path); if (directory.exists() && directory.isDirectory() && ((key.equalsIgnoreCase(GRKeys.GDAL_DATA) && directory.canRead()) || directory.canWrite())) { Variable var = new Variable(); var.setKey(key); var.setValue(path); envVariables.add(var); } else { if (LOGGER.isLoggable(Level.WARNING)) { LOGGER.log(Level.WARNING, "The specified folder for " + key + " variable isn't valid, " + "or it doesn't exist or it isn't a readable directory or it is a " + "destination folder which can't be written: " + path); } } } } else if (key.equalsIgnoreCase(GRKeys.EXECUTION_TIMEOUT)) { // Parsing execution timeout String timeout = null; try { timeout = (String) props.get(GRKeys.EXECUTION_TIMEOUT); if (timeout != null) { executionTimeout = Long.parseLong(timeout); // Only for validation } } catch (NumberFormatException nfe) { if (LOGGER.isLoggable(Level.WARNING)) { LOGGER.log(Level.WARNING, "Unable to parse the specified property as a number: " + timeout, nfe); } } } else if (key.equalsIgnoreCase(GRKeys.GDAL_WARP_PARAMS) || key.equalsIgnoreCase(GRKeys.GDAL_TRANSLATE_PARAMS)) { // Parsing gdal operations custom option parameters String param = (String) props.get(key); if (param != null) { if (key.equalsIgnoreCase(GRKeys.GDAL_WARP_PARAMS)) { gdalWarpingParameters = param.trim(); } else { gdalTranslateParameters = param.trim(); } } } else if (key.endsWith("PATH")) { // Dealing with properties like LD_LIBRARY_PATH, PATH, ... String param = (String) props.get(key); if (param != null) { Variable var = new Variable(); var.setKey(key); var.setValue(param); envVariables.add(var); } } } } catch (FileNotFoundException e) { if (LOGGER.isLoggable(Level.WARNING)) { LOGGER.log(Level.WARNING, "Unable to parse the config file: " + configFile.getAbsolutePath(), e); } } catch (IOException e) { if (LOGGER.isLoggable(Level.WARNING)) { LOGGER.log(Level.WARNING, "Unable to parse the config file: " + configFile.getAbsolutePath(), e); } } finally { if (fis != null) { try { fis.close(); } catch (Throwable t) { // Does nothing } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Configuracion(Parametros params) {\n this.params = params;\n\n if (params.properties != null) {\n try {\n properties.load(new FileInputStream(params.properties));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n }", "private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }", "private void loadProperties() {\n try (InputStream in = getClass().getClassLoader().getResourceAsStream(PATH_TO_PROPERTIES)) {\n this.prs.load(in);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }", "private void loadProperties(){\n\t\tProperties properties = new Properties();\n\t\ttry{\n\t\t\tlog.info(\"-------------------------------------------------------------------\");\n\t\t\tlog.info(\"Updating config settings\");\n\n\t\t\tproperties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\"));\n\t\t\tservletContext.setAttribute(\"properties\", properties);\n\t\t\t\n\t\t\tthis.cswURL=(String)properties.get(\"cswURL\");\n\t\t\tthis.proxyHost=(String)properties.get(\"proxyHost\");\n\t\t\tif(!this.proxyHost.equals(\"\") && this.proxyHost != null){\n\t\t\t\tthis.proxyPort=Integer.parseInt((String)properties.get(\"proxyPort\"));\n\t\t\t}\n\t\t\tthis.feedURL=(String)properties.get(\"feedURL\");\n\t\t\tthis.servicePath=(String)properties.get(\"servicePath\");\n\t\t\tthis.dataSetPath=(String)properties.get(\"dataSetPath\");\n\t\t\tthis.opensearchPath=(String)properties.get(\"opensearchPath\");\n\t\t\tthis.downloadUUIDs=(String)properties.get(\"serviceUUIDs\");\t\n\t\t\tthis.transOpt=(String)properties.get(\"transOpt\");\t\n\t\t\t\n\t\t }catch (Exception e){\n\t\t\t log.error(e.toString(), e.fillInStackTrace());\n\t\t\t System.out.println(\"Error: \" + e.getMessage());\n\t\t }\t\n\t }", "private void loadParameters() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new BufferedInputStream(Files.newInputStream(path))));\n\n\t\tdo {\n\t\t\tString line = reader.readLine();\n\t\t\tif (line == null || line.equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (line.startsWith(\"--\") || line.startsWith(\" \")) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tString[] tokens = line.trim().split(\"\\\\s+\");\n\t\t\tparameters.put(Parameter.valueOf(tokens[0]), tokens[1]);\n\t\t} while (true);\n\n\t}", "public void loadConfiguration() {\n Properties prop = new Properties();\n String propFileName = \".env_\" + this.dbmode.name().toLowerCase();\n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n System.err.println(\"property file '\" + propFileName + \"' not found in the classpath\");\n }\n this.jdbc = prop.getProperty(\"jdbc\");\n this.host = prop.getProperty(\"host\");\n this.port = prop.getProperty(\"port\");\n this.database = prop.getProperty(\"database\");\n this.user = prop.getProperty(\"user\");\n this.password = prop.getProperty(\"password\");\n // this.sslFooter = prop.getProperty(\"sslFooter\");\n } catch (Exception e) {\n System.err.println(\"can't read property file\");\n }\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void readParameters() {\r\n File directory = new File(OptionItems.XML_DEFINITION_PATH);\r\n if (directory.exists()) {\r\n parameterParserXML.readParameterDefinition(configData.getParameterList());\r\n parameterParserXML.processParameterDependency();\r\n }\r\n\r\n Log.info(\"info.progress_control.load_parameter_description\");\r\n }", "public void loadProperties(){\n\n\ttry{\n\t prop.load(file);\n // get the property value and print it out\n host = prop.getProperty(\"host\");\n\t port = prop.getProperty(\"port\");\n\t sslmode = prop.getProperty(\"sslmode\");\n\t source = prop.getProperty(\"source\");\n dbname = prop.getProperty(\"dbname\");\n help_url_prefix = prop.getProperty(\"base.help.url\");\n password = prop.getProperty(\"password\");\n\t user = prop.getProperty(\"user\");\t \n\t temp_dir = new File(System.getProperty(\"java.io.tmpdir\")).toString();\n\t working_dir = new File(System.getProperty(\"user.dir\")).toString();\n\t file.close();\n\t}catch(IOException ioe){\n\t\t\n\t} \n\t \n }", "@SuppressWarnings(\"unchecked\")\n private void loadProperties()\n {\n File f = getPropertiesFile();\n if (!f.exists())\n return;\n \n m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f);\n }", "public void getConfigProperty() {\n Properties properties = new Properties();\n try(InputStream input = new FileInputStream(\"config.properties\");){\n properties.load(input);\n logger.info(\"BASE URL :\" + properties.getProperty(\"BASEURL\"));\n setBaseUrl(properties.getProperty(\"BASEURL\"));\n setLoginMode(properties.getProperty(\"LOGINMODE\"));\n setProjectId(properties.getProperty(\"PROJECTID\"));\n setReportId(properties.getProperty(\"REPORTID\"));\n if (!(properties.getProperty(\"PASSWORD\").trim().equals(\"\"))) {\n setPassword(properties.getProperty(\"PASSWORD\"));\n }\n if (!(properties.getProperty(\"USERNAME\").trim().equals(\"\"))) {\n setUserName(properties.getProperty(\"USERNAME\"));\n }\n }catch(IOException ex) {\n logger.debug(\"Failed to fetch value from configure file: \", ex);\n }\n\n }", "private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (inputStream == null) {\n try {\n throw new FileNotFoundException(\"ERROR: property file '\" + propFileName + \"' not found in the classpath\");\n } catch (FileNotFoundException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // get property values\n this.defaultDirectory = prop.getProperty(\"defaultDirectory\");\n this.topicsFile = this.defaultDirectory + prop.getProperty(\"topics\");\n this.scripturesFile = this.defaultDirectory + prop.getProperty(\"scriptures\");\n this.defaultJournalXML = this.defaultDirectory + prop.getProperty(\"defaultJournalXML\");\n this.defaultJournalTxt = this.defaultDirectory + prop.getProperty(\"defaultJournalTxt\");\n }", "private void loadProperties() {\n\t\t\n\t\tString fldr = env.getProperty(\"response.folder\");\n\t\tthis.repo.setRootFolder( new File(fldr));;\n\t\t\n\t\tint nthConfigItem = 1;\n\t\twhile(true) {\n\t\t\tString seq = (\"\"+nthConfigItem++).trim();\n\t\t\t\n\t\t\tString xpathPropName = \"request.\" + seq + \".xpath\";\n\t\t\tString responseTextFilePropName = \"request.\" + seq + \".response.file\";\n\t\t\tString xpath = env.getProperty(xpathPropName);\n\t\t\tString responseTextFileName = env.getProperty(responseTextFilePropName);\n\t\t\tif (xpath!=null && !\"\".equals(xpath.trim())\n\t\t\t\t&& responseTextFileName!=null & !\"\".equals(responseTextFileName.trim())\t) {\n\t\t\t\t\n\t\t\t\trepo.addFile(xpath, responseTextFileName);\n\t\t\t\tController.logAlways(\"Loading config item [\" + seq + \"] xpath: [\" + rpad(xpath, 60) + \"] data file: [\" + rpad(responseTextFileName,25) + \"]\" );\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tController.logAlways(\"End of littleMock initialization. No more properties from application.properties will be loaded because either [\" + xpathPropName + \"] or [\" + responseTextFilePropName + \"] was not found in application.properties.\");\n\t\t\t\t//parameters in application.properties must be\n\t\t\t\t//in sequential order, starting at 1.\n\t\t\t\t//When we discover the first missing one, stop looking for more.\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\thumanReadableConfig = PlaybackRepository.SINGLETON.humanReadable();\n\t}", "public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }", "private static ArrayList<String> loadParameters() throws IOException {\r\n BufferedReader br = new BufferedReader(new FileReader(new File(\"conf.data\")));\r\n\r\n ArrayList<String> params = new ArrayList<>();\r\n\r\n String param;\r\n while ((param = br.readLine()) != null ){\r\n params.add(param);\r\n }\r\n\r\n return params;\r\n }", "private void initConfig(String initParameter) {\n InputStream inputStream = null;\n inputStream = this.getClass().getClassLoader().getResourceAsStream(initParameter);\n try {\n properties.load(inputStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void loadProperties() {\n driver = JiveGlobals.getXMLProperty(\"database.defaultProvider.driver\");\n serverURL = JiveGlobals.getXMLProperty(\"database.defaultProvider.serverURL\");\n username = JiveGlobals.getXMLProperty(\"database.defaultProvider.username\");\n password = JiveGlobals.getXMLProperty(\"database.defaultProvider.password\");\n String minCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.minConnections\");\n String maxCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.maxConnections\");\n String conTimeout = JiveGlobals.getXMLProperty(\"database.defaultProvider.connectionTimeout\");\n // See if we should use Unicode under MySQL\n mysqlUseUnicode = Boolean.valueOf(JiveGlobals.getXMLProperty(\"database.mysql.useUnicode\")).booleanValue();\n try {\n if (minCons != null) {\n minConnections = Integer.parseInt(minCons);\n }\n if (maxCons != null) {\n maxConnections = Integer.parseInt(maxCons);\n }\n if (conTimeout != null) {\n connectionTimeout = Double.parseDouble(conTimeout);\n }\n }\n catch (Exception e) {\n Log.error(\"Error: could not parse default pool properties. \" +\n \"Make sure the values exist and are correct.\", e);\n }\n }", "private static void loadConfig()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal Properties props = ManagerServer.loadProperties(ManagerServer.class, \"/resources/conf.properties\");\n\t\t\tasteriskIP = props.getProperty(\"asteriskIP\");\n\t\t\tloginName = props.getProperty(\"userName\");\n\t\t\tloginPwd = props.getProperty(\"password\");\n\t\t\toutboundproxy = props.getProperty(\"outBoundProxy\");\n\t\t\tasteriskPort = Integer.parseInt(props.getProperty(\"asteriskPort\"));\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tLOG.error(\"IO Exception while reading the configuration file.\", ex);\n\t\t}\n\t}", "private void LoadConfigFromClasspath() throws IOException \n {\n InputStream is = this.getClass().getClassLoader().getResourceAsStream(\"lrs.properties\");\n config.load(is);\n is.close();\n\t}", "private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }", "public void setupProp() {\r\n\t\tprop = new Properties();\r\n\t\tInputStream in = getClass().getResourceAsStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tFileInputStream fin = new FileInputStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fin);\r\n\t\t\tdblogic = (PatronDBLogic) ois.readObject();\r\n\t\t\tois.close();\r\n\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void IntialProperties() {\r\n Properties prop = new Properties();\r\n try (FileInputStream input = new FileInputStream(\"./config.properties\")) {\r\n prop.load(input);\r\n generate = prop.getProperty(\"generate\");\r\n solve = prop.getProperty(\"algorithm\");\r\n setChanged();\r\n notifyObservers(\"prop\");\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public void readProperties() {\r\n File directory = new File(OptionItems.XML_DEFINITION_PATH);\r\n if (directory.exists()) {\r\n propertyParserXML.readPropertyDefinition(configData.getPropertyList());\r\n propertyParserXML.processPropertyDependency();\r\n }\r\n Log.info(\"info.progress_control.load_property_description\");\r\n }", "private void loadProperties() {\n\t\tInputStream propsFile;\n\t\tProperties tempProp = new Properties();\n\n\t\ttry {\n\t\t\t//propsFile = new FileInputStream(\"plugins\\\\balloonplugin\\\\BalloonSegmentation.properties\");\n\t\t\tpropsFile = getClass().getResourceAsStream(\"/BalloonSegmentation.properties\");\n\t\t\ttempProp.load(propsFile);\n\t\t\tpropsFile.close();\n\n\t\t\t// load properties\n\t\t\tinit_channel = Integer.parseInt(tempProp.getProperty(\"init_channel\"));\t\t\t\t// initial channel selected for segmenting the cell architecture 1 - red, 2 - green, 3 - blue\n\t\t\tinit_max_pixel = Integer.parseInt(tempProp.getProperty(\"init_max_pixel\"));\t\t\t// initial max pixel intensity used for finding the doundaries of the colony of cells\n\t\t\tinit_HL = Integer.parseInt(tempProp.getProperty(\"init_HL\"));\t\t\t\t\t\t// initial H*L factor used finding seeds in the population\n\t\t\tinit_min_I = Integer.parseInt(tempProp.getProperty(\"init_min_I\"));\t\t\t\t\t// initial pixel intensity when balloon algorithm starts\n\t\t\tinit_max_I = Integer.parseInt(tempProp.getProperty(\"init_max_I\"));\t\t\t\t\t// final pixel intensity when balloon algorithm stops\n\n\t\t}\n\t\tcatch (IOException ioe) {\n\t\t\tIJ.error(\"I/O Exception: cannot read .properties file\");\n\t\t}\n\t}", "void loadPropertiesFile()\n\t{\n\t\tlogger.info(\"Fetching the properties files\");\n\t\t\n\t\tconfigProp=new Properties(); \n\t\ttry{\tconfigProp.load(loadFile(\"Config.properties\"));\t\t} \n\t\tcatch (IOException e){\tAssert.assertTrue(\"Cannot initialise the Config properties file, Check if the file is corrupted\", false);\t}\t\t\t\n\t}", "private Config()\n {\n // Load from properties file:\n loadLocalConfig();\n // load the system property overrides:\n getExternalConfig();\n }", "private Properties loadProperties() {\n Properties properties = new Properties();\n try {\n properties.load(getClass().getResourceAsStream(\"/config.properties\"));\n } catch (IOException e) {\n throw new WicketRuntimeException(e);\n }\n return properties;\n }", "private static void loadConfig() throws IOException { \t\t\n final InputStream input = Main.class.getResourceAsStream(\"/configuration.properties\");\n final Properties prop = new Properties();\n \n prop.load(input);\n System.out.println(\"Configuration loaded:\"); \n\n // PostgreSQL server access config\n dbmsUrl = prop.getProperty(\"dbms_url\");\n System.out.println(\"- dbms_url: \" + dbmsUrl);\n\n dbmsUser = prop.getProperty(\"dbms_user\");\n System.out.println(\"- dbms_user: \" + dbmsUser);\n\n userPw = prop.getProperty(\"user_pw\"); \n System.out.println(\"- user_pw: \" + userPw);\n\n\n // Benchmarks config\n noTransactions = Integer.parseInt(prop.getProperty(\"no_transactions\"));\n System.out.println(\"- no_transactions: \" + noTransactions);\n\n noStatementsPerTransaction = Integer.parseInt(prop.getProperty(\"no_statements_per_transaction\")); \n System.out.println(\"- no_statements_per_transaction: \" + noStatementsPerTransaction);\n\n noSelectStatements = Integer.parseInt(prop.getProperty(\"no_select_statements\")); \n System.out.println(\"- no_select_statements: \" + noSelectStatements + \"\\n\");\n\n input.close();\n }", "private void readProperties() {\n // reading config files\n if (driver == null) {\n try {\n fis = new FileInputStream(userDir + \"\\\\src\\\\main\\\\resources\\\\properties\\\\Config.properties\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n config.load(fis);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "private final static void getProp() {\n try(InputStream fis = ConnectionBDD.class.getClassLoader().getResourceAsStream(\"conf.properties\")){\n \n props.load(fis);\n \n Class.forName(props.getProperty(\"jdbc.driver.class\"));\n \n url = props.getProperty(\"jdbc.url\");\n login = props.getProperty(\"jdbc.login\");\n password = props.getProperty(\"jdbc.password\");\n \n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }", "public Properties loadConfig(){\n\t\tprintln(\"Begin loadConfig \");\n\t\tProperties prop = null;\n\t\t prop = new Properties();\n\t\ttry {\n\t\t\t\n\t\t\tprop.load(new FileInputStream(APIConstant.configFullPath));\n\n\t } catch (Exception ex) {\n\t ex.printStackTrace();\n\t println(\"Exception \"+ex.toString());\n\t \n\t }\n\t\tprintln(\"End loadConfig \");\n\t\treturn prop;\n\t\t\n\t}", "public void setConfiguration(Properties props);", "@PostConstruct\n\tpublic void loadProperties() {\n\t\tproperties.put(PropertyKey.TRANSLATION_FILE_STORE, \"C:\\\\development\\\\projects\\\\mega-translator\\\\store\");\n\t}", "private void loadProperties() {\n Path path = getSamplePropertiesPath();\n LOG.info(\"Loading Properties from {}\", path.toString());\n try {\n FileInputStream fis = new FileInputStream(getSamplePropertiesPath().toFile());\n Properties properties = new Properties();\n properties.load(fis);\n\n String privateKey = properties.getProperty(PRIVATE_KEY);\n this.credentials = Credentials.create(privateKey);\n this.contract1Address = properties.getProperty(CONTRACT1_ADDRESS);\n this.contract2Address = properties.getProperty(CONTRACT2_ADDRESS);\n this.contract3Address = properties.getProperty(CONTRACT3_ADDRESS);\n this.contract4Address = properties.getProperty(CONTRACT4_ADDRESS);\n this.contract5Address = properties.getProperty(CONTRACT5_ADDRESS);\n this.contract6Address = properties.getProperty(CONTRACT6_ADDRESS);\n\n } catch (IOException ioEx) {\n // By the time we have reached the loadProperties method, we should be sure the file\n // exists. As such, just throw an exception to stop.\n throw new RuntimeException(ioEx);\n }\n }", "private void loadConfigValues() throws IOException {\n File propertiesFile = ConfigurationHelper.findConfigurationFile(\"ec2-service.properties\");\n if (null != propertiesFile) {\n logger.info(\"Use EC2 properties file: \" + propertiesFile.getAbsolutePath());\n Properties EC2Prop = new Properties();\n FileInputStream ec2PropFile = null;\n try {\n EC2Prop.load(new FileInputStream(propertiesFile));\n ec2PropFile = new FileInputStream(propertiesFile);\n EC2Prop.load(ec2PropFile);\n\n } catch (FileNotFoundException e) {\n logger.warn(\"Unable to open properties file: \" + propertiesFile.getAbsolutePath(), e);\n } catch (IOException e) {\n logger.warn(\"Unable to read properties file: \" + propertiesFile.getAbsolutePath(), e);\n } finally {\n IOUtils.closeQuietly(ec2PropFile);\n }\n managementServer = EC2Prop.getProperty(\"managementServer\");\n cloudAPIPort = EC2Prop.getProperty(\"cloudAPIPort\", null);\n\n try {\n if (ofDao.getOfferingCount() == 0) {\n String strValue = EC2Prop.getProperty(\"m1.small.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m1.small\", strValue);\n\n strValue = EC2Prop.getProperty(\"m1.large.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m1.large\", strValue);\n\n strValue = EC2Prop.getProperty(\"m1.xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m1.xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"c1.medium.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"c1.medium\", strValue);\n\n strValue = EC2Prop.getProperty(\"c1.xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"c1.xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"m2.xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m2.xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"m2.2xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m2.2xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"m2.4xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m2.4xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"cc1.4xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"cc1.4xlarge\", strValue);\n }\n } catch (Exception e) {\n logger.error(\"Unexpected exception \", e);\n }\n } else\n logger.error(\"ec2-service.properties not found\");\n }", "public ConfigFileReader(){\r\n\t\tBufferedReader reader;\r\n\t\ttry {\r\n\t\t\treader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\tproperties = new Properties();\r\n\t\t\ttry {\r\n\t\t\t\tproperties.load(reader);\r\n\t\t\t\treader.close();\r\n\t\t\t}catch(IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}catch(FileNotFoundException ex) {\r\n\t\t\tSystem.out.println(\"Configuration.properties not found at \"+propertyFilePath);\r\n\t\t}\r\n\t}", "public static void LoadIntoConfigFiles()\n {\n \tProperties prop = new Properties();\n ///*\n \ttry {\n \t\t//set the properties value\n \n prop.setProperty(\"comp_name\", \"Teledom International Ltd\");\n prop.setProperty(\"com_city\", \"Lagos\");\n \t\tprop.setProperty(\"State\", \"Lagos\");\n \t\tprop.setProperty(\"logo_con\", \"logo.png\");\n \t\tprop.setProperty(\"front_frame\", \"front.png\");\n prop.setProperty(\"back_frame\", \"back.png\");\n \n \n \n \n \t\t//save properties to project root folder\n \t\tprop.store(new FileOutputStream(setupFileName), null);\n \n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n }\n // */\n \n \n \n }", "private Properties loadConfig(String baseFileName, String userPathParamName) throws IOException {\n\t\tString fileName = baseFileName + \".properties\";\n\t\tProperties properties = new Properties();\n\t\ttry (InputStream configStream = ApiInitializer.class.getClassLoader().getResourceAsStream(fileName)) {\n\t\t\tif (configStream != null) {\n\t\t\t\tproperties.load(configStream);\n\t\t\t}\n\t\t}\n\n\t\t// Then, override with whatever the user set up.\n\t\tString userFilePath = servletContext.getInitParameter(userPathParamName);\n\t\tif (userFilePath == null) {\n\t\t\tuserFilePath = \"WEB-INF/\" + baseFileName + \".properties\";\n\t\t} else {\n\t\t\tPath path = Paths.get(userFilePath, baseFileName + \".properties\");\n\t\t\tuserFilePath = path.toString();\n\t\t}\n\t\ttry (InputStream inStream = servletContext.getResourceAsStream(userFilePath);) {\n\t\t\tif (inStream != null) {\n\t\t\t\tproperties.load(inStream);\n\t\t\t}\n\t\t}\n\n\t\treturn properties;\n\t}", "public ConfigFileReader(){\r\n\t\t \r\n\t\t BufferedReader reader;\r\n\t\t try {\r\n\t\t\t reader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\t properties = new Properties();\r\n\t\t\t try {\r\n\t\t\t\t properties.load(reader);\r\n\t\t\t\t reader.close();\r\n\t\t\t } catch (IOException e) {\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t } catch (FileNotFoundException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t throw new RuntimeException(\"configuration.properties not found at \" + propertyFilePath);\r\n\t \t } \r\n\t }", "public void loadConfig() {\n\t}", "public static void read_paramenters() {\n\t\ttry {\n\t\t // TODO CA: check that this work on Windows!\n String home = System.getProperty(\"user.home\");\n File parametersFile = new File(home + \"/\" + parametersFilename);\n\t\t\tScanner sc = new Scanner(parametersFile);\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tinitialize_parameters(sc.nextLine());\n\t\t\t}\n\t\t\tsc.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Error: File \" + parametersFilename + \" not found!\");\n\t\t\tSystem.out.println(\"Make sure that file \" + parametersFilename + \" is in the correct format!\");\n\t\t\tSystem.out.println(\"The format of the file is:\");\n\t\t\tSystem.out.println(\"host ap-dev.cs.ucy.ac.cy\");\n\t\t\tSystem.out.println(\"port 43\");\n\t\t\tSystem.out.println(\"cache res/\");\n\t\t\tSystem.out.println(\"access_token <api_key> \" +\n \"[The API key has be generated based on your google account through the anyplace architect]\");\n\t\t\t// TODO CA: when this error is shown, prompt, with Y or N to initialize that file with defaults\n // if yes, then read parameters again\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "private void init() {\n\t\tif ( PropertiesConfigurationFilename == null ) {\n\t\t\tlogger.info(\"config.properties is default\");\n\t\t\tconfigProp = createDefaultProperties();\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tlogger.info(\"config.properties is \"+ PropertiesConfigurationFilename.getAbsolutePath());\n\t\t\t\tconfigProp = new PropertiesConfiguration();\n\t\t\t\tconfigProp.load(PropertiesConfigurationFilename);\n\t\t\t} catch (ConfigurationException e) {\n\t\t\t\tlogger.error(\"Unable to open config file: \" + PropertiesConfigurationFilename.getAbsolutePath(), e);\n\t\t\t\tlogger.info(\"config.properties is default\");\n\t\t\t\tconfigProp = createDefaultProperties();\n\t\t\t}\n\t\t}\n\n\n\t\t// Load the locale information\n\t\tString locale = configProp.getString(\"locale\");\n\n\t\tconfigProp.setProperty(\"zmMsg\", ResourceBundle.getBundle(\"ZmMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zhMsg\", ResourceBundle.getBundle(\"ZhMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"ajxMsg\", ResourceBundle.getBundle(\"AjxMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"i18Msg\", ResourceBundle.getBundle(\"I18nMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zsMsg\", ResourceBundle.getBundle(\"ZsMsg\", new Locale(locale)));\n\n\t}", "void configure(Properties properties);", "private void init(String propFilePath) {\n properties = new Properties();\n try {\n properties.load(new FileInputStream(new File(propFilePath)));\n } catch (FileNotFoundException e1) {\n logger.error(\"External properties file not found!\", e1);\n System.exit(1);\n } catch (IOException e2) {\n logger.error(\"Error while reading External properties file!\", e2);\n System.exit(1);\n }\n }", "private void loadParameters(ParameterDatabase parameterDB) {\n // global - enterprise\n// global.SetInitialNumberOfHouseholds(returnIntParameter(parameterDB, \"InitialNumberOfHouseholds\",\n// global.getInitialNumberOfHouseholds()));\n// \n global.setInitialRefugeeNumber(returnIntParameter(parameterDB, \"initialRefugeeNumber\",\n global.getInitialRefugeeNumber()));\n global.setMaximumNumberRelative(returnIntParameter(parameterDB, \"MaximumNumberRelative\",\n global.getMaximumNumberRelative()));\n global.setPercentageOfAsymptomatic(returnDoubleParameter(parameterDB, \"PercentageOfAsymptomatic\",\n global.getPercentageOfAsymptomatic()));\n global.setProbRecoveryToSuscebtable(returnDoubleParameter(parameterDB, \"recovery_To_Susceb_Rate\",\n global.getProbRecoveryToSuscebtable()));\n global.setHealthDepreciation(returnDoubleParameter(parameterDB, \"healthDepreciation\",\n global.getHealthDepreciation()));\n global.setprobabilityOfEffectiveNessofmedicine(returnDoubleParameter(parameterDB, \"probabilityOfEffectiveNessofmedicine\",\n global.getprobabilityOfEffectiveNessofmedicine()));\n global.setWaterContaminationThreshold(returnDoubleParameter(parameterDB, \"WaterContaminationThreshold\",\n global.getWaterContaminationThreshold()));\n global.setvibrioCholeraePerHealthyPerson(returnDoubleParameter(parameterDB, \"vibrioCholeraePerHealthyPerson\",\n global.getvibrioCholeraePerHealthyPerson()));\n global.setvibrioCholeraePerExposedPerson(returnDoubleParameter(parameterDB, \"vibrioCholeraePerExposedPerson\",\n global.getvibrioCholeraePerExposedPerson()));\n global.setvibrioCholeraePerInfectedPerson(returnDoubleParameter(parameterDB, \"vibrioCholeraePerInfectedPerson\",\n global.getvibrioCholeraePerInfectedPerson()));\n global.setcholeraInfectionDurationMAX(returnIntParameter(parameterDB, \"choleraInfectionDurationMAX\",\n global.getcholeraInfectionDurationMAX()));\n global.setcholeraInfectionDurationMIN(returnIntParameter(parameterDB, \"choleraInfectionDurationMIN\",\n global.getcholeraInfectionDurationMIN())); \n global.setMaxDistanceLaterine(returnIntParameter(parameterDB, \"MaxDistanceLaterine\",\n global.getMaxDistanceLaterine()));\n global.setBacteriaErosionRate(returnDoubleParameter(parameterDB, \"bacteriaErosionRate\",\n global.getBacteriaErosionRate()));\n global.setBoreHoleDischareRatePerMinute(returnDoubleParameter(parameterDB, \"boreHoleDischareRate\",\n global.getBoreHoleDischareRatePerMinute()));\n global.setBoreholeWaterSupplyPerDay(returnDoubleParameter(parameterDB, \"waterCapacityBorehole\",\n global.getBoreholeWaterSupplyPerDay()));\n global.setHeaalthFacilityCapacity(returnIntParameter(parameterDB, \"healthFacilityCapacity\",\n global.getHeaalthFacilityCapacity()));\n global.setMaximumCrowedLevel(returnDoubleParameter(parameterDB, \"CROWED_LEVEL_THRESHOLD\",\n global.getMaximumCrowedLevel()));\n global.setProbabilityGuestContaminationRate(returnDoubleParameter(parameterDB, \"probabilityGuestContaminationRate\",\n global.getProbabilityGuestContaminationRate()));\n global.setMaximumHHOccumpancyPerField(returnIntParameter(parameterDB, \"maximum_occupancy_Threshold\",\n global.getMaximumHHOccumpancyPerField()));\n global.setMaximumWaterRequirement(returnDoubleParameter(parameterDB, \"Maximum_Water_Requirement\",\n global.getMaximumWaterRequirement()));\n global.setMinimumWaterRequirement(returnDoubleParameter(parameterDB, \"Minimum_Water_Requirement\",\n global.getMinimumWaterRequirement()));\n global.setLaterineCoverage(returnDoubleParameter(parameterDB, \"laterineCoverage\",\n global.getLaterineCoverage()));\n global.setRainfallDuration_Minute(returnIntParameter(parameterDB, \"rainDuration\",\n global.getRainfallDuration_Minute()));\n global.setRainfallFirstDay(returnIntParameter(parameterDB, \"firstRainfallDay\",\n global.getRainfallFirstDay()));\n global.setRainfallFrequencyInterval_Days(returnIntParameter(parameterDB, \"rainfallFrequency\",\n global.getRainfallFrequencyInterval_Days()));\n global.setRainfall_MM_Per_Minute(returnDoubleParameter(parameterDB, \"rainfallInMM\",\n global.getRainfall_MM_Per_Minute()));\n global.setAbsorbtionRatePerMinute(returnDoubleParameter(parameterDB, \"absorbtionRatePerMinute\",\n global.getAbsorbtionRatePerMinute()));\n \n \n \n }", "public void init() {\n this.properties = loadProperties(\"/project3.properties\");\n }", "@BeforeClass\n\tpublic void readConfig() {\n\t\t// object creation of properties file\n\n\t\tProperties prop = new Properties();\n\n\t\t// read the file: inputstream\n\n\t\ttry {\n\t\t\tInputStream input = new FileInputStream(\"\\\\src\\\\main\\\\java\\\\config\\\\config.properties\");\n\t\t\tprop.load(input);\n\t\t\tbrowser = prop.getProperty(\"browser\");\n\t\t//\turl = prop.getProperty(\"url\");\n\t\t\t\n\t\t}\n\n\t\tcatch (IOException e) {\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\t}", "public static void loadProperties()\n {\n Properties props = new Properties();\n try {\n props.load( new BufferedInputStream( ClassLoader.getSystemResourceAsStream(\"bench.properties\") ) );\n } catch (IOException ioe)\n {\n logger.log(Level.SEVERE, ioe.getMessage());\n }\n props.putAll(System.getProperties()); //overwrite\n System.getProperties().putAll(props);\n }", "public Properties readParameters(String filename) {\n\t// Läser in parametrar för simuleringen\n\t// Metoden kan läsa från terminalfönster, dialogrutor\n\t// eller från en parameterfil. Det sista alternativet\n\t// är att föredra vid uttestning av programmet eftersom\n\t// man inte då behöver mata in värdena vid varje körning.\n // Standardklassen Properties är användbar för detta.\n\n Properties p = new Properties();\n try {\n p.load(new FileInputStream(filename));\n } catch (IOException e) {\n System.out.println(e);\n }\n return p;\n }", "@Override\n\tpublic void loadProperties() {\n\t\tPropertySet mPropertySet = PropertySet.getInstance();\n\t\tdouble kp = mPropertySet.getDoubleValue(\"angleKp\", 0.05);\n\t\tdouble ki = mPropertySet.getDoubleValue(\"angleKi\", 0.0);\n\t\tdouble kd = mPropertySet.getDoubleValue(\"angleKd\", 0.0001);\n\t\tdouble maxTurnOutput = mPropertySet.getDoubleValue(\"turnPIDMaxMotorOutput\", Constants.kDefaultTurnPIDMaxMotorOutput);\n\t\tmAngleTolerance = mPropertySet.getDoubleValue(\"angleTolerance\", Constants.kDefaultAngleTolerance);\n\t\tsuper.setPID(kp, ki, kd);\n\t\tsuper.setOutputRange(-maxTurnOutput, maxTurnOutput);\n\t}", "private void GetRequiredProperties() {\r\n\r\n\r\n\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\t\r\n try {\r\n \r\n File file = new File(fileToRead);\r\n \r\n if (file.exists()) {\r\n logger.info(\"Config file exists\");\r\n } else {\r\n logger.error(\"Exception :: GetRequiredProperties :: Config file not found\");\r\n throw new RuntimeException(\"Exception :: GetRequiredProperties :: Config file not found\");\r\n }\r\n \r\n prop.load(new FileInputStream(file));\r\n\r\n } catch (Exception e) {\r\n\r\n logger.error(\"Exception :: GetRequiredProperties :: \" + e.getMessage(), e);\r\n\r\n throw new RuntimeException(\"Exception :: GetRequiredProperties :: \" + e.getMessage());\r\n }\r\n\r\n\t sifUrl = prop.getProperty(\"MDM_SIF_URL\");\r\n\t orsId = prop.getProperty(\"MDM_ORS_ID\");\r\n\t username = prop.getProperty(\"MDM_USER_NAME\");\r\n\t password = prop.getProperty(\"MDM_PASSWORD\");\r\n\t \r\n\t logger.info(\"SIF URL ::\" + sifUrl);\r\n\t logger.info(\"ORS ID ::\" + orsId );\r\n\t logger.info(\"User Id ::\" + username);\r\n\t logger.info(\"Password ::\" + password);\r\n\t \r\n\t\r\n\t}", "private void loadLocalConfig()\n {\n try\n {\n // Load the system config file.\n URL fUrl = Config.class.getClassLoader().getResource( PROP_FILE );\n config.setDelimiterParsingDisabled( true );\n if ( fUrl == null )\n {\n String error = \"static init: Error, null cfg file: \" + PROP_FILE;\n LOG.warn( error );\n }\n else\n {\n LOG.info( \"static init: found from: {} path: {}\", PROP_FILE, fUrl.getPath() );\n config.load( fUrl );\n LOG.info( \"static init: loading from: {}\", PROP_FILE );\n }\n\n URL fUserUrl = Config.class.getClassLoader().getResource( USER_PROP_FILE );\n if ( fUserUrl != null )\n {\n LOG.info( \"static init: found user properties from: {} path: {}\", USER_PROP_FILE, fUserUrl.getPath() );\n config.load( fUserUrl );\n }\n }\n catch ( org.apache.commons.configuration.ConfigurationException ex )\n {\n String error = \"static init: Error loading from cfg file: [\" + PROP_FILE\n + \"] ConfigurationException=\" + ex;\n LOG.error( error );\n throw new CfgRuntimeException( GlobalErrIds.FT_CONFIG_BOOTSTRAP_FAILED, error, ex );\n }\n }", "private void loadPropertiesFromFile(String propertiesFileName) {\t\t\n\t\tif ( (propertiesFileName != null) && !(propertiesFileName.isEmpty()) ) {\n\t\t\tpropertiesFileName = config_file_name;\n\t \t\ttry {\n\t \t\t\t// FileInputStream lFis = new FileInputStream(config_file_name);\n\t \t\t\t// FileInputStream lFis = getServletContext().getResourceAsStream(config_file_name);\n\t \t\t\tInputStream lFis = Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\");\n\t \t\t\tif (lFis != null) {\n\t\t \t\t\tProperties lConnectionProps = new Properties();\n\t\t \t\t\tlConnectionProps.load(lFis);\n\t\t \t\t\tlFis.close();\n\t\t \t\t\tlLogger.info(DEBUG_PREFIX + \"Using configuration file \" + config_file_name);\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceNname\") != null) ssosvc_name = lConnectionProps.getProperty(\"SsoServiceNname\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceLabel\") != null) ssosvc_label = lConnectionProps.getProperty(\"SsoServiceLabel\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServicePlan\") != null) ssosvc_plan = lConnectionProps.getProperty(\"SsoServicePlan\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_clientId = lConnectionProps.getProperty(\"SsoServiceCredential_clientId\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_secret = lConnectionProps.getProperty(\"SsoServiceCredential_secret\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_serverSupportedScope = lConnectionProps.getProperty(\"SsoServiceCredential_serverSupportedScope\");\n\t\t\tlLogger.info(DEBUG_PREFIX + \"CONFIG FILE parsing, found Scopes = \" + ssosvc_cred_serverSupportedScope + \" for service name = \" + ssosvc_name);\t\n\t\t\t Pattern seperators = Pattern.compile(\".*\\\\[ *(.*) *\\\\].*\");\n\t\t\t if (seperators != null) {\n\t\t\t \tMatcher scopeMatcher = seperators.matcher(ssosvc_cred_serverSupportedScope);\n\t\t\t\t scopeMatcher.find();\n\t\t\t\t ssosvc_cred_serverSupportedScope = scopeMatcher.group(1); // only get the first occurrence\n\t\t\t\t lLogger.info(DEBUG_PREFIX + \"CONFIG FILE parsing, retrieved first Scope = \" + ssosvc_cred_serverSupportedScope);\n\t\t\t }\n\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_issuerIdentifier = lConnectionProps.getProperty(\"SsoServiceCredential_issuerIdentifier\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_tokenEndpointUrl = lConnectionProps.getProperty(\"SsoServiceCredential_tokenEndpointUrl\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_authorizationEndpointUrl = lConnectionProps.getProperty(\"SsoServiceCredential_authorizationEndpointUrl\");\n\t\n\t\t \t\t\tlLogger.info(DEBUG_PREFIX + \"Using config for SSO Service with name \" + ssosvc_name);\n\t \t\t\t} else {\n\t \t\t\t\tlLogger.severe(DEBUG_PREFIX + \"Configuration file not found! Using default settings.\");\n\t \t\t\t}\n\n\t \t\t} catch (FileNotFoundException e) {\n\t \t\t\tlLogger.severe(DEBUG_PREFIX + \"Configuration file = \" + config_file_name + \" not found! Using default settings.\");\n\t \t\t\te.printStackTrace();\n\t \t\t} catch (IOException e) {\n\t \t\t\tlLogger.severe(\"SF-DEBUG: Configuration file = \" + config_file_name + \" not readable! Using default settings.\");\n\t \t\t\te.printStackTrace();\n\t \t\t}\n\t \t} else {\n\t \t\tlLogger.info(DEBUG_PREFIX + \"Configuration file = \" + config_file_name + \" not found! Using default settings.\");\n\t \t}\n\t}", "@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n public void loadConfigProperties() {\n Properties properties = new Properties();\n InputStream inputStream = null;\n try {\n String configFile = Constant.CONFIGURATION_PROPERTIES;\n inputStream = RepositoryParser.class.getClassLoader().getResourceAsStream(configFile);\n // Loading the property file\n properties.load(inputStream);\n } catch (FileNotFoundException e) {\n Log.error(\"Property file was not found\");\n } catch (IOException e) {\n Log.error(\"The key was not found in the property file\");\n } finally {\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException e) {\n Log.error(\"The property file was not closed\");\n }\n }\n }\n\n // Getting the corresponding value of the key in the property file\n configPropertiesMap = new HashMap<String, String>((Map) properties);\n }", "void load() {\n\t\ttry {\n\t\t\tfinal FileInputStream fis = new FileInputStream(propertyFile);\n\t\t\tfinal Properties newProperties = new Properties();\n\t\t\tnewProperties.load(fis);\n\t\t\ttimeLastRead = propertyFile.lastModified();\n\t\t\tproperties = newProperties;\n\t\t\tfis.close();\n\t\t} catch (final Exception e) {\n\t\t\tlogger.info(\"Property file \" + propertyFile + \" \" + e.getMessage());\n\t\t}\n\t}", "public void setParameters(Properties props) {\n\n\t}", "private static void processIncludedConfig() {\n String configName = \"config.\" + getRunMode() + \".properties\";\n\n //relative path cannot be recognized and not figure out the reason, so here use absolute path instead\n InputStream configStream = Configuration.class.getResourceAsStream(\"/\" + configName);\n if (configStream == null) {\n log.log(Level.WARNING, \"configuration resource {0} is missing\", configName);\n return;\n }\n\n try (InputStreamReader reader = new InputStreamReader(configStream, StandardCharsets.UTF_8)) {\n Properties props = new Properties();\n props.load(reader);\n CONFIG_VALUES.putAll(props);\n } catch (IOException e) {\n log.log(Level.WARNING, \"Unable to process configuration {0}\", configName);\n }\n\n }", "@BeforeSuite\n\tpublic void propertiesFileReader(){\n\t\tif(prop == null){\t\t\t\n\t\t\tprop = new Properties();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"qa\")){ prop.load(new\n\t\t\t\t * FileInputStream(qaProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"stage\")){ prop.load(new\n\t\t\t\t * FileInputStream(stagProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"prod\")){ prop.load(new\n\t\t\t\t * FileInputStream(prodProperty)); }\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"qa\")) \n\t\t\t\t\tFileUtils.copyFile(new File(qaProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"stage\"))\n\t\t\t\t\tFileUtils.copyFile(new File(stagProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"prod\"))\n\t\t\t\t\tFileUtils.copyFile(new File(prodProperty), new File(defaultProperty));\n\t\t\t\t\n\t\t\t\tprop.load(new FileInputStream(defaultProperty));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"user + pass [\"+prop.getProperty(\"username\")+\"===\"+prop.getProperty(\"password\"));\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void loadCustomConfig() {\r\n ResourceBundle bundle = ResourceLoader.getProperties(DEFAULT_CUSTOM_CONFIG_NAME);\r\n if (bundle != null) {\r\n putAll(bundle);\r\n LOG.info(\"Load custom Scope config from \" + DEFAULT_CUSTOM_CONFIG_NAME + \".properties\");\r\n } else {\r\n LOG.warn(\"Can't load custom Scope config from \" + DEFAULT_CUSTOM_CONFIG_NAME + \".properties\");\r\n }\r\n }", "public void getPropValues() throws IOException {\r\n try {\r\n Properties prop = new Properties();\r\n String path = System.getProperty(\"user.dir\") +\"\\\\src\\\\es\\\\udc\\\\redes\\\\webserver\\\\resources\\\\\";\r\n\t String filename = \"config.properties\";\r\n inputStream = new FileInputStream(path+filename);\r\n if (inputStream != null) {\r\n prop.load(inputStream);\r\n } else {\r\n\t\tthrow new FileNotFoundException(\"property file '\"+path + filename + \"' not found\");\r\n }\r\n\t // get the property value and set in attributes\r\n\t this.PORT = prop.getProperty(\"PORT\");\r\n this.DIRECTORY_INDEX = prop.getProperty(\"DIRECTORY_INDEX\");\r\n this.DIRECTORY = System.getProperty(\"user.dir\")+ prop.getProperty(\"DIRECTORY\");\r\n this.ALLOW = prop.getProperty(\"ALLOW\");\r\n this.HOSTNAME = prop.getProperty(\"HOSTNAME\");\r\n System.out.println();\r\n } catch (Exception e) {\r\n\t\tSystem.out.println(\"Exception: \" + e);\r\n\t} finally {\r\n\t\tinputStream.close();\r\n\t}\r\n }", "@Override\n public Properties loadProperties(String filename) {\n return testProperties;\n }", "public void load()\n\t{\n\t\ttry {\n\t\t\tIFile file = project.getFile(PLAM_FILENAME);\n\t\t if (file.exists()) {\n\t\t\t\tInputStream stream= null;\n\t\t\t\ttry {\n\t\t\t\t\tstream = new BufferedInputStream(file.getContents(true));\n\t\t\t\t SAXReader reader = new SAXReader();\n\t\t\t\t Document document = reader.read(stream);\n\t\t\t\t \n\t\t\t\t Element root = document.getRootElement();\n\n\t\t\t\t String url = root.elementTextTrim(\"server-url\");\n\t\t\t\t setServerURL((url != null) ? new URL(url) : null);\n\t\t\t\t \n\t\t\t\t setUserName(root.elementTextTrim(\"username\"));\n\t\t\t\t setPassword(root.elementTextTrim(\"password\"));\n\t\t\t\t setProductlineId(root.elementTextTrim(\"pl-id\"));\n \n\t\t\t\t} catch (CoreException e) {\n\t\t\t\t\t\n\t\t\t\t} finally {\n\t\t\t\t if (stream != null)\n\t\t\t\t stream.close();\n\t\t\t\t}\n\t\t }\n\t\t} catch (DocumentException e) {\n\t\t\tlogger.info(\"Error while parsing PLAM config.\", e);\n\t\t} catch (IOException e) {\n\t\t}\n\t}", "public void loadProperties() throws IOException\n\t{\n\t\tFile src = new File(\"D://Selenium Stuff//Selenium Workspace//OpenCartL2_28112017//ObjectRepo.properties\");\n\t\tFileInputStream fis = new FileInputStream(src);\n\t\tpro = new Properties();\n\t\tpro.load(fis);\n\t}", "public void loadConfigs() {\n\t configYML = new ConfigYML();\n\t configYML.setup();\n }", "public static void loadPropertyFile() {\r\n\t\t\r\n\t\tif (loaded) {\r\n\t\t\tthrow new IllegalStateException(\"Properties have already been loaded!\"); \r\n\t\t}\r\n\t\tloaded = true; \r\n\t\t\r\n\t\t// if property file was specified, use it instead of standard property\r\n\t\t// file\r\n\r\n\t\tString file = STANDARD_PROPERTY_FILE;\r\n\r\n\t\tif (System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE) != null\r\n\t\t\t\t&& System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE)\r\n\t\t\t\t\t\t.length() != 0) {\r\n\t\t\tfile = System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE);\r\n\t\t}\r\n\r\n\t\t// load property file\r\n\t\ttry {\r\n\t\t\tProperties props = System.getProperties();\r\n\t\t\tprops.load(ClassLoader.getSystemResourceAsStream(file));\r\n\t\t\tSystem.setProperties(props);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t}\r\n\r\n\t}", "protected void initialise() {\r\n loadDefaultConfig();\r\n loadCustomConfig();\r\n loadSystemConfig();\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"--- Scope properties ---\");\r\n for (Iterator i = properties.keySet().iterator(); i.hasNext(); ) {\r\n String key = (String) i.next();\r\n Object value = properties.get(key);\r\n LOG.debug(key + \" = \" + value);\r\n }\r\n LOG.debug(\"------------------------\");\r\n }\r\n }", "private LODEParameters(){\n prefsFile=new File(LODEConstants.PARAMS_FILE);\n }", "private void loadProperties(){\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }", "public static void loadProps(InputStream in) {\r\n\t\ttry {\r\n properties.load(in);\r\n } catch (IOException e) {\r\n System.out.println( \"No config.properties was found.\");\r\n e.printStackTrace();\r\n }\r\n\t}", "private CommonConfigBean(){\n\t\tsuper();\n\t\t\n\t\t\n\t\ttry {\n\n\t\t\tFile fXmlFile = new File(PathTool.getAbsolute(RELATIVE_FILE_PATH));\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t\t\t\t\n\t\t\t//optional, but recommended\n\t\t\t//read this - http://stackoverflow.com/questions/13786607/normalization-in-dom-parsing-with-java-how-does-it-work\n\t\t\tdoc.getDocumentElement().normalize();\n\n\t\t\tSystem.out.println(\"Root element :\" + doc.getDocumentElement().getNodeName());\n\t NodeList nList = doc.getElementsByTagName(\"param\");\n\t params = new HashMap<>();\n\t for (int temp = 0; temp < nList.getLength(); temp++) {\n\t Node nodo = nList.item(temp);\n\t System.out.println(\"Elemento:\" + nodo.getNodeName());\n\t if (nodo.getNodeType() == Node.ELEMENT_NODE) {\n\t Element element = (Element) nodo;\n\t params.put(element.getAttribute(\"name\"), element.getAttribute(\"value\"));\n\t }\n\t }\n\t\t\t\n\t\t\t\n\t\t } catch (Exception e) {\n\t\t \te.printStackTrace();\n\t\t }\n\t}", "public ReadConfig() \n\t{\n\t\tFile scr = new File(\"./Configuration/config.properties\"); //property file\n\n\t\tFileInputStream fis;\n\t\ttry {\n\t\t\tfis = new FileInputStream(scr); // READ the DATA (read mode)\n\t\t\tpro = new Properties(); // pro object\n\t\t\tpro.load(fis); // Load method -load at the \n\n\t\t} catch (final Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Except is \" + e.getMessage());\n\t\t} \n\t}", "public void read() {\n\t\tconfigfic = new Properties();\n\t\tInputStream input = ConfigReader.class.getClassLoader().getResourceAsStream(\"source/config.properties\");\n\t\t// on peut remplacer ConfigReader.class par getClass()\n\t\ttry {\n\t\t\tconfigfic.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void loadObject() {\n\n obj = new Properties();\n try {\n obj.load(new FileInputStream(\"./src/test/resources/config.properties\"));\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "private static void loadPropertiesFile() {\n checkNotNull(propertyFileName, \"propertyFileName cannot be null\");\n String currentDir = new File(\"\").getAbsolutePath();\n propertyFile = currentDir + \"/\" + propertyFileName;\n File propFile = new File(propertyFile);\n try {\n propFile.createNewFile();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n\n props = new Properties();\n try {\n FileInputStream fis = new FileInputStream(propertyFile);\n props.load(fis);\n fis.close();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n }", "public ReadPropertyFile()\n\t{\n\t prob = new Properties(); \n\t \n\t try\n\t {\n\t FileInputStream fis = new FileInputStream(\".//config.properties\");\n\t prob.load(fis);\n\t }\n\t catch(FileNotFoundException e)\n\t {\n\t\t System.out.println(e.getMessage());\n\t }\n catch(IOException e)\n\t {\n \t System.out.println(e.getMessage());\n\t }\n\t}", "private static Properties loadProperties() {\n Properties properties;\n try (InputStream in = FHIRServerProperties.class.getClassLoader().getResourceAsStream(HAPI_PROPERTIES)) {\n properties = new Properties();\n properties.load(in);\n } catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties\", e);\n }\n\n Properties overrideProps = loadOverrideProperties();\n if (overrideProps != null) {\n properties.putAll(overrideProps);\n }\n return properties;\n }", "@Test\n public void testCreateFromProperties_Properties() throws Exception {\n System.out.println(\"createFromProperties\");\n Properties props = new Properties();\n props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName));\n EngineConfiguration result = EngineConfiguration.createFromProperties(props);\n assertProperties(result);\n }", "public Properties() {\n\n\t\tconfig = new java.util.Properties();\n\n\t\ttry {\n\t\t\tInputStream input = new FileInputStream(new File(\n\t\t\t\t\t\"ConfigurationFile.txt\"));\n\t\t\tconfig.load(input);\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void init(){\n\t\tif(prop==null){\r\n\t\t\tprop=new Properties();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileInputStream fs = new FileInputStream(System.getProperty(\"user.dir\")+\"//src//test//resources//projectconfig.properties\");\r\n\t\t\t\tprop.load(fs);\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\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "default void load(Map<String, Object> properties)\r\n {\r\n }", "public ReadConfigFile (){\n\t\ttry {\n\t\t\tinput = ReadConfigFile.class.getClassLoader().getResourceAsStream(Constant.CONFIG_PROPERTIES_DIRECTORY);\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}catch ( IOException e ) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\t}", "public static void loadProperties() {\r\n\t\tif (!isLoaded) {\r\n\t\t\tnew BCProperties() ;\r\n\t\t\tisLoaded = true ;\r\n\t\t}\r\n\t}", "public static void processConfig() {\r\n\t\tLOG.info(\"Loading Properties from {} \", propertiesPath);\r\n\t\tLOG.info(\"Opening configuration file ({})\", propertiesPath);\r\n\t\ttry {\r\n\t\t\treadPropertiesFile();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tLOG.error(\r\n\t\t\t\t\t\"Monitoring system encountered an error while processing config file, Exiting\",\r\n\t\t\t\t\te);\r\n\t\t}\r\n\t}", "private void loadPropertyFile(InputStream stream) throws IOException{\n\t\tproperties = new Properties();\n\t\tproperties.load(stream);\n\t}", "public static void loadConfigurationFile() throws IOException {\n\t\tFileInputStream fis= new FileInputStream(\"config.properties\");\n\t\tprop.load(fis);\n\t}", "protected void loadProperties(ClassLoader al, URL url) {\n try (InputStream is = url.openStream()) {\n if (is == null) {\n log(\"Could not load definitions from \" + url,\n Project.MSG_WARN);\n return;\n }\n Properties props = new Properties();\n props.load(is);\n for (String key : props.stringPropertyNames()) {\n name = key;\n classname = props.getProperty(name);\n addDefinition(al, name, classname);\n }\n } catch (IOException ex) {\n throw new BuildException(ex, getLocation());\n }\n }", "private void initializeProperties(String propertiesFilename) throws IOException {\n this.properties = new Properties();\n\n // Set defaults for 'standard' operation.\n // properties.setProperty(FILENAME_KEY, clientHome + \"/bmo-data.tsv\");\n properties.setProperty(BMO_URI_KEY,\n \"http://www.buildingmanageronline.com/members/mbdev_export.php/download.txt\");\n\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(propertiesFilename);\n properties.load(stream);\n System.out.println(\"Loading data input client properties from: \" + propertiesFilename);\n }\n catch (IOException e) {\n System.out.println(propertiesFilename\n + \" not found. Using default data input client properties.\");\n throw e;\n }\n finally {\n if (stream != null) {\n stream.close();\n }\n }\n trimProperties(properties);\n }", "private void readProperties() throws Exception{\n\t\t InputStream fisGlobal=null,fisModul=null; \n\t\t propiedades = new Properties();\n try {\n \t // Path directorio de configuracion\n \t String pathConf = System.getProperty(\"ad.path.properties\");\n \t \n \t // Propiedades globales\n \t fisGlobal = new FileInputStream(pathConf + \"sistra/global.properties\");\n \t propiedades.load(fisGlobal);\n \t\t \n \t // Propiedades modulo\n \t\t fisModul = new FileInputStream(pathConf + \"sistra/plugins/plugin-firma.properties\");\n \t\t propiedades.load(fisModul);\n \t \t \t\t \n } catch (Exception e) {\n \t propiedades = null;\n throw new Exception(\"Excepcion accediendo a las propiedadades del modulo\", e);\n } finally {\n try{if (fisGlobal != null){fisGlobal.close();}}catch(Exception ex){}\n try{if (fisModul != null){fisModul.close();}}catch(Exception ex){}\n }\t\t\n\t}", "public void init(Properties props) {\n\t\tString url = props.getProperty(EWARP_CONFIG_URL);\n\t\tif (url != null) {\n\t\t\tInputStream in = null;\n\t\t\ttry {\n\t\t\t\t// TODO consider other loading options, e.g. through WebHelper using ServletContext\n\t\t\t\tin = loadResource(url);\n\t\t\t\tProperties externalProps = new Properties();\n\t\t\t\texternalProps.load(in);\n\t\t\t}\n\t\t\tcatch (Throwable t) {\n\t\t\t\tlog.warn(\"failed to load external runtime configuration from \" + url + \": \" + t.getMessage());\n\t\t\t\t// TODO check another property, whether to bail out, \n\t\t\t\t// if external configuration can not be found\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tif (in != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tin.close();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Throwable t) {\n\t\t\t\t\t\t// ignore\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tcreateLifecycleInterceptor(props);\n\n\t\t// give interceptor a change to modify properties\n\t\truntimeProps = interceptor.configure(props);\n\t\t\n\t\t// log configuration\n\t\tif (log.isDebugEnabled()) {\n\t\t\tList<String> params = new ArrayList<String>();\n\t\t\tfor (Object key : runtimeProps.keySet()) {\n\t\t\t\tparams.add(key.toString());\n\t\t\t}\n\t\t\tif (params.size() > 0) {\n\t\t\t\tCollections.sort(params);\n\t\t\t\tlog.debug(\"=============== configuration ==============\");\n\t\t\t\tfor (String name : params) {\n\t\t\t\t\tString value = runtimeProps.getProperty(name);\n\t\t\t\t\tlog.debug(name + \"=\" + value);\n\t\t\t\t}\n\t\t\t\tlog.debug(\"============================================\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// init from properties\n\t\tList<String> args = new ArrayList<String>();\n\t\tconfigureErjang(runtimeProps, args);\n\t\truntimeArgs = (String[]) args.toArray(new String[args.size()]);\n\t}", "private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }", "private Properties loadConfigProperties() {\n \tProperties prop = new Properties();\n \tInputStream in = null;\n \ttry {\n \t\tin = this.getClass().getClassLoader().getResourceAsStream(\"resources/config.properties\");\n \t\tprop.load(in);\n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n \t} finally {\n \t\tif (in != null) {\n \t\t\ttry {\n \t\t\t\tin.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}\n \treturn prop;\n\t}", "@Override\n public synchronized void load(Map<String, Object> parameters) {\n // fill properly the \"forGroups\" and \"forProjects\" fields\n processTargetGroupsAndProjects();\n\n if (!hasPlugin()) {\n LOGGER.log(Level.SEVERE, \"Configured plugin \\\"{0}\\\" has not been loaded into JVM (missing file?). \"\n + \"This can cause the authorization to fail always.\",\n getName());\n setFailed();\n LOGGER.log(Level.INFO, \"[{0}] Plugin \\\"{1}\\\" {2} and is {3}.\",\n new Object[]{\n getFlag().toString().toUpperCase(),\n getName(),\n hasPlugin() ? \"found\" : \"not found\",\n isWorking() ? \"working\" : \"failed\"});\n return;\n }\n\n setCurrentSetup(new TreeMap<>());\n getCurrentSetup().putAll(parameters);\n getCurrentSetup().putAll(getSetup());\n\n try {\n plugin.load(getCurrentSetup());\n setWorking();\n } catch (Throwable ex) {\n LOGGER.log(Level.SEVERE, \"Plugin \\\"\" + getName() + \"\\\" has failed while loading with exception:\", ex);\n setFailed();\n }\n\n LOGGER.log(Level.INFO, \"[{0}] Plugin \\\"{1}\\\" {2} and is {3}.\",\n new Object[]{\n getFlag().toString().toUpperCase(),\n getName(),\n hasPlugin() ? \"found\" : \"not found\",\n isWorking() ? \"working\" : \"failed\"});\n }", "private Properties loadProperties(String propertyFile) {\n\t\toAuthProperties = new Properties();\n\t\ttry {\n\t\t\toAuthProperties.load(App.class.getResourceAsStream(propertyFile));\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Unable to read \" + propertyFile\n\t\t\t\t\t+ \" configuration. Make sure you have a properly formatted \" + propertyFile + \" file.\");\n\t\t\treturn null;\n\t\t}\n\t\treturn oAuthProperties;\n\t}", "private void loadURL() throws IOException{\n\t\tLOGGER.debug(\"BEGIN\");\n\t\t\t\t\t\n\t\ttry {\n\t\t\tinitCassandra();\n\t\t\tInitialContext initCtx = new InitialContext();\n\t\t\tString location = (String) initCtx.lookup(PropertiesConstants.PROPERTY_URL_JNDI);\n\t\t\tfileInputStream = new FileInputStream(new File(location));\n\t\t\t\n\t\t\tloadPropertyFile(fileInputStream);\n\t\t\t\n\t\t\tLOGGER.debug(\"Loading Property File\" + location);\n\t\t}catch (Exception e) {\n\t\t\tLOGGER.debug(\"No JNDI Settings found. \" + e);\t\t\t\n\t\t}\n\t\tsetLogLevel(getInt(PropertiesConstants.LOG_LEVEL));\n\t\tLOGGER.debug(\"END\");\n\t}", "private void getParameters() {\r\n\t\ttry {\r\n\t\t\tp_encoding = \"ISO-8859-1\";\r\n\t\t\tp_page_encoding = \"utf-8\";\r\n\t\t\tp_labels_data_file = \"resources/units/labels.txt\";\r\n\t\t\tp_multiplier_data_file = \"resources/units/muldata.txt\";\r\n\t\t\tp_category_data_file = \"resources/units/catdata.txt\";\r\n\t\t\tp_unit_data_file = \"resources/units/unitdata.txt\";\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treadDataFile(0, p_multiplier_data_file); //read data from external text file\r\n\t\treadDataFile(1, p_category_data_file); //read data from external text file\r\n\t\treadDataFile(2, p_unit_data_file); //read data from external text file\r\n\t\treadDataFile(3, p_labels_data_file); //read data from external text file\r\n\t}", "private void loadSettings() {\r\n \tString fname = baseDir + \"/\" + configFile;\r\n\t\tString line = null;\r\n\r\n\t\t// Load the settings hash with defaults\r\n\t\tsettings.put(\"db_url\", \"\");\r\n\t\tsettings.put(\"db_user\", \"\");\r\n\t\tsettings.put(\"db_pass\", \"\");\r\n\t\tsettings.put(\"db_min\", \"2\");\r\n\t\tsettings.put(\"db_max\", \"10\");\r\n\t\tsettings.put(\"db_query\", \"UPDATE members SET is_activated=1 WHERE memberName=? AND is_activated=3\");\r\n\t\t// Read the current file (if it exists)\r\n\t\ttry {\r\n \t\tBufferedReader input = new BufferedReader(new FileReader(fname));\r\n \t\twhile (( line = input.readLine()) != null) {\r\n \t\t\tline = line.trim();\r\n \t\t\tif (!line.startsWith(\"#\") && line.contains(\"=\")) {\r\n \t\t\t\tString[] pair = line.split(\"=\", 2);\r\n \t\t\t\tsettings.put(pair[0], pair[1]);\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \tcatch (FileNotFoundException e) {\r\n\t\t\tlogger.warning( \"[SMF] Error reading \" + e.getLocalizedMessage() + \", using defaults\" );\r\n \t}\r\n \tcatch (Exception e) {\r\n \t\te.printStackTrace();\r\n \t}\r\n }", "private static void loadConfig() {\n\t\trxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Receiver.ID\", Integer.class,\n\t\t\t\tnew Integer(rxID));\n\t\ttxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Transmitter.ID\", Integer.class,\n\t\t\t\tnew Integer(txID));\n\t}", "private Config()\n {\n try\n {\n // Load settings from file\n load();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "public ConfigFile(String fileName, String encoding) {\n InputStream inputStream = null;\n try {\n inputStream = getClassLoader().getResourceAsStream(fileName); // properties.load(ConfigFile.class.getResourceAsStream(fileName));\n if (inputStream == null) {\n throw new IllegalArgumentException(\"Properties file not found in classpath: \" + fileName);\n }\n\n properties = new Properties();\n if (fileName.endsWith(\"yml\")){\n isYml = true;\n properties= new Yaml().loadAs(new InputStreamReader(inputStream, encoding),Properties.class);\n }else\n properties.load(new InputStreamReader(inputStream, encoding));\n } catch (IOException e) {\n throw new RuntimeException(\"Error loading properties file.\", e);\n } finally {\n if (inputStream != null) try {\n inputStream.close();\n } catch (IOException e) {\n LogKit.error(e.getMessage(), e);\n }\n }\n }", "public Parameters getConfigParameters();", "public synchronized static void initConfig(ITestContext context) {\n\t\tMap<CatPawConfigProperty, String> initialValues = new HashMap<CatPawConfigProperty, String>();\n\t\tfor (CatPawConfigProperty prop : CatPawConfigProperty.values()) {\n\t\t\t// Check if parameter is here\n\t\t\tString newValue = context.getCurrentXmlTest().getAllParameters().get(prop.getName());\n\t\t\tif (newValue != null && newValue != \"\") {\n\t\t\t\tinitialValues.put(prop, newValue);\n\t\t\t}\n\t\t}\n\t\tinitConfig(initialValues);\n\n\n\t}", "private static synchronized void init() {\n if (CONFIG_VALUES != null) {\n return;\n }\n\n CONFIG_VALUES = new Properties();\n processLocalConfig();\n processIncludedConfig();\n }" ]
[ "0.7241633", "0.7170848", "0.715796", "0.71569246", "0.7135945", "0.70529157", "0.6954845", "0.6926495", "0.6827503", "0.68164927", "0.67816603", "0.6780846", "0.6764151", "0.6721687", "0.671047", "0.6690758", "0.6636349", "0.66029775", "0.6578151", "0.6569653", "0.6541612", "0.6490681", "0.6480846", "0.6455848", "0.6447987", "0.6445588", "0.64325315", "0.6427385", "0.6387686", "0.63769764", "0.6360495", "0.632739", "0.6308221", "0.63019085", "0.6297769", "0.62849903", "0.6275786", "0.6260168", "0.6251713", "0.6237858", "0.62283516", "0.6206592", "0.619881", "0.61966383", "0.619448", "0.619385", "0.61938006", "0.6172739", "0.61657554", "0.616436", "0.6155958", "0.61531156", "0.615143", "0.6147848", "0.61415875", "0.61319107", "0.6128886", "0.6126249", "0.6124911", "0.6119319", "0.6109684", "0.6107888", "0.60992485", "0.6098698", "0.60954887", "0.60897547", "0.6088634", "0.6086726", "0.60822046", "0.60732985", "0.60717237", "0.60606307", "0.6055592", "0.60555685", "0.6051819", "0.6050655", "0.60395056", "0.60357857", "0.6034768", "0.603407", "0.6027295", "0.6011495", "0.60048866", "0.5999063", "0.5989364", "0.5984452", "0.5972244", "0.59681135", "0.59588456", "0.59537494", "0.5930921", "0.5926472", "0.5905133", "0.58990276", "0.5886935", "0.5883166", "0.5882564", "0.588075", "0.587131", "0.58623844", "0.58614075" ]
0.0
-1
Make sure the specified folder path exist or try to create it
private File initFolder(final String folderPath) throws IOException { File tempFolder = new File(folderPath); if (!tempFolder.exists()) { boolean createdFolder = false; try { createdFolder = tempFolder.mkdir(); } catch (SecurityException se) { if (LOGGER.isLoggable(Level.WARNING)) { LOGGER.warning("Unable to create the specified folder: " + folderPath + "\nProceeding with using the System temp folder: " + SYSTEM_TEMP_DIR); } } if (!createdFolder) { tempFolder = new File(SYSTEM_TEMP_DIR); } } if (!tempFolder.exists() || !tempFolder.canWrite()) { throw new IOException("Unable to write on the specified folder: " + tempFolder.getAbsolutePath()); } return tempFolder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean createFolder (Path path) {\n if (Files.notExists(path)) {\n // If the folder doesn't already exists we create it\n File f = new File(path.toString());\n try {\n // Create the folder\n f.mkdir();\n // Create an empty flow.json file\n f = new File(path + \"/flow.json\");\n f.createNewFile();\n return true;\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n } else {\n return false;\n }\n }", "public boolean checkFolderExistsOrMake(File folder) {\n\t\ttry {\n\t\t\tif(folder.exists()) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tfolder.mkdir();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean createFolder(String path){\n\t\tValueCollection payload = new ValueCollection();\n\t\tpayload.put(\"path\", new StringPrimitive(path));\n\t\ttry {\t\n\t\t\tclient.invokeService(ThingworxEntityTypes.Things, FileThingName, \"CreateFolder\", payload, 5000);\n\t\t\tLOG.info(\"Folder {} created.\",path);\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"Folder already exists. Error: {}\",e);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void checkFolder() {\n String mPath = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/ExoTest/\";\n mDir = new File(mPath);\n boolean isDirectoryCreated = mDir.exists();\n if (!isDirectoryCreated) {\n isDirectoryCreated = mDir.mkdir();\n }\n if (isDirectoryCreated) {\n // do something\\\n Log.d(\"Folder\", \"Already Created\");\n }\n }", "@Override\n\tpublic boolean createFolder(String pathfolder) {\n\t\treturn eDao.createFolder(pathfolder);\n\t}", "public static void checkFolder(String dir){\n java.nio.file.Path checkFolderPath = java.nio.file.Paths.get(dir+\"/data\");\n boolean folderExists = java.nio.file.Files.exists(checkFolderPath);\n //folder not exists, create one\n if(!folderExists) {\n new File(dir+\"/data\").mkdirs();\n }\n }", "private static void checkFilePath(String filePath) {\n File file = new File(filePath);\n try {\n if (!file.getParentFile().exists()) {\n file.getParentFile().mkdirs();\n }\n if (!file.exists()) {\n file.createNewFile();\n }\n file.createNewFile();\n } catch (IOException e) {\n System.err.println(e.getMessage());\n }\n }", "private static void judeDirExists(String myPath) {\n \tFile myDir = new File(Paths.get(myPath).getParent().toString());\n if (!myDir.exists()) {\n \tmyDir.mkdirs(); \n System.out.println(\"Create path:\"+ myDir.getPath());\n }\n }", "private void createDirectory(String path) throws IOException {\n\t\tfinal Path p = Paths.get(path);\n\t\tif (!fileExists(p)) {\n\t\t\tFiles.createDirectory(p);\n\t\t}\n\t}", "@Override\r\n\tpublic boolean createFolder(String filePath) throws FileSystemUtilException {\r\n\t\ttry{\r\n\t\t\tString userHome = getUserHome();\r\n\t\t\t//if given file path doesnot start with user home\r\n\t\t\tif(filePath == null && filePath.trim().length() < 1 && !filePath.startsWith(userHome)){\r\n\t\t\t\tthrow new FileSystemUtilException(\"EL0701\");\r\n\t\t\t}\r\n\t\t\tconnect();\r\n\t\t\tString mkDirCmd = \"mkdir -p \"+filePath;\t\t\t\r\n\t\t\tint x = executeSimpleCommand(mkDirCmd);\r\n\t\t\tif(x!=0)\r\n\t\t\t{\r\n\t\t\t\tlogger.info(\"Folder creation failed, may be file path is not correct or privileges are not there\");\r\n\t\t\t\tthrow new FileSystemUtilException(\"EL0699\");\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}catch(FileSystemUtilException e)\r\n\t\t{\r\n\t\t disconnect();\r\n\t\t\tthrow new FileSystemUtilException(e.getErrorCode(),e.getException());\r\n\t\t}catch(Exception e)\r\n\t\t{\r\n\t\t\tthrow new FileSystemUtilException(\"F00002\",e);\r\n\t\t}\r\n\r\n\t}", "Folder createFolder();", "private static void createDirectory(Path path) throws IOException {\n\t\ttry {\n\t\t\tFiles.createDirectory(path);\n\t\t} catch (FileAlreadyExistsException e) {\n\t\t\tif (!Files.isDirectory(path)) {\n\t\t\t\tthrow e;\n\t\t\t}\n\t\t}\n\t}", "private void checkIfLocationExists() {\n try {\n File file = new File(saveLocation);\n if(!file.exists()) file.mkdirs();\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n }", "private void checkCreateParentDirs(Path file) throws IOException {\n if (!Files.exists(file.getParent())) {\n Files.createDirectories(file.getParent());\n }\n }", "private static void createSaveDirIfNotExisting() {\n\t\tFile dir = new File(\"save\");\n\t\tif (!dir.exists()) {\n\t\t\t// directory does not exist => create!\n\t\t\tdir.mkdir();\n\t\t}\n\t}", "WithCreate withFolderPath(String folderPath);", "public void mkdir(String path) throws SystemException;", "private void createFolders() {\n File f = new File(System.getProperty(\"user.dir\") + \"/chatimages/\");\n if (!f.exists()){\n f.mkdir();\n }\n }", "private void createFolderHelper(final IFolder folder,final IProgressMonitor monitor)\n throws CoreException\n {\n if(!folder.exists())\n {\n IContainer parent = folder.getParent();\n if(parent instanceof IFolder\n && (!((IFolder)parent).exists())) {\n createFolderHelper((IFolder)parent,monitor);\n }\n folder.create(false,true,monitor);\n }\n }", "private void createDir(){\n\t\tPath path = Path.of(this.dir);\n\t\ttry {\n\t\t\tFiles.createDirectories(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void createFolder(String myFilesystemDirectory) {\n\r\n File file = new File(myFilesystemDirectory);\r\n try {\r\n if (!file.exists()) {\r\n //modified \r\n file.mkdirs();\r\n }\r\n } catch (SecurityException e) {\r\n Utilidades.escribeLog(\"Error al crear carpeta: \" + e.getMessage());\r\n }\r\n }", "public static void mkdir(String path)\n\t{\n\t\tif(!new File(path).exists())\n\t\t\tnew File(path).mkdirs();\n\t}", "@BeforeClass(groups ={\"All\"})\n\tpublic void createFolder() {\n\t\tdciFunctions = new DCIFunctions();\n\t\ttry {\n\t\t\tif(suiteData.getSaasApp().equalsIgnoreCase(\"Salesforce\")){\n\t\t\t\tLogger.info(\"No need to create folder for salesforce\");\n\t\t\t}else{\n\t\t\t\tUserAccount account = dciFunctions.getUserAccount(suiteData);\n\t\t\t\tUniversalApi universalApi = dciFunctions.getUniversalApi(suiteData, account);\n\t\t\t\tfolderInfo = dciFunctions.createFolder(universalApi, suiteData, \n\t\t\t\t\t\tDCIConstants.DCI_FOLDER+uniqueId);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLogger.info(\"Issue with Create Folder Operation \" + ex.getLocalizedMessage());\n\t\t}\n\t}", "@Test\n public void testHasDirectory() {\n FileTree myTree = new FileTree();\n String[] file = {\"file1\"};\n try {\n myTree.mkdir(file);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 already exists or the path is invalid.\");\n }\n assertTrue(myTree.hasDirectory(\"file1\"));\n }", "public static boolean createDirectoryAtPath(String path){\n \t\tFile folder = new File(path);\n \t\tif( !folder.exists() ){\n \t\t\tfolder.mkdirs();\n \t\t}\n \t\treturn true;\n \t}", "public static void createFolder(File folder) {\n\tif (!folder.exists()) {\n\t folder.mkdirs();\n\t}\n }", "public boolean makeDirectory(){\n File root = new File(Environment.getExternalStorageDirectory(),\"OQPS\");\n if(!root.exists()){\n return root.mkdir();\n }\n return true; //folder already exists\n }", "private static void doCreateDir() {\n String newDir = \"new_dir\";\n boolean success = (new File(newDir)).mkdir();\n\n if (success) {\n System.out.println(\"Successfully created directory: \" + newDir);\n } else {\n System.out.println(\"Failed to create directory: \" + newDir);\n }\n\n // Create a directory; all non-existent ancestor directories are\n // automatically created.\n newDir = \"c:/export/home/jeffreyh/new_dir1/new_dir2/new_dir3\";\n success = (new File(newDir)).mkdirs();\n\n if (success) {\n System.out.println(\"Successfully created directory: \" + newDir);\n } else {\n System.out.println(\"Failed to create directory: \" + newDir);\n }\n\n }", "private Path initFolder(String folder) throws IOException {\n return Files.createDirectory(Paths.get(uploadFolder + \"/\" + folder));\n }", "private void makeFolders( final File directoryToCreate )\n throws MojoExecutionException\n {\n this.logger.debug( \"Creating folder '\" + directoryToCreate.getAbsolutePath() + \"' ...\" );\n if ( directoryToCreate.mkdirs() == false )\n {\n throw new MojoExecutionException( \"Could not create folder '\" + directoryToCreate.getAbsolutePath() + \"'!\" );\n }\n }", "@Test\n public void testMakeFileFileExists() {\n FileTree myTree = new FileTree();\n String file = \"file1\";\n boolean result = false;\n try {\n myTree.makeFile(file);\n myTree.makeFile(file);\n } catch (NotDirectoryException | AlreadyExistException e) {\n result = true;\n }\n assertTrue(result);\n\n }", "private static void createTempFolder(String folderName) throws IOException {\n Path tempFolderPath = Paths.get(folderName);\n if (Files.notExists(tempFolderPath) || !Files.isDirectory(tempFolderPath)) {\n Files.createDirectory(tempFolderPath);\n }\n }", "public static void insurePathToFileExists(File f) {\r\n File p = f.getParentFile();\r\n //System.out.println(\"uu.iPE: parent of \"+filename+\" is \"+parent);\r\n\r\n if (!p.exists()) {\r\n // parent doesn't exist, create it:\r\n if (!p.mkdirs()) {\r\n throw new IllegalStateException(\"Unable to make directory \" + p.getPath());\r\n } // endif -- second mkdir unsuc\r\n } // endif -- parent exists\r\n }", "private static void createParents(String path) {\n\n File file = new File(path);\n if (!file.exists()) {\n file.mkdirs();\n }\n }", "public void make_folder(String folder) throws Exception{\n\t\tFile file = new File(folder);\n\t\tfile.mkdirs();\n\t}", "private File createDirectoryIfNotExisting( String dirName ) throws HarvesterIOException\n {\n \tFile path = FileHandler.getFile( dirName );\n \tif ( !path.exists() )\n \t{\n \t log.info( String.format( \"Creating directory: %s\", dirName ) );\n \t // create path:\n \t if ( !path.mkdir() )\n \t {\n \t\tString errMsg = String.format( \"Could not create necessary directory: %s\", dirName );\n \t\tlog.error( errMsg );\n \t\tthrow new HarvesterIOException( errMsg );\n \t }\n \t}\n \t\n \treturn path;\n }", "@Override\n public synchronized boolean create(Path file)\n {\n File f = file.toFile(root);\n if (file.isRoot()) {\n return false;\n }\n File parent = file.parent().toFile(root);\n parent.mkdirs();\n\n try {\n return f.createNewFile();\n } catch (IOException e) {\n \te.printStackTrace();\n return false;\n }\n }", "private void checkRootFolder() throws TBException {\r\n\t\tFile f = new File(rootTBFolder);\r\n\t\tif(!f.exists()) {\r\n\t\t\tf.mkdir();\r\n\t\t\tf = new File(AppUtil.createFilePath(new String[]{rootTBFolder, COMPUTED_FILES_FOLDER_NM}));\r\n\t\t\tf.mkdir();\r\n\t\t}\t\r\n\t}", "@Test\n public void testMkdirOneDirectoryRelativePathOneDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"directory1\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 already exists or the path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1\"), true);\n }", "@Test\n public void testMkdirOneDirectoryAbsolutePathOneDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"/directory1\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 already exists or the path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1\"), true);\n }", "public boolean create(String path,String fileName) {\n\t\tpath = path + \"/\" + fileName;\n\n\t\tboolean success = true;\n\t\ttry{\n\t\t\tsuccess = (new File(path)).mkdirs();\n\t\t\tSystem.out.println(success);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn success;\n\n\t}", "public static void mkdir(String path) {\n File directory = new File(path);\n if (directory.exists())\n return;\n directory.mkdir();\n }", "public File createNewFolder(File paramFile) throws IOException {\n/* 803 */ if (paramFile == null) {\n/* 804 */ throw new IOException(\"Containing directory is null:\");\n/* */ }\n/* */ \n/* 807 */ File file = createFileObject(paramFile, newFolderString);\n/* */ \n/* 809 */ if (file.exists()) {\n/* 810 */ throw new IOException(\"Directory already exists:\" + file.getAbsolutePath());\n/* */ }\n/* 812 */ file.mkdirs();\n/* */ \n/* */ \n/* 815 */ return file;\n/* */ }", "public void createFolder(View view) {\n if (mDriveServiceHelper != null) {\n\n // check folder present or not\n mDriveServiceHelper.isFolderPresent()\n .addOnSuccessListener(new OnSuccessListener<String>() {\n @Override\n public void onSuccess(String id) {\n if (id.isEmpty()){\n mDriveServiceHelper.createFolder()\n .addOnSuccessListener(new OnSuccessListener<String>() {\n @Override\n public void onSuccess(String fileId) {\n Log.e(TAG, \"folder id: \"+fileId );\n folderId=fileId;\n showMessage(\"Folder Created with id: \"+fileId);\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception exception) {\n showMessage(\"Couldn't create file.\");\n Log.e(TAG, \"Couldn't create file.\", exception);\n }\n });\n }else {\n folderId=id;\n showMessage(\"Folder already present\");\n }\n\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception exception) {\n showMessage(\"Couldn't create file..\");\n Log.e(TAG, \"Couldn't create file..\", exception);\n }\n });\n }\n }", "public void createDirectory() {\r\n\t\tpath = env.getProperty(\"resources\") + \"/\" + Year.now().getValue() + \"/\";\r\n\t\tFile file = new File(path);\r\n\t\tif (!file.exists())\r\n\t\t\tfile.mkdirs();\r\n\t}", "public void handleMissingDirectory(String path_string) throws PersistBlobException {\n\t\tPath path = Paths.get(path_string);\n\t\tSet<PosixFilePermission> perms = PosixFilePermissions.fromString(directoryPerms);\n\t\tFileAttribute<Set<PosixFilePermission>> attr =\tPosixFilePermissions.asFileAttribute(perms);\n\t\ttry {\n\t\t\tFiles.createDirectories(path, attr);\n\t\t} catch (IOException e) {\n\t\t\tthrow new PersistBlobException(\"Unable to create path: [\"+path+\"]\",e);\n\t\t}\n\t\tlog.info(\"PersistBlobImpl: created directory: {}\",path_string);\n\t}", "public static void CreateFolder(String folderName, String path){\n File file = new File(path+ \"/\" + folderName);\n file.mkdirs ();\n }", "private void checkDirectory(File directory) throws MojoExecutionException\n {\n if (!directory.exists())\n {\n if (!directory.mkdirs())\n {\n throw new MojoExecutionException(\n String.format(\"Failed to create directory '%s'\", directory));\n }\n }\n }", "@BeforeEach\n void before() {\n if (Files.notExists(path)) path.toFile().mkdirs();\n }", "@Test\n\tpublic void Directories() {\n\t\t\n\t\tString dirs = \"test/one/two/\";\n\t\tFile d = new File(dirs);\n\t\td.mkdirs();\n\t\tAssert.assertTrue(d.exists());\n\t\t\n\t\t//Cleanup\n\t\tif(d.delete()) {\n\t\t\td = new File(\"test/one\");\n\t\t\tif(d.delete()) {\n\t\t\t\td = new File(\"test\");\n\t\t\t\td.delete();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public boolean createFolderInServerDir(String FolderName){\r\n File file = new File(serversDir, FolderName);\r\n if(file.exists()){\r\n Toast.makeText(mContext, \"server already exist\", Toast.LENGTH_SHORT).show();\r\n return false;\r\n }else{\r\n file.mkdirs();\r\n updateServerList();\r\n return true;\r\n }\r\n }", "public OutputResponse mkdir(String path){\n String command = \"mkdir \" + path;\n return jobTarget.runCommand( command );\n }", "public static boolean createDirIfNotExists(String path, SourceType sourceType) throws IOException {\n return getFileSystemBySourceType(sourceType).mkdirs(new Path(path));\n }", "@Test\n public void testMkdirOneDirectoryAbsolutePathMultipleDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"/directory1\", \"/directory1/subDirectory1\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"A already exists or a path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1/subDirectory1\"), true);\n }", "public void createFolder (String folderName, long parentFolderId, Long userId) throws BookMarkException;", "protected void createDirectory(Path path, Path destPath) {\n String rootLocation = destPath.toString();\n int index;\n if(firstTime) {\n firstTime = false;\n index = path.toFile().getPath().lastIndexOf(\"\\\\\")+1;//index where cur directory name starts\n rootFolder = path.toFile().getPath().substring(index);\n }\n else {\n index = path.toFile().getPath().indexOf(rootFolder);\n }\n\n String folderName= path.toFile().getPath().substring(index);\n Path newDirPath = Paths.get(rootLocation + DOUBLE_BKW_SLASH +folderName);\n try {\n Path newDir = Files.createDirectory(newDirPath);\n } catch(FileAlreadyExistsException e){\n // the directory already exists.\n e.printStackTrace();\n } catch (IOException e) {\n //something else went wrong\n e.printStackTrace();\n }\n }", "public static boolean create(String dirName)\r\n {\r\n Path p = Paths.get(dirName);\r\n if (Files.notExists(p))\r\n {\r\n try\r\n {\r\n Files.createDirectory(p);\r\n } catch (Exception ex)\r\n {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "private static void checkHistoryDirectory()\n throws FileNotFoundException {\n Path path = Paths.get(HISTORY_FILE_PATH); //creates Path instance\n try {\n Files.createDirectories(Paths.get(DIRECTORY));\n Files.createFile(path); //creates file at specified location\n } catch (IOException e) {\n readHistoryData();\n }\n }", "protected void checkUploadFolderExists(File uploadFolder) {\n\n\t\tboolean folderExists = uploadFolder.exists();\n\t\t// log.error(\"Could not check whether target directory {\" + uploadFolder.getAbsolutePath() + \"} exists.\", error);\n\t\t// throw error(BAD_REQUEST, \"node_error_upload_failed\", error);\n\n\t\tif (!folderExists) {\n\t\t\tuploadFolder.mkdirs();\n\n\t\t\t// log.error(\"Failed to create target folder {\" + uploadFolder.getAbsolutePath() + \"}\", error);\n\t\t\t// throw error(BAD_REQUEST, \"node_error_upload_failed\", error);\n\n\t\t\tif (log.isDebugEnabled()) {\n\t\t\t\tlog.debug(\"Created folder {\" + uploadFolder.getAbsolutePath() + \"}\");\n\t\t\t}\n\t\t}\n\n\t}", "public void createDir(File file) {\n if (!file.exists()) {\n file.mkdir();\n }\n }", "@Test\n public void testNewFolder() {\n boolean result = instance.newFolder(mailboxID + File.separator + \"newFolder\");\n assertEquals(true, result);\n }", "protected void ensureExistence() {\n if (folder.exists()) return;\n\n Base.showWarning(_(\"Sketch Disappeared\"),\n _(\"The sketch folder has disappeared.\\n \" +\n \"Will attempt to re-save in the same location,\\n\" +\n \"but anything besides the code will be lost.\"), null);\n try {\n folder.mkdirs();\n modified = true;\n\n for (int i = 0; i < codeCount; i++) {\n code[i].save(); // this will force a save\n }\n calcModified();\n\n } catch (Exception e) {\n Base.showWarning(_(\"Could not re-save sketch\"),\n _(\"Could not properly re-save the sketch. \" +\n \"You may be in trouble at this point,\\n\" +\n \"and it might be time to copy and paste \" +\n \"your code to another text editor.\"), e);\n }\n }", "public void createDir(File file){\n\t\tif (!file.exists()) {\n\t\t\tif (file.mkdir()) {\n\t\t\t\tlogger.debug(\"Directory is created!\");\n\t\t\t} else {\n\t\t\t\tlogger.debug(\"Failed to create directory!\");\n\t\t\t}\n\t\t}\n\t}", "private void createLocalFolder(File newFolder) {\n\n if (!newFolder.exists()) {\n newFolder.mkdirs();\n //TODO: what if the folder can't be created?\n PieLogger.trace(this.getClass(), \"Folder created!\");\n } else {\n PieLogger.debug(this.getClass(), \"Folder exits already?!\");\n }\n }", "@Test\n public void testMkdirMultipleDirectoriesRelativePathOneDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"directory1\", \"directory2\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 or directory2 already exists or the path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1\"), true);\n assertEquals(myTree.hasDirectory(\"/directory2\"), true);\n }", "public abstract boolean canCreate(FolderType type);", "@Test\n public void testMkdirOneDirectoryRelativePathMultipleDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"directory1\", \"directory1/subDirectory1\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"A already exists or a path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1/subDirectory1\"), true);\n }", "private static void checkFridgeDataDirectory() throws FileNotFoundException, InvalidDateException,\n InvalidQuantityException, EmptyDescriptionException,\n RepetitiveFoodIdentifierException, InvalidFoodCategoryException, InvalidFoodLocationException {\n Path path = Paths.get(DATA_FILE_PATH); //creates Path instance\n try {\n Files.createDirectories(Paths.get(DIRECTORY));\n Files.createFile(path); //creates file at specified location\n } catch (IOException e) {\n readFridgeData();\n }\n }", "@Test\n public void testFileInDirectoryFileExists() {\n\n File file1 = new File(\"file1\");\n parent.storeFile(file1);\n assertTrue(parent.fileInDirectory(\"file1\"));\n }", "private void createFolder(String name, String path, Long id) {\n VMDirectory newDir = new VMDirectory();\n newDir.setName(name);\n editResourceService.createDir(id, name, new AsyncCallback<Long>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.say(caught.getMessage());\n }\n\n @Override\n public void onSuccess(Long result) {\n createCallbackFile(fileTreeNodeFactory.findTreeNode(tree, id), newDir, result, true);\n folderPath_idMap.put(path, result);\n fileTreeNodeFactory.refresh(editorTabSet, tree, tabRegs);\n treeGrid.sort();\n treeGrid.redraw();\n }\n });\n }", "public boolean createDir(String userName) {\n\t\tString path = userName;\n\n\t\tboolean success = true;\n\t\ttry{\n\t\t\tsuccess = (new File(path)).mkdirs();\n\t\t\tSystem.out.println(success);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn success;\n\n\t}", "@Test\n public void testMkdirMultipleDirectoriesAbsolutePathOneDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"/directory1\", \"/directory2\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 or directory2 already exists or the path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1\"), true);\n assertEquals(myTree.hasDirectory(\"/directory2\"), true);\n }", "public static void createDir(String path) {\n File dir = new File(new File(path).getParentFile().getAbsolutePath());\n dir.mkdirs();\n }", "private void makeFolder(File folderNameFile) {\n\t\tfolderNameFile.mkdir();\n\t}", "private static void checkPath(String path) {\n Objects.requireNonNull(path);\n Path file = new File(path).toPath();\n boolean exists = Files.exists(file); // Check if the file exists\n boolean isDirectory = Files.isDirectory(file); // Check if it's a directory\n if (!exists || !isDirectory)\n throw new IllegalArgumentException(path + \" must be exist and a directory\");\n }", "public static boolean createRootdir(String parentPath, String name) {\n File dir = new File(parentPath + File.separator + name);\n if (dir.exists())\n return false;\n\n try {\n if (!readReadWriteFile())\n RootTools.remount(parentPath, \"rw\");\n\n execute(\"mkdir \" + getCommandLineString(dir.getAbsolutePath()));\n return true;\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return false;\n }", "private void createDirectoryIfNeeded(String directoryName)\n\t{\n\t\tFile theDir = new File(directoryName);\n\n\t\t// if the directory does not exist, create it\n\t\tif (!theDir.exists())\n\t\t{\n\t\t\t//System.out.println(\"creating directory: \" + directoryName);\n\t\t\ttheDir.mkdir();\n\t\t}\n\t}", "@Test\n public void testHasFileTrue() {\n FileTree myTree = new FileTree();\n String file = \"file1\";\n try {\n myTree.makeFile(file);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 already exists or the path is invalid.\");\n }\n assertTrue(myTree.hasFile(file));\n }", "@Override\n\tpublic void createFolder(String bucketName, String folderName) {\n\t\t\n\t}", "@Test\n public void testMkdirMultipleDirectoriesOneDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"directory1\", \"/directory2\", \"directory3\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"Directory 1 or 2 already exists or the path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1\"), true);\n assertEquals(myTree.hasDirectory(\"/directory2\"), true);\n assertEquals(myTree.hasDirectory(\"/directory3\"), true);\n }", "private FilePath ensureWorkspaceExists(WorkflowJob job) throws Exception {\n FilePath path = remote.getWorkspaceFor(job);\n path.mkdirs();\n return path;\n }", "public OutputResponse mkdirs(String path){\n String command = \"mkdir -p \" + path;\n return jobTarget.runCommand( command);\n }", "private void createDirectories()\r\n\t{\r\n\t\t// TODO: Do some checks here\r\n\t\tFile toCreate = new File(Lunar.OUT_DIR + Lunar.PIXEL_DIR\r\n\t\t\t\t\t\t\t\t\t+ Lunar.PROCESSED_DIR);\r\n\t\ttoCreate.mkdirs();\r\n\t\ttoCreate = null;\r\n\t\ttoCreate = new File(Lunar.OUT_DIR + Lunar.ROW_DIR + Lunar.PROCESSED_DIR);\r\n\t\ttoCreate.mkdirs();\r\n\t\ttoCreate = null;\r\n\t}", "@SuppressWarnings(\"null\")\n protected final @NotNull Resource ensureResourceExists(@NotNull String path) {\n if (StringUtils.isEmpty(path) || StringUtils.equals(path, \"/\")) {\n return resourceResolver.getResource(\"/\");\n }\n Resource resource = resourceResolver.getResource(path);\n if (resource != null) {\n return resource;\n }\n String parentPath = ResourceUtil.getParent(path);\n if (parentPath == null) {\n throw new IllegalArgumentException(\"Path has no parent: \" + path);\n }\n String name = ResourceUtil.getName(path);\n Resource parentResource = ensureResourceExists(parentPath);\n try {\n resource = resourceResolver.create(parentResource, name,\n ImmutableValueMap.of(JcrConstants.JCR_PRIMARYTYPE, JcrConstants.NT_UNSTRUCTURED));\n resourceResolver.commit();\n return resource;\n } catch (PersistenceException ex) {\n throw new RuntimeException(\"Unable to create resource at \" + path, ex);\n }\n }", "public void createSubDirCameraTaken() {\n\t\tFile f = new File(getPFCameraTakenPath());\n\t\tf.mkdirs();\n\t}", "@Test(expected = ConstraintViolationException.class)\n\t@Rollback(true)\n\tpublic void createFolderWithInvalidNameNegativeTest() {\n\t\tauthenticate(\"agent2\");\n\t\tFolderForm folderFormAux = new FolderForm();\n\t\tfolderFormAux.setName(\"\");\n\t\tFolder folder = folderService.reconstruct(folderFormAux,0);\n\t\tfolderService.save(folder);\n\t\tunauthenticate();\t\n\t}", "public static void createDirectories() \r\n\t{\r\n\t\tif(!fCertificatesDir().exists()) \r\n\t\t{\r\n\t\t\tfCertificatesDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fDbDir().exists()) \r\n\t\t{\r\n\t\t\tfDbDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fMibsDir().exists())\r\n\t\t{\r\n\t\t\tfMibsDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fMibsBinaryDir().exists()) \r\n\t\t{\r\n\t\t\tfMibsBinaryDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fMibsTextDir().exists()) \r\n\t\t{\r\n\t\t\tfMibsTextDir().mkdir();\r\n\t\t}\r\n\t}", "private void setUpDirectories() {\r\n\t\tFile creation = new File(\"Creations\");\r\n\t\tFile audio = new File(\"Audio\");\r\n\t\tFile quiz = new File(\"Quiz\");\r\n\t\tFile temp = new File(\"Temp\");\r\n\r\n\t\tif (!creation.isDirectory()) {\r\n\t\t\tcreation.mkdir();\r\n\t\t}\r\n\t\tif (!audio.isDirectory()) {\r\n\t\t\taudio.mkdir();\r\n\t\t}\r\n\t\tif (!quiz.isDirectory()) {\r\n\t\t\tquiz.mkdir();\r\n\t\t}\r\n\t\tif (!temp.isDirectory()) {\r\n\t\t\ttemp.mkdir();\r\n\t\t}\r\n\r\n\t}", "@SuppressWarnings(\"unused\")\n\tpublic boolean mkdir(final Uri folder)\n\t\t\tthrows WritePermissionException\n\t{\n\t\tUsefulDocumentFile document = getDocumentFile(folder, true, true);\n\t\tif (document == null)\n\t\t\treturn false;\n\t\t// getLollipopDocument implicitly creates the directory.\n\t\treturn document.exists();\n\t}", "public abstract boolean create(FolderType type) throws MessagingException;", "public boolean mkdir(final File folder)\n\t\t\tthrows WritePermissionException\n\t{\n\t\tif (folder.exists()) {\n\t\t\t// nothing to create.\n\t\t\treturn folder.isDirectory();\n\t\t}\n\n\t\t// Try the normal way\n\t\tif (folder.mkdir()) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Try with Storage Access Framework.\n\t\tif (Util.hasLollipop()) {\n\t\t\tUsefulDocumentFile document = getDocumentFile(folder, true, true);\n\t\t\tif (document == null)\n\t\t\t\treturn false;\n\t\t\t// getLollipopDocument implicitly creates the directory.\n\t\t\treturn document.exists();\n\t\t}\n\n\t\treturn false;\n\t}", "private void createScratchDirectory(Path rootpath) {\n\t\tprintMsg(\"running createScratchDirectory() in \\\"\" + this.getClass().getName() + \"\\\" class.\");\n\t\t\n\t\tif (Files.isDirectory(rootpath)) {\n\t\t\tprintMsg(\"The \" + theRootPath + \" exists...\");\n\t\t} else {\n\t\t\tprintMsg(\"Creating \" + theRootPath);\n\t\t\ttry {\n\t\t\t\tFiles.createDirectories(rootpath);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public static void createFolder(IResource res) {\r\n \t\tif (res instanceof IFolder) {\r\n \t\t\tIFolder folder=(IFolder)res;\r\n \t\t\t\r\n \t\t\tif (folder.exists() == false) {\r\n \t\t\t\tcreateFolder(folder.getParent());\r\n \r\n \t\t\t\ttry {\r\n \t\t\t\t\tfolder.create(true, true,\r\n \t\t\t\t\t\t\tnew org.eclipse.core.runtime.NullProgressMonitor());\r\n \t\t\t\t} catch(Exception e) {\r\n \t\t\t\t\te.printStackTrace();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} else if (res.getParent() != null) {\r\n \t\t\tcreateFolder(res.getParent());\r\n \t\t}\r\n \t}", "@SuppressWarnings(\"ResultOfMethodCallIgnored\")\r\n private static void fileExists(String filepath) throws IOException {\r\n File file = new File(filepath + filePath);\r\n if (!file.exists()) {\r\n file.createNewFile();\r\n }\r\n }", "private void createDataModelFolders() {\n\n File dataFolder = new File(Environment.getExternalStorageDirectory() + \"/AGH_IM_DATA\");\n File modelFolder = new File(Environment.getExternalStorageDirectory() + \"/AGH_IM_MODEL\");\n\n boolean dataSuccess = true;\n boolean modelSuccess = true;\n if (!dataFolder.exists()) {\n try {\n dataSuccess = dataFolder.mkdirs();\n } catch (SecurityException e) {\n dataSuccess = false;\n }\n }\n\n if (!modelFolder.exists()) {\n try {\n modelSuccess = modelFolder.mkdirs();\n } catch (SecurityException e) {\n modelSuccess = false;\n }\n }\n\n String TAG = \"MainScreen\";\n if (dataSuccess) Log.d(TAG, \"Created AGH_IM_DATA folder\");\n else Log.d(TAG, \"Cannot create AGH_IM_DATA Folder\");\n if (modelSuccess) Log.d(TAG, \"Successfully created AGH_IM_MODEL folder\");\n else Log.d(TAG, \"Cannot create AGH_IM_MODEL Folder\");\n\n }", "public boolean mkdirs(String folderName){\n File f = new File(folderName);\n if (f.mkdirs()){\n return true;\n }\n return false;\n }", "public void createFolder(String path, String folderName) throws GRIDAClientException {\n\n try {\n Communication communication = getCommunication();\n communication.sendMessage(\n ExecutorConstants.COM_CREATE_FOLDER + Constants.MSG_SEP_1\n + proxyPath + Constants.MSG_SEP_1\n + Util.removeLfnFromPath(path + \"/\" + folderName));\n communication.sendEndOfMessage();\n\n communication.getMessage();\n communication.close();\n\n } catch (IOException ex) {\n throw new GRIDAClientException(ex);\n }\n }", "private static boolean checkDirectory() {\n File baseDir = new File(Environment.getExternalStorageDirectory(), \"Andevindo\");\n mImageDir = new File(baseDir.getPath() + File.separator + \"Images\");\n mVideoDir = new File(baseDir.getPath() + File.separator + \"Videos\");\n mMiscDir = new File(baseDir.getPath() + File.separator + \"Misc\");\n if (!baseDir.exists()) {\n if (!baseDir.mkdirs()) {\n\n return false;\n } else {\n\n\n if (!mImageDir.exists()) {\n if (!mImageDir.mkdirs()) {\n\n return false;\n }\n }\n\n\n if (!mVideoDir.exists()) {\n if (!mVideoDir.mkdirs()) {\n\n return false;\n }\n }\n\n\n if (!mMiscDir.exists()) {\n if (!mMiscDir.mkdirs()) {\n\n return false;\n }\n }\n\n }\n }\n return true;\n }", "private boolean initHome(File file) {\r\n\t\ttry {\r\n\t\t\tFileUtils.forceMkdir(file);\r\n\t\t\treturn true;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tlogger.error(\"Failed to initialize home directory '\" + file + \"'\", ex);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private static void createProjectsFolders() throws IOException {\n /*\n * .sagrada/\n * logs/\n */\n File logFolder = new File(Constants.Paths.LOG_FOLDER.getAbsolutePath());\n\n if (!logFolder.isDirectory() && !logFolder.mkdirs()) {\n throw new IOException(\"Could not directory structure: \" + (Constants.Paths.LOG_FOLDER.getAbsolutePath()));\n }\n }" ]
[ "0.7857454", "0.7460132", "0.73692065", "0.72508436", "0.70292336", "0.70166147", "0.70151365", "0.69963104", "0.69412214", "0.6916341", "0.689286", "0.6884099", "0.6873913", "0.6852191", "0.6775873", "0.67516756", "0.6740433", "0.6740071", "0.6729516", "0.67193687", "0.6696903", "0.6695382", "0.66896456", "0.6680489", "0.66193044", "0.66133106", "0.6587557", "0.6576408", "0.65705615", "0.65372735", "0.65362984", "0.6503471", "0.648356", "0.6458509", "0.64540184", "0.644527", "0.6443356", "0.6432445", "0.6413586", "0.64126676", "0.638922", "0.63702404", "0.63684833", "0.63663197", "0.63463026", "0.6345247", "0.63429296", "0.6342842", "0.63422066", "0.63243383", "0.6303519", "0.6288724", "0.6281665", "0.6262805", "0.6259091", "0.6243066", "0.6242774", "0.62256", "0.62225425", "0.62035716", "0.6202471", "0.6198791", "0.61698806", "0.6163147", "0.6162537", "0.6159138", "0.6152693", "0.6151635", "0.61479485", "0.61438465", "0.6140012", "0.61339605", "0.6132466", "0.61141044", "0.61134845", "0.610861", "0.6100681", "0.6072643", "0.6044794", "0.6034743", "0.6017411", "0.60065514", "0.599867", "0.5995605", "0.598816", "0.59876275", "0.5985822", "0.59793556", "0.5978969", "0.59699064", "0.59641653", "0.595456", "0.59474206", "0.5935814", "0.59260064", "0.5921107", "0.59033495", "0.58824265", "0.5875963", "0.58697397" ]
0.6415011
38
Kill all threads on web app context shutdown to avoid permgen leaks
public void onApplicationEvent(ApplicationEvent event) { if(event instanceof ContextClosedEvent) { timer.cancel(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void destroy() throws Exception\n\t{\n\t\tlog.debug(\"Shutdown threadpool\");\n\t\tpool.shutdownNow(); // disable new tasks from being submitted and interrupt running threads.\n\n\t\t// Wait briefly for tasks to respond to being cancelled\n\t\tif (!pool.awaitTermination(1, TimeUnit.SECONDS))\n\t\t{\n\t\t\tlog.error(\"Threads still running\");\n\t\t}\n\t\tsuper.destroy();\n\t\tlog.debug(\"Leaving servlet destroy\");\n\t}", "public void shutdown() {\n\t\tthreadPool.shutdown();\n\t}", "@VisibleForTesting\n void killIoThreads() {\n ioThreadPool.shutdownNow();\n }", "public void shutDown()\n\t{\n\t\tthis.threadPool.shutdown();\n\t}", "private void shutdown()\n\t\t{\n\t\tif (myChannelGroup != null)\n\t\t\t{\n\t\t\tmyChannelGroup.close();\n\t\t\t}\n\t\tif (myHttpServer != null)\n\t\t\t{\n\t\t\ttry { myHttpServer.close(); } catch (IOException exc) {}\n\t\t\t}\n\t\tmyLog.log (\"Stopped\");\n\t\t}", "public static void stopEverything(){\r\n\t\tfor(final ExecutionHandler<?> execHandler:allThreads){\r\n\t\t\t//interrupt the stack execution, so that it wont be further executed \r\n\t\t\tstopExecutionHandler(execHandler);\r\n\t\t}\r\n\t\t//Now when all ExecutionHandlers should already be empty, but for sure - clear all global lists explicitly\r\n\t\tallThreads.clear(); \r\n\t\tallExecutablesInProcess.clear();\r\n\t\trootBlockToThread.clear();\r\n\t}", "public static void shutdown() {\n\t\tgetSessionFactory().close();\n\t}", "private static void shutdown() {\n\t\tSystem.out.println(\"Shutting down ...\");\n\t\tpool.shutdown();\n\t\tfor (Client client : clientMap.values()) {\n\t\t\tclient.cleanup();\n\t\t}\n\n\t\t// wait until all threads complete\n\t\ttry {\n\t\t\tif (!pool.awaitTermination(30, TimeUnit.SECONDS)) {\n\t\t\t\tSystem.out.println(\"Force shutdown after 30 seconds ...\");\n\t\t\t\tpool.shutdownNow();\n\t\t\t\tif (!pool.awaitTermination(30, TimeUnit.SECONDS)) {\n\t\t\t\t\tSystem.out.println(\"Terminate the process.\");\n\t\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (InterruptedException e) {\n\t\t\tThread.currentThread().interrupt();\n\t\t}\n\t}", "private void terminateWorkerThreads() {\n log.info(\"Terminating worker threads..\");\n try {\n this.periodicReportingService.stopPeriodicTasks();\n this.running.set(false);\n this.logWriter.join();\n this.join();\n } catch (Exception e) {\n log.error(\"Error shutting down \", port);\n }\n }", "@Override\n\tpublic void contextDestroyed(ServletContextEvent contextEvent) {\n t.interrupt();\n\t\t\n\t}", "public void cleanShutDown () {\n shutdown = true;\n }", "public void stop() {\n executor.shutdownNow();\n\n Collection<NodeRegistrationContext> allRegistrations = nodeRegistrations.values();\n for (NodeRegistrationContext registration : allRegistrations) {\n sendUnregistrationEvent(registration.resolvedDeployment);\n }\n }", "public static void stopAllThreads() {\n SystemManager.getAllDistributors().forEach((d) -> {\n d.stopWork();\n });\n SystemManager.getAllUsers().forEach((u) -> {\n u.stopWork();\n });\n Time.stopWork();\n System.out.println(\"[Simulation is ending]\");\n stopWork = true;\n }", "public static void shutdown() {\n\t\trunning = false;\n\t\texecutor.shutdown();\n\t\tlog.info(\"### All threads shutdown requested ###\");\n\t\t\n\t\ttry {\n\t\t\tfor (int i = 0; !executor.awaitTermination(10, TimeUnit.SECONDS); i++) {\n\t\t\t\tlog.info(\"### Awaiting for pending task pool termination... ({}) ###\", i);\n\t\t\t}\n\t\t} catch (InterruptedException e) {\n\t\t\tlog.warn(\"### Exception awaiting for pending task pool termination: {} ###\", e.getMessage());\n\t\t}\n\t\t\n\t\tlog.info(\"### All threads have finished ###\");\n\t}", "private void shutdownThreads() {\n\t\tif (backupHeartbeatBroadcaster != null) {\n\t\t\tbackupHeartbeatBroadcaster.cancel();\n\t\t}\n\t\tif (activeHeartbeatTimer != null) {\n\t\t\tactiveHeartbeatTimer.cancel();\n\t\t}\n\t\tif (serverLatencyProcessorTimer != null) {\n\t\t\tserverLatencyProcessorTimer.cancel();\n\t\t}\n\t\tif (backupHeartbeatTimer != null) {\n\t\t\tbackupHeartbeatTimer.cancel();\n\t\t}\n\t\tif (reElectionTimer != null) {\n\t\t\treElectionTimer.cancel();\n\t\t}\n\t\tif (preElectionTimeoutTimer != null) {\n\t\t\tpreElectionTimeoutTimer.cancel();\n\t\t}\n\t}", "public final void destroy()\n {\n log.info(\"PerformanceData Servlet: Done shutting down!\");\n }", "public void destroy() throws Exception {\n\t\tapplicationContext = null;\r\n\t}", "protected void kill() {\n\t\tsynchronized (this) // Don't allow shutdown during startup.\n\t\t{\n\t\t\t// Only execute for the first caller.\n\t\t\tif (shutdownMutex.acquire()) {\n\t\t\t\t// Shutdown payer thread.\n\t\t\t\tpayerThread.interrupt();\n\n\t\t\t\tfor (int i = 0; i < sets.length; i++) {\n\t\t\t\t\tsets[i].kill();\n\t\t\t\t}\n\n\t\t\t\t// Shutdown the thread pools.\n\t\t\t\tproducerThreadPool.kill();\n\n\t\t\t\t// Let the GC figure the rest out.\n\t\t\t}\n\t\t}\n\t}", "public static void shutdown() {\n\t}", "@Override\n public void contextDestroyed(ServletContextEvent event) {\n closeWebApplicationContext(event.getServletContext());\n ContextCleanupListener.cleanupAttributes(event.getServletContext());\n }", "protected void stopContext () throws Exception\n {\n super.doStop();\n\n //Call the context listeners\n ServletContextEvent event = new ServletContextEvent(_scontext);\n Collections.reverse(_destroySerletContextListeners);\n MultiException ex = new MultiException();\n for (ServletContextListener listener:_destroySerletContextListeners)\n {\n try\n {\n callContextDestroyed(listener,event);\n }\n catch(Exception x)\n {\n ex.add(x);\n }\n }\n ex.ifExceptionThrow();\n }", "public void cleanDeadThreads()\n {\n\t\tSystem.gc();\n }", "@Override\n\tpublic void contextDestroyed(ServletContextEvent event)\n\t{\n\t\tlogger.debug(\"应用程序关闭,这里负责销毁所有Session\");\n\t}", "@Override\r\n\tpublic void shutdown() {\n\t\tunRigisterMBean();\r\n\t}", "@Override\n public final void contextDestroyed(final ServletContextEvent sce) {\n if (asDaemon != null) {\n asDaemon.shutdown();\n }\n\n // Unregister MySQL driver\n APIServerDaemonDB.unregisterDriver();\n\n // Notify termination\n System.out.println(\"--- APIServerDaemon Stopped ---\");\n }", "@Override\n public void contextDestroyed(ServletContextEvent sce) {\n try {\n List<JobExecutionContext> currentlyExecuting = Schedule.getScheduler().getCurrentlyExecutingJobs();\n\n for (JobExecutionContext jobExecutionContext : currentlyExecuting) {\n JobKey jobKey = jobExecutionContext.getJobDetail().getKey();\n Schedule.getScheduler().interrupt(jobKey);\n Schedule.getScheduler().deleteJob(jobKey);\n }\n } catch (SchedulerException e) {\n log.error(\"Problem Clearing Job Queue\", e);\n }\n\n try {\n Schedule.getScheduler().clear();\n Schedule.getScheduler().shutdown(false);\n } catch (SchedulerException e) {\n log.error(\"Problem shutting down scheduler\", e);\n }\n\n DB.shutdown();\n\n ClassLoader cl = Thread.currentThread().getContextClassLoader();\n // Loop through all drivers\n Enumeration<Driver> drivers = DriverManager.getDrivers();\n while (drivers.hasMoreElements()) {\n Driver driver = drivers.nextElement();\n if (driver.getClass().getClassLoader() == cl) {\n // This driver was registered by the webapp's ClassLoader, so deregister it:\n try {\n log.info(String.format(\"Deregistering JDBC driver: %s\", driver));\n DriverManager.deregisterDriver(driver);\n } catch (SQLException ex) {\n log.fatal(String.format(\"Error deregistering JDBC driver: %s\", driver), ex);\n }\n } else {\n // driver was not registered by the webapp's ClassLoader and may be in use elsewhere\n log.info(String.format(\"Not deregistering JDBC driver %s as it does not belong to this webapp's ClassLoader\", driver));\n }\n }\n }", "public void stopServers() {\n EventHandlerService.INSTANCE.reset();\n UserRegistryService.INSTANCE.reset();\n\n if ( eventDispatcher != null ) {\n eventDispatcher.shutdown();\n }\n if ( userClientDispatcher != null ) {\n userClientDispatcher.shutdown();\n }\n if ( eventDispatcherThread != null ) {\n eventDispatcherThread.interrupt();\n }\n if ( userClientDispatcherThread != null ) {\n userClientDispatcherThread.interrupt();\n }\n }", "public void shutdown() {\n \t\tfor(Expirator e : expirators) {\n\t\t\te.shutdown();\n \t\t}\n \t\texpirators.clear();\n \t}", "public void shutdown() {\n shutdown(false);\n }", "@Override\n\tpublic void contextDestroyed(ServletContextEvent arg0) {\n\t\tserverAPP.quit();\n\t}", "public synchronized void contextDestroyed(ServletContextEvent event) {\n servletContext = null;\n userOnlineCounter = 0;\n }", "void killAllApps();", "public void shutdown() {\n MultiThreadedHttpConnectionManager manager = \n (MultiThreadedHttpConnectionManager) httpClient.getHttpConnectionManager();\n manager.shutdown();\n }", "@PreDestroy\r\n\tprivate void deinit() {\n\t if ((threadPool != null) &&\r\n\t (!threadPool.isShutdown())) {\r\n\t \r\n\t threadPool.shutdown();\r\n\t threadPool = null;\r\n }\r\n\t}", "public void ShutDown()\n {\n bRunning = false;\n \n LaunchLog.Log(COMMS, LOG_NAME, \"Shut down instruction received...\");\n\n for(LaunchServerSession session : Sessions.values())\n {\n LaunchLog.Log(COMMS, LOG_NAME, \"Closing session...\");\n session.Close();\n }\n \n LaunchLog.Log(COMMS, LOG_NAME, \"...All sessions are closed.\");\n }", "private void killWebJunk()\n\t{\n\t\tLogger.i(\"Killing all webview cache.\");\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)\n\t\t{\n\t\t\tCookieManager.getInstance().removeAllCookies(null);\n\t\t\tCookieManager.getInstance().removeSessionCookies(null);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tCookieSyncManager.createInstance(Application.provider().context());\n\t\t\tCookieManager.getInstance().removeAllCookie();\n\t\t\tCookieManager.getInstance().removeSessionCookie();\n\t\t}\n\n\t\tApplication.provider().context().deleteDatabase(\"webview.db\");\n\t\tApplication.provider().context().deleteDatabase(\"webviewCookiesChromium.db.db\");\n\t}", "public void shutdown() {\n logger.info(\"Shutting down modules.\");\n for (Module module : modules) {\n module.stop();\n }\n logger.info(\"Shutting down reporters.\");\n for (Reporter reporter : reporters.values()) {\n reporter.stop();\n }\n }", "public static void clean() {\n kryoThreadLocalContext.remove();\n }", "public void stop() {\n if (isStop.compareAndSet(false, true)) {\n if (bootstrap.config().group() != null) {\n Future future = bootstrap.config().group().shutdownGracefully();\n ((io.netty.util.concurrent.Future) future).syncUninterruptibly();\n }\n for (BrpcChannelGroup channelGroup : healthyInstances) {\n channelGroup.close();\n }\n for (BrpcChannelGroup channelGroup : unhealthyInstances) {\n channelGroup.close();\n }\n if (timeoutTimer != null) {\n timeoutTimer.stop();\n }\n if (namingService != null) {\n namingService.unsubscribe(subscribeInfo);\n }\n if (healthCheckTimer != null) {\n healthCheckTimer.stop();\n }\n if (loadBalanceStrategy != null) {\n loadBalanceStrategy.destroy();\n }\n if (callbackThread != null) {\n callbackThread.shutdown();\n }\n if (threadPool != null) {\n threadPool.stop();\n }\n }\n }", "public synchronized void shutdown() {\n try {\n stop();\n } catch (Exception ex) {\n }\n \n try {\n cleanup();\n } catch (Exception ex) {\n }\n }", "void destroy() {\n \t\ttry {\r\n \t\t\tupKeep.stopRunning();\r\n \t\t} catch (InterruptedException e) {\r\n \t\t}\r\n \r\n \t\t// Kill all running processes.\r\n \t\tfor (MaximaProcess mp : pool) {\r\n \t\t\tmp.kill();\r\n \t\t}\r\n \t\tpool.clear();\r\n \r\n \t\t// Kill all used processes.\r\n \t\tfor (MaximaProcess mp : usedPool) {\r\n \t\t\tmp.kill();\r\n \t\t}\r\n \t\tusedPool.clear();\r\n \t}", "@PreDestroy\n\tpublic void destroy() {\n\t\tthis.executorService.shutdown();\n\t}", "public void shutdown() {\n for (TServer server : thriftServers) {\n server.stop();\n }\n try {\n zookeeper.shutdown();\n discovery.close();\n } catch (IOException ex) {\n //don't care\n }\n }", "private void removeDestroyTask() {\n // If we registered a JVM shutdown hook, we don't need it anymore now:\n // We've already explicitly closed the context.\n if (this.shutdownTask != null) {\n ShutdownHook.removeTask(this.shutdownTask);\n this.shutdownTask = null;\n }\n }", "@Override\n protected void shutdown() {\n super.shutdown();\n // Now perform any other shutdown tasks you need.\n // ...\n }", "@Override\n\tpublic void contextDestroyed(ServletContextEvent arg0) {\n\t\tscheduler = Executors.newSingleThreadScheduledExecutor();\n\t\tUpdateContexts command = new UpdateContexts(); \n\t\tscheduler.scheduleAtFixedRate(command, 0, 15, TimeUnit.MINUTES);\n\t}", "@Override\n\tpublic void contextDestroyed(ServletContextEvent arg0) {\n\t\ttry {\n\t\t\tlog.info(\"Initiating shutdown of StarExec.\");\n\n\t\t\tStackTraceElement[] stacktrace = Thread.currentThread().getStackTrace();\n\t\t\tString stackString = \"\";\n\t\t\tfor ( StackTraceElement element : stacktrace ) {\n\t\t\t\t// stackString += element.toString()+\"\\t\"+ClassLoader.findClass(element.getClassName()).getResource(\".class\")+\"\\n\";\n\t\t\t\tstackString += element.toString()+\"\\n\";\n\t\t\t}\n\t\t\tlog.debug( \"\\n\\ncontextDestroyed() stackString:\\n\"+stackString+\"\\n\" );\n\n\t\t\tlog.debug( \"\\n\\nServletContext info:\\ngetInitParameterNames(): \"+arg0.getServletContext().getInitParameterNames()+\n\t\t\t\t\t\"\\ntoString(): \"+arg0.toString()+\"\\n\" );\n\n\n\n\t\t\t// Stop the task scheduler since it freezes in an unorderly shutdown...\n\t\t\tlog.debug(\"Stopping starexec task scheduler...\");\n\t\t\ttaskScheduler.shutdown();\n\n\t\t\t// Save cached Analytics events to DB\n\t\t\tAnalytics.saveToDB();\n\n\t\t\t// Make sure to clean up database resources\n\t\t\tlog.debug(\"Releasing database connections...\");\n\t\t\tCommon.release();\n\n\t\t\tlog.debug(\"Releasing Util threadpool...\");\n\t\t\tUtil.shutdownThreadPool();\n\n\t\t\tR.BACKEND.destroyIf();\n\t\t\t// Wait for the task scheduler to finish\n\t\t\ttaskScheduler.awaitTermination(10, TimeUnit.SECONDS);\n\t\t\ttaskScheduler.shutdownNow();\n\t\t\tlog.info(\"The task scheduler reports it was \" + (taskScheduler.isTerminated() ? \"\" : \"not \") +\n\t\t\t \"terminated successfully.\");\n\t\t\tlog.info(\"StarExec successfully shutdown\");\n\t\t} catch (Exception e) {\n\t\t\tlog.error(e.getMessage(), e);\n\t\t\tlog.error(\"StarExec unclean shutdown\");\n\t\t}\n\t}", "public static void shutdown()\n\t{\n\t\tinstance = null;\n\t}", "@GetMapping(\"/logout/context\")\n\tpublic void shutdownContext() {\n\t\t((ConfigurableApplicationContext) context).close();\n\n\t}", "public void shutdown() {\n/* 188 */ this.shutdown = true;\n/* */ }", "public abstract void stopThreadsAtSafePoint();", "private void registerShutdownHook() {\n Runtime.getRuntime().addShutdownHook(new Thread(\"Metastore Janitor Shutdown Hook\"){\n\n @Override\n public void run() {\n log.info(\"Shutting down all threads\");\n \n synchronized(tasks) {\n for(AbstractDynamoDBTask task : tasks) {\n task.running = false;\n }\n }\n \n synchronized(futures) {\n for(Future future: futures) {\n try {\n future.get();\n } catch (Exception ex) {\n log.error(\"\",ex);\n }\n }\n }\n \n executor.shutdown();\n }\n \n });\n }", "@Override\r\n\tpublic void destroy() {\r\n\t\tsuper.destroy();\r\n\t\ttry {\r\n\t\t\tspringContext.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.warn(e);\r\n\t\t}\r\n\t}", "public void closePool() {\n threadPool.destroy();\n }", "public void Shutdown()\n {\n eventLoopGroup.shutdownGracefully();\n }", "protected void killUselessThread() {\n if (!System.getProperty(\"os.name\").contains(\"Windows\")) {\n killAllChildrenProcess();\n for (Thread thread : Thread.getAllStackTraces().keySet()) {\n if (!threadSet.contains(thread)) {\n thread.interrupt();\n }\n }\n }\n }", "public void abnormalShutDown() {\n\t}", "public void stop() {\n\t\tif (this.isRunning() && !this.isManagedExternally) {\n\t\t\ttry {\n\t\t\t\tHTTP.release(this.http.get(this.shutdown));\n\t\t\t} catch (IOException exception) {\n\t\t\t\tthis.processRunner.abort();\n\t\t\t}\n\n\t\t\tthis.isManagedExternally = null;\n\t\t}\n\t}", "public void shutdown() {\n // no-op\n }", "public void shutdown() {\n this.dontStop = false;\n }", "protected void shutdown()\n throws SwiftletException {\n if (config == null)\n return;\n if (traceSpace.enabled) traceSpace.trace(getName(), \"shutdown ...\");\n rlgroups.clear();\n groups.clear();\n users.clear();\n publicRLGroup = null;\n publicGroup = null;\n authenticationOff = true;\n config = null;\n if (traceSpace.enabled) traceSpace.trace(getName(), \"shutdown: done.\");\n }", "public void stopThreads() {\n int i;\n Thread[] thGroup;\n Thread t;\n\n thGroup = new Thread[Thread.activeCount()];\n Thread.enumerate(thGroup);\n\n for (i = 0; i < thGroup.length; i++) {\n t = thGroup[i];\n if (t != null) {\n if (t != Thread.currentThread()) {\n if (t.getName().startsWith(\"Thread\"))\n t.stop();\n else if (t.getName().startsWith(\"AWT-EventQueue\"))\n t.stop();\n }\n }\n }\n\n thGroup = null;\n\n System.gc();\n }", "@Override\n public final void preTearDown() throws Exception {\n Invoke.invokeInEveryVM(() -> ConcurrentIndexUpdateWithoutWLDUnitTest.destroyRegions());\n Invoke.invokeInEveryVM(CacheTestCase::closeCache);\n }", "public void shutdown() {\n _udpServer.stop();\n _registrationTimer.cancel();\n _registrationTimer.purge();\n }", "public void run() {\n Launcher.destroyAll();\n }", "public static void shutdown() {\n\t\t// Ignore\n\t}", "private static void kill() {\n if (redirectErr != null) {\n redirectErr.close();\n redirectErr.interrupt();\n redirectErr = null;\n }\n\n if (redirectOut != null) {\n redirectOut.close();\n redirectOut.interrupt();\n redirectOut = null;\n }\n\n if (JVM != null) {\n JVM.destroy();\n JVM = null;\n }\n\n JVMrunning = false;\n\n println(\"JVM reset on \" + java.util.Calendar.getInstance().getTime().toString(), progErr);\n }", "@Override\n protected void tearDown() throws Exception {\n shutdown.set(true);\n for (Thread t : threads) {\n t.interrupt();\n t.join();\n }\n brokerService.stop();\n }", "public void shutdownSilently() {\n shutdownSilently(true);\n }", "public void shutdown()\n {\n // todo\n }", "public void shutdown()\r\n {\r\n debug(\"shutdown() the application module\");\r\n\r\n // Shutdown all the Timers\r\n shutdownWatchListTimers();\r\n // Save Our WatchLists\r\n saveAllVectorData();\r\n // Our Container vectors need to be emptied and clear. \r\n modelVector.removeAllElements();\r\n modelVector = null;\r\n\r\n tableVector.removeAllElements();\r\n tableVector = null;\r\n\r\n // Delete any additional Historic Data that is Serialized to disk\r\n expungeAllHistoricFiles();\r\n\r\n // Shutdown the task that monitors the update tasks\r\n if ( this.monitorTask != null )\r\n {\r\n this.monitorTask.cancel();\r\n this.monitorTask = null;\r\n }\r\n // Null out any reference to this data that may be present\r\n stockData = null;\r\n debug(\"shutdown() the application module - complete\");\r\n\r\n }", "public void terminateAllCalls();", "public void shutdown() {\n // For now, do nothing\n }", "public void shutdown() {\n\t\tfinal List<Runnable> tasks = updater.shutdownNow();\n\t\tif (null == tasks) return;\n\t\tfor (final Runnable t : tasks)\n\t\t\tt.run();\n\t}", "public static void shutdown() {\n if(registry != null)\n StandardServiceRegistryBuilder.destroy(registry);\n }", "protected void stopAll() {\n\t\tif (this.udpServer!=null)\n\t\t\tthis.udpServer.interrupt();\n\t\tif (this.connectionServer!=null)\n\t\t\tthis.connectionServer.interrupt();\n\t\tthis.connectionServer=null; // supprime le TCPServer et les Sockets associés\n\t\tthis.udpServer=null; // supprime l'UDPServer et les Sockets associés\n\t\tif (this.agent.getUserStatusManager()!=null)\n\t\t\tfor (String u : this.agent.getUserStatusManager().getActiveUsers())\n\t\t\t\tthis.removeSocket(u);; // interrompt tous les UserSockets\n\t\tthis.mapSockets.clear();\n\t}", "public void terminate () {\n for (int i=0; i<threads; i++) {\n servers[i].terminate ();\n }\n }", "public void shutdown() {\r\n System.exit(0);\r\n }", "public void shutdown() {\n for (Connection connection : connections) { //Try closing all connections\n closeConnection(connection);\n }\n }", "protected void shutdown() {\n\r\n }", "public void shutdown();", "public void shutdown();", "public void shutdown();", "public void shutdown();", "public void shutdown() {\n drivers.stream().filter(ClosingAwareWebDriver::isAlive)\n .forEach(ClosingAwareWebDriver::forceShutdown);\n }", "public void shutdown() {\n try {\n infoServer.stop();\n } catch (Exception e) {\n }\n this.shouldRun = false;\n ((DataXceiveServer) this.dataXceiveServer.getRunnable()).kill();\n try {\n this.storage.closeAll();\n } catch (IOException ie) {\n }\n }", "public void shutdown() {\n }", "public void environmentStop(EnvironmentClassLoader loader)\n {\n forceClose();\n }", "@Override\n\tpublic void contextDestroyed(ServletContextEvent arg0) {\n\t\tConnectionDB.destroy();\n\t}", "public static void shutdown() {\n logger.warn(\"Attempting to shut down scheduled LRU cache tasks ...\");\n scheduler.shutdown();\n try {\n if (! scheduler.awaitTermination(1000, TimeUnit.MILLISECONDS)) {\n logger.warn(\"Attempting to force shut down scheduled LRU cache tasks ...\");\n scheduler.shutdownNow();\n }\n } catch (InterruptedException e) {\n logger.warn(\"Exception shutting down tasks ... \" + e.getMessage());\n }\n }", "public void destroyOsgi();", "public void shutdown() {\n\t\t\n\t}", "@Override\n public void close() throws Exception {\n\n socketAcceptor.close();\n rmiAcceptor.close();\n connectedViews.clear();\n\n synchronized (threadPool) {\n threadPool.shutdown();\n }\n while (!threadPool.awaitTermination(5, TimeUnit.SECONDS)) {\n logger.warning(\"Thread pool hasn't shut down yet, waiting...\");\n }\n }", "@AfterClass\n public static void teardown() {\n app = null;\n\n }", "public final void stopAll() {\n for (BotTaskInterface bt : TASKS) {\n LOG.info(\"Stoping BotTask {}\", bt.getName());\n bt.stop();\n }\n EXECUTOR_SERVICE.shutdown();\n }", "public void shutDown() {\n collector.removePool(this);\n factory.poolClosing(this);\n\n // close all objects\n synchronized (objects) {\n for (Iterator it = objects.values().iterator(); it.hasNext();) {\n ObjectRecord rec = (ObjectRecord) it.next();\n if (null != rec) {\n if (rec.isInUse())\n factory.returnObject(rec.getClientObject());\n factory.deleteObject(rec.getObject());\n rec.close();\n }\n }\n objects.clear();\n deadObjects.clear();\n }//end of synch\n\n factory = null;\n poolName = null;\n initialized = false;\n }", "@After\n public void clearState() throws Exception {\n getTagManager().clearTagsFromMemory();\n getTagManager().removeAllListeners();\n reset(topology);\n bigDeviceManager.clearAntiSpoofingMemoryStructures();\n testDeleteWithoutHttp(\"/tag-manager\");\n if (moduleContext != null) {\n IThreadPoolService tp = \n moduleContext.getServiceImpl(IThreadPoolService.class);\n if (tp != null)\n tp.getScheduledExecutor().shutdown();\n }\n }", "public void shutdown() {\n if (configurations.isRegisterMXBeans()) {\n JmxConfigurator.get().removeMXBean(this);\n }\n configurations.shutdown();\n }", "public void shutdown() {\n /**\n * Make this thread instance null.\n */\n THREAD_INSTANCE = null;\n\n /**\n * Destroy Keep Alive Thread.\n */\n KEEP_ALIVE_THREAD.pause();\n KEEP_ALIVE_THREAD.stop();\n KEEP_ALIVE_THREAD = null;\n }", "@AfterClass\n public static void tearDownClass() {\n ApplicationSessionManager.getInstance().stopSession();\n }", "public void shutdown() {\n fsManager.getOpenFileSystems().forEach(JGitFileSystem::close);\n shutdownSSH();\n forceStopDaemon();\n fsManager.clear();\n }" ]
[ "0.6567385", "0.6400765", "0.62798697", "0.62737226", "0.6229483", "0.6222936", "0.6218712", "0.61996156", "0.61918324", "0.61088693", "0.61062664", "0.6105855", "0.6090268", "0.6078029", "0.60768884", "0.6063085", "0.60576", "0.60540366", "0.60504", "0.604648", "0.6038327", "0.6009053", "0.6005946", "0.59958017", "0.5983683", "0.59819245", "0.597941", "0.59701306", "0.59695315", "0.595021", "0.59418666", "0.5932088", "0.5928034", "0.59114665", "0.5897434", "0.58973324", "0.58922166", "0.58862174", "0.5882101", "0.5879838", "0.5876469", "0.5864083", "0.58560866", "0.5855522", "0.5854937", "0.5850143", "0.58389926", "0.58233523", "0.58122367", "0.5806846", "0.58011717", "0.58003736", "0.58003557", "0.5799278", "0.5791018", "0.57890767", "0.57826895", "0.57806253", "0.57770675", "0.5775495", "0.5768333", "0.57576054", "0.5756915", "0.5752527", "0.5747917", "0.5741935", "0.57385725", "0.5738527", "0.5732027", "0.5728696", "0.5726365", "0.5724972", "0.5720289", "0.5719729", "0.5717113", "0.57142365", "0.56981903", "0.5688512", "0.56835085", "0.5676835", "0.56741786", "0.56741786", "0.56741786", "0.56741786", "0.56620085", "0.565722", "0.5653901", "0.56486493", "0.56473976", "0.5636882", "0.5636405", "0.56303465", "0.5629094", "0.56035453", "0.56019306", "0.5594416", "0.5594083", "0.5592566", "0.5586083", "0.55815357", "0.55806035" ]
0.0
-1
Ao inserir lembrar de instanciar os filhos como nos vazios
@Override public void insert(T element) { if (element != null) { BSTNode<T> nilParent = new BSTNode<>(); //Para o caso de estarmos inserindo a raiz (que tem parent NIL) insert(this.root, element, nilParent); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void inserir(Filme obj) throws Exception {\n System.out.println(\"Salvar o objeto filme\");\r\n }", "public void criar() throws IOException {\nif (!directorio.exists()) {\n directorio.mkdir();\n System.out.println(\"Directorio criado\");\n } else {\n System.out.println(\"Directorio existe\");\n }\n if (!fileAdmin.exists()) {\n fileAdmin.createNewFile();\n System.out.println(\"file de Administrador criado com sucesso\");\n escrever(lista);\n } else {\n System.out.println(\"ficheiro existe\");\n }\n\n }", "public Archivo() {\n fos = null;\n oos = null;\n fis = null;\n ois = null;\n }", "public InventarioFile(){\r\n \r\n }", "private void insertFromFile(ArrayList<String> obj){\r\n\t\tsetIdString(obj.get(1));\t\r\n\t\tsetLogin(obj.get(2));\r\n\t\tsetSenha(obj.get(3));\r\n\t\tsetImei(obj.get(4));\r\n\t\tsetMac(obj.get(5));\r\n\t\tString date = Util.convertDateToDateStr(Util.getCurrentDateTime());\t\r\n\t\tsetUltimaAlteracao(date);\t\t\t\r\n\t}", "public void insercionMasiva() {\r\n\t\tif (!precondInsert())\r\n\t\t\treturn;\r\n\t\tUploadItem fileItem = seleccionUtilFormController.crearUploadItem(\r\n\t\t\t\tfName, uFile.length, cType, uFile);\r\n\t\ttry {\r\n\t\t\tlLineasArch = FileUtils.readLines(fileItem.getFile(), \"ISO-8859-1\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tstatusMessages.add(Severity.INFO, \"Error al subir el archivo\");\r\n\t\t}\r\n\r\n\t\tStringBuilder cadenaSalida = new StringBuilder();\r\n\t\tString estado = \"EXITO\";\r\n\t\tcantidadLineas = 0;\r\n\t\t//Ciclo para contar la cantdad de adjudicados o seleccionados que se reciben\r\n\t\tfor (String linea : lLineasArch) {\r\n\t\t\tcantidadLineas++;\r\n\t\t\tif(cantidadLineas > 1){\r\n\t\t\t\tseleccionados++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Condicion para verificar si la cantidad de seleccionados es mayor a la cantidad de vacancias (en cuyo caso se procede a abortar el proceso e imprimir\r\n\t\t//un mensaje de error) o verificar si esta es menor (se imprime el mensaje pero se continua)\r\n\t\t\r\n\t\tif(seleccionados > concursoPuestoAgrNuevo.getCantidadPuestos()){\r\n\t\t\testado = \"FRACASO\";\r\n\t\t\tcadenaSalida.append(estado + \" - CANTIDAD DE AJUDICADOS ES SUPERIOR A LA CANTIDAD DE PUESTOS VACANTES PARA EL GRUPO\");\r\n\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t}\r\n\t\telse if(seleccionados < concursoPuestoAgrNuevo.getCantidadPuestos()){\r\n\t\t\tcadenaSalida.append(\"ADVERTENCIA - CANTIDAD DE ADJUDICADOS ES INFERIOR A LA CANTIDAD DE PUESTOS VACANTES PARA EL GRUPO\");\r\n\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t}\r\n\t\tseleccionados = 0;\r\n\t\t\r\n\t\tif(!estado.equals(\"FRACASO\")){\r\n\r\n\t\tcantidadLineas = 0;\r\n\t\tfor (String linea : lLineasArch) {\r\n\r\n\t\t\tcantidadLineas++;\r\n\t\t\testado = \"EXITO\";\r\n\t\t\tString observacion = \"\";\r\n\t\t\tFilaPostulante fp = new FilaPostulante(linea);\r\n\t\t\tList<Persona> lista = null;\r\n\t\t\tif (cantidadLineas > 1 && fp != null && fp.valido) {\r\n\t\t\t\t//Verifica si la persona leida en el registro del archivo CSV existe en la Tabla Persona\r\n\t\t\t\tString sqlPersona = \"select * from general.persona where persona.documento_identidad = '\"+fp.getDocumento()+ \"'\";\r\n\t\t\t\tQuery q1 = em.createNativeQuery(sqlPersona, Persona.class);\r\n\t\t\t\tPersona personaLocal = new Persona();\r\n\t\t\t\tint banderaEncontroPersonas = 0;\r\n\t\t\t\t//Si existe, se almacena el registro de la tabla\r\n\t\t\t\tif(!q1.getResultList().isEmpty()){\r\n\t\t\t\t\tlista = q1.getResultList();\r\n\t\t\t\t\tif (compararNomApe(lista.get(0).getNombres(), removeCadenasEspeciales(fp.getNombres()))\r\n\t\t\t\t\t\t\t&& compararNomApe(lista.get(0).getApellidos(), removeCadenasEspeciales(fp.getApellidos())) ) {\r\n\t\t\t\t\t\t\tbanderaEncontroPersonas = 1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\t\t\tobservacion += \" PERSONA NO REGISTRADA EN LA BASE DE DATOS LOCAL\";\r\n\t\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\tobservacion += \" PERSONA NO REGITRADA EN LA BASE DE DATOS LOCAL\";\r\n\t\t\t\t}\r\n\t\t\t\t//Verificamos que la persona figure en la lista corta como seleccionado\r\n\t\t\t\tif(!estado.equals(\"FRACASO\")){\r\n\t\t\t\t\tint banderaExisteEnListaCorta = 0;\t\t\t\t\t\r\n\t\t\t\t\tint i=0;\r\n\t\t\t\t\tif (banderaEncontroPersonas == 1) {\r\n\t\t\t\t\t\twhile(i<lista.size()){\r\n\t\t\t\t\t\t\tpersonaLocal = (Persona) lista.get(i);\r\n\t\t\t\t\t\t\tQuery p = em.createQuery(\"select E from EvalReferencialPostulante E \"\r\n\t\t\t\t\t\t\t\t\t+ \"where E.postulacion.personaPostulante.persona.idPersona =:id_persona and E.concursoPuestoAgr.idConcursoPuestoAgr =:id_concurso_puesto_agr and E.listaCorta=:esta_en_lista_corta\");\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"id_persona\", personaLocal.getIdPersona());\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"id_concurso_puesto_agr\", this.idConcursoPuestoAgr);\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"esta_en_lista_corta\", true);\r\n\t\t\t\t\t\t\tList<EvalReferencialPostulante> listaEvalRefPost = p.getResultList();\r\n\t\t\t\t\t\t\tif (!listaEvalRefPost.isEmpty()) {\r\n\t\t\t\t\t\t\t\tbanderaExisteEnListaCorta = 1;\r\n\t\t\t\t\t\t\t\ti = lista.size();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (banderaExisteEnListaCorta == 0) {\r\n\t\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\t\tobservacion += \" NO SELECCIONADO/ELEGIBLE EN LISTA CORTA\";\r\n\t\t\t\t\t} else if (banderaExisteEnListaCorta == 1){\r\n\t\t\t\t\t\tobservacion += \" SELECCIONADO/ELEGIBLE EN LISTA CORTA\";\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tQuery p = em.createQuery(\"select E from EvalReferencialPostulante E \"\r\n\t\t\t\t\t\t\t\t+ \"where E.postulacion.personaPostulante.persona.idPersona =:id_persona and E.concursoPuestoAgr.idConcursoPuestoAgr =:id_concurso_puesto_agr and E.listaCorta=:esta_en_lista_corta\");\r\n\t\t\t\t\t\t\t\tp.setParameter(\"id_persona\", personaLocal.getIdPersona());\r\n\t\t\t\t\t\t\t\tp.setParameter(\"id_concurso_puesto_agr\", this.idConcursoPuestoAgr);\r\n\t\t\t\t\t\t\t\tp.setParameter(\"esta_en_lista_corta\", true);\r\n\t\t\t\t\t\tEvalReferencialPostulante auxEvalReferencialPostulante = (EvalReferencialPostulante) p.getResultList().get(0);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Validaciones para actualizaciones\r\n\t\t\t\t\t\t//Bandera indicadora de actualizaciones hechas\r\n\t\t\t\t\t\tint bandera = 0;\r\n\t\t\t\t\t\tif(auxEvalReferencialPostulante.getSelAdjudicado() == null){\r\n\t\t\t\t\t\t\testado = \"EXITO\";\r\n\t\t\t\t\t\t\tauxEvalReferencialPostulante.setSelAdjudicado(true);;\r\n\t\t\t\t\t\t\tbandera = 1;\r\n\t\t\t\t\t\t\tem.merge(auxEvalReferencialPostulante);\r\n\t\t\t\t\t\t\tem.flush();\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\tagregarEstadoMotivo(linea, estado, observacion, cadenaSalida);\r\n\t\t\t}\r\n\t\t\tif (cantidadLineas > 1 && !fp.valido) {\r\n\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\tcadenaSalida\r\n\t\t\t\t\t\t.append(estado\r\n\t\t\t\t\t\t\t\t+ \" - ARCHIVO INGRESADO CON MENOS CAMPOS DE LOS NECESARIOS. DATOS INCORRECTOS EN ALGUNA COLUMNA.\");\r\n\t\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t\t}\r\n\r\n\t\t\t// FIN FOR\r\n\t\t}\r\n\t\t//FIN IF\r\n\t\t}\r\n\t\tif (lLineasArch.isEmpty()) {\r\n\t\t\tstatusMessages.add(Severity.INFO, \"Archivo inválido\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tSimpleDateFormat sdf2 = new SimpleDateFormat(\"dd_MM_yyyy_HH_mm_ss\");\r\n\t\t\tString nArchivo = sdf2.format(new Date()) + \"_\" + fName;\r\n\t\t\tString direccion = System.getProperty(\"jboss.home.dir\") + System.getProperty(\"file.separator\") + \"temp\" + System.getProperty(\"file.separator\");\r\n\t\t\tFile archSalida = new File(direccion + nArchivo);\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileUtils\r\n\t\t\t\t\t\t.writeStringToFile(archSalida, cadenaSalida.toString());\r\n\t\t\t\tif (archSalida.length() > 0) {\r\n\t\t\t\t\tstatusMessages.add(Severity.INFO, \"Insercion Exitosa\");\r\n\t\t\t\t}\r\n\t\t\t\tJasperReportUtils.respondFile(archSalida, nArchivo, false,\r\n\t\t\t\t\t\t\"application/vnd.ms-excel\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tstatusMessages.add(Severity.ERROR, \"IOException\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private FSArquivo(Construtor construtor) {\n nome = construtor.nome;\n tipoMedia = construtor.tipoMedia;\n base = construtor.base;\n prefixo = construtor.prefixo;\n sufixo = construtor.sufixo;\n }", "public void leeArchivo() throws IOException {\n // defino el objeto de Entrada para tomar datos\n BufferedReader brwEntrada;\n try {\n // creo el objeto de entrada a partir de un archivo de texto\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n } catch (FileNotFoundException e) {\n // si marca error es que el archivo no existia entonces lo creo\n File filPuntos = new File(\"datos.txt\");\n PrintWriter prwSalida = new PrintWriter(filPuntos);\n // le pongo datos ficticios o de default\n // lo cierro para que se grabe lo que meti al archivo\n prwSalida.close();\n // lo vuelvo a abrir porque el objetivo es leer datos\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n }\n // con el archivo abierto leo los datos que estan guardados\n brwEntrada.close();\n }", "private void guardarComo() {\r\n\t\tJFileChooser guardar = new JFileChooser();\r\n\t\tFileNameExtensionFilter filtro = new FileNameExtensionFilter(\"obj\",\"obj\");\r\n\t\tguardar.setFileFilter(filtro);\r\n\t\tif(guardar.showSaveDialog(guardar) == JFileChooser.APPROVE_OPTION){\r\n\t\t\tGestion.setFichero(Gestion.extensionValida(guardar.getSelectedFile()));\r\n\t\t\ttry {\r\n\t\t\t\tif(!Gestion.existe(Gestion.getFichero())){\r\n\t\t\t\t\tGestion.escribir(Gestion.getFichero());\r\n\t\t\t\t\tGestion.setModificado(false);\r\n\t\t\t\t\tfrmLigaDeFtbol.setTitle(Gestion.getFichero().getName());\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tswitch(JOptionPane.showConfirmDialog(null, \"El archivo existe. Desea sobreescribirlo?\", \"Aviso\", JOptionPane.WARNING_MESSAGE)){\r\n\t\t\t\t\tcase JOptionPane.OK_OPTION:\r\n\t\t\t\t\t\tGestion.escribir(Gestion.getFichero());\r\n\t\t\t\t\t\tGestion.setModificado(false);\r\n\t\t\t\t\t\t\t\tfrmLigaDeFtbol.setTitle(Gestion.getFichero().getName());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void lesFil()\n\t{\n\t\tDATAFIL = datafil(false);\n\n\t\ttry ( ObjectInputStream innfil = new ObjectInputStream( new FileInputStream( DATAFIL ) ) )\n\t\t{\n\t\t\tbr = (Boligregister) innfil.readObject();\n\t\t\tvisMelding( \"Data er hentet fra fil.\" );\n\t\t}\n\t\tcatch(ClassNotFoundException cnfe)\n\t\t{\n\t\t\tvisMelding( \"<html>Feil:<br><br>\" + cnfe.getMessage() + \"<br><br>Oppretter tom datafil. Tar vare p&aring; gammel datafil.</html>\" );\n\t\t\ttomtRegister();\n\t\t\tDATAFIL = datafil(true);\n\t\t\tskrivTilFil(false);\n\t\t}\n\t\tcatch(FileNotFoundException fne)\n\t\t{\n\t\t\tvisMelding( \"Ingen datafil funnet. Oppretter tom datafil.\" );\n\t\t\ttomtRegister();\n\t\t\tskrivTilFil(false);\n\t\t}\n\t\tcatch(IOException ioe)\n\t\t{\n\t\t\tvisMelding( \"<html>Innlesingsfeil. Oppretter tom datafil. Tar vare p&aring; gammel datafil.</html>\" );\n\t\t\ttomtRegister();\n\t\t\tDATAFIL = datafil(true);\n\t\t\tskrivTilFil(false);\n\t\t}\n\t}", "@Override\r\n\tpublic void registerFile(FileVO fvo) {\r\n\t\tfiledao.create(fvo);\r\n\t\t\r\n\t}", "private void guardar() {\n\t\t//JFileChooser fglobal = principal.getFglobal();\n\t\tprincipal.getFglobal().setDialogTitle(ic.buscar(38)); // Tag 38\n\n\t\t\tprincipal.getFglobal().setDialogType(JFileChooser.SAVE_DIALOG);\n\n\t\tAccesorio pep = new Accesorio(principal.getFglobal(),t, principal.getIC());\n\t\tprincipal.getFglobal().setAccessory(pep);\n\t\tpep.setProfundidad(true);\n\t\t\n principal.getFglobal().resetChoosableFileFilters();\n \n ExampleFileFilter filtroT = new ExampleFileFilter (\n new String [] {\"tiff\",\n \"tif\",\n },\n ic.buscar(3)); // Tag 3\n \n\n \n\t\t\t\n ExampleFileFilter filtroJ = new ExampleFileFilter (\n new String [] {\"jpeg\",\n \"jpg\"\n },\n ic.buscar(4)); // Tag 4\n principal.getFglobal().addChoosableFileFilter(filtroT);\n principal.getFglobal().addChoosableFileFilter(filtroJ);\n\t\t\n\t\t\n\t\t\n\t\tint retval = principal.getFglobal().showDialog(t, null);\n\t\tif (retval == JFileChooser.APPROVE_OPTION) \n\t\t{\t\t\n\t\t\tFile guardar = principal.getFglobal().getSelectedFile();\n \n\t\t\tif (\tprincipal.getFglobal().getFileFilter().getDescription().equals(filtroJ.getDescription()) )\n\t\t\t{// Guardar como JPEG\n \n\t\t\t\tJAI.create(\"filestore\",imagen_original,guardar.getPath(),\"JPEG\", new JPEGEncodeParam());\n\t\t\t}\n\t\t\telse if (principal.getFglobal().getFileFilter().getDescription().equals(filtroT.getDescription()))\n\t\t\t{// Guardar como TIFF\n\t\t\t\tint profundidad = pep.getEP().getMarcada();\n\t\t\t\t// Cubre todas las posibilidades (¿esto guarda los metadatos?)\n\t\t\t\tTiledImage tiled = null;\n\t\t\t\tif (profundidad != ElegirProfundidad.OCHO)\n\t\t\t\t{\n\t\t\t\t\ttiled = \n ElegirProfundidad.crearProfundidadReducida(\n ipixel_o, \n profundidad, \n imagen_original.getWidth(), \n imagen_original.getHeight());\n\t\t\t\t}\n\n\t\t\t\t//imgGuardar = djai.getSource();\n\t\t\t\tParameterBlock pb = new ParameterBlock();\n\t\t\t\tif (profundidad != ElegirProfundidad.OCHO)\n\t\t\t\t{\n\t\t\t\t\tpb.addSource(tiled);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tpb.addSource(imagen_original);\n\t\t\t\t}\n\t\t\t\tpb.add(guardar);\n\t\t\t\tpb.add(\"TIFF\");\n\t\t\t\tpb.add(false); //UseProperties\n\t\t\t\tpb.add(false); //Transcode\n\t\t\t\tpb.add(true); //VerifyOutput\n\t\t\t\tpb.add(false); //AllowPixelReplacement\n\t\t\t\tpb.add(null); //TileSize\n\t\t\t\tpb.add(streamData);\n\t\t\t\tpb.add(imageData);\n\t \t\t\tJAI.create(\"imagewrite\", pb);\n\t\t\t\t\n\t\t\t\t//JAI.create(\"imagewrite\",tiled,guardar.getPath(),\"TIFF\");\n\t\t\t}\n\t\t\telse\n\t\t\t{// No tiene extensión o es una extensión extraña\n\t\t\t\tJAI.create(\"imagewrite\",imagen_original,guardar.getPath()+\".tif\",\"TIFF\");\n\t\t\t}\n\t\t\t\n\t\t}\t\t\t \n\t\telse \n\t\t{\n\t\t\tdibujarMensajesError(retval);\n\t\t} \n\t\t\n\t\t\n\t}", "App () throws Exception {\n timelines = new LinkedList<>();\n deleteElements = new LinkedList<>();\n file.createNewFile();\n }", "public static void insertar(plantilla p,String nombre){\n\t\ttry {\r\n \tObjectInputStream entrada=new ObjectInputStream(new FileInputStream(nombre+\".lorito\"));\r\n patronesPlantillas obj1=(patronesPlantillas)entrada.readObject();\r\n obj1.mostrarPatronesPlantillas();\r\n System.out.println(\"-----------------------------\");\r\n entrada.close();\r\n \r\n\t\tobj1.insertarPlantilla(p);\r\n \r\n \r\n ObjectOutputStream salida=new ObjectOutputStream(new FileOutputStream(obj1.nombre()+\".lorito\"));\r\n // salida.writeObject(\"guardar este string y un objeto\\n\");\r\n salida.writeObject(obj1);\r\n salida.close();\r\n \r\n entrada=new ObjectInputStream(new FileInputStream(nombre+\".lorito\"));\r\n // String str=(String)entrada.readObject();\r\n obj1=(patronesPlantillas)entrada.readObject();\r\n obj1.mostrarPatronesPlantillas();\r\n System.out.println(\"-----------------------------\");\r\n entrada.close(); \r\n \r\n }catch (Exception e) { }\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t}", "private FileManager()\n {\n bookFile.open(\"bookdata.txt\");\n hisFile.open(\"history.txt\");\n idFile.open(\"idpassword.txt\");\n createIDMap();\n createHisMap(Customer.getInstance());\n }", "public ImagenLogica(){\n this.objImagen=new Imagen();\n //Creacion de rutas\n this.creaRutaImgPerfil();\n this.crearRutaImgPublicacion();\n \n }", "private void crearCasillerosYCrearTablero(String arch) throws ExcepcionArchivos, FileNotFoundException {\n\t\tLectorEscritor le = new LectorEscritor();\n\t\tle.leerTablero(arch, this);\n\n\t}", "public BrihaspatiProFile() {\n }", "public static void guardar()\n {\n File fileUsuario,fileDocente;\n ObjectOutputStream entradaUsuario,entradaDocente;\n \n fileDocente = new File(\"docentes\"); \n fileUsuario = new File(\"usuarios\");\n \n try \n {\n \n entradaDocente = new ObjectOutputStream(new FileOutputStream(fileDocente));\n entradaUsuario = new ObjectOutputStream(new FileOutputStream(fileUsuario));\n \n entradaDocente.writeObject(docentes);\n entradaUsuario.writeObject(usuarios);\n \n entradaDocente.close();\n entradaUsuario.close();\n } \n catch (Exception e) \n {\n e.printStackTrace();\n }\n }", "public void inicializar();", "public FileIOManager(Conscientia conscientia) {\n\t\tthis.reader = new Reader(this);\n\t\tthis.writer = new Writer(this);\n\t\tthis.conscientia = conscientia;\n\t}", "public void DesSerializar() throws FileNotFoundException {\n try {\n FileInputStream archivo = new FileInputStream(\"SerializacionEdificios\");\n ObjectInputStream entrada = new ObjectInputStream(archivo);\n ArrayList<Edificio> edificiosDes = (ArrayList<Edificio>) entrada.readObject();\n archivo = new FileInputStream(\"SerializacionEstudiantes\");\n entrada = new ObjectInputStream(archivo);\n ArrayList<Estudiante> estudiantesDes = (ArrayList<Estudiante>) entrada.readObject();\n archivo = new FileInputStream(\"SerializacionProfesores\");\n entrada = new ObjectInputStream(archivo);\n ArrayList<Profesor> profesoresDes = (ArrayList<Profesor>) entrada.readObject();\n archivo = new FileInputStream(\"SerializacionAdministradores\");\n entrada = new ObjectInputStream(archivo);\n ArrayList<Administrador> administradoresDes = (ArrayList<Administrador>) entrada.readObject();\n edificios = edificiosDes;\n estudiantes = estudiantesDes;\n profesores = profesoresDes;\n administradores = administradoresDes;\n entrada.close();\n }\n catch (IOException e){\n e.printStackTrace();\n }\n catch (ClassNotFoundException e){\n e.printStackTrace();\n }\n\n\n }", "public void inserisci(NodoAlbero dove, String contenuto, String tipo){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, tipo);\n n_nodi++;\n return;\n }\n //se il nodo padre non ha un figlio, lo creiamo\n if (dove.getFiglio() == null)\n dove.setFiglio(new NodoAlbero(contenuto, dove, tipo));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = dove.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), tipo));\n }\n n_nodi++;\n }", "public static void instanciarCreencias() {\n\t\tfor(int i =0; i < GestorPartida.getContJugadores(); i++) {\n\t\t\t\n\t\t\tGestorPartida.jugadores[i].setCreencias(new Creencias(GestorPartida.jugadores, GestorPartida.objetoJugador, GestorPartida.objetoSala, i)); \n\t\t}\n\t}", "public Mapa(String ficheroMapa, String ficheroCamino) throws IOException\n{\n leerMapa(ficheroMapa);\n\n if(ficheroCamino != null)\n leerCamino(ficheroCamino);\n}", "static void inicializarentrada(){\n try {\n archivo_entrada= new FileInputStream(\"src/serializacion/salida.txt\");\n } catch (FileNotFoundException ex) {\n System.out.println(\"Error al abrir el archivo\");\n }\n \n try {\n lector= new ObjectInputStream(archivo_entrada);\n } catch (IOException ex) {\n System.out.println(\"Error al acceder al archivo\");\n }\n }", "private static void createFileUmidade() throws IOException {\r\n\t\tInteger defaultUmidade = 30;\r\n\t\tarqUmidade = new File(pathUmidade);\r\n\t\tif(!arqUmidade.exists()) {\r\n\t\t\tarqUmidade.createNewFile();\r\n\t\t\tFileWriter fw = new FileWriter(getArqUmidade());\r\n\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\tbuffWrite.append(defaultUmidade.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma umidade Inicial*/\r\n\t\t\tbuffWrite.close();\r\n\t\t}else {\r\n\t\t\tFileReader fr = new FileReader(getArqUmidade());\r\n\t\t\tBufferedReader buffRead = new BufferedReader(fr);\r\n\t\t\tif(!buffRead.ready()) {/*Se o arquivo se encontar criado mas estiver vazio*/\r\n\t\t\t\tFileWriter fw = new FileWriter(arqUmidade);\r\n\t\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\t\tbuffWrite.append(defaultUmidade.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma umidade Inicial*/\r\n\t\t\t\tbuffWrite.close();\r\n\t\t\t}\r\n\t\t\tbuffRead.close();\r\n\t\t}\r\n\t}", "public FileObject() {\n\t}", "private void cargarFichero() throws FileNotFoundException {\n\t\tFile miFichero = new File(NOMBRE_FICHERO);\n\t\tFileWriter erroresFichero;\n\t\t\n\t\tScanner in = new Scanner(miFichero);\n\t\t\n\t\tEjercicio nuevoEjer;\n\t\tString siguienteLinea;\n\t\tComprobadorEntradaFichero comprobador = new ComprobadorEntradaFichero();\n\t\tString errores = \"\";\n\t\tint numLinea = 1;\n\t\t\n\t\twhile (in.hasNextLine()) {\n\t\t\t\n\t\t\tsiguienteLinea = in.nextLine();\n\t\t\tif (comprobador.test(siguienteLinea)) {\n\t\t\t\tnuevoEjer = new Ejercicio(siguienteLinea);\n\t\t\t\tcoleccionEj.addEjercicio(nuevoEjer);\n\t\t\t} else {\n\t\t\t\t//Controlar cuántos errores va dando\n\t\t\t\terrores += \"Error en la línea: \" + String.valueOf(numLinea) + \". Datos: \" + siguienteLinea + \"\\n\";\n\t\t\t}\n\t\t\tnumLinea++;\n\t\t}\n\t\t\n\t\tin.close();\n\t\t\n\t\t\n\t\t//Ahora escribimos \n\t\tif (errores != \"\") {\n\t\t\ttry {\n\t\t\t erroresFichero = new FileWriter(NOMBRE_FICHERO_ERRORES);\n\t\t\n\t\t\t erroresFichero.write(errores);\n\n\t\t\t erroresFichero.close();\n\n\t\t\t} catch (Exception ex) {\n\t\t\t\tSystem.out.println(\"Mensaje de la excepción: \" + ex.getMessage());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "private void agregarFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "public void agregar_Alinicio(int elemento){\n inicio=new Nodo(elemento, inicio);// creando un nodo para que se inserte otro elemnto en la lista\r\n if (fin==null){ // si fin esta vacia entonces vuelve al inicio \r\n fin=inicio; // esto me sirve al agregar otro elemento al final del nodo se recorre al inicio y asi sucesivamnete\r\n \r\n }\r\n \r\n }", "public static void inicializaMedicosText() {\n \n try (BufferedWriter bw = new BufferedWriter(new FileWriter(\"medicos.txt\"))) {\n for (Medico m : medicos) {\n if(m.getPuesto()==null)\n bw.write(m.getCedula() + \",\" + m.getNombres() + \",\" + m.getApellidos() + \",\" + m.getEdad() + \",0\");\n else\n bw.write(m.getCedula() + \",\" + m.getNombres() + \",\" + m.getApellidos() + \",\" + m.getEdad() + \",\" + m.getPuesto().getId());\n bw.newLine();\n }\n }\n catch (IOException ex) {\n Logger.getLogger(StageAdmin.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void crearPrincipal(String nameFile, String fileClases,int tipoClase, Boolean f_gc, Boolean f_nucl, Boolean f_cod, Boolean f_k, int k) throws IOException{\n //Primero leer las clases para agregarlas al final\n ReadClasses c= new ReadClasses();\n classes=c.leer(fileClases, tipoClase);\n cat=c.getCat();\n phylum=c.getPhylum();\n specie= c.getSpecie();\n if (tipoClase==1)\n clasDif=c.getCatDif();\n //clasDif=c.getCat();\n else\n if (tipoClase==2)\n clasDif=c.getPhylumDif();\n //clasDif=c.getPhylum();\n else\n clasDif=c.getSpecieDif();\n id=c.getId();\n if (f_cod)\n crearCodon();\n if (f_k)\n crearKmers4();\n //Crear encabezado de Arff\n BufferedWriter bufferArff =crearEncArff(nameFile,f_gc, f_nucl,f_cod,f_k,k, tipoClase);\n //Adicionar los datos a la base (mismo orden)\n leerFichero(nameFile, bufferArff,f_gc, f_nucl, f_cod, f_k, k, tipoClase);\n\n }", "@Override\r\n public void adicionarFilme(Filme filme) {\r\n listaFilme.add(filme);\r\n }", "public void crearImagenes() {\n try {\n fondoJuego1 = new Imagenes(\"/fondoJuego1.png\",39,-150,-151);\n fondoJuego2 = new Imagenes(\"/fondoJuego2.png\",40,150,149);\n regresar = new Imagenes(\"/regresar.png\",43,90,80);\n highLight = new Imagenes(\"/cursorSubmenus.png\",43,90,80);\n juegoNuevo = new Imagenes(\"/juegoNuevo.png\",44,90,80);\n continuar = new Imagenes(\"/continuar.png\",45,90,80);\n tituloJuegoNuevo = new Imagenes(\"/tituloJuegoNuevo.png\",200,100,165);\n tituloContinuar = new Imagenes(\"/tituloContinuar.png\",201,100,40);\n tituloRegresar = new Imagenes(\"/tituloRegresar.png\",202,20,100);\n\t} catch(IOException e){\n e.printStackTrace();\n }\n }", "public MainController(){\n allShelves = new List[2];\n allShelves[0] = new List<File>(); //Beachtet die unterschiedliche Instanziierung! Was bedeutet das?\n allShelves[1] = new List<>();\n createFiles();\n }", "public void guardar(Empleado e){\r\n \r\n //Para serializar el primer paso es generar el archivo fisico donde\r\n //estara nuestro objto de tipo usuario\r\n\r\n File file=new File(\"Empleados.yo\");\r\n \r\n //Despues lo abrimos para escribir sobre el \r\n if(file.exists()){\r\n empleado=buscarTodos();\r\n }\r\n try{\r\n FileOutputStream fos=new FileOutputStream(file);\r\n \r\n //Luego serializamos\r\n ObjectOutputStream oos=new ObjectOutputStream(fos);\r\n \r\n //Guardamos nuestro usuario\r\n empleado.add(e);\r\n oos.writeObject(empleado);\r\n \r\n //Ponemos un mensaje\r\n System.out.println(\"Objeto guardado con exito\");\r\n \r\n }catch (Exception e){\r\n System.out.println(e.getMessage());\r\n }\r\n }", "public void createFileObjects() {\n List<String> externalFiles = abbreviationsPreferences.getExternalJournalLists();\n externalFiles.forEach(name -> openFile(Paths.get(name)));\n }", "public void constructWith(LzzFileInfo pro) {\n\t\tthis.id = pro.getId ();\n\n\t\tthis.fname = pro.getFname ();\n\n\t\tthis.ftype = pro.getFtype ();\n\n\t\tthis.fsavepath = pro.getFsavepath ();\n\n\t\tthis.furlpath = pro.getFurlpath ();\n\n\t\tthis.createTime = pro.getCreateTime ();\n\n\t\tthis.modifyTime = pro.getModifyTime ();\n\n\t\tthis.def1 = pro.getDef1 ();\n\n\t\tthis.def2 = pro.getDef2 ();\n\n\t\tthis.def3 = pro.getDef3 ();\n\n\t\tthis.def4 = pro.getDef4 ();\n\n\t\tthis.def5 = pro.getDef5 ();\n\n\t\tthis.def6 = pro.getDef6 ();\n\n\t\tthis.def7 = pro.getDef7 ();\n\n\t\tthis.def8 = pro.getDef8 ();\n\n\t\tthis.def9 = pro.getDef9 ();\n\n\t\tthis.def10 = pro.getDef10 ();\n\n\t\tthis.dr = pro.getDr ();\n\n\t}", "public void salvar(Filme f) {\r\n\r\n //Pegando o gerenciador de acesso ao BD\r\n EntityManager gerenciador = JPAUtil.getGerenciador();\r\n\r\n //Iniciar a transação\r\n gerenciador.getTransaction().begin();\r\n\r\n //Mandar persistir o ator\r\n gerenciador.persist(f);\r\n\r\n //Commit\r\n gerenciador.getTransaction().commit();\r\n\r\n }", "public void analizarArchivoDeLog(String nombreArchivo)\n {\n archivoLog.clear();\n try{\n File log = new File(nombreArchivo);\n Scanner sc = new Scanner(log);\n while (sc.hasNextLine()) {\n String linea = sc.nextLine();\n String[] arrayDeString = linea.split(\" \");\n archivoLog.add(new Acceso (Integer.parseInt(arrayDeString[0]),Integer.parseInt(arrayDeString[1]),Integer.parseInt(arrayDeString[2]),Integer.parseInt(arrayDeString[3]),Integer.parseInt(arrayDeString[4])));\n }\n sc.close();\n }\n\n catch (FileNotFoundException e){\n e.printStackTrace();\n }\n }", "public Registro() {\n this.nomeChar = new char[V_Constantes.TAM_STR_DIR_FILE];\n this.doZerarRegistro();\n }", "public void guardar(Usuario u) throws Exception{\r\n //paso1 generar el archivo a guardarse\r\n File f=new File(\"archivaldo.raton\");\r\n if(f.exists()) usuarios= buscarTodos();\r\n //indicar que se va a guardar\r\n FileOutputStream fos=new FileOutputStream(f);\r\n \r\n //generar el objeto que nos va a ayudar a guardar el arraylist de usuarios\r\n ObjectOutputStream oos=new ObjectOutputStream(fos);\r\n //ahora si a guardar el objeto\r\n usuarios.add(u);\r\n oos.writeObject(usuarios);\r\n }", "@Override\n public void incluir(Colaborador objeto)throws Exception {\n try {\n System.out.println(\"Estou Gravando no Arquivo\" + nomeDoArquivoNoDisco);\n FileWriter fw = new FileWriter(nomeDoArquivoNoDisco, true);\n //Criar o buffer do arquivo\n BufferedWriter bw = new BufferedWriter(fw);\n //Escreve no arquivo\n bw.write(objeto.toString() + \"\\n\");\n //Fechar o arquivo\n bw.close();\n } catch (Exception erro) {\n throw erro;\n }\n }", "public Hipermercado(){\r\n this.clientes = new CatalogoClientes();\r\n this.produtos = new CatalogoProdutos();\r\n this.numFiliais = 3;\r\n this.faturacao = new Faturacao(this.numFiliais);\r\n this.filial = new ArrayList<>(this.numFiliais);\r\n for (int i = 0; i < this.numFiliais; i++){\r\n this.filial.add(new Filial());\r\n }\r\n \r\n this.invalidas = 0;\r\n }", "private void jButtonCreateInsexActionPerformed(java.awt.event.ActionEvent evt) {\n try {\n lstPerson = new ArrayList();\n Properties prop = new Properties();//почти тоже самое что ini файлы\n content = Files.readAllLines(Paths.get(PATH_FILE_SOURCE), Charset.forName(\"cp1251\"));\n String s = content.get(0);\n for (int i = 0, j = 1; i < s.length(); i += 128, j++) {\n Person p = new Person(\n s.substring(i, i + 30).trim(),\n s.substring(i + 30, i + 50).trim(),\n s.substring(i + 50, i + 70).trim(),\n s.substring(i + 70, i + 78).trim(),\n s.substring(i + 78).trim(), j);\n lstPerson.add(p);\n }\n\n for (Person person : lstPerson) {\n prop.put(person.getSurname().toUpperCase(), Integer.toString(person.getID()));\n }\n prop.storeToXML(new FileOutputStream(FILE_PATH_INDEX_SURNAME), \"LIB\");//можно и без xml\n jLabelStatusBar.setForeground(Color.magenta);\n jLabelStatusBar.setText(\"Индексный файл создан!\");\n jLabelStatusBar.setForeground(Color.BLACK);\n\n } catch (IOException ex) {\n jLabelStatusBar.setForeground(Color.red);\n jLabelStatusBar.setText(\"Индексный файл не создан!\");\n Logger.getLogger(NewJFrame1.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public ArchivoClientes(){\n\t\t\n\t\tif(archivo.exists()){\n\t\t\t//System.out.println(\"El archivo ya existe\");\n\t\t}else{\n\t\t\ttry {\n\t\t\t\t//archivo.mkdir();\n\t\t\t\tarchivo.createNewFile();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Creación del archivo clientes: \" +e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "@PostConstruct\n private void loadFiles() {\n \n\n File dir = new File(Constants.DIR_PATH);\n File[] files = dir.listFiles(); //stores list of files in given paths\n String line=\"\";\n\n for(File file : files){\n try {\n br = new BufferedReader(new FileReader(file));\n br.readLine();\n while((line=br.readLine())!=null){\n\n String []token=line.split(Constants.DELIMETER);\n String fileName=file.getName().toUpperCase();\n\n FlightData newflight = new FlightData(fileName.substring(0,fileName.lastIndexOf(\".\")),token[0],token[1],token[2],token[3],token[4],token[5],Double.parseDouble(token[6]),token[7],token[8]);\n flightDataDao.insertFlightData(newflight);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }", "public static void crearPartida() throws FileNotFoundException, IOException, ExcepcionesFich {\n\t\tLecturaFicheros.AllLecture(\"C:\\\\Users\\\\Erick\\\\pruebaPOO.txt\");\n\t\tinterfaz = new GUI(0);\t\t\n\t}", "private void grabarArchivo() {\n\t\tPrintWriter salida;\n\t\ttry {\n\t\t\tsalida = new PrintWriter(new FileWriter(super.salida));\n\t\t\tsalida.println(this.aDevolver);\n\t\t\tsalida.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void abrirFichero() {\r\n\t\tJFileChooser abrir = new JFileChooser();\r\n\t\tFileNameExtensionFilter filtro = new FileNameExtensionFilter(\"obj\",\"obj\");\r\n\t\tabrir.setFileFilter(filtro);\r\n\t\tif(abrir.showOpenDialog(abrir) == JFileChooser.APPROVE_OPTION){\r\n\t\t\ttry {\r\n\t\t\t\tGestion.liga = (Liga) Gestion.abrir(abrir.getSelectedFile());\r\n\t\t\t\tGestion.setAbierto(true);\r\n\t\t\t\tGestion.setFichero(abrir.getSelectedFile());\r\n\t\t\t\tGestion.setModificado(false);\r\n\t\t\t\tfrmLigaDeFtbol.setTitle(Gestion.getFichero().getName());\r\n\t\t\t} catch (ClassNotFoundException | IOException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No se ha podido abrir el fichero\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void creaRutaImgPerfil(){\n servletContext=(ServletContext) contexto.getExternalContext().getContext();\n String ruta=\"\";\n //Ruta real hasta la carpeta de uploads\n ruta=servletContext.getRealPath(\"/upload/\");\n \n //Concatenamiento de directorios internos\n ruta+=File.separatorChar+\"img\"+File.separatorChar+\"users\"+File.separatorChar;\n \n //Asignacion de la ruta creada\n this.rutaImgPerfil=ruta;\n }", "public void guardar() {\r\n\t\t\r\n\t\tmanejadorArchivos.guardar(palabras);\r\n\t\t\r\n\t}", "private static void createFileContribuicaoUmidade() throws IOException{\r\n\t\tInteger contribuicaoDefault = 0;\r\n\t\tarqContribuicaoUmidade = new File(pathContribuicaoUmidade);\r\n\t\tif(!arqContribuicaoUmidade.exists()) {\r\n\t\t\tarqContribuicaoUmidade.createNewFile();\r\n\t\t\tFileWriter fw = new FileWriter(getArqContribuicaoUmidade());\r\n\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\tbuffWrite.append(contribuicaoDefault.toString() + String.valueOf('\\n'));\r\n\t\t\tbuffWrite.close();\r\n\t\t}else {//Se arquivo existir\r\n\t\t\tFileReader fr = new FileReader(getArqContribuicaoUmidade());\r\n\t\t\tBufferedReader buffRead = new BufferedReader(fr);\r\n\t\t\tif(!buffRead.ready()) {/*Se o arquivo se encontar criado mas estiver vazio(modificado)*/\r\n\t\t\t\tFileWriter fw = new FileWriter(arqContribuicaoUmidade);\r\n\t\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\t\tbuffWrite.append(contribuicaoDefault.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma contribuicao Inicial*/\r\n\t\t\t\tbuffWrite.close();\r\n\t\t\t}\r\n\t\t\tbuffRead.close();\r\n\t\t}\r\n\t}", "public void inserirContato() {\n\t\tSystem.out.println(\"Digite o nome do novo contato: \");\n\t\tString contato = scanner.nextLine();\n\t\tlistaDeContatos.add(contato);\n\t}", "private void inizia() throws Exception {\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "private FileUtil() {\n \t\tsuper();\n \t}", "public PersistFile() {\n\n }", "@Override\n\tpublic void create(BoardVO vo, String where, HttpServletRequest request) throws Exception {\n\t\tString title = vo.getTitle();\n\t\tString content = vo.getContent();\n\t\tString writer = vo.getWriter();\n\t\tDate date = new Date();\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yy-MM-dd HH:mm\");\n\t\t// MultipartHttpServletRequest multipartHttpServletRequest =\n\t\t// (MultipartHttpServletRequest) request;\n\t\t// Iterator<String> iterator =\n\t\t// multipartHttpServletRequest.getFileNames();\n\t\t// MultipartFile multipartFile = null;\n\n\t\t// *태그문자 처리 (< ==> &lt; > ==> &gt;)\n\t\t// replace(A, B) A를 B로 변경\n\t\ttitle = title.replace(\"<\", \"&lt;\");\n\t\ttitle = title.replace(\"<\", \"&gt;\");\n\t\twriter = writer.replace(\"<\", \"&lt;\");\n\t\twriter = writer.replace(\"<\", \"&gt;\");\n\t\t// *공백문자 처리\n\t\ttitle = title.replace(\" \", \"&nbsp;&nbsp;\");\n\t\twriter = writer.replace(\" \", \"&nbsp;&nbsp;\");\n\t\t// *줄바꿈 문자처리\n\t\tcontent = content.replace(\"\\n\", \"<br>\");\n\t\tvo.setTitle(title);\n\t\tvo.setContent(content);\n\t\tvo.setWriter(writer);\n\t\tvo.setRegdate(format.format(date));\n\n\t\t// 파일 업로드 리스트\n\t\t// while (iterator.hasNext()) {\n\t\t// multipartFile = multipartHttpServletRequest.getFile(iterator.next());\n\t\t// if (multipartFile.isEmpty() == false) {\n\t\t// System.out.println(\"name : \" + multipartFile.getName());\n\t\t// System.out.println(\"filename : \" +\n\t\t// multipartFile.getOriginalFilename());\n\t\t// System.out.println(\"size : \" + multipartFile.getSize());\n\t\t// }\n\t\t// }\n\t\tboardDao.create(vo, where);\n\t\t\n\t\twhere=\"data_upload\";\n\t\tList<Map<String, Object>> list = fileUtils.parseInsertFileInfo(vo, request);\n\t\tfor (int i = 0, size = list.size(); i < size; i++) {\n\t\t\tboardDao.create(list.get(i), where);\n\t\t}\n\n\t}", "public void recevoirDossier() {\n try {\n fileInfo = (FileInfo) ois.readObject(); //lire les informations du fichier\n //chemin du fichier en sortie\n String outputFile = fileInfo.getDestinationDirectory() + fileInfo.getFilename();\n dstFile = new File(outputFile);\n if (!new File(fileInfo.getDestinationDirectory()).exists()) { //si le fichier n'existe pas\n new File(fileInfo.getDestinationDirectory()).mkdirs(); //creation du fichier\n fos = new FileOutputStream(dstFile);\n fos.write(fileInfo.getFileData()); //ecrire les données dans le fichier\n fos.flush();\n fileInfo.setFileData(null);\n System.gc();\n fos.close();\n dstFile.setLastModified(fileInfo.getModifier());\n\n } else if (dstFile.lastModified() < fileInfo.getModifier()) { //si le fichier existe et que c'est une nouvelle version alors\n fos = new FileOutputStream(dstFile);\n fos.write(fileInfo.getFileData());\n fos.flush();\n fileInfo.setFileData(null);\n fos.close();\n dstFile.setLastModified(fileInfo.getModifier());\n }\n } catch (IOException | ClassNotFoundException ex) {\n Logger.getLogger(RecevoirFichier.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n\tpublic void insertBoard(HttpServletRequest request) throws Exception {\n \n List<Map<String,Object>> list = fileUtils.parseInsertFileInfo(request);\n for(int i=0, size=list.size(); i<size; i++){\n sampleDao.insertFile(list.get(i));\n }\n\t}", "public void inserisci(String dove, String contenuto){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, \"directory\");\n n_nodi++;\n return;\n }\n //troviamo il nodo che sarà il padre del nodo che dobbiamo aggiungere\n NodoAlbero cercato = ricerca(dove);\n \n //se il nodo padre non esiste, non aggiungiamo il nuovo nodo\n if (cercato == null)\n return;\n //se il nodo padre non ha un figlio, lo creiamo\n if (cercato.getFiglio() == null)\n cercato.setFiglio(new NodoAlbero(contenuto, cercato, \"directory\"));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = cercato.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), \"directory\"));\n }\n n_nodi++;\n }", "private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void inicializarFicha(){\n \tTypeface tfBubleGum = Util.fontBubblegum_Regular(this);\n \tTypeface tfBenton = Util.fontBenton_Boo(this);\n \tTypeface tfBentonBold = Util.fontBenton_Bold(this);\n\t\tthis.txtNombre.setTypeface(tfBubleGum);\n\t\tthis.txtDescripcion.setTypeface(tfBenton);\n\t\tthis.lblTitulo.setTypeface(tfBentonBold);\n \tpanelCargando.setVisibility(View.GONE);\n \t\n \t//cargar los datos de las informaciones\n \tif(DataConection.hayConexion(this)){\n \t\tpanelCargando.setVisibility(View.VISIBLE);\n \t\tInfo.infosInterface = this;\n \t\tInfo.cargarInfo(this.app, this.paramIdItem);\n \t}else{\n \t\tUtil.mostrarMensaje(\n\t\t\t\t\tthis, \n\t\t\t\t\tgetResources().getString(R.string.mod_global__sin_conexion_a_internet), \n\t\t\t\t\tgetResources().getString(R.string.mod_global__no_dispones_de_conexion_a_internet) );\n \t}\n }", "Motivo create(Motivo motivo);", "public abstract T create(T file, boolean doPersist) throws IOException;", "public void agregarAlInicio(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como inicio al nuevo nodo.\r\n inicio = nuevo;\r\n // Caso contrario va agregando los nodos al inicio de la lista.\r\n } else{\r\n // Une el nuevo nodo con la lista existente.\r\n nuevo.setSiguiente(inicio);\r\n // Renombra al nuevo nodo como el inicio de la lista.\r\n inicio = nuevo;\r\n }\r\n // Incrementa el contador de tamaño de la lista.\r\n tamanio++;\r\n }", "public void loadData() {\n Path path= Paths.get(filename);\n Stream<String> lines;\n try {\n lines= Files.lines(path);\n lines.forEach(ln->{\n String[] s=ln.split(\";\");\n if(s.length==3){\n try {\n super.save(new Teme(Integer.parseInt(s[0]),Integer.parseInt(s[1]),s[2]));\n } catch (ValidationException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }else\n System.out.println(\"linie corupta in fisierul teme.txt\");});\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void processInsertar() {\n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public void ajouterFiche(Fiche fiche) ;", "private void inicializarTablero() {\r\n\t\t\r\n\t\tfor(int i = 0; i < filas; i++) {\r\n\t\t\tfor(int j = 0; j < columnas; j++) {\r\n\t\t\t\tsuperficie[i][j] = null;\r\n\t\t\t}\r\n\t\t}\r\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 TiendaVideojuegos(String datos)\n {\n listaDeVideojuegos = new ArrayList<Videojuegos>();\n codVideojuego = 0;\n try{\n File archivo = new File(datos);\n Scanner sc = new Scanner(archivo);\n while (sc.hasNextLine()) {\n String[] datosVideojuego = sc.nextLine().split(\"#\");\n String titulo = datosVideojuego[0];\n String plataforma = datosVideojuego[1];\n int dia = Integer.parseInt(datosVideojuego[2]);\n int mes = Integer.parseInt(datosVideojuego[3]);\n int anyo = Integer.parseInt(datosVideojuego[4]);\n addVideojuego(titulo, dia, mes, anyo, plataforma);\n }\n \n sc.close();\n }\n catch (FileNotFoundException a) {\n a.printStackTrace();\n }\n \n }", "public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tIDISFICHA=\"\";\n\t\tNOTAS=\"\";\n\t\tANOTACIONES=\"\";\n\t\tNOTAS_EJERCICIOS=\"\";\n\t}", "private void inizializzaBatteri(Vector<Class> classi) {\n batteri = new LinkedList<>();\n Random r = new Random();\n numeroBatteri = new HashMap<>();\n coloreBatteri = new HashMap<>();\n nomiBatteri = new ArrayList<>();\n\n int count = 0;\n for (Class batterio : classi) {\n nomiBatteri.add(batterio.getSimpleName());\n\n for (int i = 0; i < NUM_BATTERI; i++)\n try {\n batteri.add((Batterio) batterio.getConstructors()[0].newInstance(r.nextInt(food.getWidth()),\n r.nextInt(food.getHeight()),\n COLORS[count], food));\n\n numeroBatteri.put(batterio.getSimpleName(), NUM_BATTERI);\n coloreBatteri.put(batterio.getSimpleName(), COLORS[count]);\n } catch (Exception e) {\n System.err.println(\"Non e' stato possibile istanziare il batterio \" + batterio.getSimpleName());\n }\n\n count++;\n }\n }", "public void grabaArchivo() throws IOException {\n\n System.out.println(\"Grabando archivo\");\n PrintWriter fileOut = new PrintWriter(new FileWriter(\"src/images/save.txt\"));\n for (int i = 0; i < vec.size(); i++) {\n\n Object x = vec.get(i);\n\n if (x instanceof Player) {\n x = (Player) vec.get(i);\n fileOut.println(x.toString());\n } else if (x instanceof Shot) {\n x = (Shot) vec.get(i);\n fileOut.println(x.toString());\n } else if (x instanceof Alien){\n x = (Alien) vec.get(i);\n fileOut.println(x.toString());\n } else {\n fileOut.println((String) x);\n }\n }\n\n vec.clear();\n fileOut.close();\n }", "private FileLoader(){\n rows =new Vector<String>();\n //tsptwinstance= new TSPTWinstance();\n }", "public PoseurFileManager()\r\n {\r\n // NOTHING YET\r\n currentFile = null;\r\n currentFileName = null;\r\n saved = true;\r\n poseIO = new PoseIO();\r\n }", "public void init() {\n\t\t\tfor(int i=0; i<DBDef.getINSTANCE().getListeRelDef().size(); i++) {\n\t\t\t\tDBDef.getINSTANCE().getListeRelDef().get(i);\n\t\t\t\tHeapFile hp = new HeapFile(DBDef.getINSTANCE().getListeRelDef().get(i));\n\t\t\t\tthis.heapFiles.add(hp);\n\t\t\t}\n\t\t}", "public void agregarFruta(){\n\t\tcontenidos[14][17] = new Fruta();\n\t}", "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 ObjetoBBDD clonar() {\n\t\t\n\t\tIsFicha ficha=new IsFicha();\n\t\tficha.IDISFICHA=this.IDISFICHA;\n\t\tficha.NOTAS=ficha.NOTAS;\n\t\tficha.ANOTACIONES=this.ANOTACIONES;\n\t\tficha.NOTAS_EJERCICIOS=this.NOTAS_EJERCICIOS;\n\t\t//ficha.inicializar();\n\t\treturn ficha;\n\t}", "Foco createFoco();", "public void crearNodos()\n\t{\n\t\tfor(List<String> renglon: listaDeDatos)\n\t\t{\n\t\t\tPersona persona = new Persona(Integer.parseInt(renglon.get(1)), Integer.parseInt(renglon.get(2))); //crea la persona\n\t\t\t\n\t\t\tNodo nodo = new Nodo(Integer.parseInt(renglon.get(0)), 0, 0, false); //crea el nodo con id en posicion 1\n\t\t\t\n\t\t\tnodo.agregarPersona(persona);\n\t\t\tlistaNodos.add(nodo);\n\t\t}\n\t\t\n\t}", "protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "private void importarDatos() {\r\n // Cabecera\r\n System.out.println(\"Importación de Datos\");\r\n System.out.println(\"====================\");\r\n\r\n // Acceso al Fichero\r\n try (\r\n FileReader fr = new FileReader(DEF_NOMBRE_FICHERO);\r\n BufferedReader br = new BufferedReader(fr)) {\r\n // Colección Auxiliar\r\n final List<Item> AUX = new ArrayList<>();\r\n\r\n // Bucle de Lectura\r\n boolean lecturaOK = true;\r\n do {\r\n // Lectura Linea Actual\r\n String linea = br.readLine();\r\n\r\n // Procesar Lectura\r\n if (linea != null) {\r\n // String > Array\r\n String[] items = linea.split(REG_CSV_LECT);\r\n\r\n // Campo 0 - id ( int )\r\n int id = Integer.parseInt(items[DEF_INDICE_ID]);\r\n\r\n // Campo 1 - nombre ( String )\r\n String nombre = items[DEF_INDICE_NOMBRE].trim();\r\n\r\n // Campo 2 - precio ( double )\r\n double precio = Double.parseDouble(items[DEF_INDICE_PRECIO].trim());\r\n\r\n // Campo 3 - color ( Color )\r\n Color color = UtilesGraficos.generarColor(items[DEF_INDICE_COLOR].trim());\r\n\r\n // Generar Nuevo Item\r\n Item item = new Item(id, nombre, precio, color);\r\n\r\n // Item > Carrito\r\n AUX.add(item);\r\n// System.out.println(\"Importado: \" + item);\r\n } else {\r\n lecturaOK = false;\r\n }\r\n } while (lecturaOK);\r\n\r\n // Vaciar Carrito\r\n CARRITO.clear();\r\n\r\n // AUX > CARRITO\r\n CARRITO.addAll(AUX);\r\n\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"Datos importados correctamente\");\r\n } catch (NumberFormatException | NullPointerException e) {\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"ERROR: Formato de datos incorrecto\");\r\n\r\n // Vaciado Carrito\r\n CARRITO.clear();\r\n } catch (IOException e) {\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"ERROR: Acceso al fichero\");\r\n }\r\n }", "private void guardar() {\r\n\t\tif(Gestion.isModificado() && Gestion.getFichero()!=null){\r\n\t\t\ttry {\r\n\t\t\t\tGestion.escribir(Gestion.getFichero());\r\n\t\t\t\tGestion.setModificado(false);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(Gestion.isModificado() && Gestion.getFichero()==null){\r\n\t\t\tguardarComo();\r\n\t\t}\r\n\t\telse if(frmLigaDeFtbol.getTitle()==\"Liga de Fútbol\" && !Gestion.isModificado())\r\n\t\t\tguardarComo();\r\n\t}", "public void makeSQLSinonimos(String insertStament, boolean[] isString, String patho, String nameFile, int columnaActive, HashSet<String> listaDrogasID, HashSet<String> listaDrogasIDTermino){ \n\t\tFile[] listOfFiles = new File(patho).listFiles();\n\t\tint i=0;\n\t\twhile ( i<listOfFiles.length && !listOfFiles[i].toString().contains(nameFile) )\n\t\t\ti++;\n\n\t\t// Si encontre el archivo creo la tabla, genero un scrip de insertar, lo ejecuto desde la consola y lo borro e inserto los datos\n\t\tif (i<listOfFiles.length){\n\n\n\t\t\tif (managerDB.createExecutorFile(\"C:\\\\\", \"prueba\")){\n\t\t\t\tParserSNOMED.fileToSqlScriptSinonimos(patho,listOfFiles[i].getName().toString(),insertStament, columnaActive, listaDrogasID, listaDrogasIDTermino);\n\t\t\t\tSystem.out.println(patho + listOfFiles[i].getName().toString());\n\t\t\t\ttry{\n\t\t\t\t\tThread.sleep(1000); \n\n\t\t\t\t\tRuntime.getRuntime().exec(\"cmd /c start C:\\\\prueba.bat\");\n\t\t\t\t\tmanagerDB.waitUntisFinishConsole(\"C://\",\"done.prov\" );\n\n\t\t\t\t\t// Borro todos los archivos luego de que termine el script\n\t\t\t\t\tFile file = new File(\"C:\\\\done.prov\"); \tfile.delete();\n\t\t\t\t\t//\t\t\tfile = new File(\"C:\\\\auxFile.sql\"); \tfile.delete();\n\t\t\t\t\tfile = new File(\"C:\\\\prueba.bat\");\t\tfile.delete();\n\t\t\t\t}\n\t\t\t\tcatch (Exception e1) {\n\t\t\t\t\te1.printStackTrace();}\t\t\t\t}\n\t\t}\n\t}", "private void creaModuloMem() {\n /* variabili e costanti locali di lavoro */\n ArrayList<Campo> campi = new ArrayList<Campo>();\n ModuloRisultati modulo;\n Campo campo;\n\n try { // prova ad eseguire il codice\n\n campo = CampoFactory.intero(Campi.Ris.codicePiatto.getNome());\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.nomePiatto.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"piatto\");\n campo.setToolTipLista(\"nome del piatto\");\n campo.decora()\n .etichetta(\"nome del piatto\"); // le etichette servono per il dialogo ricerca\n campo.setLarghezza(250);\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.categoria.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"categoria\");\n campo.setToolTipLista(\"categoria del piatto\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteVolte.getNome());\n campo.setVisibileVistaDefault();\n campo.setLarghezza(80);\n campo.setTitoloColonna(\"quante volte\");\n campo.setToolTipLista(\n \"quante volte questo piatto è stato offerto nel periodo analizzato\");\n campo.decora().etichetta(\"quante volte\");\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quantiCoperti.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"coperti\");\n campo.setToolTipLista(\"numero di coperti che avrebbero potuto ordinare\");\n campo.decora().etichetta(\"n. coperti\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteComande.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"comande\");\n campo.setToolTipLista(\"numero di comande effettive\");\n campo.decora().etichetta(\"n. comande\");\n campo.setLarghezza(80);\n campo.setTotalizzabile(true);\n campi.add(campo);\n\n campo = CampoFactory.percentuale(Campi.Ris.gradimento.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"gradimento\");\n campo.setToolTipLista(\n \"percentuale di gradimento (è il 100% se tutti i coperti potenziali lo hanno ordinato)\");\n campo.decora().etichetta(\"% gradimento\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n modulo = new ModuloRisultati(campi);\n setModuloRisultati(modulo);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "@PrePersist\r\n\tpublic void prePersist() {\n\t\ttry { Thread.sleep(1); } catch (Exception e) { System.out.println(\"Impossibile fermare il thread per 1 ms.\");}\r\n\t\tGregorianCalendar now = new GregorianCalendar();\r\n\t\tdataArrivoFile = new Date(now.getTimeInMillis());\r\n\t\tannoOrdine = now.get(Calendar.YEAR);\r\n\t\tannodoc = now.get(Calendar.YEAR);\r\n\t\tgenMovUscita = \"NO\";\r\n\t\t// il numero di lista è necessario, se non c'è lo genero.\r\n\t\tif (nrLista == null || nrLista.isEmpty()) {\r\n\t\t\tnrLista = sdf.format(now.getTime());\r\n\t\t}\r\n\t\t// il raggruppamento stampe è necessario, se non c'è lo imposto uguale al numero di lista.\r\n\t\tif (ragstampe == null || ragstampe.isEmpty()) {\r\n\t\t\tragstampe = nrLista;\r\n\t\t}\r\n\t\tnrListaArrivato = 0; // TODO, in teoria sarebbe come un autoincrement\r\n\t\tif (nomeFileArrivo == null || nomeFileArrivo.isEmpty()) nomeFileArrivo = sdf.format(now.getTime());\r\n\t\t// Se non ho specificato l'operatore assumo che sia un servizio.\r\n\t\tif (operatore == null || operatore.isEmpty()) operatore = \"SERVIZIO\";\r\n\t\t// Priorita', se non valorizzata imposto il default.\r\n\t\tif (priorita <= 0) priorita = 1;\r\n\t\t// Contrassegno\r\n\t\tif (tipoIncasso == null) tipoIncasso = \"\";\r\n\t\tif (valContrassegno == null) valContrassegno = 0.0;\r\n\t\tif (valoreDoganale == null)\tvaloreDoganale = 0.0;\r\n\t\t// Corriere, se null imposto a stringa vuota.\r\n\t\tif (corriere == null) corriere = \"\";\r\n\t\t// Codice cliente per il corriere, se null imposto a stringa vuota.\r\n\t\tif (codiceClienteCorriere == null) codiceClienteCorriere = \"\";\r\n\t\tif (stato == null) stato = \"INSE\";\r\n\t\tif (sessioneLavoro == null) sessioneLavoro = \"\";\r\n\t\tif (tipoDoc == null) tipoDoc = \"ORDINE\";\r\n\t}", "public FileObjectFactory() {\n }", "public void criarArquivo(String nomeArquivo) {\n try {\n metodos.criarArquivo(nomeArquivo);\n } catch (RemoteException ex) {\n Logger.getLogger(Controller.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\r\n\tpublic int insertFile(FileVo fileVo) {\n\t\tint insertCount = fileDao.insertFile(fileVo);\r\n\t\t\r\n\t\t/*if(1==1) {\r\n\t\t\tthrow new RuntimeException();\r\n\t\t}*/\r\n\t\treturn fileDao.insertFile(fileVo);\r\n\t}", "public void makeSQL(String dropStament, String insertStament, String createStament, boolean[] isString, String patho, String nameFile, String filtroRow, int columnaActive){\n\t\tmanagerDB.executeScript_Void(dropStament);\n\n\t\t/* Listo los archivos que hay en la carpeta para hallar el que se llama descripcion*/ \n\t\tFile[] listOfFiles = new File(patho).listFiles();\n\t\tint i=0;\n\t\twhile ( i<listOfFiles.length && !listOfFiles[i].toString().contains(nameFile) )\n\t\t\ti++;\n\n\t\t// Si encontre el archivo creo la tabla, genero un scrip de insertar, lo ejecuto desde la consola y lo borro e inserto los datos\n\t\tif (i<listOfFiles.length){\n\n\t\t\tmanagerDB.executeScript_Void(createStament);\t\t\t\t\n\n\t\t\tif (managerDB.createExecutorFile(\"C:\\\\\", \"prueba\")){\n\t\t\t\tParserSNOMED.fileToSqlScript(patho,listOfFiles[i].getName().toString(),insertStament, filtroRow,columnaActive);\n\t\t\t\tSystem.out.println(patho + listOfFiles[i].getName().toString());\n\t\t\t\ttry{\n\t\t\t\t\tThread.sleep(1000); \n\n\t\t\t\t\tRuntime.getRuntime().exec(\"cmd /c start C:\\\\prueba.bat\");\n\t\t\t\t\tmanagerDB.waitUntisFinishConsole(\"C://\",\"done.prov\" );\n\n\t\t\t\t\t// Borro todos los archivos luego de que termine el script\n\t\t\t\t\tFile file = new File(\"C:\\\\done.prov\"); \tfile.delete();\n\t\t\t\t\t//\t\t\tfile = new File(\"C:\\\\auxFile.sql\"); \tfile.delete();\n\t\t\t\t\tfile = new File(\"C:\\\\prueba.bat\");\t\tfile.delete();\n\t\t\t\t}\n\t\t\t\tcatch (Exception e1) {\n\t\t\t\t\te1.printStackTrace();}\t\t\t\t}\n\t\t}\n\t}", "public void addPrimero(Object obj) {\n if (cabeza == null) { //Si la cabeza es nula, entoces se creará un nuevo nodo donde le pasaremos el valor de obj\n cabeza = new Nodo(obj);\n } else { //Si no es nula, signifa que el valor que se ingrese, pasara a ser la nueva cabeza\n Nodo temp = cabeza; //Metemos la cabeza en un nodo temporal\n Nodo nuevo = new Nodo(obj); //Creamos un nuevo nodo, que no está enlazado\n nuevo.enlazarSiguiente(temp); //Y el nuevo nodo lo enlazamos a el nodo Temp, que contenia el valor anterior de la otra cabeza\n cabeza = nuevo; //Y ahora le decimos que la cabeza sera nuevo\n }\n size++; //Cada vez que agreguemos un nuevo nodo el tamaño de nuestra lista tendra que aumentar\n }", "public void crearPrimerFichero(){\n File f=new File(getApplicationContext().getFilesDir(),\"datos.json\");\n // si no existe lo creo\n if(!f.exists()) {\n String filename = \"datos.json\";\n String fileContents = \"[]\";\n FileOutputStream outputStream;\n\n try {\n outputStream = openFileOutput(filename, Context.MODE_PRIVATE);\n outputStream.write(fileContents.getBytes());\n outputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n }", "@Transactional\n\t@Override\n\tpublic void insert(BoardVO vo) throws Exception {\n\t\t\tdao.insert(vo);\n\t\t\tSystem.out.println(\"인설트 vo.getbno\"+vo.getBno());\n\t\t\tString[] files = vo.getFiles();\n\t\t\t\n\t\t\tif(files == null) {return;}\n\t\t\tint count=1;\n\t\t\tfor (String fileName : files) {\n\t\t\t\tSystem.out.println(fileName+\"아오 왜안돼냐고\");\n\t\t\t\t\n\t\t\t\tdao.addAttach(fileName,count,vo.getBno()); \n\t\t\t\tcount++;\n\t\t\t}\n\t}", "public static void registrarOrden(java.sql.Connection conexion, ArrayList<String> datos, String orden, InputStream archivo){\n try {\n PreparedStatement dp = crearDeclaracionPreparada(conexion, datos, orden); \n dp.setBlob(datos.size() + 1, archivo);\n dp.executeUpdate();\n //Ejecutamos la orden de tipo Query creada a partir de la orden y datos dados\n if(conexion.isClosed() == false)//si la conexion está abierta la cerramos\n conexion.close();\n } catch (SQLException ex) {\n System.out.println(\"\\n\\n\\n\"+ex); //Imprimimos el error en consola en caso de fallar \n } \n }", "public void guardaLlista() throws IOException {\n ctrl_Persistencia.guardaLlista(\"@../../Dades/\"+list.getNomLlista()+\".llista\",list);\n }", "public FiltroMicrorregiao() {\r\n }" ]
[ "0.711615", "0.6292495", "0.6280158", "0.61940116", "0.616939", "0.6126956", "0.61229736", "0.6010012", "0.5989479", "0.59395677", "0.593213", "0.58881557", "0.5840675", "0.5838979", "0.58362824", "0.58272165", "0.58265716", "0.58087814", "0.5792889", "0.57922727", "0.57794964", "0.57594156", "0.5755235", "0.57412285", "0.5727711", "0.57132375", "0.56972766", "0.5695006", "0.5694548", "0.5693221", "0.5665601", "0.5659943", "0.5647042", "0.5644036", "0.5643678", "0.5633732", "0.5632437", "0.5622033", "0.5618586", "0.5604937", "0.5589247", "0.55887103", "0.5586917", "0.5579964", "0.5564824", "0.55626047", "0.5554881", "0.55542076", "0.55515003", "0.55417335", "0.55379534", "0.5535916", "0.5533452", "0.55241793", "0.55210406", "0.5517023", "0.55161023", "0.5508618", "0.55079114", "0.55002564", "0.549729", "0.5483858", "0.54829746", "0.5474804", "0.54648477", "0.5461138", "0.54562217", "0.5455762", "0.54531527", "0.54410857", "0.54349947", "0.54333526", "0.54303175", "0.5427254", "0.5426668", "0.54246813", "0.5424198", "0.5421442", "0.54194504", "0.5417161", "0.54154074", "0.5414314", "0.54089713", "0.5408317", "0.5407431", "0.5397463", "0.53961253", "0.53937", "0.53923583", "0.53917223", "0.5390533", "0.53901255", "0.5388599", "0.5385482", "0.538387", "0.53827196", "0.53825855", "0.537707", "0.5376143", "0.5375106", "0.5374824" ]
0.0
-1
This method is already implemented using recursion. You must understand how it work and use similar idea with the other methods.
@Override public int size() { return size(root); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\t\tpublic void applyRecursivelyGoal() {\n\t\t\tassertSuccess(\" ;H; ;S; s ⊆ ℤ |- r∈s ↔ s\",\n\t\t\t\t\trm(\"\", ri(\"\", rm(\"2.1\", empty))));\n\t\t}", "public static void main(String[] args){\n LinkedListDeque<String> lld = new LinkedListDeque<>();\n lld.addFirst(\"Hello\");\n lld.addLast(\"Java\");\n lld.addLast(\"!\");\n\n String s0 = lld.getRecursive(0);\n String s1 = lld.getRecursive(1);\n String s2 = lld.getRecursive(2);\n System.out.println(s0 + s1 + s2);\n System.out.println(lld.getRecursive(556));\n //lld.getRecursive(2);\n }", "public void inOrderTraverseRecursive();", "private void GreedySearch(){\n\n Queue<Node> expanded = new LinkedList<>();\n ArrayList<Node> fringe = new ArrayList<>();\n ArrayList<Node> fringeTemp = new ArrayList<>();\n\n\n Node current = startNode;\n\n while(expanded.size() < 1000){\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal is reached.\n solutionPath(current);\n expanded.add(current);\n printExpanded(expanded);\n System.exit(0);\n }\n\n\n boolean b = cycleCheck(current,expanded);\n\n if(!b) {\n expanded.add(current);\n }\n\n if(!b){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n\n }\n }\n\n if(current.getDigit().last_changed != 1){\n\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n }\n\n\n\n for(Node n : fringe){\n heuristicSetter(n);\n\n }\n\n fringeTemp.addAll(fringe);\n //now all the nodes in fringe have the heuristic value.\n //We can get the last added minm\n Node minm;\n if(fringeTemp.size() != 0){\n minm = fringeTemp.get(0);\n }else{\n break;\n }\n for(int i = 1; i<fringeTemp.size(); i++){\n if(fringeTemp.get(i).getHeuristic() <= minm.getHeuristic()){\n minm = fringeTemp.get(i);\n }\n }\n\n //now we have the minm for the next stage.\n current = minm;\n fringeTemp.remove(minm);\n fringe.clear();\n }\n\n //While loop ends\n System.out.println(\"No solution found.\");\n printExpanded(expanded);\n\n\n\n }", "boolean isRecursive();", "private static void backtrackHelper(TreeNode current, int targetSum, List<TreeNode> path, List<List<Integer>> allPaths){\n if(current.left == null && current.right == null){\n if(targetSum == current.val){\n List<Integer> tempResultList = new ArrayList<>();\n // for(TreeNode node: path){\n // tempResultList.add(node.val);\n // }\n tempResultList.addAll(path.stream().mapToInt(o -> o.val).boxed().collect(Collectors.toList()));\n tempResultList.add(current.val);\n\n allPaths.add(tempResultList); // avoid reference puzzle\n }\n return;\n }\n\n // loop-recursion (Here only 2 choices, so we donot need loop)\n if(current.left != null){\n path.add(current);\n backtrackHelper(current.left, targetSum - current.val, path, allPaths);\n path.remove(current);\n }\n\n if(current.right != null){\n path.add(current);\n backtrackHelper(current.right, targetSum - current.val, path, allPaths);\n path.remove(current);\n }\n }", "static void p(){\n System.out.println(\"My recursion example 1\");\n p();\n }", "static int recursion(int steps, int arrLen, int index, int[][] dp) {\n\n if (steps == 0 && index == 0) {\n return 1;\n }\n\n // extra base condition is index> steps , because we cannot return from there at all.\n if (steps == 0 || index < 0 || index >= arrLen || index > steps) return 0;\n\n if (dp[steps][index] != -1) return dp[steps][index];\n\n int ans = 0;\n\n // we can go either left , right or stay there itself.\n ans = (ans + recursion(steps - 1, arrLen, index, dp)) % MOD;\n ans = (ans + recursion(steps - 1, arrLen, index + 1, dp)) % MOD;\n ans = (ans + recursion(steps - 1, arrLen, index - 1, dp)) % MOD;\n dp[steps][index] = ans % MOD;\n return dp[steps][index];\n }", "public void RecursiveExpansion() throws TreeTooBigException {\r\n int transIndex; //Index to count transitions\r\n int[] newMarkup; //markup used to create new node\r\n boolean aTransitionIsEnabled = false; //To check for deadlock\r\n //Attribute used for assessing whether a node has occured before\r\n boolean repeatedNode = false; \r\n \r\n boolean allOmegas = false;\r\n \r\n boolean[] enabledTransitions = \r\n tree.dataLayer.getTransitionEnabledStatusArray(markup);\r\n\r\n //For each transition\r\n for (int i = 0; i < enabledTransitions.length; i++) {\r\n if (enabledTransitions[i] == true) {\r\n //Set transArray of to true for this index\r\n transArray[i] = true;\r\n \r\n //System.out.println(\"\\n Transition \" + i + \" Enabled\" );\r\n aTransitionIsEnabled = true;\r\n \r\n //print (\"\\n Old Markup is :\", markup);//debug\r\n \r\n //Fire transition to produce new markup vector\r\n newMarkup = fire(i);\r\n \r\n //print (\"\\n New Markup is :\", newMarkup);//debug\r\n \r\n //Check for safeness. If any of places have > 1 token set variable.\r\n for (int j = 0; j < newMarkup.length; j++) {\r\n if (newMarkup[j] > 1 || newMarkup[j] == -1) {\r\n tree.moreThanOneToken = true;\r\n break;\r\n }\r\n } \r\n \r\n //Create a new node using the new markup vector and attach it to\r\n //the current node as a child.\r\n children[i] = \r\n new myNode(newMarkup, this, tree, depth + 1);\r\n \r\n /* Now need to (a) check if any omegas (represented by -1) need to \r\n * be inserted in the markup vector of the new node, and (b) if the \r\n * resulting markup vector has appeared anywhere else in the tree. \r\n * We must do (a) before (b) as we need to know if the new node \r\n * contains any omegas to be able to compare it with existing nodes. \r\n */ \r\n allOmegas = children[i].InsertOmegas();\r\n \r\n //check if the resulting markup vector has occured anywhere else in the tree\r\n repeatedNode = (tree.root).FindMarkup(children[i]);\r\n \r\n if (tree.nodeCount >= Pipe.MAX_NODES && !tree.tooBig) {\r\n tree.tooBig = true;\r\n throw new TreeTooBigException();\r\n }\r\n \r\n if (!repeatedNode && !allOmegas) {\r\n children[i].RecursiveExpansion();\r\n }\r\n }\r\n }\r\n \r\n if (!aTransitionIsEnabled) {\r\n System.err.println(\"No transition enabled\");\r\n if (!tree.noEnabledTransitions || tree.pathToDeadlock.length < depth-1) {\r\n RecordDeadlockPath();\r\n tree.noEnabledTransitions = true;\r\n } else {\r\n System.err.println(\"Deadlocked node found, but path is not shorter\"\r\n + \" than current path.\");\r\n }\r\n } else {\r\n //System.out.println(\"Transitions enabled.\");\r\n }\r\n }", "@Test\n public void withRecursion() {\n assertThat(ReturnKthtoLast.withRecursion(list, 4), is(2));\n }", "static int recursiva1(int n)\n\t\t{\n\t\tif (n==0)\n\t\t\treturn 10; \n\t\tif (n==1)\n\t\t\treturn 20; \n\t\treturn recursiva1(n-1) - recursiva1 (n-2);\t\t\n\t\t}", "protected abstract void traverse();", "static void recursive(SootMethod method){\r\n \tvisited.put(method.getSignature(),true);\r\n \tIterator <MethodOrMethodContext> target_1=new Targets(cg.edgesOutOf(method));\r\n \r\n \tif(target_1!=null){\r\n \t\twhile(target_1.hasNext())\r\n \t\t{\r\n \t\t\tSootMethod target_2=(SootMethod)target_1.next();\r\n \t\t\tSystem.out.println(\"\\t\"+ target_2.getSignature().toString());\r\n \t\t\tif(!visited.containsKey(target_2.getSignature()))\r\n \t\t\t\trecursive(target_2);\r\n \t\t}\r\n \t}\r\n \t}", "public String preorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn preorderTraverse(this, new StringBuffer(\"\"));\r\n\t}", "@Override\n\tpublic void preorder() {\n\n\t}", "static void searchWord(WordNode root, char boggle[][], int i,\n int j, boolean visited[][], String str, ArrayList<String> elements)\n {\n\n // if we found word in trie / dictionary\n if (root.isWord == true){\n// System.out.println(str.toString());\n elements.add(str.toString());\n }\n\n\n // If both I and j in range and we visited\n // that element of matrix first time\n if (isSafe(i, j, visited,boggle))\n {\n // make it visited\n visited[i][j] = true;\n\n // traverse all child of current root\n for (int K =0; K < 26; K++)\n {\n if (root.child[K] != null)\n {\n // current character\n char ch = (char) (K + 'a') ;\n\n // Recursively search reaming character of word\n // in trie for all 8 adjacent cells of\n // boggle[i][j]\n if (isSafe(i+1,j+1,visited,boggle) && Character.toLowerCase(boggle[i+1][j+1])\n == ch)\n searchWord(root.child[K],boggle,i+1,j+1,\n visited,str+ch, elements);\n if (isSafe(i, j+1,visited,boggle) && Character.toLowerCase(boggle[i][j+1])\n == ch)\n searchWord(root.child[K],boggle,i, j+1,\n visited,str+ch, elements);\n if (isSafe(i-1,j+1,visited,boggle) && Character.toLowerCase(boggle[i-1][j+1])\n == ch)\n searchWord(root.child[K],boggle,i-1, j+1,\n visited,str+ch, elements);\n if (isSafe(i+1,j, visited,boggle) && Character.toLowerCase(boggle[i+1][j])\n == ch)\n searchWord(root.child[K],boggle,i+1, j,\n visited,str+ch, elements);\n if (isSafe(i+1,j-1,visited,boggle) && Character.toLowerCase(boggle[i+1][j-1])\n == ch)\n searchWord(root.child[K],boggle,i+1, j-1,\n visited,str+ch, elements);\n if (isSafe(i, j-1,visited,boggle)&& Character.toLowerCase(boggle[i][j-1])\n == ch)\n searchWord(root.child[K],boggle,i,j-1,\n visited,str+ch, elements);\n if (isSafe(i-1,j-1,visited,boggle) && Character.toLowerCase(boggle[i-1][j-1])\n == ch)\n searchWord(root.child[K],boggle,i-1, j-1,\n visited,str+ch, elements);\n if (isSafe(i-1, j,visited,boggle) && Character.toLowerCase(boggle[i-1][j])\n == ch)\n searchWord(root.child[K],boggle,i-1, j,\n visited,str+ch, elements);\n }\n }\n\n // make current element unvisited\n visited[i][j] = false;\n }\n }", "boolean hasRecursive();", "public abstract int selfExplodingKittenDrawn();", "void calculating(int depth);", "private int parent ( int pos )\n\t{\n\t\treturn -1; // replace this with working code\n\t}", "@Test\n public void testRecursion() throws Exception {\n//TODO: Test goes here... \n/* \ntry { \n Method method = Solution.getClass().getMethod(\"recursion\", ArrayList<Integer>.class, TreeNode.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/\n }", "private int parent(int i){return (i-1)/2;}", "void backtrackTree(StringBuilder sequence1, StringBuilder sequence2, int position) {\n int n = table[0].length;\n if (position == 0) {\n results.add(new StringBuilder[]{new StringBuilder(sequence1), new StringBuilder(sequence2)});\n }\n else {\n List<Integer> listOfParents = parents.get(position);\n for (Integer parent: listOfParents) {\n if (parent == northWest(position)) {\n StringBuilder newSeq1 = new StringBuilder(sequence1);\n StringBuilder newSeq2 = new StringBuilder(sequence2);\n newSeq1.append(seq1.charAt(seq1position(position)));\n newSeq2.append(seq2.charAt(seq2position(position)));\n backtrackTree(newSeq1, newSeq2, parent);\n }\n else if (parent / n == position / n) {\n StringBuilder newSeq1 = new StringBuilder(sequence1);\n StringBuilder newSeq2 = new StringBuilder(sequence2);\n while (position != parent) {\n newSeq1.append('_');\n newSeq2.append(seq2.charAt(seq2position(position)));\n position--;\n }\n backtrackTree(newSeq1, newSeq2, parent);\n }\n else if (parent % n == position % n) {\n StringBuilder newSeq1 = new StringBuilder(sequence1);\n StringBuilder newSeq2 = new StringBuilder(sequence2);\n while (position != parent) {\n newSeq1.append(seq1.charAt(seq1position(position)));\n newSeq2.append('_');\n position = position - n;\n }\n backtrackTree(newSeq1, newSeq2, parent);\n }\n }\n }\n }", "private boolean dfs(String word, int idx, TrieNode parent) {\n if (idx == word.length()) {//since it's parent node so idx cannot be len - 1\n return parent.isLeaf;\n }\n if (word.charAt(idx) == '.') {\n for (TrieNode curr : parent.map.values()) {\n boolean res = dfs(word, idx + 1, curr);\n if (res) return true;\n }\n } else {\n if (parent.map.containsKey(word.charAt(idx))) {\n return dfs(word, idx + 1, parent.map.get(word.charAt(idx)));\n }\n }\n return false;\n}", "private static void checkRecurse(Vector<XSParticleDecl> dChildren, int min1, int max1, SubstitutionGroupHandler dSGHandler, Vector<XSParticleDecl> bChildren, int min2, int max2, SubstitutionGroupHandler bSGHandler) throws XMLSchemaException {\n/* 1258 */ if (!checkOccurrenceRange(min1, max1, min2, max2)) {\n/* 1259 */ throw new XMLSchemaException(\"rcase-Recurse.1\", new Object[] {\n/* 1260 */ Integer.toString(min1), (max1 == -1) ? \"unbounded\" : \n/* 1261 */ Integer.toString(max1), \n/* 1262 */ Integer.toString(min2), (max2 == -1) ? \"unbounded\" : \n/* 1263 */ Integer.toString(max2)\n/* */ });\n/* */ }\n/* 1266 */ int count1 = dChildren.size();\n/* 1267 */ int count2 = bChildren.size();\n/* */ \n/* 1269 */ int current = 0;\n/* 1270 */ for (int i = 0; i < count1; i++) {\n/* */ \n/* 1272 */ XSParticleDecl particle1 = dChildren.elementAt(i);\n/* 1273 */ int k = current; while (true) { if (k < count2) {\n/* 1274 */ XSParticleDecl particle2 = bChildren.elementAt(k);\n/* 1275 */ current++;\n/* */ try {\n/* 1277 */ particleValidRestriction(particle1, dSGHandler, particle2, bSGHandler);\n/* */ \n/* */ break;\n/* 1280 */ } catch (XMLSchemaException e) {\n/* 1281 */ if (!particle2.emptiable())\n/* 1282 */ throw new XMLSchemaException(\"rcase-Recurse.2\", null); \n/* */ } k++; continue;\n/* */ } \n/* 1285 */ throw new XMLSchemaException(\"rcase-Recurse.2\", null); }\n/* */ \n/* */ } \n/* */ \n/* 1289 */ for (int j = current; j < count2; j++) {\n/* 1290 */ XSParticleDecl particle2 = bChildren.elementAt(j);\n/* 1291 */ if (!particle2.emptiable()) {\n/* 1292 */ throw new XMLSchemaException(\"rcase-Recurse.2\", null);\n/* */ }\n/* */ } \n/* */ }", "private void enumerateAnagramsUnderBagEHelper(String targetDoNotChange,\n\t\t\tString whatsLeft, HashMap<String, Integer> parent,\n\t\t\tSet<Map<String, Integer>> ret, int runningTotal) {\n\t\tif (whatsLeft.length() == 0\n\t\t\t\t&& runningTotal == targetDoNotChange.length()) {\n\t\t\tret.add(parent);\n\t\t\treturn;\n\t\t} else {\n\t\t\tSet<String> toIter = generateSubwords(whatsLeft);\n\t\t\tfor (String subWord : toIter) {\n\t\t\t\t// Do some pruning\n\t\t\t\tif (runningTotal + subWord.length() <= targetDoNotChange\n\t\t\t\t\t\t.length()) {\n\t\t\t\t\tString moveMadeWhatsLeft = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tmoveMadeWhatsLeft = cutOutSubWord(whatsLeft, subWord);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\tHashMap<String, Integer> mapCopy = new HashMap<String, Integer>();\n\t\t\t\t\tfor (String s : parent.keySet()) {\n\t\t\t\t\t\tmapCopy.put(s, parent.get(s));\n\t\t\t\t\t}\n\t\t\t\t\t// Make move\n\t\t\t\t\tif (mapCopy.containsKey(subWord)) {\n\t\t\t\t\t\tmapCopy.put(subWord,\n\t\t\t\t\t\t\t\tmapCopy.get(subWord).intValue() + 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmapCopy.put(subWord, 1);\n\t\t\t\t\t}\n\t\t\t\t\tenumerateAnagramsUnderBagEHelper(targetDoNotChange,\n\t\t\t\t\t\t\tmoveMadeWhatsLeft, mapCopy, ret, runningTotal\n\t\t\t\t\t\t\t\t\t+ subWord.length());\n\n\t\t\t\t} else {\n\t\t\t\t\t// Do nothing.. too long PRUNING\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private int leftChild(int i){return 2*i+1;}", "private static void recursiveFixedSumPairs(/* determine parameters here */){\r\n\t\t// complete this method\r\n\t\t\r\n\t}", "private void fastscan(State state,SuffixNode currNode,int uvLen,int j){ \n \n for(int i=0;i<currNode.children.size();i++){ \n SuffixNode child = currNode.children.get(i); \n \n if(text.charAt(child.start) == text.charAt(j)){ \n int len = child.getLength(); \n if(uvLen==len){ \n //then we find w \n //uvLen = 0; \n //need slow scan after this child \n state.u = child; \n state.w = child; \n state.j = j+len; \n }else if(uvLen<len){ \n //branching and cut child short \n //e.g. child=\"abc\",uvLen = 2 \n // abc ab \n // / \\ ================> / \\ \n // e f suffix part: \"abd^\" c d^ \n // / \\ \n // e f \n \n //insert the new node: ab; child is now c \n int nodepathlen = child.pathlen \n - (child.getLength()-uvLen); \n SuffixNode node = new SuffixNode(text, \n child.start,child.start + uvLen - 1,nodepathlen); \n node.children = new LinkedList<SuffixNode>(); \n \n int tailpathlen = (text.length() - (j + uvLen)) + nodepathlen; \n SuffixNode tail = new SuffixNode(text, \n j+uvLen,text.length()-1,tailpathlen); \n \n //update child node: c \n child.start += uvLen; \n if(text.charAt(j+uvLen)<text.charAt(child.start)){ \n node.children.add(tail); \n node.children.add(child); \n }else{ \n node.children.add(child); \n node.children.add(tail); \n } \n \n //update parent \n currNode.children.set(i, node); \n \n //uvLen = 0; \n //state.u = currNode; //currNode is already registered as state.u, so commented out \n state.w = node; \n state.finished = true; \n state.v = node; \n \n }else{//uvLen>len \n //e.g. child=\"abc\", uvLen = 4 \n // abc \n // / \\ ================> \n // e f suffix part: \"abcdefg^\" \n // \n // \n //jump to next node \n uvLen -= len; \n state.u = child; \n j += len; \n state.j = j; \n fastscan(state,child,uvLen,j); \n } \n break; \n } \n } \n }", "static void subsequence(String str)\n {\n // iterate over the entire string\n for (int i = 0; i < str.length(); i++) {\n \n // iterate from the end of the string\n // to generate substrings\n for (int j = str.length(); j > i; j--) {\n String sub_str = str.substring(i, j);\n \n if (!st.contains(sub_str))\n st.add(sub_str);\n \n // drop kth character in the substring\n // and if its not in the set then recur\n for (int k = 0; k < sub_str.length(); k++) {\n StringBuffer sb = new StringBuffer(sub_str);\n \n // drop character from the string\n sb.deleteCharAt(k);\n if (!st.contains(sb)) {\n \tsubsequence(sb.toString());\n }\n }\n }\n }\n }", "public String postorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn postorderTraverse(this, new StringBuffer(\"\"));\r\n\t}", "private void dfs(String s, int leftCount, int rightCount, int openCount, int index, StringBuilder sb, Set<String> res) {\n if (index == s.length()) {\n if (leftCount == 0 && rightCount == 0 && openCount == 0) res.add(sb.toString());\n return;\n }\n if (leftCount < 0 || rightCount < 0 || openCount < 0) return;\n int len = sb.length();\n if (s.charAt(index) == '(') {\n dfs(s, leftCount - 1, rightCount, openCount, index + 1, sb, res);\n dfs(s, leftCount, rightCount, openCount + 1, index + 1, sb.append('('), res);\n } else if (s.charAt(index) == ')') {\n dfs(s, leftCount, rightCount - 1, openCount, index + 1, sb, res);\n dfs(s, leftCount, rightCount, openCount - 1, index + 1, sb.append(')'), res);\n } else {\n dfs(s, leftCount, rightCount, openCount, index + 1, sb.append(s.charAt(index)), res);\n }\n sb.setLength(len);\n }", "@SuppressWarnings(\"unchecked\")\t\t\t\t\t\t\t//used because of line 17, there is no way to remove warnings, they have to be suppressed\n public String[] permutations(ArrayList<ArrayList<Character> > mat){\n\n if(mat.size()==1){\t\t\t//since the function is recursive, a base case for the first line has been made. \n String[] s = new String[mat.get(0).size()];\n int i = 0;\n for(Object obj:mat.get(0)) {\n if (i < s.length) {\n s[i++] = obj.toString();\n }\n }\n return s;\t\t//returns the characters of the first line of the input as an array of String\n }\n ArrayList<Character>[] arr = new ArrayList[mat.size()]; //this has been created to provide ease of accessibility which is a bit difficult with an ArrayList of an ArrayList\n int k = 0;\n for(ArrayList a:mat){\n if(k<mat.size()){\n arr[k] = a;\n }\n k++;\n }\n int product = 1;\n for(ArrayList a: mat){\n product*= a.size(); \t// product calculates the size of the String to be generated for the given input\n }\n int i = 0;\n String[] ret = new String[product];\n ArrayList<ArrayList<Character> > ret_arr_list = new ArrayList<>();\n for(int exception_index = 0;exception_index<arr.length-1;++exception_index){\n ret_arr_list.add(arr[exception_index]); //ret_arr_list is an ArrayList of an ArrayList except the last row of the original input\n }\n String[] s = permutations(ret_arr_list); //gets the string as mentioned at the very beginning of the function\n int ret_index = 0;\n for(int i_index = 0;i_index < s.length;++i_index){\n for(int j_index = 0;j_index<mat.get(mat.size()-1).size();++j_index){\n ret[ret_index++] = s[i_index] + arr[mat.size()-1].get(j_index).toString(); //appends every character of the last line to \n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //every String element calculated in String[] s\n }\n }\n return ret;\n }", "private void slowscan(State state,SuffixNode currNode,int j){ \n boolean done = false; \n int keyLen = text.length() - j; \n for(int i=0;i<currNode.children.size();i++){ \n SuffixNode child = currNode.children.get(i); \n \n //use min(child.key.length, key.length) \n int childKeyLen = child.getLength(); \n int len = childKeyLen<keyLen?childKeyLen:keyLen; \n int delta = 0; \n for(;delta<len;delta++){ \n if(text.charAt(j+delta) != text.charAt(child.start+delta)){ \n break; \n } \n } \n if(delta==0){//this child doesn't match any character with the new key \n //order keys by lexi-order \n if(text.charAt(j) < text.charAt(child.start)){ \n //e.g. child=\"e\" (currNode=\"abc\") \n // abc abc \n // / \\ =========> / | \\ \n // e f insert \"c^\" c^ e f \n int pathlen = text.length() - j + currNode.pathlen; \n SuffixNode node = new SuffixNode(text,j,text.length()-1,pathlen); \n currNode.children.add(i,node); \n //state.u = currNode; //currNode is already registered as state.u, so commented out \n state.v = currNode; \n state.finished = true; \n done = true; \n break; \n }else{ //key.charAt(0)>child.key.charAt(0) \n //don't forget to add the largest new key after iterating all children \n continue; \n } \n }else{//current child's key partially matches with the new key \n if(delta==len){ \n if(keyLen>childKeyLen){ //suffix tree with ^ ending can't have other two cases \n //e.g. child=\"ab\" \n // ab ab \n // / \\ ==========> / | \\ \n // e f insert \"abc^\" c^ e f \n //recursion \n state.u = child; \n j += childKeyLen; \n state.j = j; \n slowscan(state,child,j); \n } \n }else{//0<delta<len \n \n //e.g. child=\"abc\" \n // abc ab \n // / \\ ==========> / \\ \n // e f insert \"abd^\" c d^ \n // / \\ \n // e f \n //insert the new node: ab \n int nodepathlen = child.pathlen \n - (child.getLength()-delta); \n SuffixNode node = new SuffixNode(text, \n child.start,child.start + delta - 1,nodepathlen); \n node.children = new LinkedList<SuffixNode>(); \n \n int tailpathlen = (text.length() - (j + delta)) + nodepathlen; \n SuffixNode tail = new SuffixNode(text, \n j+delta,text.length()-1,tailpathlen); \n \n //update child node: c \n child.start += delta; \n if(text.charAt(j+delta)<text.charAt(child.start)){ \n node.children.add(tail); \n node.children.add(child); \n }else{ \n node.children.add(child); \n node.children.add(tail); \n } \n //update parent \n currNode.children.set(i, node); \n \n //state.u = currNode; //currNode is already registered as state.u, so commented out \n state.v = node; \n state.finished = true; \n } \n done = true; \n break; \n } \n } \n if(!done){ \n int pathlen = text.length() - j + currNode.pathlen; \n SuffixNode node = new SuffixNode(text,j,text.length()-1,pathlen); \n currNode.children.add(node); \n //state.u = currNode; //currNode is already registered as state.u, so commented out \n state.v = currNode; \n state.finished = true; \n } \n }", "private void level7() {\n }", "public void inOrderTraverseIterative();", "public static void levelOrderLinewise2(Node node){\r\n LinkedList<Node> mainq = new LinkedList<>(); //LinkedList is used because we can'nt add \"null\" in Queue, it gives NullPointerException\r\n \r\n //Adding root and null in mainq\r\n mainq.add(node);\r\n mainq.add(null);\r\n \r\n while(mainq.size()>0){\r\n //1. get + remove\r\n Node rem = mainq.remove();\r\n \r\n //If front element is null that means this level is completed hence we put \"enter\" and add Delimiter only when list size is >0.\r\n if(rem == null){\r\n System.out.println();\r\n \r\n //If size is more than 0 then again add \"null\", if we don't add below line, it will go in infinite loop\r\n if(mainq.size()>0){\r\n mainq.add(null);\r\n }\r\n }\r\n \r\n //In else condition we can print and add children for that node to list\r\n \r\n else{\r\n \r\n //2. Print \r\n System.out.print(rem.data + \" \");\r\n \r\n //3. Add children of node to mainq\r\n for(Node child : rem.children){\r\n mainq.add(child);\r\n }\r\n }\r\n }\r\n }", "@Override\n public void func_104112_b() {\n \n }", "private boolean helperDFS(Node current){\n\n if(expandedNode.size() == 999){\n //limit has been reached. jump out of recursion.\n expandedNode.add(current);\n System.out.println(\"No solution found.\");\n printExpanded(expandedNode);\n System.exit(0);\n return false;\n }\n\n boolean b = cycleCheck(current,expandedNode);\n\n if(!b){\n expandedNode.add(current);\n }else{\n return false;\n }\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal reached.\n //expandedNode.add(current);\n solutionPath(current);\n printExpanded(expandedNode);\n System.exit(0);\n }\n\n //Now make the children.\n\n if(!forbidden.contains(current.getDigit().getDigitString())){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n\n if(current.getDigit().last_changed != 1){\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n }\n return false;\n }", "private int findAllPathsUtil(int s, int t, boolean[] isVisited, List<Integer> localPathList,int numOfPath,LinkedList<Integer>[] parent )\n {\n\n if (t==s) {\n numOfPath++;\n return numOfPath;\n }\n isVisited[t] = true;\n\n for (Integer i : parent[t]) {\n if (!isVisited[i]) {\n localPathList.add(i);\n numOfPath =findAllPathsUtil(s,i , isVisited, localPathList,numOfPath,parent);\n localPathList.remove(i);\n }\n }\n isVisited[t] = false;\n return numOfPath;\n }", "private List<Path> expandExecution(Path input) {\n\t\tList<Path> childInputs = new ArrayList<>(); //store the paths generated from given path\n\t\t\n\t\t//search from the top node which have not been searched before\n\t\tfor(int j = input.bound; j < input.path.size() - 1; j++){\n\t\t\tdouble[] probabilityArray = cfg.getTransition_matrix().getRow(input.path.get(j));\n\t\t\tfor(int i = 0; i < probabilityArray.length; i++){\n\t\t\t\t//the node been visited before only have two situation:1.has been searched,2.the path contains it in the workList \n\t\t\t\tif(probabilityArray[i] > 0 && i != input.path.get(j + 1) && unvisited.contains(i)){\n\t\t\t\t\tList<Integer> tempPath = new ArrayList<>();\n\t\t\t\t\tfor(int index = 0; index < j + 1; index++)\n\t\t\t\t\t\ttempPath.add(input.path.get(index));\n\t\t\t\t\ttempPath.add(i);\n\t\t\t\t\t\n\t\t\t\t\tPath newInput = new Path(tempPath, j + 1);\n\t\t\t\t\tchildInputs.add(newInput);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn childInputs;\n\t}", "int expand();", "private static void dfsBribe(int n, List<Integer>[] ch, long[] w) {\n if (ch[n].size() == 0){\n In[n] = w[n];\n OutD[n] = Long.MAX_VALUE;\n OutU[n] = 0;\n }\n //recurrance case: non.leaf, do dfs for all subordinates then calculate In, OutUp & OutDown.\n else{\n for (int c:ch[n])\n dfsBribe(c, ch, w); //running once for each child thereby O(N)\n In[n] = w[n];\n for (int c:ch[n]){ //O(N) running time\n In[n] += OutU[c];\n OutU[n] += Math.min(In[c], OutD[c]);\n OutD[n] += Math.min(In[c], OutD[c]);\n }\n OutD[n] += delta(n, ch); //add delta for no in Children\n }\n\n }", "private static int helper(TreeNode root, TreeNode p, TreeNode q, List<TreeNode> ans) {\n if (root == null)\n return 0;\n int sum = 0;\n if (root.val == p.val || root.val == q.val)\n ++sum;\n int leftSum = helper(root.left, p, q, ans);\n int rightSum = helper(root.right, p, q, ans);\n sum += leftSum + rightSum;\n if (sum == 2 && leftSum < 2 && rightSum < 2)\n ans.add(root);\n return sum;\n }", "private static void checkRecurseUnordered(Vector<XSParticleDecl> dChildren, int min1, int max1, SubstitutionGroupHandler dSGHandler, Vector<XSParticleDecl> bChildren, int min2, int max2, SubstitutionGroupHandler bSGHandler) throws XMLSchemaException {\n/* 1306 */ if (!checkOccurrenceRange(min1, max1, min2, max2)) {\n/* 1307 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.1\", new Object[] {\n/* 1308 */ Integer.toString(min1), (max1 == -1) ? \"unbounded\" : \n/* 1309 */ Integer.toString(max1), \n/* 1310 */ Integer.toString(min2), (max2 == -1) ? \"unbounded\" : \n/* 1311 */ Integer.toString(max2)\n/* */ });\n/* */ }\n/* 1314 */ int count1 = dChildren.size();\n/* 1315 */ int count2 = bChildren.size();\n/* */ \n/* 1317 */ boolean[] foundIt = new boolean[count2];\n/* */ \n/* 1319 */ for (int i = 0; i < count1; i++) {\n/* 1320 */ XSParticleDecl particle1 = dChildren.elementAt(i);\n/* */ \n/* 1322 */ int k = 0; while (true) { if (k < count2) {\n/* 1323 */ XSParticleDecl particle2 = bChildren.elementAt(k);\n/* */ try {\n/* 1325 */ particleValidRestriction(particle1, dSGHandler, particle2, bSGHandler);\n/* 1326 */ if (foundIt[k]) {\n/* 1327 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.2\", null);\n/* */ }\n/* 1329 */ foundIt[k] = true;\n/* */ \n/* */ \n/* */ break;\n/* 1333 */ } catch (XMLSchemaException xMLSchemaException) {}\n/* */ k++;\n/* */ continue;\n/* */ } \n/* 1337 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.2\", null); }\n/* */ \n/* */ } \n/* */ \n/* 1341 */ for (int j = 0; j < count2; j++) {\n/* 1342 */ XSParticleDecl particle2 = bChildren.elementAt(j);\n/* 1343 */ if (!foundIt[j] && !particle2.emptiable()) {\n/* 1344 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.2\", null);\n/* */ }\n/* */ } \n/* */ }", "static String recurse(int j,int p,int s,int steps)\r\n\t{\n\t\tif (steps==0)\r\n\t\t\treturn \"\";\r\n\t\tif (j==J)\r\n\t\t\treturn null;\r\n\t\tif ((J-j-1)*P*S+(P-p-1)*S+S-s<steps)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tint sn=s+1;\r\n\t\tint pn=p+(sn/S);\r\n\t\tint jn=j+(pn/P);\r\n\t\tpn%=P;\r\n\t\tsn%=S;\r\n\t\t\r\n\t\tString sol=recurse(jn,pn,sn,steps);\r\n\t\tif (sol!=null)\r\n\t\t\treturn sol;\r\n\t\t\r\n\t\tif (jp[j][p]<K && js[j][s]<K && ps[p][s]<K)\r\n\t\t{\r\n\t\t\tjp[j][p]++;\r\n\t\t\tjs[j][s]++;\r\n\t\t\tps[p][s]++;\r\n\t\t\tsol=recurse(jn,pn,sn,steps-1);\r\n\t\t\tif (sol!=null)\r\n\t\t\t\treturn \"\"+(j+1)+\" \"+(p+1)+\" \"+(s+1)+\"\\n\"+sol;\r\n\t\t\tjp[j][p]--;\r\n\t\t\tjs[j][s]--;\r\n\t\t\tps[p][s]--;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "public Recusive_Methods(){\n int[][] array = {\n {1,2,3,4},\n {5,6,7,8},\n {9,10,11,12},\n {13,14,15,16},\n {17,18,19,20},\n };\n printer(array,0,0,array[0].length-1,array.length-1,0);\n\n StringReverse(\"this function writes the sentence in reverse\");\n StringReverse(\"selam alp emir bilek ben\");\n\n elfish(\"alpemir\",0,0,0);\n elfish(\"leaf\",0,0,0);\n elfish(\"waffles\",0,0,0);\n }", "public abstract void bepaalGrootte();", "private static List<Integer> printTree(Tree tree, List values){\n int height = heightOfTree(tree);\n\n for(int i=1;i<=height;i++) {\n System.out.println(\"\");\n printTreeInLevel(tree, i, values);\n }\n return values;\n}", "StackManipulation cached();", "private boolean addHelper(Node < E > node, E item,int planes) {\r\n /*element is already present. */\r\n if (node != null && item.equals(node.data)) {\r\n return false;\r\n }\r\n /*parent has no left child and value of child is smaller than value of parent.*/\r\n else if (node != null && node.left == null && item.getItem(planes).compareTo(node.data.getItem(planes)) <= 0) {\r\n node.left = new Node<>(item);\r\n System.out.printf(\"LeftSide: node : %s , point : %s dimension : %d \\n\",\r\n node.data.toString(),item.toString(),planes);\r\n return true;\r\n }\r\n /*parent has no rigth child and value of child is bigger than value of parent.*/\r\n else if (node != null && node.right == null && item.getItem(planes).compareTo(node.data.getItem(planes)) > 0) {\r\n node.right = new Node<>(item);\r\n System.out.printf(\"RightSide: node : %s , point : %s dimension : %d \\n\",\r\n node.data.toString(),item.toString(),planes);\r\n return true;\r\n }\r\n /*parent has left child and value of child is smaller than value of parent\r\n * searching retains on the left-tree\r\n * */\r\n else if (node != null && node.left != null && item.getItem(planes).compareTo(node.data.getItem(planes)) <= 0) {\r\n return addHelper(node.left, item,(planes + 1)%item.getNumberOfArgs());\r\n }\r\n /*parent has right child and value of child is smaller than value of parent\r\n * searching retains on the right-tree\r\n * */\r\n else if (node != null && node.right != null && item.getItem(planes).compareTo(node.data.getItem(planes)) > 0){\r\n return addHelper(node.right, item,(planes + 1)%item.getNumberOfArgs());\r\n }\r\n else return false;\r\n }", "private void generateSubwordsHelper(String whatsLeft, String parent,\n\t\t\tSet<String> returnSet, TreeNode dictPointer,\n\t\t\tTreeNode myParent) {\n\n\t\tif (whatsLeft.length() == 0 && dictPointer.getIsWord()) {\n\t\t\treturnSet.add(parent);\n\t\t} else {\n\t\t\tif (dictPointer.getIsWord()) {\n\t\t\t\treturnSet.add(parent);\n\t\t\t}\n\t\t\tHashSet<Character> iveTriedSoFar = new HashSet<Character>();\n\t\t\tfor (int i = 0; i < whatsLeft.length(); i++) {\n\t\t\t\t// Make move\n\t\t\t\t// For each chracter left in whats left, remove that character\n\t\t\t\t// from whats left, and append it to the end of parent\n\t\t\t\tString moveMadeWhatsLeft = whatsLeft;\n\t\t\t\tif (i == 0) {\n\t\t\t\t\tmoveMadeWhatsLeft = moveMadeWhatsLeft.substring(1,\n\t\t\t\t\t\t\tmoveMadeWhatsLeft.length());\n\t\t\t\t} else if (i == moveMadeWhatsLeft.length() - 1) {\n\t\t\t\t\tmoveMadeWhatsLeft = moveMadeWhatsLeft.substring(0,\n\t\t\t\t\t\t\tmoveMadeWhatsLeft.length() - 1);\n\t\t\t\t} else {\n\t\t\t\t\tmoveMadeWhatsLeft = moveMadeWhatsLeft.substring(0, i)\n\t\t\t\t\t\t\t+ moveMadeWhatsLeft.substring(i + 1,\n\t\t\t\t\t\t\t\t\tmoveMadeWhatsLeft.length());\n\t\t\t\t}\n\t\t\t\tString moveMadeParent = parent + whatsLeft.charAt(i);\n\n\t\t\t\t// call recursive\n\t\t\t\tif (dictPointer.getChildContaining(whatsLeft.charAt(i)) != null\n\t\t\t\t\t\t&& !iveTriedSoFar.contains(whatsLeft.charAt(i))) {\n\t\t\t\t\tiveTriedSoFar.add(whatsLeft.charAt(i));\n\t\t\t\t\tgenerateSubwordsHelper(\n\t\t\t\t\t\t\tmoveMadeWhatsLeft,\n\t\t\t\t\t\t\tmoveMadeParent,\n\t\t\t\t\t\t\treturnSet,\n\t\t\t\t\t\t\tdictPointer.getChildContaining(whatsLeft.charAt(i)),\n\t\t\t\t\t\t\tdictPointer);\n\t\t\t\t} else {\n\t\t\t\t\t// Do not call method (skip that subtree) PRUNING! .. like a\n\t\t\t\t\t// boss\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void builtTree\n ( ArrayList<DefaultMutableTreeNode> treeArray , \n int recursion , DefaultMutableTreeNode selected , \n boolean enableDirs , boolean enableFiles )\n {\n int m;\n if (recursion<0) { m = DEFAULT_RECURSION_LIMIT; }\n else { m = recursion; }\n for ( int k=0; k<m; k++ )\n {\n boolean request = false;\n // Start cycle for entries\n int n = treeArray.size();\n for ( int i=0; i<n; i++ )\n {\n DefaultMutableTreeNode x1 = treeArray.get(i);\n // Support selective mode, skip if not selected\n if ( (selected != null) & ( selected != x1 ) ) continue;\n // Analyse current entry, skip if already handled\n ListEntry x2 = (ListEntry)x1.getUserObject();\n if ( x2.handled == true ) continue;\n request = true;\n x2.failed = false;\n // Start handling current entry\n String x3 = x2.path;\n File file1 = new File( x3 );\n boolean exists1 = file1.exists();\n boolean directory1=false;\n if (exists1) { directory1 = file1.isDirectory(); }\n // Handling directory: make list of childs directories/files\n if ( exists1 & directory1 )\n {\n String[] list = file1.list();\n int count=0;\n if ( list != null ) count = list.length;\n for ( int j=0; j<count; j++ )\n {\n String s1 = list[j];\n String s2 = x3+\"/\"+s1;\n File file2 = new File(s2);\n boolean dir = file2.isDirectory();\n if ( ( enableDirs & dir ) | ( enableFiles & !dir ) )\n {\n ListEntry y1 = \n new ListEntry ( s1, \"\", s2, false, false );\n DefaultMutableTreeNode y2 = \n new DefaultMutableTreeNode( y1 );\n treeArray.add( y2 );\n x1.add( y2 );\n x1.setAllowsChildren( true ); // this entry is DIRECTORY\n }\n }\n }\n // Handling file: read content\n if ( exists1 & !directory1 )\n {\n int readSize = 0;\n //\n StringBuilder data = new StringBuilder(\"\");\n FileInputStream fis;\n byte[] array = new byte[BUFFER_SIZE];\n try \n { \n fis = new FileInputStream(file1);\n readSize = fis.read(array); \n fis.close();\n }\n catch ( Exception e ) \n // { data = \"N/A : \" + e; x2.failed=true; }\n { data.append( \"N/A : \" + e ); x2.failed = true; }\n char c1;\n for (int j=0; j<readSize; j++)\n { \n c1 = (char)array[j];\n // if ( (c1=='\\n') | (c1=='\\r') ) { data = data + \" \"; }\n if ( ( c1 == '\\n' ) | (c1 == '\\r' ) ) { data.append( \" \" ); }\n else \n { \n if ( ( c1 < ' ' )|( c1 > 'z' ) ) { c1 = '_'; }\n // data = data + c1;\n data.append( c1 );\n }\n }\n x2.name2 = data.toString();\n x2.leaf = true;\n x1.setAllowsChildren( false ); // this entry is FILE\n }\n // End cycle for entries\n x2.handled = true;\n }\n // End cycle for recursion\n if (request==false) break;\n }\n }", "public void getPermutation(String s1,int start,int end){\n\t\tif(start==end-1) {\n\t\t\tSystem.out.println(s1);\n\t\t}\n\t\telse {\n\t\t\tfor(int i=start;i<end;i++) {\n\t\t\t\ts1=swap(s1,start,i);\n\t\t\t\t//calling recursive function \n\t\t\t\tgetPermutation(s1,start+1,end);\n\t\t\t\ts1=swap(s1,start,i);\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}", "protected int sumRecursive(int a, int b){\n if (b == 0){\n return a;\n } else {\n if (b > 0){\n return sumRecursive(a + 1, b - 1);\n } else {\n return sumRecursive(a - 1, b + 1);\n }\n }\n }", "private static int recursion(int x) {\n\t\tif(x == 1) return 0;\n\n\t\tif(dp[x] != -1) return dp[x];\n\t\tint result = Integer.MAX_VALUE;\n\n\t\tif(x % 3 == 0) result = Math.min(recursion(x / 3), result);\n\t\tif(x % 2 == 0) result = Math.min(recursion(x >> 1), result);\n\t\tif(x >= 1) result = Math.min(recursion(x - 1), result);\n\n\t\treturn dp[x] = result + 1;\n\t}", "private static void checkRecurseLax(Vector<XSParticleDecl> dChildren, int min1, int max1, SubstitutionGroupHandler dSGHandler, Vector<XSParticleDecl> bChildren, int min2, int max2, SubstitutionGroupHandler bSGHandler) throws XMLSchemaException {\n/* 1357 */ if (!checkOccurrenceRange(min1, max1, min2, max2)) {\n/* 1358 */ throw new XMLSchemaException(\"rcase-RecurseLax.1\", new Object[] {\n/* 1359 */ Integer.toString(min1), (max1 == -1) ? \"unbounded\" : \n/* 1360 */ Integer.toString(max1), \n/* 1361 */ Integer.toString(min2), (max2 == -1) ? \"unbounded\" : \n/* 1362 */ Integer.toString(max2)\n/* */ });\n/* */ }\n/* 1365 */ int count1 = dChildren.size();\n/* 1366 */ int count2 = bChildren.size();\n/* */ \n/* 1368 */ int current = 0;\n/* 1369 */ for (int i = 0; i < count1; i++) {\n/* */ \n/* 1371 */ XSParticleDecl particle1 = dChildren.elementAt(i);\n/* 1372 */ int j = current; while (true) { if (j < count2) {\n/* 1373 */ XSParticleDecl particle2 = bChildren.elementAt(j);\n/* 1374 */ current++;\n/* */ \n/* */ \n/* */ try {\n/* 1378 */ if (particleValidRestriction(particle1, dSGHandler, particle2, bSGHandler)) {\n/* 1379 */ current--;\n/* */ }\n/* */ break;\n/* 1382 */ } catch (XMLSchemaException xMLSchemaException) {}\n/* */ j++;\n/* */ continue;\n/* */ } \n/* 1386 */ throw new XMLSchemaException(\"rcase-RecurseLax.2\", null); }\n/* */ \n/* */ } \n/* */ }", "public static void main(String[] args) {\n\n MultiChildTreeNode<String> ff = new MultiChildTreeNode<>(\"F\");\n MultiChildTreeNode<String> iff = new MultiChildTreeNode<>(\"I\");\n ff.children.add(iff);\n MultiChildTreeNode<String> kff = new MultiChildTreeNode<>(\"K\");\n ff.children.add(kff);\n MultiChildTreeNode<String> t2 = ff;//Subtree to find\n\n //Main tree\n MultiChildTreeNode<String> t1 = new MultiChildTreeNode<>(\"A\");\n MultiChildTreeNode<String> b = new MultiChildTreeNode<>(\"B\");\n MultiChildTreeNode<String> c = new MultiChildTreeNode<>(\"C\");\n MultiChildTreeNode<String> d = new MultiChildTreeNode<>(\"D\");\n t1.children.add(b);\n t1.children.add(c);\n t1.children.add(d);\n\n MultiChildTreeNode<String> e = new MultiChildTreeNode<>(\"E\");\n MultiChildTreeNode<String> h = new MultiChildTreeNode<>(\"H\");\n e.children.add(h);\n\n MultiChildTreeNode<String> f = new MultiChildTreeNode<>(\"F\");\n b.children.add(f);\n MultiChildTreeNode<String> i = new MultiChildTreeNode<>(\"I\");\n f.children.add(i);\n MultiChildTreeNode<String> j = new MultiChildTreeNode<>(\"J\");\n f.children.add(j);\n\n\n /**\n * A\n * / | \\\n * B C.. D...\n * / |\n *E.. F\n * / \\\n * I J\n * |\n * F\n * / \\\n * I K\n */\n j.children.add(ff); //commenting out this line should give false otherwise true\n\n MultiChildTreeNode<String> k = new MultiChildTreeNode<>(\"K\");\n MultiChildTreeNode<String> g = new MultiChildTreeNode<>(\"G\");\n b.children.add(e);\n\n b.children.add(g);\n MultiChildTreeNode<String> l = new MultiChildTreeNode<>(\"L\");\n c.children.add(k);\n c.children.add(l);\n\n MultiChildTreeNode<String> m = new MultiChildTreeNode<>(\"M\");\n MultiChildTreeNode<String> n = new MultiChildTreeNode<>(\"N\");\n MultiChildTreeNode<String> o = new MultiChildTreeNode<>(\"O\");\n d.children.add(m);\n d.children.add(n);\n d.children.add(o);\n CheckForSubTree<String> checker = new CheckForSubTree<>();\n System.out.println (checker.isSubTree(t1, t2));\n }", "public String[] findPath(String[] dictionary, String startWord, String endWord) {\n // Use A queue to save all the words to check and use BFS\n LinkedList<String> queue = new LinkedList<>();\n queue.addFirst(startWord);\n // Use an ArrayList to save the words visited\n ArrayList<String> visited = new ArrayList<>();\n // Use an ArrayList to save the parents of the words (in visited)\n ArrayList<Integer> parent = new ArrayList<>();\n parent.add(-1);\n int index = 0;\n String current;\n boolean founded = false;\n while (!queue.isEmpty()){\n current = queue.removeFirst(); //Remove the first word\n int currentI = visited.size(); // Get index for saving parent\n visited.add(current);\n //Check all available words and save to the arrayList\n for (int i = 0; i < current.length(); i++) {\n //Replace from the first letter\n for (char j = 'A'; j <= 'Z'; j++) {\n char[] neww = current.toCharArray();\n neww[i] = j;\n String newWord = String.valueOf(neww);\n //Check if the new word is a valid word\n if (checkDict(newWord,dictionary)){\n //Check if visited or in queue\n if (visited.contains(newWord)||queue.contains(newWord)) continue;\n //Add into queue\n queue.addLast(newWord);\n //Record parents\n parent.add(currentI);\n //Check if equals to end\n if (newWord.compareTo(endWord)==0) {\n founded = true;\n break;\n }\n }\n }\n if (founded) break;\n }\n if (founded) break;\n }\n if (founded){\n LinkedList<Integer> stack = new LinkedList<>();\n stack.addFirst(parent.get(parent.size()-1));\n while (parent.get(stack.getFirst())!=-1){\n stack.addFirst(parent.get(stack.getFirst()));\n }\n int size = stack.size();\n String result[] = new String[size+1];\n result[0] = startWord;\n stack.removeFirst();\n for (int i = 1; i <size; i++) {\n result[i] = visited.get(stack.removeFirst());\n }\n result[size] = endWord;\n return result;\n }\n return new String[0];\n }", "private LinkedList<Integer> _findShortestPath(int source, int destination)\n{\n LinkedList<Integer> output = new LinkedList<Integer>();\n if (this.bellmanParent[destination] == source) {\n output.addFirst(destination);\n output.addFirst(source);\n return output;\n }\n /*\n * Our source is only part of the subtree, and we requested a node beyond\n * its reach. Lets flag it so that the calling function knows to ignore this\n * result.\n */\n if (this.bellmanParent[destination] == destination) {\n output.addFirst(-1);\n return output;\n }\n output = this._findShortestPath(source, this.bellmanParent[destination]);\n output.addLast(destination);\n return output;\n}", "public String findCheese(Place startingPoint) {\nif (startingPoint==null)\n\treturn null;\n\nvisited.add(startingPoint);\nStack<Place> vstdstack=new Stack<Place>();\nvstdstack.add(startingPoint);\n//Stack<c> pather=\"start->\";\nwhile(!vstdstack.isEmpty())\n{\n\tPlace curpos=getNextPlace(vstdstack.peek());\n if (curpos==null)\n {\n vstdstack.pop();\n soln.deleteCharAt(soln.length()-1);\n continue;\n }\n if(curpos.isCheese())\n return soln.toString();\n else \n vstdstack.push(curpos);\n \n}\nreturn null;\n}", "private int helper(List<List<Integer>> res, TreeNode root) {\n if (root == null) return -1;\n int left = helper(res, root.left);\n int right = helper(res, root.right);\n int curr = Math.max(left, right) + 1;\n if (res.size() == curr) res.add(new ArrayList<>());\n res.get(curr).add(root.val);\n return curr;\n }", "protected abstract StackManipulation preparation();", "@Override \n public boolean shouldTraverse(Traversal traversal, Exp e, Exp parent) {\n return true; \n }", "static long factorialRecurse(int n) {\r\n if (n == 0 || n == 1) {\r\n return 1;\r\n }\r\n return factorialRecurse(n - 1) * n;\r\n }", "private void helper(int[] S, int k, int p, ArrayList<ArrayList<Integer>> result, ArrayList<Integer> set) {\n if(k==0) {\n result.add(set);\n return;\n }\n if(S.length-p>=k) {\n ArrayList<Integer> newSet = new ArrayList<Integer>(set);\n newSet.add(S[p]);\n helper(S, k-1, p+1, result, newSet); //if S[p] be choosen\n helper(S, k, p+1, result, set); // if S[p] not be choosen\n }\n\n }", "void getInorderIteratively(Node node) {\n Stack<Node> stack = new Stack<Tree.Node>();\n if (node == null)\n return;\n Node current = node;\n while (!stack.isEmpty() || current != null) {\n // While the sub tree is not empty keep on adding them\n while (current != null) {\n stack.push(current);\n current = current.left;\n }\n // No more left sub tree\n Node temp = stack.pop();\n System.out.println(temp.data);\n // We now have to move to the right sub tree of the just popped out node\n current = temp.right;\n }\n\n }", "public ArrayList<E> postorderNoRecursion()\n {\n ArrayList<E> nonRecursivePostorder= new ArrayList<>();\n\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE POST ORDER TRAVERSAL OF THE TREE WITHOUT USING RECURSION AND RETURN THE RESULT TRAVEL SEQUENCE IN ARRAYLIST nonRecursivePostorder\n */\n\n return nonRecursivePostorder;\n }", "public static void levelOrderLinewise1(Node node){\r\n Queue<Node> mainq = new ArrayDeque<>();\r\n Queue<Node> childq = new ArrayDeque<>();\r\n \r\n //Adding root in mainq\r\n mainq.add(node);\r\n \r\n while(mainq.size()>0){\r\n //1. get + remove\r\n Node rem = mainq.remove();\r\n \r\n //2. Print \r\n System.out.print(rem.data + \" \");\r\n \r\n //3. Add children of node to Childq\r\n for(Node child : rem.children){\r\n childq.add(child);\r\n }\r\n \r\n //Check if size of mainq got 0 then print \"enter\" and swap the mainq and childq\r\n if(mainq.size()==0){\r\n System.out.println();\r\n Queue<Node> temp = new ArrayDeque<>();\r\n temp = mainq;\r\n mainq = childq;\r\n childq = temp;\r\n }\r\n }\r\n }", "private void enumterateAnagramsUnderEHelper(String whatsLeft,\n\t\t\tString parent, Set<String> returnSet,\n\t\t\tTreeNode dictPointer, TreeNode myParent) {\n\t\tif (whatsLeft.length() == 0 && dictPointer.getIsWord()) {\n\t\t\treturnSet.add(parent);\n\t\t} else {\n\t\t\tHashSet<Character> iveTriedSoFar = new HashSet<Character>();\n\t\t\tfor (int i = 0; i < whatsLeft.length(); i++) {\n\t\t\t\t// Make move\n\t\t\t\t// For each chracter left in whats left, remove that character\n\t\t\t\t// from whats left, and append it to the end of parent\n\t\t\t\tString moveMadeWhatsLeft = whatsLeft;\n\t\t\t\tif (i == 0) {\n\t\t\t\t\tmoveMadeWhatsLeft = moveMadeWhatsLeft.substring(1,\n\t\t\t\t\t\t\tmoveMadeWhatsLeft.length());\n\t\t\t\t} else if (i == moveMadeWhatsLeft.length() - 1) {\n\t\t\t\t\tmoveMadeWhatsLeft = moveMadeWhatsLeft.substring(0,\n\t\t\t\t\t\t\tmoveMadeWhatsLeft.length() - 1);\n\t\t\t\t} else {\n\t\t\t\t\tmoveMadeWhatsLeft = moveMadeWhatsLeft.substring(0, i)\n\t\t\t\t\t\t\t+ moveMadeWhatsLeft.substring(i + 1,\n\t\t\t\t\t\t\t\t\tmoveMadeWhatsLeft.length());\n\t\t\t\t}\n\t\t\t\tString moveMadeParent = parent + whatsLeft.charAt(i);\n\n\t\t\t\t// call recursive\n\t\t\t\tif (dictPointer.getChildContaining(whatsLeft.charAt(i)) != null\n\t\t\t\t\t\t&& !iveTriedSoFar.contains(whatsLeft.charAt(i))) {\n\t\t\t\t\tiveTriedSoFar.add(whatsLeft.charAt(i));\n\t\t\t\t\tenumterateAnagramsUnderEHelper(\n\t\t\t\t\t\t\tmoveMadeWhatsLeft,\n\t\t\t\t\t\t\tmoveMadeParent,\n\t\t\t\t\t\t\treturnSet,\n\t\t\t\t\t\t\tdictPointer.getChildContaining(whatsLeft.charAt(i)),\n\t\t\t\t\t\t\tdictPointer);\n\t\t\t\t} else {\n\t\t\t\t\t// Do not call method (skip that subtree) PRUNING! .. like a\n\t\t\t\t\t// boss\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "private void poetries() {\n\n\t}", "public interface TreeNode {\r\n\r\n /**\r\n * Function to return Code of this node.\r\n *\r\n * @return Character that is the code that the node represents.\r\n */\r\n Character getCode();\r\n\r\n /**\r\n * Method to add a child to a Tree node. The method returns reference to the node that was just\r\n * added or the node with the entered code if it was already present.\r\n *\r\n * @param node a treenode with the code to be added to the intermediate node\r\n * @return an already existing tree node with given code or create a new tree node and return it.\r\n */\r\n TreeNode addChild(TreeNode node);\r\n\r\n /**\r\n * Given a node with a character code, return the node in the tree with the same code.\r\n *\r\n * @param node the node with character to be checked for in the tree.\r\n * @return the node with code equal to the code of the parameter passed.\r\n */\r\n TreeNode returnNode(TreeNode node);\r\n\r\n /**\r\n * Given a size, check if all nodes in the tree have number of children equal to the size passed.\r\n *\r\n * @param size the value to be checked against.\r\n * @return true or false according to if the check passes or fails.\r\n */\r\n boolean isCodeComplete(int size);\r\n}", "public static void loopRecursion(int xPoint, int yPoint, String [][]arrMineExpanded, String [][]arrFile, String [][]returnProcess){\n //the idea here is that the point where i and j are both zero is already defined as \"[ ]\" so that it never goes\n //into an infinite recursion loop and so that it goes in a 9 large box that goes from -1 0 1 three high.\n for(int i=(-1); i<2; i++){\n for(int j=(-1); j<2; j++){\n \n if((arrMineExpanded[yPoint+i][xPoint+j] == \" \")&& returnProcess[yPoint+i][xPoint+j] == \"[?]\"){\n returnProcess[yPoint+i][xPoint+j] = \"[ ]\";\n loopRecursion(j, i, arrMineExpanded, arrFile, returnProcess);\n //here we check to make sure that the value isnt m or * and that the return process hasnt been \n //checked yet\n }else if(arrMineExpanded[yPoint+i][xPoint+j]!=\"m\" && \n arrMineExpanded[yPoint+i][xPoint+j]!=\"*\" && \n returnProcess[yPoint+i][xPoint+j] == \"[?]\" ){\n \n returnProcess[yPoint+i][xPoint+j] = \"[\" + arrMineExpanded[yPoint+i][xPoint+j] + \"]\";\n \n \n }\n }\n }\n }", "@Test\n public void test(){\n BinarySearchTree tree = new BinarySearchTree(new Node(35));\n\n tree.addNode(4);\n tree.addNode(15);\n tree.addNode(3);\n tree.addNode(1);\n tree.addNode(20);\n tree.addNode(8);\n tree.addNode(50);\n tree.addNode(40);\n tree.addNode(30);\n tree.addNode(80);\n tree.addNode(70);\n\n tree.addNode(90);\n\n tree.deleteNode(50);\n System.out.println(\"=====中序遍历 递归法=====\");\n TreeUtil.traverseInOrder(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====中序遍历 迭代法=====\");\n TreeUtil.traverseInOrderByIteration(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====前序遍历=====\");\n TreeUtil.traversePreOrder(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====中序遍历 迭代法=====\");\n TreeUtil.traversePreOrderByIteration(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====后序遍历=====\");\n TreeUtil.traversePostOrder(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====后序遍历 迭代法=====\");\n TreeUtil.traversePostOrderByIteration(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====层次遍历=====\");\n TreeUtil.traverseLevelOrder(tree.getRoot());\n\n int height = TreeUtil.getChildDepth(tree.getRoot());\n System.out.println(\"\");\n System.out.println(\"树高:\"+height);\n }", "boolean insertNode(RBTreeNode curr, RBTreeNode node) {\n int dir1 = curr.getDirection(node);\n int dir2 = dir1 ==0 ? 1 : 0;\n\n if(curr.children[dir1] == null) {\n curr.children[dir1] = node;\n return true;\n }\n\n if(isRedNode(curr)) {\n //Case 1: Case where we can flip colors and black height remains unchanged\n if(isRedNode(curr.children[dir1]) ) {\n if(isRedNode(curr.children[dir2])) {\n curr.children[dir1].isRed = true;\n curr.children[dir2].isRed = true;\n curr.isRed = false;\n return true;\n } else if(isRedNode(curr.children[dir1]) && isRedNode(curr.children[dir1].children[dir1])) { //Case 2 and 3 //single rotation\n //RBTreeNode temp = singleRotate(curr,dir1,dir1); //Java no pointers :( So need to copy the returned val\n //curr.update(temp);\n curr.update(singleRotate(curr,dir1,dir1));\n } else if(isRedNode(curr.children[dir1]) && isRedNode(curr.children[dir1].children[dir2])) { //Case 2 and 3 // double rotation\n //doubleRotate\n\n }\n } else {\n //do nothing as black height is unchanged and red red violation\n }\n }//not sure about braces\n\n return insertNode(curr.children[dir1],node);\n }", "private boolean recursiveHelper(Deque<Character> item) {\n if (item.size() <= 1) {\n return true;\n }\n if(item.removeFirst() == item.removeLast()) {\n return recursiveHelper(item);\n } else {\n return false;\n }\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n // int m = sc.nextInt();\n int n = sc.nextInt();\n Tree[] tree = new Tree[n];\n for (int i = 0; i < n; i++) {\n tree[i] = new Tree(i + 1, sc.nextInt());\n }\n // System.out.println(Arrays.toString(tree));\n\n // Arrays.sort(tree,(a,b)->b.num-a.num);\n StringBuilder sb = new StringBuilder();\n int first = 0;\n\n boolean shibai = false;\n\n while (first < n) {\n while (first < n && tree[first].num == 0) {\n first++;\n }\n int idx = first + 1;\n out:\n while (idx < n) {\n while (idx < n && tree[idx].num == 0) {\n idx++;\n\n }\n while (idx < n && first < n && tree[idx].num > 0 && tree[first].num > 0) {\n\n sb.append(tree[first].type)\n .append(\" \")\n .append(tree[idx].type)\n .append(\" \");\n tree[idx].num--;\n tree[first].num--;\n if (tree[first].num == 0) {\n first++;\n break out;\n }\n }\n }\n// System.out.println(Arrays.toString(tree));\n// System.out.println(idx);\n if (idx > n - 1) {\n if (tree[first].num == 0) break;\n if (tree[first].num == 1) {\n sb.append(tree[first].type);\n break;\n } else {\n System.out.println(\"-\");\n shibai = true;\n break;\n }\n }\n }\n\n// while (true){\n// if(tree[0].num==1){\n// sb.append(tree[0].type);\n// break;\n// }\n// if(tree[1].num==0){\n// System.out.println(\"-\");\n// shibai=true;\n// break;\n// }\n// while (tree[1].num>0){\n// sb.append(tree[0].type).append(\" \").append(tree[1].type).append(\" \");\n// tree[0].num--;\n// tree[1].num--;\n// }\n// //System.out.println(sb.toString());\n// // System.out.println(Arrays.toString(tree));\n// // Arrays.sort(tree,(a,b)->b.num-a.num);\n//\n// }\n if (!shibai) {\n System.out.println(sb.toString());\n }\n\n\n }", "private static HashSet<String> addElement(Map m, String key,int count) {\n\t\tIterator it = m.entrySet().iterator();\n\t\tHashSet<String> allParents=new HashSet<String>();\n\t\tHashSet<String> newNodeHS=new HashSet<String>();\n\t\tHashSet<String> receive=new HashSet<String>();\n\t\tString parent=\"\";\n\t\tif(readNodes.get(key)==null)\n\t\t{\n\t\t\tif(!(key.equals(root)))\n\t\t\t{\n\t\t\tallParents=(HashSet)m.get(key);\n\t\t\tIterator iter = allParents.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tparent=(String)iter.next();\n\t\t\t\tcount++;\n\t\t\t\treceive=addElement(m,parent,count);\n\t\t\t\tString str=key+\"-\"+parent;\n\t\t\t\tIterator toRecieve = receive.iterator();\n\t\t\t\twhile(toRecieve.hasNext())\n\t\t\t\t{\n\t\t\t\t\tnewNodeHS.add((String)toRecieve.next());\n\t\t\t\t}\n\t\t\t\tnewNodeHS.add(str);\n\t\t\t\tcount--;\n\t\t\t}\n\t\t\t\tif(count==0)\n\t\t\t\t{\n\t\t\t\t\tIterator<HashSet> iternew = totalDAG.iterator();\n\t\t\t\t\tHashSet<HashSet> inProgressDAG=new HashSet<HashSet>(totalDAG); \n\t\t\t\t\twhile (iternew.hasNext()) {\n\t\t\t\t\t HashSet<String> tillCreatedDAG=iternew.next();\n\t\t\t\t\t HashSet<String> union=new HashSet<String>(newNodeHS);\n\t\t\t\t\t union.addAll(tillCreatedDAG);\n\t\t\t\t\t inProgressDAG.add(union);\n\t\t\t\t\t}\n\t\t\t\t\ttotalDAG.clear();\n\t\t\t\t\ttotalDAG=inProgressDAG;\n\t\t\t\t\ttotalDAG.add(newNodeHS);\n\t\t\t\t\treadNodes.put(key, newNodeHS);\n\t\t\t\t\tSystem.out.println(\"Size: \" +totalDAG.size()+\" Nodes: \"+(++totalCount));\n\t\t\t\t\treturn newNodeHS;\n\t\t\t\t}\n\t\t\t\tcount--;\n\t\t\t\treturn newNodeHS;\t\n\t\t\t\t}\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString str=root;\n\t\t\t\t\tnewNodeHS.add(str);\n\t\t\t\t\tcount--;\n\t\t\t\t\treturn newNodeHS;\n\t\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn (HashSet)readNodes.get(key);\n\t\t}\n\t}", "@Override\n\tpublic void levelUp() {\n\n\t}", "private static void iddfs(State curr, int depth) {\n for(int i = 0; i <= depth; i++) {\r\n\r\n if(curr.isGoalState()) \r\n System.out.println(i+\":\"+curr.getOrderedPair()+\" Goal\");//initial is goal state\r\n else\r\n System.out.println(i+\":\"+curr.getOrderedPair());//initial\r\n\r\n curr.close.add(curr);\r\n State currState = curr;\r\n while(!currState.isGoalState()) {\r\n if(currState.depth < i)\r\n curr.buildStack(currState.getSuccessors(currState));\r\n System.out.print(i+\":\");\r\n curr.printHelp(currState, 5);\r\n if(!curr.open.isEmpty()) {\r\n currState = curr.open.get(curr.open.size()-1);\r\n curr.close.add(curr.open.remove(curr.open.size()-1));\r\n } else {\r\n break;\r\n }\r\n }\r\n\r\n if(currState.isGoalState()) {\r\n System.out.println(i+\":\"+currState.getOrderedPair() + \" Goal\");\r\n curr.printPath(currState);\r\n return;\r\n }\r\n curr.open.clear(); curr.close.clear();\r\n }\r\n }", "void pairwiseCombine(){\n\t\t\n\t\tmin.Left.Right = min.Right;\n\t\tmin.Right.Left = min.Left;\n\t\t/**\n\t\tPairwise combine differentiates itself in operation of depending on the presence of a child node\n\t\t*/\n\t\t\n\t\tif(min.Child==null){\n\t\t/*map acts as the table to store similar degree nodes*/\n\t\t\tHashMap<Integer, Nodefh> map = new HashMap<Integer, Nodefh>();\n\t\t\tcurrent = min.Right;\n\t\t\tmin = null;\n\t\t\tmin = current;\n\t\t\tlast = current.Left;\n\t\t\twhile(current!=last){\n\t\t\t\tNodefh check = new Nodefh();\n\t\t\t\tcheck = current.Right;\n\t\t\t\twhile(map.containsKey(current.degree)){\n\t\t\t\t\tNodefh temp = map.remove(current.degree);\n\t\t\t\t\t\n\t\t\t\t\t/*Since a parent node can have only one child node a condition is checked to update its child node*/\n\t\t\t\t\tif(temp.dist < current.dist){\n\t\t\t\t\t/*If the node stored is less than the incoming node*/\n\t\t\t\t\t\tcurrent.Right.Left = current.Left;\n\t\t\t\t\t\tcurrent.Left.Right = current.Right;\n\t\t\t\t\t\ttemp.ChildCut = false;\n\t\t\t\t\t\tif(temp.isChildEmpty()){\n\t\t\t\t\t\t\ttemp.Child = current;\n\t\t\t\t\t\t\tcurrent.Left = current.Right = current;\n\t\t\t\t\t\t\ttemp.Child.Parent = temp;\n\t\t\t\t\t\t\ttemp.degree = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tcurrent.Right = temp.Child;\n\t\t\t\t\t\t\tcurrent.Left = temp.Child.Left;\n\t\t\t\t\t\t\ttemp.Child.Left.Right = current;\n\t\t\t\t\t\t\ttemp.Child.Left = current;\n\t\t\t\t\t\t\tcurrent.Parent = temp;\n\t\t\t\t\t\t\tif(temp.Child == temp.Child.Right){\n\t\t\t\t\t\t\t\ttemp.Child.Right = current;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttemp.degree +=1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tcurrent = temp;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t/*If the incoming node is lower*/\n\t\t\t\t\t\ttemp.Right.Left = temp.Left;\n\t\t\t\t\t\ttemp.Left.Right = temp.Right;\n\t\t\t\t\t\tcurrent.ChildCut = false;\t\n\t\t\t\t\t\tif(current.isChildEmpty()){\n\n\t\t\t\t\t\t\tcurrent.Child = temp;\n\t\t\t\t\t\t\ttemp.Left = temp.Right = temp;\n\t\t\t\t\t\t\tcurrent.Child.Parent = current;\n\t\t\t\t\t\t\tcurrent.degree = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\ttemp.Right = current.Child;\n\t\t\t\t\t\t\ttemp.Left = current.Child.Left;\n\t\t\t\t\t\t\tcurrent.Child.Left.Right = temp;\n\t\t\t\t\t\t\tcurrent.Child.Left = temp;\n\t\t\t\t\t\t\ttemp.Parent = current;\n\t\t\t\t\t\t\tcurrent.degree +=1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif(min.dist >= current.dist){\n\t\t\t\t\tmin = current;\n\t\t\t\t}\n\t\t\t\tmap.put(current.degree, current);\n\t\t\t\tcurrent = check;\n\n\t\t\t}\n\t\t\tlast = min.Left;\n\t\t\t/*Since our condition is used only till last node and exits during last node the iteration is repeated for the last node*/\n\t\t\twhile(map.containsKey(current.degree)){\n\t\t\t\tNodefh temp = map.remove(current.degree);\n\t\t\t\tif(temp.dist < current.dist){\n\t\t\t\t\ttemp.ChildCut = false;\n\t\t\t\t\tcurrent.Right.Left = current.Left;\n\t\t\t\t\tcurrent.Left.Right = current.Right;\n\t\t\t\t\tif(temp.isChildEmpty()){\n\t\t\t\t\t\ttemp.Child = current;\n\t\t\t\t\t\tcurrent.Left = current.Right = current;\n\t\t\t\t\t\ttemp.Child.Parent = temp;\n\t\t\t\t\t\ttemp.degree = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tcurrent.Right = temp.Child;\n\t\t\t\t\t\tcurrent.Left = temp.Child.Left;\n\t\t\t\t\t\ttemp.Child.Left.Right = current;\n\t\t\t\t\t\ttemp.Child.Left = current;\n\t\t\t\t\t\tcurrent.Parent = temp;\n\t\t\t\t\t\ttemp.degree +=1;\n\t\t\t\t\t}\n\t\t\t\t\tcurrent = temp;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttemp.Right.Left = temp.Left;\n\t\t\t\t\ttemp.Left.Right = temp.Right;\n\t\t\t\t\tcurrent.ChildCut = false;\n\t\t\t\t\tif(current.isChildEmpty()){\n\t\t\t\t\t\tcurrent.Child = temp;\n\t\t\t\t\t\ttemp.Left = temp.Right = temp;\n\t\t\t\t\t\tcurrent.Child.Parent = current;\n\t\t\t\t\t\tcurrent.degree = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\ttemp.Right = current.Child;\n\t\t\t\t\t\ttemp.Left = current.Child.Left;\n\t\t\t\t\t\tcurrent.Child.Left.Right = temp;\n\t\t\t\t\t\tcurrent.Child.Left = temp;\n\t\t\t\t\t\ttemp.Parent = current;\n\t\t\t\t\t\tcurrent.degree +=1;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(min.dist >= current.dist){\n\t\t\t\tmin = current;\n\t\t\t}\n\t\t\tcurrent = min;\n\t\t\tlast = min.Left;\n\n\t\t}\n\t\telse{\n\t\t\tHashMap<Integer, Nodefh> map = new HashMap<Integer, Nodefh>();\n\t\t\tcurrent = min.Child;\n\t\t\tcurrent.Parent = null;\n\t\t\tif(min!=min.Right){\n\t\t\t\tcurrent.Right.Left = min.Left;\n\t\t\t\tmin.Left.Right = current.Right;\n\t\t\t\tcurrent.Right = min.Right;\n\t\t\t\tmin.Right.Left = current;\n\t\t\t\tlast = current.Left;\n\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tlast = current.Left;\n\n\t\t\t}\n\t\t\tmin =null;\n\t\t\tmin = current;\n\t\t\t/*In the presence of a child the child has to be inserted at the top level*/\n\t\t\twhile(current != last){\n\t\t\t\tNodefh check = new Nodefh();\n\t\t\t\tcheck = current.Right;\n\n\t\t\t\twhile(map.containsKey(current.degree)){\n\n\t\t\t\t\tNodefh temp = map.remove(current.degree);\n\t\t\t\t\tif(temp.dist < current.dist){\n\t\t\t\t\t\ttemp.ChildCut = false;\n\t\t\t\t\t\tcurrent.Right.Left = current.Left;\n\t\t\t\t\t\tcurrent.Left.Right = current.Right;\n\t\t\t\t\t\tif(temp.isChildEmpty()){\n\n\t\t\t\t\t\t\ttemp.Child = current;\n\t\t\t\t\t\t\tcurrent.Left = current.Right = current;\n\t\t\t\t\t\t\ttemp.Child.Parent = temp;\n\t\t\t\t\t\t\ttemp.degree = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tcurrent.Right = temp.Child;\n\t\t\t\t\t\t\tcurrent.Left = temp.Child.Left;\n\t\t\t\t\t\t\ttemp.Child.Left.Right = current;\n\t\t\t\t\t\t\ttemp.Child.Left = current;\n\t\t\t\t\t\t\tcurrent.Parent = temp;\n\t\t\t\t\t\t\ttemp.degree +=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrent = temp;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\ttemp.Right.Left = temp.Left;\n\t\t\t\t\t\ttemp.Left.Right = temp.Right;\n\t\t\t\t\t\tcurrent.ChildCut = false;\n\t\t\t\t\t\tif(current.isChildEmpty()){\n\t\t\t\t\t\t\tcurrent.Child = temp;\n\t\t\t\t\t\t\ttemp.Left = temp.Right = temp;\n\t\t\t\t\t\t\tcurrent.Child.Parent = current;\n\t\t\t\t\t\t\tcurrent.degree = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\ttemp.Right = current.Child;\n\t\t\t\t\t\t\ttemp.Left = current.Child.Left;\n\t\t\t\t\t\t\tcurrent.Child.Left.Right = temp;\n\t\t\t\t\t\t\tcurrent.Child.Left = temp;\n\t\t\t\t\t\t\ttemp.Parent = current;\n\t\t\t\t\t\t\tcurrent.degree +=1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(min.dist >= current.dist){\n\t\t\t\t\tmin = current;\n\n\t\t\t\t}\n\t\t\t\tmap.put(current.degree, current);\n\t\t\t\tcurrent = check;\n\t\t\t}\n\t\t\tlast = min.Left;\n\t\t\twhile(map.containsKey(current.degree)){\n\t\t\t\tNodefh temp = map.remove(current.degree);\n\t\t\t\tif(temp.dist < current.dist && temp.dist!=0){\n\t\t\t\t\tcurrent.Right.Left = current.Left;\n\t\t\t\t\tcurrent.Left.Right = current.Right;\n\t\t\t\t\ttemp.ChildCut = false;\n\t\t\t\t\tif(temp.isChildEmpty()){\n\t\t\t\t\t\ttemp.Child = current;\n\t\t\t\t\t\tcurrent.Left = current.Right = current;\n\t\t\t\t\t\ttemp.Child.Parent = temp;\n\t\t\t\t\t\ttemp.degree = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tcurrent.Right = temp.Child;\n\t\t\t\t\t\tcurrent.Left = temp.Child.Left;\n\t\t\t\t\t\ttemp.Child.Left.Right = current;\n\t\t\t\t\t\ttemp.Child.Left = current;\n\t\t\t\t\t\tcurrent.Parent = temp;\n\t\t\t\t\t\ttemp.degree +=1;\n\t\t\t\t\t}\n\t\t\t\t\tcurrent = temp;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttemp.Right.Left = temp.Left;\n\t\t\t\t\ttemp.Left.Right = temp.Right;\n\t\t\t\t\tcurrent.ChildCut = false;\n\t\t\t\t\tif(current.isChildEmpty()){\n\t\t\t\t\t\tcurrent.Child = temp;\n\t\t\t\t\t\ttemp.Left = temp.Right = temp;\n\t\t\t\t\t\tcurrent.Child.Parent = current;\n\t\t\t\t\t\tcurrent.degree = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\ttemp.Right = current.Child;\n\t\t\t\t\t\ttemp.Left = current.Child.Left;\n\t\t\t\t\t\tcurrent.Child.Left.Right = temp;\n\t\t\t\t\t\tcurrent.Child.Left = temp;\n\t\t\t\t\t\ttemp.Parent = current;\n\t\t\t\t\t\tcurrent.degree +=1;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(min.dist >= current.dist){\n\t\t\t\tmin = current;\n\n\t\t\t}\n\t\t\tcurrent = min;\n\t\t\tlast = min.Left;\n\t\t}\n\n\t}", "@Override\npublic boolean fjern(T verdi) {\n Node<T> curr = hode;\n while (curr != null) {\n if (curr.verdi.equals(verdi)) {\n if (antall == 1) {\n hode = hale = null;\n } else if (curr == hode) {\n hode = hode.neste;\n hode.forrige = null;\n } else if (curr == hale) {\n hale = hale.forrige;\n hale.neste = null;\n } else {\n curr.forrige.neste = curr.neste;\n curr.neste.forrige = curr.forrige;\n }\n antall--;\n endringer++;\n return true;\n }\n curr = curr.neste;\n }\n return false;\n}", "private static int fab_recursive_2(int kth) {\n\n\t\tif (kth == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (kth == 1) {\n\t\t\treturn fab_recursive_2(kth - 1) + 1;\n\t\t}\n\t\treturn fab_recursive_2(kth-1) + fab_recursive_2(kth-2);\n\t}", "public abstract int numOfSameTypeNeighbourToReproduce();", "private void level6() {\n }", "int minOperations(int[] arr) {\n // Write your code here\n Set<String> set = new HashSet<>();//store visited string\n Queue<String> queue = new LinkedList<>(); // store next strs\n int counter = 0;\n\n queue.offer(getKey(arr));\n set.add(getKey(arr));\n\n while (!queue.isEmpty()) {\n int size = queue.size();\n List<String> curs = new ArrayList<>();\n while (size > 0) {\n curs.add(queue.poll());\n size--;\n }\n\n for(String cur : curs) {\n if (isIncreasing(cur)) {\n return counter;\n }\n\n for(int i = 0; i < cur.length(); i++) {\n String next = reverseString(cur, i);\n if (!set.contains(next)) {\n set.add(next);\n queue.offer(next);\n }\n }\n }\n\n counter++;\n }\n\n return counter;\n }", "private void moveRecursiveHelper (double pixels) {\n if (pixels <= 0 + PRECISION_LEVEL) return;\n \n Location currentLocation = getLocation();\n Location nextLocation = getLocation();\n Location nextCenter = nextLocation;\n nextLocation.translate(new Vector(getHeading(), pixels));\n Location[] replacements = { nextLocation, nextCenter };\n \n if (nextLocation.getY() < 0) {\n // top\n replacements = overrunsTop();\n }\n else if (nextLocation.getY() > myCanvasBounds.getHeight()) {\n // bottom\n replacements = overrunBottom();\n }\n else if (nextLocation.getX() > myCanvasBounds.getWidth()) {\n // right\n replacements = overrunRight();\n }\n else if (nextLocation.getX() < 0) {\n // left\n replacements = overrunLeft();\n }\n \n nextLocation = replacements[0];\n nextCenter = replacements[1];\n \n setCenter(nextCenter);\n double newPixels = pixels - (Vector.distanceBetween(currentLocation, nextLocation));\n if (myPenDown) {\n myLine.addLineSegment(currentLocation, nextLocation);\n }\n moveRecursiveHelper(newPixels);\n \n }", "private void inOrderTraversal(StringBuilder sb) {\n if (left != null) {\n left.inOrderTraversal(sb);\n }\n\n sb.append(data + \" \");\n\n\n if (right != null) {\n right.inOrderTraversal(sb);\n }\n }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "private void getKingJumpPos(Point kingPoint, Orientation or, Movement m, JumpPosition jumpPosit,Color c, boolean b) throws CloneNotSupportedException {\n Point foo = jumpPosit.jumpPosition.get(jumpPosit.jumpPosition.size()-1).to;\n Color oposite = c==Color.black?Color.red:Color.black;\n \n Point soldierPoint , nextPoint;\n for(OrientationMove orM:orientationMoveCombs){\n Point currentPoint = foo;\n for(int i=0;i<8;i++){\n if(i!=0) currentPoint = getXandYgivenOrientation(currentPoint, orM.or,orM.m);\n if( !isValidSquare(currentPoint.x, currentPoint.y)) \n break;\n if( !isEmpty(new Soldier(currentPoint.x, currentPoint.y, Color.white), gamePieces)) \n break;\n //soldierPoint = getXandYgivenOrientation(currentPoint, or,m);\n\n soldierPoint = getXandYgivenOrientation(currentPoint, orM.or,orM.m);\n nextPoint = getXandYgivenOrientation(soldierPoint, orM.or,orM.m);\n Soldier foe = new Soldier(soldierPoint.x, soldierPoint.y, oposite);\n if(isJumpable(soldierPoint, orM.or, orM.m, c , jumpPosit))\n addAllRelevantSquares(jumpPosit, foo, nextPoint, soldierPoint, orM.or, orM.m ,oposite );\n\n\n nextPoint = getXandYgivenOrientation(soldierPoint, or,m);\n if(!isEmpty(soldierPoint, gamePieces, jumpPosit.jumpPosition)\n &&!isEmpty(nextPoint, gamePieces, jumpPosit.jumpPosition)) break; \n }\n }\n \n \n \n //If it is, add it to the movement path\n// if(isJumpable(soldierPoint, or, m, c , jumpPositions)){ \n// addOnlyToTempJumpPositions(foo, getXandYgivenOrientation(soldierPoint, or,m) , soldierPoint ,jumpPosit , or, m);\n// }\n \n }", "public static void levelOrderLinewiseZZ(Node node){\n Stack<Node> st1= new Stack<>();\n Stack<Node> st2= new Stack<>();\n\n int cnt=0;\n st1.push(node);\n\n while(st1.size()>0)\n {\n int n= st1.size();\n if(cnt%2==0){\n while(n>0) {\n Node nn=st1.pop();\n System.out.print(nn.data+\" \");\n for (int i = 0; i < nn.children.size(); i++) {\n st2.push(nn.children.get(i));\n }\n n--;\n }\n }\n else{\n while(n>0){\n Node nn=st1.pop();\n System.out.print(nn.data+\" \");\n for(int i=nn.children.size()-1;i>=0;i--)\n {\n st2.push(nn.children.get(i));\n }\n n--;\n }\n }\n System.out.println();\n cnt++;\n Stack<Node> temp=st1;\n st1=st2;\n st2=temp;\n }\n\n\n }", "ArrayList< LinkedList< Node > > levellist(Node root)\n{\n\t//results contain all the linkedlists containing all the nodes on each level of the tree\n\tArrayList< LinkedList< Node > > results = new ArrayList< LinkedList< Node > > ();\n\t//basic condition for the following built-in calling of recursive\n\tlevellist(root, results, 0);\n\t//because results is used as a parameter in the recursive and then we all need to return the output\n\treturn results;\n}", "public void k()\r\n/* 238: */ {\r\n/* 239:258 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 240:259 */ if (this.a[i] != null) {\r\n/* 241:260 */ this.a[i].a(this.d.o, this.d, i, this.c == i);\r\n/* 242: */ }\r\n/* 243: */ }\r\n/* 244: */ }", "public void levelOrderTraversalBruteForce(){\n System.out.println(\"levelOrderTraversalBruteForce\");\n\n for(int level = 1; level <=height(); level++){\n printLevel(level);\n }\n System.out.println();\n }", "public abstract boolean levelUp();", "public static void main(String[] args) {\n String[] user0 = {\"/start\", \"/pink\", \"/register\", \"/orange\", \"/red\", \"a\"};\n String[] user1 = {\"/start\", \"/green\", \"/blue\", \"/pink\", \"/register\", \"/orange\", \"/one/two\"};\n String[] user2 = {\"a\", \"/one\", \"/two\"};\n String[] user3 = {\"/red\", \"/orange\", \"/yellow\", \"/green\", \"/blue\", \"/purple\", \"/white\", \"/amber\", \"/HotRodPink\", \"/BritishRacingGreen\"};\n String[] user4 = {\"/red\", \"/orange\", \"/amber\", \"/green\", \"/blue\", \"/purple\", \"/white\", \"/lavender\", \"/HotRodPink\", \"/BritishRacingGreen\"};\n String[] user5 = {\"a\"};\n\n// out.println(rawr(user0, user1));\n// out.println(rawr(user1, user2));\n// out.println(rawr(user2, user0));\n// out.println(rawr(user5, user2));\n out.println(rawr(user3, user4));\n// out.println(rawr(user4, user3));\n\n P1 c=new P1();\n c.findContiguousHistory(user0, user1);\n c.findContiguousHistory(user1, user2);\n c.findContiguousHistory(user2, user0);\n c.findContiguousHistory(user5, user2);\n c.findContiguousHistory(user3, user4);\n\n // below scenaro is tricky because amber match later and user3 string. We have to come back again.\n // String[] user4 = {\"/red\", \"/orange\", \"/amber\", \"/green\", \"/blue\", \"/purple\", \"/white\", \"/lavender\", \"/HotRodPink\", \"/BritishRacingGreen\"};\n // String[] user3 = {\"/red\", \"/orange\", \"/yellow\", \"/green\", \"/blue\", \"/purple\", \"/white\", \"/amber\", \"/HotRodPink\", \"/BritishRacingGreen\"};\n\n c.findContiguousHistory(user4, user3);\n }", "@Override\n\tpublic void preBacktrack() {\n\t\t\n\t}", "private static void helper(TreeNode root, int curSum, int curLen) {\n if (root == null) {\n if (maxLen < curLen) {\n maxLen = curLen;\n maxSum = curSum;\n } else if (maxLen == curLen && maxSum < curSum) {\n maxSum = curSum;\n }\n return;\n }\n\n // do this for left and right\n helper(root.left,curSum + root.val, curLen + 1);\n helper(root.right,curSum + root.val, curLen + 1);\n }" ]
[ "0.5636984", "0.5562669", "0.5522478", "0.550733", "0.54973805", "0.5454202", "0.5450925", "0.54262125", "0.534992", "0.53497845", "0.5349613", "0.5342725", "0.5336694", "0.53117883", "0.529355", "0.52728826", "0.52643085", "0.5257328", "0.5248396", "0.5246978", "0.5232954", "0.5226867", "0.52205324", "0.5213086", "0.52085245", "0.52069676", "0.5193746", "0.51881516", "0.51780003", "0.51775026", "0.5165079", "0.5164004", "0.5146491", "0.51432794", "0.51338047", "0.5130735", "0.51304954", "0.5129329", "0.51269007", "0.5124498", "0.5118807", "0.5111926", "0.51117986", "0.51073956", "0.5104426", "0.5103605", "0.51002955", "0.51002955", "0.51002955", "0.5094157", "0.50910145", "0.508695", "0.50824535", "0.5078958", "0.50719494", "0.5070931", "0.50699484", "0.5064106", "0.5060203", "0.5052385", "0.50445", "0.5042957", "0.5038595", "0.50349057", "0.50341475", "0.5022152", "0.50189006", "0.5016696", "0.5004026", "0.4994732", "0.49931994", "0.4992767", "0.4992663", "0.49876338", "0.49837092", "0.49810848", "0.49772686", "0.4971777", "0.4970527", "0.49685565", "0.4968019", "0.496387", "0.49582288", "0.4958085", "0.49562246", "0.49558392", "0.49523252", "0.49521405", "0.49511582", "0.49505848", "0.49494278", "0.49479762", "0.4943813", "0.49423724", "0.4940066", "0.4934889", "0.49325818", "0.4929194", "0.49215966", "0.49191612", "0.49189404" ]
0.0
-1
Restore the previously serialized current dropdown position.
@Override public void onRestoreInstanceState(Bundle savedInstanceState) { if (savedInstanceState.containsKey(STATE_SELECTED_NAVIGATION_ITEM)) { getActionBar().setSelectedNavigationItem( savedInstanceState.getInt(STATE_SELECTED_NAVIGATION_ITEM)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void restoreTreeSelection() {\n _spTree.setIgnoreSelection(true);\n tree.setSelectionPaths(selections);\n\n // Restore the lead selection\n if (leadSelection != null) {\n tree.removeSelectionPath(leadSelection);\n tree.addSelectionPath(leadSelection);\n }\n\n _spTree.setIgnoreSelection(false);\n }", "public void restoreState() {\n\t\tsuper.restoreState();\n\t}", "public void restoreState() \n\t{\n\t\tsuper.restoreState();\n\t}", "@Override\n public void restore() {\n }", "public void restore() {\n setOrientation(0);\n setCropRect(getMaxCenteredCropRect(), false);\n autoZoom(true);\n }", "public void resetParents() {\n stateProvinceIDController.setSelected(null);\n }", "@Override\r\n\tpublic void cleanup() {\r\n\t\tlevelList.setSelectedIndex(0);\t\t\r\n\t}", "public abstract void restore();", "void restoreFormState();", "private void restoreState() {\n if (savedState != null) {\n// For Example\n//tv1.setText(savedState.getString(\"text\"));\n onRestoreState(savedState);\n }\n }", "@Override\n public void undo(){\n this.parent.getSelectedArea().clear();\n }", "protected void saveTreeSelection() {\n selections = tree.getSelectionPaths();\n leadSelection = tree.getLeadSelectionPath();\n _spTree.setIgnoreSelection(true);\n tree.clearSelection();\n _spTree.setIgnoreSelection(false);\n }", "public void resetDrag(){\n\t\tsetCurrentPosition( new Point(0,0) );\n\t\tsetScale(1);\n\t\tlengthsYShift = defaultYShift;\n\t}", "public void resetParents() {\n idemenController.setSelected(null);\n }", "private void prevSelect() {\n\t\tif (selectionIndex - 1 < 0) {\n\t\t\tselectionIndex = selections.size() - 1;\n\t\t} else {\n\t\tselectionIndex--;\n\t\t}\n\t\tselected.setVisible(true);\n\t\tselected = selections.get(selectionIndex);\n\t\t\n\t}", "public void reset(){\n\t\tthis.currentIndex = 0;\n\t}", "public void resetPosition()\n {\n resetPosition(false);\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n if (mPosition != ListView.INVALID_POSITION) {\n outState.putInt(SELECTED_KEY, mPosition);\n }\n super.onSaveInstanceState(outState);\n }", "@Override\n public void restore() {\n // Rather than copying the stored stuff back, just swap the pointers...\n int[] iTmp1 = m_iCurrentMatrices;\n m_iCurrentMatrices = m_iStoredMatrices;\n m_iStoredMatrices = iTmp1;\n\n int[] iTmp2 = m_iCurrentPartials;\n m_iCurrentPartials = m_iStoredPartials;\n m_iStoredPartials = iTmp2;\n\n// int[] iTmp3 = m_iCurrentStates;\n// m_iCurrentStates= m_iStoredStates;\n// m_iStoredStates = iTmp3;\n }", "private void restoreSelectedTargetLayer() {\n\n\t\tif (currentNewLayerName != null) {\n\t\t\tthis.comboTargetLayer.setText(currentNewLayerName);\n\t\t} else if (currentTargetLayer != null) {\n\t\t\tint index = this.comboTargetLayer.indexOf(this.currentTargetLayer.getName());\n\t\t\tif (index != -1) {\n\t\t\t\tthis.comboTargetLayer.select(index);\n\t\t\t}else{\n\t\t\t\tcurrentTargetLayer=null;\n\t\t\t\tvalidateParameters();\n\t\t\t}\n\t\t}\n\t}", "public void doRevertToSaved()\n {\n super.doRevertToSaved();\n revalidateSyntax();\n }", "public void reset()\n {\n // put your code here\n position = 0;\n order = \"\";\n set[0] = 0;\n set[1] = 0;\n set[2] = 0;\n }", "private final void restoreOriginalGraph() {\n // Safeguard against multiple restores\n if (startIndex == -1) return;\n \n markEdgesFrom(startIndex, false);\n markEdgesFrom(endIndex, false);\n markHasEdgeToGoal(false);\n nOutgoingEdgess[endIndex] = endOriginalSize;\n nOutgoingEdgess[startIndex] = startOriginalSize;\n nEdges = originalNEdges;\n\n nNodes = originalSize;\n startIndex = -1;\n endIndex = -1;\n }", "public void reset() {\n position = 0;\n }", "public final void restoreValueOriginal(){\n wChanged = false;\n try {\n wValue = this.getValueOriginal();\n wValueOriginal = wValue;\n setMessage(null);\n\t\t} catch (Exception xE) {\n\t\t\twLogger.error(xE);\n\t\t}\n }", "public void toBack() {\n internalGroup.toBack();\n dataTrait.zIndex = internalGroup.getZIndex();\n }", "public void setLastSelectedIndex() {\n\t\tsetSelectedIndex(selectedIndex);\n\t}", "public void goBack() {\n setEditor(currentEditor.getParentEditor());\n }", "public void recoverFromSlide(){\n\t\tclearAnimation();\n\t\tsetLayoutParams(saveParams);\n\t}", "public void setPosition(){\r\n currentPosition = 0; \r\n }", "public void resetToCurrent() {\n if (_option != null) {\n setValue(DrJava.getConfig().getSetting(_option));\n }\n }", "private void outRestore() throws IOException {\n if (lastWriteOffset > 0) {\n outSeek(lastWriteOffset);\n lastWriteOffset = -1;\n }\n }", "private void resortAndReselectTreeGrid() {\n resortAndReselectTreeGrid(null);\n }", "@Override\n public void saveCurrent()\n {\n MazeInfo mi = (MazeInfo) mOpenMazes.getList().getSelectedValue();\n if (mi != null)\n {\n mi = mi.saveMaze();\n mOpenMazes.getList().setSelectedValue(mi, true);\n }\n }", "public final void restoreValueDefault(){\n wChanged = false;\n //T xValueDefault = getValueDefault();\n try {\n wValue = this.getValueDefault(); //xValueDefault;\n wValueOriginal = wValue;\n setMessage(null);\n\t\t} catch (Exception xE) {\n\t\t\twLogger.error(xE);\n\t\t}\n }", "public static void showPreviousOptions() {\r\n\t\tGameOptions.bagValue.select(Main.bagValue);\r\n\t\tGameOptions.nilValueTextField.setText(Main.nilValue);\r\n\t\tGameOptions.doubleNilValueTextField.setText(Main.doubleNilValue);\r\n\t\tGameOptions.winScoreTextField.setText(Main.winScore);\r\n\t\tGameOptions.loseScoreTextField.setText(Main.loseScore);\r\n\t}", "public void reset()\n {\n currentPosition = 0;\n }", "public void resetSearchSelection() {\n this.quantSearchSelection = null;\n SelectionChanged(\"reset_quant_searching\");\n }", "public void resetParents() {\n businessentityController.setSelected(null);\n }", "@Override\n public void setSelectedPosition(int selectedPosition, int savedPosition)\n {\n Log.i(Constant.TAG, \"setSelectedPosition - Selected Position : \" + selectedPosition);\n Log.i(Constant.TAG, \"setSelectedPosition - Saved Position : \" + savedPosition);\n selectedPosArray[savedPosition] = selectedPosition;\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n Log.d(TAG, \"Restore called\");\n super.onSaveInstanceState(outState);\n outState.putString(SORT_ORDER_KEY, currentSortOrder);\n outState.putParcelable(STATE_KEY, recyclerView.getLayoutManager().onSaveInstanceState());\n }", "public void resetEncoder() {\n spark_encoder.setPosition(0);\n }", "public void resetParents() {\n idDepartamentoController.setSelected(null);\n }", "public void setSeletedItemPosition(int position){\n\t\tif(mAdapter.getCount() == 0 && position == 0) position = -1;\n\t\tif(position < -1 || position > mAdapter.getCount()-1)\n\t\t\tthrow new IllegalArgumentException(\"Position index must be in range of adapter values (0 - getCount()-1) or -1 to unselect\");\n\t\t\n\t\tmSelectedPosition = position;\n\t}", "public void discardAndGoBack() {\n try {\n currentEditor.setValue(null);\n if (currentEditor instanceof RestrictedEntityEditor) {\n ((RestrictedEntityEditor) currentEditor).refreshListOfValues();\n }\n } catch (Exception ex) {\n throw new RuntimeException(\"Exception while discarding value of an editor. \", ex);\n }\n goBack();\n }", "private void restoreSelectedLandmark(List<HistoricLandmarkDistanceSelect> landmarks) {\n int position = mSelectedPositionId.position;\n if (position >= 0 && position < landmarks.size()) {\n HistoricLandmarkDistanceSelect landmarkDistanceSelect = landmarks.get(position);\n // Previously selected is still in the same position\n if (landmarkDistanceSelect.landmark.id == mSelectedPositionId.id) {\n landmarkDistanceSelect.isSelected = true;\n }\n // A different landmark is in the previously selected position\n else {\n mSelectedPositionId = PositionId.NO_POSITION_ID;\n }\n\n }\n // Previously selected position is now out of bounds\n else {\n mSelectedPositionId = PositionId.NO_POSITION_ID;\n }\n }", "public void reset(){\n currentStage = 0;\n currentSide = sideA;\n }", "public final void restore() {\r\n\t\tbi_image.restore();\r\n\t}", "public void restore() {\n currentIm= originalIm.copy();\n }", "public void resetParents() {\n manufacturerIdController.setSelected(null);\n productCodeController.setSelected(null);\n }", "private void restoreBBSStepExplorerPanel() {\n \n // Global Settings parameters\n if(itsBBSStep != null){\n this.stepExplorerStepNameText.setText(itsBBSStep.getName());\n this.fillBBSGui(itsBBSStep);\n }\n }", "public void restoreFromFile()\n\t{\n rectForSelection = new Rectangle2D.Double(rettangoloX,rettangoloY,larghezza,altezza);\n rectSelTopLeft = new Rectangle2D.Double(rettangoloX-3,rettangoloY-3,6,6);\n rectSelBottomLeft = new Rectangle2D.Double(rettangoloX-3,rettangoloY+altezza-3,6,6);\n rectSelTopRight = new Rectangle2D.Double(rettangoloX+larghezza-3,rettangoloY-3,6,6);\n rectSelBottomRight = new Rectangle2D.Double(rettangoloX+larghezza-3,rettangoloY+altezza-3,6,6);\t\t\n\t}", "public void resetParents() {\n seqTurnoController.setSelected(null);\n seqPessoaController.setSelected(null);\n seqEscolaController.setSelected(null);\n seqAnoController.setSelected(null);\n }", "public void resetParents() {\n seguimientoController.setSelected(null);\n programaAnoController.setSelected(null);\n }", "@Override\r\n\tpublic void onRestoreInstanceState(Bundle savedInstanceState) {\n\t\tif (savedInstanceState.containsKey(STATE_SELECTED_NAVIGATION_ITEM)) {\r\n\t\t\tgetActionBar().setSelectedNavigationItem(\r\n\t\t\t\t\tsavedInstanceState.getInt(STATE_SELECTED_NAVIGATION_ITEM));\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void onRestoreInstanceState(Bundle savedInstanceState) {\n\t\tif (savedInstanceState.containsKey(STATE_SELECTED_NAVIGATION_ITEM)) {\r\n\t\t\tgetActionBar().setSelectedNavigationItem(\r\n\t\t\t\t\tsavedInstanceState.getInt(STATE_SELECTED_NAVIGATION_ITEM));\r\n\t\t}\r\n\t}", "protected void restorePrefs ()\n {\n final String p = getConfigKey();\n\n // restore/bind window bounds\n _eprefs.bindWindowBounds(p, this);\n\n // restore/bind the location of the divider\n _eprefs.bindDividerLocation(p + \"div\", _split);\n\n // restore/bind the selected group\n String cat = _prefs.get(p + \"group\", null);\n for (int tab = _tabs.getComponentCount() - 1; tab >= 0; tab--) {\n final JComboBox gbox = ((ManagerPanel)_tabs.getComponentAt(tab)).gbox;\n if (cat != null) {\n for (int ii = 0, nn = gbox.getItemCount(); ii < nn; ii++) {\n if (cat.equals(String.valueOf(gbox.getItemAt(ii)))) {\n gbox.setSelectedIndex(ii);\n break;\n }\n }\n }\n gbox.addActionListener(new ActionListener() {\n public void actionPerformed (ActionEvent event) {\n _prefs.put(p + \"group\", String.valueOf(gbox.getSelectedItem()));\n }\n });\n }\n\n // restore color\n setBackground(((ConfigEditorPrefs)_eprefs).getBackgroundColor());\n }", "public void resetParents() {\n oferenteController.setSelected(null);\n expedienteprocesoController.setSelected(null);\n }", "public void resetParents() {\n idEmpleadoController.setSelected(null);\n idEquipoController.setSelected(null);\n idUsuarioController.setSelected(null);\n }", "public void restore(String state) {\n try {\n byte[] data = Base64.getDecoder().decode(state);\n ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(data));\n widgets = new ArrayList<Widget>();\n int cnt = in.readInt(); // size of array list\n// System.out.println(\"widgets: \" + cnt);\n Widget w = null;\n String widgetType = null;\n for (int i=0; i<cnt; i++) {\n widgetType = (String)in.readObject();\n w = WidgetFactory.getInstance().createWidget(widgetType,0,0);\n w.readObject(in, widgetType);\n widgets.add(w);\n PropManager.getInstance().addPropEditor(w.getModel());\n// TreeView.getInstance().addWidget(getKey(), w.getKey());\n }\n in.close();\n selectedCnt = 0;\n selectedGroupCnt = 0;\n repaint();\n } catch (ClassNotFoundException e) {\n System.out.println(\"ClassNotFoundException occurred.\");\n e.printStackTrace();\n } catch (IOException e) {\n System.out.println(\"IOException occurred.\" + e.toString());\n System.out.flush();\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic void onSaveInstanceState(Bundle outState) {\n\t\toutState.putInt(STATE_SELECTED_NAVIGATION_ITEM, getActionBar()\r\n\t\t\t\t.getSelectedNavigationIndex());\r\n\t}", "@Override\r\n\tpublic void onSaveInstanceState(Bundle outState) {\n\t\toutState.putInt(STATE_SELECTED_NAVIGATION_ITEM, getActionBar()\r\n\t\t\t\t.getSelectedNavigationIndex());\r\n\t}", "@Override\n protected void onResume() {\n getData();\n SharedPref.getInstance().put(Constants.DIVIDE_SELECTED_POS,-1);\n super.onResume();\n }", "@Override\n\tpublic void onSaveInstanceState(Bundle outState) {\n\t\toutState.putInt(STATE_SELECTED_NAVIGATION_ITEM, getSupportActionBar()\n\t\t\t\t.getSelectedNavigationIndex());\n\t}", "public void restoreState(IMemento memento) {\n\t\t\r\n\t}", "public void resetCurrentlySelectedObject() {\n this.currentlySelectedObject.setTransparency(255);\n this.currentlySelectedObject = null;\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n outState.putInt(STATE_SELECTED_NAVIGATION_ITEM,\n getActionBar().getSelectedNavigationIndex());\n }", "public void restore() {\r\n for (int i = 0; i < 24; i++) {\r\n int staticLevel = getStaticLevel(i);\r\n setLevel(i, staticLevel);\r\n }\r\n if (entity instanceof Player) {\r\n ((Player) entity).getActionSender().sendSound(new Audio(2674));\r\n }\r\n rechargePrayerPoints();\r\n }", "@Override\n public void restore() {\n graphicsEnvironmentImpl.restore(canvas);\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putInt(CURRENT_FRAGMENT, navigation.getSelectedItemId());\n }", "@Override\n\tpublic void onRestoreInstanceState(Bundle savedInstanceState) {\n\t\tif (savedInstanceState.containsKey(STATE_SELECTED_NAVIGATION_ITEM)) {\n\t\t\tgetSupportActionBar().setSelectedNavigationItem(\n\t\t\t\t\tsavedInstanceState.getInt(STATE_SELECTED_NAVIGATION_ITEM));\n\t\t}\n\t}", "public void resetParents() {\n frecuenciaServicioIdPeriodoController.setSelected(null);\n frecuenciaServicioIdServicioController.setSelected(null);\n frecuenciaServicioIdTipoDemandaController.setSelected(null);\n frecuenciaServicioIdTipoDiaController.setSelected(null);\n }", "private void restoreStyle() {\n if(this.backedup) {\n this.backedup = false;\n\n this.currentFillColor = this.lastFillColor;\n DOM.setStyleAttribute(fill.getElement(), \"backgroundColor\",currentFillColor.toCss(false));\n this.fillOpacity.setValue(this.lastFillOpacity);\n this.currentFillColor.setAlpha(this.fillOpacity.getValue());\n\n this.currentStrokeColor = this.lastStrokeColor;\n DOM.setStyleAttribute(stroke.getElement(), \"backgroundColor\",currentStrokeColor.toCss(false));\n this.strokeOpacity.setValue(this.lastStrokeOpacity);\n this.currentStrokeColor.setAlpha(this.strokeOpacity.getValue());\n\n this.currentStrokeSize.setValue(this.lastStrokeSize);\n }\n }", "public void resetSelectPresentation();", "void restoreCategory(Category category);", "private void restoreSavedValues() {\n // Find previous times and put them into the layout\n populateTimes();\n fromExisting = preferences.getBoolean(\"fromExisting\", false);\n // If there is a saved comment, put it into the EditText box\n selectedTimeSetId = preferences.getInt(\"SelectedTimeSet\", -1);\n if (selectedTimeSetId != -1) {\n commentBox.setText(DBQueries.getCommentFromTimeset(selectedTimeSetId, database));\n }\n }", "@Override\n public void restoreState(Map<String, Object> state) {\n\n }", "public void selectionDown() {\n\t\tselectedSlotPosY = (selectedSlotPosY == 0) ? C.MENU_INVENTORY_ITEM_SLOT_HEIGHT - 1 : selectedSlotPosY-1;\n\t}", "void unsetValue();", "void unsetValue();", "public void resetSelectedSensors(){\n kFrontLeft.setSelectedSensorPosition(0,PID_IDX,0);\n kRearLeft.setSelectedSensorPosition(0,PID_IDX,0);\n kFrontRight.setSelectedSensorPosition(0,PID_IDX,0);\n kRearRight.setSelectedSensorPosition(0,PID_IDX,0);\n }", "public static void back() {\n\t\tString[] parts = MenuPath.path.split(\"_\");\n\t\tint len = parts.length;\n\t\t\n\t\tMenuPath.path = parts[0];\n\t\t\n\t\tfor(int i = 1; i < (len - 1); i++) {\t\t\t\n\t\t\tMenuPath.path = MenuPath.path + \"_\" + parts[i];\n\t\t}\t\n\t}", "void unsetControlPosition();", "public void restore(TabbedEvent te) {\n\n\t}", "public void reset() {\n this.setIndex(0);\n }", "public String setBack(){\n\t\tif(back.empty())\n\t\t\treturn null;\n\t\treturn back.pop();\n\t}", "@Override\n public void onBackPressed() {\n\n if ( recyclerViewAdapter.checkIfAnyItemSelected()) {\n recyclerViewAdapter.clearSelection();\n selectedSkillsLData.setValue(recyclerViewAdapter.getSelectedItems());\n }\n else {\n super.onBackPressed();\n }\n }", "public void resetParents() {\n trabajadorAdicionalSaludIdMonedaController.setSelected(null);\n trabajadorAdicionalSaludIdTrabajadorController.setSelected(null);\n }", "public void reset() {\n price = 0;\n itemNumbers.clear();\n selectedOptions.clear();\n setupGUI();\n }", "public void restore() {\n if (isMaximized()) {\n getRestoreButton().click();\n } else {\n throw new IllegalStateException(\n \"Window is not maximized, cannot be restored.\");\n }\n }", "private void reset() {\n\t\tlevel.getLogic().resetBoard();\n\t\tlevelView.refresh();\n\t\tlevelView.clearSelectedWords();\n\t}", "public void reinsertSelect()\r\n {\n\r\n HTMLSelectElement selectElem = comp.getHTMLSelectElement();\r\n comp.dispose();\r\n\r\n ((EventTarget)addRowsElem).removeEventListener(\"click\",this,false);\r\n ((EventTarget)removeRowsElem).removeEventListener(\"click\",this,false);\r\n ((EventTarget)reinsertSelect).removeEventListener(\"click\",this,false);\r\n ((EventTarget)changeOptions).removeEventListener(\"click\",this,false);\r\n\r\n Node parentNode = selectElem.getParentNode();\r\n Node nextNode = selectElem.getNextSibling();\r\n parentNode.removeChild(selectElem);\r\n parentNode.insertBefore(selectElem, nextNode);\r\n\r\n initListMultiple();\r\n }", "public void setSelectionToTop() {\n // Clear out the views (but don't clear out the layout records or recycler because the data\n // has not changed)\n removeAllViews();\n\n // Reset to top of grid\n resetStateForGridTop();\n\n // Start populating again\n populate();\n }", "public void Reset()\r\n\t{\r\n\t\tif(!levelEditingMode)//CAN ONLY RESET IN LEVEL EDITING MODE\r\n\t\t{\r\n\t\t\tgrid.clearUserObjects();\r\n\t\t\tmenu = new SpriteMenu(listFileName, playButton);\r\n\t\t}\r\n\t}", "public void reset()\n\t{\n\t\tthis.resetSelected();\n\t\tthis.clearMsgArea();\n\t}", "@Override\r\n\tpublic void undo() {\n\t\tstack.push(data);\r\n\t\tJList1.setListData(stack.getStackVector()); // refresh the JList\r\n\r\n\t}", "public void reset()\n\t{\n\t\tthis.sourceUnit.setSelectedIndex(0);\n\t\tthis.destUnit.setSelectedIndex(0);\n\t\tthis.input.setText(\"\");\n\t\tthis.outputLabel.setText(\"\");\n\t}", "public boolean resetToPreviousPosition()\n {\n return setPosition( previousPosition);\n }", "public void reset() {\r\n availableOptionsModel.getObject().clear();\r\n selectedOptionsModel.getObject().clear();\r\n paletteForm.visitChildren(FormComponent.class, new IVisitor<Component>() {\r\n @Override\r\n public Object component(Component component) {\r\n ((FormComponent<?>) component).clearInput();\r\n return Component.IVisitor.CONTINUE_TRAVERSAL;\r\n }\r\n });\r\n paletteForm.getModelObject().setSearchString(\"\");\r\n }", "@Override\n public void redo(){\n this.parent.getSelectedArea().clear();\n \n //And add the point to the list again\n this.parent.getSelectedArea().add(this.selected);\n }" ]
[ "0.6354027", "0.60478854", "0.59809107", "0.5952256", "0.58303195", "0.5810178", "0.57806015", "0.57800454", "0.57638025", "0.5741767", "0.56497145", "0.5612684", "0.5590208", "0.5586884", "0.55808634", "0.55790484", "0.55777675", "0.55622935", "0.55529255", "0.5534189", "0.5532719", "0.5532523", "0.552983", "0.5518862", "0.55170864", "0.55151576", "0.55117905", "0.55113506", "0.5487238", "0.54835266", "0.5476422", "0.5438588", "0.5431952", "0.54115427", "0.54070055", "0.54000604", "0.5398483", "0.53924173", "0.53825784", "0.5378832", "0.53772914", "0.5368594", "0.53638744", "0.5360347", "0.5358686", "0.5354755", "0.5353234", "0.5342566", "0.53254944", "0.5323067", "0.5322056", "0.5319046", "0.5301563", "0.52935416", "0.52914876", "0.52914876", "0.5282111", "0.52782416", "0.52742285", "0.5267605", "0.5264904", "0.5264904", "0.5264278", "0.5262373", "0.5261841", "0.52539796", "0.5249931", "0.5248281", "0.5247352", "0.5246704", "0.52462214", "0.52370656", "0.520121", "0.5187096", "0.5182326", "0.51821756", "0.51779735", "0.5175083", "0.5171147", "0.5171147", "0.5170534", "0.51666415", "0.51646054", "0.51613235", "0.51523674", "0.51432604", "0.51403177", "0.51375926", "0.51258093", "0.51253784", "0.51251566", "0.51157117", "0.51148325", "0.51099855", "0.51099014", "0.51094747", "0.5102264", "0.50997573", "0.5099524", "0.50993" ]
0.5159413
84
Serialize the current dropdown position.
@Override public void onSaveInstanceState(Bundle outState) { outState.putInt(STATE_SELECTED_NAVIGATION_ITEM, getActionBar().getSelectedNavigationIndex()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String toString() {\n return value + \" \" + position.name();\n }", "public String getPositionList() {\r\n return PositionList;\r\n }", "@Override\n\tpublic void serializeUI() {\n\t\t\n\t}", "@Override\n public void onSaveInstanceState(Bundle outState) {\n if (mPosition != ListView.INVALID_POSITION) {\n outState.putInt(SELECTED_KEY, mPosition);\n }\n super.onSaveInstanceState(outState);\n }", "@JsOverlay\n\tpublic final String getPosition() {\n\t\treturn this.position;\n\t}", "public String toJson() {\n\t\treturn Serializer.serializeLevelPack(this);\n\t}", "public String getPos() {\n return this.pos;\n }", "public Object writeReplace() {\n return new SerializedForm(this.ranges);\n }", "public String getPosition(){\r\n\t\treturn position;\r\n\t}", "public String toJson() { return new Gson().toJson(this); }", "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public String getPos(){\r\n\t\t return pos;\r\n\t }", "@Override\n\tpublic List<ComboItem> getPositionsOpen() {\n\t\treturn positionsOpen;\n\t}", "@Override\n public void setSelectedPosition(int selectedPosition, int savedPosition)\n {\n Log.i(Constant.TAG, \"setSelectedPosition - Selected Position : \" + selectedPosition);\n Log.i(Constant.TAG, \"setSelectedPosition - Saved Position : \" + savedPosition);\n selectedPosArray[savedPosition] = selectedPosition;\n }", "public int[] getSelectedPosArray()\n {\n return selectedPosArray;\n }", "@Override\n public void saveCurrent()\n {\n MazeInfo mi = (MazeInfo) mOpenMazes.getList().getSelectedValue();\n if (mi != null)\n {\n mi = mi.saveMaze();\n mOpenMazes.getList().setSelectedValue(mi, true);\n }\n }", "public String optionToString() {\n return new StringBuffer().append(\"<\").append(base16.toString(this.data)).append(\">\").toString();\n }", "public String toJson() {\r\n\r\n\treturn new Gson().toJson(this);\r\n }", "public List getOptions() {\n\t\treturn currentOption;\n\t}", "public String getDropdown() {\n\t\treturn dropdown;\n\t}", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public int getPos()\n {\n return pos;\n }", "public ArrayList<Order> getCurrentSelection(){\n\t\t return this.currentSelection;\n\t }", "@Override\n\tpublic void doSerializeUI() {\n\t\t\n\t}", "public godot.wire.Wire.Vector2.Builder getPositionBuilder() {\n \n onChanged();\n return getPositionFieldBuilder().getBuilder();\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putInt(CURRENT_FRAGMENT, navigation.getSelectedItemId());\n }", "public int getSelectedIndex() {\r\n\t\t\treturn idx;\r\n\t\t}", "public int getPos()\n {\n return pos;\n }", "@ApiModelProperty(example = \"null\", value = \"The position of this component in the UI if applicable.\")\n public PositionDTO getPosition() {\n return position;\n }", "public String toJSON() {\n return new Gson().toJson(this);\n }", "@Override\n\tpublic double getSelectedSensorPosition() {\n\t\treturn encoder.getPosition();\n\t}", "public int position() {\n return pos;\n }", "@Override\n\tpublic String toString() {\n\t\treturn index.toString();\n\t}", "public String toJsonData() {\n\t\treturn new Gson().toJson(this);\n\t}", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n if (mActivatedPosition != ListView.INVALID_POSITION) {\n // Serialize and persist the activated item position.\n outState.putInt(STATE_ACTIVATED_POSITION, mActivatedPosition);\n }\n }", "public String returnTagLocation(){\n\t\treturn (String) tagLocationBox.getSelectedItem();//Return the tag location options\n\t}", "@Override\n public int getPosition() {\n return position;\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public Structure getSelectedStructure() {\n return selectedStructure;\n }", "public int getSelectedIndex() {\n return dialPosition;\n }", "protected void serializeState() {\n\t\tint ii = 0;\n\t\t\n\t\tfor(GEditorPanel gep : editorPanels) {\n\t\t\tif(gep.getFilePath() != null && gep.getFilePath().length() > 0) {\n\t\t\t\tPreference.PREFERENCES_NODE.put(\"editSession\" + ++ii, gep.getFilePath());\n\t\t\t}\n\t\t}\n\t\t\n\t\tAccessors.INT_ACCESSOR.put(\"numberOfFiles\", ii);\n\t}", "@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }", "@Override\n\tpublic D3int getPos() {\n\t\treturn myPos;\n\t}", "public GuiPositions getPosDir() {\r\n\t\treturn posDir;\r\n\t}", "@Override\n\tpublic void onSaveInstanceState(Bundle outState) {\n\t\toutState.putInt(STATE_SELECTED_NAVIGATION_ITEM, getSupportActionBar()\n\t\t\t\t.getSelectedNavigationIndex());\n\t}", "public int getSelectionIndex() {\n\t\treturn list.getSelectionIndex();\n\t}", "@Override\r\n\tpublic void onSaveInstanceState(Bundle outState) {\n\t\toutState.putInt(STATE_SELECTED_NAVIGATION_ITEM, getActionBar()\r\n\t\t\t\t.getSelectedNavigationIndex());\r\n\t}", "@Override\r\n\tpublic void onSaveInstanceState(Bundle outState) {\n\t\toutState.putInt(STATE_SELECTED_NAVIGATION_ITEM, getActionBar()\r\n\t\t\t\t.getSelectedNavigationIndex());\r\n\t}", "public godot.wire.Wire.Vector3.Builder getPositionBuilder() {\n \n onChanged();\n return getPositionFieldBuilder().getBuilder();\n }", "public String toJSON(){\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public Integer getPosition() {\n return this.position;\n }", "@Override\n\tpublic void onSaveInstanceState(Bundle savedInstanceState) {\n\t\tsavedInstanceState.putInt(\"LIST_POSITION\", mPosition);\n\t\tsavedInstanceState.putInt(\"LIST_OFFSET\", mOffset);\n\t\tsuper.onSaveInstanceState(savedInstanceState);\n\t}", "public void saveOffers() {\n System.out.println(this.currentChild);\n // TODO [assignment_final] ulozeni aktualnich nabidek do souboru (vyberte si nazev souboru a format jaky uznate za vhodny - CSV nebo JSON)\n }", "private void writetj() {\n\t\tEditor edit = pretj.edit();\r\n\t\tedit.putInt(\"btn_menu1_int\", btn_menu1_int);\r\n\t\tedit.putInt(\"btn_menu2_int\", btn_menu2_int);\r\n\t\tedit.putInt(\"btn_menu3_int\", btn_menu3_int);\r\n\t\tedit.putInt(\"btn_menu4_int\", btn_menu4_int);\r\n\t\tedit.putInt(\"btn_menu4_int\", btn_menu4_int);\r\n\t\tedit.commit();\r\n\t}", "@Override\n\tpublic int getPos() {\n\t\treturn 0;\n\t}", "public int getPositionIndex()\n {\n return positionIndex;\n }", "public int[] get_position()\r\n\t{\r\n\t\treturn this.position;\r\n\t}", "public Integer getPosition() {\n return position;\n }", "public long position() {\n return _pos;\n }", "public String serialize() {\n switch (type) {\n case LIST:\n return serializeList();\n\n case OBJECT:\n return serializeMap();\n\n case UNKNOWN:\n return serializeUnknown();\n }\n return \"\";\n }", "public String getSelected()\n\t{\n\t\treturn _current.ID;\n\t}", "public int getPosition() {\n return position;\n }", "public int getPosition() {\n return position;\n }", "public int getPosition() {\n return position;\n }", "public int getPosition() {\r\n return position;\r\n }", "public int getCurrentPos() {\n return currentPos;\n }", "public static void saveOptions() {\r\n\t\tMain.bagValue = GameOptions.bagValue.getSelectedItem();\r\n\t\tMain.nilValue = GameOptions.nilValueTextField.getText();\r\n\t\tMain.doubleNilValue = GameOptions.doubleNilValueTextField.getText();\r\n\t\tMain.winScore = GameOptions.winScoreTextField.getText();\r\n\t\tMain.loseScore = GameOptions.loseScoreTextField.getText();\r\n\t}", "public void dumpPositions() {\r\n \t\ttry {\r\n \t\t\tthis.removePositionCategory(EclipseEditorTag.CHAMELEON_CATEGORY);\r\n \t\t\tthis.addPositionCategory(EclipseEditorTag.CHAMELEON_CATEGORY);\r\n \t\t} catch (BadPositionCategoryException e) {}\r\n \t\t\r\n \t}", "@Override\n\t public void onItemSelected(AdapterView<?> arg0, View arg1,int position, long id) {\n\t \tGlobal gs = (Global) getApplication();\n\t \t\tgs.mQblockSettings.selected_chemist=position;\n\t \t\tgs.SaveSettings();\n\t }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n\t\t\tpublic void onSaveInstanceState(Bundle outState){\n\t\t\t\tsuper.onSaveInstanceState(outState);\n\t\t\t\toutState.putInt(\"offset\",offset);\n\t\t\t}", "public Integer getPositionOrder() {\n return positionOrder;\n }", "@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }", "public int getSelectedPosition() {\n return mLayoutManager.getSelection();\n }", "public int getSelectedIndex() {\n return selectedIndex;\n }", "public Integer getPosition()\n {\n return position;\n }", "public int getPosition() {\r\n\t\treturn position;\r\n\t}", "public double getPosition() {\n return spark_encoder.getPosition();\n }", "public Position getPosition(){\n return this.position;\n }", "public static Element serialize( SerializationPosition state) {\n Element doc = state.doc;\n DefaultMutableTreeNode treeNode = state.currPos;\n \n Object value = treeNode.getUserObject();\n Element parentElement = null; \n \n parentElement = doc.getOwnerDocument().createElement(\"directory\");\n\n \n // Apply properties to root element...\n Attr attrName = doc.getOwnerDocument().createAttribute(\"name\");\n attrName.setNodeValue(state.currPos.toString());\n parentElement.getAttributes().setNamedItem(attrName);\n \n return parentElement;\n }", "public void selectionUp() {\n\t\tselectedSlotPosY = (selectedSlotPosY == (C.MENU_INVENTORY_ITEM_SLOT_HEIGHT - 1)) ? 0 : selectedSlotPosY+1;\n\t}", "public int getPosition() {\n return position;\n }", "@Override\n public String toString() {\n return gson.toJson(this);\n }", "protected void saveTreeSelection() {\n selections = tree.getSelectionPaths();\n leadSelection = tree.getLeadSelectionPath();\n _spTree.setIgnoreSelection(true);\n tree.clearSelection();\n _spTree.setIgnoreSelection(false);\n }" ]
[ "0.5525344", "0.54025036", "0.5342054", "0.53404444", "0.53252935", "0.5296584", "0.52618617", "0.5179936", "0.517683", "0.5176272", "0.51565737", "0.51565737", "0.51495665", "0.51440525", "0.5129414", "0.5118096", "0.5104432", "0.5100243", "0.5087029", "0.5082901", "0.50659823", "0.5051964", "0.5051964", "0.5051964", "0.5051964", "0.5051964", "0.50397956", "0.5036104", "0.5012226", "0.5009427", "0.49922514", "0.49838477", "0.49761337", "0.49757242", "0.49645504", "0.49524888", "0.4940207", "0.49256605", "0.49235964", "0.4910581", "0.489824", "0.48877764", "0.48806956", "0.48806956", "0.48806956", "0.48806956", "0.48806956", "0.48806956", "0.48806956", "0.48806956", "0.48806956", "0.48806956", "0.48767948", "0.4865678", "0.48647878", "0.4864597", "0.48631856", "0.48543495", "0.48437676", "0.4833496", "0.4817838", "0.4817838", "0.4814272", "0.48082533", "0.47984916", "0.47952896", "0.47933412", "0.4788222", "0.47799897", "0.47750148", "0.47541326", "0.47536862", "0.47529817", "0.47488725", "0.47415662", "0.47407883", "0.47407883", "0.47407883", "0.47389895", "0.47330177", "0.47149876", "0.471083", "0.47107014", "0.47093326", "0.47093326", "0.47093326", "0.4709012", "0.47080484", "0.47037274", "0.47000962", "0.46989852", "0.46965826", "0.46922275", "0.46786702", "0.46766424", "0.46765757", "0.46761653", "0.46703264", "0.46664613", "0.46640122" ]
0.48278886
60
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.chat, menu); return super.onCreateOptionsMenu(menu); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7247427", "0.720267", "0.7196145", "0.7178052", "0.71080035", "0.7040695", "0.7039065", "0.7012457", "0.7011027", "0.6980861", "0.69456106", "0.69392735", "0.6934666", "0.691844", "0.691844", "0.6891824", "0.6884514", "0.6875728", "0.6875644", "0.6862535", "0.6862535", "0.6862535", "0.6862535", "0.6853197", "0.68470424", "0.681965", "0.6817786", "0.6813462", "0.68134135", "0.68134135", "0.68061316", "0.6801325", "0.6798238", "0.6791593", "0.67900455", "0.6788608", "0.6784089", "0.6760256", "0.67577696", "0.6748367", "0.67445564", "0.67445564", "0.6741421", "0.6740377", "0.67264265", "0.6724471", "0.67230386", "0.67230386", "0.6721279", "0.67125106", "0.6708213", "0.67049414", "0.6699535", "0.6699266", "0.669693", "0.6695199", "0.66867507", "0.66839963", "0.66839963", "0.6683506", "0.66805595", "0.6679765", "0.6677659", "0.66691315", "0.66676474", "0.66629726", "0.66579926", "0.66579926", "0.66579926", "0.6657206", "0.665479", "0.665479", "0.665479", "0.66530275", "0.66525495", "0.6650577", "0.6649072", "0.66473264", "0.66473204", "0.6646837", "0.66467345", "0.6645803", "0.6645064", "0.66436726", "0.6642964", "0.6642522", "0.66388524", "0.66350853", "0.6634306", "0.66330856", "0.6632399", "0.6632399", "0.6632399", "0.6629516", "0.66283673", "0.66280276", "0.66266316", "0.6624691", "0.662099", "0.6619313", "0.6619313" ]
0.0
-1
When the given dropdown item is selected, show its contents in the container view.
@Override public boolean onNavigationItemSelected(int position, long id) { Fragment fragment = new DummySectionFragment(); Bundle args = new Bundle(); args.putInt(DummySectionFragment.ARG_SECTION_NUMBER, position + 1); fragment.setArguments(args); getSupportFragmentManager().beginTransaction() .replace(R.id.container, fragment) .commit(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showSelection () {\n checkWidget();\n if( selectedIndex != -1 ) {\n showItem( getSelection() );\n }\n }", "public void showSelectedItemScreen(Item item){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/SelectedItemScreen.fxml\"));\n AnchorPane janela = (AnchorPane) loader.load();\n \n Stage equippedItemsStage = new Stage();\n equippedItemsStage.setTitle(\"Item info\");\n equippedItemsStage.initModality(Modality.WINDOW_MODAL);\n equippedItemsStage.initOwner(primaryStage);\n Scene scene = new Scene(janela);\n equippedItemsStage.setScene(scene);\n \n SelectedItemScreenController controller = loader.getController();\n controller.setGame(this, item);\n \n equippedItemsStage.showAndWait();\n }catch(IOException e){\n }\n }", "public void show(View view) {\n\n showAtLocation(view, Gravity.CENTER, 0, 0);\n showAsDropDown(view);\n }", "@Override\n public void onItemSelected(int id) {\n if (mTwoPane) {\n // In two-pane mode, show the detail view in this activity by\n // adding or replacing the detail fragment using a\n // fragment transaction.\n Bundle arguments = new Bundle();\n arguments.putInt(CityDetailFragment.ARG_ITEM_ID, id);\n CityDetailFragment fragment = new CityDetailFragment();\n fragment.setArguments(arguments);\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.city_detail_container, fragment)\n .commit();\n\n } else {\n // In single-pane mode, simply start the detail activity\n // for the selected item ID.\n Intent detailIntent = new Intent(this, CityDetailActivity.class);\n detailIntent.putExtra(CityDetailFragment.ARG_ITEM_ID, id);\n startActivity(detailIntent);\n }\n }", "private void selectItem(int position) \n {\n \tFragment fragment = null;\n Bundle args = new Bundle();\n switch(position){\n \n case 0:\n \tDrawerTest.this.getActionBar().hide();\n \tfragment = new StaticViewer();\n args.putInt(\"static_viewer\", position);\n break;\n case 1:\n \tDrawerTest.this.getActionBar().hide();\n \tfragment = new DoctorPanel();\n args.putInt(\"doctor_panel\", position);\n break;\n case 2:\n \tDrawerTest.this.getActionBar().hide();\n \tfragment = new Panel();\n \targs.putInt(\"panel\", position);\n \tbreak;\n case 3:\n \tfragment = new Help();\n \targs.putInt(\"help\", position);\n case 4:\n \tfragment = new About();\n \targs.putInt(\"about\", position);\n default:\n \tDrawerTest.this.getActionBar().show();\n \tbreak;\n }\n //args.putInt(PlanetFragment.ARG_PLANET_NUMBER, position);\n fragment.setArguments(args);\n\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.content_frame, fragment).commit();\n\n // update selected item and title, then close the drawer\n mDrawerList.setItemChecked(position, true);\n setTitle(mPlanetTitles[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n }", "private static void viewItem(Item item) {\n try {\n FXMLLoader fxmlLoader = new FXMLLoader(ToF.getResource(\"Item.fxml\"));\n Parent menu = (Parent) fxmlLoader.load();\n ((ItemController)fxmlLoader.getController()).setItem(item);\n Stage stage = new Stage();\n stage.setScene(new Scene(menu));\n stage.show();\n } catch (IOException ex) {\n throw new IllegalStateException(\"Couldn't load the item view.\", ex);\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n displayView(position);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n displayView(position);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n displayView(position);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n displayView(position);\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tcontainerType = containerTypes.get(position);\n\t\t\t}", "private void selectItem(int position) {\n Fragment fragment = null;\n switch (position) {\n case APPEALS_ALL:\n setTitle(R.string.all_appeals);\n fragment = new AppealsFragment();\n break;\n default:\n break;\n }\n\n if (fragment != null) {\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, fragment).commit();\n } else {\n // Error\n Log.e(this.getClass().getName(), \"Error. Fragment is not created\");\n }\n }", "private void displaySelectedItemPopin(final Entity item) {\n\t\tif (selectedItemPopin == null) {\n\t\t\tselectedItemPopin = new Table();\n//\t\t\tselectedItemPopin.setDebug(true);\n\n\t\t\t// Add an empty click listener to capture the click so that the InputSingleton doesn't handle it\n\t\t\tselectedItemPopin.setTouchable(Touchable.enabled);\n\t\t\tselectedItemPopin.addListener(new ClickListener() {});\n\t\t\t\n\t\t\t// Place the popin and add the background texture\n\t\t\tselectedItemPopin.setPosition(GameScreen.SCREEN_W/2, GameScreen.SCREEN_H/2);\n\t\t\tNinePatchDrawable ninePatchDrawable = new NinePatchDrawable(SceneAssets.popinNinePatch);\n\t\t\tselectedItemPopin.setBackground(ninePatchDrawable);\n\t\t\t\n\t\t\tselectedItemPopin.align(Align.top);\n\t\t\t\n\t\t\t// 1 - Title\n\t\t\titemTitle = new Label(\"Title\", PopinService.hudStyle());\n\t\t\tselectedItemPopin.add(itemTitle).top().align(Align.top).pad(20, 0, 20, 0);\n\t\t\tselectedItemPopin.row().align(Align.center);\n\t\t\t\n\t\t\t// 2 - Description\n\t\t\titemDesc = new Label(\"Description\", PopinService.hudStyle());\n\t\t\titemDesc.setWrap(true);\n\t\t\tselectedItemPopin.add(itemDesc).growY().width(900).left().pad(0, 20, 0, 20);\n\t\t\tselectedItemPopin.row();\n\t\t\t\n\t\t\t// 3 - Action buttons\n\t\t\tTable buttonTable = new Table();\n\t\t\t\n\t\t\t// 3.1 - Close button\n\t\t\tfinal TextButton closeBtn = new TextButton(\"Close\",PopinService.buttonStyle());\t\t\t\n\t\t\t// continueButton listener\n\t\t\tcloseBtn.addListener(new ChangeListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t\t\thideSelectedItemPopin();\n\t\t\t\t}\n\t\t\t});\n\t\t\tbuttonTable.add(closeBtn).pad(0, 20,0,20);\n\t\t\t\n\t\t\tselectedItemPopin.add(buttonTable).pad(20, 0, 20, 0);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tfinal ItemComponent itemComponent = Mappers.itemComponent.get(item);\n\t\t\n\t\t// Update the content\n\t\titemTitle.setText(itemComponent.getItemLabel());\n\t\titemDesc.setText(itemComponent.getItemDescription());\n\t\t\n\t\t// Place the popin properly\n\t\tselectedItemPopin.pack();\n\t\tselectedItemPopin.setPosition(GameScreen.SCREEN_W/2 - selectedItemPopin.getWidth()/2, GameScreen.SCREEN_H/2 - selectedItemPopin.getHeight()/2);\n\t\n\t\tthis.stage.addActor(selectedItemPopin);\n\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n item = parent.getItemAtPosition(position).toString();\n isSelected = true;\n\n // Showing selected spinner item\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n }", "private void selectItem(int position) {\n selectedFragmentIndex = position;\n // Create a new fragment and specify the planet to show based on position\n Fragment fragment;\n\n switch (position) {\n case 0:\n fragment = new MarkersInfoWindowFragment();\n\n break;\n case 1:\n fragment = new DirectionPolylineFragment();\n break;\n case 2:\n fragment = new MapEventFragment();\n break;\n\n\n case 3:\n fragment = new MarkersClusteringFragment();\n break;\n case 4:\n fragment = new PolygonFragment();\n break;\n\n case 5:\n fragment = new UserLocationFragment();\n break;\n case 6:\n fragment = new MarkersTestFragment();\n break;\n case 7:\n fragment = new GeoCodeReverseGeoCodeFragment();\n break;\n case 8:\n fragment = new AutoSuggestFragment();\n break;\n case 9:\n fragment = new NearbyFragment();\n break;\n default:\n fragment = new MarkersInfoWindowFragment();\n\n }\n\n // Insert the fragment by replacing any existing fragment\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.content_frame, fragment)\n .commit();\n\n // Highlight the selected item, update the title, and close the drawer\n mDrawerList.setItemChecked(position, true);\n mDrawerLayout.closeDrawer(mDrawerList);\n }", "@Override\r\n\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\tdisplayView(position);\r\n\t\t}", "private void selectItem(int position) {\n\t\tLog.d(Constants.TAG, \"Selecting item from Main Activity\");\n\t\t// Create a new fragment and specify the frame to be displayed\n\t\tFragment fragment = null;\n\t\tFragmentManager fragmentManager = getSupportFragmentManager();\n\n\t\tswitch (position) {\n\t\tcase 0:\n\t\t\tfragment = new ScheduleFragment();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tfragment = new MyOrchidsFragment();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tfragment = new OrchidCareFragment();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tfragment = new SettingsFragment();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tfragment = new HelpAndFeedbackFragment();\n\t\t\tbreak;\n\t\t}\n\n\t\t// Swap the fragment\n\t\tif (fragment != null) {\n\t\t\tfragmentManager.beginTransaction()\n\t\t\t\t\t.replace(R.id.content_frame, fragment).commit();\n\t\t}\n\t}", "private void selectItem(int position)\n {\n Fragment fragment = null;\n Bundle args = new Bundle();\n\n switch (position)\n {\n case 0:\n fragment = new server_settings_Fragment();\n break;\n case 1:\n fragment = new client_settings_Fragment();\n args.putStringArray(\"netInfo\", getNetworkInformation(this));\n fragment.setArguments(args);\n break;\n }\n // update the main content by replacing fragments\n args.putInt(MENU_ITEM, position);\n fragment.setArguments(args);\n\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.container, fragment).commit();\n\n // update selected item and title, then close the drawer\n mDrawerList.setItemChecked(position, true);\n setTitle(mSettingTitles[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n }", "private void selectItem(int position) {\n // Create a new fragment and specify the planet to show based on position\n Fragment fragment = PullToRefreshFragment.newInstance();\n\n // Insert the fragment by replacing any existing fragment\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.content_frame, fragment).commit();\n setTitle(mPlanetTitles[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==R.id.item1){\n //this shows and hides the dropdown calendar\n ShowCalendar();\n }\n return super.onOptionsItemSelected(item);\n }", "private void selectItem(int position) {\n\n // Create a new fragment\n Fragment fragment = null;\n\n // Insert the fragment by replacing any existing fragment\n FragmentManager fragmentManager = getFragmentManager();\n\n Bundle args = new Bundle();\n args.putInt(\"phone_id\", targetPhone.getId());\n args.putString(\"phone_login\", targetPhone.getLogin());\n\n args.putInt(\"user_id\", currentUser.getId());\n args.putString(\"user_mail\", currentUser.getMail());\n args.putString(\"user_password\", currentUser.getPassword());\n\n switch (position) {\n case LOCATE_SLAVE:\n fragment = new LocateSlaveFragment();\n fragment.setArguments(args);\n fragmentManager.beginTransaction()\n .replace(R.id.slave_main_content_frame, fragment)\n .commit();\n break;\n\n case SHOW_CONTACTS:\n fragment = new ShowSlaveContactsFragment();\n fragment.setArguments(args);\n fragmentManager.beginTransaction()\n .replace(R.id.slave_main_content_frame, fragment)\n .commit();\n break;\n\n case TO_SLAVES_LIST:\n Intent toSlavesListIntent = new Intent(this, ListSlavesActivity.class);\n startActivity(toSlavesListIntent);\n break;\n\n default:\n fragment = new LocateSlaveFragment();\n fragment.setArguments(args);\n fragmentManager.beginTransaction()\n .replace(R.id.slave_main_content_frame, fragment)\n .commit();\n break;\n }\n\n // Highlight the selected item, update the title, and close the drawer\n slaveMenuListView.setItemChecked(position, true);\n setTitle(slaveMenuItems[position]);\n slaveMenuDrawerLayout.closeDrawer(slaveMenuListView);\n }", "@Override\n\tpublic void viewItem() {\n\t\t\n\t}", "@Override\n public void onItemClick(View view, int position) {\n showPopupOption(view);\n }", "private void openDropdown() {\n if (dropdownLinearLayout.getVisibility() != View.VISIBLE) {\n ScaleAnimation anim = new ScaleAnimation(1, 1, 0, 1);\n anim.setDuration(getResources().getInteger(R.integer.dropdown_amination_time));\n dropdownLinearLayout.startAnimation(anim);\n dropdownTextView.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.icn_dropdown_close, 0);\n// feelTextsListView\n dropdownLinearLayout.setVisibility(View.VISIBLE);\n }\n }", "private void updateSelectedDetailsPanel() {\n\t\tfinal ObservableList<Project> selectedItems = selectionList.getSelectionModel().getSelectedItems();\n\t\tif (selectedItems.size() == 1) {\n\t\t\tselectedPanel.setVisible(true);\n\t\t\tfinal Project p = selectedItems.get(0);\n\t\t\tselectedName.setText(p.getName());\n\t\t\tfinal DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\", Locale.getDefault());\n\t\t\tselectedBuildDate.setText(\n\t\t\t\t\tp.getLastBuildDateTime() == null ? \"-\" : p.getLastBuildDateTime().format(formatter));\n\t\t\tselectedBuildSize.setText(\n\t\t\t\t\tp.getLastBuildSize() == 0 ? \"-\" : (String.format(\"%,d\", p.getLastBuildSize() / 1024) + \" kb\"));\n\t\t\ttry {\n\t\t\t\tfinal Path path = Path.of(p.getProjectPath());\n\t\t\t\tselectedDirFiles.setText(String.format(\"%,d\", fileService.getFileCountOfDirectory(path)) + \" files\");\n\t\t\t\tselectedDirSize.setText(String.format(\"%,d\", fileService.getDirectorySize(path) / 1024) + \" kb\");\n\t\t\t} catch (final IOException e) {\n\t\t\t\tselectedDirSize.setText(\"-\");\n\t\t\t\tselectedDirFiles.setText(\"-\");\n\t\t\t\tlogger.trace(\"Error updating selected details panel.\", e);\n\t\t\t}\n\t\t\tselectedPath.setText(p.getProjectPath());\n\t\t\ttry {\n\t\t\t\tselectedImage.setImage(new Image(getResourceAsUrl(gameService.getGameItemPath(p.getGame())).toString()));\n\t\t\t} catch (final IOException e) {\n\t\t\t\tlogger.error(\"Failed to load image from project's game setting.\", e);\n\t\t\t}\n\t\t} else {\n\t\t\tselectedPanel.setVisible(false);\n\t\t}\n\t}", "public void show(View parent) {\n if (!isShowing()) {\n showAsDropDown(parent, 0, 0);\n } else {\n dismiss();\n }\n }", "@Override\n\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tprefs.edit().putInt(\"CHOOSE\",(int)choose.getSelectedItemId()).commit();\n\n\t\t\t\t\tif(choose.getSelectedItemId()==0)\n\t\t \t\t\tcontacts.setVisibility(View.GONE);\n\t\t\t\t\telse \n\t\t \t\t\tcontacts.setVisibility(View.VISIBLE);\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (!isEdit) {\r\n\t\t\t\t\txb_popup.showAsDropDown(xbet, 0, 1, xbet.getWidth(),\r\n\t\t\t\t\t\t\tLayoutParams.WRAP_CONTENT);\r\n\t\t\t\t}\r\n\t\t\t}", "@OnShow\n\tpublic void onShow() {\n\t\tviewForm.setValue(\n\t\t\t\t// load product using the \"id\" parameter\n\t\t\t\tdatastore.query().target(TARGET).filter(ID.eq(id)).findOne(PRODUCT)\n\t\t\t\t\t\t// throw an exception if not found\n\t\t\t\t\t\t.orElseThrow(() -> new DataAccessException(\"Product not found: \" + id)));\n\t}", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n ShowFragment(item.getItemId());\n\n\n return true;\n }", "@Override\n public String displayUponBeingSelected() {\n\n StringBuilder sb = new StringBuilder();\n sb.append(String.format(\"Information about '%s'\\n\", foodLabel));\n sb.append(String.format(\"Brand: %s\\n\", brand));\n sb.append(String.format(\"Category: %s\\n\", category));\n sb.append(String.format(\"Item type: %s\\n\", StringUtils.capitalize(categoryLabel)));\n sb.append(String.format(\"Measure(s): %s\\n\", StringUtils.join(measures, \", \")));\n sb.append(String.format(\"Food ID: %s\\n\", foodId));\n sb.append(String.format(\"Food URI: %s\\n\", foodUri));\n sb.append(String.format(\"Image link: %s\\n\", imageLink));\n sb.append(String.format(\"Yielding search term: %s\\n\", yieldingSearchTerm));\n sb.append(formatBasicNutrients());\n\n return sb.toString();\n\n }", "@Override\n public void onItemClicked(View view, int adapterPosition) {\n MainActivity.currentPosn = adapterPosition;\n MainActivity.currentMovie = movies.get(adapterPosition);\n\n // Open new DetailFragment for selected Featured Movie\n DetailFragment detail = new DetailFragment();\n Bundle args = new Bundle();\n args.putString(\"Movie\", String.valueOf(movies.get(adapterPosition)));\n detail.setArguments(args);\n\n assert fragment.getFragmentManager() != null;\n fragment.getFragmentManager()\n .beginTransaction()\n .replace(R.id.mainActivityContainer, detail, \"FeaturedDetailFragment\")\n .addToBackStack(null)\n .commit();\n }", "@Override\n public boolean onNavigationItemSelected( @NonNull MenuItem item) {\n selectFragment(item);\n return false;\n }", "@Override\n\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\t\tlong id) {\n\t\t\tdisplayView(position);\n\t\t}", "@Override\n\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\t\tlong id) {\n\t\t\tdisplayView(position);\n\t\t}", "@Override\n\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\t\tlong id) {\n\t\t\tdisplayView(position);\n\t\t}", "@Override\n\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\t\tlong id) {\n\t\t\tdisplayView(position);\n\t\t}", "public void displaySelections() {\n List<VendingItem> listOfItems = service.getAllItemsNonZero(); //<-- uses lambda\n view.displaySelections(listOfItems);\n }", "@FXML\n private void setDetailsItemOnSelect() {\n Ad ad = tableViewAds.getSelectionModel().getSelectedItem();\n Location location = LocationDAO.LocationSEL(ad.getLocationID()).get(0);\n Content content = ContentDAO.ContentSEL(ad.getContentD()).get(0);\n Price price = PriceDAO.PriceSEL(ad.getPriceID()).get(0);\n\n ad.setAdTotalPrice(Float.valueOf((\n price.getPriceCostClick()\n .multiply(new BigDecimal(ad.getAdClickNumber()))\n .add(\n price.getPriceCostView()\n .multiply(new BigDecimal(ad.getAdViewNumber())))\n ).toString()));\n\n loadLocationDetailsValue(ad, location);\n loadContentDetailsValue(content);\n loadPriceDetailsValue(ad, price);\n\n //Ad Titled Pane\n this.datePickerAdsStopDate.setValue(LocalDate.parse(dateFormat.format(ad.getStopDate().getTime()), DateTimeFormatter.ofPattern(\"yyyy-MM-dd\")));\n this.datePickerAdsStartDate.setValue(LocalDate.parse(dateFormat.format(ad.getStartDate().getTime()), DateTimeFormatter.ofPattern(\"yyyy-MM-dd\")));\n\n this.comboBoxPrice.setValue(ad.getPriceID());\n this.comboBoxContent.setValue(ad.getContentD());\n this.comboBoxLocation.setValue(ad.getLocationID());\n this.comboBoxClient.setValue(ad.getClientID());\n this.comboBoxAuthor.setValue(ad.getAuthorID());\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (parent.getItemAtPosition(position).equals(\"Choose Your Workout\")) {\n // do nothing\n }\n else {\n //get the workout chosen by the user\n chosenWorkout = parent.getItemAtPosition(position).toString();\n Intent intent = new Intent(WorkoutActivity.this, DropDownActivity.class);\n startActivity(intent);\n }\n\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n displaySelectedOptions(id);\n return true;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n showModal(position);\n view.setSelected(true);\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n //NOTE: Position 0 is reserved for the manually added Prompt\n if (position > 0) {\n //Retrieving the Category Name of the selection\n mCategoryLastSelected = parent.getItemAtPosition(position).toString();\n //Calling the Presenter method to take appropriate action\n //(For showing/hiding the EditText field of Category OTHER)\n mPresenter.onCategorySelected(mCategoryLastSelected);\n } else {\n //On other cases, reset the Category Name saved\n mCategoryLastSelected = \"\";\n }\n }", "protected void onSelectedItemChanged() {\n if (selectedItem == null) {\n anchorLabel();\n getInputWidget().setText(\"\");\n } else {\n String playerName = ((Player)selectedItem).getName();\n getInputWidget().setText(playerName);\n floatLabel();\n }\n\n if (itemChooserListener != null) itemChooserListener.onSelectionChanged(this, selectedItem);\n }", "private void selectItem(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.content_frame, fragment).commit();\n //mDrawerList.setItemChecked(position, true);\n //setTitle(mActionTitles[position]);\n //mDrawerLayout.closeDrawer(mDrawerList);\n }", "public void showSelectedRecipe() {\n selected = recipeList.getSelectedValue().toString();\n recipeName.setText(selected);\n recipeInfo.setText(model.getRecipeInformation(selected));\n }", "void showSelectedAgentView();", "private void selectItem(int position) {\n Fragment fragment = new MenuFragment();\n Bundle args = new Bundle();\n args.putInt(MenuFragment.ARG_MENU_NUMBER, position);\n fragment.setArguments(args);\n\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.content_frame, fragment).commit();\n\n // update selected item and title, then close the drawer\n mDrawerList.setItemChecked(position, true);\n setTitle(mMenuTitles[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n }", "private void selectMainItem(int position) {\n\t\tBundle args = new Bundle();\n\t\tFragment fragment = null;\n\t\tswitch (position) {\n\t\tcase 0:\n\t\t\tfragment = new UserFragment();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tif (mCoursesTitles.length <= 1) {\n\t\t\t\tToast.makeText(this, \"获取课程列表发生错误!\\n请检查连接或联系管理员\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tmDrawerList.setAdapter(new ItemsAdapter(this, 0, mCoursesTitles));\n\t\t\tmDrawerList\n\t\t\t\t\t.setOnItemClickListener(new DrawerCoursesItemClickListener());\n\t\t\treturn;\n\t\tcase 2:\n\t\t\tfragment = new ContactUsFragment();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tfragment = new AboutFragment();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t\tfragment.setArguments(args);\n\t\tFragmentManager fragmentManager = getFragmentManager();\n\t\tfragmentManager.beginTransaction()\n\t\t\t\t.replace(R.id.content_frame, fragment).commit();\n\n\t\t// update selected item and title, then close the drawer\n\t\tsetTitle(mTitles[position]);\n\t\tmDrawerLayout.closeDrawer(mDrawerList);\n\n\t}", "@Override\n public void onListItemSelected(POD_DOCS pod_docs) {\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"Pod_Docs\",pod_docs);\n loadFragment(MI_POD_DETAIL_FRAGMENT,bundle);\n }", "@Override\n public View getDropDownView(int position, View convertView, ViewGroup parent) {\n TextView tv = (TextView) super.getDropDownView(position, convertView, parent);\n\n // Set the text color of drop down items\n tv.setTextColor(Color.BLACK);\n tv.setText(groupBuildingDetailsClasses.get(position).getGroupBuildingName());\n /*// If this item is selected item\n if(position == mSelectedIndex){\n // Set spinner selected popup item's text color\n tv.setTextColor(Color.BLUE);\n }*/\n\n // Return the modified view\n return tv;\n }", "public void widgetSelected(SelectionEvent e) {\n\t\t\t\tif (e.item == null) {\n\t\t\t\t\tif (infoPopup != null)\n\t\t\t\t\t\tinfoPopup.close();\n\t\t\t\t} else {\n\t\t\t\t\tProposal proposal = (Proposal) e.item.getData();\n\t\t\t\t\tif (proposal != null) {\n\t\t\t\t\t\tshowProposalDescription();\n\t\t\t\t\t\tadapter.proposalSelected(proposal);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (infoPopup != null)\n\t\t\t\t\t\t\tinfoPopup.close();\n\t\t\t\t\t\tproposalTable.deselectAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public void onItemSelected(AdapterView<?> parent, View view, int position, long id) \r\n\t{\n\t\tString food = parent.getItemAtPosition(position).toString();\r\n\t\t\r\n // Showing selected spinner item\r\n Toast.makeText(parent.getContext(), \"You selected: \" + food,\r\n Toast.LENGTH_LONG).show();\r\n\t\t\r\n\t}", "public void show() {\r\n\t\tif (getSpawnLocation() == null)\r\n\t\t\treturn;\r\n\r\n\t\tif (!checkItem()) {\r\n\t\t\titem \t= getWorld().dropItem(getSpawnLocation(), getItemStack());\r\n\t\t\titem.setVelocity(new Vector(0, 0.1, 0));\r\n\t\t\titem.setPickupDelay(1000);\r\n\t\t\t\r\n\t\t}\r\n\t\tisVisible \t= true;\r\n\t}", "public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n }", "public void containerPress(View view) {\n\n isQuestion = false;\n displayCard(deck.getCard(deckPos), isQuestion);\n }", "private void selectItem(int position) {\n if (position == 0) {\n //joj\n Toast.makeText(this, \" clicked on planner \", Toast.LENGTH_SHORT).show();\n //Call the method, actions to take place when clicked on planner\n }\n //add code if clicked on Recipes\n else if (position == 1) {\n Toast.makeText(this, \"clicked on recipes\", Toast.LENGTH_SHORT).show();\n //Call the method, actions to take place when clicked on recipes\n Intent intent = new Intent(FrontPage.this, Recipepage.class);\n startActivity(intent);\n\n } else if (position == 2) {\n\n Toast.makeText(this, \"clicked on Grocery\", Toast.LENGTH_SHORT).show();\n //Call the method, actions to take place when clicked on grocery\n } else if (position == 3)\n\n {\n Toast.makeText(this, \"clicked on groups\", Toast.LENGTH_SHORT).show();\n\n }\n\n\n }", "private void displayView(int position) {\n\t\tFragment fragment = null;\n\t\tBundle bundle=new Bundle();\n\t\tswitch (position) {\n\t\tcase 0:\n\t\t\tfragment = new Profile();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tfragment = new SearchProjects();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tfragment = new MyProjects();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\n\t\tif (fragment != null) {\n\t\t\tFragmentManager fragmentManager = getFragmentManager();\n\t\t\tfragmentManager.beginTransaction()\n\t\t\t.replace(R.id.frame_container, fragment).commit();\n\n\t\t\t// update selected item and title, then close the drawer\n\t\t\tmDrawerList.setItemChecked(position, true);\n\t\t\tmDrawerList.setSelection(position);\n\t\t\tsetTitle(navMenuTitles[position]);\n\t\t\tmDrawerLayout.closeDrawer(mDrawerView);\n\t\t} else {\n\t\t\t// error in creating fragment\n\t\t\tLog.e(\"MainActivity\", \"Error in creating fragment\");\n\t\t}\n\t}", "@Override\n public View getDropDownView(int position, View convertView, ViewGroup parent) {\n TextView tv = (TextView) super.getDropDownView(position, convertView, parent);\n\n // Set the text color of drop down items\n tv.setTextColor(Color.BLACK);\n tv.setText(list.get(position).getGroupName());\n\n /*// If this item is selected item\n if(position == mSelectedIndex){\n // Set spinner selected popup item's text color\n tv.setTextColor(Color.BLUE);\n }*/\n\n // Return the modified view\n return tv;\n }", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\t\t\tListView listView = (ListView) parent;\n\t\t\tString item = (String) listView.getSelectedItem();\n//\t\t\tToast.makeText(SearchGroupActivity.this, \"onItemSelected = \" + item, Toast.LENGTH_LONG).show();\n\t\t}", "private void selectItem(int position) {\n\n switch (position){\n case 3:\n// Fragment profileFragment = new Fragment_Profile();\n// FragmentManager profileFragMgr = getSupportFragmentManager();\n// profileFragMgr.beginTransaction().replace(R.id.contentFrame,profileFragment).commit();\n\n Intent newAct = new Intent(getApplicationContext(), Activity_Profile.class);\n startActivity(newAct);\n closeDrawer(position);\n break;\n default:\n Fragment fragment = new PlanetFragment();\n Bundle args = new Bundle();\n args.putInt(PlanetFragment.ARG_PLANET_NUMBER, position);\n fragment.setArguments(args);\n\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.contentFrame, fragment).commit();\n closeDrawer(position);\n break;\n }\n }", "private void displaySponsor() {\r\n if(selectedNode != null && !selectedNode.getAllowsChildren()) {\r\n SponsorMaintenanceForm sponsorForm = new SponsorMaintenanceForm(TypeConstants.DISPLAY_MODE, selectedValue.substring(0,selectedValue.indexOf(\":\")));\r\n sponsorForm.showForm(mdiForm, \"Display Sponsor\", true);\r\n }\r\n }", "public SelectionPanel(){\n\t\tthis.setHbarPolicy(ScrollBarPolicy.ALWAYS);\n\t\tthis.setVbarPolicy(ScrollBarPolicy.NEVER);\n\t\tsetButton();\n\t\tthis.setContent(container);\n\t\tthis.setPrefHeight(65);\n\t\tthis.setPrefWidth(700);\n\t\tcontainer.setVisible(false);\n\t}", "public void itemClicked(long id) {\n View fragmentContainer = findViewById(R.id.fragment_container);\n\n if (fragmentContainer != null) {\n InfoFragment info = new InfoFragment();\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n info.setCity(id);\n ft.replace(R.id.fragment_container, info);\n ft.addToBackStack(null);\n ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);\n ft.commit();\n } else {\n Intent intent = new Intent(this, InfoActivity.class);\n intent.putExtra(InfoActivity.EXTRA_ID, (int)id);\n startActivity(intent);\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> adapter, View v,\n int position, long id) {\n mappos = position;\n findmapinfo(position , adapter.getItemAtPosition(position).toString());\n \n // Showing selected spinner item\n \n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (mPop.isShowing()) {\n\t\t\t\t\tmPop.dismiss();\n\t\t\t\t} else {\n\t\t\t\t\tmPop.showAsDropDown(numberSeat, 0, -50);\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tnew IINAndDividentsView().view(frameDBView);\n\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\n\t\t\t\t\t\t\t\tLog.e(\"TAG\", \"clicked on\");\n\n\t\t\t\t\t\t\t\tfinal Dialog dialog = new Dialog(ViewSiteActivity.this, R.style.TopToBottomDialog);\n\t\t\t\t\t\t\t\tdialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\t\t\t\t\t\tdialog.setContentView(R.layout.dropdown_visual_inspection);\n\n\t\t\t\t\t\t\t\tListView commonListsView = (ListView) dialog.findViewById(R.id.visual_inspection_list);\n\t\t\t\t\t\t\t\tString[] visualArray = getResources().getStringArray(R.array.visual_inspection);\n\t\t\t\t\t\t\t\tcommonList.clear();\n\n\t\t\t\t\t\t\t\tfor (int i = 0; i < visualArray.length; i++) {\n\t\t\t\t\t\t\t\t\tcommonList.add(visualArray[i]);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tAddCommonListAdapter addCommonListAdapter = new AddCommonListAdapter(\n\t\t\t\t\t\t\t\t\t\tViewSiteActivity.this, commonList);\n\t\t\t\t\t\t\t\tcommonListsView.setAdapter(addCommonListAdapter);\n\t\t\t\t\t\t\t\taddCommonListAdapter.notifyDataSetChanged();\n\n\t\t\t\t\t\t\t\tcommonListsView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\tString visualInspection = commonList.get(position);\n\t\t\t\t\t\t\t\t\t\tLog.e(\"TAG\", \"Value for visualInspection:\" + visualInspection);\n\t\t\t\t\t\t\t\t\t\tdropVisualInspect.setText(visualInspection);\n\t\t\t\t\t\t\t\t\t\t// visualInspectionText =\n\t\t\t\t\t\t\t\t\t\t// visualInspection;\n\t\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\n\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\ttry {\n\t\t\t\t\t\t\t\t\tdialog.show();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}", "@TargetApi(Build.VERSION_CODES.LOLLIPOP)\n @RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN)\n @Override\n public void onClick(View view) {\n BusinessCard item = (BusinessCard) view.getTag();\n if (mTwoPane) {\n Bundle arguments = new Bundle();\n// arguments.putString(ItemDetailFragment.ARG_ITEM_ID, String.valueOf(item.getId())); // put object in intent\n arguments.putParcelable(ItemDetailFragment.ARG_ITEM_ID, item);\n ItemDetailFragment fragment = new ItemDetailFragment();\n fragment.setArguments(arguments);\n mParentActivity.getSupportFragmentManager().beginTransaction()\n .replace(R.id.item_detail_container, fragment)\n .commit();\n } else {\n Context context = view.getContext();\n Intent intent = new Intent(context, ItemDetailActivity.class);\n intent.putExtra(ItemDetailFragment.ARG_ITEM_ID, item); // put object in intent\n\n // S04M03-22 add options to make transition appear\n// Bundle options = ActivityOptions.makeSceneTransitionAnimation((Activity) view.getContext()).toBundle();\n // S04M03-24 change constructor to allow for shared views\n Bundle options = ActivityOptions.makeSceneTransitionAnimation(\n (Activity) view.getContext(),\n holder.mImageView,\n ViewCompat.getTransitionName(holder.mImageView)\n ).toBundle();\n\n context.startActivity(intent, options);\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n actionType = String.valueOf(actionTypeSpiner\n .getSelectedItem());\n if (actionType == \"Upload\"\n || actionType.equals(\"Upload\")) {\n viewLay.setVisibility(View.GONE);\n action = true;\n fileNameTxt.setVisibility(View.GONE);\n doOpen();\n } else if (actionType == \"View\"\n || actionType.equals(\"View\")) {\n action = false;\n fileNameTxt.setVisibility(View.GONE);\n submitTxt.setEnabled(true);\n }\n }", "private void showProgramData(ItemEvent itemEvent) {\n\n if (itemEvent.getStateChange() == ItemEvent.SELECTED) {\n\n setCurrentChannel(itemEvent.getItem().toString());\n scheduledUpdate();\n\n }\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tSystem.out.print(\"llego\");\n\t\t\t\tdisplayView(arg2);\n\t\t\t\t\n\t\t\t}", "public void itemSelected(boolean selected);", "private void selectItem(int i) {\n Fragment fragment = null;\n switch(i)\n {\n case 0:\n fragment = new Panic();\n break;\n case 1:\n fragment = new Helpline();\n break;\n case 2:\n fragment = new TrustedContacts();\n break;\n\n }\n FragmentManager fm = getFragmentManager();\n //TODO: try this with add\n if(fragment!=null)\n fm.beginTransaction().replace(R.id.content_frame,fragment).commit();\n\n drawerLayout.closeDrawer(mListView);\n }", "public void show() {\r\n\t\tinitWidget(vpanel);\r\n\t\tRootPanel.get(\"content\").add(this);\r\n\t\t\r\n\t\tthis.setVisible(true);\r\n\t}", "@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint position, long arg3) {\n\t\t\t\tif (position == 1) {\n\t\t\t\t\t// show it\n\t\t\t\t\tsubjectSpinner.setVisibility(View.VISIBLE);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// hide it\n\t\t\t\t\tsubjectSpinner.setVisibility(View.GONE);\n\t\t\t\t}\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view,\n int position, long id) {\n Matter matter = adapter.getItem(position);\n // Here you can do the action you want to...\n Toast.makeText(FilterActivity.this, \"ID: \" + matter.get_projeadi() + \"\\nName: \" + matter.get_projekodu(),\n Toast.LENGTH_SHORT).show();\n }", "private void displayView(int position) {\n\t\t// update the main content by replacing fragments\n\t\tFragment fragment = null;\n\t\tswitch (position) {\n\t\tcase 0:\n\t\t\tfragment = new getLocation();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tfragment = new UserInput();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t\tif (fragment != null) {\n\t\t\tFragmentManager fragmentManager = getFragmentManager();\n\t\t\tfragmentManager.beginTransaction()\n\t\t\t\t\t.replace(R.id.frame_container, fragment).commit();\n\n\t\t\t// update selected item and title, then close the drawer\n\t\t\tmDrawerList.setItemChecked(position, true);\n\t\t\tmDrawerList.setSelection(position);\n\t\t\tsetTitle(navMenuTitles[position]);\n\t\t\tmDrawerLayout.closeDrawer(mDrawerList);\n\t\t} else {\n\t\t\t// error in creating fragment\n\t\t\tLog.e(\"MainActivity\", \"Error in creating fragment\");\n\t\t}\n\t}", "@Override\r\n\tpublic View view(int arg0, View arg1, ViewGroup arg2) {\n\t\tHolder holder;\r\n\t\tif (arg1 == null) {\r\n\t\t\targ1 = ShowUtil.LoadXmlView(getContext(), R.layout.adress_item);\r\n\t\t\tholder = new Holder();\r\n\t\t\tholder.province = (TextView) arg1\r\n\t\t\t\t\t.findViewById(R.id.adress_item_title);\r\n\t\t\targ1.setTag(holder);\r\n\t\t}\r\n\t\tholder = (Holder) arg1.getTag();\r\n\t\tTextView provinceTxt = holder.province;\r\n\r\n\t\tfinal Province province = getData(arg0);\r\n\t\tif (province.isSelect()) {\r\n\t\t\tprovinceTxt.setBackgroundColor(getContext().getResources().getColor(\r\n\t\t\t\t\tR.color.blue));\r\n\t\t\tprovinceTxt.setTextColor(getContext().getResources().getColor(R.color.white));\r\n\t\t} else {\r\n\t\t\tprovinceTxt.setBackgroundColor(getContext().getResources().getColor(\r\n\t\t\t\t\tR.color.background));\r\n\t\t\tprovinceTxt.setTextColor(getContext().getResources().getColor(R.color.shallowGray));\r\n\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tprovinceTxt.setText(province.getTitle());\r\n\r\n\t\targ1.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t\tcleanSelect();\r\n\t\t\t\tprovince.setSelect(true);\r\n\t\t\t\tnotifyDataSetChanged();\r\n\t\t\t\tonItem(new Object[]{\r\n\t\t\t\t\t\tprovince\t\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\treturn arg1;\r\n\t}", "protected void showOptions(){\n mOptionList.setClickable(true);\n mOptionList.setVisibility(View.VISIBLE);\n }", "public void selectItem(int position) {\n Fragment fragment=null;\n\n if( position == FRAGMENT_ONE ) {\n fragment = new MainFragment_1();\n fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.main_fragment_place, fragment).commit();\n }else if( position == FRAGMENT_TWO ){\n fragment = new MainFragment_2();\n fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.main_fragment_place, fragment).commit();\n }\n }", "public void handleItemSpinnerChange(){\n String itemTypeText = itemType.getSelectedItem().toString();\n if(itemTypeText.equals(\"Computer\")){\n osTextView.setVisibility(View.VISIBLE);\n osInput.setVisibility(View.VISIBLE);\n printerTextView.setVisibility(View.INVISIBLE);\n printerType.setVisibility(View.GONE);\n }\n else if(itemTypeText.equals(\"Printer\")){\n osTextView.setVisibility(View.INVISIBLE);\n osInput.setVisibility(View.INVISIBLE);\n printerTextView.setVisibility(View.VISIBLE);\n printerType.setVisibility(View.VISIBLE);\n }\n }", "public void onVehiclesListFragmentInteraction(ItemContent item) {\n ItemDetailFragment itemDetailFragment = new ItemDetailFragment();\n Bundle args = new Bundle();\n args.putSerializable(ItemDetailFragment.ADS_ITEM_SELECTED, item);\n args.putInt(\"ID\", item.getItemID());\n args.putString(\"Category\", item.getItemCategory());\n itemDetailFragment.setArguments(args);\n\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.fragment_vehicles_container, itemDetailFragment)\n .addToBackStack(null)\n .commit();\n }", "@Override\n public View getDropDownView(int position, View convertView, ViewGroup parent) {\n TextView tv = (TextView) super.getDropDownView(position, convertView, parent);\n\n // Set the text color of drop down items\n tv.setTextColor(Color.BLACK);\n tv.setText(groupSiteDetailsClasses.get(position).getGroupSiteName());\n /*// If this item is selected item\n if(position == mSelectedIndex){\n // Set spinner selected popup item's text color\n tv.setTextColor(Color.BLUE);\n }*/\n\n // Return the modified view\n return tv;\n }", "@Override\n public void showContextMenu()\n {\n showContextMenu(selection, View.SELECTION);\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View v, int position, long id)\n {\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n Fragment currentFragment = this.fragmentManager.findFragmentById(R.id.dynamic_fragment_layout);\n\n if (id == R.id.nav_vehicles) {\n if (!(currentFragment instanceof ViewVehiclesFragment)) {\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.dynamic_fragment_layout, new ViewVehiclesFragment(), \"FRAGMENT_VEHICLES\");\n fragmentTransaction.commit();\n\n Objects.requireNonNull(getSupportActionBar()).setTitle(\"Vehicles\");\n fab.show();\n }\n } else if (id == R.id.nav_clients) {\n if (!(currentFragment instanceof ViewClientsFragment)) {\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.dynamic_fragment_layout, new ViewClientsFragment(), \"FRAGMENT_CLIENTS\");\n fragmentTransaction.commit();\n\n Objects.requireNonNull(getSupportActionBar()).setTitle(\"Clients\");\n fab.show();\n }\n } else if (id == R.id.nav_settings) {\n\n }\n\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "private void selectItem(int position) {\n if (position == 0) // search\n showSearchFragment(true);\n if (position == 1) // Заточка\n ;//showSearchFragment(true);\n if (position == 2) // Вещи ☆\n showStarItemDetails(1);\n if (position == 3) // Вещи ☆☆\n showStarItemDetails(2);\n if (position == 4) // Вещи ☆☆☆\n showStarItemDetails(3);\n if (position == 5) // pwcats.info\n intentPwcatsInfo();\n\n\n// mDrawerLeftLayout.setItemChecked(position, true);\n mDrawerLayout.closeDrawer(mDrawerLeftLayout);\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id)\n {\n }", "private void selected(ListSelectionEvent e) {\n\t\tProject project = (Project) list.getSelectedValue();\n\t\tif (project != null) {\n\t\t\tinfo.setText(\"Description: \" + project.getDescription());\n\t\t} else {\n\t\t\tinfo.setText(\"Description: \");\n\t\t}\n\t}", "public /* synthetic */ void lambda$createView$3(View view) {\n this.dropDownContainer.toggleSubMenu();\n }", "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "public void widgetSelected(SelectionEvent e)\n\t\t\t{\n\t\t\t\tif (ptDataSourceFormComposite.getDataSourceInstances() == null)\n\t\t\t\t\treturn;\n\t\t\t\tfor (int i = 0; i < ptDataSourceFormComposite.getDataSourceInstances().size(); i++)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tDataSource datasource = ptDataSourceFormComposite.getDataSourceInstances().get(i);\n\t\t\t\t\t\tElement altrans = datasource.subSegmentTranslate(getXliffEditorWindow().getTransUnits().get(getIOldSegmentPosition()),\n\t\t\t\t\t\t\t\txliffDocument, sourceLanguage, targetLanguage, null);\n\t\t\t\t\t\tif (altrans != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString text = \"\";\n\t\t\t\t\t\t\tVector<PhraseTranslateResult> elements = getPhrases(getIOldSegmentPosition());\n\t\t\t\t\t\t\tfor (int j = 0; j < elements.size(); j++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttext = text + elements.get(j).getSourcePhrase() + \" : \" + elements.get(j).getTargetPhrase() + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tstatusDisplayWindow.setText(text);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception e2)\n\t\t\t\t\t{\n\t\t\t\t\t\te2.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tshowAltTrans(getIOldSegmentPosition(), 0, 0);\n\t\t\t}", "@Override\n public void itemClicked(long id) {\n View fragmentContainer = findViewById(R.id.fragment_container);\n\n if(fragmentContainer != null) {\n WorkoutDetailFragment details = new WorkoutDetailFragment();\n FragmentTransaction tx = getSupportFragmentManager().beginTransaction();\n\n details.setWorkoutId(id);\n tx.replace(R.id.fragment_container, details);\n tx.addToBackStack(null);\n\n // Cannot use FRAGMENT_FADE?\n tx.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);\n\n tx.commit();\n } else {\n // If the frame layout isn't there, the app must be running on a device\n // with a smaller screen\n Intent intent = new Intent(this, DetailActivity.class);\n intent.putExtra(DetailActivity.EXTRA_WORKOUT_ID, (int) id);\n startActivity(intent);\n }\n }", "@Override\n public View getDropDownView(int position, View convertView, ViewGroup parent) {\n TextView tv = (TextView) super.getDropDownView(position, convertView, parent);\n\n // Set the text color of drop down items\n tv.setTextColor(Color.BLACK);\n tv.setText(groupRoomDetailsClasses.get(position).getGroupRoomName());\n /*// If this item is selected item\n if(position == mSelectedIndex){\n // Set spinner selected popup item's text color\n tv.setTextColor(Color.BLUE);\n }*/\n\n // Return the modified view\n return tv;\n }", "@Override\n public boolean onContextItemSelected(MenuItem item) {\n if (getUserVisibleHint()) {\n // Handle menu events and return true\n\n // Gets the itemView in the adapter\n AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();\n View view = info.targetView;\n ViewHolder itemViewHolder = (ViewHolder)view.getTag();\n\n switch (item.getItemId()){\n case 0:// Copy\n //Se guarda el nombre del fichero, el path origen a copiar y el servicio origen.\n ((MainActivity)getActivity()).setPathToCopy(itemViewHolder.getEntry().getPath());\n ((MainActivity)getActivity()).setNameFileToCopy(itemViewHolder.getEntry().getName());\n ((MainActivity)getActivity()).setCopyMoveOrigin(getServiceType());\n getActivity().invalidateOptionsMenu();\n break;\n\n case 1:// Move\n //Se guarda el nombre del fichero, el path origen a mover y el servicio origen.\n ((MainActivity)getActivity()).setPathToMove(itemViewHolder.getEntry().getPath());\n ((MainActivity)getActivity()).setNameFileToCopy(itemViewHolder.getEntry().getName());\n ((MainActivity)getActivity()).setCopyMoveOrigin(getServiceType());\n getActivity().invalidateOptionsMenu();\n break;\n\n case 2:// Delete\n deleteElement(itemViewHolder.getEntry().getPath());\n currentContent.remove(itemViewHolder.getEntry());\n //currentContent = loadContent(currentPath);\n populateContentListView(currentContent);\n break;\n }\n\n return true;\n } else\n return false;\n }" ]
[ "0.6892586", "0.6231021", "0.6024242", "0.60177463", "0.58848816", "0.58363235", "0.5787543", "0.5787543", "0.5787543", "0.5787543", "0.57755584", "0.57680124", "0.5739526", "0.570026", "0.56370795", "0.56330943", "0.5577319", "0.55728716", "0.5547726", "0.55277133", "0.5527111", "0.5522837", "0.5517866", "0.54652435", "0.5454223", "0.5436578", "0.5429722", "0.5423697", "0.54112476", "0.5411178", "0.54022765", "0.539261", "0.53758186", "0.53588474", "0.5349477", "0.5349477", "0.5349477", "0.5349477", "0.5341222", "0.5336337", "0.5315535", "0.53035295", "0.52933604", "0.5291711", "0.5283572", "0.5281306", "0.52770764", "0.5276589", "0.525571", "0.525037", "0.52489066", "0.52463144", "0.52331144", "0.52227134", "0.52137244", "0.5212952", "0.5210235", "0.5209152", "0.5204276", "0.52034783", "0.51993454", "0.5178212", "0.5178082", "0.51779485", "0.5175933", "0.51756126", "0.5164976", "0.5163641", "0.5158916", "0.51578164", "0.51570684", "0.5140285", "0.5138575", "0.5133623", "0.5129529", "0.51256186", "0.5118133", "0.51161295", "0.51141", "0.51135707", "0.5113165", "0.5108047", "0.5098679", "0.50977147", "0.5096722", "0.50919074", "0.5081918", "0.5080655", "0.5080655", "0.5079233", "0.5072632", "0.5069319", "0.50645304", "0.5062549", "0.50559944", "0.5054975", "0.5054975", "0.5049544", "0.50474006", "0.5045695", "0.50402015" ]
0.0
-1
TODO Autogenerated method stub
private void setKey() { }
{ "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
TODO Autogenerated method stub
private void sendImage(Uri selectedImageUri) { }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
Provides the caller with a random Chuck Norris Fact
@RequestMapping(method = RequestMethod.GET) public ChuckNorrisFact getChuckNorrisFact() { return client.callChuckNorrisIo(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFact() {\n Random randomGenerator = new Random();\n int randomNumber = randomGenerator.nextInt(facts.length);\n return facts[randomNumber];\n }", "Randomizer getRandomizer();", "public Clue getRandomClue()\n {\n HashMap<String, Clue> usableClues = getUseableClues();\n ArrayList<Clue> list = new ArrayList<>(usableClues.values());\n int i = rand.nextInt(usableClues.size());\n return list.get(i);\n }", "@Override\r\n\tpublic String getFortune() {\n\t\tString[] s= {\"have a nice day :)\",\r\n\t\t\t\t\"attaboy!\",\r\n\t\t\t\t\"good fortune to you <3\"\r\n\t\t};\r\n\t\tint x;\r\n\t\tx=((int)(Math.random()*9))%3;\r\n\t\t\r\n\t\treturn s[x] ;\r\n\t}", "public int getRandomBreed() {\n Random r = new Random();\n// displayToast(Integer.toString(getRandomBreed())); // not needed. generates another random number\n return r.nextInt(6);\n }", "private void random() {\n\n\t}", "float genChance();", "@Override\n\tpublic String getRandomFortune() {\n\t\treturn null;\n\t}", "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 getRandomPiece() {\r\n return new Random().nextInt(Constants.NUM_PIECES);\r\n }", "public float randomQual() {\n\t\treturn((float) getRandomInteger(30,250));\n\t}", "public static String randomRank() {\r\n\t\tString[] rank = {\"assistant\",\"associate\",\"full\"};\r\n\t\treturn rank[(int)(Math.random() * 3)];\r\n\t}", "private int randomPiece() {\n return (int)(Math.random()*N_PIECES);\n }", "@Override\n\tpublic String getFortune() {\n\t\tint index = random.nextInt(data.length);\n\t\t\n\t\tString fortune = data[index];\n\t\t\n\t\treturn fortune;\n\t}", "private Random rand()\n\t{\n\t\treturn new Random();\n\t}", "public abstract void randomize();", "private double getRandom() {\n return 2*Math.random() - 1;\n }", "public abstract int getRandomDamage();", "public int generateRandomCoupon(int n){\r\n\t\tRandom r=new Random();\r\n\t\treturn r.nextInt(n);\r\n\r\n\t}", "private int randomWeight()\n {\n return dice.nextInt(1000000);\n }", "public static Ally getRandomRep () {\n return republican[(int) (Math.random() * republican.length)];\n }", "public static int coupon(int n) {\n\t\treturn (int) (Math.random() * n);\n\t}", "public String getFortune() {\n\t\tint index = random.nextInt(data.length);\r\n\t\treturn data[index];\r\n\t\t\r\n\t}", "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 Random getRandom() {\n\t\treturn (rand);\n\t}", "@Override\n\tpublic String getFortune() {\n\t\tint index = myRandom.nextInt(data.size());\n\t\treturn data.get(index);\n\t}", "public static Suit randomSuit() {\n int pick = new Random().nextInt(Suit.values().length-1); // w/o Excuse\n return Suit.values()[pick];\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 Critter1() {\r\n\t\tnumberSpawned = 0;\r\n\t\twhile (fearfullness < 50) {//at minimum fearfullness is 50%\r\n\t\t\tfearfullness = getRandomInt(100);\r\n\t\t}\r\n\t}", "@Override\n public String getFortune() {\n List<String> fortuneList = fortunes;\n\n int rnd = random.nextInt(fortuneList.size());\n return fortuneList.get(rnd);\n }", "public static TradeGood getRandom() {\n TradeGood[] options = new TradeGood[] {WATER, FURS, ORE, FOOD, GAMES, FIREARMS,\n MEDICINE, NARCOTICS, ROBOTS, MACHINES};\n int index = GameState.getState().rng.nextInt(10);\n return options[index];\n }", "Boolean getRandomize();", "@Override\r\n\tpublic boolean fight(String oponent) {\n\t\tint x = Critter.getRandomInt(1);\r\n\t\tif (x == 1) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private double randn(){\r\n\t\t//* http://www.mathworks.com/access/helpdesk/help/techdoc/matlab.html\r\n\t\t//RandomNumber rnd = new RandomNumber(System.currentTimeMillis());\r\n\t\t//return rnd.normal();\r\n\t\treturn rnd.nextGaussian();\r\n\t\t//return 0;\r\n\t}", "public int randomDP() {\n\t\treturn(getRandomInteger(10,250));\n\t}", "private String getRandomName(){\n return rndString.nextString();\n }", "public static Ally getRandomCeleb () {\n return celebrity[(int) (Math.random() * celebrity.length)];\n }", "RocketInterface getRandomRocket();", "Chromosome getRandom();", "private static String testGetRandomInstance(int iterations)\n {\n String output = \"\";\n for (int i = 0; i < iterations; i++) \n {\n output += \"Saying hello to the random greeter: \" \n + Greeter.getRandomInstance().sayHello() + \"\\n\";\n }\n return output;\n }", "String getSeed();", "public String getSick() {\r\n\t\treturn getSick(random.nextInt(4), random.nextInt(4));\r\n\t}", "@Override\n public String getFortune() {\n return fortunes[new Random().nextInt(fortunes.length)];\n }", "public StrategyRandom() {\n name = \"Random\";\n }", "public ITrait<T> getRandomTraitFromDimension() {\n // needs to use the list only\n Integer randomTraitNumber = this.model.getUniformRandomInteger(this.traitList.size() - 1);\n return this.traitList.get(randomTraitNumber);\n }", "@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(500, 800);\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}", "@Test\r\n\tpublic void testCreateRandomCustomer() {\r\n\r\n\t\tint NO_FLOORS = 25;\r\n\t\t\r\n\t\tCustomer c = custFact.createRandomCustomer(NO_FLOORS);\r\n\t\t\r\n\t\tassertNotNull(c);\r\n\t\t\r\n\t}", "int tournament() {\r\n \tint ch1,ch2;\r\n\t\tch1 = (int)Math.floor(Math.random()*SIZE);\r\n\t\tdo {\r\n\t\t\tch2 = (int)Math.floor(Math.random()*SIZE);\r\n\t\t} while (ch1==ch2);\r\n\t\tif (fit[ch1]<fit[ch2]) return ch1;\r\n\t\telse return ch2;\r\n }", "public static int getRandom(int n){\n\t\treturn rg.nextInt(n); \n\t}", "protected Random get_rand_value()\n {\n return rand;\n }", "public double getRandom() {\n return 20*Math.random() - 10;\n }", "public static CubeState getRandom(){\n CubeState cs = new CubeState();\n Random rand = new Random();\n for (int i = 0; i < 20; i++) {\n cs = cs.times(Solver.generators.get(rand.nextInt(18)));\n }\n return cs;\n }", "public Dice() {\n this.random = new Random();\n this.faces = 6;\n }", "@Override\n\tpublic String getName() {\n\t\treturn \"RandomThinker\";\n\t}", "public Fact(String fact) {\n this.fact = fact;\n }", "public void rollRandom() {\n\t\tthis.strength = randomWithRange();\r\n\t\tthis.wisdom = randomWithRange();\r\n\t\tthis.dexterity = randomWithRange();\r\n\t\tthis.constitution = randomWithRange();\r\n\t\tthis.intelligence = randomWithRange();\r\n\t\tthis.charisma = randomWithRange();\r\n\t}", "public java.lang.String getRnd () {\r\n\t\treturn rnd;\r\n\t}", "@Override\n public String next() {\n Random random = new Random();\n return fruits[random.nextInt(3)];\n }", "private int generateRandomNumber() {\n\t\treturn new SplittableRandom().nextInt(0, 3);\n\t}", "private int randomNum() {\r\n\t return((int)(Math.random() * 100));\r\n\t }", "static Tour rndTour() {\r\n\t\tTour tr = Tour.sequence();\r\n\t\ttr.randomize();\r\n\t\ttr.distance = tr.distance();\r\n\t\treturn tr;\r\n\t}", "int randInt(int n) {\r\n return _randomSource.nextInt(n);\r\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}", "public int fight() {\r\n\t\treturn -this.randomObject.nextInt(50);\r\n\t}", "public void displayRandomFakeTweet() {\n boolean decider;\n if (useGeoffChallen) {\n decider = random.nextBoolean();\n } else {\n decider = true;\n }\n if (decider) {\n List<twitter4j.Status> tweetsList = getter.getTweetsList();\n int randIndex;\n String tweet;\n\n // If this function is called as the first Tweet to be displayed, TweetGetter can't grab\n // tweets fast enough to display in time, causing tweetsList to have a size of 0. So instead\n // we'll just display a different quote\n try {\n randIndex = random.nextInt(tweetsList.size());\n tweet = tweetsList.get(randIndex).getText()\n .replace(\"[\", \"\")\n .replace(\"]\",\"\");\n tweetView.setText(tweet);\n } catch(IllegalArgumentException e) {\n String url = \"https://api.whatdoestrumpthink.com/api/v1/quotes/personalized?q=Bernie%20Sanders\";\n String objName = \"message\";\n displayFromJSON(url, objName);\n }\n } else {\n String url = \"https://api.whatdoestrumpthink.com/api/v1/quotes/personalized?q=Geoff%20Challen\";\n String objName = \"message\";\n displayFromJSON(url, objName);\n }\n\n }", "public static Ally getRandomDem () {\n return democrat[(int) (Math.random() * democrat.length)];\n }", "public final int arvoRivinAihe() {\r\n return super.getRandom().nextInt(super.aiheetPerusmuoto().length);\r\n }", "public void Diceroll()\n\t{\n\t\tdice1 = rand.nextInt(6)+1;\n\t\tdice2 = rand.nextInt(6)+1;\n\t\ttotal = dice1+dice2;\n\t}", "AttackResult randomAttack();", "public static int getRandomAmount(){\n return rand.nextInt(1000);\n }", "private static int getRandomNumberOfRooms(){\r\n return r.nextInt(50)+1;\r\n }", "int randInt(int n) {\n return _randomSource.nextInt(n);\n }", "private IUnit getRandomCacheUnit(){\n\t\tcache = new UnitCache();\n\t\treturn cache.getUnit(rnd.nextInt(cache.getSize()));\n\t}", "public static double random() {\r\n return uniform();\r\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}", "public double getRandom(){\n\t\treturn random.nextDouble();\n\t}", "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 static int randomNext() { return 0; }", "public Deck randomShuffle(){\n\t\tshuffleOnceRandom();\n\t\tshuffleOnceRandom();\n\t\treturn ourDeck;\n\t}", "public static void randomInit(int r) { }", "private TetrisPiece randomPiece() {\n\t\tint rand = Math.abs(random.nextInt());\n\t\treturn new TetrisPiece(rand % (PIECE_COLORS.length));\n\t}", "public abstract boolean isRandom();", "public int randomizeFirstNumber() {\n a = random.nextInt(100);\n question.setA(a);\n return a;\n }", "public static Person getARandonCustomer(){\n Person person = RandomPerson.get().next();\n return person;\n }", "public int drawpseudocard(){\n Random random = new Random();\n return random.nextInt(9)+1;\n }", "public int generateRandom() {\n\t\tint random = (int)(Math.random()*((6-1)+1))+1;\n\t\treturn random;\n\t}", "public abstract int getNFactor();", "public int rollResult(){\r\n return rand.nextInt(6) + 1;\r\n }", "public static Colores GetRandomColor(){\n Colores color=Colores.BLANCO;\n Random r=new Random();\n if(r.nextInt(2)==0){\n color=Colores.BLANCO;\n }else{\n color=Colores.NEGRO;\n }\n return color;\n }", "public String getWhy() {\n\n\t\tString[] whyArray = new String[]{\"Because the heavens told me to.\",\n\t\t\t\t\"Because I don't like it when you smile.\",\n\t\t\t\t\"Because you're average.\",\n\t\t\t\t\"Because you're old enough to remember when emojis were called \\\"hieroglyphics.\",\n\t\t\t\t\"Because you have two parts of brain, 'left' and 'right'. In the left side, there's nothing right. In the right side, there's nothing left.\",\n\t\t\t\t\"Because you are stupid and I don't engage in mental combat with the unarmed.\",\n\t\t\t\t\"Because if I wanted to kill myself I'd climb your ego and jump to your IQ.\",\n\t\t\t\t\"Because you have your entire life to be a jerk. Why not take today off?\",\n\t\t\t\t\"Because I['m sexy and I know it.\"\n\n\t\t};\n\t\tRandom random = new Random();\n\t\tint index = random.nextInt(whyArray.length);\n\t\treturn whyArray[index];\n\t}", "public static int random(int n)\n {\n int num = (int)(Math.random()*n);\n return num;\n }", "public Predator reproduce() {\n if(eaten < 2) return null;\n else {\n if ((int) (Math.random() * 100) >= 80) {\n predatorsSpawned++;\n return new Predator(((int) ((speed + Math.random()) * 5)), ((int) (maxEnergy + Math.random()\n * 50)), world, true);\n }\n predatorsSpawned++;\n return new Predator(speed, maxEnergy, world);\n }\n }", "int lanzar(int n){\n int result = (int) (Math.random()* 6) + 1;\r\n if(result !=n ) result = (int) (Math.random()* 6) + 1;\r\n return result;\r\n \r\n /*\r\n * int result = (int) (Math.random()*9)+1;\r\n * if (result > 0 && result < 7) return result;\r\n * else if(result > 6 && result < 9) return n;\r\n * else return (int) (Math.random()*6)+1;\r\n *\r\n *\r\n */\r\n }", "public static int getRand(int n) {\r\n return rand.nextInt(n);\r\n }", "private void getRandomNumber() {\n\t\tRandom generator = new Random();\n\t\trandomNumber = generator.nextInt(POSSIBLE_CHOICE.length);\n\t}", "public static Lieferart getRandomLieferart() {\n\t\treturn VALUES[RANDOM.nextInt(SIZE)];\n\t}", "private int evaluate() {\n return (int) (Math.random() * 8);\n }", "private int choose(){\n\t\tdouble temp = 10 * Math.random();\n\t\tint i = (int)temp;\n\t\treturn i;\n\t}", "@SuppressWarnings(\"unused\")\n\tpublic static String retornaNumeroCNF() {\n\n\t\tInteger cnf = (int) (Math.random() * 99999999);\n\n\t\treturn /*cnf.toString();*/ \"18005129\";\n\t}", "public STFBehaviour(Faction faction)\n\t{\n\t\tfFaction = faction;\n fRandom = new Random();\n\t}" ]
[ "0.6868335", "0.62962663", "0.6102473", "0.60911685", "0.6027719", "0.602764", "0.59886146", "0.5984847", "0.5973523", "0.58520985", "0.5850019", "0.5849381", "0.58461374", "0.5804081", "0.57549125", "0.57538027", "0.5722531", "0.57065415", "0.56774783", "0.5659908", "0.56514454", "0.5641104", "0.5624243", "0.5620523", "0.5615149", "0.56019586", "0.5597749", "0.55777234", "0.55745447", "0.557316", "0.55631125", "0.55550265", "0.5538425", "0.5525967", "0.5514538", "0.551321", "0.54934955", "0.54763985", "0.54632634", "0.54615754", "0.5458835", "0.5455862", "0.54531497", "0.54439837", "0.5440123", "0.5427996", "0.54275435", "0.5421611", "0.54150337", "0.541115", "0.5410903", "0.54047203", "0.53962374", "0.5386589", "0.53862256", "0.53771806", "0.5369992", "0.5368455", "0.5364964", "0.53616863", "0.5361216", "0.53609353", "0.5359295", "0.5356709", "0.53503364", "0.53473943", "0.53437644", "0.5342498", "0.53391", "0.53184366", "0.53172266", "0.5315483", "0.53098124", "0.5302553", "0.5302259", "0.52981687", "0.5296022", "0.52951556", "0.52914727", "0.52858365", "0.52815723", "0.5281368", "0.5280965", "0.5280958", "0.5280588", "0.5279094", "0.52783453", "0.52681977", "0.52648735", "0.5256112", "0.5253184", "0.52518874", "0.52516705", "0.5250974", "0.5247309", "0.5246529", "0.52378124", "0.5234219", "0.52279514", "0.5224808" ]
0.58023727
14
Constructor for objects of class Dog
public Dog () { super ("Dog", "Hi! My name is Snoop Dawg"); this.x = "A bone"; /* * This dog has many features to it * Do not provoke it or else it will bite! * Otherwise, It's a nice dog so have fun! */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Dog() {\r\n\r\n }", "public Dog() {\n // Default constructor\n }", "Dog(){\n\t\t\n\t\t//I want to create a chemicals object. Inorder to do this, I have to first create a Cardiac obj, then a Cells obj, then a Chemicals object.\n\t\t//I have to create a Chemicals object, to get a chemicals constructor \n\t\tnew Cardiac().new Cells().new Chemicals();\n\t\t\n\t}", "public Dog(String name, int size, int weight, int eyes, int legs, int tail, int teeth, String coat) {\n //super means to call a constructor from the class we are extending\n //can set values or call in the above constructor, your choice\n super(name, 1, 1, size, weight);\n //these are for the strictly dog paramters\n this.eyes = eyes;\n this.legs = legs;\n this.tail = tail;\n this.teeth = teeth;\n this.coat = coat;\n }", "public Dog(String sound) {\n super(sound); // this inherits from dog class\n // super() means it will be following same parameter as sound.\n }", "public Dog(String Breed, String PrimaryColor, String Size, String name, int age){\r\n // setting the parent animal name\r\n super(name,age);\r\n // setting the parent animal age\r\n // System.out.println(\"Setting Breed...\");\r\n this.Breed = Breed ;\r\n // System.out.println(\"Setting PrimaryColor...\");\r\n this.PrimaryColor = PrimaryColor;\r\n //System.out.println(\"Setting Size...\");\r\n this.Size = Size;\r\n\r\n\r\n\r\n }", "public Dog(Integer age, String name) {\n setAge(age);\n setName(name);\n }", "private Dog(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void constructor() {\n setEdibleAnimals();\n }", "public Dog(int thisSize, String thisBreed, String thisName)\r\n {\r\n setSize(thisSize);\r\n setBreed(thisBreed);\r\n setName(thisName);\r\n }", "public static void main(String[] args) {\n Animal animal= new Animal(\"Animal\", 1,1,5,5);\n Dog dog= new Dog(\"Dingo\", 8,20,2,4,1,20, \"long silky\");\n \n }", "Dog(double d) {\n\t\tSystem.out.println(\"Yap yap!\");\n\t}", "public God() {}", "protected Animal() {\t\r\n\t}", "public static void main(String[] args) {\n Dog dog = new Dog();\n Dog dog1 = new Dog(\"tuna\", 2);\n System.out.println(dog.eat());\n\n }", "public static void main(String[] args) {Dog dog1 = new Dog();\n//\t\tdog1.name=\"Bubbly\";\n//\t\tdog1.age=5;\n//\t\tdog1.breed=\"Poodle\";\n//\t\tdog1.color=\"White\";\n//\t\t\n//\t\tSystem.out.println(dog1.name + \":\" + dog1.age + \":\" + dog1.breed + \":\" + dog1.color);\n//\t\t\n//\t\tdog1.bark();\n//\t\tdog1.eat();\n//\t\tdog1.wagTail();\n//\t\t\n//\t\tSystem.out.println(\"--------------\");\n\t\t\n\t\t\n//\t\tDog2 dog = new Dog2();\n//\t\tSystem.out.println(dog.name + \":\" + dog.age + \":\" + dog.breed + \":\" + dog.color);\n//\t\t\n\t\tDog2 dog2=new Dog2();\n\t\tSystem.out.println(dog2.name + \":\" + dog2.age + \":\" + dog2.breed + \":\" + dog2.color);\n\t\t\n//\t\tDog2 dog3=new Dog2(\"Rusty\",20,\"Bulldog\",\"Black\");\n//\t\tSystem.out.println(dog3.name + \":\" + dog3.age + \":\" + dog3.breed + \":\" + dog3.color);\n\n\t\t\n\t\t\n\t}", "Dog(int i) {\n\t\tSystem.out.println(\"Woof!\");\n\t}", "public Dog(String name) {\n if (name == null || name.trim().isEmpty()) {\n throw new IllegalArgumentException(\"The Dog's name \"\n + \"should not be null or whitespace!\");\n } else {\n this.name = name;\n }\n \n }", "public Animal(int age){\n this.age = age;\n System.out.println(\"An animal has been created!\");\n }", "public Cat(){\n\t\tsuper();\n\t}", "protected Demon(int str, int hp)\n {\n super(str, hp);\n }", "public Animal(){\n System.out.println(\"An animal has been created...\");\n }", "public CircusDog(String b)\n {\n super(b);\n }", "public Animal() {\n\t\tSystem.out.println(\"Animal constructor called\");\n\t}", "public Pond(){}", "public static void main(String[] args) {\n\t\tDog1 c= new Dog1();\r\n\t\t\r\n\t\tc.eat();\r\n\t\tc.bark();\r\n\t\t\r\n\r\n\t}", "public D() {}", "public static void main(String[] args) {\n\t\tDog d = new Dog();\n\n\t\t// use the dot operator (.) to set the size of the Dog\n\t\td.size = 40;\n\n\t\t// call its bark() method\n\t\td.bark();\n\t}", "public static void main(String args[]){\n\n\t\tDog myDog = new Dog();\n\t\t//DomasticAnimal yourDog = new Dog();//valid\n\t\t//Animal herDog = new Dog();//valid\n\t\tmyDog.pet();\n\t\tmyDog.makeNoice();\n\t\tmyDog.sleep();\n\t\tmyDog.eat();\n\t\t\n\t\tLion girLion1 = new Lion();\n\t\t//WildAnimal girLion2 = new Lion();//valid\n\t\t//Animal girLion3 = new Lion();//valid\n\t\tgirLion1.hunt();\n\t\tgirLion1.makeNoice();\n\t\tgirLion1.sleep();\n\t\tgirLion1.eat();\n\t\t\n\t}", "public Animal(String name) {\r\n this.animalName = name;\r\n }", "public Dog(String name, double weight, boolean hasPoopedRecently) {\n this.name = name;\n this.weight = weight;\n this.hasPoopedRecently = hasPoopedRecently;\n }", "public Animal(int theAge) {\n\t\t// TODO Auto-generated constructor stub\n\t\tage = theAge;\n\t}", "private Cat() {\n\t\t\n\t}", "public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }", "public static void main(String... args) {\r\n Dog d = new Dog();\r\n d.setAge(5);\r\n d.setRace(\"Bulldog\");\r\n d.setWeight(30);\r\n d.eat();\r\n System.out.println(d);\r\n\r\n d.addVaccine(\"Astranezeca\");\r\n System.out.println(d.getVaccineNames());\r\n\r\n d.addVaccine(\"Pfizer\");\r\n System.out.println(d.getVaccineNames());\r\n\r\n d.addVaccine(\"Sputnik\");\r\n System.out.println(d.getVaccineNames());\r\n\r\n d.expireVaccine(\"Astranezeca\");\r\n System.out.println( d.getVaccineNames());\r\n\r\n\r\n Dog d2 = new Dog();\r\n System.out.println(d == d2);\r\n System.out.println(d.equals(d2));\r\n System.out.println(d2.equals(d));\r\n\r\n\r\n }", "public static void main(String[] args) {\n String eName = \"Edison\";\n int eAge = 4;\n double eWeight = 13.4;\n\n String tesName = \"Tesla\";\n int tesAge = 7;\n double tesWeight = 6.9;\n\n // Object WITHOUT constructor\n Cat ncEdison = new Cat();\n ncEdison.name = \"Edison\";\n ncEdison.age = 4;\n ncEdison.weight = 13.4;\n ncEdison.printDescription();\n\n // Object WITH constructor\n Cat cTesla = new Cat(\"Tesla\", 7, 6.9);\n Cat cSpotify = new Cat(\"Spotify\", 8, 3.4);\n\n cTesla.printDescription();\n cSpotify.printDescription();\n\n Cat mystery = new Cat();\n mystery.printDescription();\n\n Dog fido = new Dog(\"Fido\", 15, 30);\n// Dog frodo = new Dog(); // No default constructor for Dog()\n\n// System.out.println(fido.weight); // Is private\n\n Journal diary = new Journal();\n diary.append(\"Today Tesla was evil\");\n diary.append(\"Today Edison was asleep\");\n String theWords = diary.getWords();\n theWords = \"_deleted by timmy\";\n\n // Static\n ElectricCharge blanket = new ElectricCharge(7);\n ElectricCharge pants = new ElectricCharge(2);\n ElectricCharge pyjamas = new ElectricCharge(5);\n ElectricCharge socks = new ElectricCharge(4);\n\n System.out.println(\"The total Charge is: \" + ElectricCharge.getTotalCharge());\n\n }", "public static void main(String[] args) {\n\t\tdog d = new dog();\n\t\t//System.out.println(d.pig);\n\t}", "public Sad() {\n }", "public Fruit() {\r\n\t}", "public DBEpisode() {}", "private void addDog() {\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tString numID = id.get(i);\n\t\t\tString name = names.get(i);\n\t\t\tString breed = breeds.get(i);\n\t\t\tString dateBirth = date.get(i+1);\n\t\t\tString img = dogImg.get(i);\n\t\t\t\t\t\t\n\t\t\t//Adding the dogs to the list\n\t\t\tlistOfDogs.add(new Dog(app, numID, name, breed, dateBirth, img));\n\t\t}\t\t\n\t}", "public static void main(String[] args) {\n Animal A1 = new Animal(5,\"Animal\",1,\"Carnivores\",1);\n Dog d1 = new Dog(2,\"Miller\",4,\"Herbivores\",1);\n\n d1.eat();\n A1.eat();\n\n }", "public Fish() {\r\n\t}", "public Bicycle() {\n // You can also call another constructor:\n // this(1, 50, 5, \"Bontrager\");\n System.out.println(\"Bicycle.Bicycle- no arguments\");\n gear = 1;\n cadence = 50;\n speed = 5;\n name = \"Bontrager\";\n }", "public Gasto() {\r\n\t}", "public static void main(String[] args) {\n\t\tAnimal1 d=new Dog1();\n\t\td.eat();\n\t\td.makeSound();\n\t\tAnimal1 c=new Cat();\n\t\tc.eat();\n\t\tc.makeSound();\n\t}", "public Cheese() {\n\n }", "public Shot() {\n }", "@Override\r\n\tpublic Dog Clone() throws CloneNotSupportedException {\r\n\t\treturn new Poodle(this.getName(), this.getWeight(), this.getColor(), this.getGender(), this.getInfo()); \r\n\t}", "public Gov() {\n }", "public Circle(){\n }", "public Car(){\n\t\t\n\t}", "public BasicSpecies() {\r\n\r\n\t}", "public DiscreteTag(){}", "public Dragon()\n {\n // initialise instance variables\n //Hi my name is jen\n this(50, 50, 1, Color.GREEN, \"Unnamed\");\n /*x = 50;\n y = 50;\n size = 1;\n c = Color.GREEN; // INS comment here.\n health = 35;\n name = \"Unnamed\";*/\n }", "public static void main(String[] args) {\n\t\tDog dog=new Dog(12,30);\r\n\t\tLion lion=new Lion(14,100);\r\n\t\tSystem.out.println(dog.height+\" \"+dog.weight);\r\n\t\tdog.talk();\r\n\t\tSystem.out.println(lion.height+\" \"+lion.weight);\r\n\t\tlion.talk();\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\n // animal.weight = 25.3;\n // animal.age = 11;\n // System.out.println(\"animal -> \" + animal);\n\n Dog bobik = new Dog();\n bobik.setNick(\"Bobik\");\n bobik.setGender(\"male\");\n bobik.setWeight(10.0D);\n bobik.setBreed(\"Shpich\");\n bobik.age = 5;\n bobik.gender = \"netural\";\n\n // animal.say();\n bobik.say();\n\n Cat speedy = new Cat(5.25D);\n speedy.speed = \"very fast\"; // так писать нельзя\n\n bobik.walk();\n }", "public static void main(String[] args) {\n\t\tAnimal a = new Animal();\n\t\tDog d = new Dog();\n a.eat();\n d.eat();\n\t}", "public Poem(){}", "public Troop() //make a overloaded constructor \n\t{\n\t\ttroopType = \"light\"; \n\t\tname = \"Default\";\n\t\thp = 50;\n\t\tatt = 20;\n\t}", "@Override\n public String toString() {\n return \"Dog [name=\" + name + \"]\";\n }", "public Supercar() {\r\n\t\t\r\n\t}", "public HotDogStand(int standId,int noHDS)//constructor that initializes both instance variables\n{\n\tsuper();//super constructor\n\tthis.standId = standId;//refers to this stand id\n\tthis.noHDS = noHDS;// refers to this stands number of hot dogs sold\n}", "public Person() {\n\t\t\n\t}", "public Fish(String species, String desc)\n {\n super(species, desc);\n toy = \"Jesus net\";\n }", "public BuildDome(God newGod) {\n super(newGod);\n }", "public Bike(){\n\t}", "public static void main(String[] args) {\n\r\n\t\tDog d = new Dog();\r\n\t\td.displayHealth(5);\r\n\t\t\r\n\t\t// Scope of an Object\r\n\t\t//Dog dog = new Dog();\r\n//\t\tAnimal dog = new Dog(); // upcasting --> internally \r\n//\t\t// upcasting is an implicit process or done automatically\r\n//\t\tDog d = (Dog)dog; // downcasting\r\n//\t\tdog.eat();\r\n//\t\td.dogData();\r\n\r\n//\t\tDog d = new Dog();\t\r\n//\t\tSystem.out.println(d.toString());// Object --> \r\n//\t\t\r\n//\t\tAnimal a = d;\r\n//\t\tSystem.out.println(a.toString());\r\n//\t\tSystem.out.println(d instanceof Dog);\r\n\t}", "private void __sep__Constructors__() {}", "public static void main(String[] args) {\n Dog dog = new Dog(true, true, \"big\");\n System.out.println(\" \");\n Kat kat = new Kat(true, 2,true, 123, true, true, \"yes\");\n// System.out.println(dog.makeSound() + kat.makeSound());\n\n\n System.out.println(kat.catYears());\n\n System.out.println(dog.dogYears());\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "public Odontologo() {\n }", "public PedometerEntity() {\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tAnimal a1 = new Animal();\r\n\t\tDog d1 = (Dog)a1;\r\n\t\td1.eat();\r\n\t\td1.noise();\r\n\t\t\r\n\t}", "public Boat() {\n }", "public Animal(String tipo){\n\t\tthis.tipo = tipo;\n\t}", "void Dogs() {\n \n }", "public Builder setDog(com.zzsong.netty.protobuff.two.ProtoData.Dog value) {\n if (dogBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n dataBody_ = value;\n onChanged();\n } else {\n dogBuilder_.setMessage(value);\n }\n dataBodyCase_ = 3;\n return this;\n }", "public Tags() {\n\t\t\n\t}", "public Person(){\r\n\t\tsuper();\r\n\t}", "public Picture ()\n {\n /* not needed but use it to show students the implicit call to super()\n * child constructors always call a parent constructor \n */\n super(); \n }", "public Picture ()\n {\n /* not needed but use it to show students the implicit call to super()\n * child constructors always call a parent constructor \n */\n super(); \n }", "public static void main(String[] args) {\n\t\tObject object = new Object();\n\t\tDog dog = new Dog();\n\t\tSystem.out.print(dog.toString());\n\t}", "public God(int id,\r\n String name,\r\n String godClass,\r\n String type,\r\n int baseHealth,\r\n int healthScaling,\r\n int basePProtection,\r\n int baseMProtection,\r\n int baseMana,\r\n double baseAttackSpeed,\r\n int baseHP5,\r\n int baseMP5,\r\n double physicalProtectScaling,\r\n double magicalProtectScaling,\r\n int baseMovementSpeed,\r\n int baseDamage,\r\n double damageScaling,\r\n String pantheon,\r\n String lore\r\n )\r\n {\r\n this.mId = id;\r\n this.mName = name;\r\n this.mGodClass = godClass;\r\n this.mType = type;\r\n this.mBaseHealth = baseHealth;\r\n this.mHealthScaling = healthScaling;\r\n this.mBasePProtection = basePProtection;\r\n this.mBaseMProtection = baseMProtection;\r\n this.mBaseMana = baseMana;\r\n this.mBaseAttackSpeed = baseAttackSpeed;\r\n this.mBaseHP5 = baseHP5;\r\n this.mBaseMP5 = baseMP5;\r\n this.mPhysicalProtectScaling = physicalProtectScaling;\r\n this.mMagicalProtectScaling = magicalProtectScaling;\r\n this.mBaseMovementSpeed = baseMovementSpeed;\r\n this.mBaseDamage = baseDamage;\r\n this.mDamageScaling = damageScaling;\r\n this.mPantheon = pantheon;\r\n this.mLore = lore;\r\n }", "public static void main(String[] args) {\n Animal myAnimal = new Animal();\n myAnimal.animalSound();\n\n myAnimal = new Dog();\n myAnimal.animalSound();\n\n myAnimal = new Cat();\n myAnimal.animalSound();\n\n }", "private Egg(String name, int turnsToHatch, int hatchEarnings, Dinosaur babyDinosaur) {\n super(name, 'O', true);\n this.turnsToHatch = turnsToHatch;\n this.hatchEarnings = hatchEarnings;\n this.babyDinosaur = babyDinosaur;\n this.age = 0;\n }", "public static void main(String[] args) {\n\t\tAnimal a = new Dog();\r\n\t\r\n\t\ta.move();\r\n\t\ta.eat(); \r\n\t\t\r\n\t\tAnimal b= new Cow();\r\n\t\tb.move();\r\n\t\tb.eat();\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tBullDog b = new BullDog();\n\n\t\t\n\t}", "public ChickenAbstract(int x, int y)\n\t{\teggs= new ArrayList <EggAbstract> ();\n\n\tsetX(x);\n\tsetY(y);\n\n\t}", "public Song() {}", "public Animal(boolean randomAge, Field field, Location location, int breeding_age, int max_age, double breeding_probability, int max_litter_size)\n {\n alive = true;\n age = 0;\n if(randomAge) {\n age = rand.nextInt(max_age);\n }\n this.field = field;\n setLocation(location);\n this.breeding_age = breeding_age;\n this.max_age = max_age;\n this.breeding_probability = breeding_probability;\n this.max_litter_size = max_litter_size;\n gender = Math.random() < 0.5;\n }", "public Bid() {}", "public Deck()\n {\n this(1);\n }", "public Animal(String message){\n name=\"Bob the Animal\";\n System.out.println(message);\n }", "public Person() {}", "public Ninja(int x, int y)\r\n {\r\n super(x, y, 5);\r\n }", "public Vehicle2D() {\n }", "public Chick() {\n\t}", "public PennyFarthing(int startCadence, int startSpeed) {\n // Call the parent constructor with super\n super(startCadence, startSpeed, 0, \"PennyFarthing\");\n System.out.println(\"PennyFarthing.PennyFarthing- constructor with arguments\");\n }", "private static Dog createLabrador(){\n try {\n UtilityMethods.print(\"Creating labrador for you...!\"); \n DogGenerator dogGenerator = new DogGenerator();\n DogBuilder labradorDogBuilder = new LabradorBuilder();\n dogGenerator.setDogBuilder(labradorDogBuilder);\n dogGenerator.constructDog(\n \"Animal\",\n \"Male\",\n 20,\n \"Carnivores\"\n );\n Dog labradordog = dogGenerator.getDog();\n UtilityMethods.print(\"\\n\"); \n labradordog.eat();\n UtilityMethods.print(\"\\n\"); \n labradordog.speak();\n UtilityMethods.print(\"\\n\"); \n labradordog.walk();\n UtilityMethods.print(\"\\n\"); \n return labradordog;\n } catch (Exception e) {\n UtilityMethods.print(e.getMessage()); \n }\n return null;\n }", "public Dragon(int x,int y, int size, Color c, String n){\n this.x = x;\n this.y = y;\n this.size = size;\n this.c = c; // You saw nothing.\n health = 50;\n name = n;\n bodyX = x + size * 25;\n bodyY = y + size * 25;\n bodyWidth = size * 60;\n bodyHeight = size * 50;\n }" ]
[ "0.85389996", "0.8463445", "0.76474434", "0.76444215", "0.7441576", "0.73643744", "0.71118784", "0.68984437", "0.66749", "0.664863", "0.662353", "0.65982884", "0.6586585", "0.6528765", "0.6524118", "0.650212", "0.6463079", "0.63723165", "0.62754303", "0.6250099", "0.62300295", "0.61754674", "0.6151508", "0.61217654", "0.60963476", "0.609046", "0.6069506", "0.60420465", "0.6024636", "0.5990889", "0.59715766", "0.5968603", "0.59680825", "0.5896381", "0.58824795", "0.58775747", "0.5866108", "0.5857419", "0.58422726", "0.58137935", "0.5776927", "0.5755434", "0.57102954", "0.5707361", "0.5692664", "0.56699896", "0.5644288", "0.56418645", "0.5620477", "0.561495", "0.5606241", "0.5605166", "0.55953467", "0.55884016", "0.5587165", "0.55813736", "0.55791324", "0.5554461", "0.5543799", "0.55421597", "0.5525463", "0.55252486", "0.550698", "0.5506485", "0.5501647", "0.5500516", "0.5496946", "0.5496156", "0.54902357", "0.5489842", "0.5484791", "0.54839367", "0.54742026", "0.5463756", "0.5458648", "0.54580796", "0.5457526", "0.5453525", "0.54511106", "0.5449113", "0.5449113", "0.5444691", "0.5441964", "0.54324305", "0.5428587", "0.54269063", "0.5421975", "0.54158443", "0.5408013", "0.53956753", "0.539518", "0.53950405", "0.5394903", "0.5393726", "0.538967", "0.538966", "0.538493", "0.53842103", "0.5376098", "0.5372946" ]
0.7550351
4
endregion region SERVER/CLIENT STUFF
private void serverConfigurations() { client = new Client(); client.start(); Network.register(client); client.addListener(new Listener() { public void connected(Connection connection) { } public void received(Connection connection, Object object) { if (object instanceof IsFull) transitionTo(mainMenu); if (object instanceof Abort) { // } if (object instanceof CanStart) Platform.runLater(() -> transitionTo(mainGame)); if (object instanceof WhoseTurn) { WhoseTurn whoseTurn = (WhoseTurn) object; Platform.runLater(() -> setTurnLabel(whoseTurn.name)); } if (object instanceof ConnectedPlayers) { System.out.println("CONNECTED PLAYERS"); ConnectedPlayers players = (ConnectedPlayers) object; Platform.runLater(() -> { textArea.clear(); for (String name : players.names) textArea.appendText(name + "\n"); } ); } if (object instanceof ReadyForShips) Platform.runLater(() -> transitionTo(setShips)); if (object instanceof OthersSpecs) { OthersSpecs othersSpecs = (OthersSpecs) object; Platform.runLater(() -> { ene1.serverID = othersSpecs.ene1; ene1.name = othersSpecs.ene1n; ene1.labeln.setText(ene1.name); cWl1.setText(ene1.name); ene2.serverID = othersSpecs.ene2; ene2.name = othersSpecs.ene2n; ene2.labeln.setText(ene2.name); cWl2.setText(ene2.name); }); } if (object instanceof YourBoardToPaint) //System.out.println("MY BOARD TO PAINT"); Platform.runLater(() -> mGSelfBoard.updateTiles(((YourBoardToPaint) object).board)); if (object instanceof EnemiesBoardsToPaint) { //System.out.println("ENEMIES BOARDS TO PAINT"); Platform.runLater(() -> { ene1.b.startTiles(((EnemiesBoardsToPaint) object).board1); ene2.b.startTiles(((EnemiesBoardsToPaint) object).board2); }); } if (object instanceof EnemyBoardToPaint) { Platform.runLater(() -> { EnemyBoardToPaint ebp = (EnemyBoardToPaint) object; updateEnemyBoard(ebp.id, ebp.newAttackedBoard); System.out.println("ENEMY BOARD TO PAINT WITH INDEX " + ebp.id); }); } if (object instanceof AnAttackResponse) { Platform.runLater(() -> { lastAttacked.b.updateTiles(((AnAttackResponse) object).newAttackedBoard); iCanAttack = ((AnAttackResponse) object).again; doSounds(((AnAttackResponse) object).actualHit, ((AnAttackResponse) object).shipHit); }); } if (object instanceof YourTurn) { Platform.runLater(() -> { iCanAttack = true; setTurnLabel("My TURN!!"); }); } if (object instanceof YouDead) { Platform.runLater(() -> { lost("You died a horrible death. RIP you"); transitionTo(mainMenu); }); } if (object instanceof PlayerDied) { Platform.runLater(() -> { removeEnemy(((PlayerDied) object).who); }); } if (object instanceof YouWon) { Platform.runLater(() -> { Alert lost = new Alert(Alert.AlertType.CONFIRMATION); lost.setContentText("YOU BEAT THEM ALL"); lost.showAndWait(); won(); }); } if (object instanceof ChatMessage) { Platform.runLater(() -> { EnemyLocal toUpdate = ene1; if (((ChatMessage) object).saidIt == ene2.serverID) { toUpdate = ene2; } toUpdate.conversation.setText(toUpdate.conversation.getText() + ((ChatMessage) object).message); }); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void conectServer() {\n\n\t}", "S getServer();", "@Override\n\tpublic void updateClient() {\n\t\t\n\t}", "void clientReady();", "private void requestClientNameFromServer() {\n writeToServer(ServerAction.GET_NAME + \"\");\n }", "public interface ClientInterface extends Remote {\n\tpublic static final int NUMBEROFSERVER=7;\n\t\n\t/*public static final String[] SERVERS = { \"glados.cs.rit.edu\", \"glados.cs.rit.edu\", \"glados.cs.rit.edu\", \"glados.cs.rit.edu\",\n\t\t\"glados.cs.rit.edu\", \"glados.cs.rit.edu\", \"glados.cs.rit.edu\", \"glados.cs.rit.edu\", \"glados.cs.rit.edu\",\n\t\t\"glados.cs.rit.edu\", \"glados.cs.rit.edu\", \"glados.cs.rit.edu\" };*/\n\tpublic static final String[] SERVERS = { \"glados.cs.rit.edu\", \"kansas.cs.rit.edu\", \"doors.cs.rit.edu\", \"gorgon.cs.rit.edu\",\n\t\t\"newyork.cs.rit.edu\", \"yes.cs.rit.edu\", \"kinks.cs.rit.edu\", \"medusa.cs.rit.edu\", \"joplin.cs.rit.edu\",\n\t\t\"delaware.cs.rit.edu\", \"buddy.cs.rit.edu\", \"arizona.cs.rit.edu\" };\n\t//public static final String ClientIP=\"129.21.88.98\";\n\t/**\n\t * This remote method will be called by server for copying file at Client using remote object.\n\t * @param data Byte array containing File data\n\t * @param name Name of the File\n\t * @param Server Name of the server\n\t * @throws RemoteException\n\t */\n\tpublic void getFile(byte[] data, String name,String server) throws RemoteException;\n\t/**\n\t * Servers will update request trail by invoking this remote method\n\t * @param request Name of the Server which is serving the file request.\n\t * @throws RemoteException\n\t */\n\tpublic void updateRequestTrail(String request) throws RemoteException;\n\t/**\n\t * Severs invoke this method for passing message to client Ex File does not exist \n\t * @param error Message contains\n\t * @throws RemoteException \n\t */\n\tpublic void Error(String error) throws RemoteException; \n\t\t\n\t\n}", "public void updateClient()\n\t{\n\t\t// TODO\n\t}", "public static void main(String[] args) throws UnknownHostException, IOException\n\t{\n\t\t Socket clientSocket = new Socket(\"localhost\", 6789);\n\t\t clientSocket.setSoTimeout(5000);\n\n\t\t DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream());\n\t\t BufferedReader inFromServer = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n\t\t outToServer.writeBytes(\"queryState\" + '\\n'); // warningClear , stopRequest, startRequest, queryState\n\t\t String clientMess = inFromServer.readLine();\n\t\t System.out.println(\"FROM SERVER: \" + clientMess);\n\t\t clientSocket.close();\n\t\t String mess = null;\n\t\t if(clientMess.equals(\"ON\"))\n\t\t {\n\t\t\t mess = \"stopRequest\";\n\t\t }\n\t\t else if(clientMess.equals(\"OFF\"))\n\t\t\t mess = \"startRequest\";\n\t\t Socket clientSocket2 = new Socket(\"localhost\", 6789);\n\t\t DataOutputStream outToServer2 = new DataOutputStream(clientSocket2.getOutputStream());\n\t\t BufferedReader inFromServer2 = new BufferedReader(new InputStreamReader(clientSocket2.getInputStream()));\n\t\t outToServer2.writeBytes(mess + '\\n'); // warningClear , stopRequest, startRequest, queryState\n\t\t System.out.println(\"FROM SERVER: \" +inFromServer2.readLine() );\n\t\t clientSocket2.close();\n\t\t \n\t}", "public void run() {\n Socket socket;\n try {\n socket = new Socket(servers.getServerAddress(),Integer.parseInt(servers.getServerPort()));\n } catch (IOException e) {\n // e.printStackTrace();\n System.err.println(\"Cannot connect to the server: \" + servers.getServerAddress()\n + \" at port:\" + servers.getServerPort());\n return;\n }\n\n ObjectOutputStream toServer = null;\n try {\n toServer = new ObjectOutputStream(socket.getOutputStream());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n BufferedReader toClient = null;\n try {\n toClient = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n\n toServer.writeObject(argsToServer);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //get and print query results\n String line;\n int count = 0;\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n PrintStream pr = new PrintStream(out);\n try {\n while((line = toClient.readLine()) != null) {\n System.out.println(\"<\" + servers.getServerAddress() + \"> :\" + line);\n count++;\n pr.println(line);\n }\n pr.flush();\n System.out.println(servers.getServerAddress()+ \" query count: \" + count);\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //saveLocalFile(out);\n }", "@Override\n\tpublic void readClient(Client clt) {\n\t\t\n\t}", "public interface DataRelayClient {\n\n /**\n * Send data in a loop over UDP\n */\n public void streamData(String pathToFile) throws IOException;\n\n /**\n * Receive data in a loop via UDP\n */\n public void receiveData() throws IOException;\n\n /**\n * Initialize TCP connection\n */\n public void initializeTCP() throws IOException;\n /**\n * Initialize UDP connection\n */\n public void initializeUDP() throws IOException;\n\n /**\n * Get client ID from the server\n */\n public void setID() throws IOException;\n\n /**\n * Check if client is first to connect\n */\n public boolean isFirstToConnect() throws IOException;\n\n /**\n * Initialize the client\n */\n public void initialize() throws Exception;\n}", "public abstract Client getClient();", "private void requestServerId() {\n connection.startClient(lbInfo.getIp(), lbInfo.getPort());\n System.out.println(\"Connected!\");\n connection.sendMessage(connectionInfo);\n }", "public static interface Client\n\t{\n\n\t\t/**\n\t\t * Server notify the client to refresh the player list.\n\t\t * @param playerList New player list.\n\t\t * @throws RpcException On connection error.\n\t\t */\n\t\tvoid refreshPlayerList(Map<String, IPlayerConfig> playerList) throws RpcException;\n\n\t\t/**\n\t\t * Server notify the client to refresh the game config. Client is expected to display it in GameCreation panel.\n\t\t * @param gameCfg New game config.\n\t\t * @throws RpcException On connection error.\n\t\t */\n\t\tvoid refreshGameConfig(GameConfig gameCfg) throws RpcException;\n\t\t\n\t\t/**\n\t\t * Server broadcast game creation message from another player.\n\t\t * @param fromPlayer Sender player. \n\t\t * @param msg Message.\n\t\t * @throws RpcException On connection error.\n\t\t */\n\t\tvoid receiveGameCreationMessage(String fromPlayer, String msg) throws RpcException;\n\n\t\t/**\n\t\t * Server broadcast running game message from another player.\n\t\t * @param fromPlayer Sender player. \n\t\t * @param msg Message.\n\t\t * @throws RpcException On connection error.\n\t\t */\n\t\tvoid receiveRunningGameMessage(String fromPlayer, String msg) throws RpcException;\n\t\t\n\t\t/**\n\t\t * Server broadcast paused game message from another player.\n\t\t * @param fromPlayer Sender player. \n\t\t * @param msg Message.\n\t\t * @throws RpcException On connection error.\n\t\t */\n\t\tvoid receivePausedGameMessage(String fromPlayer, String msg) throws RpcException;\n\t\t\n\t\t/**\n\t\t * Server broadcast new turn events.\n\t\t * Client should process these events on local gameboard.\n\t\t * If there is an error processins events on local gameboard, then it means local gameboard and server gameboard view for this player are out of sync.\n\t\t * In that case, client should call {@link ServerRunningGame#getEntireGameLog()} methods to recreate a fresh local gameboard.\n\t\t * @param newTurnEvents Events generated on turn resolution.\n\t\t * @throws RpcException On connection error.\n\t\t */\n\t\tvoid receiveNewTurnGameBoard(List<IGameEvent> newTurnEvents) throws RpcException;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic void run() {\r\n\t\t//prendo gli streams per comunicare con il server\r\n\t\tDataOutputStream writer = ClientMain.WRITER;\r\n\t\tDataInputStream reader = ClientMain.READER;\r\n\t\t\r\n\t\t//creo la richiesta di look up\r\n\t\tJSONObject request = new JSONObject();\r\n\t\trequest.put(\"OP\", \"LOOKUP\");\r\n\t\trequest.put(\"ID\", nickname);\r\n\t\t\t\t\r\n\t\t//variabili per gestire la riposta del server\r\n\t\tString response = null;\r\n\t\tJSONObject responseJSON = null;\r\n\t\t\t\t\t\t\t\t\r\n\t\ttry {\r\n\t\t\t//mando la richiesta\r\n\t\t\twriter.writeUTF(request.toJSONString());\r\n\t\t\twriter.flush();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t//ricevo la risposta\r\n\t\t\tresponse = reader.readUTF();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t//trasformo in formato JSON la risposta ricevuta dal server\r\n\t\t\tresponseJSON = \t(JSONObject) new JSONParser().parse(response);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t//se c'è qualche problema di comunicazione con il server\r\n\t\t\t//o se non è possibile parsare il messaggio ricevuto\r\n\t\t\te.printStackTrace();\r\n\t\t\t//termino il client\r\n\t\t\tClientMain.cleanUp();\r\n\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t//controllo l'esito della risposta\r\n\t\tOperations esito = Operations.valueOf((String) responseJSON.get(\"OP\"));\r\n\t\tif (esito==Operations.OP_OK) {\r\n\t\t\t//prendo il responso della ricerca\r\n\t\t\tString msg = (String) responseJSON.get (\"MSG\");\r\n\t\t\t\t\t\t\t\r\n\t\t\t//apro l'interfaccia grafica per comunicare l'errore\r\n\t\t\tResponseGUI responseGUI = new ResponseGUI(msg);\r\n\t\t\tresponseGUI.setVisible(true);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t//prendo il messaggio di errore trasmesso dal server\r\n\t\t\tString msgErr = (String) responseJSON.get (\"MSG\");\r\n\t\t\t\t\t\t\t\r\n\t\t\t//apro l'interfaccia grafica per comunicare l'errore\r\n\t\t\tResponseGUI responseGUI = new ResponseGUI(msgErr);\r\n\t\t\tresponseGUI.setVisible(true);\r\n\t\t}\r\n\t}", "protected void serveClient() {\r\n\t\tif (lineIn == null || lineOut == null) {\r\n\t\t\tSystem.err.printf(\"I/O has not been set up.%n\");\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tString clientRequest;\r\n\t\t\t\tStringTokenizer args;\r\n\r\n\t\t\t\t// control loop, receiving client requests\r\n\t\t\t\twhile (!exitRecieved) {\r\n\t\t\t\t\t// PRESENT PROMPT\r\n\t\t\t\t\tsendMessage(PROMPT);\r\n\r\n\t\t\t\t\t// ACCEPT & PROCESS INPUT\r\n\t\t\t\t\tclientRequest = receiveMessage();\r\n\t\t\t\t\targs = new StringTokenizer(clientRequest);\r\n\t\t\t\t\tprocessCommand(args);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tSystem.err.printf(\"IO Error receiving client input: %s%n\", ioe);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public abstract void handleClient(Client conn);", "public GameServerClient(){\r\n\t\tinitComponents();\r\n\t\t}", "void getDataFromServer();", "@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}", "public static void main(String args[]) {\n InputStream is;\r\n OutputStream os;\r\n DataInputStream disFromClient;\r\n DataOutputStream dosToClient;\r\n\r\n // Declare socket on which server \t \t // listens and client socket which\r\n // is obtained when a connection is made\r\n Socket clientSocket;\r\n ServerSocket listenSocket;\r\n\r\n // Variables for client message, the \t\t // integer value it sends\r\n // and server port\r\n String clientMessage;\r\n int clientInt;\r\n int serverPort = 7896;\r\n try {\r\n // Create the server socket – then waits and ‘listens’ for \t\t\t // connection requests by calling ‘accept’. When ‘accept’ gets \t\t\t // a connection request from a client it makes the connection \t\t\t // and returns a ‘socket’ for use between server / client\r\n listenSocket = new ServerSocket(serverPort);\r\n System.out.println(\"Waiting for client...\");\r\n clientSocket = listenSocket.accept();\r\n\r\n // Extract the input / output streams from the socket and set\r\n // up associated ‘data’ streams\r\n is = clientSocket.getInputStream();\r\n os = clientSocket.getOutputStream();\r\n disFromClient = new DataInputStream(is);\r\n dosToClient = new DataOutputStream(os);\r\n\r\n // Get the message and int value from the client\r\n clientMessage = disFromClient.readUTF();\r\n clientInt = disFromClient.readInt();\r\n\r\n // Modify message and int value and sent then back to client\r\n dosToClient.writeUTF(\"From Server: \" + clientMessage);\r\n dosToClient.writeInt(clientInt+30);\r\n\r\n clientSocket.close();\r\n } catch (Exception e) {\r\n System.out.println(\"Exception :\" + e.getMessage());\r\n }\r\n }", "public interface Client {\n\n}", "interface myClient {\n}", "public abstract void handleServer(ServerConnection conn);", "public void run() {\n // variables to store key HTTP(S) request information\n String sReadLine;\n boolean bNewHTTPHeader = true;\n String sHTTPMethod = \"\";\n String sHTTPRequest = \"\";\n boolean bPersistentConnection = true;\n\n // print the client IP:port\n System.out.println(\"client \" + connectedClient.getInetAddress() + \":\"\n + connectedClient.getPort() + \" is connected\");\n System.out.println();\n\n // create BufferedReader to read in from socket & DataOutputStream to send out to socket\n try {\n inFromClient = new BufferedReader(new InputStreamReader(connectedClient.getInputStream()));\n outToClient = new DataOutputStream(connectedClient.getOutputStream());\n\n } catch (IOException e) {\n System.out.println(\"There was an error setting up the buffered reader, \" +\n \"data stream, or reading from the client:\");\n System.out.println(\" \" + e);\n }\n\n // process the HTTP(S) request\n try {\n // break apart the input to read the http method and request\n while ((sReadLine = inFromClient.readLine()) != null) {\n // create a tokenizer to parse the string\n StringTokenizer tokenizer = new StringTokenizer(sReadLine);\n\n // if new HTTP header, then pull out the Method and Request (first line)\n if (bNewHTTPHeader) {\n sHTTPMethod = tokenizer.nextToken().toUpperCase(); // HTTP method: GET, HEAD\n sHTTPRequest = tokenizer.nextToken().toLowerCase(); // HTTP query: file path\n bNewHTTPHeader = false; // next lines are not part of a new HTTP header\n\n // print to console\n System.out.println(\"New HTTP Header:\");\n System.out.println(\" HTTP Method: \" + sHTTPMethod);\n System.out.println(\" HTTP Request: \" + sHTTPRequest);\n\n // not a new HTTP header: check for key params Connection or empty line\n } else if (sReadLine.length() > 0) {\n // get the next token in the input line\n String sParam = tokenizer.nextToken();\n\n // check to update connection status\n if (sParam.equalsIgnoreCase(\"Connection:\")) {\n String sConnectionRequest = tokenizer.nextToken();\n bPersistentConnection = (sConnectionRequest.equalsIgnoreCase(\"keep-alive\"));\n // print param to console\n System.out.println(\" param: \" + sParam + \" \" + sConnectionRequest);\n } else {\n // otherwise just print param to console\n System.out.println(\" param: \" + sParam);\n }\n\n // no more lines to header: header is over\n } else {\n //print to console\n System.out.println(\"End of Header\");\n System.out.println();\n\n // get the status code & response, then send back to client\n int iStatusCode = getStatusCode(sHTTPMethod, sHTTPRequest);\n String sResponse = getResponse(sHTTPMethod, sHTTPRequest, iStatusCode);\n sendResponse(sHTTPMethod, sHTTPRequest, iStatusCode, sResponse, bPersistentConnection);\n\n // next line is part of a new HTTP header\n bNewHTTPHeader = true;\n }\n }\n\n // loop has ended: client input is null (client must want to disconnect)\n this.connectedClient.close();\n System.out.println(\"input from client \" + connectedClient.getInetAddress() +\n + connectedClient.getPort() + \" is null. This socket closed.\");\n } catch (IOException e) {\n System.out.println(\"There was an error reading the HTTP request:\");\n System.out.println(\" \" + e);\n }\n }", "ClientConnection connection();", "public TCPMessengerServer() {\n initComponents();\n customInitComponents();\n listenForClient(); \n }", "public static void main2(String[] args) throws UnknownHostException, IOException, ClassNotFoundException, InterruptedException{\r\n //get the localhost IP address, if server is running on some other IP, you need to use that\r\n InetAddress host = InetAddress.getLocalHost();\r\n Socket socket = null;\r\n ObjectOutputStream oos = null;\r\n ObjectInputStream ois = null;\r\n for(int i=0; i<5;i++){\r\n //establish socket connection to server\r\n socket = new Socket(host.getHostName(), 9876);\r\n //write to socket using ObjectOutputStream\r\n oos = new ObjectOutputStream(socket.getOutputStream());\r\n System.out.println(\"Sending request to Socket Server\");\r\n if(i==4)oos.writeObject(\"exit\");\r\n else oos.writeObject(\"\"+i);\r\n //read the server response message\r\n ois = new ObjectInputStream(socket.getInputStream());\r\n String message = (String) ois.readObject();\r\n System.out.println(\"Message: \" + message);\r\n //close resources\r\n ois.close();\r\n oos.close();\r\n Thread.sleep(100);\r\n }\r\n }", "@Override\n\tprotected void requesting(ExtendedDataOutputStream out) throws Exception\n\t{\n\t\tout.writeObject(this.clientServerPort);\n\t}", "public ServerNMS() {\n\t\tclients = new LinkedList<PrintWriter>();\n\t}", "Client getClient();", "public static void main(String[] args) throws IOException {\n\t Socket client = new Socket(\"localhost\",5004);\n\t\n\t\tDataOutputStream dos = new DataOutputStream(client.getOutputStream());\n\t DataInputStream dis = new DataInputStream(client.getInputStream());\n\t\n\t String resp = dis.readUTF();\n\t System.out.println(resp);\n\t\n\t client.close();\n\t}", "public static void client() \n\t{\n\t\tint cMessage;\n\t\tint cMessageSquared;\n\t\tfor(int i=0; i<serverMsg.length;i++)\n\t\t{\n\t\t\tcMessage = clientMsg[i]; \n\t\t\tcMessageSquared = cMessage*cMessage;\n\t\t\tclientCyphertext[i] = Damgard.Encrypt(BigInteger.valueOf(cMessage),key);\n\t\t\tclientCyphertextSquared[i] = Damgard.Encrypt(BigInteger.valueOf(cMessageSquared),key);\n\t\t\tif(debug) System.out.println(\"x^2 \" + i + \": \" + Damgard.Decrypt(clientCyphertextSquared[i], key));\n\t\t\tif(debug) System.out.println(\"x\" + i + \": \" + Damgard.Decrypt(clientCyphertext[i], key));\n\t\t}\n\t}", "public static void main(String[] args) {\r\n\r\n\t\tboolean server = false;\r\n\r\n\t\tif (server) {\r\n\t\t\t// This is the server setup.\r\n\t\t\tSystem.out.println(\"STARTING SERVER.\");\r\n\t\t\tServer s = new Server(8222);\r\n\t\t\ts.addPacketHandler(new PacketHandler() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void handleServerPacket(int id, String[] data, ServerConnection connection) {\r\n\t\t\t\t\tSystem.out.println(\"SERVER HANDLE PACKET\");\r\n\t\t\t\t\tSystem.out.println(\"PACKET TYPE: \" + id);\r\n\t\t\t\t\tSystem.out.println(\"PACKET DATA:\");\r\n\t\t\t\t\tint num = 0;\r\n\t\t\t\t\tfor (String s : data) {\r\n\t\t\t\t\t\tSystem.out.println(\"INDEX \" + num + \" - \" + s);\r\n\t\t\t\t\t\tnum++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void handleClientPacket(int id, String[] data, Client client) {\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t});\r\n\t\t\ts.addClientDisconnectHandler(new DisconnectHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClientDisconnect(ServerConnection sc) {\r\n\t\t\t\t\t// this is ran when on the server side when a clients connection is terminated.\r\n\t\t\t\t\tSystem.out.println(\"CLIENT DISCONNECTED FROM SERVER.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onServerDisconnect() {\r\n\t\t\t\t\t// this is never ran if added to the Server.\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\t// This is the client setup.\r\n\t\t\tSystem.out.println(\"STARTING CLIENT\");\r\n\t\t\tClient c = new Client(\"localhost\", 8222);\r\n\t\t\tSystem.out.println(\"CLIENT ID: \" + c.getID().toString());\r\n\t\t\tc.addPacketHandler(new PacketHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void handleClientPacket(int id, String[] data, Client client) {\r\n\t\t\t\t\tSystem.out.println(\"CLIENT HANDLE PACKET\");\r\n\t\t\t\t\tSystem.out.println(\"PACKET TYPE: \" + id);\r\n\t\t\t\t\tSystem.out.println(\"PACKET DATA:\");\r\n\t\t\t\t\tint num = 0;\r\n\t\t\t\t\tfor (String s : data) {\r\n\t\t\t\t\t\tSystem.out.println(\"INDEX \" + num + \" - \" + s);\r\n\t\t\t\t\t\tnum++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void handleServerPacket(int id, String[] data, ServerConnection connection) {\r\n\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tc.addClientDisconnectHandler(new DisconnectHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClientDisconnect(ServerConnection sc) {\r\n\t\t\t\t\t// this is never ran if added to the Client.\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onServerDisconnect() {\r\n\t\t\t\t\t// this is ran when the connection to the server is terminated.\r\n\t\t\t\t\tSystem.out.println(\"CONNECTION HAS BEEN LOST.\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n}", "@Override\n \tpublic void connectionOpened(NetHandler netClientHandler, MinecraftServer server, INetworkManager manager)\n \t{\n \t}", "ServerEntry getServer();", "void clientConnected(Client client);", "private void sendUpdateConnectionInfo() {\n\n }", "public void run() {\n\t\tString choice = null;\n\t\tBufferedReader inFromClient = null;\n\t\tDataOutputStream outToClient = null;\n\t\t\n\t\ttry {\n\t\t\tinFromClient = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\toutToClient = new DataOutputStream(client.getOutputStream());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\t// Loops until the client's connection is lost\n\t\t\twhile (true) {\t\n\t\t\t\t// Request that was sent from the client\n\t\t\t\tchoice = inFromClient.readLine();\n\t\t\t\tif(choice != null) {\n\t\t\t\t\tSystem.out.println(choice);\n\t\t\t\t\tswitch (choice) {\n\t\t\t\t\t\t// Calculates the next even fib by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTEVENFIB\":\n\t\t\t\t\t\t\tnew EvenFib(client).run();\n\t\t\t\t\t\t\t// Increments the fib index tracker so no duplicates\n\t\t\t\t\t\t\t// are sent\n\t\t\t\t\t\t\tServer.fib++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// Calculates the next even nextLargerRan by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTLARGERRAND\":\n\t\t\t\t\t\t\tnew NextLargeRan(client).run();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// Calculates the next prime by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTPRIME\":\n\t\t\t\t\t\t\tnew NextPrime(client).run();\n\t\t\t\t\t\t\t// Increments the prime index tracker so no duplicates\n\t\t\t\t\t\t\t// are sent\n\t\t\t\t\t\t\tServer.prime++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// Displays that the client it was connected to\n\t\t\t// has disconnected\n\t\t\tSystem.out.println(\"Client Disconnected\");\n\t\t}\n\n\t}", "@Override\n public void socket() {\n }", "public Server(){\r\n \r\n this.m_Clients = new TeilnehmerListe();\r\n this.m_Port = 7575;\r\n }", "public ServeurGestion(int portClient){\r\n try {\r\n ecoute=new ServerSocket(portClient);\r\n appels=new Vector<>();\r\n } catch (IOException ex) {\r\n Logger.getLogger(ServeurGestion.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "public static void main(String arg[]){\n SocketClient client = new SocketClient (\"localhost\",6543);\n try {\n //tenta estabelecer conexão com o server\n client.connect();\n //se obtiver sucesso, le a resposta \n client.readResponse();\n } catch (UnknownHostException e) {\n System.err.println(\"Host desconhecido. Não foi possível estabelecer conexão.\");\n } catch (IOException e) {\n System.err.println(\"Não foi possível estabelecer conexão. Server pode estar indisponível.\"+e.getMessage());\n }\n }", "private void handleClient() {\n\t\t//Socket link = null;\n\t\tRequestRecord reqRec = new RequestRecord();\n\t\tResponder respondR = new Responder();\n\t\t\n\t\ttry {\n\t\t\t// STEP 1 : accepting client request in client socket\n\t\t\t//link = servSock.accept(); //-----> already done in *ThreadExecutor*\n\t\t\t\n\t\t\t// STEP 2 : creating i/o stream for socket\n\t\t\tScanner input = new Scanner(link.getInputStream());\n\t\t\tdo{\n\t\t\t\t//PrintWriter output = new PrintWriter(link.getOutputStream(),true);\n\t\t\t\t//DataOutputStream ds = new DataOutputStream(link.getOutputStream());\n\t\t\t\tint numMsg = 0;\n\t\t\t\tString msg = input.nextLine();\n\t\t\t\t\n\t\t\t\t//to write all requests to a File\n\t\t\t\tFileOutputStream reqFile = new FileOutputStream(\"reqFile.txt\");\n\t\t\t\tDataOutputStream dat = new DataOutputStream(reqFile);\n\t\t\t\t\n\t\t\t\t// STEP 4 : listening iteratively till close string send\n\t\t\t\twhile(msg.length()>0){\n\t\t\t\t\tnumMsg++;\n\t\t\t\t\tdat.writeChars(msg + \"\\n\");\n\t\t\t\t\tSystem.out.println(\"\\nNew Message Received\");\n\t\t\t\t\tif(reqRec.setRecord(msg)==false)\n\t\t\t\t\t\tSystem.out.println(\"\\n-----\\nMsg#\"+numMsg+\": \"+msg+\":Error with Request Header Parsing\\n-----\\n\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.println(\"Msg#\" + numMsg + \": \" + msg);\n\t\t\t\t\tmsg = input.nextLine();\n\t\t\t\t};\n\t\t\t\tdat.writeChars(\"\\n-*-*-*-*-*-*-*-*-*-*-*-*-*-\\n\\n\");\n\t\t\t\tdat.close();\n\t\t\t\treqFile.close();\n\t\t\t\tSystem.out.println(\"---newEST : \" + reqRec.getResource());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\n==========Send HTTP Response for Get Request of\\n\"+reqRec.getResource()+\"\\n***********\\n\");\n\t\t\t\tif(respondR.sendHTTPResponseGET(reqRec.getResource(), link)==true)//RES, ds)==true)\n\t\t\t\t\tSystem.out.println(\"-----------Resource Read\");\n\t\t\t\tSystem.out.println(\"Total Messages Transferred: \" + numMsg);\n\t\t\t\t//link.close();\n\t\t\t\tif(reqRec.getConnection().equalsIgnoreCase(\"Keep-Alive\")==true && respondR.isResourceExisting(reqRec.getResource())==true)\n\t\t\t\t\tlink.setKeepAlive(true);\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\t}while(true);\n\t\t\tSystem.out.print(\"Request Link Over as Connection: \" + reqRec.getConnection());\n\t\t} catch (IOException e) {\n\t\t\tif(link.isClosed())\n\t\t\t\tSystem.out.print(\"\\n\\nCritical(report it to developer):: link closed at exception\\n\\n\");\n\t\t\tSystem.out.println(\"Error in listening.\\n {Error may be here or with RespondR}\\nTraceString: \");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// STEP 5 : closing the connection\n\t\t\tSystem.out.println(\"\\nClosing Connection\\n\");\n\t\t\ttry {\t\t\t\t\n\t\t\t\tlink.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Unable to disconnect.\\nTraceString: \");\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}/*ends :: try...catch...finally*/\n\t\t\n\t}", "ClientMessageSender() {\n\n\t}", "@Override\n\tpublic void createClient() {\n\t\t\n\t}", "public ServerHelper(Server server, Socket clientsoc) { //server obj is used to to call getlist method and use it\n this.server = server;\n this.clientsoc = clientsoc;\n }", "public void run() {\n try {\n //Create the input object stream and output object stream for this client\n toClient = new ObjectOutputStream(client.getOutputStream());\n fromClient = new ObjectInputStream(client.getInputStream());\n login = false;\n\n while (!login) {/*Wait for a client to login*/\n try {\n receviedProtocol = (Protocol) fromClient.readObject();\n if (receviedProtocol.getMethod().equals(\"HELP\"))\n sendHelpMenu();\n else if (receviedProtocol.getMethod().equals(\"LOGIN\")) {\n authorize(receviedProtocol);\n login = true;\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n logout = false;\n while (!logout) {/*Keep conncetion between client and server until the client logout*/\n try{\n receviedProtocol = (Protocol)fromClient.readObject(); //Wait for client input\n startIndex = 0;//This will be used to track the starting point of next n groups to be send\n if(receviedProtocol.getMethod().equals(\"AG\"))\n allGroupHandler(receviedProtocol);\n else if(receviedProtocol.getMethod().equals(\"LOGOUT\")){\n logout();\n logout = true;\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n\n }\n\n } catch (IOException e) {\n System.out.println(e);\n\n } finally {\n try {\n client.close();\n } catch (IOException e) {\n System.out.println(e);\n }\n }\n }", "@Override\n public void run() {\n FILEPREFIX = \".//files\"+serverID + \"//\";\n ClientMessage = (Message) socketRead();\n ServerMessage = getReturnMessage(ClientMessage);\n //System.out.println(\"client\"+ClientMessage.getFrom()+\"message : \"+ClientMessage.getContent());\n File file = new File(FILEPREFIX + ClientMessage.getFileName());\n switch (ClientMessage.getType()){\n case \"enquiry\"://return the list of file\n ServerMessage.setContent(ListAllFile());\n break;\n case \"read\"://read the last line\n System.out.println(ClientMessage.getFrom() + \": Reading...\");\n ServerMessage.setContent(\"Reading: \"+ReadLastLine(file));\n System.out.println(\"Reading \"+ClientMessage.getContent());\n break;\n case \"write\"://write to the end of file\n System.out.println(ClientMessage.getFrom() + \": writing...\");\n try{\n WriteLastLine(file,ClientMessage.getContent());\n }catch (IOException e) {\n System.out.println(\"write error\");\n }\n\n ServerMessage.setContent(\"writing: \"+ReadLastLine(file));\n System.out.println(\"Writing \"+ClientMessage.getContent());\n break;\n default://unknown command\n System.out.println(ClientMessage.getType());\n ServerMessage.setContent(\"Error\");\n System.out.println(ClientMessage.getFrom() + \": Wrong type\");\n break;\n }\n socketWrite(ServerMessage);\n\n try {//close the socket connection\n client.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "void doClientSide() throws Exception {\n\n\t\tSSLSocketFactory sslsf = (SSLSocketFactory) SSLSocketFactory\n\t\t\t\t.getDefault();\n\t\tSSLSocket sslSocket = (SSLSocket) sslsf.createSocket(theServerName,\n\t\t\t\t12345);\n\t\t\n\t\tOutputStream sslOS = sslSocket.getOutputStream();\n\t\tsslOS.write(\"Hello SSL Server\".getBytes()); // Write to the Server\n\t\tsslOS.flush();\n\t\tsslSocket.close();\n\t}", "private void startClientConnection() {\r\n\t\t\t\r\n\t//\tStringBuilder sbreq = new StringBuilder();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t/*making connection request*/\r\n\t\t\tclientsoc = new Socket(ip,port);\r\n\t\t\t\r\n\t\t\t/*Input and output streams for data sending and receiving through client and server sockets.*/\r\n\t\t\tdis = new DataInputStream(clientsoc.getInputStream());\t\r\n\t\t\tdos = new DataOutputStream(clientsoc.getOutputStream());\r\n\t\t\t\r\n\t\t\tStringBuilder sbconnreq = new StringBuilder();\r\n\r\n\t\t\t/*Building the Http Connection Request and passing Client name as body. Thus the Http Header\r\n\t\t\tare encoded around the client name data.*/\r\n\t\t\tsbconnreq.append(\"POST /\").append(\"{\"+clientname+\"}\").append(\"/ HTTP/1.1\\r\\n\").append(host).append(\"\\r\\n\").\r\n\t\t\tappend(userAgent).append(\"\\r\\n\").append(contentType).append(\"\\r\\n\").append(contentlength).append(clientname.length()).append(\"\\r\\n\").\r\n\t\t\tappend(date).append(new Date()).append(\"\\r\\n\");\r\n\t\t\t\r\n\t\t\tdos.writeUTF(sbconnreq.toString());\r\n\r\n\t\t\totherusers = new ArrayList<>(10);\r\n\t\t\tusertimestamp = new HashMap<>(10);\r\n\t\t\tJOptionPane.showMessageDialog(null, \"You have logged in. You can start Chatting: \" + clientname);\r\n\t\t\tconnected = true;\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "ChatWithServer.Req getChatWithServerReq();", "private void sendToClient(String string) {\n\t\r\n}", "public void serverSideOk();", "@Override\r\n\tpublic void updateclient(Client client) {\n\t\t\r\n\t}", "@Override\n protected byte[] getClientData() {\n return (clientData + \" individual\").getBytes(StandardCharsets.UTF_8);\n }", "@Override\n/**\n * Communication Tester method\n */\npublic String Communicate() throws RemoteException {\n\treturn \"Server Says Hi\";\n}", "public interface GameClient {\r\n\r\n /**\r\n * Connect the client to a server\r\n * @param server ServerEntry the server entry of the server to connect to\r\n * @param name String the name of this client\r\n * @throws Exception\r\n */\r\n void connect(ServerEntry server, String name) throws Exception;\r\n\r\n /**\r\n * Disconnect from the current server\r\n * @throws Exception\r\n */\r\n void disconnect() throws Exception;\r\n\r\n /**\r\n * Checks if the client is connected to a server.\r\n * @return boolean is it connected or not?\r\n */\r\n boolean isConnected();\r\n\r\n /**\r\n * Returns the server represented by a server entry.\r\n * @return ServerEntry the server\r\n */\r\n ServerEntry getServer();\r\n\r\n /**\r\n * Starts a local server on the client machine.\r\n * @param port int the port on which the server should listen\r\n * @throws Exception\r\n */\r\n void startServer(int port) throws Exception;\r\n\r\n /**\r\n * Shuts down a local server on the client machine if one is running.\r\n * @throws Exception\r\n */\r\n void shutDownServer() throws Exception;\r\n\r\n /**\r\n * Returns true, is a local server is running on this client machine.\r\n * @return boolean is it?\r\n */\r\n boolean runsServer();\r\n \r\n BlueThunderServer getServerImpl();\r\n \r\n void ready(boolean isReady);\r\n \r\n boolean isReady();\r\n \r\n MapList getMapList();\r\n \r\n void addBot();\r\n \r\n int getMapNumber();\r\n \r\n NetState getState();\r\n \r\n void logout(int cid, PlayerInfo player);\r\n \r\n List<String> getPlayers();\r\n \r\n List<MapInfo> getSelectedMaps();\r\n\r\n int getClientID();\r\n \r\n void startSinglePlayer();\r\n \r\n /**\r\n * Shuts down the client and everything...\r\n */\r\n void quit();\r\n}", "public abstract void handleServerSide(T message, EntityPlayer player);", "@Override\n\tpublic void run()\n\t{\n\t\tSocket clientSocket;\n\t\tMemoryIO serverIO;\n\t\t// Detect whether the listener is shutdown. If not, it must be running all the time to wait for potential connections from clients. 11/27/2014, Bing Li\n\t\twhile (!super.isShutdown())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Wait and accept a connecting from a possible client residing on the coordinator. 11/27/2014, Bing Li\n\t\t\t\tclientSocket = super.accept();\n\t\t\t\t// Check whether the connected server IOs exceed the upper limit. 11/27/2014, Bing Li\n\t\t\t\tif (MemoryIORegistry.REGISTRY().getIOCount() >= ServerConfig.MAX_SERVER_IO_COUNT)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// If the upper limit is reached, the listener has to wait until an existing server IO is disposed. 11/27/2014, Bing Li\n\t\t\t\t\t\tsuper.holdOn();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (InterruptedException e)\n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If the upper limit of IOs is not reached, a server IO is initialized. A common Collaborator and the socket are the initial parameters. The shared common collaborator guarantees all of the server IOs from a certain client could notify with each other with the same lock. Then, the upper limit of server IOs is under the control. 11/27/2014, Bing Li\n//\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator(), ServerConfig.COORDINATOR_PORT_FOR_MEMORY);\n\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator());\n\t\t\t\t// Add the new created server IO into the registry for further management. 11/27/2014, Bing Li\n\t\t\t\tMemoryIORegistry.REGISTRY().addIO(serverIO);\n\t\t\t\t// Execute the new created server IO concurrently to respond the client requests in an asynchronous manner. 11/27/2014, Bing Li\n\t\t\t\tsuper.execute(serverIO);\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n new ClientMain();\n\n }", "public static void main(String[] args) throws IOException {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss.SSS\");\n /*\n These variables are to print the details of client and server\n */\n InetAddress ipAddress = null;\n String hostname = null;\n String message = null;\n\n String serverHostname = new String(\"127.0.0.1\");\n int portNumberA = 10007;\n int portNumberB = 10008;\n\n /*\n This is to print the details of client and server\n */\n System.out.println(\"[CLIENT][\" + dateFormat.format(new Date()) + \"] - Initializing Simple Client\");\n ipAddress = InetAddress.getLocalHost();\n hostname = InetAddress.getLocalHost().getHostName();\n\n Socket echoSocketA = null;\n PrintWriter outA = null;\n BufferedReader inA = null;\n\n System.out.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Attemping to connect to host \" + serverHostname + \" on port \" + portNumberA);\n try {\n echoSocketA = new Socket(serverHostname, portNumberA);\n outA = new PrintWriter(echoSocketA.getOutputStream(), true);\n inA = new BufferedReader(new InputStreamReader(\n echoSocketA.getInputStream()));\n } catch (UnknownHostException e) {\n System.err.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Don't know about host: \" + serverHostname + \":\" + portNumberA);\n System.exit(1);\n } catch (IOException e) {\n System.err.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Couldn't get I/O for the connection to: \" + serverHostname + \":\" + portNumberA);\n System.exit(1);\n }\n\n Socket echoSocketB = null;\n PrintWriter outB = null;\n BufferedReader inB = null;\n\n System.out.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Attemping to connect to host \" + serverHostname + \" on port \" + portNumberB);\n try {\n echoSocketB = new Socket(serverHostname, portNumberB);\n outB = new PrintWriter(echoSocketB.getOutputStream(), true);\n inB = new BufferedReader(new InputStreamReader(\n echoSocketB.getInputStream()));\n } catch (UnknownHostException e) {\n System.err.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Don't know about host: \" + serverHostname + \":\" + portNumberB);\n System.exit(1);\n } catch (IOException e) {\n System.err.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Couldn't get I/O for the connection to: \" + serverHostname + \":\" + portNumberB);\n System.exit(1);\n }\n\n BufferedReader stdIn = new BufferedReader(\n new InputStreamReader(System.in));\n String userInput;\n\n System.out.print(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Enter the message to send to \" + serverHostname + \":\" + portNumberA + \",\" + portNumberB + \": \");\n while ((userInput = stdIn.readLine()) != null) {\n outA.println(userInput);\n outB.println(userInput);\n System.out.println();\n System.out.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Received \" + inA.readLine() + \" from \" + serverHostname + \":\" + portNumberA + \": \");\n System.out.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Received \" + inB.readLine() + \" from \" + serverHostname + \":\" + portNumberB + \": \");\n System.out.print(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Enter the message to send to \" + serverHostname + \":\" + portNumberA + \",\" + portNumberB + \": \");\n }\n\n outA.close();\n inA.close();\n outB.close();\n inB.close();\n stdIn.close();\n echoSocketA.close();\n echoSocketB.close();\n }", "private void connectToServer() {\n\t\ttry {\n\t\t\tsocket = new Socket(InetAddress.getLocalHost(), Server.SERVER_PORT);\n\t\t\tin = new BufferedReader(new InputStreamReader(\n\t\t\tsocket.getInputStream()));\n\t\t\tout = new PrintWriter(socket.getOutputStream());\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"CLIENT: Cannot connect to server\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "@Override\n\tpublic void createClient(Client clt) {\n\t\t\n\t}", "@Override\n\tpublic void handleServer(EntityPlayerMP player) {\n\n\t}", "public static void main(String[] args) throws IOException { /* THIS IS THE MAIN FUNCTION TO START THE SERVER OR REPORTS IF THERE IS ANY ISSUE*/\n\ntry {\n serverSocket = new ServerSocket(4457);\n System.out.println(\"Server started.\");\n ServerDemo.display(\"server started\");\n} catch (Exception e) {\n System.err.println(\"Port already in use.\");\n System.exit(1);\n}\n\nwhile (true) { /* accepting the socket connection*/\n try {\n clientSocket = serverSocket.accept();\n System.out.println(\"Accepted connection : \" + clientSocket);\n ServerDemo.display(\"Accepted connection : \" + clientSocket);\n\n int i = 0;\n for (i = 0; i < maxClientsCount; i++) {\n if (threads[i] == null) {\n (threads[i] = new CLIENTConnection(clientSocket, threads)).start();\n break;\n }\n }\n if (i == maxClientsCount) {\n PrintStream os = new PrintStream(clientSocket.getOutputStream());\n os.println(\"Server too busy. Try later.\");\n os.close();\n clientSocket.close();\n }\n\n } catch (Exception e) {\n System.err.println(\"Error in connection attempt.\");\n }\n }\n }", "@Override\n\tpublic void run() \n\t{\n\t\tcommunicator = com.zeroc.Ice.Util.initialize();\n GameServerPrx clientPrx = GameServerPrx.checkedCast(\n communicator.stringToProxy(\"client:default -h 58.167.142.74 -p 10002\")).ice_twoway().ice_secure(false).ice_collocationOptimized(false).ice_compress(true);\n\n if(clientPrx == null)\n {\n //If connection is failed due to server problems\n System.err.println(\"SB Connect: \" + \"Invalid proxy\");\n return;\n }\n System.out.println(\"SB Connect: \" + \"Connected\");\n Server server = new Server();\n server.address = ServerInfo.ADDRESS;\n server.UUID = ServerInfo.UUID;\n server.port = ServerInfo.PORT;\n server.name = ServerInfo.NAME;\n server.players = (short) players;\n\t\tclientPrx.sendServerDetails(server);\n\t\tSystem.out.println(\"SB Connect: \" + \"Data sent\");\n\t}", "public interface IServer extends Remote {\n /**\n * @param auction\n * @throws RemoteException\n */\n void placeAuction(AuctionBean auction) throws RemoteException;\n\n /**\n * @param client\n * @throws RemoteException\n * @throws InterruptedException\n */\n void register(IClient client) throws RemoteException, InterruptedException;\n\n void disconnect(IClient client) throws RemoteException;\n\n /**\n * @param client\n * @param newBid\n * @throws RemoteException\n */\n void raiseBid(IClient client, int newBid) throws RemoteException;\n\n /**\n * @param client\n * @throws RemoteException\n * @throws InterruptedException\n */\n void timeElapsed(IClient client) throws RemoteException, InterruptedException;\n\n\tvoid registerCredentials(String username, String password) throws RemoteException, InterruptedException;\n\n\tboolean verifyCredentials(String username, String password) throws RemoteException, InterruptedException;\n\t\n}", "messages.Serverhello.ServerHello getServerHello();", "public void run() {\n\t\ttry {\n\t\t\t// Get input and output streams to talk to the client\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(csocket.getInputStream()));\n\t\t\tPrintWriter out = new PrintWriter(csocket.getOutputStream());\n\t\t\t/*\n\t\t\t * read the input lines from client and perform respective action based on the\n\t\t\t * request\n\t\t\t */\n\t\t\tString line;\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\t// return if all the lines are read\n\t\t\t\tif (line.length() == 0)\n\t\t\t\t\tbreak;\n\t\t\t\telse if (line.contains(\"GET\") && line.contains(\"/index.html\")) {\n\t\t\t\t\t/*\n\t\t\t\t\t * get the respective file requested by the client i.e index.html\n\t\t\t\t\t */\n\t\t\t\t\tFile file = new File(WEB_ROOT, \"/index.html\");\n\t\t\t\t\t// send HTTP Headers\n\t\t\t\t\tout.println(\"HTTP/1.1 200 OK\");\n\t\t\t\t\tout.println(\"Date: \" + new Date());\n\t\t\t\t\tout.println(\"Content-length: \" + file.length());\n\t\t\t\t\tout.println(); // blank line between headers and content\n\t\t\t\t\tout.flush(); // flush character output stream buffer\n\t\t\t\t\tout.write(FileUtils.readFileToString(file, \"UTF-8\"), 0, ((int) file.length()));\n\t\t\t\t} else if (line.contains(\"PUT\")) {\n\t\t\t\t\t/*\n\t\t\t\t\t * put the respective file at a location on local\n\t\t\t\t\t */\n\t\t\t\t\tString[] split = line.split(\" \");\n\t\t\t\t\tFile source = new File(split[1]);\n\t\t\t\t\tFile dest = new File(WEB_ROOT, \"clientFile.html\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// copy the file to local storage\n\t\t\t\t\t\tFileUtils.copyFile(source, dest);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t// send HTTP Headers\n\t\t\t\t\tout.println(\"HTTP/1.1 200 OK\");\n\t\t\t\t\tout.println(\"Date: \" + new Date());\n\t\t\t\t\tout.println(); // blank line between headers and content\n\t\t\t\t\tout.flush(); // flush character output stream buffer\n\t\t\t\t} else {\n\t\t\t\t\tout.print(line + \"\\r\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// closing the input and output streams\n\t\t\tout.close(); // Flush and close the output stream\n\t\t\tin.close(); // Close the input stream\n\t\t\tcsocket.close(); // Close the socket itself\n\t\t} // If anything goes wrong, print an error message\n\t\tcatch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t\tSystem.err.println(\"Usage: java HttpMirror <port>\");\n\t\t}\n\t}", "public EchoClientHandler() {\n firstMessage = Unpooled.buffer(EchoClient.SIZE);\n for (int i = 0; i < firstMessage.capacity(); i ++) {\n firstMessage.writeByte((byte) i);\n }\n }", "public static void main(String[] args) throws IOException, UnknownHostException{\n\n\t\t Scanner scan = new Scanner(System.in);\n\n\t\t System.out.println(\"Bitte hostname und port eingeben:\");\n\t\t String hostname= scan.nextLine();\n\t\t int port = scan.nextInt();\n\n\t\t Socket client = new Socket(hostname,port);\n\t\t //rfhpc987\n\t\t InputStream in = client.getInputStream();\n\t\t BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\n\n\t\t OutputStream out = client.getOutputStream();\n\t\t PrintWriter writer = new PrintWriter(out);\n\n\t\t //BufferedReader msgReader = new BufferedReader(new InputStreamReader(System.in));\n\t\t System.out.println(\"Bitte geben Sie einen Text ein: \");\n\t\t Scanner msgReader = new Scanner(System.in);\n \n \n\t\t // Nachricht an server senden\n\t\t String result= msgReader.nextLine();\n\t\t writer.println(result);\n\t\t writer.flush();\n\n\t\t // die von Server gesendete Nachricht\n\t\t String msgServer = reader.readLine();\n\t\t // Nachricht von Client\n\t\t System.out.println(\"Message von Server:\"+msgServer);\n\n\n\n\n\t}", "public interface Client<C extends Client<C,S>, S extends Server<S,C>> {\n\n\t/**\n\t * Callback called when the connection to the server has been established. Should not be called\n\t * directly from the server.\n\t */\n\tvoid onOpen();\n\n\t/**\n\t * Callback called when the connection to the server has been closed. Should not be called\n\t * directly from the server.\n\t */\n\tvoid onClose();\n\n\t/**\n\t * Called when an error occurs while trying to send a message to the server.\n\t * @param error the error that occurred.\n\t */\n\tvoid onError(Throwable error);\n}", "public void handleMessageFromClient (Object msg, ConnectionToClient client)\n {\n\t int i=0;\n\t int scanCode=0;\n\t ArrayList<Object> answer = new ArrayList<Object>();\n\t \n\t String command = (String)( ((ArrayList<Object>)msg).get(0) );\n\t \t \n\t scanCode = convertToScanCode( command );\n\t \n\t String logLine = new String (client.getName() + \" \" + command + \" \"); \n\t logger.addString(logLine);\n\t\n\t switch (scanCode)\n\t {\n\t \n\t case(001):\n\t\t {\n\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\t\tanswer = functions.login( (UserEntity) ((ArrayList<Object>)msg).get(1) );\n\t\t\t\t\t\n\t\t\t\t\t\tclient.sendToClient(answer);\n\n\t\t\t\t\t}catch (IOException 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\tbreak;\n\t\t\t\t\n\t\t }\n\t\t \n\t case(002):\n\t\t {\n\t\t\t\n\t\n\t\t\t String userID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t\t answer = functions.getInfo(userID);\n\t\t\t try {\n\t\t\t\tclient.sendToClient(answer);\n\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\t\tbreak;\n\t\t }\n\t\t \n\t case(003):\n\t {\n\t \tRequestEntity request= (RequestEntity) ((ArrayList<Object>)msg).get(1);\n\t \t//int fileLength= (int) ((ArrayList<Object>)msg).get(3);\n\t \tint fileLength= Integer.parseInt((((ArrayList<Object>)msg).get(3).toString()));\n\t \tbyte[] bytes= (byte[]) ((ArrayList<Object>)msg).get(2);\t\t\n\t\tanswer = functions.request( (RequestEntity) ((ArrayList<Object>)msg).get(1) );\n\t \tif(fileLength>0){\n\t \t\tfunctions.uploadFile(request, bytes, fileLength);\n\t \t}\n\t\ttry {\n\t\t\tclient.sendToClient(answer);\n\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\tbreak;\n\t }\n\t\t \n\t case(004):\n\t\t {\n\t\t\t \n\t\t \tanswer = functions.getListOfColumn(\"systeminfo\", \"Description\", \"listOfSystems\"); // General reusable method\n\t\t\t try {\n\t\t\t\tclient.sendToClient(answer);\n\t\t\t} catch (IOException e) \n\t\t\t{\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t//e.printStackTrace();\n\t\t\t}\n\t\t\t\tbreak;\n\t\t }\n\t\t\n\n\t case(007):\n\t {\n\t\t\n\t\t String userID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t answer = functions.getRequestHistory(userID);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t }\n\t \n\t case(8):\n\t {\n\t\t\n\t\t String requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t answer = functions.getRequest(requestID);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t }\n\t case(9):\n\t {\n\t\t \n\t\t\n\t\t answer = functions.getReq((String)( ((ArrayList<Object>)msg).get(1)));\n\t\t try {\n\t\t\tclient.sendToClient(answer);\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\t\tbreak;\n\t\t }\n\t case(102):\n\t {\n\t\t\n\t\t \n\t\t\n\t\t String userID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t String currentStatus= new String((String) ((ArrayList<Object>)msg).get(2));\n\t\t \n\t\t \n\t\t answer = functions.getlistOfRequests(userID,currentStatus);\n\t\t try {\n\t\t\t \n\t\t\t \n\t\t\tclient.sendToClient(answer);\n\t\t\t\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\tbreak;\n\t }\n case(101):\n {\n\t scanCode=000;\n\t String request = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String days = new String((String) ((ArrayList<Object>)msg).get(2));\n\t String newStatus= new String((String) ((ArrayList<Object>)msg).get(3));\n\t answer = functions.setTaskDuration(request,days,newStatus);\n\t try { \n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t//\te.printStackTrace();\n\t}\n\t\tbreak;\n }\n\n \n case(302):\n { \n\t\t\n \tString assID = new String((String) ((ArrayList<Object>)msg).get(1));\t\n \tanswer = functions.getReviewAndDecision(assID); \n \n \t\t try {\n \t\t\tclient.sendToClient(answer);\n \t\t} catch (IOException e)\n \t\t{\n \t\t//\te.printStackTrace();\n \t\t}\n \t\t\tbreak;\n }\n \n case(303):\n { \n \tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n \tString discussionLog = new String((String) ((ArrayList<Object>)msg).get(2));\n \tanswer = functions.setValueByRequestID(\"reviewanddecision\", \"reviewAndDecision\", \"reqID\", requestID, discussionLog, \"discussionLogAnswer\" ); \n \t\n \t\t try {\n \t\t\tclient.sendToClient(answer);\n \t\t} catch (IOException e)\n \t\t{\n \t\t\t//e.printStackTrace();\n \t\t}\n \t\t\tbreak;\n }\n \n case(304):\n\t {\n\t\t\n\t\t String assessmentID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t answer = functions.getAssessment(assessmentID);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\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\tbreak;\n\t }\n \n case(200):\n {\n\t String userID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String currentStatus= new String((String) ((ArrayList<Object>)msg).get(2));\n\t String Elid = (String) ((ArrayList<Object>)msg).get(3);\n\t String table = (String) ((ArrayList<Object>)msg).get(4);\n\t answer = functions.getlistOfExRequests(userID,currentStatus,Elid,table);\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) {\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n }\n \n case(305):\n { \n \t\n \tanswer = functions.getRequestsWithTwoValues(\"request\", \"Status\", \"Rid\", \"5\", \"6\", \"reviewableRequests\"); \n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(307):\n { \n\t \tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t \tString discussionLog = new String((String) ((ArrayList<Object>)msg).get(2));\n \tanswer = functions.insertValuesToReviewAndDecision (requestID, discussionLog ); \n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(308):\n { \n\t \tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n \tanswer = functions.convertRequestIDtoAssessmentID(requestID); \n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(309):\n\t {\n\t\t\n\t\t String requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t answer = functions.getRequest(requestID);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t }\n case(310):\n {\n\t\n\t\n\t answer = functions.getAss();\n\t try {\n\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t }\n\t \n\n case(201):\n {\n\t String code = ((String)((ArrayList<Object>)msg).get(0));\n\t String request = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String det= new String((String) ((ArrayList<Object>)msg).get(2));\n\t String newStatus = (String) ((ArrayList<Object>)msg).get(4);\n\t functions.changeStatus(request, newStatus);\n\t int req = Integer.parseInt(request);\n\t answer = functions.getExeccutionEntity(code,req);\n\t if (answer.get(1).equals(\"Valid\"))\n\t {\n\t\t answer = functions.updateExecutedReq(code, request, det);\n\t }\n\t else{\n\t\t answer = functions.enterNewExecutionRecord(code, request, det, \"no\");\n\t }\n\t if(!((ArrayList<Object>)msg).get(5).equals(\"nothing\"))\n\t {\n\t\t ArrayList<Object> ex = new ArrayList<Object>();\n\t\t String code1=((String)((ArrayList<Object>)msg).get(5));\n\t\t int number = Integer.parseInt((((ArrayList<Object>)msg).get(6)).toString());\n\t\t RequestEntity en = ((RequestEntity)((ArrayList<Object>)msg).get(7));\n\t\t String status = ((String)((ArrayList<Object>)msg).get(8));\n\t\t String pid1 = ((String)((ArrayList<Object>)msg).get(9));\n\t\t ex = functions.fillInExceeded(code1,en.getRID(),en.getUid(),number,status);\n\t\t ArrayList<Object> eleader = functions.getUsers(\"getEleader\",pid1);\n\t\t if(eleader.get(1).equals(\"Valid\"))\n\t\t {\n\t\t\t EmailEntity eleMail = (EmailEntity) eleader.get(2);\n\t\t\t String mail = eleMail.getMail();\n\t\t\t SendMailSSL.SendEmail(mail, \"Ass' exceeded\", \"For your notice ! the ass number\" + request + \"have Exceeded!\" );\n\t\t\t SendMailSSL.SendEmail(\"braudeSupervisor@gmail.com\",\"Ass' exceeded\", \"For your notice ! the ass number\"+request + \"have Exceeded!\");\n\t\t\t SendMailSSL.SendEmail(\"no1984name@hotmail.com\",\"Ass' exceeded\", \"For your notice ! the ass number\" + request + \"have Exceeded!\");\n\t\t }\n\t\t \n\t\t \n\t\t answer.add(ex);\n\t }\n\t else\t// was put in order not to check out of bounds place .\n\t {\n\t\t ArrayList<Object> ex = new ArrayList<Object>();\n\t\t String code1 = \"fillInExceeded\";\n\t\t String Valid = \"notValid\";\n\t\t ex.add(code1);\n\t\t ex.add(Valid);\n\t\t answer.add(ex);\n\t }\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak; \n }\n \n case(900):\n { \n\t \tExtendEntity deadlineRequest = ((ExtendEntity) ((ArrayList<Object>)msg).get(1));\n \tanswer = functions.extendDeadlineRequest(deadlineRequest); \n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n\t \n case(901):\n { \n\t \t\n \tanswer.add(\"extentionRequestWasSent\");\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(902):\n { \n\t String requestID = ((String)((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.changeStatus(requestID,\"62\");\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n\r\n case(903):\n { \n\t String requestID = ((String)((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.changeStatus(requestID,\"7\");\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(904):\n { \n\t String requestID = ((String)((ArrayList<Object>)msg).get(1));\n\t String additionalInformation = ((String)((ArrayList<Object>)msg).get(2));\n\t \n\t \tanswer = functions.requireAdditionalInformation(requestID,additionalInformation);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n\r\n case(800):\n {\n\r\n\t\n\t String userID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t answer = functions.getUser(userID);\n\t try {\n\t\tclient.sendToClient(answer);\n\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n }\n case(801):\n {\n\t\n\t String reqID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String ID = new String((String) ((ArrayList<Object>)msg).get(2));\n\t String identity =new String((String) ((ArrayList<Object>)msg).get(3));\n\t String status =new String((String) ((ArrayList<Object>)msg).get(4));\n\t \n\t answer = functions.Pair(reqID,ID,identity,status);\n\t try {\n\t\tclient.sendToClient(answer);\n\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n }\n case(802):\n {\n\t \n\t\n\t answer = functions.getExe();\n\t try {\n\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t }\n\t\n case(103):\n {\n\t \n\t AssessmentEntity assessmentEntity=((AssessmentEntity) ((ArrayList<Object>)msg).get(1));\n\t String newStatus= new String((String) ((ArrayList<Object>)msg).get(2));\n\t String requestID= assessmentEntity.getRid();\n\t String userID = functions.requestToUserID(requestID);\n\t String email;\n\t \n\t ArrayList<Object> requestArray = functions.getRequest(requestID);\n\t RequestEntity request = (RequestEntity)(requestArray.get(1));\n\t if (CommonMethods.exceededDeadline(request.getDeadline()))\n\t {\n\t\t functions.fillInExceeded(\"fillInExceeded\", Integer.parseInt(requestID), request.getUid(),CommonMethods.getExceededTime(request.getDeadline()), request.getStatusid());\n\t\t if (!userID.equalsIgnoreCase(\"none\"))\n\t\t {\n\t\t\t ArrayList<Object> user = functions.getInfo(userID);\n\t\t\t email = (String)user.get(3);\n\t\t\tSendMailSSL.SendEmail(email, \"Deadline exceeded!\", \"You have exceeded the deadline for request \" + requestID);\n\t\t }\n\t\t\n\t\t\n\t }\n\t \n\t \n\t answer = functions.setAssessment(assessmentEntity, newStatus);\n\t try {\n\t\t \n\t\t client.sendToClient(answer);\n\t\t \n\t } catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t//\te.printStackTrace();\n\t }\n\t break;\n }\n\n case(202):\n { \n\t \tArrayList<Object> extra = new ArrayList<Object>();\n\t \tString code = new String((String) ((ArrayList<Object>)msg).get(0));\n \t\tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\tanswer = functions.getRequest(requestID);\n \tint request = Integer.parseInt(requestID);\n \textra = functions.getExeccutionEntity(code,request);\n \tanswer.add(extra);\n \ttry {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(905):\n { \n\t String status = new String((String) ((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.getListsForAssignment(status);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(906):\n { \n\t String userSkill = new String((String) ((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.getListOfUsers(userSkill);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n case(803):\n {\n\t\n\t String reqID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String status = new String((String) ((ArrayList<Object>)msg).get(2));\n\t answer = functions.approveEXDu(reqID, status);\n\t try {\n\t\tclient.sendToClient(answer);\n\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n }\n case(804):\n {\n\t\n\t String reqID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t\n\n\t answer = functions.getDu(reqID);\n\t try {\n\t\tclient.sendToClient(answer);\n\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n }\n \n case(907):\n { \n\t String inspectorID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String requestID = new String((String) ((ArrayList<Object>)msg).get(2));\n\t \tanswer = functions.setInspectorToRequest(requestID, inspectorID);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n case(805):\n { \n\t\t\n\n\t String reqID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t //int newDuration=(int)((ArrayList<Object>) msg).get(2);\n\t int newDuration= Integer.parseInt((((ArrayList<Object>) msg).get(2)).toString());\n\t\t\n\t \tanswer = functions.setNewDuration(reqID,newDuration);\n\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n case(205):\n {\n\t String code = ((String)((ArrayList<Object>)msg).get(0));\n\t String request = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String det= new String((String) ((ArrayList<Object>)msg).get(2));\n\t String bool = new String((String) ((ArrayList<Object>)msg).get(3));\n\t answer = functions.enterNewExecutionRecord(code,request,det,bool);\n\t try {\n\t\t\tclient.sendToClient(answer);\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\tbreak; \n }\n case(204):\n {\n\t String code = ((String)((ArrayList<Object>)msg).get(0));\n\t String request = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String det= new String((String) ((ArrayList<Object>)msg).get(2));\n\t answer = functions.updateExecutedReq(code,request,det);\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) {\n\t//\te.printStackTrace();\n\t}\n\t\tbreak; \n }\n \n case(203):\n { \n\t \tArrayList<Object> extra = new ArrayList<Object>();\n \tString code = ((String) ((ArrayList<Object>)msg).get(0));\n \tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n \tint request = Integer.parseInt(requestID);\n \textra = functions.getExeccutionEntity(code,request);\n \ttry {\n\t\t\tclient.sendToClient(extra);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n } \n\ncase(908):\n{ \n\t\tString inspectorID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.getRequestsWithTwoValues(\"request\", \"Status\", \"Rid\", \"12\", \"5555\", \"listOfInspectionableRequests\");\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n}\n\n\n\ncase(909):\n{ \n\t\tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.getExeccutionEntity(\"executionEntity\",Integer.parseInt(requestID));\n\r\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n}\n\ncase(910):\n{ \n\t\tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.getInspection(requestID);\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n}\n\ncase(911):\n{ \n\t\n\t\tInspectionEntity inspection = ((InspectionEntity) ((ArrayList<Object>)msg).get(1));\n\t\tArrayList<Object> ans1 = new ArrayList<Object>();\n\t\tString action = ((String)((ArrayList<Object>)msg).get(2));\n\t\tanswer = functions.setInspection(inspection, action);\n\t \n\t\tif (action.equalsIgnoreCase(\"approve\") && ((String)answer.get(1)).equalsIgnoreCase(\"Valid\") )\n\t \t{\n\t \t\tans1=functions.changeStatus(inspection.getRequestID(), \"121\");\n\t \t}\n\t \telse\n\t \tif (action.equalsIgnoreCase(\"deny\") && ((String)answer.get(1)).equalsIgnoreCase(\"Valid\") )\n\t\t{\n\t\t \tans1=functions.changeStatus(inspection.getRequestID(), \"122\");\n\t\t}\t\n\t \telse\n\t \t{\n\t\t\tans1.add(\"somthing\");\n\t\t\tans1.add(\"StatusNotSet\");\n\t\t}\t\n\t\tanswer.add(ans1.get(1).toString());\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n} \ncase(806):\n{ \n\t\n\t \tanswer = functions.getExtend();\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n}\n\ncase(500):\n{ \n\t\t\n\t\tanswer = functions.initializeMangeEmployees();\n\t\t\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n} \ncase(807):\n{ \n\t\tString reqID = new String( (String)((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.getExtendInfo(reqID);\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n}\n\ncase(501):\n{ \n\t\tUserEntity oldChairman = ((UserEntity) ((ArrayList<Object>)msg).get(1));\n\t\tUserEntity newChairman = ((UserEntity) ((ArrayList<Object>)msg).get(2));\n\t\tanswer = functions.switchChairman(oldChairman, newChairman);\n\t \n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n} \ncase(104):\n{\n\t \n\t AssessmentEntity assessmentEntity=((AssessmentEntity) ((ArrayList<Object>)msg).get(1));\n\t answer = functions.newAssessmentRow(assessmentEntity);\n\t try {\n\t\t \n\t\t client.sendToClient(answer);\n\t\t \n\t } catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t }\n\t break;\n}\ncase(808):\n{ \n\t\tString code = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\tString extID = new String((String) ((ArrayList<Object>)msg).get(2));\n\t \tanswer = functions.approvDenyExt(code,extID);\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t//\t\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n}\n\ncase(502):\n{ \n\t\tUserEntity oldCommitteeMember = ((UserEntity) ((ArrayList<Object>)msg).get(1));\n\t\tUserEntity newCommitteeMember = ((UserEntity) ((ArrayList<Object>)msg).get(2));\n\t\tanswer = functions.switchCommitteeMembers(oldCommitteeMember, newCommitteeMember);\n\t \n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n} \n\ncase(206):\n{\n\t\n\tString code = ((String) ((ArrayList<Object>)msg).get(0));\n\tString pid = ((String) ((ArrayList<Object>)msg).get(1));\n\tString oldStatus =((String) ((ArrayList<Object>)msg).get(2));\n\tanswer = functions.getDeniedExecutions(code,pid,oldStatus);\n\ttry {\n\t\tclient.sendToClient(answer);\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t\t\n\t}\n\tbreak;\n}\n\ncase(207):\n{\n\tArrayList<Object> extra = new ArrayList<Object>();\n\tString code = ((String) ((ArrayList<Object>)msg).get(0));\n\tString rid = ((String) ((ArrayList<Object>)msg).get(1));\n\tString newStatus =((String) ((ArrayList<Object>)msg).get(2));\n\tanswer = functions.changeStatus(rid,newStatus);\n\textra = functions.DelExeReq(rid);\n\ttry{\n\t\tclient.sendToClient(extra);\n\t}\n\tcatch(Exception e)\n\t{\n\t\te.getCause();\n\t\t\n\t}\n\tbreak;\n}\n\ncase(503):\n{ \n\t\tUserEntity currentUser = ((UserEntity) ((ArrayList<Object>)msg).get(1));\n\t\tanswer = functions.setUserAccess(currentUser);\n\t \n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n}\ncase(105):\n{\n\tanswer = functions.changeStatus();\n\ttry\n\t{\n\t\tclient.sendToClient(answer);\n\t}\n\tcatch (IOException e)\n\t{\n\t//\te.printStackTrace();\n\t}\n\tbreak;\n}\ncase(809):\n{\n\tString reqID = ((String) ((ArrayList<Object>)msg).get(1));\n\tString currentS = ((String) ((ArrayList<Object>)msg).get(2));\n\tString change = ((String) ((ArrayList<Object>)msg).get(3));\n\tString explanation =((String) ((ArrayList<Object>)msg).get(4));\n\tString supervisorID = ((String) ((ArrayList<Object>)msg).get(5));\n\tanswer = functions.updateFields(reqID,currentS,change,explanation,supervisorID);\n\ttry {\n\t\tclient.sendToClient(answer);\n\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t\t}\n\tbreak;\n}\ncase(810):\n{\n\tString status1 = ((String) ((ArrayList<Object>)msg).get(1));\n\tString status2 = ((String) ((ArrayList<Object>)msg).get(2));\n\tanswer = functions.completeReq(status1,status2);\n\ttry {\n\t\tclient.sendToClient(answer);\n\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t\t}\n\tbreak;\n}\n\n\n\ncase(504):\n{ \n\t\tString userID = ((String) ((ArrayList<Object>)msg).get(1));\n\t\tfunctions.logOff(userID);\n\t\t\n\t\n\t\t\tbreak;\n}\n\n\n\n\n\ncase(811):\n{\n\tString reqID = ((String) ((ArrayList<Object>)msg).get(1));\n\tString status = ((String) ((ArrayList<Object>)msg).get(2));\n\tanswer = functions.changeStatus(reqID,status);\n\ttry {\n\t\tclient.sendToClient(answer);\n\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t\t}\n\tbreak;\n}\ncase(106):\n{\n\tString reqID = ((String) ((ArrayList<Object>)msg).get(1));\n\tanswer = functions.getFile(reqID);\n\n\ttry{\n\t\tclient.sendToClient(answer);\n\t}\n\tcatch(IOException e)\n\t{\n\t\t//e.printStackTrace();\n\t}\n\tbreak;\n}\n\n\ncase(812):\n{\n\tString exeID = ((String) ((ArrayList<Object>)msg).get(1));\n\t\n\tanswer = functions.getExecute(exeID);\n\ttry {\n\t\tclient.sendToClient(answer);\n\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t\t}\n\tbreak;\n}\ncase(813):\n{\n\tString rID = ((String) ((ArrayList<Object>)msg).get(1));\n\t\n\tanswer = functions.ridToAid(rID);\n\ttry {\n\t\tclient.sendToClient(answer);\n\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t\t}\n\tbreak;\n}\n\ncase(912):\n{\n\t \n\tanswer = functions.getListOfColumn(\"request\", \"Rid\", \"getListOfAllRequests\"); // General reusable method\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) \n\t{\n\t\t// TODO Auto-generated catch block\n\t//\te.printStackTrace();\n\t}\n\t\tbreak;\n}\ncase(913):\n{\n\t \n\tanswer = functions.getListOfColumn(\"assessment\", \"Assid\", \"getListOfAllAssessments\"); // General reusable method\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) \n\t{\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n}\n\n\ncase(914):\n{\n\t \n\tanswer = functions.getListOfColumn(\"assessment\", \"Assid\", \"getListOfAllExecutions\"); // General reusable method\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) \n\t{\n\t\t// TODO Auto-generated catch block\n\t//\te.printStackTrace();\n\t}\n\t\tbreak;\n}\n\n\ncase(915):\n{\n\tint numberofdays;\n\tString days;\n\tString requestID = ((String) ((ArrayList<Object>)msg).get(1));\n\tArrayList<Object> request = functions.getRequest(requestID);\n\t\n\tRequestEntity myrequest = ((RequestEntity) ((ArrayList<Object>)request).get(1));\n\t\t\n\tnumberofdays = functions.getexceedTime(requestID);\n\tnumberofdays = numberofdays + CommonMethods.numberOfDays(myrequest.getDate(), myrequest.getDeadline());\n\tdays= Integer.toString(numberofdays);\n\t\n\tanswer = functions.changeStatus(requestID , \"999\");\n\tfunctions.setTaskDuration(requestID, days, \"999\");\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) \n\t{\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n}\n\ncase(814):\n{\n \n answer = functions.getAllReq();\n try {\n client.sendToClient(answer);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n break;\n }\ncase(815):\n{\n String rID = ((String) ((ArrayList<Object>)msg).get(1));\n String reason= ((String) ((ArrayList<Object>)msg).get(2));\n answer = functions.suspend(rID, reason);\n try {\n client.sendToClient(answer);\n \n }\n catch (Exception e)\n {\n e.getCause();\n }\n break;\n}\ncase(816):\n{\n String rID = ((String) ((ArrayList<Object>)msg).get(1));\n answer = functions.resume(rID);\n try {\n client.sendToClient(answer);\n \n }\n catch (Exception e)\n {\n e.getCause();\n }\n break;\n}\ncase(817):\n{\n String rID = ((String) ((ArrayList<Object>)msg).get(1));\n answer = functions.susInfo(rID);\n try {\n client.sendToClient(answer);\n \n }\n catch (Exception e)\n {\n e.getCause();\n }\n break;\n}\ncase(107):\n{\n\tString from = ((String) ((ArrayList<Object>)msg).get(1));\n\tString to = ((String) ((ArrayList<Object>)msg).get(2));\n\tanswer = functions.activityReport(from, to);\n\tSystem.out.println(\"after answer sent to user\");\n\ttry {\n\t\tclient.sendToClient(answer);\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t}\n\tbreak;\n}\ncase(108):\n{\n\tString date = ((String) ((ArrayList<Object>)msg).get(1));\n\tbyte[] bytes = ((byte[]) ((ArrayList<Object>)msg).get(2));\n\tint fileLength=((int) ((ArrayList<Object>)msg).get(3));\n\tanswer = functions.saveReport(date, bytes, fileLength);\n\ttry {\n\t\tclient.sendToClient(answer);\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t}\n\tbreak;\n}\ncase(109):\n{\n\tString date = ((String) ((ArrayList<Object>)msg).get(1));\n\tanswer = functions.getReport(date);\n\ttry {\n\t\tclient.sendToClient(answer);\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t}\n\tbreak;\n}\n\n }\n}", "public TCPClient(){\n \t lengthStr=\"\";\n inFromUser = null;\n outToServer = null;\n inFromServer = null;\n clientSocket = null;\n }", "public void clientRun() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\ttry {\r\n\t\t\t\t InetAddress address = InetAddress.getLocalHost();\r\n\t\t\t\tSocket clientSocket = new Socket(address, this.localport);\r\n\t\t\t\tPrintStream output = new PrintStream(clientSocket.getOutputStream());\r\n\t\t\t\tString text = Integer.toString(this.compteur);\r\n\t\t\t\tScanner sc = new Scanner(clientSocket.getInputStream());\r\n\t\t\t\tPrintWriter printWrite= new PrintWriter(output);\r\n\t\t\t\tprintWrite.println(text);\r\n\t\t\t\tprintWrite.flush();// Nécessaire pour le bon fonctionnement.\r\n\t\t\t\tif (sc.hasNext()) {\r\n\t\t\t\t\tString texte2 = sc.nextLine();\r\n\t\t\t\t\tthis.result = Integer.parseInt(texte2);\r\n\t\t\t\t}\r\n\t\t\t\tclientSocket.close();\r\n\t\t\t\tsc.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t}", "protected void serverStarted()\n {\n // System.out.println\n // (\"Server listening for connections on port \" + getPort());\n }", "public interface ClientHandler {\r\n\r\n\t/**\r\n\t * Handle client.\r\n\t *\r\n\t * @param inFromClient the in from client\r\n\t * @param outToServer the out to server\r\n\t */\r\n\tpublic void handleClient(InputStream inFromClient, OutputStream outToServer);\r\n}", "private SOSCommunicationHandler getClient() {\r\n\t\treturn client;\r\n\t}", "public static void main(String args[]) throws Exception\n {\n printIPInfo();\n\n //create the server socket passing the port number to listen for. The TCPServer\n //will create this socket and sit and listen for requests on the port\n ServerSocket welcomeSocket = new ServerSocket(55555);\n\n //usually a server runs 24/7\n while(true)\n {\n //block the server until a connection is created\n //then create a new socket to transfer data\n Socket mySocket = welcomeSocket.accept();\n\n //get the IP address of the client by getting the InetAddress object\n //associated with the other end of this socket and then\n //calling the method that returns the IP address as a string\n String clientIP = mySocket.getInetAddress().getHostAddress();\n\n //print out the results\n System.out.println(\"The IP address of the client making a request is: \" + clientIP);\n\n //we can use outToClient to write to the socket\n DataOutputStream outToClient = new DataOutputStream(mySocket.getOutputStream());\n\n //we can use inFromClient to read in to the socket\n BufferedReader inFromClient = new BufferedReader(new InputStreamReader(mySocket.getInputStream()));\n\n //read the request from the client\n //block until a request is made\n String requestFromClient = inFromClient.readLine();\n\n //print out the request to the screen\n System.out.println(\"Client Request: \" + requestFromClient);\n\n //enforce a protocol\n if(requestFromClient.equalsIgnoreCase(\"date\"))\n {\n //the request is for the date, send the current date back\n //to the client using the socket, remember to append a newline\n outToClient.writeBytes((new Date()).toString() + \"\\n\");\n }\n else if(requestFromClient.equalsIgnoreCase(\"ms\"))\n {\n //the request is for the number of milliseconds\n //since Jan 1, 1970. Send back that number.\n\n //convert that number to a string\n String numMs = String.valueOf( (new Date()).getTime() );\n\n //write that string value to the socket\n outToClient.writeBytes(numMs + \"\\n\");\n }\n else\n {\n outToClient.writeBytes(\"Invalid Request!\\n\");\n }\n\n //close the socket\n mySocket.close();\n }\n }", "private void connectToServer() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Attempting connection to server at port: 5555\");\n\t\t\tsocket = new Socket(\"localhost\", 5554);\n\t\t\tSystem.out.println(\"Connected to server at port: 5555\");\n\n\t\t\tobjectOutputStream = new ObjectOutputStream(socket.getOutputStream());\n\t\t\tobjectInputStream = new ObjectInputStream(socket.getInputStream());\n\t\t\t\n\t\t\t// sending client object to server\n\t\t\tobjectOutputStream.writeInt(Main.getUser().getUserId());\n\t\t\tobjectOutputStream.flush();\n\t\t} catch (UnknownHostException e) {\n\t\t\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}", "public CoronosClient(String ip){\n //GUI creator\n loginBuilder();\n uiBuilder();\n\n //create Socket + Streams\n try {\n s = new Socket(ip, 16789);\n oos = new ObjectOutputStream(s.getOutputStream());\n ois = new ObjectInputStream(s.getInputStream());\n serverListener();\n } catch (UnknownHostException e) {\n e.printStackTrace();\n } catch (BindException be) {\n be.printStackTrace();\n } catch(ConnectException ce){\n JOptionPane.showMessageDialog(loginButton, \"Failed to connect to server, please contact your System Administrator\", \"Connection Error\", JOptionPane.ERROR_MESSAGE);\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public String getServer () throws java.io.IOException, com.linar.jintegra.AutomationException;", "public interface ClientContant {\n /**\n * rpc服务器\n */\n String RPC_SERVER_HOST = \"rpc.server.host\";\n /**\n * rpc服务器端口\n */\n String RPC_SERVER_PORT = \"rpc.server.port\";\n}", "public interface ServerIF extends RemoteIF{\n void RegisterClient(ClientIF client) throws RemoteException;\n void WelcomeScreen() throws RemoteException;\n ArrayList<ClientIF> getClients() throws RemoteException;\n}", "@Test\n public void testServer() throws Exception{\n ServerMain s=new ServerMain(1,3,2,\"test\",InetAddress.getLocalHost(),null);\n uut=new ChatMessageRequest(\"test\",\"test2\",\"test\",MessageTypes.PM);\n uut.serverVisit(new Client(\"test\",s).getServerVisitor());\n\n uut=new ChatMessageRequest(\"test\",\"test2\",\"test\",MessageTypes.MATCH);\n uut.serverVisit(new Client(\"test\",s).getServerVisitor());\n\n uut=new ChatMessageRequest(\"test\",\"test2\",\"test\",MessageTypes.MATCH);\n uut.serverVisit(new Client(\"testInvalid\",s).getServerVisitor());\n }", "private IdServer() {\n\t\t//System.out.println(\"Creating new instance of ID Server!\");\n\t\tclientIDCounter = 1;\n\t\tmemberIDCounter = 1;\n\t\tticketIdCounter = 1;\n\t}", "messages.Clienthello.ClientHello getClientHello();", "void reply(Server server);", "public static void runClient() {\n try // connect to server, get streams, process connection\n {\n connectToServer(); // create a Socket to make connection\n getStreams(); // get the input and output streams\n loginframe = new LoginFrame();\n loginframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n loginframe.setVisible(true);\n\n processConnection(); // process connection\n } // end try\n catch (EOFException eofException) {\n displayMessage(\"\\nClient terminated connection\");\n } // end catch\n catch (IOException ioException) {\n ioException.printStackTrace();\n } // end catch\n finally {\n closeConnection(); // close connection\n } // end finally\n }", "void responseSent( C conn ) ;", "public ClientMain() throws RemoteException, MalformedURLException, NotBoundException\r\n\t{\r\n\t\t//server = (IServer) Naming.lookup(\"rmi://10.152.206.74:1099/bankingServer\");\r\n\t\tserver = (IServer) Naming.lookup(\"rmi://localhost:1099/bankingServer\");\r\n\r\n\t\tmodel = new BankModel();\r\n\r\n\t\tSystem.out.println(\"Client running\");\r\n\t}", "public String getSERVER() {\n \t\treturn SERVER;\n \t}", "public abstract void handleClientSide(T message, EntityPlayer player);", "public static void main(String[] args){\n\t\ttry{\n\t\t\tServerSocket ss = new ServerSocket(6665);\n\t\t\tSocket s = ss.accept();\n\t\t\t//in = s.getInputStream();\n\t\t\t//out = s.getOutputStream();\n\t\t\tBufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tBufferedReader ind = new BufferedReader(new InputStreamReader(s.getInputStream()));\n\t\t\tPrintWriter outd = new PrintWriter(s.getOutputStream());\n\t\t\tString db = null;\n\t\t\t//System.out.println(\"Client:\" + ind.readLine());\n\t\t\tdb = ind.readLine();\n\t\t\twhile(!db.equals(\"bye\")){\n\t\t\t\tSystem.out.println(\"Client:\" + db);\n\t\t\t\tdb = ind.readLine();\n\t\t\t}\n\n\n\t\t\t/*\n\t\t\tdb = keyboard.readLine();\n\t\t\twhile(!db.equals(\"bye\")){\n\t\t\t\toutd.println(db);\n\t\t\t\tSystem.out.println(\"Me:\"+db);\n\t\t\t\tSystem.out.println(\"Client:\"+ind.readLine());\n\t\t\t\tdb = keyboard.readLine();\n\t\t\t}\n\t\t\t*/\n\t\t\tind.close();\n\t\t\toutd.close();\n\t\t\ts.close();\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public HandleClient(IndicatorServer s, IndicatorLink l) {\r\n\t\tthis.link = l;\r\n\t\tthis.server = s;\r\n\t}", "private static void runClient() {\n long clientStartTime = System.currentTimeMillis();\n \n // Pick a random entry point\n int entryPointId = random.nextInt(entryPointAddresses.size());\n String[] ep = entryPointAddresses.get(entryPointId);\n String entryPointCode = ep[0];\n String entryPointAddress = ep[1];\n \n // User number and id\n int userCount = COUNT.incrementAndGet();\n String userToken = (clientLocation + userCount + \"-\" + Math.abs(random.nextInt(1000)));\n User u = USER_RESOLVER.resolve(userToken);\n \n // Point the client to the entry point\n WebTarget webTarget = entryPointTarget(entryPointAddress, userToken);\n EntryPointResponse response = new EntryPointResponse(null, null);\n try {\n String responseJson = webTarget.request(MediaType.APPLICATION_JSON).get(String.class);\n response = Jsons.fromJson(responseJson, EntryPointResponse.class);\n } catch (Exception e) {\n LOG.log(Level.SEVERE, String.format(\"Could not load responses from entry point %s: %s\", ep[0], ep[1]));\n LOG.log(Level.SEVERE, \"Attempted to connect with: \" + webTarget.getUri().toString());\n }\n \n // current time after the response\n long clientEndTime = System.currentTimeMillis(); \n \n Double latency = null;\n if (response.getRedirectAddress() != null) {\n latency = latencies.get(response.getRedirectAddress());\n }\n \n writer.writeCsv(LOG_LENS, \n sdf.format(new Date()),\n clientStartTime - Main.clientStartTime,\n userCount,\n Main.clientLocation,\n entryPointCode,\n response.getSelectedCloudSiteCode(),\n clientEndTime - clientStartTime,\n latency == null ? \"null\" : String.format(\"%.2f\", latency),\n userToken,\n Arrays.toString(u.getCitizenships().toArray()),\n Arrays.toString(u.getTags().toArray()),\n response.getDefinition() == null ? \"null\" : response.getDefinition().getProviderCode(),\n response.getDefinition() == null ? \"null\" : response.getDefinition().getLocationCode(),\n response.getDefinition() == null ? \"null\" : Arrays.toString(response.getDefinition().getTags().toArray()),\n response.getDefinition() == null ? \"null\" : response.getDefinition().getCost()\n );\n //writer.flush();\n }", "public interface ClientsInterface {\r\n\t/**\r\n\t * Gibt die Anzahl an Kunden in der Warteschlange an.\r\n\t * @return\tAnzahl an Kunden in der Warteschlange\r\n\t */\r\n\tint count();\r\n\r\n\t/**\r\n\t * Legt fest, dass ein bestimmter Kunde für den Weitertransport freigegeben werden soll.\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t */\r\n\tvoid release(final int index);\r\n\r\n\t/**\r\n\t * Liefert den Namen eines Kunden\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return\tName des Kunden\r\n\t */\r\n\tString clientTypeName(final int index);\r\n\r\n\t/**\r\n\t * Liefert die ID der Station, an der der aktuelle Kunde erzeugt wurde oder an der ihm sein aktueller Typ zugewiesen wurde.\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return\tID der Station\r\n\t */\r\n\tint clientSourceStationID(final int index);\r\n\r\n\t/**\r\n\t * Liefert ein Client-Daten-Element eines Kunden\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @param data\tIndex des Datenelements\r\n\t * @return\tDaten-Element des Kunden\r\n\t */\r\n\tdouble clientData(final int index, final int data);\r\n\r\n\t/**\r\n\t * Stellt ein Client-Daten-Element eines Kunden ein\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @param data\tIndex des Datenelements\r\n\t * @param value\tNeuer Wert\r\n\t */\r\n\tvoid clientData(final int index, final int data, final double value);\r\n\r\n\t/**\r\n\t * Liefert ein Client-Textdaten-Element eins Kunden\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @param key\tSchlüssel des Datenelements\r\n\t * @return\tDaten-Element des Kunden\r\n\t */\r\n\tString clientTextData(final int index, final String key);\r\n\r\n\t/**\r\n\t * Stellt ein Client-Textdaten-Element eines Kunden ein\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @param key\tSchlüssel des Datenelements\r\n\t * @param value\tNeuer Wert\r\n\t */\r\n\tvoid clientTextData(final int index, final String key, final String value);\r\n\r\n\t/**\r\n\t * Liefert die bisherige Wartezeit eines Kunden in Sekunden als Zahlenwert\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return Bisherige Wartezeit des Kunden\r\n\t * @see ClientsInterface#clientWaitingTime(int)\r\n\t */\r\n\tdouble clientWaitingSeconds(final int index);\r\n\r\n\t/**\r\n\t * Liefert die bisherige Wartezeit eines Kunden in formatierter Form als Zeichenkette\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return Bisherige Wartezeit des Kunden\r\n\t * @see ClientsInterface#clientWaitingSeconds(int)\r\n\t */\r\n\tString clientWaitingTime(final int index);\r\n\r\n\t/**\r\n\t * Stellt die Wartezeit des Kunden ein.\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @param time\tWartezeit des Kunden (in Sekunden)\r\n\t * @see ClientsInterface#clientWaitingSeconds(int)\r\n\t */\r\n\tvoid clientWaitingSecondsSet(final int index, final double time);\r\n\r\n\t/**\r\n\t * Liefert die bisherige Transferzeit eines Kunden in Sekunden als Zahlenwert\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return Bisherige Transferzeit des Kunden\r\n\t * @see ClientsInterface#clientTransferTime(int)\r\n\t */\r\n\tdouble clientTransferSeconds(final int index);\r\n\r\n\t/**\r\n\t * Liefert die bisherige Transferzeit eines Kunden in formatierter Form als Zeichenkette\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return Bisherige Transferzeit des Kunden\r\n\t * @see ClientsInterface#clientTransferSeconds(int)\r\n\t */\r\n\tString clientTransferTime(final int index);\r\n\r\n\t/**\r\n\t * Stellt die Transferzeit des Kunden ein.\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @param time\tTransferzeit des Kunden (in Sekunden)\r\n\t * @see ClientsInterface#clientTransferSeconds(int)\r\n\t */\r\n\tvoid clientTransferSecondsSet(final int index, final double time);\r\n\r\n\t/**\r\n\t * Liefert die bisherige Bedienzeit eines Kunden in Sekunden als Zahlenwert\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return Bisherige Bedienzeit des Kunden\r\n\t * @see ClientsInterface#clientProcessTime(int)\r\n\t */\r\n\tdouble clientProcessSeconds(final int index);\r\n\r\n\t/**\r\n\t * Liefert die bisherige Bedienzeit eines Kunden in formatierter Form als Zeichenkette\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return Bisherige Bedienzeit des Kunden\r\n\t * @see ClientsInterface#clientProcessSeconds(int)\r\n\t */\r\n\tString clientProcessTime(final int index);\r\n\r\n\t/**\r\n\t * Stellt die Bedienzeit des Kunden ein.\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @param time\tBedienzeit des Kunden (in Sekunden)\r\n\t * @see ClientsInterface#clientProcessSeconds(int)\r\n\t */\r\n\tvoid clientProcessSecondsSet(final int index, final double time);\r\n\r\n\t/**\r\n\t * Liefert die bisherige Verweilzeit eines Kunden in Sekunden als Zahlenwert\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return Bisherige Verweilzeit des Kunden\r\n\t * @see ClientsInterface#clientResidenceTime(int)\r\n\t */\r\n\tdouble clientResidenceSeconds(final int index);\r\n\r\n\t/**\r\n\t * Liefert die bisherige Verweilzeit eines Kunden in formatierter Form als Zeichenkette\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return Bisherige Verweilzeit des Kunden\r\n\t * @see ClientsInterface#clientResidenceSeconds(int)\r\n\t */\r\n\tString clientResidenceTime(final int index);\r\n\r\n\t/**\r\n\t * Stellt die Verweilzeit des Kunden ein.\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @param time\tVerweilzeit des Kunden (in Sekunden)\r\n\t * @see ClientsInterface#clientResidenceSeconds(int)\r\n\t */\r\n\tvoid clientResidenceSecondsSet(final int index, final double time);\r\n}", "public static void main(String [] args) throws IOException {\n String hostName = \"localhost\";\n int portNumber = 1234;\n Socket socket = new Socket(hostName, portNumber);\n ObjectInputStream in =\n new ObjectInputStream(socket.getInputStream());\n ObjectOutputStream out =\n new ObjectOutputStream(socket.getOutputStream());\n TestSerial ts = null;\n\n BufferedReader stdIn =\n new BufferedReader(new InputStreamReader(System.in));\n\n try {\n ts = (TestSerial) in.readObject();\n\n } catch (ClassNotFoundException cnf) {\n cnf.printStackTrace();\n }\n\n String fromServer = ts.getStringField();\n\n while ( fromServer != null ) {\n System.out.println(\"Server: \" + fromServer);\n if ( fromServer.equals(\"Bye.\") ) {\n break;\n }\n String fromUser = stdIn.readLine();\n if ( fromUser != null ) {\n System.out.println(\"Client: \" + fromUser);\n out.writeObject(new TestSerial(fromUser));\n out.flush();\n }\n try {\n ts = (TestSerial) in.readObject();\n } catch( ClassNotFoundException cnf ) {\n cnf.printStackTrace();\n }\n\n fromServer = ts.getStringField();\n }\n\n //Test comment for git stuff\n // And a follow-up comment!\n\n // the commented-out code below was part of the original code\n // which simply passed strings back and forth over the network\n// try (\n// Socket socket = new Socket(hostName , portNumber );\n// PrintWriter out =\n// new PrintWriter(socket.getOutputStream (), true);\n// BufferedReader in =\n// new BufferedReader(\n// new InputStreamReader(socket.getInputStream ())\n// );\n// )\n// {\n// BufferedReader stdIn =\n// new BufferedReader(new InputStreamReader(System.in));\n// String fromServer = in.readLine ();\n// while(fromServer != null) {\n// System.out.println(\"Server: \" + fromServer );\n// if(fromServer.equals(\"Bye.\")) { break; }\n// String fromUser = stdIn.readLine ();\n// if(fromUser != null) {\n// System.out.println(\"Client: \" + fromUser );\n// out.println(fromUser );\n// }\n// fromServer = in.readLine ();\n// }\n// }\n }", "public Client() {\r\n\t// TODO Auto-generated constructor stub\r\n\t \r\n }", "public static void main(String[] args) throws Exception {\n //TcpClient client = new TcpClient();\n System.out.println(\"Client Started\"); \n \n //test for infinite messages\n //client.infiniteHiTest();\n \n //test for 10 lac messages\n //client.definedForTest(1000000);\n \n //5000 messages with 45 sec delay\n //client.sendDataInDelay(5000,45000);\n \n \n Socket clientSocket = new Socket(\"localhost\", TcpServer.PORT); \n DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream());\n \n outToServer.writeUTF(\"HI from non mina\");\n outToServer.flush();\n \n \n \n \n \n //client.connector.dispose(true);\n \n }" ]
[ "0.6465724", "0.6427999", "0.6407851", "0.6404646", "0.6362011", "0.6324752", "0.6297271", "0.6289364", "0.62663716", "0.62432575", "0.62225306", "0.62145275", "0.61703885", "0.6168923", "0.6148403", "0.61483276", "0.6125722", "0.6119457", "0.611419", "0.61140746", "0.60921866", "0.60756683", "0.6056796", "0.60544324", "0.6046241", "0.60453105", "0.6038441", "0.60344255", "0.60334563", "0.60239667", "0.6021435", "0.601137", "0.6005258", "0.5996645", "0.5969371", "0.596358", "0.59527445", "0.5942184", "0.59376794", "0.5927766", "0.59258837", "0.59179926", "0.5904316", "0.5900776", "0.5900763", "0.5900105", "0.5896421", "0.5895656", "0.58954626", "0.5884639", "0.5884085", "0.58831626", "0.58824974", "0.5879508", "0.5869647", "0.5864498", "0.585684", "0.58559704", "0.58530617", "0.583999", "0.5837968", "0.5833625", "0.5832439", "0.58257854", "0.58248675", "0.581922", "0.5815066", "0.58126193", "0.5812322", "0.5799825", "0.57992333", "0.5797494", "0.5795188", "0.5790257", "0.5788642", "0.5788567", "0.57885474", "0.5767125", "0.5765579", "0.575662", "0.5748395", "0.5747579", "0.57472205", "0.57455796", "0.5742538", "0.5741504", "0.5738558", "0.57229435", "0.5720022", "0.57113177", "0.57059443", "0.570361", "0.5700584", "0.56992424", "0.5697609", "0.5694551", "0.56910276", "0.5690266", "0.56892884", "0.56863654", "0.5678679" ]
0.0
-1
CALL BEFORE OTHER STUFF
private void transitionTo(Scene scene) { for (EmptyGraphBoardFX g : toAnimate) g.stopAnimating(); toAnimate.clear(); theStage.setScene(scene); if (scene == mainGame) toAnimate.add(mGSelfBoard); if (scene == attackScene) { toAnimate.add(ene1.b); toAnimate.add(ene2.b); } if (scene == setShips) toAnimate.add(sSboard); if (scene == AIScene) { toAnimate.add(selfvsAI); toAnimate.add(ai.b); } for (EmptyGraphBoardFX g : toAnimate) g.startAnimating(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void beforeCall();", "@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}", "protected abstract void before();", "@Override\n public void preRun() {\n super.preRun();\n }", "@Override\n public void beforeFirstLogic() {\n }", "protected void runBeforeIteration() {}", "public void prePerform() {\n // nothing to do by default\n }", "protected void runBeforeStep() {}", "protected void additionalProcessing() {\n\t}", "void before();", "protected abstract void preRun();", "protected void beforeJobExecution() {\n\t}", "@Override\r\n\tpublic void doBeforeJob() {\n\r\n\t}", "void beforeContentsSynchronized();", "@Override\n\tpublic void pre()\n\t{\n\n\t}", "protected void runBeforeIterations() {}", "void beforeRun();", "private void doBeforeApplyRequest(final PhaseEvent arg0) {\n\t}", "default void beforeUse() {\n\t}", "void preProcess();", "private void before() {\n\t\tSystem.out.println(\"程序开始执行!\");\n\t}", "@Override\n\tpublic void beforeJob(JobExecution arg0) {\n\t\t\n\t}", "@Override\n public void onPre() {\n }", "protected void onBegin() {}", "@Stub\n\tpublic void before()\n\t{\n\t\t//\n\t}", "protected void preRun() {\r\n\t\tthis.preparePairs();\r\n\t}", "@Override\r\n\tpublic void beforeScript(String arg0, WebDriver arg1) {\n\t\t\r\n\t}", "protected void beforeParentInit() {\n // by default do nothing\n }", "void initBeforeParsing() {\r\n }", "public void preInstallHook() {\n }", "private void doBeforeInvokeApplication(final PhaseEvent arg0) {\n\t}", "public void beforeInit(){\n System.out.println(\"## beforeInit() - Before Init - Called by Bean Post Processor\");\n }", "public void beforeInput() {\n }", "public void beforeInput() {\n }", "public void doBefore(JoinPoint jp) {\n }", "public void prepareForDeferredProcessing() {\n\n }", "void PrepareRun() {\n }", "protected void runBeforeTest() {}", "@Override\n\tpublic void beforeScript(String arg0, WebDriver arg1) {\n\n\t}", "@Override\n\tprotected void initHook() {\n\t}", "@Override\r\n public void beforeScript(final String arg0, final WebDriver arg1) {\n\r\n }", "private void doIt() {\n\t\tlogger.debug(\"hellow this is the first time I use Logback\");\n\t\t\n\t}", "@Override\n\tpublic void beforePhase(PhaseEvent arg0) {\n\t\t\n\t}", "void beforeState();", "@Override\n public Object preProcess() {\n return null;\n }", "public void preFire(){\n\t}", "@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}", "protected void onFirstUse() {}", "private void doBeforeProcessValidations(final PhaseEvent arg0) {\n\t}", "private void doBeforeRenderResponse(final PhaseEvent arg0) {\n\t}", "@Override\r\n\tprotected void doFirst() {\n\t\t\r\n\t}", "private void doBeforeUpdateModel(final PhaseEvent arg0) {\n\t}", "public void onBegin() {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t protected void onPreExecute() {\n\t }", "@Override\n public void setBeforeFirst(Wrapper beforeFirst)\n {\n\n }", "public abstract void postInit();", "@Override\r\n\tpublic void beforeExecuteScript() throws Exception\r\n\t{\n\t}", "@Override\n\t\t\tprotected void onPreExecute()\n\t\t\t{\n\n\t\t\t}", "void hook() {\n\t}", "@Override\n\tpublic void dispatchBeforeFinish() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void beforeJob(JobExecution jobExecution) {\n\t\t\t\t\n\t\t\t}", "@Before\r\n\tpublic void before() {\r\n\t}", "void postInit();", "void postInit();", "protected void aktualisieren() {\r\n\r\n\t}", "public void before() {\n }", "public void before() {\n }", "public void postProcessing() {\n //empty\n }", "@Override\n public void beforeStart() {\n \n }", "@Override\r\n\tpublic void beforeInvocation(IInvokedMethod arg0, ITestResult arg1) {\n\t\t\r\n\t}", "void preInit();", "void preInit();", "@Override\n\tpublic void preorder() {\n\n\t}", "protected abstract void trace_pre_updates();", "@Before\r\n\tpublic void doThisEveryTime() {\n\t}", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "@Override\n\tpublic void preInsert() {\n\n\t}", "@Override\n\tpublic void inorder() {\n\n\t}", "public void beforeFirst() {\n\t\tmoveTo(0);\n\t}", "public void postInit() {\n }", "@Override\n\t\t\t\tprotected void onPreExecute()\n\t\t\t\t{\n\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t}", "protected void post_commit_hook() { }", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "public void beforeHookedMethod(MethodHookParam param) throws Throwable {\n param.args[1] = MainHook.this.trustManagers;\n }", "public void onStart() {\n super.onStart();\n getStockVerification();\n }", "@Override\r\n\tprotected final void setup() {\r\n \tsuper.setup();\r\n\r\n \tdoSetup();\r\n }", "@Override\r\npublic void beforeScript(String arg0, WebDriver arg1) {\n\tSystem.out.println(\"as\");\r\n}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\tpublic void preparer() {\n\t\tSystem.out.println(\"Carre preparer\");\r\n\t}", "@Before\n public void setupThis() {\n System.out.println(\"* Before test method *\");\n }", "public void doMyStartupStuff() {\r\n\t\tSystem.out.println(\"TrackCoach: inside method doMyStartupStuff\");\r\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "private void preRequest() {\n\t\tSystem.out.println(\"pre request, i am playing job\");\n\t}", "@Override\n public void onStart(Trace parent) throws Throwable\n {\n \n }" ]
[ "0.72277504", "0.7206366", "0.7185782", "0.706427", "0.69574124", "0.6764864", "0.6719381", "0.671632", "0.67154634", "0.67075485", "0.66915095", "0.6678482", "0.65822834", "0.657101", "0.6513093", "0.64968413", "0.6478356", "0.6422335", "0.6388805", "0.6383934", "0.6362709", "0.6351764", "0.634031", "0.63254946", "0.6264488", "0.62538415", "0.6236042", "0.6232999", "0.6217636", "0.6197935", "0.6193667", "0.61703104", "0.61701846", "0.61701846", "0.6151484", "0.6146465", "0.6140104", "0.60930014", "0.6085197", "0.6081602", "0.60808086", "0.60720456", "0.6052561", "0.6045102", "0.6022215", "0.6018605", "0.6013647", "0.59964716", "0.59909856", "0.59837633", "0.59798324", "0.59691584", "0.5965291", "0.5960107", "0.59443134", "0.59413725", "0.59303516", "0.5930182", "0.5922853", "0.5913998", "0.59006023", "0.5895784", "0.58936", "0.58936", "0.5884021", "0.58727026", "0.58727026", "0.58581674", "0.585467", "0.5853969", "0.5844398", "0.5844398", "0.5836481", "0.5818117", "0.5816391", "0.5810901", "0.580836", "0.58025116", "0.58001715", "0.57989264", "0.5798638", "0.5794953", "0.57792383", "0.57773024", "0.5761817", "0.57562375", "0.57555634", "0.5751019", "0.5751019", "0.5751019", "0.5751019", "0.5751019", "0.5747733", "0.5747733", "0.5746468", "0.5743752", "0.5734856", "0.573413", "0.573413", "0.57333386", "0.5730677" ]
0.0
-1
WASN'T SEARCHING BEFORE SEE IF HIT IF HIT, PREPARE THE NEXT ATTACKS ALREADY
private void thinkAboutNext(ArrayList<Point> pos, boolean hit, boolean destroyedIt) { if (!searching && hit) { betweenTwo = false; System.out.println("WAS A NEW TARGET"); if(!destroyedIt) { int[] d = Direction.DOWN.getDirectionVector(); Point n = new Point(justBefore.x + d[0], justBefore.y + d[1]); if (inBounds(n) && pos.contains(n)) directionsToGo.add(Direction.DOWN); d = Direction.UP.getDirectionVector(); n = new Point(justBefore.x + d[0], justBefore.y + d[1]); if (inBounds(n) && pos.contains(n)) directionsToGo.add(Direction.UP); d = Direction.LEFT.getDirectionVector(); n = new Point(justBefore.x + d[0], justBefore.y + d[1]); if (inBounds(n) && pos.contains(n)) directionsToGo.add(Direction.LEFT); d = Direction.RIGHT.getDirectionVector(); n = new Point(justBefore.x + d[0], justBefore.y + d[1]); if (inBounds(n) && pos.contains(n)) directionsToGo.add(Direction.RIGHT); directionLooking = directionsToGo.get(directionsToGo.size() - 1); } } else if (searching) { //FILTER OUT ALREADY ATTACKED System.out.println("WAS AN OLD TARGET"); //FAILED if(!hit) { justBefore = firstHit; int size = directionsToGo.size(); for(int i = size - 1; i >= 0; i--){ Point n = new Point(justBefore.x + directionsToGo.get(i).getDirectionVector()[0], justBefore.y + directionsToGo.get(i).getDirectionVector()[1]); if(!pos.contains(n)) directionsToGo.remove(i); } directionLooking = directionsToGo.get(0); } else if(!pos.contains(pWD(justBefore, directionLooking))) { justBefore = firstHit; directionLooking = directionLooking.getOpposite(); } } if(hit) { searching = !destroyedIt; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default void hit() {\n\t\tcount(1);\n\t}", "@Given(\"prepare to Attempt sending crafted records to DNS cache\")\npublic void preattemptsendingcraftedrecordstodnscache(){\n}", "abstract public boolean performNextAttack();", "public void readyNextAttackers() {\n if(battleAlly == null && battleEnemy == null){\n //if(battleAlly == null && battleEnemy == null && !isBattleOver()){\n battleAlly = battleAllies.get(0);\n battleEnemy = battleEnemies.get(0);\n }\n }", "private void adjustHits(Node winner, String string) {\n\t\tIterator<HitHolder> ite = winner.hitList.iterator();\n\t\tHitHolder temp = null;\n\t\tboolean exists = false;\n\t\t\n\t\t\n\t\twhile(ite.hasNext())\n\t\t{\n\t\t\ttemp = ite.next();\n\t\t\t\n\t\t\tif(temp.element.equalsIgnoreCase(string))\n\t\t\t{\n\t\t\t\tif(temp.getFirstIteration() == -1)\n\t\t\t\t{\n\t\t\t\t\ttemp.firstIteration = CURRENT_ITERATION;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttemp.lastIteration = CURRENT_ITERATION;\n\t\t\t\ttemp.numberOfHits++;\n\t\t\t\texists = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!exists)\n\t\t{\n\t\t\twinner.hitList.add(new HitHolder(string, CURRENT_ITERATION));\n\t\t}\n\t}", "@Test\n\tpublic void testSearchBasedOnRequest1() {\n\t\tsearchBasedOnRequestSetup();\n\t\t\n\t\tPreference prefs = prefManager.getUserPreference();\n\t\tprefs.setThreshold(10000);\n\t\t\n\t\tList<Suggestion> sugg = dm.searchBasedOnRequest(\"Flavorful\", prefs, true);\n\t\tassertTrue(sugg.size() > 0);\n\t\tassertTrue(sugg.get(0).getType() == Suggestion.SENTENCE);\n\t}", "public void askFirstPredictions(){\n //Ask host\n if(initialPredictionCount == 0){\n Log.d(\"WizardApp\", \"Ask host: \" + GameConfig.getInstance().getPlayers()[0] + \" for stiches.\");\n askForStiches(GameConfig.getInstance().getPlayers()[initialPredictionCount]);\n initialPredictionCount++;\n currentPlayer++;\n }\n //Ask clients\n else if(initialPredictionCount > 0 && initialPredictionCount < players.size()){\n Log.d(\"WizardApp\", \"Ask player: \" + initialPredictionCount + \" for stiches.\");\n askForStiches(GameConfig.getInstance().getPlayers()[initialPredictionCount]);\n initialPredictionCount++;\n currentPlayer++;\n }\n //All players asked, go to next state\n else{\n Log.d(\"WizardApp\", \"Initial predictions are done now.\");\n gameActivity.setInitialPrediction(false);\n status = RoundStatus.waitingForCard;\n currentPlayer=0;\n checkNextStep();\n }\n }", "private static void decisionWhenAttacking() {\n\t\tif (isNewAttackState()) {\n\t\t\tchangeStateTo(STATE_ATTACK_PENDING);\n\n\t\t\t// We will try to define place for our army where to attack. It\n\t\t\t// probably will be center around a crucial building like Command\n\t\t\t// Center. But what we really need is the point where to go, not the\n\t\t\t// unit. As long as the point is defined we can attack the enemy.\n\n\t\t\t// If we don't have defined point where to attack it means we\n\t\t\t// haven't yet decided where to go. So it's the war's very start.\n\t\t\t// Define this assault point now. It would be reasonable to relate\n\t\t\t// it to a particular unit.\n\t\t\t// if (!isPointWhereToAttackDefined()) {\n\t\t\tStrategyManager.defineInitialAttackTarget();\n\t\t\t// }\n\t\t}\n\n\t\t// Attack is pending, it's quite \"regular\" situation.\n\t\tif (isGlobalAttackInProgress()) {\n\n\t\t\t// Now we surely have defined our point where to attack, but it can\n\t\t\t// be so, that the unit which was the target has been destroyed\n\t\t\t// (e.g. just a second ago), so we're standing in the middle of\n\t\t\t// wasteland.\n\t\t\t// In this case define next target.\n\t\t\t// if (!isSomethingToAttackDefined()) {\n\t\t\tdefineNextTarget();\n\t\t\t// }\n\n\t\t\t// Check again if continue attack or to retreat.\n\t\t\tboolean shouldAttack = decideIfWeAreReadyToAttack();\n\t\t\tif (!shouldAttack) {\n\t\t\t\tretreatsCounter++;\n\t\t\t\tchangeStateTo(STATE_RETREAT);\n\t\t\t}\n\t\t}\n\n\t\t// If we should retreat... fly you fools!\n\t\tif (isRetreatNecessary()) {\n\t\t\tretreat();\n\t\t}\n\t}", "private static void askForContinue() {\n\t\t\t\n\t\t}", "public static void keywordHit()\r\n\t{\r\n\t\tkeywordHits++;\r\n\t}", "@Override\n protected void search() {\n \n obtainProblem();\n if (prioritizedHeroes.length > maxCreatures){\n frame.recieveProgressString(\"Too many prioritized creatures\");\n return;\n }\n bestComboPermu();\n if (searching){\n frame.recieveDone();\n searching = false;\n }\n }", "public void gameAttack(){\n int counter = 0;\n while (currentPlayer.wantToAttack(this)){\n counter++;\n if (counter > 100) break;\n /*In rare cases, AI players will repeatedly select the same attackers and defenders\n while also not wanting to dice fight. That will infinitely loop here and this counter will prevent it\n Under normal circumstances, no reasonable player will ever try to do more than 100 separate attacks in the same turn\n */\n\n String[] attackerDefender = {\"\",\"\"};\n //AttackStarterSelection\n attackerDefender[0] = currentPlayer.chooseAttackStarter(this);\n\n //AttackDefenderSelection\n attackerDefender[1] = currentPlayer.chooseAttackDefender(this, attackerDefender[0]);\n\n //DiceFightOrQuit\n int attackerDice, defenderDice;\n while (currentPlayer.wantToDiceFight(this, attackerDefender[0]+ \",\" + attackerDefender[1])){\n //DiceFightAttackerChoice\n attackerDice = currentPlayer.getAttackerDice(this, getTerritory(attackerDefender[0]));\n\n //DiceFightDefenderChoice\n Player defender = this.getPlayerFromList(this.getTerritory(attackerDefender[1]).getOwner());\n defenderDice = defender.getDefenderDice(this, this.getTerritory(attackerDefender[1]));\n\n\n //DiceFight results\n displayMessage(this.diceFight(attackerDefender, attackerDice,defenderDice));\n\n //Possible elimination and announcement of winner\n //Current diceFight ends if attacker has 1 troop left, or territory is conquered\n if (endDiceFight(attackerDefender, attackerDice)) break;\n\n }//End diceFightOrQuit\n\n\n }//End wantToAttack\n //Proceed to fortify stage of turn\n }", "protected boolean waitBeforeExecution() throws InterruptedException {\n/* 112 */ Integer mx = ((IncomingSearchRequest)getInputMessage()).getMX();\n/* */ \n/* 114 */ if (mx == null) {\n/* 115 */ log.fine(\"Invalid search request, did not contain MX header: \" + getInputMessage());\n/* 116 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 122 */ if (mx.intValue() > 120 || mx.intValue() <= 0) mx = MXHeader.DEFAULT_VALUE;\n/* */ \n/* */ \n/* 125 */ if (getUpnpService().getRegistry().getLocalDevices().size() > 0) {\n/* 126 */ int sleepTime = this.randomGenerator.nextInt(mx.intValue() * 1000);\n/* 127 */ log.fine(\"Sleeping \" + sleepTime + \" milliseconds to avoid flooding with search responses\");\n/* 128 */ Thread.sleep(sleepTime);\n/* */ } \n/* */ \n/* 131 */ return true;\n/* */ }", "public void Case15(){\n System.out.println(\"Testing Case 14\");\n for(int z=1; z<=7; z++) {\n docuSequence();\n if(z==1) {\n //Insert search here\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementByXPath(\"//android.widget.ImageButton[contains(@resource-id,'search_button')]\");\n searchBtn.click();\n System.out.println(\"Document Sequence done\");\n }\n else if(z==2){\n byShortName();\n }\n else if(z==3){\n byItemCode();\n }\n else if(z==4){\n byDescription();\n }\n else if(z==5){\n byBrand();\n }\n else if(z==6){\n byKeyword();\n }\n else if(z==7){\n byPrincipal();\n }\n clear();\n }\n System.out.println(\"Case 14 Done\");\n }", "void ackResult(boolean resultMatch);", "@Test\n\tpublic void testSearchBasedOnRequest2() {\n\t\tsearchBasedOnRequestSetup();\n\t\t\n\t\tPreference prefs = prefManager.getUserPreference();\n\t\tprefs.setThreshold(10000);\n\t\t\n\t\tList<Suggestion> sugg = dm.searchBasedOnRequest(\"lokeyanhao\", prefs, true);\n\t\tassertTrue(sugg.size() > 0);\n\t\tassertTrue(sugg.get(0).getType() == Suggestion.ENTITY);\n\t}", "public void attemptAttack() {\r\n\t\tattackAttempts += 100;\r\n\t}", "@Override\n public void onNext(SearchActicleAPI searchActicleAPI) {\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 }", "private void declareWinner(){\r\n System.out.println(\"All proposals received\");\r\n AID best = proposals.get(0).getSender();\r\n for(ACLMessage proposal: proposals){\r\n String time = proposal.getContent().replaceFirst(\"bid\\\\(\", \"\");\r\n time = time.replaceFirst(\" sec\\\\)\", \"\");\r\n String bestTimeString = \r\n proposal.getContent().\r\n replaceFirst(\"bid\\\\(\", \"\").\r\n replaceFirst(\" sec\\\\)\", \"\");\r\n int bestTime = Integer.parseInt(bestTimeString);\r\n int propTime = Integer.parseInt(time);\r\n if (bestTime > propTime) {\r\n best = proposal.getSender();\r\n }\r\n }\r\n sendMessage(best, \"\", ACLMessage.ACCEPT_PROPOSAL);\r\n Object[] ob = new Object[2];\r\n ob[0] = best;\r\n ob[1] = currentPartial;\r\n expectedReturn.add(ob);\r\n System.out.println(\"Accepting proposal from \" + best.getLocalName());\r\n for(ACLMessage proposal: proposals){\r\n if(!proposal.getSender().equals(best)){\r\n sendMessage(proposal.getSender(), \"\", ACLMessage.REJECT_PROPOSAL);\r\n }\r\n }\r\n proposals.clear();\r\n solvables.remove(0);\r\n if(!solvables.isEmpty()){\r\n \r\n auctionJob(solvables.get(0));\r\n }\r\n }", "protected int hit() {\r\n\t\treturn hits;\r\n\t}", "protected void setup() {\n\t\tSystem.out.println(\" Searching \" + getAID().getName() + \"starts\");\n\t\taddBehaviour(new WakerBehaviour(this, 1000) {\n\t\t\tprotected void handleElapsedTimeout() {\n\t\t\t\t// perform operation X\n\t\t\t\tDFAgentDescription template = new DFAgentDescription();\n\t\t\t\tServiceDescription sd = new ServiceDescription();\n\t\t\t\tsd.setType(\"Cloth adviser\");\n\t\t\t\ttemplate.addServices(sd);\n\t\t\t\ttry {\n\t\t\t\t\tDFAgentDescription[] resultOfAdviser = DFService.search(myAgent, template);\n\t\t\t\t\tadviser= resultOfAdviser[0].getName();\n\t\t\t\t} catch (FIPAException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\t\t\t\t\n\t\t\t\tACLMessage recMessage = blockingReceive();\n\t\t\t\tif (recMessage != null) {\n\t\t\t\t\tString senderName = recMessage.getSender().getName();\n\t\t\t\t\tSystem.out.println(getName()+\" receive message from \" + senderName);\n\t\t\t\t\tString rec = recMessage.getContent();\n\t\t\t\t\tSystem.out.println(\"receive message is \" + rec);\n\t\t\t\t\tACLMessage sendMessage = new ACLMessage(ACLMessage.INFORM);\n\t\t\t\t\tsendMessage.setContent(rec);\n\t\t\t\t\tsendMessage.addReceiver(adviser);\n\t\t\t\t\tsend(sendMessage);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"null exception\");\n\t\t\t\t\tblock();\t\t\t\t\t\n\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 void testSearchByContent() {\n Message m1 = new Message(\"test\",\"bla bla david moshe\",_u1);\n Message.incId();\n try {\n Thread.sleep(10);\n } catch (InterruptedException ex) {\n ex.printStackTrace();\n }\n Message m2 = new Message(\"test2\",\"bla2 bla david tikva moshe\",_u1);\n Message.incId();\n Message m3 = new Message(\"test2\",\"moshe cohen\",_u1);\n Message.incId();\n\n this.allMsgs.put(m1.getMsg_id(), m1);\n this.allMsgs.put(m2.getMsg_id(), m2);\n this.allMsgs.put(m3.getMsg_id(), m3);\n\n this.searchEngine.addData(m1);\n this.searchEngine.addData(m2);\n this.searchEngine.addData(m3);\n\n /* SearchHit[] result = this.searchEngine.searchByContent(\"bla2\", 0,1);\n assertTrue(result.length==1);\n assertTrue(result[0].getMessage().equals(m2));\n\n SearchHit[] result2 = this.searchEngine.searchByContent(\"bla david tikva\", 0,2);\n assertTrue(result2.length==1);\n assertEquals(result2[0].getScore(),3.0);\n //assertEquals(result2[1].getScore(),2.0);\n assertTrue(result2[0].getMessage().equals(m2));\n //assertTrue(result2[1].getMessage().equals(m1));\n\n SearchHit[] result3 = this.searchEngine.searchByContent(\"bla2 tikva\", 0, 5);\n assertTrue(result3.length==0);\n */\n\n/*\n SearchHit[] result4 = this.searchEngine.searchByContent(\"bla OR tikva\", 0, 5);\n assertTrue(result4.length==2);\n assertTrue(result4[0].getMessage().equals(m2));\n assertTrue(result4[1].getMessage().equals(m1));\n\n SearchHit[] result5 = this.searchEngine.searchByContent(\"bla AND cohen\", 0, 5);\n assertTrue(result5.length==0);\n\n result5 = this.searchEngine.searchByContent(\"bla AND moshe\",0,5);\n assertTrue(result5.length==2);\n assertTrue(result5[0].getScore() == result5[1].getScore());\n assertTrue(result5[0].getMessage().equals(m2));\n assertTrue(result5[1].getMessage().equals(m1));\n\n result5 = this.searchEngine.searchByContent(\"bla AND moshe\", 10, 11);\n assertTrue(result5.length==0);\n */\n\n }", "protected void runBeforeIteration() {}", "protected void preRun() {\r\n\t\tthis.preparePairs();\r\n\t}", "protected abstract boolean sendNextRequests();", "private boolean typeAheadAssertions(Component paramComponent, AWTEvent paramAWTEvent)\n/* */ {\n/* 920 */ pumpApprovedKeyEvents();\n/* */ Object localObject1;\n/* 922 */ switch (paramAWTEvent.getID()) {\n/* */ case 400: \n/* */ case 401: \n/* */ case 402: \n/* 926 */ KeyEvent localKeyEvent = (KeyEvent)paramAWTEvent;\n/* 927 */ synchronized (this) {\n/* 928 */ if ((paramAWTEvent.isPosted) && (this.typeAheadMarkers.size() != 0)) {\n/* 929 */ localObject1 = (TypeAheadMarker)this.typeAheadMarkers.getFirst();\n/* */ \n/* */ \n/* */ \n/* */ \n/* 934 */ if (localKeyEvent.getWhen() > ((TypeAheadMarker)localObject1).after) {\n/* 935 */ if (focusLog.isLoggable(PlatformLogger.Level.FINER)) {\n/* 936 */ focusLog.finer(\"Storing event {0} because of marker {1}\", new Object[] { localKeyEvent, localObject1 });\n/* */ }\n/* 938 */ this.enqueuedKeyEvents.addLast(localKeyEvent);\n/* 939 */ return true;\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 945 */ return preDispatchKeyEvent(localKeyEvent);\n/* */ \n/* */ \n/* */ case 1004: \n/* 949 */ if (focusLog.isLoggable(PlatformLogger.Level.FINEST)) {\n/* 950 */ focusLog.finest(\"Markers before FOCUS_GAINED on {0}\", new Object[] { paramComponent });\n/* */ }\n/* 952 */ dumpMarkers();\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 963 */ synchronized (this) {\n/* 964 */ int i = 0;\n/* 965 */ if (hasMarker(paramComponent)) {\n/* 966 */ localObject1 = this.typeAheadMarkers.iterator();\n/* 967 */ while (((Iterator)localObject1).hasNext())\n/* */ {\n/* 969 */ if (((TypeAheadMarker)((Iterator)localObject1).next()).untilFocused == paramComponent)\n/* 970 */ i = 1; else {\n/* 971 */ if (i != 0)\n/* */ break;\n/* */ }\n/* 974 */ ((Iterator)localObject1).remove();\n/* */ }\n/* */ \n/* */ }\n/* 978 */ else if (focusLog.isLoggable(PlatformLogger.Level.FINER)) {\n/* 979 */ focusLog.finer(\"Event without marker {0}\", new Object[] { paramAWTEvent });\n/* */ }\n/* */ }\n/* */ \n/* 983 */ focusLog.finest(\"Markers after FOCUS_GAINED\");\n/* 984 */ dumpMarkers();\n/* */ \n/* 986 */ redispatchEvent(paramComponent, paramAWTEvent);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 991 */ pumpApprovedKeyEvents();\n/* 992 */ return true;\n/* */ }\n/* */ \n/* 995 */ redispatchEvent(paramComponent, paramAWTEvent);\n/* 996 */ return true;\n/* */ }", "@Test\n\tpublic void testSearchBasedOnRequest4() {\n\t\tsearchBasedOnRequestSetup();\n\t\t\n\t\tList<Suggestion> sugg = dm.searchBasedOnRequest(\"Flavorful\", null, true);\n\t\tassertTrue(sugg.size() == 0);\n\t}", "public void playerHasUsedSuggestion() {\n suggestionMade = true;\n }", "public void prepareRematch() {\r\n\t\tgame.prepareRematch();\r\n\t}", "private boolean caughtTwenty(){\n\t\treturn (theTrainer.getPokedex().size() >= 20);\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data)\n {\n if (requestCode == REQUEST_CODE && resultCode == RESULT_OK)\n {\n // Populate the wordsList with the String values the recognition engine thought it heard\n ArrayList<String> matches = data.getStringArrayListExtra(\n RecognizerIntent.EXTRA_RESULTS);\n \n for(int i=0;i<matches.size();i++)\n {\n \tif(counter==0)\n \t{\n \t\t\n\t \tif(matches.get(i).equals(\"moo\") || matches.get(i).equals(\"moore\") ||\n\t \t\t\tmatches.get(i).equals(\"mou\") || matches.get(i).equals(\"moon\") ||\n\t \t\t\tmatches.get(i).equals(\"movie\") || matches.get(i).equals(\"boo\")\n\t \t|| matches.get(i).equals(\"boohoo\") || matches.get(i).equals(\"boom\"))\n\t \t{\n\t \t\t\n\t \t\n\t \t\tresume();\n\t \t\tbreak;\n\t \t}\n\t \telse{\n\t \t\twrong();\n\t \t\t}\n \t}\n \telse if(counter==1){\n \t\t\n\t \tif(matches.get(i).equals(\"name\") || matches.get(i).equals(\"names\") ||\n\t \t\t\tmatches.get(i).equals(\"nay\") || matches.get(i).equals(\"neigh\") ||\n\t \t\t\tmatches.get(i).equals(\"nee\") || matches.get(i).equals(\"nays\")\n\t \t\t\t|| matches.get(i).equals(\"knee\") || matches.get(i).equals(\"nees\")\n\t \t\t\t|| matches.get(i).equals(\"ne\") || matches.get(i).equals(\"ni\")){\n\t \t\t\n\t \t\tresume();\n\t \t\tbreak;\n\t \t}\n\t \telse\n\t \t\twrong();\n\t \t\n \t}\n \telse if(counter==2){\n\t \tif(matches.get(i).equals(\"oink\") || matches.get(i).equals(\"on\") ||\n\t \t\t\tmatches.get(i).equals(\"oint\") || matches.get(i).equals(\"point\") ||\n\t \t\t\tmatches.get(i).equals(\"online\") || matches.get(i).equals(\"going\")\n\t \t\t\t|| matches.get(i).equals(\"awning\") || matches.get(i).equals(\"wapking\")){\n\t \t\t\n\t \t\n\t \t\tresume();\n\t \t\tbreak;\n\t \t}\n\t \telse\n\t \t\twrong();\n\t \t\n \t}\n \telse if(counter==3){\n \t\t//TextView tv = (TextView) findViewById(R.id.text);\n \t\t//tv.setText(\"Sheep says?\");\n\t \tif(matches.get(i).equals(\"ba\") || matches.get(i).equals(\"baa\") ||\n\t \t\t\tmatches.get(i).equals(\"bar\") || matches.get(i).equals(\"bah\") ||\n\t \t\t\tmatches.get(i).equals(\"baba\") || matches.get(i).equals(\"bleach\")\n\t \t\t\t|| matches.get(i).equals(\"please\") || matches.get(i).equals(\"plate\")\n\t \t\t\t|| matches.get(i).equals(\"pa\") || matches.get(i).equals(\"paa\")){\n\t \t\t\n\t \t\tresume();\n\t \t\tbreak;\n\t \t}\n\t \telse\n\t \t\twrong();\n \t}\n \telse if(counter==4){\n\t \tif(matches.get(i).equals(\"quack\") || matches.get(i).equals(\"crack\") ||\n\t \t\t\tmatches.get(i).equals(\"kodak\") || matches.get(i).equals(\"back\") ||\n\t \t\t\tmatches.get(i).equals(\"call back\") || matches.get(i).equals(\"quake\")\n\t \t\t\t|| matches.get(i).equals(\"quiet\")|| matches.get(i).equals(\"quiet\")\n\t \t\t\t|| matches.get(i).equals(\"whack\")\n\t \t\t\t|| matches.get(i).equals(\"quack quack\")){\n\t \t\tif(counter<4)\n\t \t\t{\n\t \t\t\tcounter++;\n\t \t\t\tloadActivity();\n\t \t\t}\n\t \t\tresume();\n\t \t\tbreak;\n\t \t}\n\t \telse\n\t \t\twrong();\n \t}\n }\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "public void increseHitCount() {\n\r\n\t}", "private void preRequest() {\n\t\tSystem.out.println(\"pre request, i am playing job\");\n\t}", "private void parseAttack()\n\t{\n\n\t\tMatcher rankMatcher = Pattern.compile( \"Your current PvP Ranking is (\\\\d+)\" ).matcher( responseText );\n\t\tif ( rankMatcher.find() )\n\t\t\tKoLCharacter.setPvpRank( StaticEntity.parseInt( rankMatcher.group(1) ) );\n\n\t\t// Trim down the response text so it only includes\n\t\t// the information related to the fight.\n\n\t\tint index = responseText.indexOf( \"<p>Player to attack\" );\n\t\tresponseText = responseText.substring( 0, index == -1 ? responseText.length() : index );\n\t\tsuper.processResults();\n\t}", "public void doLazyMatch() {}", "private void handleAllStartTags(Tag tagReturnedFromParse, MutableAttributeSet attributeSetReturnedFromParse, int pos) {\n\tif (StepsToFollow == null) {\n\t initializeStepsToFollow();\n\t}\n\tStepsToFollow.processNextStep();\n\ttry {\n\t if (StepsToFollow.tagToFind == null) {\n\t\tthis.strImageDate = StepsToFollow.getStrImageDate();\n\t\tthis.strImageUrl = StepsToFollow.getStrImageUrl();\n//\t\tthis.ldImageDate = StepsToFollow.getLdImageDate();\n\t\tthis.setStrImageWebPageUrlForPreviousDay(StepsToFollow.getStrPrevWebPageUrl());\n\t } else {\n\t\tif (StepsToFollow.tagToFind.equals(tagReturnedFromParse)) {\n\t\t if (MyTestStepToCheck != StepsToFollow.intNextStepToCheck) {\n\t\t\tString strTagToFind = StepsToFollow.tagToFind.toString();\n\t\t\tMyTestResults += strTagToFind + \"|\";\n\t\t\tMyTestStepToCheck = StepsToFollow.intNextStepToCheck;\n\t\t }\n\t\t MyResults = objProcessStartTags.processThisTag(tagReturnedFromParse, attributeSetReturnedFromParse, StepsToFollow.tagToFind, StepsToFollow.attributeToFind, StepsToFollow.strValueToFind, StepsToFollow.intLengthOfValueToFind, StepsToFollow.attributeToGetValueFrom);\n\t\t StepsToFollow.checkReturnValues(MyResults);\n\t\t}\n\t }\n\t} catch (Exception e) {\n\t // TODO Auto-generated catch block\n\t // e.printStackTrace();\n\t String myMsg = \"Error:\";\n\t myMsg += NL + \"ArcamaxWebPageHtmlParser\";\n//\t myMsg += NL + \"imageName: \" + this.strImageName;\n\t myMsg += NL + \"Tag returned: \" + tagReturnedFromParse;\n\t myMsg += NL + \"Tag to find: \" + StepsToFollow.tagToFind;\n\t myMsg += NL + \"Next step to check: \" + StepsToFollow.intNextStepToCheck;\n\t System.out.println(myMsg);\n\t}\n\n }", "@Override\n public void takeTurn(CombatCharacter agent) {\n this.agent=agent;\n while(agent.attributes.getAP()>0){\n StrategySkill s =getBestMove();\n if(s!=null) s.useSkill();\n else return;\n }\n }", "public void act() \n {\n if(s == 0)\n {\n lead();\n lookForFood();\n lookForEdge();\n lookForTail();\n }\n else\n {\n follow();\n }\n }", "@Override\n public void hitFeedBack(boolean hit, Fleet enemyShips) {\n this.hit = hit;\n }", "@Override\n public void onInterstitialRewarded(FluteInterstitial fluteInterstitial, String s, int i) {\n\n }", "void ponderhit();", "public void rewardSkills(final boolean send) {\n boolean update = false;\n if (AllSettingsConfig.AUTO_LEARN_SKILLS) {\n for (SkillLearn skillLearn : SkillAcquireHolder.getInstance().getNormalSkillsClassId(this).values()) {\n final SkillEntry sk = SkillTable.getInstance().getSkillEntry(skillLearn.getId(), skillLearn.getLevel());\n if (sk == null || !sk.getTemplate().getCanLearn(getPlayerClassComponent().getClassId()) || (!AllSettingsConfig.AUTO_LEARN_FORGOTTEN_SKILLS && skillLearn.isClicked())) {\n continue;\n }\n if (getSkillLevel(sk.getId()) < sk.getLevel())\n addSkill(sk, true);\n }\n update = true;\n/*\n\t\t\tint unLearnable = 0;\n\t\t\tCollection<SkillLearn> skills = SkillAcquireHolder.getInstance().getAvailableSkills(this, AcquireType.NORMAL);\n\t\t\twhile(skills.size() > unLearnable) {\n\t\t\t\tunLearnable = 0;\n\t\t\t\tfor(final SkillLearn s : skills) {\n\t\t\t\t\tfinal SkillEntry sk = SkillTable.getInstance().getSkillEntry(s.getId(), s.getLevel());\n\t\t\t\t\tif(sk == null || !sk.getTemplate().getCanLearn(getPlayerClassComponent().getClassId()) || (!AllSettingsConfig.AUTO_LEARN_FORGOTTEN_SKILLS && s.isClicked())) {\n\t\t\t\t\t\tunLearnable++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\taddSkill(sk, true);\n\t\t\t\t}\n\t\t\t\tskills = SkillAcquireHolder.getInstance().getAvailableSkills(this, AcquireType.NORMAL);\n\t\t\t}\n\t\t\tupdate = true;*/\n } else\n // Скиллы дающиеся бесплатно не требуют изучения\n {\n for (final SkillLearn skill : SkillAcquireHolder.getInstance().getAvailableSkills(this, AcquireType.NORMAL)) {\n if (skill.getCost() == 0 && skill.getItemId() == 0) {\n final SkillEntry sk = SkillTable.getInstance().getSkillEntry(skill.getId(), skill.getLevel());\n addSkill(sk, true);\n if (!getShortCutComponent().getAllShortCuts().isEmpty() && sk.getLevel() > 1) {\n getShortCutComponent().getAllShortCuts().stream().filter(sc -> sc.getId() == sk.getId() && sc.getType() == ShortCut.TYPE_SKILL).forEach(sc -> {\n final ShortCut newsc = new ShortCut(sc.getSlot(), sc.getPage(), sc.getType(), sc.getId(), sk.getLevel(), 1);\n sendPacket(new ShortCutRegister(this, newsc));\n getShortCutComponent().registerShortCut(newsc);\n });\n }\n update = true;\n }\n }\n }\n if (isTransformed()) {\n update = true;\n //Генерируем новые скилы трансформации и выдаем их.\n getTransformation().addGiveAllSkills(getLevel());\n }\n if (send && update) {\n sendPacket(new SkillList(this));\n }\n\n updateStats();\n }", "public static void hit_sound() {\n\t\tif (!hit1) {\n\t\t\thit1 = true;\n\t\t\tm_player_hit.setMediaTime(new Time(0));\n\t\t\tm_player_hit.start();\n\t\t} else if (!hit2) {\n\t\t\thit2 = true;\n\t\t\tm_player_hit2.setMediaTime(new Time(0));\n\t\t\tm_player_hit2.start();\n\t\t} else if (!hit3) {\n\t\t\thit3 = true;\n\t\t\tm_player_hit3.setMediaTime(new Time(0));\n\t\t\tm_player_hit3.start();\n\t\t} else if (!hit4) {\n\t\t\thit4 = true;\n\t\t\tm_player_hit4.setMediaTime(new Time(0));\n\t\t\tm_player_hit4.start();\n\t\t} else if (!hit5) {\n\t\t\thit5 = true;\n\t\t\tm_player_hit5.setMediaTime(new Time(0));\n\t\t\tm_player_hit5.start();\n\t\t} else {\n\t\t\thit1 = hit2 = hit3 = hit4 = hit5 = false;\n\t\t\tm_player_hit6.setMediaTime(new Time(0));\n\t\t\tm_player_hit6.start();\n\t\t}\n\n\t}", "void check_and_send(){\r\n\t\twhile(not_ack_yet <= WINDOW_SIZE){\r\n\t\t\tif(covered_datagrams >= total_datagrams)\r\n\t\t\t\treturn;\r\n\t\t\t//send one data more\r\n\t\t\tcovered_datagrams++;\r\n\t\t\tbyte[] data_to_send = Helper.get_bytes(data_send,(covered_datagrams-1)*BLOCK_SIZE,BLOCK_SIZE);\r\n\t\t\tDataDatagram send = new DataDatagram((short)the_connection.session_num,\r\n\t\t\t\t\t(short)(covered_datagrams),data_to_send,the_connection);\r\n\t\t\tsend.send_datagram();\r\n\t\t\tput_and_set_timer(send);\r\n\t\t}\r\n\t}", "private void logHitResult() {\n if (hitResult){\n targets--;\n if (targets == 0){\n taskComplete = true;\n }\n\n hitList[hitCount] = new Point(shotList[shotCount].x, shotList[shotCount].y);\n hitCount++;\n\n } else {\n missList[missCount]= new Point(shotList[shotCount].x, shotList[shotCount].y);\n missCount++;\n }\n }", "public void Case26(){\n System.out.println(\"Testing Case 26\");\n for(int z=1; z<=7; z++) {\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement cancelBtn = (MobileElement) driver.findElementById(\"android:id/button2\");\n String cancelBtnText = cancelBtn.getText();\n System.out.println(\"Clicked \"+cancelBtnText);\n cancelBtn.click();\n infoFilterEstimatedInventory();\n if(z==1) {\n checkByName();\n //Click Search bar and search certain product by Name\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchName = (MobileElement) driver.findElementById(\"com.engagia.android:id/search_auto_complete_text_view\");\n searchName.sendKeys(\"\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementById(\"com.engagia.android:id/search_button\");\n searchBtn.click();\n System.out.println(\"Search by Name\");\n }\n else if(z==2){\n byShortName();\n }\n else if(z==3){\n byItemCode();\n }\n else if(z==4){\n byDescription();\n }\n else if(z==5){\n byBrand();\n }\n else if(z==6){\n byKeyword();\n }\n else if(z==7){\n byPrincipal();\n }\n clear();\n }\n System.out.println(\"Case 26 Done\");\n }", "void breach();", "@Override\n public void passSearchRequest(SearchReq searchReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (searchReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> searchResult = checkFilesInFileList(searchReq.getFileName(), node.getFileList());\n logMe(\"Received SEARCH for \\\"\" + searchReq.getFileName() + \"\\\" from \" + searchReq.getCred().getNodeIp() + \":\" + searchReq.getCred().getNodePort() + \" at \" + getCurrentTime());\n if (!searchResult.isEmpty()) {\n SearchRes searchRes = new SearchRes(searchReq.getSeqNumber(), searchResult.size(), searchReq.getCred(), searchReq.getHopCount(), searchResult);\n searchOk(searchRes);\n } else {\n //logMe(\"File is not available at \" + node.getCredential().getIp() + \" : \" + node.getCredential().getPort() + \"\\n\");\n if (searchReq.getHopCount() <= TTL) {\n searchReq.setHopCount(searchReq.incHops());\n List<NetworkDetails> StatTableSearchResult = checkFilesInStatTable(searchReq.getFileName(), node.getNetworkDetailsTable());\n // Send search request to stat table members\n for (NetworkDetails networkDetails : StatTableSearchResult) {\n if (networkDetails.getQuery().equals(searchReq.getFileName())) {\n Cred cred = networkDetails.getServedNode();\n node.incForwardedQueryCount();\n search(searchReq, cred);\n }\n }\n //TODO: Wait and see for stat members rather flooding whole routing table\n // Send search request to routing table members\n for (Cred cred : node.getRoutingTable()) {\n node.incForwardedQueryCount();\n if (search(searchReq, cred)) {\n break;\n }\n }\n } else {\n// logMe(\"Search request from\" + searchRequest.getCredential().getIp() + \":\" + searchRequest.getCredential().getPort() + \"is blocked by hop TTL\\n\");\n }\n }\n// Thread.currentThread().interrupt();\n }", "public void checkForRepeats()\r\n {\n for(int i = 0;i < scriptAds.size();i++)\r\n {\r\n for(int j = i;j < scriptAds.size();j++)\r\n {\r\n if(j + 1 >= scriptAds.size() == false)\r\n { \r\n if(scriptAds.get(i).getAdNumber().toLowerCase().equals(scriptAds.get(j + 1).getAdNumber().toLowerCase()))\r\n {\r\n // i + 1 and j + 2 are used to offset counting by 0\r\n infoText.append(\"<p><strong><font size=\\\"4\\\">CC Num \" + (scriptAds.get(i).getccNumber()) + \" : \" +\r\n scriptAds.get(i).getAdNumber() + \" is a repeat with CC# \" + (j + 2) + \"\\n\" + importFileName + \"</font></strong></p>\");\r\n }\r\n }\r\n }\r\n }\r\n }", "public void initialSearch() {\n Kinematics k = getTrustedRobotKinematics();\n //logger.info(\"Kinematics position is \" + k.getPosition());\n\n // Set the default planner.\n setPlanner(PlannerType.TRAPEZOIDAL);\n\n // For gateway no zones were defined yet.\n m_robot.setCheckZones(false);\n\n // Do a preliminary trajectory in a lawnmower pattern.\n Point startPoint = k.getPosition();\n runTrajectory(startPoint, m_lawnmowerTrajectory);\n m_initialSearchDone = true;\n }", "private void checkOffensive(AccessibilityNodeInfo mNodeInfo) {\n int mDebugDepth = 0;\n if (mNodeInfo == null) return;\n String log =\"\";\n for (int i = 0; i < mDebugDepth; i++) {\n log += \".\";\n }\n\n Intent inte = new Intent(this,OverlayActivity.class);\n inte.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n if (mNodeInfo.getText() != null) {\n String replaceString=(mNodeInfo.getText().toString()).replace(\" \",\"%20\");\n Log.e(TAG, \"checkOffensive: \" + url+replaceString);\n StringRequest stringRequest = new StringRequest(Request.Method.GET, url+replaceString,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n try{\n //open overlay if offensiveness score greater than 0.8\n response += response.substring(response.indexOf(\":\") + 1, response.indexOf(\",\"));\n float response_float=Float.parseFloat(response);\n if (response_float > 0.7) {\n startActivity(inte);\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n }\n },\n error -> Log.e(\"ERROR\", \"\" + error.getMessage()));\n\n RequestQueue requestQueue = Volley.newRequestQueue(MyAccessibilityService.this);\n requestQueue.add(stringRequest);\n }\n\n log+=\"(\"+mNodeInfo.getText() +\" <-- \"+\n mNodeInfo.getViewIdResourceName()+\")\";\n Log.d(TAG, log);\n if (mNodeInfo.getChildCount() < 1) return;\n mDebugDepth++;\n\n for (int i = 0; i < mNodeInfo.getChildCount(); i++) {\n checkOffensive(mNodeInfo.getChild(i));\n }\n mDebugDepth--;\n }", "@Override\n public boolean tryAdvance(Consumer<? super SampleDescriptor> action) {\n boolean retVal;\n if (pos < samples.size()) {\n // Here we have another sample to process.\n retVal = true;\n action.accept(samples.get(pos));\n pos++;\n } else {\n // Denote we are at the end.\n retVal = false;\n }\n return retVal;\n }", "private boolean waitForAO()\n {\n int countOfRetry = 15;\n do\n {\n try\n {\n log.debug(\"Attempting to wait for AO.\");\n activeObjects.count(MessageMapping.class);\n log.debug(\"Attempting to wait for AO - DONE.\");\n stop = true;\n return true;\n }\n catch (PluginException e)\n {\n countOfRetry--;\n try\n {\n Thread.sleep(5000);\n }\n catch (InterruptedException ie)\n {\n // nothing to do\n }\n }\n }\n while (countOfRetry > 0 && !stop);\n log.debug(\"Attempting to wait for AO - UNSUCCESSFUL.\");\n return false;\n }", "@Override\n\tpublic void takeHit(int attack) {\n\n\t}", "protected int extraHits(Conveyer info, Combatant striker, Combatant victim) {\n return 0;\n }", "static void complete_jump_req(String passed){\n\t\t//\t\tString program_counter = decimel_to_hexa(PC);\n\t\t//\t\tfill_the_stack(program_counter.substring(0,2),program_counter.substring(2,4),psw());\n\t\tif(labels.get(passed)==null)\n\t\t\tPC = hexa_to_deci(passed);\n\t\telse\n\t\t\tPC = labels.get(passed);\n\t\tmodified =true;\n\t}", "private WeightedSampler<String> getPossibleLethalActions(int team) {\n if (this.b.getCurrentPlayerTurn() != team || this.b.getWinner() != 0) {\n return null;\n }\n Player p = this.b.getPlayer(team);\n WeightedSampler<String> poss = new WeightedOrderedSampler<>();\n List<Minion> minions = this.b.getMinions(team, false, true).collect(Collectors.toList());\n for (Minion m : minions) {\n if (p.canUnleashCard(m)) {\n double totalWeight = UNLEASH_TOTAL_WEIGHT + UNLEASH_WEIGHT_PER_PRESENCE * m.getTotalEffectValueOf(e -> e.getPresenceValue(5));\n List<List<List<TargetList<?>>>> targetSearchSpace = new LinkedList<>();\n this.getPossibleListTargets(m.getUnleashTargetingSchemes(), new LinkedList<>(), targetSearchSpace);\n if (targetSearchSpace.isEmpty()) {\n targetSearchSpace.add(List.of());\n }\n for (List<List<TargetList<?>>> targets : targetSearchSpace) {\n poss.add(new UnleashMinionAction(p, m, targets).toString().intern(), totalWeight / targetSearchSpace.size());\n }\n }\n }\n if (this.b.getMinions(team * -1, false, true).anyMatch(m -> m.finalStats.get(Stat.WARD) > 0)) {\n // find ways to break through the wards\n for (Minion m : minions) {\n if (m.canAttack()) {\n double totalWeight = ATTACK_TOTAL_WEIGHT + ATTACK_WEIGHT_MULTIPLIER * m.finalStats.get(Stat.ATTACK);\n List<Minion> searchSpace = m.getAttackableTargets().collect(Collectors.toList());\n double weight = totalWeight / searchSpace.size();\n for (Minion target : searchSpace) {\n double overkillMultiplier = Math.pow(ATTACK_WEIGHT_OVERKILL_PENALTY, Math.max(0, m.finalStats.get(Stat.ATTACK) - target.health));\n poss.add(new OrderAttackAction(m, target).toString().intern(), overkillMultiplier * weight);\n }\n }\n }\n } else {\n // just go face\n this.b.getPlayer(team * -1).getLeader().ifPresent(l -> {\n for (Minion m : minions) {\n if (m.canAttack(l)) {\n double totalWeight = ATTACK_TOTAL_WEIGHT + ATTACK_WEIGHT_MULTIPLIER * m.finalStats.get(Stat.ATTACK);\n poss.add(new OrderAttackAction(m, l).toString().intern(), totalWeight);\n }\n }\n });\n }\n poss.add(new EndTurnAction(team).toString().intern(), END_TURN_WEIGHT);\n return poss;\n }", "@Override\n\tpublic void preBacktrack() {\n\t\t\n\t}", "private void setupHitsDoneDripFlow() {\n List<DUsers> users = AppConfig.getInstance().getdUsersDAO().findAllInternal();\n if (users == null || users.isEmpty()) return;\n\n List<DUsers> usersWhoRecentlyCompletedHits = new ArrayList<>();\n for (DUsers user: users) {\n List<DHitsResult> userHits = AppConfig.getInstance().getdHitsResultDAO().findAllByUserIdInternal(user.getId());\n\n // people who would have crossed 100 hits in the last run (some might have done a long time back, don't re-add them.\n // Checking when they did the latest hit, if it was in the last interval then they might have\n // crossed 100 in the last interval unless they have been\n // continuosly using and then might already have done more than 500 hits (these might already be in flow in some previous interval).\n if (userHits != null && userHits.size() > 100 && userHits.size() < 500) {\n Date latestHitDone = userHits.get(0).getUpdated_timestamp();\n for (DHitsResult hitsResult : userHits) {\n if (hitsResult.getUpdated_timestamp().after(latestHitDone)) {\n latestHitDone = hitsResult.getUpdated_timestamp();\n }\n }\n\n if (latestHitDone.after(lastRunDate)) {\n usersWhoRecentlyCompletedHits.add(user);\n }\n }\n }\n\n LOG.info(\"setupHitsDoneDripFlow usersWhoRecentlyCompletedHits = \" + usersWhoRecentlyCompletedHits.size());\n if (usersWhoRecentlyCompletedHits.isEmpty()) return;\n\n DripFlows.removeFromSignInFlow(usersWhoRecentlyCompletedHits);\n DripFlows.addToManyHitsDownFlow(usersWhoRecentlyCompletedHits);\n }", "public void searchCriteria(WebDriver driver) throws InterruptedException\r\n\t {\r\n\t\t try\r\n\t\t {\r\n\t\t\t driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\r\n\t \r\n\t\t\t driver.findElement(By.id(\"filter_purchaserEmail\")).clear();\r\n\t driver.findElement(By.id(\"filter_purchaserEmail\")).sendKeys(purchaserEmail);\r\n\t \r\n\t driver.findElement(By.id(\"filter_code\")).clear();\r\n\t driver.findElement(By.id(\"filter_code\")).sendKeys(code);\r\n\t \r\n\t driver.findElement(By.id(\"search\")).click();\r\n\t driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\r\n\t\t \r\n\t redeemerEmail = driver.findElement(By.xpath(\"//tr[td[contains(text(),'\"+purchaserEmail+\"')]]/td[3]\")).getText();\r\n\t System.out.println(\"redeemerEmail:\"+redeemerEmail);\r\n\t \r\n\t creditsOnGifts = driver.findElement(By.xpath(\"//tr[td[contains(text(),'\"+purchaserEmail+\"')]]/td[6]\")).getText();\r\n\t System.out.println(\"creditsOnGifts:\"+creditsOnGifts);\r\n\t \r\n\t codeActive = driver.findElement(By.xpath(\"//tr[td[contains(text(),'\"+purchaserEmail+\"')]]/td[7]\")).getText();\r\n\t System.out.println(\"codeActive:\"+codeActive);\r\n\t \r\n\t Thread.sleep(10000);\r\n\t //driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\r\n\t refunded = driver.findElement(By.xpath(\"//tr[td[contains(text(),'\"+purchaserEmail+\"')]]/td[8]/span\")).getText();\r\n\t System.out.println(\"refunded:\"+refunded);\r\n\t driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\r\n\t \r\n\t //Condition to check view more details\r\n\t if(redeemerEmail.equalsIgnoreCase(TestConstants.NOT_REDEEMED) && codeActive.equalsIgnoreCase(TestConstants.STATUS_YES) && refunded.equalsIgnoreCase(TestConstants.STATUS_NO))\r\n\t {\r\n\t \t driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\r\n\t \t System.out.println(\"Before View More Detail\");\r\n\t \t driver.findElement(By.xpath(\"//a[contains(text(),'View More Detail')]\")).click();\r\n\t \t System.out.println(\"After View More Detail\");\r\n\t \t driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\r\n\t }\r\n\t \r\n\t System.out.println(\"Try block\");\r\n\t }catch(NoSuchElementException e)\r\n\t\t {\r\n\t \t e.printStackTrace();\r\n\t \t System.out.println(\"Catch block\");\r\n\t\t }\r\n\t}", "private int heavyAttack() {\n return attack(6, 2);\n }", "public void countHits() {\nif (this.hitpoints <= 0) {\nreturn;\n}\nthis.hitpoints = this.hitpoints - 1;\n}", "public void match( String word )\n { \n for( int i=0; i<numAssocs; i++ )\n if( word.equalsIgnoreCase( associations[i] ) )\n {\n incrActivation();\n// System.out.println( this.toString() + \" from processing \" + word );\n }\n }", "public void Case13(){\n System.out.println(\"Testing Case 13\");\n for(int z=1; z<=7; z++) {\n prodGroup();\n if(z==1) {\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchName = (MobileElement) driver.findElementByXPath(\"//android.widget.EditText[contains(@resource-id,'search_auto_complete_text_view')]\");\n searchName.sendKeys(pgName);\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementByXPath(\"//android.widget.ImageButton[contains(@resource-id,'search_button')]\");\n searchBtn.click();\n System.out.println(\"Product Group done\");\n clear();\n }\n else if(z==2){\n byShortName();\n clear();\n }\n else if(z==3){\n byItemCode();\n clear();\n }\n else if(z==4){\n byDescription();\n clear();\n }\n else if(z==5){\n byBrand();\n clear();\n }\n else if(z==6){\n byKeyword();\n clear();\n }\n else if(z==7){\n byPrincipal();\n clear();\n }\n }\n System.out.println(\"Case 12 Done\");\n }", "void SendScoutBees()\n\t{\n\tint maxtrialindex,i;\n\tmaxtrialindex=0;\n\tfor (i=1;i<FoodNumber;i++)\n\t {\n\t if (trial[i]>trial[maxtrialindex])\n\t maxtrialindex=i;\n\t }\n\tif(trial[maxtrialindex]>=limit)\n\t{\n\t\tinit(maxtrialindex);\n\t}\n\t}", "void determineNextAction();", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n public void executeAttack() {\r\n \t\r\n \tSystem.out.println();\r\n System.out.println(\"**** Attack Phase Begins for player \" + this.playerName + \"..****\\n\");\r\n \r\n boolean hasConnqueredAtleastOneCountry = false;\r\n \r\n\t System.out.println(\"\\n\" + \"Fetching potential attack scenarios for \" + this.playerName + \"...\\n\");\r\n\t \r\n\t // get all scenarios but we're only interested in attacking with the strongest country & in all-out mode\r\n\t HashMap<String, ArrayList<String>> potentialAttackScenarios = getPotentialAttackScenarios();\r\n\t \r\n\t if (potentialAttackScenarios == null) {\r\n\t System.out.println(\r\n\t \"There are currently no attack opportunities for \" + this.playerName + \".. Sorry!\\n\");\r\n\t System.out.println(\"\\n****Attack Phase Ends for player \" + this.playerName + \"..****\\n\");\r\n\t return;\r\n\t }\r\n\t\r\n\t if (potentialAttackScenarios.isEmpty()) {\r\n\t System.out.println(\r\n\t \"There are currently no attack opportunities for \" + this.playerName + \".. Sorry!\\n\");\r\n\t System.out.println(\"\\n****Attack Phase Ends for player \" + this.playerName + \"..****\\n\");\r\n\t return;\r\n\t }\r\n\t \r\n\t \t \r\n\t String enemyCountryToAttack = null;\r\n\t String strongestCountry = getStrongestCountryConqueredByPlayer(potentialAttackScenarios);\r\n\t if(strongestCountry == null) {\r\n\t \tSystem.out.println(\r\n\t \"There are currently no attack opportunities for \" + this.playerName + \".. Sorry!\\n\");\r\n\t System.out.println(\"\\n****Attack Phase Ends for player \" + this.playerName + \"..****\\n\");\r\n\t return;\r\n\t }\r\n\t \r\n\t \r\n // implement a mini-strategy within this aggressive strategy to target the weakest enemy country first\r\n\t // build map of all enemy countries and their respective army counts\r\n\t ArrayList<String> allAdjacentEnemyCountries = potentialAttackScenarios.get(strongestCountry); \r\n\t HashMap<String,Integer> allAdjacentEnemyCountriesAndArmyCounts = new HashMap<String,Integer>();\r\n\t \r\n\t for(String enemyCountry: allAdjacentEnemyCountries) {\r\n \tInteger currentEnemyCountryArmyCount = gameData.gameMap.getCountry(enemyCountry).getCountryArmyCount();\r\n \tallAdjacentEnemyCountriesAndArmyCounts.putIfAbsent(enemyCountry, currentEnemyCountryArmyCount);\r\n\t }\r\n\t \r\n\t // sort in ascending order based on lowest army count -> highest\r\n\t Object[] sortedAdjacentEnemyCountriesAndArmyCounts = allAdjacentEnemyCountriesAndArmyCounts.entrySet().toArray();\r\n\t Arrays.sort(sortedAdjacentEnemyCountriesAndArmyCounts, (o1, o2) -> ((Map.Entry<String, Integer>) o1).getValue()\r\n\t\t .compareTo(((Map.Entry<String, Integer>) o2).getValue()));\r\n\t \r\n\r\n\t HashSet<String> countriesConquered = new HashSet<>();\r\n\t \r\n\t // attack each surrounding enemy country while you can\r\n\t for (Object e : sortedAdjacentEnemyCountriesAndArmyCounts) {\r\n\r\n\t \t// setup phase state\r\n\t \tAttackPhaseState attackPhase = new AttackPhaseState();\r\n\t \t attackPhase.setAttackingPlayer(this.playerName);\r\n\t \t attackPhaseState.add(attackPhase);\r\n\t \t notifyView();\r\n\t \t // attacking country will be the same for a given turn\r\n\t \t attackPhase.setAttackingCountry(strongestCountry);\r\n\t notifyView();\r\n\t \t\r\n\t \tenemyCountryToAttack = ((Map.Entry<String, Integer>) e).getKey(); \r\n\t \tattackPhase.setDefendingCountry(enemyCountryToAttack);\r\n\t \tnotifyView();\r\n\t\r\n\t \tString defendingPlayer = gameData\r\n\t .getPlayer(this.gameData.gameMap.getCountry(enemyCountryToAttack).getCountryConquerorID())\r\n\t .getStrategyType().getPlayerName();\r\n\t \tattackPhase.setDefendingPlayer(defendingPlayer);\r\n\t \tnotifyView();\r\n\t \r\n\t \t// fight in all out mode until you win or run out of armies on the ground\r\n\t\t while (!attackPhase.getBattleOutcomeFlag() && this.gameData.gameMap.getCountry(strongestCountry).getCountryArmyCount() > 1) {\r\n\t // proceed with max allowed dice count for both sides\r\n\t Integer attackerDiceCount = getActualMaxAllowedDiceCountForAction(\"attack\", strongestCountry, 3);\r\n\t\t attackPhase.setAttackerDiceCount(attackerDiceCount);\r\n\t\t //Integer defenderDiceCount = getActualMaxAllowedDiceCountForAction(\"defend\",enemyCountryToAttack, 2);\r\n\t\t // always set defender dice count to the min to maximize aggression \r\n\t\t Integer defenderDiceCount = 1;\r\n\t\t attackPhase.setDefenderDiceCount(defenderDiceCount);\r\n\t\t rollDiceBattle(attackPhase);\r\n\t hasConnqueredAtleastOneCountry = fight(attackPhase) || hasConnqueredAtleastOneCountry;\r\n\t \r\n\t if(attackPhase.getBattleOutcomeFlag()) {\r\n\t \tcountriesConquered.add(strongestCountry);\r\n\t \tcountriesConquered.add(enemyCountryToAttack);\r\n\t \t\r\n\t }\r\n\t \r\n\t }\r\n\t\t \r\n\t }\r\n\t \r\n\t String weakestCountry = getCountryWithMostNumberOfBordersShared(countriesConquered);\r\n\t \r\n\t if(weakestCountry != strongestCountry) {\r\n\t \t\r\n\t \tInteger strongestCountryArmyCount = this.gameData.gameMap.getCountry(strongestCountry).getCountryArmyCount();\r\n\t \t\r\n\t \tif(strongestCountryArmyCount > 1) {\r\n\t \t\tthis.gameData.gameMap.deductArmyToCountry(strongestCountry, strongestCountryArmyCount - 1);\r\n\t\t\t\tthis.gameData.gameMap.addArmyToCountry(weakestCountry, strongestCountryArmyCount - 1);\r\n\t \t}\r\n\t \t\r\n\t }\r\n\t \r\n checkIfPlayerHasConqueredTheWorld();\r\n \r\n\t\t\r\n\t if (hasConnqueredAtleastOneCountry) {\r\n\t\t \tCard card = gameData.cardsDeck.getCard();\r\n\t \r\n\t\t if(card == null) {\r\n\t\t \tSystem.out.println(\"No more cards left in the deck\");\r\n\t\t } else {\r\n\t\t \t\tthis.cardList.add(card);\r\n\t\t \t\tSystem.out.println(\"PlayerStrategy received 1 card => Army Type: \" + card.getArmyType() + \", Country: \" + card.getCountry().getCountryName());\r\n\t\t \t\tSystem.out.println(\"Total cards : \" + this.cardList.size());\r\n\t\t \t}\r\n\t\t} \r\n\t \r\n\t HashSet<String> conqueredCountryByThisPlayer = gameData.gameMap.getConqueredCountries(playerID);\r\n System.out.println(\"\\nOverview of army counts: \\n\");\r\n for(String country: conqueredCountryByThisPlayer){\r\n System.out.println(\"Country: \"+country+\", Army Count: \"+gameData.gameMap.getCountry(country).getCountryArmyCount());\r\n }\r\n\t \r\n\t endAttack();\r\n }", "public void hitCheck(){\n int cookieCenterX = cookieX + cookie.getWidth()/2;\n int cookieCenterY = cookieY + cookie.getHeight()/2;\n\n //0 <= cookieCenterX <= kirbyWidth\n //kirbyY <= cookieCenterY <= kirbyY + cookieHeight\n if(0 <= cookieCenterX && cookieCenterX <= kirbySize &&\n kirbyY <= cookieCenterY && cookieCenterY <= kirbyY + kirbySize){\n\n //weakest score cookie\n score +=5;\n cookieX = -10;\n }\n\n //cake\n int cakeCenterX = cakeX + cake.getWidth()/2;\n int cakeCenterY = cakeY + cake.getHeight()/2;\n\n if(0 <= cakeCenterX && cakeCenterX <= kirbySize &&\n kirbyY <= cakeCenterY && cakeCenterY <= kirbyY + kirbySize){\n\n //meh avg.\n score +=15;\n cakeX = -10;\n }\n\n //pizza\n int pizzaCenterX = pizzaX + pizza.getWidth()/2;\n int pizzaCenterY = pizzaY + pizza.getHeight()/2;\n if(0 <= pizzaCenterX && pizzaCenterX <= kirbySize &&\n kirbyY <= pizzaCenterY && pizzaCenterY <= kirbyY + kirbySize) {\n\n score += 30;\n pizzaX = -10; //remember when copy past own code... CHANGE cookieX INTO pizzaX !!!\n }\n\n //bomb\n int bombCenterX = bombX + bomb.getWidth()/2;\n int bombCenterY = bombY + bomb.getHeight()/2;\n\n if(0 <= bombX && bombCenterX <= kirbySize &&\n kirbyY <= bombCenterY && bombCenterY <= kirbyY + kirbySize){\n\n //stop timer...\n timer.cancel();\n timer = null;\n\n //show result... ty youtube...\n Intent intent = new Intent(getApplicationContext(), result.class);\n intent.putExtra(\"SCORE\", score);\n startActivity(intent);\n\n\n }\n\n\n }", "public void action() {\n for (int i = 0; i < myAgent.friends.size(); ++i) {\n SendRequestToFriend(myAgent.friends.get(i));\n }\n\n // Crée un filtre pour lire d'abord les messages des amis et des leaders des amis\n MessageTemplate temp = MessageTemplate.MatchReceiver(myfriends);\n MessageTemplate temp2 = MessageTemplate.MatchReceiver(friendsLeader);\n MessageTemplate tempFinal = MessageTemplate.or(temp, temp2);\n\n // Réception des messages\n ACLMessage messageFriendly = myAgent.receive(tempFinal);\n // si on n'est pas dans un groupe\n if (messageFriendly != null && !inGroup) {\n \t// s'il reçoit une proposition d'un amis/ leader d'un ami, il accepte, peu importe le poste et s econsidère dans le groupe\n if (messageFriendly.getPerformative() == ACLMessage.PROPOSE) {\n AcceptProposal(messageFriendly, Group.Role.valueOf(messageFriendly.getContent()));\n inGroup = true;\n }\n // s'il reçoit un CONFIRM, il enregistre le leader\n else if (messageFriendly.getPerformative() == ACLMessage.CONFIRM) {\n myLeader = messageFriendly.getSender();\n }\n // s'il reçoit un INFORM, il enregistre l'AID du leader de son ami afin de recevoir ses messages et lui demande son poste préféré\n else if (messageFriendly.getPerformative() == ACLMessage.INFORM) {\n AddFriendsLeaderToList(messageFriendly);\n AnswerByAskingPreferedJob(messageFriendly);\n }\n // sinon, il renvoie une erreur\n else {\n System.out.println( \"Friendly received unexpected message: \" + messageFriendly );\n }\n }\n // si on est dans un groupe\n else if (messageFriendly != null && inGroup) { \n \t// s'il reçoit une requete et qu'il est déjà dans un groupe, il renvoir l'AID de son leader à son ami\n if (messageFriendly.getPerformative() == ACLMessage.REQUEST) {\n SendLeaderAID(messageFriendly);\n }\n // s'il reçoit un DISCONFIRM, il se remet en quete de job\n else if (messageFriendly.getPerformative() == ACLMessage.DISCONFIRM) {\n inGroup = false;\n AnswerByAskingPreferedJob(messageFriendly);\n }\n else {\n \t// sinon, il refuse tout offre\n RefuseOffer(messageFriendly);\n }\n }\n else {\n \t// on check ensuite les messages des inconnus, une fois ceux des amis triés\n ACLMessage messageFromInconnu = myAgent.receive();\n \n // si on n'est pas dans un groupe\n if (messageFromInconnu != null && !inGroup) {\n \n boolean offerPreferedJob = messageFromInconnu.getPerformative() == ACLMessage.PROPOSE && messageFromInconnu.getContent().equals((\"\\\"\" + myAgent.preferedRole.toString() + \"\\\"\"));\n boolean offerNotPreferedJob = messageFromInconnu.getPerformative() == ACLMessage.PROPOSE && messageFromInconnu.getContent() != (\"\\\"\" + myAgent.preferedRole.toString() + \"\\\"\" );\n \n //on accepte l offre s'il s'agit de notre role préféré\n if (offerPreferedJob){\n AcceptProposal(messageFromInconnu, myAgent.preferedRole);\n }\n // on refuse s'il ne s'agit pas de notre offre favorite en redemandant notre job préféré\n else if (offerNotPreferedJob){\n RefuseOffer(messageFromInconnu);\n }\n // si on reçoit une confimation, on se considère dans un groupe et on enregistre notre leader\n else if (messageFromInconnu.getPerformative() == ACLMessage.CONFIRM){\n inGroup = true;\n myLeader = messageFromInconnu.getSender();\n }\n // sinon, il s'agit d'une erreure\n else {\n System.out.println( \"Friendly received unexpected message: \" + messageFromInconnu );\n }\n }\n // si on est dans un groupe\n else if (messageFromInconnu != null && inGroup) {\n \t// si on reçoit une requete, on renvoie à notre leader\n if (messageFromInconnu.getPerformative() == ACLMessage.REQUEST) {\n SendLeaderAID(messageFromInconnu);\n }\n // si on reçoit un DISCONFIRM, on repart en quete de job\n else if (messageFromInconnu.getPerformative() == ACLMessage.DISCONFIRM) {\n inGroup = false;\n AnswerByAskingPreferedJob(messageFromInconnu);\n }\n // sinon on refuse\n else {\n RefuseOffer(messageFromInconnu);\n }\n }\n // si le message est vide, on bloque le flux\n else {\n block();\n }\n }\n }", "protected void runBeforeIterations() {}", "private boolean caughtEmAll(){\n\t\tint howMany = 1;\n\t\tArrayList<Pokemon> pokedex = theTrainer.getPokedex();\n\t\tCollections.sort(pokedex);\n\t\tfor(int i = 0; i < pokedex.size() - 1; i++){\n\t\t\tif(pokedex.get(i+1).getPokemonID() != pokedex.get(i).getPokemonID()){\n\t\t\t\thowMany++;\n\t\t\t}\n\t\t}\n\t\treturn (howMany == 10);\n\t}", "private static String processInquire(String content) {\n\t\tString myWaza = \"fold \\n\";\n\t\tString[] playerInfoFront = content.split(\"\\n\");\n\t\tBoolean isAllin = false;//前面是否有人allin\n\t\tint maxJetton = 80;\t\t\n\t\tint frontNum = playerInfoFront.length;//前面的人数,第一圈结束会把自己放到最后一行\n\t\tint nums = Player.getNums();//总人数\n\t\n\t\t//根据Inquire更新player的状态\n\t\tfor(int i = 0; i < frontNum - 1;i++){\n\t\t\tString[] onePlayer = playerInfoFront[i].split(\" \");\n\t\t\t//onePlayer[0]即Pid\n\t\t\t\n\t\t\tfor(int j = 0; j < nums; j++){\n\t\t\t\tif(onePlayer[0].equals(players[j].getPid() + \"\")){\n\t\t\t\t\tplayers[j].setJetton(Integer.parseInt(onePlayer[1]));\n\t\t\t\t\tplayers[j].setMoney(Integer.parseInt(onePlayer[2]));\n\t\t\t\t\tplayers[j].setBet(Integer.parseInt(onePlayer[3]));\n\t\t\t\t\tplayers[j].setAction(onePlayer[4]);\n\t\t\t\t\tif(onePlayer[4].equals(\"all_in \\n\")){\n\t\t\t\t\t\tisAllin = true;\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(Integer.parseInt(onePlayer[1]) > maxJetton)\n\t\t\t\t\t\tmaxJetton = Integer.parseInt(onePlayer[1]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tif(Card.getNums() == 2){\n\t\t\t//pre-flop 0,1两张手牌\n\t\t\tmyWaza = actionBaseHold(cards, nums, players, maxJetton);\n\t\t}else if(Card.getNums() == 5){\n\t\t\tmyWaza = \"call \\n\";\n\t\t\t//flop-round 0,1两张手牌 2,3,4三张翻牌\n\t\t\tmyWaza = actionBaseFlop(cards, nums, players, maxJetton);\n\t\t\t/*\n\t\t\tif(getWinRate() < 0.5){\n\t\t\t\tmyWaza = \"fold \\n\";\n\t\t\t}else if(getWinRate() >= 0.5 && getWinRate() < 0.8){\n\t\t\t\tmyWaza = \"call \\n\";\n\t\t\t}else{\n\t\t\t\tmyWaza = \"all_in \\n\";\n\t\t\t}*/\t\n\t\t}else if(Card.getNums() == 6){\n\t\t\tmyWaza = \"call \\n\";\n\t\t\t//turn-round 0,1两张手牌 2,3,4三张翻牌,5一张转牌\n\t\t}else{\n\t\t\tmyWaza = \"call \\n\";\n\t\t\t//river-found 0,1两张手牌 2,3,4三张翻牌,5一张转牌,6一张河牌\n\t\t}\n\t\t\n\t\treturn myWaza;\n\t}", "protected boolean processMatchOffered(boolean toUser, int offerIndex, String oppName,\n String matchDetails){\n return false;\n }", "static void complete_return_requirements(){\n\t\tString ad = memory.get(SP+1)+memory.get(SP);\n\t\tSP+=2;\n\t\tPC = hexa_to_deci(ad);\n\t\tmodified =true;\n\t}", "private void searchFunction() {\n\t\t\r\n\t}", "public void setFeedback()\n\t{\n\t\tif(feedback == null || feedback.equals(\"\")) {\n\t\t System.out.println(\"\");\n\t\t return;\n\t\t}\n\t\tSystem.out.println(\"here in feedback!\");\n\t\tfinal StringTokenizer st = new StringTokenizer(feedback,\",\");\n\t\t//switch dependants mode based on om string\n\t\tif(om.equals(\"graphic_associate_interaction\"))\n\t\t{\n\t\t\tif(associations == null)\n\t\t\t\tassociations = new Vector<Association>();\n\n\t\t\twhile(st.hasMoreTokens())\n\t\t\t{\n\t\t\t\t//split the token again to get the two key codes\n\t\t\t\tfinal String[] parts = st.nextToken().split(\" \");\n\t\t\t\tBoundObject start = null;\n\t\t\t\tBoundObject end = null;\n\t\t\t\tfor(int i=0; i< hotspots.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tif(hotspots.elementAt(i).keyCode.equals(parts[0]))\n\t\t\t\t\t\tstart = hotspots.elementAt(i);\n\t\t\t\t\tif(hotspots.elementAt(i).keyCode.equals(parts[1]))\n\t\t\t\t\t\tend = hotspots.elementAt(i);\n\t\t\t\t}\n\n\t\t\t\tif(start != null && end != null)\n\t\t\t\t{\n\t\t\t\t\tstart.assCount++;\n\t\t\t\t\tend.assCount++;\n\t\t\t\t\tassociations.add(new Association(start,end,start.getPoint(end.getCentrePoint()),end.getPoint(start.getCentrePoint())));\n\t\t\t\t}\n\t\t\t\tuser_responses++;\n\t\t\t}\n\t\t}else if(om.equals(\"hotspot_interaction\"))\n\t\t{\n\t\t\twhile(st.hasMoreTokens())\n\t\t\t{\n\t\t\t\tfinal String code = st.nextToken();\n\t\t\t\tfor(int i=0; i < hotspots.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tif(hotspots.elementAt(i).keyCode.equals(code))\n\t\t\t\t\t\thotspots.elementAt(i).highlighted = true;\n\t\t\t\t}\n\t\t\t\tuser_responses++;\n\t\t\t}\n\t\t}else if(om.equals(\"graphic_order_interaction\"))\n\t\t{\n\t\t\tint index = 0;\n\t\t\twhile(st.hasMoreTokens())\n\t\t\t{\n\t\t\t\tfinal String code = st.nextToken();\n\t\t\t\tBoundObject hotSpot = null;\n\t\t\t\tMovableObject movObj = null;\n\t\t\t\tfor(int i=0; i<hotspots.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tif(hotspots.elementAt(i).keyCode.equals(code))\n\t\t\t\t\t\thotSpot = hotspots.elementAt(i);\n\t\t\t\t}\n\n\t\t\t\tmovObj = movableObjects.elementAt(index);\n\n\t\t\t\tif(movObj != null && hotSpot != null)\n\t\t\t\t{\n\t\t\t\t\tmovObj.bound.put(hotSpot.keyCode,new Boolean(true));\n\t\t\t\t\tmovObj.assCount++;\n\t\t\t\t\thotSpot.bound.put(movObj.keyCode,new Boolean(true));\n\t\t\t\t\thotSpot.assCount++;\n\t\t\t\t\tmovObj.setPos(hotSpot.getCentrePoint());\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tuser_responses++;\n\t\t\t}\n\t\t}else if(om.equals(\"gap_match_interaction\"))\n\t\t{\n\t\t\twhile(st.hasMoreTokens())\n\t\t\t{\n\t\t\t\tSystem.out.println(\"handling a token!\");\n\t\t\t\tfinal String[] codepair = st.nextToken().split(\" \");\n\t\t\t\tBoundObject hotSpot = null;\n\t\t\t\tMovableObject movObj = null;\n\t\t\t\tfor(int i=0; i<hotspots.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tif(hotspots.elementAt(i).keyCode.equals(codepair[1]))\n\t\t\t\t\t\thotSpot = hotspots.elementAt(i);\n\t\t\t\t}\n\n\t\t\t\tfor(int i=0; i < movableObjects.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tif(movableObjects.elementAt(i).keyCode.equals(codepair[0]))\n\t\t\t\t\t\tmovObj = movableObjects.elementAt(i);\n\t\t\t\t}\n\n\t\t\t\tif(movObj != null && hotSpot != null)\n\t\t\t\t{\n\t\t\t\t\tmovObj.bound.put(hotSpot.keyCode,new Boolean(true));\n\t\t\t\t\tmovObj.assCount++;\n\t\t\t\t\thotSpot.bound.put(movObj.keyCode,new Boolean(true));\n\t\t\t\t\thotSpot.assCount++;\n\t\t\t\t\tmovObj.setPos(hotSpot.getCentrePoint());\n\n\t\t\t\t\tSystem.out.println(\"looking to clone...\");\n\t \t\t\t\tfinal Integer size = movObjCount.get(movObj.keyCode);\n\t \t\t\t\tmovObjCount.remove(movObj.keyCode);\n\t \t\t\t\tfinal int sz = size.intValue()+1;\n\t \t\t\t\tmovObjCount.put(movObj.keyCode, new Integer(sz));\n\t \t\t\t\tfinal Integer maxSize = movObjMaxCount.get(movObj.keyCode);\n\t \t\t\t\tSystem.out.println(\"key variables are [current size] : \"+sz+\" and [maxSize] : \"+maxSize.intValue());\n\t \t\t\t\tif(maxSize.intValue() == 0 || sz < maxSize.intValue())\n\t \t\t\t\t{\n\t \t\t\t\t\tfinal MovableObject copy = movObj.lightClone();\n\t \t\t\t\t\tcopy.resetPos();\n\t \t\t\t\t\tmovableObjects.add(copy);\n\t \t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tuser_responses++;\n\t\t\t}\n\t\t} else if (om.equals(\"figure_placement_interaction\")) {\n\t\t while (st.hasMoreTokens()) {\n\t\t final String[] codepair = st.nextToken().split(\":\");\n\t\t final String[] coords;\n\t\t if (codepair.length > 1) {\n\t\t coords = codepair[1].split(\"-\");\n\t\t if (coords.length > 1) {\n\t\t System.out.println(\"Code pair is: \"+coords[0]+\", \"+coords[1]);\n\t\t }\n\t\t } else {\n\t\t continue;\n\t\t }\n\t\t MovableObject movObj = null;\n\t\t for(int i=0; i < movableObjects.size(); i++)\n {\n\t\t System.out.println(\"keycode is: \" + movableObjects.elementAt(i).getKeyCode() + \" saved one is: \" + codepair[0]);\n if(movableObjects.elementAt(i).getKeyCode().equals(codepair[0])) {\n movObj = movableObjects.elementAt(i);\n break;\n }\n }\n\t\t if (movObj != null && coords.length > 1) {\n\t\t movObj.setPos(new Point(Integer.parseInt(coords[0]), Integer.parseInt(coords[1])));\n\t\t }\n\t\t }\n\t\t}\n\t}", "protected void finishFlags() {\r\n\r\n \tif (!doAutoComplete) {\r\n \t\treturn;\r\n \t}\r\n \t\r\n for (int i=0; i < width; i++) {\r\n for (int j=0; j < height; j++) {\r\n Location l = new Location(i,j);\r\n if (query(l) == GameStateModel.HIDDEN) {\r\n \tplaceFlag(l);\r\n }\r\n }\r\n } \r\n \r\n }", "public void goapPlanFound(Queue<GoapAction> actions);", "private void checkForCompletion()\n\t\t\t{\n\t\t\t\tcompletionflag = true;\n\t\t\t\tfor (j = 0; j < 9; ++j)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (cpuflag[j] == false && flag[j] == false)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcompletionflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t}", "public static void m72639a(com.p280ss.android.ugc.aweme.feed.model.Aweme r3, java.lang.String r4, int r5) {\n /*\n if (r3 == 0) goto L_0x006d\n boolean r0 = r3.isFamiliar()\n r1 = 1\n if (r0 != r1) goto L_0x006c\n boolean r0 = com.p280ss.android.ugc.aweme.utils.C43122ff.m136762a(r3)\n if (r0 == 0) goto L_0x0010\n goto L_0x006c\n L_0x0010:\n com.ss.android.ugc.aweme.app.g.d r0 = com.p280ss.android.ugc.aweme.app.p305g.C22984d.m75611a()\n java.lang.String r1 = \"enter_from\"\n java.lang.String r2 = \"homepage_hot\"\n com.ss.android.ugc.aweme.app.g.d r0 = r0.mo59973a(r1, r2)\n java.lang.String r1 = \"event_type\"\n com.ss.android.ugc.aweme.app.g.d r4 = r0.mo59973a(r1, r4)\n java.lang.String r0 = \"rec_uid\"\n java.lang.String r1 = com.p280ss.android.ugc.aweme.metrics.C33230ac.m107205a(r3)\n com.ss.android.ugc.aweme.app.g.d r4 = r4.mo59973a(r0, r1)\n java.lang.String r0 = \"req_id\"\n java.lang.String r1 = r3.getRequestId()\n com.ss.android.ugc.aweme.app.g.d r4 = r4.mo59973a(r0, r1)\n java.lang.String r0 = \"rec_reason\"\n com.ss.android.ugc.aweme.feed.model.RelationDynamicLabel r1 = r3.getRelationLabel()\n if (r1 == 0) goto L_0x0044\n java.lang.String r1 = r1.getLabelInfo()\n if (r1 != 0) goto L_0x0046\n L_0x0044:\n java.lang.String r1 = \"\"\n L_0x0046:\n com.ss.android.ugc.aweme.app.g.d r4 = r4.mo59973a(r0, r1)\n java.lang.String r0 = \"card_type\"\n java.lang.String r1 = \"item\"\n com.ss.android.ugc.aweme.app.g.d r4 = r4.mo59973a(r0, r1)\n java.lang.String r0 = \"group_id\"\n java.lang.String r3 = r3.getAid()\n com.ss.android.ugc.aweme.app.g.d r3 = r4.mo59973a(r0, r3)\n r4 = -1\n if (r5 == r4) goto L_0x0064\n java.lang.String r4 = \"feed_order\"\n r3.mo59970a(r4, r5)\n L_0x0064:\n java.lang.String r4 = \"follow_card\"\n java.util.Map<java.lang.String, java.lang.String> r3 = r3.f60753a\n com.p280ss.android.ugc.aweme.common.C6907h.m21524a(r4, r3)\n return\n L_0x006c:\n return\n L_0x006d:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.familiar.p966b.C21718a.m72639a(com.ss.android.ugc.aweme.feed.model.Aweme, java.lang.String, int):void\");\n }", "@Scheduled(fixedDelay = 1000)\n\tpublic void prepareAccessions() {\n\t\tIterator<String> it = accessionCandidateQueue.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tString accessionCandidate = it.next();\n\t\t\tMongoSampleTab sample = mongoSampleTabRepository.findOne(accessionCandidate);\n\t\t\tif (sample != null) {\n\t\t\t\tlog.warn(\"Removing accession \"+accessionCandidate+\" from queue because now assigned\");\n\t\t\t\tit.remove();\n\t\t\t}\n\t\t}\n\t\t\n\t\twhile (accessionCandidateQueue.remainingCapacity() > 0) {\n\t\t\tlog.debug(\"Adding more accessions to queue\");\n\t\t\tString accessionCandidate = \"GSB-\" + accessionCandidateCounter;\n\t\t\t// if the accession already exists, skip it\n\t\t\tif (mongoSampleTabRepository.exists(accessionCandidate)) {\n\t\t\t\taccessionCandidateCounter += 1;\n\t\t\t\t// if the accession can't be put in the queue at this time\n\t\t\t\t// (queue full), stop\n\t\t\t} else if (!accessionCandidateQueue.offer(accessionCandidate)) {\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\t//put it into the queue, move on to next\n\t\t\t\taccessionCandidateCounter += 1;\n\t\t\t}\n\t\t\tlog.trace(\"Added more accessions to queue\");\n\t\t}\n\t}", "@Override\n public void breakpointReached(JPDABreakpointEvent event) {\n if (!isFiltered) {\n boolean removed = allBreakpoints.remove(breakpoint);\n if (ok == null && removed) {\n ok = Boolean.TRUE;\n message = \"O.K.\";\n } else {\n if (ok != null) {\n message += \"Hit again at \"+event.getReferenceType()+\" \";\n ok = Boolean.FALSE;\n } else if (!removed) {\n message += \"BP not in list. \";\n ok = Boolean.FALSE;\n }\n }\n } else { // Filtered, expected to hit twice (in APP_CLASS_NAME and APP2_CLASS_NAME)\n //System.err.println(\"breakpointReached(\"+event+\", isFiltered = \"+isFiltered+\"), referenceType = \"+event.getReferenceType());\n String className = event.getReferenceType().name();//event.getThread().getClassName();\n boolean removed = toBeHitIn.remove(className);\n if (ok == null && removed && toBeHitIn.isEmpty()) {\n allBreakpoints.remove(breakpoint);\n ok = Boolean.TRUE;\n message = \"O.K.\";\n } else {\n if (!removed) {\n message += \"Hit again at \"+className+\" \";\n ok = Boolean.FALSE;\n }\n }\n }\n event.resume();\n }", "@Override\n public ZmailHit peekNext() throws ServiceException {\n ZmailHit toRet = null;\n if (nextHits.size() > 0) {\n // already have some hits, so our job is easy!\n toRet = nextHits.get(0);\n } else {\n // we don't have any buffered SearchResults, try to get more\n while (toRet == null) {\n // Check to see if we need to refil mDBHits\n if ((dbHitsIter == null || !dbHitsIter.hasNext()) && !endOfHits) {\n if (fetch == null) {\n switch (context.getResults().getFetchMode()) {\n case NORMAL:\n fetch = isTopLevelQueryOp() ? DbSearch.FetchMode.MAIL_ITEM : DbSearch.FetchMode.ID;\n break;\n case IMAP:\n fetch = DbSearch.FetchMode.IMAP_MSG;\n break;\n case IDS:\n fetch = DbSearch.FetchMode.ID;\n break;\n case MODSEQ:\n fetch = DbSearch.FetchMode.MODSEQ;\n break;\n case PARENT:\n fetch = DbSearch.FetchMode.PARENT;\n break;\n default:\n assert false : context.getResults().getFetchMode();\n }\n }\n\n if (executeMode == null) {\n if (hasNoResults()) {\n executeMode = QueryExecuteMode.NO_RESULTS;\n } else if (luceneOp == null) {\n executeMode = QueryExecuteMode.NO_LUCENE;\n } else if (shouldExecuteDbFirst()) {\n luceneOp.clearFilterClause();\n executeMode = QueryExecuteMode.DB_FIRST;\n } else {\n executeMode = QueryExecuteMode.LUCENE_FIRST;\n }\n }\n\n getNextChunk();\n }\n\n // at this point, we've filled mDBHits if possible (and initialized its iterator)\n if (dbHitsIter != null && dbHitsIter.hasNext()) {\n DbSearch.Result sr = dbHitsIter.next();\n // Sometimes, a single search result might yield more than one Lucene document -- e.g. an RFC822\n // message with separately-indexed MIME parts. Each of these parts will turn into a separate\n // ZmailHit at this point, although they might be combined together at a higher level (via a\n // HitGrouper).\n Collection<Document> docs = luceneChunk != null ? luceneChunk.getHit(sr.getIndexId()) : null;\n\n if (docs == null || !ZmailQueryResultsImpl.shouldAddDuplicateHits(sr.getType())) {\n ZmailHit toAdd = context.getResults().getZmailHit(context.getMailbox(), sr, null, fetch);\n if (toAdd != null) {\n // make sure we only return each hit once\n if (!mSeenHits.containsKey(toAdd)) {\n mSeenHits.put(toAdd, toAdd);\n nextHits.add(toAdd);\n }\n }\n } else {\n for (Document doc : docs) {\n ZmailHit toAdd = context.getResults().getZmailHit(context.getMailbox(), sr, doc, fetch);\n if (toAdd != null) {\n // make sure we only return each hit once\n if (!mSeenHits.containsKey(toAdd)) {\n mSeenHits.put(toAdd, toAdd);\n nextHits.add(toAdd);\n }\n }\n }\n }\n\n if (nextHits.size() > 0) {\n toRet = nextHits.get(0);\n }\n } else {\n return null;\n }\n }\n }\n\n return toRet;\n }", "private void requestIntercepts() {\n TrafficSelector.Builder selector = DefaultTrafficSelector.builder();\n selector.matchEthType(Ethernet.TYPE_IPV4);\n packetService.requestPackets(selector.build(), PacketPriority.REACTIVE, appId);\n selector.matchEthType(Ethernet.TYPE_ARP);\n packetService.requestPackets(selector.build(), PacketPriority.REACTIVE, appId);\n\n selector.matchEthType(Ethernet.TYPE_IPV6);\n if (ipv6Forwarding) {\n packetService.requestPackets(selector.build(), PacketPriority.REACTIVE, appId);\n } else {\n packetService.cancelPackets(selector.build(), PacketPriority.REACTIVE, appId);\n }\n }", "ActionSequenceQueue prioritize(ActionSequenceQueue actionSequences);", "@Override\n public void action() {\n DFAgentDescription appointmentAgentDescription = dfSubscription.getAgentDescription();\n List<AllocationState> preferredAllocations = patientAgent.getAllocationStates();\n\n if (patientAgent.getCurrentAllocation() == GlobalAgentConstants.APPOINTMENT_UNINITIALIZED) {\n /* Patient agent has not got any appointment from the hospital agent yet */\n return;\n\n } else if (preferredAllocations.isEmpty()) {\n /* Patient Agent has its most preferred appointment */\n isHappyWithAppointment = true;\n\n } else if (appointmentAgentDescription != null) {\n\n /* Loop executed when action is executed for the first time */\n if (preferredAllocationsIterator == null) {\n /* Querying patient preferences */\n preferredAllocationsIterator = patientAgent.getAllocationStates().iterator();\n currentSize = patientAgent.getAllocationStates().size();\n }\n\n\n if (!preferredAllocationsIterator.hasNext()) {\n /* Condition executed when no more swaps available */\n updatePreferences();\n\n } else if (expectedMessageTemplate == null) {\n\n /* We are not expecting any response, we can make another swap proposal */\n proposeSwap(preferredAllocationsIterator.next(), appointmentAgentDescription);\n\n } else {\n /* Some message has been sent, awaiting a response */\n ACLMessage expectedMessage = patientAgent.receive(expectedMessageTemplate);\n if (expectedMessage != null) {\n boolean wasSwapSuccessful = receiveResponse(expectedMessage, appointmentAgentDescription);\n expectedMessageTemplate = null;\n currentlyProposedAllocationSwap = null;\n\n /* If swap has been successful, we need to update our preference list\n as the patient agent has got new appointment */\n if (wasSwapSuccessful) {\n updatePreferences();\n }\n }\n }\n }\n }", "private void startAttack() {\n\t\tdetermineAttackingWeapons(character, targetPosition.getX(), targetPosition.getY(), attackingWeapons);\r\n\t\tif (shouldStartCombat()) {\r\n\t\t\tgameState.startCombat();\r\n\t\t}\r\n\t\ttotalAPCost = getAPCostToAttack();\r\n\t\tif ((character.\r\n\t\t\t\tstats().getAPAct() >= totalAPCost || !GameState.isCombatInProgress())\r\n\t\t\t\t&& (attackingWeapons.size > 0 || canAttackWithFists())) {\r\n\t\t\tstartedAttack = true;\r\n\t\t\tcharacter.setIsSneaking(false);\r\n\t\t\tcharacter.setOrientation(Orientation\r\n\t\t\t\t\t.calculateOrientationToTarget(character, target));\r\n\t\t\tif (rangedAttack) {\r\n\t\t\t\tcharacter.setState(State.ATTACKRANGED);\r\n\t\t\t} else {\r\n\t\t\t\tcharacter.setState(State.ATTACKMELEE);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tstartedAttack = true;\r\n\t\t\tactionFinished = true;\r\n\t\t}\r\n\t}", "public final void h(int r13) {\n /*\n r12 = this;\n android.content.Intent r0 = new android.content.Intent\n java.lang.String r1 = \"com.cuatroochenta.miniland.PLAYER_ACTION\"\n r0.<init>(r1)\n java.lang.String r1 = \"EXTRA_KEY_PLAYER_STATUS_CODE\"\n r0.putExtra(r1, r13)\n java.lang.String r1 = r12.h\n java.lang.String r2 = \"EXTRA_KEY_PLAYLIST_TYPE\"\n r0.putExtra(r2, r1)\n boolean r1 = r12.f\n java.lang.String r2 = \"EXTRA_KEY_INFO_CURRENT_TRACK\"\n if (r1 == 0) goto L_0x0036\n int r1 = r12.f3936d\n if (r1 < 0) goto L_0x0036\n java.util.ArrayList<com.cuatroochenta.miniland.model.Song> r3 = r12.f3935c\n int r3 = r3.size()\n if (r1 >= r3) goto L_0x0036\n java.util.ArrayList<com.cuatroochenta.miniland.model.Song> r1 = r12.f3935c\n int r3 = r12.f3936d\n java.lang.Object r1 = r1.get(r3)\n com.cuatroochenta.miniland.model.Song r1 = (com.cuatroochenta.miniland.model.Song) r1\n java.util.ArrayList<com.cuatroochenta.miniland.model.Song> r3 = r12.f3934b\n int r1 = r3.indexOf(r1)\n goto L_0x0038\n L_0x0036:\n int r1 = r12.f3936d\n L_0x0038:\n r0.putExtra(r2, r1)\n boolean r1 = r12.f\n java.lang.String r2 = \"EXTRA_KEY_INFO_SHUFFLE_MODE\"\n r0.putExtra(r2, r1)\n boolean r1 = r12.f3937e\n java.lang.String r2 = \"EXTRA_KEY_INFO_IS_LOOP_MODE\"\n r0.putExtra(r2, r1)\n java.lang.String r1 = r12.c()\n java.lang.String r2 = \"EXTRA_KEY_INFO_CURRENT_SONG_NAME\"\n r0.putExtra(r2, r1)\n android.media.MediaPlayer r1 = r12.f3933a\n if (r1 == 0) goto L_0x0079\n int r1 = r1.getCurrentPosition()\n int r1 = r1 / 1000\n java.lang.String r2 = \"EXTRA_KEY_INFO_CURRENT_POSITION\"\n r0.putExtra(r2, r1)\n android.media.MediaPlayer r1 = r12.f3933a\n boolean r1 = r1.isPlaying()\n java.lang.String r2 = \"EXTRA_KEY_INFO_IS_PLAYING\"\n r0.putExtra(r2, r1)\n android.media.MediaPlayer r1 = r12.f3933a\n int r1 = r1.getDuration()\n int r1 = r1 / 1000\n java.lang.String r2 = \"EXTRA_KEY_INFO_TRACK_DURATION\"\n r0.putExtra(r2, r1)\n L_0x0079:\n android.os.CountDownTimer r1 = r12.i\n r2 = 0\n r3 = 1000(0x3e8, double:4.94E-321)\n java.lang.String r5 = \"EXTRA_KEY_INFO_COUNTDOWN_TIMEFINISH\"\n r6 = 1\n r7 = 0\n java.lang.String r9 = \"EXTRA_KEY_INFO_COUNTDOWN_STATUS\"\n if (r1 == 0) goto L_0x0098\n long r10 = r12.j\n int r1 = (r10 > r7 ? 1 : (r10 == r7 ? 0 : -1))\n if (r1 <= 0) goto L_0x0098\n r0.putExtra(r9, r2)\n long r7 = r12.j\n long r9 = java.lang.System.currentTimeMillis()\n long r7 = r7 - r9\n goto L_0x00a3\n L_0x0098:\n long r10 = r12.k\n int r1 = (r10 > r7 ? 1 : (r10 == r7 ? 0 : -1))\n if (r1 <= 0) goto L_0x00a9\n r0.putExtra(r9, r6)\n long r7 = r12.k\n L_0x00a3:\n long r7 = r7 / r3\n int r1 = (int) r7\n r0.putExtra(r5, r1)\n goto L_0x00ad\n L_0x00a9:\n r1 = 2\n r0.putExtra(r9, r1)\n L_0x00ad:\n com.sozpic.miniland.AppMiniland r1 = com.sozpic.miniland.AppMiniland.f()\n boolean r1 = r1.n()\n if (r1 == 0) goto L_0x00cf\n java.lang.Object[] r1 = new java.lang.Object[r6]\n java.lang.Integer r13 = java.lang.Integer.valueOf(r13)\n r1[r2] = r13\n java.lang.String r13 = \"PlayerService -> Send status %d to LocalBroadcast\"\n java.lang.String r13 = java.lang.String.format(r13, r1)\n a.c.a.f.e.b(r13)\n androidx.localbroadcastmanager.content.LocalBroadcastManager r13 = androidx.localbroadcastmanager.content.LocalBroadcastManager.getInstance(r12)\n r13.sendBroadcast(r0)\n L_0x00cf:\n r12.sendBroadcast(r0)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuatroochenta.miniland.player.PlayerService.h(int):void\");\n }", "private void beforeAttributeNameState() throws SAXException, IOException {\n while (beforeAttributeNameStateImpl()) {\n // Spin.\n }\n }", "@Override\n public boolean continueExecuting()\n {\n theEntity.decrementRearingCounter();;\n Boolean continueExecuting = theEntity.getRearingCounter()>0; \n if (!continueExecuting)\n {\n theEntity.setRearing(false);\n theEntity.setAttackTarget(theEntity.getLastAttacker()); // now attack back\n }\n // DEBUG\n if (theEntity.getAITarget() != null)\n {\n System.out.println(\"AIPanic continueExecuting = \"+continueExecuting+\", rearingCounter = \"+theEntity.getRearingCounter()+\", isRearing = \"\n +theEntity.isRearing()+\", Attack Target = \"+theEntity.getAITarget().getClass().getSimpleName()+\", client side = \"+theEntity.worldObj.isRemote);\n }\n else\n {\n System.out.println(\"AIPanic continueExecuting = \"+continueExecuting+\", rearingCounter = \"+theEntity.getRearingCounter()+\", isRearing = \"\n +theEntity.isRearing()+\", Attack Target = null\"+\", client side = \"+theEntity.worldObj.isRemote);\n }\n return (continueExecuting);\n }", "public void Case17(){\n System.out.println(\"Testing Case 15\");\n for(int z=1; z<=7; z++) {\n if(z==1) {\n activeProd();\n //Insert search here\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementByXPath(\"//android.widget.ImageButton[contains(@resource-id,'search_button')]\");\n searchBtn.click();\n System.out.println(\"Active Products done\");\n clear();\n }\n else if(z==2){\n activeProd();\n byShortName();\n clear();\n }\n else if(z==3){\n activeProd();\n byItemCode();\n clear();\n }\n else if(z==4){\n activeProd();\n byDescription();\n clear();\n }\n else if(z==5){\n activeProd();\n byBrand();\n clear();\n }\n else if(z==6){\n activeProd();\n byKeyword();\n clear();\n }\n else if(z==7){\n activeProd();\n byPrincipal();\n clear();\n }\n }\n System.out.println(\"Case 15 Done\");\n }", "private void decideNextAction() {\n\t\tif (reply == null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// send queued action\n\t\tif (!actionQueue.isEmpty()) {\n\t\t\tString action = actionQueue.poll();\n\t\t\tLOG.trace(\"sending action {}, {} actions pending\", action, actionQueue.size());\n\t\t\tsendReply(action);\n\t\t\treturn;\n\t\t}\n\n\t\t// is carrying food\n\t\tif (currentPerception.getCurrentFood() > 0) {\n\n\t\t\t// drop if on start cell\n\t\t\tif (currentCell.getType() == CellType.START) {\n\t\t\t\tLOG.debug(\"dropping food at {}\", currentCell.getPosition());\n\t\t\t\tsendReply(msgUtil.DROP);\n\t\t\t\treturn;\n\n\t\t\t}\n\n\t\t\t// otherwise, find path to start cell\n\t\t\tLOG.debug(\"searching start cell\");\n\t\t\tBFSRunner startSearcher = new BFSRunner(map, msgUtil, currentCell, Cell::isSafeAccessible, Cell::isStart,\n\t\t\t\t\tactionQueue);\n\t\t\tCell startCell = startSearcher.search();\n\t\t\t// TODO replace with bidirectional search\n\t\t\tif (startCell != null) {\n\t\t\t\tLOG.debug(\"found start from {} to {}\", currentCell.getPosition(), startCell.getPosition());\n\t\t\t} else {\n\t\t\t\tLOG.error(\"could not find start from {}\", currentCell.getPosition());\n\t\t\t\tdoDelete();\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\t// current cell has food\n\t\tif (currentCell.hasFood()) {\n\t\t\tLOG.debug(\"collecting food at {}\", currentCell.getPosition());\n\t\t\tsendReply(msgUtil.COLLECT);\n\t\t\treturn;\n\t\t}\n\n\t\t// search a path to a useful cell\n\t\tint[] ranges = { 1, 2, 3, 5, 8, 13, 20 };\n\t\tBFSRunner foodSearcher = getSearcher(Cell::isSafeAccessible, Cell::hasFood);\n\t\tBFSRunner safeUnknownSearcher = getSearcher(Cell::isSafeAccessible, Cell::isSafeUnknown);\n\n\t\t// search within progressively growing ranges first\n\t\tfor (Integer range : ranges) {\n\t\t\t// search for a cell with food\n\t\t\tLOG.trace(\"searching for path to food within range of {}\", range);\n\t\t\tCell foodCell = foodSearcher.search(range);\n\t\t\tif (foodCell != null) {\n\t\t\t\tLOG.debug(\"found path to food from {} to {}\", currentCell.getPosition(), foodCell.getPosition());\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// search for a safe, unexplored cell\n\t\t\tLOG.trace(\"searching for path to safe, unexplored cell within range of {}\", range);\n\t\t\tCell safeUnknownCell = safeUnknownSearcher.search(range);\n\t\t\tif (safeUnknownCell != null) {\n\t\t\t\tLOG.debug(\"found path to safe unexplored cell from {} to {}\", currentCell.getPosition(),\n\t\t\t\t\t\tsafeUnknownCell.getPosition());\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// search for a cell with food\n\t\tLOG.trace(\"searching for path to food within max range\");\n\t\tCell foodCell = foodSearcher.search();\n\t\tif (foodCell != null) {\n\t\t\tLOG.debug(\"found path to food from {} to {}\", currentCell.getPosition(), foodCell.getPosition());\n\t\t\treturn;\n\t\t}\n\n\t\t// search for a safe, unexplored cell\n\t\tLOG.trace(\"searching for path to safe, unexplored cell within max range\");\n\t\tCell safeUnknownCell = safeUnknownSearcher.search();\n\t\tif (safeUnknownCell != null) {\n\t\t\tLOG.debug(\"found path to safe unexplored cell from {} to {}\", currentCell.getPosition(),\n\t\t\t\t\tsafeUnknownCell.getPosition());\n\t\t\treturn;\n\t\t}\n\n\t\t// search for an unsafe, unexplored cell\n\t\tLOG.trace(\"searching for path to unsafe, unexplored cell\");\n\t\tBFSRunner unsafeUnknownSearcher = getSearcher(Cell::isAccessible, Cell::isUnsafeUnknown);\n\t\tCell unsafeUnknownCell = unsafeUnknownSearcher.search();\n\t\tif (unsafeUnknownCell != null) {\n\t\t\tLOG.debug(\"found path to unsafe unexplored cell from {} to {}\", currentCell.getPosition(),\n\t\t\t\t\tunsafeUnknownCell.getPosition());\n\t\t\treturn;\n\t\t}\n\n\t\tLOG.debug(\"found no path to anywhere useful\");\n\t\tdoDelete();\n\n\t}", "public void incrementNumAttacked( ){\n this.numAttacked++;\n }", "public void takesHit()\n {\n // TODO: replace this line with your code\n }", "public void beforeSendingeGainChatRequest();", "public void Case25(){\n System.out.println(\"Testing Case 25\");\n for(int z=1; z<=7; z++) {\n infoFilter();\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement cancelBtn = (MobileElement) driver.findElementById(\"android:id/button2\");\n String cancelBtnText = cancelBtn.getText();\n System.out.println(\"Clicked \"+cancelBtnText);\n cancelBtn.click();\n infoFilterCurrentInvent();\n if(z==1) {\n checkByName();\n //Click Search bar and search certain product by Name\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchName = (MobileElement) driver.findElementById(\"com.engagia.android:id/search_auto_complete_text_view\");\n searchName.sendKeys(\"amoxil\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementById(\"com.engagia.android:id/search_button\");\n searchBtn.click();\n System.out.println(\"Search by Name\");\n }\n else if(z==2){\n checkByShortName();\n //Click Search bar and search certain product by Name\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchShortName = (MobileElement) driver.findElementById(\"com.engagia.android:id/search_auto_complete_text_view\");\n searchShortName.sendKeys(\"Amoxil 500mg\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementById(\"com.engagia.android:id/search_button\");\n searchBtn.click();\n System.out.println(\"Search by Short Name\");\n }\n else if(z==3){\n checkByItemCode();\n //Click Search bar and search certain product by Item Code\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchItemCode = (MobileElement) driver.findElementById(\"com.engagia.android:id/search_auto_complete_text_view\");\n searchItemCode.sendKeys(\"51232167\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementById(\"com.engagia.android:id/search_button\");\n searchBtn.click();\n System.out.println(\"Search by Short Name\");\n }\n else if(z==4){\n checkByDescription();\n //Click Search bar and search certain product by Description\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchDescription = (MobileElement) driver.findElementById(\"com.engagia.android:id/search_auto_complete_text_view\");\n searchDescription.sendKeys(\"Capsule\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementById(\"com.engagia.android:id/search_button\");\n searchBtn.click();\n System.out.println(\"Search by Description\");\n }\n else if(z==5){\n checkByBrand();\n //Click Search bar and search certain product by Brand\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchBrand = (MobileElement) driver.findElementById(\"com.engagia.android:id/search_auto_complete_text_view\");\n searchBrand.sendKeys(\"Amoxil\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementById(\"com.engagia.android:id/search_button\");\n searchBtn.click();\n System.out.println(\"Search by Brand\");\n }\n else if(z==6){\n checkByKeyword();\n //Click Search bar and search certain product by Keywords\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchKeyword = (MobileElement) driver.findElementById(\"com.engagia.android:id/search_auto_complete_text_view\");\n searchKeyword.sendKeys(\"AmOxIl\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementById(\"com.engagia.android:id/search_button\");\n searchBtn.click();\n System.out.println(\"Search by Keyword\");\n }\n else if(z==7){\n checkByPrincipal();\n //Click Search bar and search certain product by Principal\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchPrincipal = (MobileElement) driver.findElementById(\"com.engagia.android:id/search_auto_complete_text_view\");\n searchPrincipal.sendKeys(\"GlaxoSmithKline\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementById(\"com.engagia.android:id/search_button\");\n searchBtn.click();\n System.out.println(\"Search by Principal\");\n }\n\n }\n System.out.println(\"Case 25 Done\");\n }", "@Override\n public void onPartialResult(Hypothesis hypothesis) {\n if (hypothesis == null)\n return;\n\n String text = hypothesis.getHypstr();\n //\n if (text.equals(KEYPHRASE))\n switchSearch(MENU_SEARCH);\n else if (text.equals(DIGITS_SEARCH))\n switchSearch(DIGITS_SEARCH);\n else if (text.equals(ANIMAL_SEARCH))\n switchSearch(ANIMAL_SEARCH);\n else\n ((TextView) findViewById(R.id.result_text)).setText(text);\n }", "@Override\n protected void performActionResults(Action targetingAction) {\n PhysicalCard finalTarget = action.getPrimaryTargetCard(targetGroupId);\n\n // Perform result(s)\n action.appendEffect(\n new FindMissingCharacterEffect(action, finalTarget, false));\n }", "private void searchNext(CrawlingSession executor, Link link) {\n HTMLLinkExtractor htmlLinkExtractor = HTMLLinkExtractor.getInstance();\n// htmlLinkExtractor.setWorking(link);\n \n Source source = CrawlingSources.getInstance().getSource(link.getSourceFullName());\n if(source == null) return;\n \n SessionStore store = SessionStores.getStore(source.getCodeName());\n if(store == null) return;\n\n List<Link> collection = htmlLinkExtractor.getLinks(link, /*link.getSource(),*/ pagePaths);\n// List<Link> collection = htmlLinkExtractor.getLinks(srResource);\n List<Link> nextLinks = createNextLink(link, collection);\n if(nextLinks.size() < 1) return;\n if(userPaths == null && contentPaths == null) {\n executor.addElement(nextLinks, link.getSourceFullName());\n return;\n }\n \n \n if(nextLinks.size() < 2) {\n executor.addElement(nextLinks, link.getSourceFullName());\n }\n \n// long start = System.currentTimeMillis();\n \n int [] posts = new int[nextLinks.size()];\n for(int i = 0; i < nextLinks.size(); i++) {\n try {\n posts[i] = PageDownloadedTracker.searchCode(nextLinks.get(i), true);\n } catch (Throwable e) {\n posts[i] = -1;\n LogService.getInstance().setThrowable(link.getSourceFullName(), e);\n// executor.abortSession();\n// return;\n }\n }\n \n int max = 1;\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] > max) max = posts[i];\n }\n \n// System.out.println(\" thay max post la \"+ max);\n \n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] >= max) continue;\n updateLinks.add(nextLinks.get(i));\n }\n \n// long end = System.currentTimeMillis();\n// System.out.println(\"step. 4 \"+ link.getUrl()+ \" xu ly cai ni mat \" + (end - start));\n \n executor.addElement(updateLinks, link.getSourceFullName());\n \n /*int minPost = -1;\n Link minLink = null;\n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < nextLinks.size(); i++) {\n Link ele = nextLinks.get(i);\n int post = 0;\n try {\n post = PostForumTrackerService2.getInstance().read(ele.getAddressCode());\n } catch (Exception e) {\n LogService.getInstance().setThrowable(link.getSource(), e);\n }\n if(post < 1) {\n updateLinks.add(ele);\n continue;\n } \n\n if(minPost < 0 || post < minPost){\n minLink = ele;\n minPost = post; \n } \n }\n\n if(minLink != null) updateLinks.add(minLink);\n executor.addElement(updateLinks, link.getSource());*/\n }", "private void PassiveDiscoveryQueryCaseHandler(String[] input) {\n if (input.length < 3) //This is some sort of a garbled message. Should never happen.\n return;\n\n //We want to update the discovered users list only if this isn't a message\n //for a not-hosted public chat (Because the owner of a public chat room forwards the messages as they are and it'll mess up our\n //tracking over the users' IP addresses)\n boolean SkipUserUpdate = false;\n if (input[0].equalsIgnoreCase(Integer.toString(Constants.CONNECTION_CODE_NEW_CHAT_MSG))) //if this is a chat message\n //if the destination is us, we don't want to skip the update.\n //\tSkipUserUpdate = input[3].split(\"[_]\")[0].equalsIgnoreCase(MainScreenActivity.UniqueID)? false : true;\n\n if (!SkipUserUpdate)\n mService.UpdateDiscoveredUsersList(mSocket.getInetAddress().getHostAddress(), input[2], input[1]);\n\n String PeerIP = mSocket.getInetAddress().getHostAddress(); //get the peer's IP\n\n\t\t/*if (input[0].equalsIgnoreCase(Integer.toString(Constants.CONNECTION_CODE_DISCOVER)))\n {\n\t\t\t//discovery logic\n\t\t\tSendDiscoveryMessage(); //send a discovery message back to the peer\n\t\t\tArrayList<ChatRoomDetails> Rooms = ConvertDiscoveryStringToChatRoomList(input); //get the chat room data from the input\n\t\t\tmService.UpdateChatRoomHashMap(Rooms); //update the chat rooms hash at the service.\n\t\t}*/\n //if this is a peer publication message\n if (input[0].equalsIgnoreCase(Integer.toString(Constants.CONNECTION_CODE_PEER_DETAILS_BCAST))) {\n //ParsePeerPublicationMessageAndUpdateDiscoveredPeers(input);\n }\n //if this is a join request for a private chat:\n /*if (input[0].equalsIgnoreCase(Integer.toString(Constants.CONNECTION_CODE_PRIVATE_CHAT_REQUEST)))\n\t\t{\n\t\t\tString result = CheckIfNotIgnored(input); //check if this user is banned or not\n\t\t\t\n\t\t\tif (result.equalsIgnoreCase(Constants.SERVICE_POSTIVE_REPLY_FOR_JOIN_REQUEST)) //if connection is approved\n\t\t\t{\n\t\t\t\tif (mService.mDiscoveredChatRoomsHash.get(input[2])!=null) //if a matching discovered room exists\n\t\t\t\t\tmService.CreateNewPrivateChatRoom(input);\n\t\t\t\telse //a matching discovered room doesn't exist\n\t\t\t\t\tmService.BypassDiscoveryProcedure(input,false,false); \n\t\t\t\t\n\t\t\t\tSendReplyForAJoinRequest(PeerIP,true,MainScreenActivity.UniqueID,null,true);\n\t\t\t}\n\t\t\telse //connection wasn't approved. result contains the reason why\n\t\t\t{\n\t\t\t\tSendReplyForAJoinRequest(PeerIP,false,MainScreenActivity.UniqueID,result,true);\n\t\t\t}\t\n\t\t}*/\n //if this is a join request for a public chat:\n //if this is a reply for our private chat 'Join' request\n\n //if this is a reply for our public chat 'Join' request\n\n //if a user has request us to remove him from a room we host\n\n //if this is a new message targeted to on of the active chat rooms\n //else //this message came for a public chat room\n\n }" ]
[ "0.5598465", "0.5478575", "0.5458752", "0.5444847", "0.5370623", "0.5311778", "0.5308822", "0.5189282", "0.5168376", "0.5154709", "0.5152507", "0.5110691", "0.50864726", "0.50835544", "0.5083436", "0.5037798", "0.50272804", "0.50245714", "0.5021281", "0.498839", "0.49613374", "0.49490944", "0.48882872", "0.48752543", "0.48741257", "0.4863645", "0.4862526", "0.48560542", "0.48518664", "0.48503113", "0.48454598", "0.4841625", "0.48327994", "0.4831101", "0.4817906", "0.4814068", "0.48000142", "0.47989613", "0.47979316", "0.47935414", "0.47838938", "0.47738573", "0.47614634", "0.4755319", "0.4753523", "0.47510374", "0.47504872", "0.47465378", "0.47380692", "0.47372732", "0.47340727", "0.47264323", "0.47203305", "0.47163826", "0.47049528", "0.4700239", "0.46993592", "0.46941978", "0.46904317", "0.4690314", "0.46814224", "0.46808577", "0.46785924", "0.4667325", "0.46639723", "0.46575183", "0.46498775", "0.46402192", "0.46392977", "0.46384192", "0.46353334", "0.46326038", "0.46303108", "0.46258932", "0.4624806", "0.4624523", "0.46233606", "0.46171", "0.46169114", "0.46108887", "0.4604173", "0.46030867", "0.46005207", "0.4597856", "0.45920038", "0.45907703", "0.4582357", "0.45815676", "0.45793542", "0.45770118", "0.45759204", "0.45735106", "0.4572769", "0.45705855", "0.45682237", "0.45665243", "0.45625022", "0.45621616", "0.45612916", "0.4560509" ]
0.5455538
3
/public String mySettingPageName = LinMobileConstants.APP_VIEWS[6] .split(LinMobileConstants.ARRAY_SPLITTER)[1].trim(); public String publisherViewPageName = (LinMobileConstants.APP_VIEWS[0]) .split(LinMobileConstants.ARRAY_SPLITTER)[1]; public String advertiserViewPageName = (LinMobileConstants.APP_VIEWS[1]) .split(LinMobileConstants.ARRAY_SPLITTER)[1]; public String mediaPlannerPageName = (LinMobileConstants.APP_VIEWS[2]) .split(LinMobileConstants.ARRAY_SPLITTER)[1]; public String adminPageName = (LinMobileConstants.APP_VIEWS[5]) .split(LinMobileConstants.ARRAY_SPLITTER)[1]; public String operationalViewPageName = (LinMobileConstants.APP_VIEWS[2]) .split(LinMobileConstants.ARRAY_SPLITTER)[1]; public String poolPageName = (LinMobileConstants.APP_VIEWS[3]) .split(LinMobileConstants.ARRAY_SPLITTER)[1]; public String newsAndResearchPageName = (LinMobileConstants.APP_VIEWS[4]) .split(LinMobileConstants.ARRAY_SPLITTER)[1]; public String unifiedCampaign = (LinMobileConstants.APP_VIEWS[7]) .split(LinMobileConstants.ARRAY_SPLITTER)[1];
public boolean isAuthorised(SessionObjectDTO sessionDTO) { try { IUserService service = (IUserService) BusinessServiceLocator.locate(IUserService.class); sessionDTO = (SessionObjectDTO) session.get("sessionDTO"); service.getAuthorisations(userDetailsDTO, sessionDTO.getRoleId()); service.getAuthorisedPagesForUser(sessionDTO.getRoleId(), sessionDTO.getUserId(), userDetailsDTO); if(userDetailsDTO.getAuthorisedPagesList() != null && userDetailsDTO.getAuthorisedPagesList().contains((LinMobileConstants.APP_VIEWS[2]).split(LinMobileConstants.ARRAY_SPLITTER)[1].trim())) { sessionDTO.setPageName((LinMobileConstants.APP_VIEWS[2]).split(LinMobileConstants.ARRAY_SPLITTER)[1].trim()); return true; } } catch (Exception e) { log.severe("Exception in execution of isAuthorised : " + e.getMessage()); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String _buildpage() throws Exception{\n_buildtheme();\r\n //BA.debugLineNum = 103;BA.debugLine=\"page.InitializeWithTheme(Name, \\\"/ws/\\\" & ABMShared\";\r\n_page.InitializeWithTheme(_name,\"/ws/\"+_abmshared._appname+\"/\"+_name,__c.False,_abmshared._sessionmaxinactiveintervalseconds,_theme);\r\n //BA.debugLineNum = 104;BA.debugLine=\"page.ShowLoader=True\";\r\n_page.setShowLoader(__c.True);\r\n //BA.debugLineNum = 105;BA.debugLine=\"page.ShowLoaderType=ABM.LOADER_TYPE_MANUAL ' NEW\";\r\n_page.setShowLoaderType(_abm.LOADER_TYPE_MANUAL);\r\n //BA.debugLineNum = 106;BA.debugLine=\"page.PageTitle = \\\"ABMCombo\\\"\";\r\n_page.PageTitle = \"ABMCombo\";\r\n //BA.debugLineNum = 107;BA.debugLine=\"page.PageDescription = \\\"The combo component \\\"\";\r\n_page.PageDescription = \"The combo component \";\r\n //BA.debugLineNum = 108;BA.debugLine=\"page.PageHTMLName = \\\"abmaterial-combo.html\\\"\";\r\n_page.PageHTMLName = \"abmaterial-combo.html\";\r\n //BA.debugLineNum = 109;BA.debugLine=\"page.PageKeywords = \\\"ABMaterial, material design,\";\r\n_page.PageKeywords = \"ABMaterial, material design, B4X, B4J, SEO, framework, search engine optimization\";\r\n //BA.debugLineNum = 110;BA.debugLine=\"page.PageSiteMapPriority = \\\"0.50\\\"\";\r\n_page.PageSiteMapPriority = \"0.50\";\r\n //BA.debugLineNum = 111;BA.debugLine=\"page.PageSiteMapFrequency = ABM.SITEMAP_FREQ_MONT\";\r\n_page.PageSiteMapFrequency = _abm.SITEMAP_FREQ_MONTHLY;\r\n //BA.debugLineNum = 112;BA.debugLine=\"page.UseGoogleAnalytics(ABMShared.TrackingID, Nul\";\r\n_page.UseGoogleAnalytics(_abmshared._trackingid,(anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(__c.Null)));\r\n //BA.debugLineNum = 114;BA.debugLine=\"ABMShared.BuildNavigationBar(page, \\\"ABMCombo\\\", \\\".\";\r\n_abmshared._buildnavigationbar(_page,\"ABMCombo\",\"../images/logo.png\",\"\",\"Controls\",\"ABMCombo\");\r\n //BA.debugLineNum = 117;BA.debugLine=\"page.AddRows(5,True, \\\"\\\").AddCells12(1,\\\"\\\")\";\r\n_page.AddRows((int) (5),__c.True,\"\").AddCells12((int) (1),\"\");\r\n //BA.debugLineNum = 118;BA.debugLine=\"page.BuildGrid 'IMPORTANT once you loaded the com\";\r\n_page.BuildGrid();\r\n //BA.debugLineNum = 123;BA.debugLine=\"ABMShared.BuildFooter(page)\";\r\n_abmshared._buildfooter(_page);\r\n //BA.debugLineNum = 124;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "public void initialise() {\n\r\n for (String myview : Config.appStruct) {\r\n int i = 0;\r\n String[] str = myview.split(\":\");\r\n if (str[0].trim().equals(\"MyAppList\")) {\r\n i++;\r\n addAppList(str[1].trim(), str[2].trim(), str[3].trim(), i);\r\n\r\n } else if (str[0].trim().equals(\"MyBanner\")) {\r\n i++;\r\n addBanner(str[1].trim(), i);\r\n\r\n } else if (str[0].trim().equals(\"MyCollection\")) {\r\n i++;\r\n addCollection(str[1].trim(), str[2].trim(), i);\r\n\r\n }\r\n else if(str[0].trim().equals(\"VeryBestApps\")){\r\n\r\n i++;\r\n addVeryBestApps(str[1].trim(), i);\r\n\r\n }\r\n\r\n }\r\n }", "public boolean setAnalyticsFromString(java.lang.String r9) {\n /*\n r8 = this;\n r5 = 0;\n r4 = 1;\n r6 = \"0\";\n r6 = r6.equals(r9);\n if (r6 == 0) goto L_0x0015;\n L_0x000a:\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n L_0x0014:\n return r4;\n L_0x0015:\n r3 = new java.util.HashMap;\n r3.<init>();\n r6 = \"-\";\n r2 = r9.split(r6);\n r0 = 0;\n L_0x0021:\n r6 = r2.length;\n if (r0 >= r6) goto L_0x0058;\n L_0x0024:\n r6 = r2[r0];\n r7 = \"\\\\+\";\n r1 = r6.split(r7);\n r6 = r1.length;\n r7 = 2;\n if (r6 != r7) goto L_0x0058;\n L_0x0030:\n r6 = r1[r5];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x003a:\n r6 = r1[r5];\n r7 = \"[a-zA-Z][a-zA-Z0-9]*\";\n r6 = r6.matches(r7);\n if (r6 == 0) goto L_0x0058;\n L_0x0044:\n r6 = r1[r4];\n r7 = \"\";\n r6 = r6.equals(r7);\n if (r6 != 0) goto L_0x0058;\n L_0x004e:\n r6 = r1[r4];\n r7 = \"[0-9a-zA-Z]*\";\n r6 = r6.matches(r7);\n if (r6 != 0) goto L_0x006b;\n L_0x0058:\n r6 = r2.length;\n if (r0 != r6) goto L_0x0075;\n L_0x005b:\n r5 = r8.analyticsTechErrorsMap;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.clear();\n r5 = r8.analyticsArray;\n r5.putAll(r3);\n goto L_0x0014;\n L_0x006b:\n r6 = r1[r5];\n r7 = r1[r4];\n r3.put(r6, r7);\n r0 = r0 + 1;\n goto L_0x0021;\n L_0x0075:\n r4 = r5;\n goto L_0x0014;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.avg.toolkit.license.OcmCampaigns.setAnalyticsFromString(java.lang.String):boolean\");\n }", "public interface ApplicationMetadata {\n float MAP_ZOOM_VALUE = 16.0f;\n String DEVICE_ID = \"device_id\";\n String DEVICE_TOKEN = \"device_token\";\n String APP_LANGUAGE = \"app_language\";\n int SUCCESS_RESPONSE_STATUS = 0;\n int FAILURE_RESPONSE_STATUS = 1;\n\n String RESPONSE_MSG = \"response_msg\";\n String RESPONSE_DATA = \"response_data\";\n String USER_NAME = \"name\";\n String USER_EMAIL = \"email\";\n String USER_MOBILE = \"mobile\";\n String USER_IMAGE = \"profile_pic\";\n String LOGIN = \"login\";\n String USER_ID = \"customer_id\";\n String BOOKING_STATUS = \"booking_status\";\n String VEHICLE_TYPE = \"type\";\n String VEHICLE_MESSAGE = \"msg\";\n String SESSION_TOKEN = \"session_token\";\n String LOGOUT = \"logout\";\n String LATITUDE = \"latitude\";\n String LONGITUDE = \"longitude\";\n\n\n String ADDRESS = \"address\";\n String HOURLY_CHARGES = \"hourly_charges\";\n String PASSWORD = \"password\";\n String PERSONAL_DESC = \"personal_desc\";\n String SERVICE_TYPE = \"service_type\";\n String STRIPE_ID = \"stripe_id\";\n String STRIPE_TOKEN = \"stripe_token\";\n String USER_LATITUDE = \"user_latitude\";\n String USER_LONGITUDE = \"user_longitude\";\n String USER_ADD_DATE = \"user_add_date\";\n String USER_MOD_DATE = \"user_mod_date\";\n String IMAGE_BASE_URL = \"http://fairrepair.onsisdev.info/public/media/mechanic/\";\n String CUSTOMER_IMAGE_BASE_URL = \"http://fairrepair.onsisdev.info/public/media/customer/\";\n String LANG_ENGLISH = \"en\";\n String LANGUAGE = \"language\" ;\n String PAGE_IDENTIFIER = \"page_identifier\";\n String ABOUT_MECH = \"aboutusmechanic\";\n String TNC_MECH = \"termofservicesmechanic\";\n String PRIVACY_POLICY_MECH = \"privecypolicymechanic\";\n String TEST_SELECT_TYPES = \"test_select_type\";\n String AVAILABLE = \"1\";\n String NOT_AVAILABLE = \"0\";\n\n String APP_STATUS = \"app_status\";\n String NOTIFICATION_DATA = \"notification_data\";\n\n String REQUEST_ID = \"request_id\";\n String APP_CUSTOMER_ID = \"app_customer_id\";\n String OFFER_PRICE = \"offer_price\";\n int NOTIFICATION_NEW_OFFER = 1;\n int NOTIFICATION_REQ_ACCEPTED = 2;\n int NOTIFICATION_OFFER_ACCEPTED = 3;\n int NOTIFICATION_REQ_COMPLETED = 5;\n String NOTIFICATION_TYPE = \"notification_type\";\n String BILLING_PRICE = \"billing_price\";\n String SERVICE_DETAIL = \"service_detail\";\n String APP_PROVIDER_ID = \"app_provider_id\";\n String CUSTOMER_ID = \"customer_id\";\n String MESSAGE = \"message\";\n String LOCATION = \"location\";\n String SERVICE_CHARGE = \"service_charge\";\n String TOTAL_PRICE = \"total_price\";\n String SERVICE_CHARGE_PRICE = \"service_charge_price\";\n int NOTIFICATION_REQ_CANCELED = 4;\n int SHOW_ALL_MECH = 100;\n int SHOW_MECH_REQUEST = 110;\n int PIC_CROP_REQUEST_ID = 232;\n @Nullable\n String RATE_REVIEW = \"rate_review\";\n}", "void displayUrl(java.lang.String r8) {\n /*\n r7 = this;\n r4 = \"AirpushSDK\";\n r5 = \"Pushing Web and App Ads.....\";\n android.util.Log.i(r4, r5);\n r3 = \"com.android.browser\";\n r0 = \"com.android.browser.BrowserActivity\";\n r2 = new android.content.Intent;\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r4 = \"android.intent.action.VIEW\";\n r5 = android.net.Uri.parse(r8);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r2.<init>(r4, r5);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r4 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r2.setFlags(r4);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r4 = 8388608; // 0x800000 float:1.17549435E-38 double:4.144523E-317;\n r2.addFlags(r4);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r4 = \"android.intent.category.LAUNCHER\";\n r2.addCategory(r4);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r2.setClassName(r3, r0);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r4 = r7.context;\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r4.startActivity(r2);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n L_0x002d:\n return;\n L_0x002e:\n r1 = move-exception;\n r4 = \"AirpushSDK\";\n r5 = \"Browser not found.\";\n android.util.Log.i(r4, r5);\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r4 = new android.content.Intent;\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r5 = \"android.intent.action.VIEW\";\n r6 = android.net.Uri.parse(r8);\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r4.<init>(r5, r6);\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r7.intent = r4;\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r4 = r7.intent;\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r5 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r4.setFlags(r5);\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r4 = r7.intent;\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r5 = 8388608; // 0x800000 float:1.17549435E-38 double:4.144523E-317;\n r4.addFlags(r5);\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r4 = r7.context;\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r5 = r7.intent;\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r4.startActivity(r5);\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n goto L_0x002d;\n L_0x0059:\n r1 = move-exception;\n r4 = \"AirpushSDK\";\n r5 = new java.lang.StringBuilder;\n r5.<init>();\n r6 = \"Error whlie displaying push ad......: \";\n r5 = r5.append(r6);\n r6 = r1.getMessage();\n r5 = r5.append(r6);\n r5 = r5.toString();\n android.util.Log.e(r4, r5);\n goto L_0x002d;\n L_0x0077:\n r1 = move-exception;\n r1.printStackTrace();\n goto L_0x002d;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.srortn.bsiubt135868.HandleClicks.displayUrl(java.lang.String):void\");\n }", "private static java.lang.String[] a(android.content.Context r3, com.xiaomi.xmpush.thrift.u r4) {\n /*\n java.lang.String r0 = r4.h()\n java.lang.String r1 = r4.j()\n java.util.Map r4 = r4.s()\n if (r4 == 0) goto L_0x0073\n android.content.res.Resources r2 = r3.getResources()\n android.util.DisplayMetrics r2 = r2.getDisplayMetrics()\n int r2 = r2.widthPixels\n android.content.res.Resources r3 = r3.getResources()\n android.util.DisplayMetrics r3 = r3.getDisplayMetrics()\n float r3 = r3.density\n float r2 = (float) r2\n float r2 = r2 / r3\n r3 = 1056964608(0x3f000000, float:0.5)\n float r2 = r2 + r3\n java.lang.Float r3 = java.lang.Float.valueOf(r2)\n int r3 = r3.intValue()\n r2 = 320(0x140, float:4.48E-43)\n if (r3 > r2) goto L_0x0051\n java.lang.String r3 = \"title_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0042\n r0 = r3\n L_0x0042:\n java.lang.String r3 = \"description_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n goto L_0x0072\n L_0x0051:\n r2 = 360(0x168, float:5.04E-43)\n if (r3 <= r2) goto L_0x0073\n java.lang.String r3 = \"title_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0064\n r0 = r3\n L_0x0064:\n java.lang.String r3 = \"description_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n L_0x0072:\n r1 = r3\n L_0x0073:\n r3 = 2\n java.lang.String[] r3 = new java.lang.String[r3]\n r4 = 0\n r3[r4] = r0\n r4 = 1\n r3[r4] = r1\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.xiaomi.push.service.ah.a(android.content.Context, com.xiaomi.xmpush.thrift.u):java.lang.String[]\");\n }", "@NonNull\n/* */ public static List<Integer> getPageList(String info) {\n/* 762 */ List<Integer> pageList = new ArrayList<>();\n/* */ \n/* 764 */ if (!Utils.isNullOrEmpty(info)) {\n/* */ try {\n/* 766 */ JSONObject jsonObj = new JSONObject(info);\n/* 767 */ if (jsonObj.has(\"Pages\")) {\n/* 768 */ String allPages = jsonObj.getString(\"Pages\");\n/* 769 */ if (!Utils.isNullOrEmpty(allPages)) {\n/* 770 */ String[] pages = allPages.split(\" \");\n/* 771 */ for (String page : pages) {\n/* 772 */ pageList.add(Integer.valueOf(page));\n/* */ }\n/* */ } \n/* */ } \n/* 776 */ } catch (Exception e) {\n/* 777 */ AnalyticsHandlerAdapter.getInstance().sendException(e);\n/* */ } \n/* */ }\n/* */ \n/* 781 */ return pageList;\n/* */ }", "public interface Constants {\n String LIEPIN_HOST =\"https://h.liepin.com\";\n String SEARCH_URL =\"https://h.liepin.com/cvsearch/soResume/\";\n //String WORK_EXPERIENCE_URL =\"https://h.liepin.com/resume/showresumedetail/showresumeworkexps/\";\n String WORK_EXPERIENCE_URL =\"https://h.liepin.com/resume/showresumedetail/showworkexps/\";\n String ANCHOR_TAG =\"<div class=\\\"resume-work\\\" id=\\\"workexp_anchor\\\">\";\n String GET_METHOD =\"GET\";\n String POST_METHOD =\"POST\";\n}", "public interface ConstantsKey {\n// Values\n String TEXT_FONT_STYLE_NAME=\"WorkSans_Regular.ttf\";\n// Urls\n String BASE_URL=\"http://test.code-apex.com/codeapex_project/index.php/api/user/\";\n String BASEURL =\"baseurl\" ;\n// Keys\n}", "public interface Url {\n String BASE_URL = \"http://v3.wufazhuce.com:8000/api/\";\n\n //获取最新 idlist(返回的字段用于下个接口获取某一天的onelist,一共10个返回值,也就是10天的数据)\n String ID_LIST = \"onelist/idlist/\";\n //获取某天的 onelist\n String ONE_LIST = \"onelist/\";\n\n //阅读列表\n String READ_LIST = \"channel/reading/more/0\";\n //音乐列表\n String MUSIC_LIST = \"channel/music/more/0\";\n //影视列表\n String MOVIE_LIST = \"channel/movie/more/0\";\n\n //阅读相关详情\n String READ_DETAIL = \"essay/\";\n //阅读详情(问答)\n String READ_QUESTION = \"question/itemId\";\n //音乐详情\n String MUSIC_DETAIL = \"music/detail/\";\n //影视详情\n String MOVIE_DETAIL = \"movie/itemId/story/1/0\";\n //影视详情(图片和视频)\n String MOVIE_DETAIL_PIC = \"movie/detail/itemId\";\n\n //阅读评论\n String READ_COMMENT = \"comment/praiseandtime/essay/\";\n //音乐评论\n String MUSIC_COMMENT = \"comment/praiseandtime/music/\";\n //影视评论\n String MOVIE_COMMENT = \"comment/praiseandtime/movie/itemId/0\";\n\n //http://v3.wufazhuce.com:8000/api/praise/add?channel=update&source_id=9598&source=summary&version=4.0.7&\n //uuid=ffffffff-a90e-706a-63f7-ccf973aae5ee&platform=android\n\n // 点赞\n String MUSIC_PRAISE = \"praise/add\";\n}", "public interface SSOURLDefineList {\r\n String SYNC_CHANGES_URL = \"/servlet/com.sino.ams.synchronize.servlet.AssetsUpdateServlet?action=\" + WebActionConstant.QUERY_ACTION;//资产直接变动同步\r\n String SYNC_TRANS_IN_COMP_URL = \"/servlet/com.sino.ams.synchronize.servlet.AssetsCommitServlet?transferType=BTW_COMP&action=\" + WebActionConstant.QUERY_ACTION;// 公司间调拨同步\r\n String SYNC_TRANS_RESULT_URL = \"/servlet/com.sino.ams.synchronize.servlet.AssetsCommitServlet?transferType=P&action=\" + WebActionConstant.QUERY_ACTION;// 调拨结果直接同步\r\n String ASSETS_CONFIRM_INFO_URL = \"/servlet/com.sino.ams.newasset.servlet.AmsAssetsConfirmHeaderServlet?action=\" + WebActionConstant.QUERY_ACTION;// 资产确认信息\r\n}", "String pageDetails();", "private void initializeStrings(Activity activity) {\n OBSERVATORY_URL = activity.getString(R.string.live_address);\n API_KEY = activity.getString(R.string.api_key);\n VARIABLE_QUERY_FORMAT = activity.getString(R.string.variable_format);\n BUFFER_QUERY_FORMAT = activity.getString(R.string.buffer_query);\n TWO_VARIABLE_FORMAT = activity.getString(R.string.two_variables_format);\n\n IS_ACTIVE_KEY = activity.getString(R.string.json_is_active_key);\n DATA_KEY = activity.getString(R.string.json_data_key);\n GEOM_KEY = activity.getString(R.string.json_geom_key);\n COORDINATES_KEY = activity.getString(R.string.json_coordinates_key);\n\n PM10_VARIABLE = activity.getString(R.string.pm10_variable);\n TEMP_VARIABLE = activity.getString(R.string.temperature_variable);\n HUMID_VARIABLE = activity.getString(R.string.humidity_variable);\n MEASUREMENTS_LIMIT_UPPER = \n activity.getResources().getInteger(R.integer.measurement_limit_upper);\n\n NO_JSON_OBJECT_FOUND_LOG_TITLE =\n activity.getString(R.string.no_json_object_found_log_title);\n NO_JSON_OBJECT_FOUND_LOG_CONTENTS =\n activity.getString(R.string.no_json_object_found_log_contents);\n }", "@Override\n\n public void onClick(View v) {\n String test;\n String content = \"\";\n test = postURL(content,\"http://172.20.10.5:5000/showApp\");\n\n String[] split_line = test.split(\",\");\n int size = split_line.length;\n if(size>=4){\n Log.d(\"ffff\",test);\n aNumPeoText.setText(\"Section A = \"+split_line[0].toString());\n bNumPeoText.setText(\"Section B = \"+split_line[1].toString());\n cNumPeoText.setText(\"Section C = \"+split_line[2].toString());\n dNumPeoText.setText(\"Section D = \"+split_line[3].toString());\n }\n }", "public interface Constant {\n\n enum Column {\n BEAUTY(\"BEAUTY\", \"福利\", R.string.beauty, R.id.nav_beauty),\n ANDROID(\"ANDROID\", \"Android\", R.string.android, R.id.nav_android),\n IOS(\"IOS\", \"iOS\", R.string.ios, R.id.nav_ios),\n JS(\"JAVASCRIPT\", \"前端\", R.string.js, R.id.nav_web),\n APP(\"APP\", \"App\", R.string.app, R.id.nav_app),\n EXCITED(\"EXCITED\", \"瞎推荐\", R.string.excited, R.id.nav_excited),\n OTHERS(\"OTHERS\", \"拓展资源\", R.string.others, R.id.nav_others),\n FAVORITE(\"FAVORITE\", \"Collections\", R.string.favorite, R.id.nav_favorite);\n //SEARCH_RESULTS(\"SEARCH_RESULTS\", \"search_results\", R.string.nav_search, 0);\n\n private final String id;\n private final String apiName;\n private final int strId;\n private final int resId;\n\n Column(String id, String apiName, int strId, int resId) {\n this.id = id;\n this.apiName = apiName;\n this.strId = strId;\n this.resId = resId;\n }\n\n @Override\n public String toString() {\n return id;\n }\n\n public String getId() {\n return id;\n }\n\n public String getApiName() {\n return apiName;\n }\n\n public int getStrId() {\n return strId;\n }\n\n public int getResId() {\n return resId;\n }\n }\n\n}", "public static int getHomeTabIndexByPageName(java.lang.String r7) {\n /*\n boolean r0 = android.text.TextUtils.isEmpty(r7)\n r1 = 0\n if (r0 == 0) goto L_0x0008\n return r1\n L_0x0008:\n boolean r0 = com.alimama.moon.ui.BottomNavActivity.sIsSwitchMidH5Tab\n r2 = -1\n r3 = 4\n r4 = 3\n r5 = 2\n r6 = 1\n if (r0 == 0) goto L_0x0050\n int r0 = r7.hashCode()\n switch(r0) {\n case -1074341483: goto L_0x0041;\n case -934521548: goto L_0x0037;\n case -121207376: goto L_0x002d;\n case 3351635: goto L_0x0023;\n case 110545371: goto L_0x0019;\n default: goto L_0x0018;\n }\n L_0x0018:\n goto L_0x004a\n L_0x0019:\n java.lang.String r0 = \"tools\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x004a\n r2 = 1\n goto L_0x004a\n L_0x0023:\n java.lang.String r0 = \"mine\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x004a\n r2 = 4\n goto L_0x004a\n L_0x002d:\n java.lang.String r0 = \"discovery\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x004a\n r2 = 0\n goto L_0x004a\n L_0x0037:\n java.lang.String r0 = \"report\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x004a\n r2 = 3\n goto L_0x004a\n L_0x0041:\n java.lang.String r0 = \"middle\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x004a\n r2 = 2\n L_0x004a:\n switch(r2) {\n case 0: goto L_0x0092;\n case 1: goto L_0x0091;\n case 2: goto L_0x008f;\n case 3: goto L_0x008d;\n case 4: goto L_0x004e;\n default: goto L_0x004d;\n }\n L_0x004d:\n goto L_0x0092\n L_0x004e:\n r1 = 4\n goto L_0x0092\n L_0x0050:\n int r0 = r7.hashCode()\n switch(r0) {\n case -1074341483: goto L_0x0080;\n case -934521548: goto L_0x0076;\n case -121207376: goto L_0x006c;\n case 3351635: goto L_0x0062;\n case 110545371: goto L_0x0058;\n default: goto L_0x0057;\n }\n L_0x0057:\n goto L_0x0089\n L_0x0058:\n java.lang.String r0 = \"tools\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x0089\n r2 = 1\n goto L_0x0089\n L_0x0062:\n java.lang.String r0 = \"mine\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x0089\n r2 = 4\n goto L_0x0089\n L_0x006c:\n java.lang.String r0 = \"discovery\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x0089\n r2 = 0\n goto L_0x0089\n L_0x0076:\n java.lang.String r0 = \"report\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x0089\n r2 = 3\n goto L_0x0089\n L_0x0080:\n java.lang.String r0 = \"middle\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x0089\n r2 = 2\n L_0x0089:\n switch(r2) {\n case 0: goto L_0x0092;\n case 1: goto L_0x0091;\n case 2: goto L_0x0092;\n case 3: goto L_0x008f;\n case 4: goto L_0x008d;\n default: goto L_0x008c;\n }\n L_0x008c:\n goto L_0x0092\n L_0x008d:\n r1 = 3\n goto L_0x0092\n L_0x008f:\n r1 = 2\n goto L_0x0092\n L_0x0091:\n r1 = 1\n L_0x0092:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.alimama.moon.features.home.HomeUtil.getHomeTabIndexByPageName(java.lang.String):int\");\n }", "public interface PageFields {\n String ATT_PAGE = \"page\";\n String ATT_PAGELIMIT = \"limit\";\n String ATT_PAGENUMBER = \"pageNb\";\n String ATT_SEARCH = \"search\";\n String ATT_DELETE = \"selection\";\n String ATT_COL = \"col\";\n String ATT_ORDER = \"order\";\n\n default String getAttPage() {\n return ATT_PAGE;\n }\n\n default String getAttPageLimit() {\n return ATT_PAGELIMIT;\n }\n\n default String getAttPageNumber() {\n return ATT_PAGENUMBER;\n }\n\n default String getAttSearch() {\n return ATT_SEARCH;\n }\n\n default String getAttDelete() {\n return ATT_DELETE;\n }\n\n default String getAttCol() {\n return ATT_COL;\n }\n\n default String getAttOrder() {\n return ATT_ORDER;\n }\n}", "public interface AppConstant {\n\n String BASE_URL = \"https://www.wanandroid.com\";\n\n\n String WEB_SITE_LOGIN = \"user/login\";\n String WEB_SITE_REGISTER = \"user/register\";\n String WEB_SITE_COLLECTIONS = \"lg/collect\";\n String WEB_SITE_UNCOLLECTIONS = \"lg/uncollect\";\n String WEB_SITE_ARTICLE = \"article\";\n\n\n public interface LoginParamsKey {\n String SET_COOKIE_KEY = \"set-cookie\";\n String SET_COOKIE_NAME = \"Cookie\";\n String USER_NAME = \"username\";\n String PASSWORD = \"password\";\n String REPASSWORD = \"repassword\";\n }\n}", "public interface ApplicationConstants {\n\n // Gimnazjum Chocianow\n static final String SCHOOL_SERVER_1 = \"http://gimchocianow.pl\";\n\n // ZS Chocianow\n static final String SCHOOL_SERVER_2 = \"http://zschocianow.pl\";\n\n\n // Php Application URL to store Reg ID created\n static final String APP_SERVER_URL_INSERT_USER = \"/replacement_gcm/insertuser.php\";\n static final String APP_SERVER_URL_REMOVE_USER = \"/replacement_gcm/removeuser.php\";\n\n // Php Application URL to store Data Set of User\n static final String APP_SERVER_URL_INSERT_USER_DATA_IDS = \"/replacement_gcm/insertuserset.php\";\n static final String APP_SERVER_URL_INSERT_USER_MODULES = \"/replacement_gcm/insertusermodules.php\";\n\n // Php Application URL schedule\n static final String APP_SERVER_URL_SCHEDULE = \"/plan/\";\n\n // Php Application URL repl data\n static final String APP_SERVER_URL_REPL_DATA = \"/json/replacements-data.php\";\n\n // Php Application URL repl\n static final String APP_SERVER_URL_REPL = \"/json/replacements.php?date=\";\n\n // Php Application URL lesson plan\n static final String APP_SERVER_URL_LESSON_PLAN = \"/json/lessonplan.php\";\n\n\n\n\n // Google Project Number\n static final String GOOGLE_PROJ_ID = \"670012122702\";\n static final String MSG_KEY = \"m\";\n\n //Schedule list constants\n static final int ROUTE_HOME = -786342765;\n static final int ROUTE_LEVEL_0 = -218312;\n\n //Intent constants\n static final String INTENT_INSTITUTION_ID = \"INTENT_INSTITUTION_ID\";\n static final String INTENT_PAGE_NUMBER = \"INTENT_PAGE_NUMBER\";\n static final String INTENT_NEWS_ID = \"INTENT_NEWS_ID\";\n\n static final String INTENT_LESSONPLAN_URL = \"INTENT_LESSONPLAN_URL\";\n static final String INTENT_LESSONPLAN_NAME = \"INTENT_LESSONPLAN_NAME\";\n\n}", "public boolean _paymentpage_overrideurl(String _url) throws Exception{\n__c.LogImpl(\"21114113\",_url,0);\n //BA.debugLineNum = 172;BA.debugLine=\"If Url.Contains(\\\"api.com\\\") Then\";\nif (_url.contains(\"api.com\")) { \n };\n //BA.debugLineNum = 175;BA.debugLine=\"Return True\";\nif (true) return __c.True;\n //BA.debugLineNum = 176;BA.debugLine=\"End Sub\";\nreturn false;\n}", "public interface Constants {\n String NA = \"NA\";\n String ARG_USERS=\"user\";\n String SENDER_ID =\"fro9SbG2Eic:APA91bHzUBA35xjcDP7TXu5uG3JetLMENHfJpfKnRjS02-y8W4n1ZonIn9HYNAwjV8F3uiOAV2gXparORINEEps3t0kCZHI2rutU33DaUlDeGJYrKDK_fG9HCdXAq1gNHtfmfqHGDBve\" ;\n}", "public String _page_signedoffsocialnetwork(String _network,String _extra) throws Exception{\n_page.ws.getSession().SetAttribute(\"authType\",(Object)(\"\"));\r\n //BA.debugLineNum = 265;BA.debugLine=\"page.ws.Session.SetAttribute(\\\"authName\\\", \\\"\\\")\";\r\n_page.ws.getSession().SetAttribute(\"authName\",(Object)(\"\"));\r\n //BA.debugLineNum = 266;BA.debugLine=\"page.ws.Session.SetAttribute(\\\"IsAuthorized\\\", \\\"\\\")\";\r\n_page.ws.getSession().SetAttribute(\"IsAuthorized\",(Object)(\"\"));\r\n //BA.debugLineNum = 267;BA.debugLine=\"ABMShared.NavigateToPage(ws, ABMPageId, \\\"../\\\")\";\r\n_abmshared._navigatetopage(_ws,_abmpageid,\"../\");\r\n //BA.debugLineNum = 268;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "public interface WebRequestConstants extends ServerConstant {\n\n String CONSTANT_APP_UPDATE = \"APP_UPDATE\";\n\n String HEADER_KEY_DEVICE_TYPE = \"devicetype\";\n String HEADER_KEY_DEVICE_INFO = \"deviceinfo\";\n String HEADER_KEY_APP_INFO = \"appinfo\";\n String HEADER_KEY_IN_PLAY = \"inplay\";\n String DEVICE_TYPE_ANDROID = \"A\";\n\n String Loginauthcontroller = BASE + \"Loginauthcontroller/\";\n String Apicontroller = BASE + \"Apicontroller/\";\n String Apiusercontroller = BASE + \"Apiusercontroller/\";\n String Apiadmincontroller = BASE + \"Apiadmincontroller/\";\n String Apimobilecontroller = BASE + \"Apimobilecontroller/\";\n String Betentrycntr = BASE + \"Betentrycntr/\";\n String Geteventcntr = BASE + \"Geteventcntr/\";\n String Createdealercontroller = BASE + \"Createdealercontroller/\";\n String Chipscntrl = BASE + \"Chipscntrl/\";\n\n\n String URL_CHECK_APP_VERSION = Apimobilecontroller + \"chkAppVersion\";\n String URL_APK_DOWNLOAD = BASE + \"uploads/apk/%s\";\n\n String URL_LOAD_CAPTCHA = Loginauthcontroller + \"loadCaptcha\";\n int ID_LOAD_CAPTCHA = 1;\n\n String URL_LOGIN = Loginauthcontroller + \"chkLoginMobileUser\";\n int ID_LOGIN = 2;\n\n String URL_LOGIN_CHECK = Loginauthcontroller + \"is_logged_in_check\";\n int ID_LOGIN_CHECK = 3;\n\n String URL_USER_MATCH_LIST = Apiusercontroller + \"getUserFavouriteMatchLst/%s\";\n int ID_USER_MATCH_LIST = 4;\n\n String URL_ODDS_BY_MARKET_IDS = \"http://demo.com/get_odds_by_market_ids.php?market_id=%s\"; // change here http://demo.com/ in your url\n int ID_ODDS_BY_MARKET_IDS = 5;\n\n\n String URL_MARKET_LISTING = Apicontroller + \"getMarketListing/%s\";//matchid\n int ID_MARKET_LISTING = 6;\n\n String URL_CHANGE_PASSWORD = Createdealercontroller + \"changePassword\";\n int ID_CHANGE_PASSWORD = 7;\n\n String URL_MARKET_WIN_LOSS = Apicontroller + \"market_win_loss\";\n int ID_MARKET_WIN_LOSS = 8;\n\n String URL_GET_MATCH_BETFAIR_SESSION = \"http://demo.com/get_match_betfair_session.php?market_id=%s\"; // change here http://demo.com/ in your url\n int ID_MATCH_BETFAIR_SESSION = 9;\n\n String URL_GET_MATCH_INDIAN_SESSION = Apicontroller + \"matchLstIndianSession/%s/%s\"; //matchId marketId\n int ID_MATCH_INDIAN_SESSION = 10;\n\n String URL_GET_MATCH_ADMIN_SESSION = Apicontroller + \"matchLstAdminSession/%s/%s\"; //matchId marketId\n int ID_MATCH_ADMIN_SESSION = 11;\n\n String URL_DISPLAY_MSG_HEADER = Betentrycntr + \"DisplayMsgOnHeader\";\n int ID_DISPLAY_MSG_HEADER = 12;\n\n String URL_BALANCE = Chipscntrl + \"getChipDataById/%s\";// userId\n int ID_BALANCE = 13;\n\n String URL_GET_MATCH_SCORE = \"http://demo.com/api/match-center/stats/%s/%s\";// sport_id, match_id // change here http://demo.com/ in your url\n String URL_GET_MATCH_SCORE2 = Geteventcntr + \"GetScoreApi/%s\";// match_id\n int ID_GET_MATCH_SCORE = 14;\n\n String URL_GET_BET_DATA = Betentrycntr + \"GatBetData/%s/%s/%s/%s\";// :match_id\n int ID_GET_BET_DATA = 15;\n\n String URL_PLAY_STORE_APP_VERSION = BASE + \"get_playstore_app_version/%s\";\n\n String URL_ONE_PAGE_REPORT = Apiadmincontroller + \"one_page_report\";\n int ID_ONE_PAGE_REPORT = 16;\n\n String URL_CHIP_LEGER = Betentrycntr + \"Chip_leger/%s/%s/%s/%s/%s\";//user_id, user_type, type, from_date, to_date\n int ID_CHIP_LEGER = 17;\n\n String URL_PROFIT_LOSS_BY_MATCH = Betentrycntr + \"profitLossByMatchId\";\n String KEY_PROFIT_LOSS_BY_MATCH = \"profitLossByMatchId\";\n int ID_PROFIT_LOSS_BY_MATCH = 18;\n\n String URL_BET_HISTORY_PL = Betentrycntr + \"BetHistoryPL/%s/%s/%s/%s\";//user_id/matchId/page_no/fancyId\n int ID_URL_BET_HISTORY_PL = 19;\n\n String URL_GET_SERIES_LIST = Geteventcntr + \"getSeriesLst/%s\";// match type\n int ID_GET_SERIES_LIST = 20;\n\n String URL_MATCH_BY_SPORT_ID = Geteventcntr + \"getInPlayMatchBySportId/%s/%s\";// sport_id/user_id\n int ID_MATCH_BY_SPORT_ID = 21;\n\n String URL_GET_STAKE_SETTING = Apiusercontroller + \"get_stake_setting\";\n int ID_GET_STAKE_SETTING = 22;\n\n String URL_ONE_CLICK_STAKE_SETTING = Apiusercontroller + \"one_click_stake_setting\";\n String KEY_ONE_CLICK_STAKE_SETTING = \"one_click_stake_setting\";\n int ID_ONE_CLICK_STAKE_SETTING = 23;\n\n String URL_STAKE_SETTING = Apiusercontroller + \"stake_setting\";\n String KEY_STAKE_SETTING = \"stake_setting\";\n int ID_STAKE_SETTING = 24;\n\n String URL_SERIES_WITH_MATCH_DATA = Geteventcntr + \"getSeriesWithMatchData/%s/%s/%s\";// sport_id/seriesId/user_id\n int ID_SERIES_WITH_MATCH_DATA = 25;\n String KEY_SERIES_WITH_MATCH_DATA = \"getSeriesWithMatchData\";\n\n String URL_SAVE_MULTIPLE_BETS = Apiusercontroller + \"save_multiple_bets\";\n int ID_SAVE_MULTIPLE_BETS = 26;\n\n String URL_MATCH_AUTOCOMPLETE = Apiusercontroller + \"match_autocomplete\";\n int ID_MATCH_AUTOCOMPLETE = 27;\n\n String URL_FAVOURITE_MATCH = Apiusercontroller + \"getFavouriteMatchLst/%s\";\n int ID_FAVOURITE_MATCH = 28;\n\n String URL_FAVOURITE = Apiusercontroller + \"favourite\";\n String KEY_MATCHDETAIL = \"match_detail\";\n String KEY_FAVOURITE = \"favourite\";\n int ID_FAVOURITE = 29;\n\n String URL_UNFAVOURITE = Apiusercontroller + \"unfavourite\";\n String KEY_UNFAVOURITE = \"unfavourite\";\n int ID_UNFAVOURITE = 30;\n\n String URL_CONFIRM_BET = Apiusercontroller + \"confirm_bet\";\n int ID_CONFIRM_BET = 31;\n\n String URL_DELETE_BETTING = Betentrycntr + \"deleteGetbetting/%s/%s\";//MstCode, UserId\n String KEY_DELETE = \"delete\";\n int ID_DELETE_BETTING = 32;\n\n String URL_GET_SELECTION_NAME = \"http://demo.com/get_selectionname_by_market_ids.php?market_sel_id=%s\";//marketid-selectionid,marketid-selectionid // change here http://demo.com/ in your url\n int ID_GET_SELECTION_NAME = 33;\n\n\n String TV1 = BASE+\"tvnew/tv1.html\";;\n String TV2 = BASE+\"tvnew/tv2.html\";\n\n}", "public String _class_globals() throws Exception{\n_ws = new anywheresoftware.b4j.object.WebSocket();\r\n //BA.debugLineNum = 5;BA.debugLine=\"Public page As ABMPage\";\r\n_page = new com.ab.abmaterial.ABMPage();\r\n //BA.debugLineNum = 7;BA.debugLine=\"Private theme As ABMTheme\";\r\n_theme = new com.ab.abmaterial.ABMTheme();\r\n //BA.debugLineNum = 9;BA.debugLine=\"Private ABM As ABMaterial 'ignore\";\r\n_abm = new com.ab.abmaterial.ABMaterial();\r\n //BA.debugLineNum = 11;BA.debugLine=\"Public Name As String = \\\"CompComboPage\\\"\";\r\n_name = \"CompComboPage\";\r\n //BA.debugLineNum = 13;BA.debugLine=\"Private ABMPageId As String = \\\"\\\"\";\r\n_abmpageid = \"\";\r\n //BA.debugLineNum = 16;BA.debugLine=\"Dim myToastId As Int\";\r\n_mytoastid = 0;\r\n //BA.debugLineNum = 17;BA.debugLine=\"Dim combocounter As Int = 4\";\r\n_combocounter = (int) (4);\r\n //BA.debugLineNum = 18;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "public interface IGetHomeSearchResultView extends IBaseVIew {\n\n\n// sort 排列方式: 0=智能排序,1=距离优先,2=人均\n// cid\n// floor_id\n// pn\n\n\n// \"search_word\":\"澳门\",\n// \"lng\":\"110.31803\",\n// \"lat\":\"20.02833\",\n// \"sort\":\"0\",\n// \"cate_id\":\"\",\n// \"mall_id\":\"\",\n// \"pn\":\"1\"\n\n\n\n String getWord();\n String getJd();\n String getWd();\n String getSortMethod();\n String getMailId();\n String getPage();\n\n String getCId();\n\n\n\n\n void onGetHomeSearchResultBean(HomeSearchResult bean);\n\n}", "public interface IntConstant {\n /***\n * 调用系统相机\n */\n int CAMERA = 10001;\n /***\n * 调用系统相册\n */\n int PICTURE = 10006;\n /***\n * 跳转 视频选择\n */\n int VIDEO = 10007;\n /**\n *跳转到裁剪界面的 裁剪类型 0: 头像 1:个人背景图\n */\n int CLIPIMAGETYPE_ICON = 0 ;\n int CLIPIMAGETYPE_USERMSGBG = 1 ;\n /**\n * 跳转到 commonWebView 界面 链接类型 0:直接展示 1:订单详情界面 2:显示标题带返回按钮,如果不手动设置title默认读取网页中title\n */\n int WEBVIEWURL_TYPE_NORMAL = 0;\n int WEBVIEWURL_TYPE_SHOWTITLE = 1;\n /**\n * 跳转到任务列表界面 展示的页面\n */\n int TO_TASKLIS_SHOW_JOIN = 0;\n int TO_TASKLIS_SHOW_COLLECTION = 1;\n /**\n * 修改个人信息的请求类型\n */\n int MODIFYUSERINFO_ALL = 2;\n int MODIFYUSERINFO_BASEINFO = 0;\n int MODIFYUSERINFO_IMAGEINFO = 1;\n\n /**您的性别不符合要求*/\n int ERROR_SEX = 29191164;\n /**您尚未绑定社交媒体,是否立刻绑定?*/\n int ERROR_UNBIND = 29191165;\n /**您尚未完善资料,是否立刻填写?*/\n int ERROR_UNCOMPLETED = 29191166;\n /**您的微博粉丝数量与商家的要求不符,是否继续报名?*/\n int ERROR_FANS = 29191167;\n\n}", "public final List mo6342a() {\n sre.m36087g(this);\n sre.m36088h(this);\n bngs j = bngx.m109377j();\n Intent putExtra = new Intent().setClassName(\"com.google.android.gms\", \"com.google.android.gms.accountsettings.mg.ui.main.MainActivity\").addCategory(\"android.intent.category.DEFAULT\").putExtra(\"extra.screenId\", 1).putExtra(\"extra.launchApi\", 2);\n if (cbro.m128206j()) {\n putExtra.putExtra(\"extra.callingPackageName\", \"com.google.android.gms\").putExtra(\"extra.utmSource\", \"google-settings-classic\");\n } else {\n putExtra.putExtra(\"extra.callingPackageName\", \"com.google.android.gms.app.settings\");\n }\n GoogleSettingsItem googleSettingsItem = new GoogleSettingsItem(putExtra, 1, getResources().getString(C0126R.string.common_asm_google_account_title), 2);\n googleSettingsItem.f29960f = true;\n googleSettingsItem.f29971q = C0126R.string.accountsettings_google_account_subtitle;\n googleSettingsItem.f29959e = 1;\n j.mo67668c(googleSettingsItem);\n if (cbri.f178135a.mo6606a().mo75276z()) {\n bngs j2 = bngx.m109377j();\n j2.mo67668c(new GoogleSettingsItem(new Intent(\"com.android.settings.action.VIEW_ACCOUNT\").setPackage(\"com.google.android.gms\").putExtra(\"extra.callingPackageName\", \"com.google.android.gms\"), 2, (int) C0126R.string.as_debug_android_me_card, 48));\n j2.mo67668c(new GoogleSettingsItem(new Intent().setClassName(\"com.google.android.gms\", \"com.google.android.gms.accountsettings.ui.PrivacyHubActivityControlsActivity\").addCategory(\"android.intent.category.DEFAULT\").putExtra(\"extra.callingPackageName\", \"com.google.android.gms\"), 2, (int) C0126R.string.as_debug_android_privacy_hub_activty_controls, 51));\n j.mo67666b((Iterable) j2.mo67664a());\n }\n return j.mo67664a();\n }", "public static String _globals() throws Exception{\nmostCurrent._nameet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 17;BA.debugLine=\"Private passET As EditText\";\nmostCurrent._passet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 18;BA.debugLine=\"Private phoneET As EditText\";\nmostCurrent._phoneet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 19;BA.debugLine=\"Private alamatET As EditText\";\nmostCurrent._alamatet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 20;BA.debugLine=\"Private hobiET As EditText\";\nmostCurrent._hobiet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Private takeSelfie As Button\";\nmostCurrent._takeselfie = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Private ImageView1 As ImageView\";\nmostCurrent._imageview1 = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 23;BA.debugLine=\"Private registerButt As Button\";\nmostCurrent._registerbutt = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"Private emailET As EditText\";\nmostCurrent._emailet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 25;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Override\n public void onSuccess(PendingDynamicLinkData pendingDynamicLinkData) {\n Uri deepLink = null;\n if (pendingDynamicLinkData != null) {\n deepLink = pendingDynamicLinkData.getLink();\n\n //String url = deepLink.toString();\n String url = method(deepLink.toString());\n Log.d(\"+++++\", \"++ url deep ++\" + url.charAt(12));\n Log.d(\"+++++\", \"++ url deep ++\" + url);\n //Toast.makeText(HomeActivity.this, \"\"+url.charAt(13), Toast.LENGTH_SHORT).show();\n if (url.charAt(12) == 'm') {\n if (url != null) {\n DescrptedFragment descrptedFragment = new DescrptedFragment();\n Bundle bundle = new Bundle();\n descrptedFragment.setArguments(bundle);\n bundle.putString(\"deeplink\", url.toString());\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.framelayout, descrptedFragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }\n } else {\n\n if (url.charAt(11) == 'm') {\n if (url.contains(\"=\")) {\n String[] separated = url.split(\"=\");\n String[] separateditem = separated[1].split(\"&\");\n DetailsFragment descrptedFragment = new DetailsFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"deeplink\", url.toString());\n bundle.putString(\"ItemId\", separateditem[0]);\n descrptedFragment.setArguments(bundle);\n Log.d(\"+++++\", \"++ url deep ++\" + separateditem[0]);\n Log.d(\"+++++\", \"++ url deep ++\" + separated[2]);\n SharedToken sharedToken = new SharedToken(HomeActivity.this);\n sharedToken.setCatid(separated[2]);\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.framelayout, descrptedFragment);\n transaction.addToBackStack(null);\n transaction.commit();\n } else {\n SplashScreen.code = deepLink.toString().substring(deepLink.toString().lastIndexOf('/') + 1);\n Intent intent = new Intent(HomeActivity.this, SplashScreen.class);\n startActivity(intent);\n finish();\n }\n\n } else {\n\n SplashScreen.code = deepLink.toString().substring(deepLink.toString().lastIndexOf('/') + 1);\n Intent intent = new Intent(HomeActivity.this, SplashScreen.class);\n startActivity(intent);\n finish();\n }\n }\n\n //Log.d(\"deeplink\", \"\" + code);\n }\n // ...\n }", "public void DataPackPurchaseCommonActivity(AndroidDriver<AndroidElement> driver, String methodName, String platformVersion, String ActualSMS, int i) throws NoSuchElementException, MalformedURLException, InterruptedException, Exception, IOException {\n\t\t \n\t\t AllPackCommonActivity Activity= new AllPackCommonActivity();\n \n\t\t //Integer GPPointsBP = Integer.valueOf((driver.findElementById(\"com.portonics.mygp:id/txtGpPoint\").getText()).replaceAll(\"\\\\D+\",\"\"));\n\t\t\n\t\t String PhoneNumber = driver.findElementById(\"com.portonics.mygp:id/UserPhoneNumber\").getText();\n\t\n\t\t boolean RatePlanPrepaid = Arrays.asList(Prepaid).contains(PhoneNumber);\n\t\t boolean RatePlanPostpaid = Arrays.asList(Postpaid).contains(PhoneNumber);\n\t\t boolean RatePlanXplore = Arrays.asList(Xplore).contains(PhoneNumber);\n\t\t \n\t\t if(RatePlanPrepaid==true) {\n\t\t\t ServiceClass = \"prepaid\";\n\t\t\t System.out.println(ServiceClass);\n\t\t }\n\t\t \n\t\t if(RatePlanPostpaid==true) {\n\t\t\t ServiceClass = \"postpaid\";\n\t\t\t System.out.println(ServiceClass);\n\t\t }\n\t\t \n\t\t if(RatePlanXplore==true) {\n\t\t\t ServiceClass = \"Xplore\";\n\t\t\t System.out.println(ServiceClass);\n\t\t }\n\t \n\t\t if (ServiceClass.equals(\"prepaid\")) {\n\n\t\t\t driver.findElementById(\"com.portonics.mygp:id/UserValidTill\").click();\n\t\t\t Thread.sleep(6000);\n\t\t\t \n\t\t\t Float AccountBalanceBP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t Float AccountBalanceBPF = Float.valueOf(AccountBalanceBP)/100;\n\t\t\t \n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Internet']\").click();\n\t\t\t Integer InternetVolumeBP = Integer.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t \n\t\t\t if (platformVersion.equals(\"6\")) {\n\t \t driver.findElementByAccessibilityId(\"Navigate up\").click();\n\t }\n\t else {\n\t \t driver.navigate().back();\n\t }\t \n\t\t\t \n\t\t\t Map<String, Object> command = ImmutableMap.of(\"command\", \"am start -a android.intent.action.VIEW -d \\\"mygp://pack/internet/\"+ InternetPacks[i][1] +\"\\\" com.portonics.mygp\");\n\t\t\t driver.executeScript(\"mobile:shell\", command);\n\t\t\n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Confirm Purchase']\").click();\n\t\t\t Activity.takeGeneralScreenshot(driver, Location, 0);\n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Go to Home']\").click();\n\t\t\t Activity.takeReportedScreenshot(driver, methodName);\n\t\t\t \n\t\t\t driver.findElementById(\"com.portonics.mygp:id/UserInternetBalanceDetails\").click();\n\t\t\t Thread.sleep(4000);\n\t\t\t Integer InternetVolumeAP = Integer.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t int InternetVolume_With_Bonus_MB= InternetVolumeAP-InternetVolumeBP;\n\t\t\t \n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Emergency']\").click();\n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Main Account']\").click();\n\t\t\t Thread.sleep(6000);\n\t\t\t \n\t\t\t Float AccountBalanceAP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t Float AccountBalanceAPF = Float.valueOf(AccountBalanceAP)/100;\n\t \n\t\t\t Float BalanceDeducted= AccountBalanceBPF-AccountBalanceAPF;\n\t\t\t Double BalanceDeductedF = Math.round(BalanceDeducted * 100.0) / 100.0;\n\t\t\t \n\t\t\t String csv = \"Prepaid.csv\";\n\t\t CSVWriter writer = new CSVWriter(new FileWriter(csv,true));\n\t\t \n\t\t String [] Reportheader = \"Service class,Product Nanme,MSISDN,Product ID,Date,MA Before Purchase,MA After Purchase,Charged,DA value before purchase,DA value after purchase,DA value changed,Expected volume,Activation SMS,Bonus SMS\".split(\",\");\n\t\t String [] Purchaserecord = {ServiceClass, InternetPacks[i][0], PhoneNumber, \"\", PurchaseTime.toString(), String.valueOf(AccountBalanceBPF), String.valueOf(AccountBalanceAPF), String.valueOf(BalanceDeductedF), String.valueOf(InternetVolumeBP), String.valueOf(InternetVolumeAP), String.valueOf(InternetVolume_With_Bonus_MB)};\n\t\t \n\t\t List<String[]> entries = new ArrayList<>();\n\t\t \n\t\t entries.add(Purchaserecord);\n\t\t writer.writeAll(entries); \n\t\t writer.flush();\n\t\t writer.close();\n\t\t } \n\t\t \n\t\t else {\n\t\t\t \n\t\t\t driver.findElementById(\"com.portonics.mygp:id/UserValidTill\").click();\n\t\t\t Thread.sleep(8000);\n\t\t\t \n\t\t\t Float AccountBalanceBP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/tvPostPaidAvailable\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t Float AccountBalanceBPF = Float.valueOf(AccountBalanceBP)/100;\n\t\t\t \n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Internet']\").click();\n\t\t\t Integer InternetVolumeBP = Integer.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t \n\t\t\t if (platformVersion.equals(\"6\")) {\n\t \t driver.findElementByAccessibilityId(\"Navigate up\").click();\n\t }\n\t else {\n\t \t driver.navigate().back();\n\t }\t \n\t\t\t \n\t\t\t Map<String, Object> command = ImmutableMap.of(\"command\", \"am start -a android.intent.action.VIEW -d \\\"mygp://pack/internet/\"+ InternetPacks[i][1] +\"\\\" com.portonics.mygp\");\n\t\t\t driver.executeScript(\"mobile:shell\", command);\n\t\t\n\t\t\t Thread.sleep(2000);\n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Confirm Purchase']\").click();\n\t\t\t Activity.takeGeneralScreenshot(driver, Location, 0);\n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Go to Home']\").click();\n\t\t\t Activity.takeReportedScreenshot(driver, methodName);\n\t\t\t \n\t\t\t driver.findElementById(\"com.portonics.mygp:id/UserInternetBalanceDetails\").click();\n\t\t\t Thread.sleep(4000);\n\t\t\t Integer InternetVolumeAP = Integer.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t int InternetVolume_With_Bonus_MB= InternetVolumeAP-InternetVolumeBP;\n\t\t\t \n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Main Account']\").click();\n\t\t\t Thread.sleep(8000);\n\t\t\t \n\t\t\t Float AccountBalanceAP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/tvPostPaidAvailable\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t Float AccountBalanceAPF = Float.valueOf(AccountBalanceAP)/100;\n\t \n\t\t\t Float BalanceDeducted= AccountBalanceBPF-AccountBalanceAPF;\n\t\t\t Double BalanceDeductedF = Math.round(BalanceDeducted * 100.0) / 100.0;\n\t\t\t \n\t\t\t String csv = \"Postpaid.csv\";\n\t\t CSVWriter writer = new CSVWriter(new FileWriter(csv,true));\n\t\t \n\t\t String [] Reportheader = \"Service class,Product Nanme,MSISDN,Product ID,Date,MA Before Purchase,MA After Purchase,Charged,DA value before purchase,DA value after purchase,DA value changed,Expected volume,Activation SMS,Bonus SMS\".split(\",\");\n\t\t String [] Purchaserecord = {ServiceClass, InternetPacks[i][0], PhoneNumber, \"\", PurchaseTime.toString(), String.valueOf(AccountBalanceBPF), String.valueOf(AccountBalanceAPF), String.valueOf(BalanceDeductedF), String.valueOf(InternetVolumeBP), String.valueOf(InternetVolumeAP), String.valueOf(InternetVolume_With_Bonus_MB)};\n\t\t \n\t\t List<String[]> entries = new ArrayList<>();\n\t\t \n\t\t entries.add(Purchaserecord);\n\t\t writer.writeAll(entries); \n\t\t writer.flush();\n\t\t writer.close();\n\t\t }\n\n\t\t \n\t \n//\t\t driver.findElementById(\"com.portonics.mygp:id/UserValidTill\").click();\n//\t\t \n//\t\t Float AccountBalanceBP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/tvPostPaidAvailable\").getText().replaceAll(\"\\\\D+\",\"\"));\n//\t\t Thread.sleep(4000);\n//\t\t Float AccountBalanceBPF = Float.valueOf(AccountBalanceBP)/100;\n\t\t \n\t\t \n\t\t \n\t\t //driver.findElementById(\"com.portonics.mygp:id/UserValidTill\").click();\n\t\t \n\t\t //Thread.sleep(3000);\n\t\t \n//\t\t Float AccountBalanceBP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n//\t\t Float AccountBalanceBPF = Float.valueOf(AccountBalanceBP)/100;\n\n\t\n\t\t \n\t\t //Activity.scrollDownForData(driver, InternetPacks, i,0);\n\t\n\t\t \n\n//\t\t Activity.LogOutActivity(driver);\n//\t\t Activity.Login(driver,MSISDN, 1);\n\t\t \n//\t\t Integer GPPointsAP = Integer.valueOf((driver.findElementById(\"com.portonics.mygp:id/txtGpPoint\").getText()).replaceAll(\"\\\\D+\",\"\"));\n//\t\t int GPPoints = GPPointsAP-GPPointsBP;\n\t\t \n\t\t \n\t\t \n\t\t // \n\t\t \n\t\t \n//\t\t Float AccountBalanceAP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/tvPostPaidAvailable\").getText().replaceAll(\"\\\\D+\",\"\"));\n//\t\t Thread.sleep(4000);\n//\t\t Float AccountBalanceAPF = Float.valueOf(AccountBalanceAP)/100;\n//\t\t \n//\t\t System.out.println(AccountBalanceAPF);\n\t\t \n//\t\t Float AccountBalanceAP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n//\t\t Float AccountBalanceAPF = Float.valueOf(AccountBalanceAP)/100;\n\t\t \n//\t\t Float BalanceDeducted= AccountBalanceBPF-AccountBalanceAPF;\n//\t\t Double BalanceDeductedF = Math.round(BalanceDeducted * 100.0) / 100.0;\n\t\t \n\t\t \n\t\t //System.out.println(BalanceDeductedF);\n\t\t \n\t\t // String SMS= new AllPackCommonActivity().ReadSMS(driver, platformVersion);\n\t\t\n // String SMS= \"1GB Internet started successfully with 10% bonus. Total fee 88.99Tk, valid 7 days (Activation + 6 days). To Check Internet balance & validity click mygp.li/check or dial *121*1*4#. To Cancel, dial *121*3041#.\";\n\t\t\n\t\t // Assert.assertEquals(SMS, driver.findElementByXPath(\"(//android.widget.FrameLayout[@content-desc=\\\"Message from GP Internet\\\"])[4]/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.TextView\").getText());\n\t\t // Assert.assertEquals(ActualSMS, SMS);\n\t\t \n//\t\t Pattern Data_Volume = Pattern.compile(InternetPacks[i][1]);\n//\t Pattern Price = Pattern.compile(InternetPacks[i][4]);\n//\t Pattern Validity = Pattern.compile(InternetPacks[i][5]);\n//\t //Pattern GP_Points = Pattern.compile(InternetPacks[i][6]);\n//\t Pattern Bonus_Percent = Pattern.compile(InternetPacks[i][3]);\n//\t Pattern DynamicLink = Pattern.compile(\"mygp.li/check\");\n\t \n//\t Matcher Data_VolumeMatcher = Data_Volume.matcher(SMS);\n//\t Matcher PriceMatcher = Price.matcher(SMS);\n//\t Matcher ValidityMatcher = Validity.matcher(SMS);\n//\t //Matcher GP_PointsMatcher = GP_Points.matcher(String.valueOf(GPPoints));\n//\t Matcher Bonus_PercentMatcher = Bonus_Percent.matcher(SMS);\n//\t Matcher DynamicLinkMatcher = DynamicLink.matcher(SMS);\n\t \n\t \n \n//\t while (Data_VolumeMatcher.find()) \n//\t {\n//\t System.out.println(\"Data Volume: \"+Data_VolumeMatcher.group()); \n//\t }\n//\t \n//\t while (PriceMatcher.find()) \n//\t {\n//\t System.out.println(\"Price: \"+PriceMatcher.group());\n//\t }\n//\t \n//\t while (ValidityMatcher.find()) \n//\t {\n//\t System.out.println(\"Validity: \"+ValidityMatcher.group());\n//\t }\n//\t \n//\t while (Bonus_PercentMatcher.find()) \n//\t {\n//\t System.out.println(\"Bonus_%: \"+Bonus_PercentMatcher.group());\n//\t }\n\t \n//\t while (GP_PointsMatcher.find()) \n//\t {\n//\t System.out.println(\"GP_Points: \"+GP_PointsMatcher.group());\n//\t }\n\t \n//\t while (DynamicLinkMatcher.find()) \n//\t {\n//\t System.out.println(\"MyGP Dynamic Link: \"+DynamicLinkMatcher.group());\n//\t }\n\t \n\t //System.out.println(\"InternetVolume With Bonus MB: \" + InternetVolume_With_Bonus_MB); \n\t \n\t //System.out.println(\"SMS Text: \" + SMS); \n\t \n\t \n\t //System.out.println(Data_VolumeMatcher);\n\t \n\t\n \n //System.out.println(\"Pack Name: \" + InternetPacks[i][0]);\n \n//\t \tcsvWriter.flush();\n//\t \tcsvWriter.close();\n\n\t\t // System.out.println(driver.findElementByXPath(\"(//android.widget.FrameLayout[@content-desc=\\\"Message from GP Internet\\\"])[4]/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.TextView\").getText()); \t \n\t }", "public interface Constant {\n String INDEX_URL=\"https://raw.githubusercontent.com/sujit0892/meeting/master/meeting-xml/index.xml\";\n String MEETING_TAG=\"meeting\";\n String NAME_TAG=\"name\";\n String VENUE_TAG=\"venue\";\n String START_DATE=\"start-date\";\n String XML_URL=\"url\";\n String END_DATE=\"end-date\";\n String DESCRIPTION_TAG=\"description\";\n\n}", "@TestCaseId(\"55659\")\r\n @Features(GroupProps.NAVIGATION_AND_REPORTING)\r\n @Test(groups = { GroupProps.FULL, GroupProps.NAVIGATION_AND_REPORTING, GroupProps.SMOKE, GroupProps.BENTO_SMOKE })\r\n @Parameters({ ParamProps.ANDROID, ParamProps.ALL_APPS })\r\n public void navigationAndReportingAndroidTest() {\r\n\r\n\t\tsplashChain.splashAtRest();\r\n\t\tchromecastChain.dismissChromecast();\r\n\r\n\t\t//Validate Home screen locator.(Series title, Series description, All Shows, Settings, Brand logo)\r\n\t\thome.seriesTtl(firstSeriesTitle).waitForPresent();\r\n\t\thome.seriesDescriptionTxt(firstSeriesDescription).waitForVisible();\r\n\t\tsettings.settingsBtn().waitForVisible();\r\n\t\tif (!searchServiceEnabled && AllShowsEnabled) {\r\n\t\t\tallShows.allShowsBtn().waitForVisible();\r\n\t\t} else {\r\n\t\t\t//To-Do Search glass Validation\r\n\t\t}\r\n\t\thome.brandLogoImage().waitForPresent(); // TODO - add cont desc or text to this element in androidPlatform project\r\n\t\tLogger.logConsoleMessage(\"<-------- 1 check point: HomeScreen locator Validation :- Completed ------>\");\r\n\r\n\t\t//Validate HomeScreen page launch call\r\n\t\texpectedMap = OmniturePageData.buildMainLaunchScreenExpectedMap(firstSeriesTitle, \"n/a\");\r\n\t\tactualMap = OmnitureLogUtils.getActualMap(EXPECTED_PARAM_HOME_MAIN_SCREEN);\r\n\t\tOmniture.assertOmnitureValues(expectedMap, actualMap);\r\n\r\n\t\t//Validate Megabeacon HomeScreen page launch call\r\n\t\tactualMap = MegabeaconLogUtils.getActualMap(\"channel\", EXPECTED_PARAM_HOME_MAIN_SCREEN);\r\n\t\tOmniture.assertOmnitureValues(expectedMap, actualMap);\r\n\t\tLogger.logConsoleMessage(\"<----- 2 check point: HomeScreen page call :- Completed ------>\");\r\n\r\n\t\t//Validate user country check call - Skipped this step if install event not present\r\n\t\tif (OmnitureLogUtils.expectedParamPresent(EXPECTED_PARAM_INSTALL_EVENT)) {\r\n\t\t\texpectedMap.clear();\r\n\t\t\tactualMap.clear();\r\n\t\t\texpectedMap = OmnitureCountryCheckData.buildUserCountryCheckExpectedMap();\r\n\t\t\tMap<String, String> actualMap = OmnitureLogUtils.getActualMap(EXPECTED_PARAM_COUNTRY_CHECK);\r\n\t\t\tOmniture.assertOmnitureValues(expectedMap, actualMap);\r\n\t\t\tLogger.logConsoleMessage(\"<----- 3 check point: User country page call :- Completed ------>\");\r\n\t\t} else {\r\n\t\t\tLogger.logConsoleMessage(\"<----- 3 check point: User country page call :- Skipped ? Not a first launch------>\");\r\n\t\t}\r\n\r\n\t\t//Validate TVE user authentication status call\r\n\t\texpectedMap.clear();\r\n\t\tactualMap.clear();\r\n\t\texpectedMap = OmnitureTVEData.buildOmnitureTVEUserAuthenticationStatusExpectedMap(\"guest user\", \"no provider\");\r\n\t\tactualMap = OmnitureLogUtils.getActualMap(EXPECTED_PARAM_TVE_AUTHENTICATION_STATUS);\r\n\t\tOmniture.assertOmnitureValues(expectedMap, actualMap);\r\n\r\n //Validate Megabeacon TVE user authentication status call\r\n actualMap = MegabeaconLogUtils.getActualMap(\"activity\", EXPECTED_PARAM_TVE_AUTHENTICATION_STATUS);\r\n Omniture.assertOmnitureValues(expectedMap, actualMap);\r\n\r\n\t\tLogger.logConsoleMessage(\"<----- 4 check point: TVE user authentication status call :- Completed ------>\");\r\n\r\n\t\t//Validate settings screen locator (TV Provider account, Video playback, help)\r\n\t\tsettings.settingsBtn().waitForVisible().tap();\r\n\t\tsettingsMenu.autoPlayTgl().waitForVisible();\r\n\t\tsettingsMenu.autoPlayClipsTgl().waitForVisible();\r\n\t\tsettingsMenu.cellularTgl().waitForVisible();\r\n\t\tsettingsMenu.backBtn().waitForVisible();\r\n\t\tsettingsMenu.contactBtn().waitForVisible();\r\n\t\tsettingsMenu.signInBtn().isVisible();\r\n\t\tsettingsMenu.tvProviderTtl().isVisible();\r\n\t\tif (!TestRun.isBETINTLApp()) { // TV provider unavailable for BET, Only D2C\r\n \t \t\tsettingsMenu.tvProviderSectionTtl().waitForVisible();\r\n \t \t}\r\n\t\tsettingsMenu.videoPlayBackSectionTtl().waitForVisible();\r\n\t\tsettingsMenu.helpSectionTtl().waitForVisible();\r\n\t\tif (!settingsMenu.buildVersion().isVisible()) {\r\n\t\t\tsettingsMenu.buildVersion().waitForScrolledDownTo(2, 300); //In case if not visible for small iphone screen\r\n\t\t}\r\n\t\tLogger.logConsoleMessage(\"<----- 5 check point: Validate settings screen locator :- Completed ------>\");\r\n\r\n\t\t//Validate settings page call\r\n\t\texpectedMap.clear();\r\n\t\tactualMap.clear();\r\n\t\texpectedMap = OmniturePageData.buildSettingsScreenExpectedMap();\r\n\t\tactualMap = OmnitureLogUtils.getActualMap(EXPECTED_PARAM_SETTINGS_PAGENAME, EXPECTED_PARAM_SETTINGS_SCREEN);\r\n\t\tOmniture.assertOmnitureValues(expectedMap, actualMap); // Test Is failing here due to null values. TODO - Create tickets\r\n\t\tLogger.logConsoleMessage(\"<----- 6 check point: Validate settings page call :- Completed ------>\");\r\n\r\n\t\t//Validate all legal pages are available (Privacy Policy, Terms of Use, Legal terms and Notices ..etc)\r\n\t\tsettingsMenu.privacyPolicyBtn().waitForVisible().tap();\r\n\t\tprivacyPolicy.privacyPolicyTtl().waitForVisible();\r\n\t\tsettingsMenu.backBtn().waitForVisible().tap();\r\n\t\tsettings.settingsBtn().waitForVisible().tap(); //Back button locator name changed\r\n\t\tsettingsMenu.termsAndConditionsBtn().waitForVisible().tap();\r\n\t\ttermsAndConditions.termsOfUseTtl().waitForVisible();\r\n\t\tsettingsMenu.backBtn().waitForVisible().tap();\r\n\t\tsettings.settingsBtn().waitForVisible().tap(); //Back button locator name changed\r\n\t\tsettingsMenu.legalNoticesBtn().waitForVisible().tap();\r\n\t\tlegalNotices.legalNoticesTtl().waitForVisible();\r\n\t\tsettingsMenu.backBtn().waitForVisible().tap();\r\n\t\tLogger.logConsoleMessage(\"<----- 7 check point: Validate all legal pages are available :- Completed ------>\");\r\n\r\n\t\tif (!searchServiceEnabled && AllShowsEnabled) {\r\n\t\t\tallShows.allShowsBtn().waitForVisible().tap();\r\n\r\n\t\t\t//Validate AllShows page call\r\n\t\t\texpectedMap.clear();\r\n\t\t\tactualMap.clear();\r\n\t\t\texpectedMap = OmniturePageData.buildMainShowsScreenExpectedMap();\r\n\t\t\tactualMap = OmnitureLogUtils.getActualMap(EXPECTED_PARAM_ALL_SHOW_SCREEN);\r\n\t\t\tOmniture.assertOmnitureValues(expectedMap, actualMap);\r\n\t\t\tLogger.logConsoleMessage(\"<----- 8 check point: Validate AllShows page call :- Completed ------>\");\r\n\r\n\t //Validate Megabeacon AllShows page call\r\n\t actualMap = MegabeaconLogUtils.getActualMap(\"channel\", EXPECTED_PARAM_ALL_SHOW_SCREEN);\r\n\t Omniture.assertOmnitureValues(expectedMap, actualMap);\r\n\r\n\t\t\t//Validate all content type available under all shows screen. (scroll up & down)\r\n \t allShows.scrollDownToSeriesTile(45, allShowsLastSeriesTitle); // Edge case - If more then 30 series available for AllShows\r\n \t allShows.scrollUpToSeriesTile(45, allShowsFirstSeriesTitle);\r\n\t\t\tLogger.logConsoleMessage(\"<----- 9 check point: Validate all content type available under all shows screen :- Completed ------>\");\r\n\t\t} else {\r\n\t\t\t//To-Do Search screen validation\r\n\t\t}\r\n\t}", "public String _page_navigationbarclicked(String _action,String _value) throws Exception{\n_page.SaveNavigationBarPosition();\r\n //BA.debugLineNum = 250;BA.debugLine=\"If Action = \\\"ABMCombo\\\" Then Return\";\r\nif ((_action).equals(\"ABMCombo\")) { \r\nif (true) return \"\";};\r\n //BA.debugLineNum = 251;BA.debugLine=\"If Action = \\\"Contact\\\" Then\";\r\nif ((_action).equals(\"Contact\")) { \r\n //BA.debugLineNum = 252;BA.debugLine=\"myToastId = myToastId + 1\";\r\n_mytoastid = (int) (_mytoastid+1);\r\n //BA.debugLineNum = 253;BA.debugLine=\"page.ShowToast(\\\"toast\\\" & myToastId, \\\"toastred\\\",\";\r\n_page.ShowToast(\"toast\"+BA.NumberToString(_mytoastid),\"toastred\",\"Hello to you too!\",(int) (5000));\r\n //BA.debugLineNum = 254;BA.debugLine=\"Return\";\r\nif (true) return \"\";\r\n };\r\n //BA.debugLineNum = 256;BA.debugLine=\"If Action = \\\"LogOff\\\" Then\";\r\nif ((_action).equals(\"LogOff\")) { \r\n //BA.debugLineNum = 257;BA.debugLine=\"ABMShared.LogOff(page)\";\r\n_abmshared._logoff(_page);\r\n //BA.debugLineNum = 258;BA.debugLine=\"Return\";\r\nif (true) return \"\";\r\n };\r\n //BA.debugLineNum = 260;BA.debugLine=\"ABMShared.NavigateToPage(ws, ABMPageId, Value)\";\r\n_abmshared._navigatetopage(_ws,_abmpageid,_value);\r\n //BA.debugLineNum = 261;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "static /* synthetic */ void m7135b(AuthActivity authActivity, String str) {\n C1588d dVar = new C1588d(authActivity.getApplicationContext(), new C1576b(authActivity));\n String str2 = null;\n JSONObject jSONObject = null;\n try {\n JSONObject jSONObject2 = new JSONObject(str);\n String string = jSONObject2.getString(C1584a.f7161e);\n try {\n if (!TextUtils.isEmpty(string)) {\n JSONObject jSONObject3 = jSONObject2.getJSONObject(\"param\");\n if (jSONObject3 instanceof JSONObject) {\n jSONObject = jSONObject3;\n }\n String string2 = jSONObject2.getString(C1584a.f7163g);\n String string3 = jSONObject2.getString(C1584a.f7160d);\n C1584a aVar = new C1584a(\"call\");\n aVar.f7166j = string3;\n aVar.f7167k = string2;\n aVar.f7169m = jSONObject;\n aVar.f7165i = string;\n dVar.mo14464a(aVar);\n }\n } catch (Exception unused) {\n str2 = string;\n if (TextUtils.isEmpty(str2)) {\n try {\n dVar.mo14465a(str2, C1584a.EnumC1585a.f7174d);\n } catch (JSONException unused2) {\n }\n }\n }\n } catch (Exception unused3) {\n if (TextUtils.isEmpty(str2)) {\n }\n }\n }", "public final String mo4983Fk() {\n AppMethodBeat.m2504i(128894);\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"InstanceId:\").append(this.ddx);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppId:\").append(this.ddc);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppVersion:\").append(this.ddd);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppState:\").append(this.dgQ);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppType:\").append(this.ddz);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"CostTimeMs:\").append(this.ddA);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"Scene:\").append(this.cVR);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"StartTimeStampMs:\").append(this.ddB);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"EndTimeStampMs:\").append(this.ddC);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"path:\").append(this.bUh);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"isPreload:\").append(this.ddg);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"isPreloadPageFrame:\").append(this.deD);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"networkTypeStr:\").append(this.dex);\n String stringBuffer2 = stringBuffer.toString();\n AppMethodBeat.m2505o(128894);\n return stringBuffer2;\n }", "public static String[] processPageReturn(String data){\n\t\t\n\t\tString videoAddress = null;\n\t\t\n\t\tPattern pat = Pattern.compile(\",\\\"res\\\":\\\\[(.*?)\\\\]\");\n\t\tMatcher match = pat.matcher(data);\n\n\t\tif (match.find()){\n\t\t\tString temp = match.group(match.groupCount());\n\t\t\t\n\t\t\tpat = Pattern.compile(\"\\\"u\\\":\\\"(.*?)\\\"\");\n\t\t\tmatch = pat.matcher(temp);\n\t\t\t\n\t\t\tif (match.find()){\n\t\t\t\tBase64 b64 = new Base64();\n\t\t\t\tvideoAddress = new String(b64.decode(match.group(1)));\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\tSystem.err.println(\"error\");\n\t\t\t\n\t\t}\n\t\t\n\t\tString videoTitle = decodePattern(data,\"\\\"video_details\\\":\\\\{\\\"video\\\":\\\\{\\\"title\\\":\\\"(.*?)\\\"\");\n\t\t\n\t\treturn new String[]{videoAddress,videoTitle};\n\t\t\n\t}", "public void processProperties(org.appcelerator.kroll.KrollDict r17) {\n /*\n r16 = this;\n super.processProperties(r17)\n android.view.View r9 = r16.getNativeView()\n android.widget.TextView r9 = (android.widget.TextView) r9\n r6 = 0\n r7 = 0\n r4 = 0\n java.lang.String r12 = \"attributedString\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 == 0) goto L_0x002d\n r4 = 1\n java.lang.String r12 = \"attributedString\"\n r0 = r17\n java.lang.Object r1 = r0.get(r12)\n boolean r12 = r1 instanceof p006ti.modules.titanium.p007ui.AttributedStringProxy\n if (r12 == 0) goto L_0x002d\n ti.modules.titanium.ui.AttributedStringProxy r1 = (p006ti.modules.titanium.p007ui.AttributedStringProxy) r1\n android.app.Activity r12 = org.appcelerator.titanium.TiApplication.getAppCurrentActivity()\n android.text.Spannable r7 = p006ti.modules.titanium.p007ui.AttributedStringProxy.toSpannable(r1, r12)\n L_0x002d:\n if (r7 != 0) goto L_0x0048\n java.lang.String r12 = \"html\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 == 0) goto L_0x0048\n r4 = 1\n java.lang.String r12 = \"html\"\n r0 = r17\n java.lang.String r5 = org.appcelerator.titanium.util.TiConvert.toString(r0, r12)\n if (r5 == 0) goto L_0x0048\n android.text.Spanned r7 = android.text.Html.fromHtml(r5)\n L_0x0048:\n if (r7 != 0) goto L_0x0061\n java.lang.String r12 = \"text\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 == 0) goto L_0x0061\n r4 = 1\n java.lang.String r12 = \"text\"\n r0 = r17\n java.lang.Object r12 = r0.get(r12)\n java.lang.String r7 = org.appcelerator.titanium.util.TiConvert.toString(r12)\n L_0x0061:\n if (r7 != 0) goto L_0x007a\n java.lang.String r12 = \"title\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 == 0) goto L_0x007a\n r4 = 1\n java.lang.String r12 = \"title\"\n r0 = r17\n java.lang.Object r12 = r0.get(r12)\n java.lang.String r7 = org.appcelerator.titanium.util.TiConvert.toString(r12)\n L_0x007a:\n if (r4 == 0) goto L_0x008e\n if (r7 != 0) goto L_0x0080\n java.lang.String r7 = \"\"\n L_0x0080:\n r0 = r16\n java.lang.CharSequence r12 = r0.originalText\n boolean r12 = r7.equals(r12)\n if (r12 != 0) goto L_0x008e\n r0 = r16\n r0.originalText = r7\n L_0x008e:\n java.lang.String r12 = \"includeFontPadding\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 == 0) goto L_0x00a4\n java.lang.String r12 = \"includeFontPadding\"\n r13 = 1\n r0 = r17\n boolean r12 = org.appcelerator.titanium.util.TiConvert.toBoolean(r0, r12, r13)\n r9.setIncludeFontPadding(r12)\n L_0x00a4:\n java.lang.String r12 = \"minimumFontSize\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 == 0) goto L_0x00bb\n java.lang.String r12 = \"minimumFontSize\"\n r0 = r17\n java.lang.String r12 = org.appcelerator.titanium.util.TiConvert.toString(r0, r12)\n r0 = r16\n r0.setMinimumFontSize(r12)\n L_0x00bb:\n java.lang.String r12 = \"lines\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 == 0) goto L_0x00d6\n java.lang.String r12 = \"lines\"\n r0 = r17\n java.lang.Object r12 = r0.get(r12)\n r13 = 0\n int r12 = org.appcelerator.titanium.util.TiConvert.toInt(r12, r13)\n r0 = r16\n r0.viewHeightInLines = r12\n L_0x00d6:\n java.lang.String r12 = \"wordWrap\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 == 0) goto L_0x00ed\n java.lang.String r12 = \"wordWrap\"\n r13 = 1\n r0 = r17\n boolean r12 = org.appcelerator.titanium.util.TiConvert.toBoolean(r0, r12, r13)\n r0 = r16\n r0.wordWrap = r12\n L_0x00ed:\n java.lang.String r12 = \"maxLines\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 == 0) goto L_0x0110\n java.lang.String r12 = \"maxLines\"\n r0 = r17\n java.lang.Object r12 = r0.get(r12)\n r13 = 2147483647(0x7fffffff, float:NaN)\n int r10 = org.appcelerator.titanium.util.TiConvert.toInt(r12, r13)\n r12 = 1\n if (r10 >= r12) goto L_0x010c\n r10 = 2147483647(0x7fffffff, float:NaN)\n L_0x010c:\n r0 = r16\n r0.maxLines = r10\n L_0x0110:\n java.lang.String r12 = \"lineSpacing\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 == 0) goto L_0x0142\n java.lang.String r12 = \"lineSpacing\"\n r0 = r17\n java.lang.Object r10 = r0.get(r12)\n boolean r12 = r10 instanceof java.util.HashMap\n if (r12 == 0) goto L_0x0142\n r3 = r10\n java.util.HashMap r3 = (java.util.HashMap) r3\n java.lang.String r12 = \"add\"\n java.lang.Object r12 = r3.get(r12)\n r13 = 0\n float r12 = org.appcelerator.titanium.util.TiConvert.toFloat(r12, r13)\n java.lang.String r13 = \"multiply\"\n java.lang.Object r13 = r3.get(r13)\n r14 = 0\n float r13 = org.appcelerator.titanium.util.TiConvert.toFloat(r13, r14)\n r9.setLineSpacing(r12, r13)\n L_0x0142:\n java.lang.String r12 = \"color\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 == 0) goto L_0x015d\n java.lang.String r12 = \"color\"\n r0 = r17\n java.lang.Object r2 = r0.get(r12)\n if (r2 != 0) goto L_0x0283\n r0 = r16\n int r12 = r0.defaultColor\n r9.setTextColor(r12)\n L_0x015d:\n java.lang.String r12 = \"highlightedColor\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 == 0) goto L_0x0172\n java.lang.String r12 = \"highlightedColor\"\n r0 = r17\n int r12 = org.appcelerator.titanium.util.TiConvert.toColor(r0, r12)\n r9.setHighlightColor(r12)\n L_0x0172:\n java.lang.String r12 = \"font\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 == 0) goto L_0x018f\n java.lang.String r12 = \"font\"\n r0 = r17\n org.appcelerator.kroll.KrollDict r12 = r0.getKrollDict(r12)\n org.appcelerator.titanium.util.TiUIHelper.styleText(r9, r12)\n float r12 = r9.getTextSize()\n r0 = r16\n r0.unscaledFontSizeInPixels = r12\n L_0x018f:\n java.lang.String r12 = \"textAlign\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 != 0) goto L_0x01a3\n java.lang.String r12 = \"verticalAlign\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 == 0) goto L_0x01ba\n L_0x01a3:\n java.lang.String r12 = \"textAlign\"\n java.lang.String r13 = \"left\"\n r0 = r17\n java.lang.String r8 = r0.optString(r12, r13)\n java.lang.String r12 = \"verticalAlign\"\n java.lang.String r13 = \"middle\"\n r0 = r17\n java.lang.String r11 = r0.optString(r12, r13)\n org.appcelerator.titanium.util.TiUIHelper.setAlignment(r9, r8, r11)\n L_0x01ba:\n java.lang.String r12 = \"ellipsize\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 == 0) goto L_0x01de\n java.lang.String r12 = \"ellipsize\"\n r0 = r17\n java.lang.Object r10 = r0.get(r12)\n boolean r12 = r10 instanceof java.lang.Boolean\n if (r12 == 0) goto L_0x0293\n java.lang.Boolean r10 = (java.lang.Boolean) r10\n boolean r12 = r10.booleanValue()\n if (r12 == 0) goto L_0x0290\n android.text.TextUtils$TruncateAt r12 = android.text.TextUtils.TruncateAt.END\n L_0x01da:\n r0 = r16\n r0.ellipsize = r12\n L_0x01de:\n java.lang.String r12 = \"autoLink\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 == 0) goto L_0x01fb\n java.lang.String r12 = \"autoLink\"\n r0 = r17\n java.lang.Object r12 = r0.get(r12)\n r13 = 0\n int r12 = org.appcelerator.titanium.util.TiConvert.toInt(r12, r13)\n r12 = r12 & 15\n r0 = r16\n r0.autoLinkFlags = r12\n L_0x01fb:\n java.lang.String r12 = \"shadowOffset\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 == 0) goto L_0x0233\n java.lang.String r12 = \"shadowOffset\"\n r0 = r17\n java.lang.Object r10 = r0.get(r12)\n boolean r12 = r10 instanceof java.util.HashMap\n if (r12 == 0) goto L_0x0233\n r6 = 1\n r3 = r10\n java.util.HashMap r3 = (java.util.HashMap) r3\n java.lang.String r12 = \"x\"\n java.lang.Object r12 = r3.get(r12)\n r13 = 0\n float r12 = org.appcelerator.titanium.util.TiConvert.toFloat(r12, r13)\n r0 = r16\n r0.shadowX = r12\n java.lang.String r12 = \"y\"\n java.lang.Object r12 = r3.get(r12)\n r13 = 0\n float r12 = org.appcelerator.titanium.util.TiConvert.toFloat(r12, r13)\n r0 = r16\n r0.shadowY = r12\n L_0x0233:\n java.lang.String r12 = \"shadowRadius\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 == 0) goto L_0x0250\n r6 = 1\n java.lang.String r12 = \"shadowRadius\"\n r0 = r17\n java.lang.Object r12 = r0.get(r12)\n r13 = 1065353216(0x3f800000, float:1.0)\n float r12 = org.appcelerator.titanium.util.TiConvert.toFloat(r12, r13)\n r0 = r16\n r0.shadowRadius = r12\n L_0x0250:\n java.lang.String r12 = \"shadowColor\"\n r0 = r17\n boolean r12 = r0.containsKey(r12)\n if (r12 == 0) goto L_0x0267\n r6 = 1\n java.lang.String r12 = \"shadowColor\"\n r0 = r17\n int r12 = org.appcelerator.titanium.util.TiConvert.toColor(r0, r12)\n r0 = r16\n r0.shadowColor = r12\n L_0x0267:\n if (r6 == 0) goto L_0x027c\n r0 = r16\n float r12 = r0.shadowRadius\n r0 = r16\n float r13 = r0.shadowX\n r0 = r16\n float r14 = r0.shadowY\n r0 = r16\n int r15 = r0.shadowColor\n r9.setShadowLayer(r12, r13, r14, r15)\n L_0x027c:\n r16.updateLabelText()\n r9.invalidate()\n return\n L_0x0283:\n java.lang.String r12 = \"color\"\n r0 = r17\n int r12 = org.appcelerator.titanium.util.TiConvert.toColor(r0, r12)\n r9.setTextColor(r12)\n goto L_0x015d\n L_0x0290:\n r12 = 0\n goto L_0x01da\n L_0x0293:\n boolean r12 = r10 instanceof java.lang.Integer\n if (r12 == 0) goto L_0x01de\n java.lang.Integer r10 = (java.lang.Integer) r10\n int r12 = r10.intValue()\n switch(r12) {\n case 0: goto L_0x02a7;\n case 1: goto L_0x02af;\n case 2: goto L_0x02b7;\n case 3: goto L_0x02bf;\n default: goto L_0x02a0;\n }\n L_0x02a0:\n r12 = 0\n r0 = r16\n r0.ellipsize = r12\n goto L_0x01de\n L_0x02a7:\n android.text.TextUtils$TruncateAt r12 = android.text.TextUtils.TruncateAt.START\n r0 = r16\n r0.ellipsize = r12\n goto L_0x01de\n L_0x02af:\n android.text.TextUtils$TruncateAt r12 = android.text.TextUtils.TruncateAt.MIDDLE\n r0 = r16\n r0.ellipsize = r12\n goto L_0x01de\n L_0x02b7:\n android.text.TextUtils$TruncateAt r12 = android.text.TextUtils.TruncateAt.END\n r0 = r16\n r0.ellipsize = r12\n goto L_0x01de\n L_0x02bf:\n android.text.TextUtils$TruncateAt r12 = android.text.TextUtils.TruncateAt.MARQUEE\n r0 = r16\n r0.ellipsize = r12\n goto L_0x01de\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p006ti.modules.titanium.p007ui.widget.TiUILabel.processProperties(org.appcelerator.kroll.KrollDict):void\");\n }", "public static String _globals() throws Exception{\nmostCurrent._bdmain = new flm.b4a.betterdialogs.BetterDialogs();\n //BA.debugLineNum = 17;BA.debugLine=\"Private svUtama \t\tAs ScrollView\";\nmostCurrent._svutama = new anywheresoftware.b4a.objects.ScrollViewWrapper();\n //BA.debugLineNum = 18;BA.debugLine=\"Private iTampil \t\tAs Int=0\";\n_itampil = (int) (0);\n //BA.debugLineNum = 19;BA.debugLine=\"Private pSemua \t\t\tAs Panel\";\nmostCurrent._psemua = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 20;BA.debugLine=\"Private ivMenu \t\t\tAs ImageView\";\nmostCurrent._ivmenu = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Private ivSearch\t \tAs ImageView\";\nmostCurrent._ivsearch = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Private ivClose \t\tAs ImageView\";\nmostCurrent._ivclose = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 23;BA.debugLine=\"Private ivSetting \t\tAs ImageView\";\nmostCurrent._ivsetting = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"Private lblBrowse \t\tAs Label\";\nmostCurrent._lblbrowse = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 25;BA.debugLine=\"Private lvBrowse \t\tAs ListView\";\nmostCurrent._lvbrowse = new anywheresoftware.b4a.objects.ListViewWrapper();\n //BA.debugLineNum = 26;BA.debugLine=\"Private svList \t\t\tAs ScrollView\";\nmostCurrent._svlist = new anywheresoftware.b4a.objects.ScrollViewWrapper();\n //BA.debugLineNum = 27;BA.debugLine=\"Private lvVideo \t\tAs ListView\";\nmostCurrent._lvvideo = new anywheresoftware.b4a.objects.ListViewWrapper();\n //BA.debugLineNum = 28;BA.debugLine=\"Private lvCate \t\t\tAs ListView\";\nmostCurrent._lvcate = new anywheresoftware.b4a.objects.ListViewWrapper();\n //BA.debugLineNum = 29;BA.debugLine=\"Private lvManage \t\tAs ListView\";\nmostCurrent._lvmanage = new anywheresoftware.b4a.objects.ListViewWrapper();\n //BA.debugLineNum = 30;BA.debugLine=\"Private MB \t\t\t\tAs MediaBrowser\";\nmostCurrent._mb = new flm.media.browser.MediaBrowser();\n //BA.debugLineNum = 31;BA.debugLine=\"Private picMusic\t\tAs Bitmap\";\nmostCurrent._picmusic = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();\n //BA.debugLineNum = 32;BA.debugLine=\"Private mapCover\t\tAs Map\";\nmostCurrent._mapcover = new anywheresoftware.b4a.objects.collections.Map();\n //BA.debugLineNum = 33;BA.debugLine=\"Private container \t\tAs AHPageContainer\";\nmostCurrent._container = new de.amberhome.viewpager.AHPageContainer();\n //BA.debugLineNum = 34;BA.debugLine=\"Private pager \t\t\tAs AHViewPager\";\nmostCurrent._pager = new de.amberhome.viewpager.AHViewPager();\n //BA.debugLineNum = 35;BA.debugLine=\"Private pCoverFlow \t\tAs Panel\";\nmostCurrent._pcoverflow = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 36;BA.debugLine=\"Private tCover\t\t\tAs Timer\";\nmostCurrent._tcover = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 37;BA.debugLine=\"Private picMusic\t\tAs Bitmap\";\nmostCurrent._picmusic = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();\n //BA.debugLineNum = 38;BA.debugLine=\"Private picVideo\t\tAs Bitmap\";\nmostCurrent._picvideo = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();\n //BA.debugLineNum = 39;BA.debugLine=\"Private picLain\t\t\tAs Bitmap\";\nmostCurrent._piclain = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();\n //BA.debugLineNum = 40;BA.debugLine=\"Private lstFilter \t\tAs List\";\nmostCurrent._lstfilter = new anywheresoftware.b4a.objects.collections.List();\n //BA.debugLineNum = 41;BA.debugLine=\"Private CurrPage \t\tAs Int = 0\";\n_currpage = (int) (0);\n //BA.debugLineNum = 42;BA.debugLine=\"Private arah\t\t\tAs Int = 0\";\n_arah = (int) (0);\n //BA.debugLineNum = 44;BA.debugLine=\"Private lblMost \t\tAs Label\";\nmostCurrent._lblmost = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 45;BA.debugLine=\"Private ivGaris \t\tAs ImageView\";\nmostCurrent._ivgaris = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 46;BA.debugLine=\"Private ivGambar1 \t\tAs ImageView\";\nmostCurrent._ivgambar1 = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 47;BA.debugLine=\"Private ivGambar4 \t\tAs ImageView\";\nmostCurrent._ivgambar4 = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 48;BA.debugLine=\"Private ivMore \t\t\tAs ImageView\";\nmostCurrent._ivmore = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 49;BA.debugLine=\"Private iTampil1 \t\tAs Int=0\";\n_itampil1 = (int) (0);\n //BA.debugLineNum = 50;BA.debugLine=\"Private iTampil2 \t\tAs Int=0\";\n_itampil2 = (int) (0);\n //BA.debugLineNum = 51;BA.debugLine=\"Private pTop \t\t\tAs Panel\";\nmostCurrent._ptop = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 52;BA.debugLine=\"Private etSearch \t\tAs EditText\";\nmostCurrent._etsearch = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 53;BA.debugLine=\"Private lblJudul1 \t\tAs Label\";\nmostCurrent._lbljudul1 = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 54;BA.debugLine=\"Private lblLogin \t\tAs Label\";\nmostCurrent._lbllogin = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 56;BA.debugLine=\"Dim coverflow \t\tAs PhotoFlow\";\nmostCurrent._coverflow = new it.giuseppe.salvi.PhotoFlowActivity();\n //BA.debugLineNum = 57;BA.debugLine=\"Private bLogin \t\tAs Button\";\nmostCurrent._blogin = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 58;BA.debugLine=\"Private bMore \t\tAs Button\";\nmostCurrent._bmore = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 59;BA.debugLine=\"Dim pos_cflow \t\tAs Int\";\n_pos_cflow = 0;\n //BA.debugLineNum = 60;BA.debugLine=\"Dim panel1 \t\t\tAs Panel\";\nmostCurrent._panel1 = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 61;BA.debugLine=\"Dim timer_cflow\t\tAs Timer\";\nmostCurrent._timer_cflow = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 62;BA.debugLine=\"Dim a, b\t\t\tAs Int\";\n_a = 0;\n_b = 0;\n //BA.debugLineNum = 63;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static RemoteObject _process_globals() throws Exception{\nrequests3._device = RemoteObject.createNew (\"anywheresoftware.b4a.phone.Phone\");\n //BA.debugLineNum = 13;BA.debugLine=\"Private TileSource As String\";\nrequests3._tilesource = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 14;BA.debugLine=\"Private ZoomLevel As Int\";\nrequests3._zoomlevel = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 15;BA.debugLine=\"Private Markers As List\";\nrequests3._markers = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 16;BA.debugLine=\"Private MapFirstTime As Boolean\";\nrequests3._mapfirsttime = RemoteObject.createImmutable(false);\n //BA.debugLineNum = 18;BA.debugLine=\"Private MyPositionLat, MyPositionLon As String\";\nrequests3._mypositionlat = RemoteObject.createImmutable(\"\");\nrequests3._mypositionlon = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 19;BA.debugLine=\"Private CurrentTabPage As Int = 0\";\nrequests3._currenttabpage = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 20;BA.debugLine=\"Private InfoDataWindows As Boolean = False\";\nrequests3._infodatawindows = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 21;BA.debugLine=\"End Sub\";\nreturn RemoteObject.createImmutable(\"\");\n}", "public interface AutoTrackApiPath {\n //调试接口 发送view id+全量数据\n String POINT_DEBUG = \"/dasdk/xxxxxxxx/ctr.do\";\n //下拉埋点配置接口\n String PULL_POINT_CONFIGS = \"/dasdk/xxxxxxx/dacfg.do\";\n //调试nlog接口路径\n String OFFLINE_NLOG_PATH = \"/xxxxxx/logsSdk.do\";\n //线上nlog发送路径\n String ONLINE_NLOG_PATH = \"/logsSdk.do\";\n\n}", "private void setUsefulURLsInfo () {\n infoList = new ArrayList<> ();\n\n\n // item number 1\n\n Info info = new Info ();// this class will help us to save data easily !\n //set the title >> it can be website name or Topic title ...\n info.setInfoTitle (\"Autism.com\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this website has will help you identify the level of Autism of a patient ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://stackoverflow.com/\");\n\n infoList.add (info); //adding item 1 to list\n\n\n // item number 2\n info = new Info ();// save the second Url\n //set the title >> it can be website name or Topic title ...\n info.setInfoTitle (\"We Can help solve Autism\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this website has will help patient of Autism to get better by communicate with experts ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://www.androidauthority.com/\");\n\n infoList.add (info);//adding item number 2 to list\n\n\n // item 3\n info = new Info ();// save the third Url\n //set the title >> it can be website name or Topic title ...\n info.setInfoTitle (\"Say no for Autism\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this an article about patient of Autism and how to help them get better ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://developer.android.com/index.html\");\n infoList.add (info);// adding item 3 to list\n\n\n displayInfo (infoList);\n\n }", "private final void m11061a(android.app.Activity r5, app.zenly.locator.experimental.inbox.p092i.C3708a r6) {\n /*\n r4 = this;\n app.zenly.locator.experimental.inbox.j.b r0 = r6.mo10234a()\n co.znly.models.i r0 = r0.mo10237a()\n if (r0 == 0) goto L_0x0011\n java.util.List r0 = r0.getPhoneNumbersList()\n if (r0 == 0) goto L_0x0011\n goto L_0x0015\n L_0x0011:\n java.util.List r0 = kotlin.collections.C12848o.m33640a()\n L_0x0015:\n androidx.appcompat.app.a$a r1 = new androidx.appcompat.app.a$a\n r1.<init>(r5)\n r2 = 2131231362(0x7f080282, float:1.8078803E38)\n r1.mo527a(r2)\n r2 = 2132018240(0x7f140440, float:1.9674781E38)\n r1.mo548c(r2)\n app.zenly.locator.experimental.inbox.b$a r2 = new app.zenly.locator.experimental.inbox.b$a\n r2.<init>(r4, r6)\n r1.mo530a(r2)\n android.widget.ArrayAdapter r2 = new android.widget.ArrayAdapter\n r3 = 2131624347(0x7f0e019b, float:1.8875871E38)\n r2.<init>(r5, r3, r0)\n app.zenly.locator.experimental.inbox.b$b r3 = new app.zenly.locator.experimental.inbox.b$b\n r3.<init>(r4, r0, r6, r5)\n r1.mo536a(r2, r3)\n androidx.appcompat.app.a r5 = r1.mo542a()\n r5.show()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: app.zenly.locator.experimental.inbox.C3689b.m11061a(android.app.Activity, app.zenly.locator.experimental.inbox.i.a):void\");\n }", "@Override\n public void onPageStarted(WebView webView, String s, Bitmap bitmap) {\n if (getMLoading() != null)\n getMLoading().show();\n if (s.equals(ApiFactory.HOST)) {\n red_ulr = ApiFactory.HOST;\n hostor_url.add(s);\n if (hostor_url != null && hostor_url.size() > 1) {\n hostor_url.clear();\n }\n }\n if (s.equals(ApiFactory.HOST + \"home\")) {\n red_ulr = ApiFactory.HOST + \"home\";\n startActivity(new Intent(ScanWebActivity.this, HomeActivity.class));\n hostor_url.clear();\n finish();\n }\n if (s.equals(ApiFactory.HOST + \"index.php/Home/Index/index\")) {\n red_ulr = ApiFactory.HOST + \"home\";\n startActivity(new Intent(ScanWebActivity.this, HomeActivity.class));\n hostor_url.clear();\n finish();\n }\n if (s.equals(ApiFactory.HOST + \"index.php/Home/Index\") || s.equals(ApiFactory.HOST + \"index.php/Home/Index/\")) {\n if (getWindow() != null && getMLoading().isShowing())\n getMLoading().dismiss();\n red_ulr = ApiFactory.HOST + \"index.php/Home/Index\";\n if (!Utils.isExistMainActivity(ScanWebActivity.this, HomeActivity.class)) {\n startActivity(new Intent(ScanWebActivity.this, HomeActivity.class));\n }\n hostor_url.clear();\n finish();\n }\n\n if (s.equals(ApiFactory.HOST + \"index.php/Home/Login/info\")) {\n UserData.namestatus = \"1\";\n }\n if (s.equals(Web_Url.HOME)) {\n red_ulr = Web_Url.HOME;\n hostor_url.add(s);\n if (hostor_url != null && hostor_url.size() > 0) {\n hostor_url.clear();\n }\n }\n if (s.equals(Web_Url.ME_URL)) {\n red_ulr = Web_Url.ME_URL;\n hostor_url.add(s);\n if (hostor_url != null && hostor_url.size() > 1) {\n hostor_url.clear();\n }\n }\n if (s.equals(Web_Url.SHANGPIN)) {\n red_ulr = Web_Url.SHANGPIN;\n hostor_url.add(s);\n if (hostor_url != null && hostor_url.size() > 1) {\n hostor_url.clear();\n }\n }\n if (s.equals(Web_Url.OREDER_URL)) {\n red_ulr = Web_Url.OREDER_URL;\n hostor_url.add(s);\n if (hostor_url != null && hostor_url.size() > 1) {\n hostor_url.clear();\n }\n }\n// if (s.equals(ApiFactory.HOST + \"index.php/Home/User/redpacket\")) {\n// hostor_url.add(s);\n// red_ulr = ApiFactory.HOST + \"index.php/Home/User/redpacket\";\n// startActivity(new Intent(ScanWebActivity.this, RedPacketListActivity.class));\n// if (hostor_url != null && hostor_url.size() > 0)\n// hostor_url.remove(hostor_url.size() - 1);\n// }\n// if (s.equals(ApiFactory.HOST + \"index.php/Home/User/redpacket.html\")) {\n// hostor_url.add(s);\n// red_ulr = ApiFactory.HOST + \"index.php/Home/User/redpacket.html\";\n// startActivity(new Intent(ScanWebActivity.this, RedPacketListActivity.class));\n// if (hostor_url != null && hostor_url.size() > 0)\n// hostor_url.remove(hostor_url.size() - 1);\n// }\n if (s.equals(ApiFactory.HOST + \"index.php/Home/Login/Login_user.html\")) {\n// ARouter.getInstance().build(\"/activity/login\").navigation();\n startActivity(new Intent(ScanWebActivity.this, LoginActivity.class));\n hostor_url.clear();\n finish();\n }\n if (s.equals(ApiFactory.HOST + \"index.php/Home/Login/index\")) {\n// ARouter.getInstance().build(\"/activity/login\").navigation();\n startActivity(new Intent(ScanWebActivity.this, LoginActivity.class));\n hostor_url.clear();\n finish();\n }\n if (s.equals(ApiFactory.HOST + \"index.php/Home/Login/Login_user\")) {\n startActivity(new Intent(ScanWebActivity.this, LoginActivity.class));\n// ARouter.getInstance().build(\"/activity/login\").navigation();\n hostor_url.clear();\n finish();\n }\n if (s.equals(ApiFactory.HOST + \"index.php/home/UserPass/user_password_passismodify\")) {//强制修改密码\n startActivity(new Intent(ScanWebActivity.this, LoginActivity.class));\n// ARouter.getInstance().build(\"/activity/login\").navigation();\n hostor_url.clear();\n finish();\n }\n if (s.equals(ApiFactory.HOST + \"index.php/home/UserPass/user_password_passismodify.html\")) {//强制修改密码\n startActivity(new Intent(ScanWebActivity.this, LoginActivity.class));\n// ARouter.getInstance().build(\"/activity/login\").navigation();\n hostor_url.clear();\n finish();\n }\n if (s.equals(ApiFactory.HOST + \"index.php/Home/Article/article_list/\")) {\n hostor_url.add(s);\n if (hostor_url != null && hostor_url.size() > 0)\n hostor_url.remove(hostor_url.size() - 1);\n startActivity(new Intent(ScanWebActivity.this, NoticeActivity.class));\n// ARouter.getInstance().build(\"/activity/notice\").navigation();\n }\n }", "@Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject jsonObject) {\n Log.d(\"recon\", \"site found\");\n Log.d(\"recon\", jsonObject.toString());\n try {\n site[0] = jsonObject.getString(\"name\");\n site[1] = jsonObject.getString(\"address\");\n site[2] = jsonObject.getString(\"date\");\n site[4] = jsonObject.getString(\"tokens\");\n site[3] = jsonObject.getString(\"type\");\n site_address.setText(site[1]);\n site_date.setText(site[2]);\n site_name.setText(site[0]);\n if (site[3].contains(\"|\")) {\n String[] split = site[3].split(\"\\\\|\");\n for (String item : split) {\n switch (item) {\n case \"Office\" :\n switch_office.setChecked(true);\n break;\n case \"Bank\" :\n switch_bank.setChecked(true);\n break;\n case \"Strip Mall\" :\n case \"Mall\" :\n switch_mall.setChecked(true);\n break;\n case \"Hotel\" :\n switch_hotel.setChecked(true);\n Log.d(\"recon\", \"hotel ok\");\n break;\n case \"Gas Station\" :\n switch_gas.setChecked(true);\n break;\n case \"Restaurant\" :\n switch_restaurant.setChecked(true);\n break;\n default :\n }\n }\n } else {\n switch (site[3]) {\n case \"Office\" :\n switch_office.setChecked(true);\n break;\n case \"Bank\" :\n switch_bank.setChecked(true);\n break;\n case \"Strip Mall\" :\n case \"Mall\" :\n switch_mall.setChecked(true);\n break;\n case \"Hotel\" :\n switch_hotel.setChecked(true);\n break;\n case \"Gas Station\" :\n switch_gas.setChecked(true);\n break;\n case \"Restaurant\" :\n switch_restaurant.setChecked(true);\n break;\n default :\n }\n }\n\n if (site[4].contains(\"|\")) {\n String[] tokenSet = site[4].split(\"\\\\|\");\n for (String item : tokenSet) {\n tokenOriginals.add(item);\n }\n } else {\n tokenOriginals.add(site[4]);\n }\n //Log.d(\"recon site: \", site[0].toString());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /*//save in DB for login, continue\n ArrayList<AbstractMap.SimpleEntry<String, String>> pairs = new ArrayList<AbstractMap.SimpleEntry<String, String>>();\n pairs.add(new AbstractMap.SimpleEntry(\"site\", site[0].toString()));\n pairs.add(new AbstractMap.SimpleEntry(\"type\", trackerType));\n mydb.updateContact(\"login\", 1, pairs);\n Log.d(\"recon\", \"saved in login okay\");\n\n //save in DB for saved sites\n pairs = new ArrayList<AbstractMap.SimpleEntry<String, String>>();\n //arrayOfElements.add(new elements(issue.getString(\"location\"), issue.getString(\"picture\"), issue.getString(\"notes\"), issue.getString(\"category\"), 0));\n\n pairs.add(new AbstractMap.SimpleEntry(\"location\", address));\n pairs.add(new AbstractMap.SimpleEntry(\"picture\", \"name\"));\n pairs.add(new AbstractMap.SimpleEntry(\"notes\", name));\n pairs.add(new AbstractMap.SimpleEntry(\"tracking\", site[0].toString()));\n pairs.add(new AbstractMap.SimpleEntry(\"category\", trackerType));\n mydb.insertData(\"elements\", pairs);\n Log.d(\"recon\", \"saved in db for saved sites okay\");\n\n //Toast.makeText(getApplicationContext(), site[0].toString(), Toast.LENGTH_LONG).show();\n Bundle dataBundle = new Bundle();\n dataBundle.putString(\"username\", username);\n dataBundle.putString(\"password\", password);\n dataBundle.putString(\"tracking\", site[0].toString());\n dataBundle.putString(\"tracker\", site[0].toString());\n dataBundle.putString(\"trackerType\", trackerType);\n ArrayList<String> newCategory = new ArrayList<String>();\n dataBundle.putString(\"state\", site[0].toString());\n dataBundle.putStringArrayList(\"type\", type);\n dataBundle.putString(\"actionable\", \"newSite\");\n dataBundle.putStringArrayList(\"category\", newCategory);\n\n Intent intent = new Intent(getApplicationContext(), com.equalsd.recon.List.class);\n intent.putExtras(dataBundle);\n startActivity(intent);*/\n\n }", "public static void main(String[] args) \r\n\t{\n\t\tString variable=\"WebDriver\";\r\n\t\tSystem.out.println(\"Variable value is => \"+variable);\r\n\t\t\r\n\t\r\n\t\t//static Array initiation\r\n\t\tString arr[]=new String[4];\r\n\t\t//Adding Data to Static array...\r\n\t\tarr[0]=\"IDE\";\r\n\t\tarr[1]=\"WD\";\r\n\t\tarr[2]=\"GRID\";\r\n\t\tarr[3]=\"Appium\";\r\n\r\n\t\t//Retrieve data from static array...\r\n\t\tSystem.out.println(\"Array second index value is => \"+arr[2]);\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Runtime Array:-->\r\n\t\t * \t\t\t=> During this array programmer store set of\r\n\t\t * \t\t\t\tvalue without defining any boundaries.\r\n\t\t * \t\t\t=> This array store dynamic range of values..\r\n\t\t * \t\t\t=> During runtime array index value organize\r\n\t\t * \t\t\t\tit self.\r\n\t\t */\r\n\t\tString browsers[]= {\"chrome\",\"firefox\",\"ie\",\"safari\",\"opera\"};\r\n\t\tSystem.out.println(\"Runtime array second index value is => \"+browsers[2]);\r\n\t\t\r\n\t\t\r\n\t\t//Integer runtime array\r\n\t\tint num[]= {100,200,300,400,500,600};\r\n\t\tSystem.out.println(\"Second index number value is => \"+num[3]);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Split:-->\r\n\t\t * \t\t=> method belongs to String class, it can split\r\n\t\t * \t\t\tchracters using delimeter.\r\n\t\t */\r\n\t\t\r\n\t\tString email=\"sunil@gmail.com\";\r\n\t\tString new_email[]=email.split(\"@\");\r\n\t\tSystem.out.println(new_email[0]+\" \"+new_email[1]);\r\n\t\t\r\n\t\t\r\n\t\tString mobile=\"+91-90302040506\";\r\n\t\tString new_mobile[]=mobile.split(\"-\");\r\n\t\tSystem.out.println(new_mobile[0]+\" \"+new_mobile[1]);\r\n\t\t\r\n\t\t\r\n\t\tString toolname=\"selenium\";\r\n\t\tchar c[]=toolname.toCharArray();\r\n\t\tSystem.out.println(c[0]+\"\"+c[1]+\"\"+c[2]);\r\n\t\t\r\n\t}", "public interface ApiConfig {\n\n String DYTT_URL = \"http://www.dytt8.net/index.htm\";\n String DY_2018_URL = \"http://www.dy2018.com/\";\n String DYTT_XL = \"http://www.ygdy8.net/html/gndy/index.html\";\n String XIAO_PIAN_URL = \"http://www.xiaopian.com/html/\";\n String PIAO_HUA_URL = \"http://www.piaohua.com/html/\";\n String K_567_URL = \"http://www.567k.info/?\";\n\n interface Type {\n String DYTT = \"dytt\";\n String DY_2018 = \"dy2018\";\n String XIAO_PIAN = \"xiaopian\";\n String PIAO_HUA = \"piaohua\";\n String K_567 = \"k567\";\n\n int DYTT_XL_TYPE = 0;\n int DYTT_CHOSEN_TYPE = 1;\n }\n}", "public interface InventoryPageOR {\n\n String inventoryPage = \"xpath= //div[@class='NavMenuTitle']//span[text()='Inventory']\";\n String aD_type = \"xpath= //select[contains(@id,'AdType_DropDownList1')]\";\n String mediaGroupField = \"xpath= //select[contains(@id,'MediumGroup_DropDownList1')]\";\n String Mediabox = \"xpath= //select[contains(@id,'Media_ListBox1')]\";\n String selection = \"xpath= //select[contains(@id, 'Section_ListBox1')]\";\n String inventory_placement = \"xpath= //select[contains(@id, 'Inventory_ListBox1')]\";\n String period = \"xpath= //select[contains(@id,'BkingPeriod_ddlPeriod')]\";\n String pages = \"xpath= //input[contains(@id,'blInventoryView_1')]\";\n String matrix = \"xpath= //input[@id='ctl00_cphMain_srch03_rblInventoryView_0']\";\n String list = \"css= #ctl00_cphMain_srch02_rblInventoryView_2\";\n String Adsize = \"xpath= //select[contains(@id,'AdSize_DropDownList1')]\";\n String get_inventory = \"xpath= //input[contains(@id,'btnGetInventory')]\";\n String mediatype = \"xpath= //select[@id='ctl00_cphMain_srch01_lbMedia_ListBox1']//option[@value='GAZE']\";\n String newSearch = \"css= input[value='New Search']\";\n String screenlock = \"css= .inv_wait\";\n String selectplusiconforbydate = \"xpath= //td[@class='%s']/../..//input[@class='InvResultCol Select linkButton new']\";\n String housingGarden = \"css= tr [title = 'www.houseandgarden.com']\";\n String startAndEnddate = \"xpath= //tr[@title = 'www.houseandgarden.com']/..//tr[@title='www.houseandgarden.com - Run of Site']/td[%d]\";\n String startAndEnddateofbridge = \"xpath= //tr[@title = 'www.bridesmagazine.com']/..//tr[@title='www.bridesmagazine.com - Run of Site']/td[%d]\";\n String verifyIteminCart = \"css= #tabs-li-cart a#acart\";\n String addtoCart = \"xpath= //li//a[contains(text(), 'Add to cart')]\";\n String torange = \"css= #ctl00_cphMain_srch02_ucBkingPeriod_dteRangeTo_iwdcDate_input\";\n String customer = \"css= #ctl00_cphMain_ucCart_btnCustomer\";\n String companyName = \"css= #ctl00_cphMain_ucCustomer_ctlModalBuyerCompany_btnModal\";\n String contactName = \"css= #ctl00_cphMain_ucCustomer_ctlModalBuyerContact_btnModal\";\n String companyNameField = \"css= #Search_FieldSelect0_txtValue1\";\n String searchButton = \"css= #Search_GoButton\";\n String selectCompany = \"css= .ig_5aac757b_rcb1112.SelectionSearch.btnOpenSite\";\n String selectContact = \"css= .ig_5aac757b_rcb1112.SelectionSearch.btnOpenContact\";\n\n\n}", "public interface Config {\n String BASE_URL = \"http://www.chahuitong.com/\";\n\n String BASE_GOODS_DETAIL_URL = BASE_URL + \"wap/index.php/Home/Index/goods?goods_id=\";\n\n String BASE_GOODS_BODY_URL = BASE_URL + \"mobile/index.php?act=goods&op=goods_body&goods_id=\";\n\n /** 默认订单列表是否获取支付方式 */\n boolean DEFAULT_GET_PAYMENT = false;\n\n /** 默认列表页每页显示数量 */\n int DEFAULT_PAGE_SIZE = 20;\n\n // 这是Bmob的ApplicationId,用于初始化操作\n String applicationId = \"c9a6c7e8fe89e14a6458ed592209e96c\";\n\n // shopNc md5\n String MD5_KEY = \"804451dc13014b1c785fb73b1617b760\";\n\n // 用于服务端判断客户端类型\n String CLIENT_TYPE = \"android\";\n\n // 微信appID、appSecret\n String WX_ID = \"wx025bfd51ec3b664a\";\n String WX_SECRET =\"cdfc0e3a367f44bf4b22e41b4073f274\";\n\n // 微博appID appSecret\n String WB_ID = \"848852268\";\n String WB_SECRET = \"c312c8076d3289a648e7663787cfea86\";\n\n // QQ appID appSecret\n String QQ_ID = \"1104563629\";\n String QQ_SECRET = \"rJbMttJCa47MBsCk\";\n}", "lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPageHelper();", "lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPageHelper();", "lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPageHelper();", "@Override\n public void onSuccess(PendingDynamicLinkData pendingDynamicLinkData) {\n Uri deepLink = null;\n if (pendingDynamicLinkData != null) {\n deepLink = pendingDynamicLinkData.getLink();\n\n //String url = deepLink.toString(); https://www.m8s.world/1CV9P8\n String url = method(deepLink.toString());\n Log.d(\"+++++\", \"++ url deep ++\" + url.charAt(12));\n Log.d(\"+++++\", \"++ url deep ++\" + url);\n //Toast.makeText(HomeActivity.this, \"\"+url.charAt(13), Toast.LENGTH_SHORT).show();\n if (url.charAt(12) == 'm') {\n if (url != null) {\n if (dialog!=null)\n dialog.dismiss();\n DescrptedFragment descrptedFragment = new DescrptedFragment();\n Bundle bundle = new Bundle();\n descrptedFragment.setArguments(bundle);\n bundle.putString(\"deeplink\", url.toString());\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.framelayout, descrptedFragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }\n } else {\n\n if (url.charAt(11) == 'm') {\n if (url.contains(\"=\"))\n {\n if (dialog!=null)\n dialog.dismiss();\n String[] separated = url.split(\"=\");\n String[] separateditem = separated[1].split(\"&\");\n DetailsFragment descrptedFragment = new DetailsFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"deeplink\", url.toString());\n bundle.putString(\"ItemId\", separateditem[0]);\n descrptedFragment.setArguments(bundle);\n Log.d(\"+++++\", \"++ url deep ++\" + separateditem[0]);\n Log.d(\"+++++\", \"++ url deep ++\" + separated[2]);\n SharedToken sharedToken = new SharedToken(HomeActivity.this);\n sharedToken.setCatid(separated[2]);\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.framelayout, descrptedFragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }\n else\n {\n if (dialog!=null)\n dialog.dismiss();\n SplashScreen.code = deepLink.toString().substring(deepLink.toString().lastIndexOf('/') + 1);\n Intent intent = new Intent(HomeActivity.this, SplashScreen.class);\n startActivity(intent);\n\n finish();\n }\n\n }\n else {\n if (dialog!=null)\n dialog.dismiss();\n SplashScreen.code = deepLink.toString().substring(deepLink.toString().lastIndexOf('/') + 1);\n Intent intent = new Intent(HomeActivity.this, SplashScreen.class);\n startActivity(intent);\n\n finish();\n }\n }\n\n //Log.d(\"deeplink\", \"\" + code);\n }\n // ...\n }", "@SuppressWarnings(\"unused\")\npublic interface Constants {\n /**\n * Extra data key. Used with intent or some others.\n */\n class Extras {\n public static final String TAG = \"ext_tag\";\n public static final String FLAG = \"ext_flag\";\n public static final String DATA = \"ext_data0\";\n public static final String DATA_1 = \"ext_data1\";\n public static final String DATA_2 = \"ext_data2\";\n public static final String DATA_3 = \"ext_data3\";\n public static final String DATA_4 = \"ext_data4\";\n public static final String DATA_5 = \"ext_data5\";\n public static final String DATA_6 = \"ext_data6\";\n public static final String DATA_7 = \"ext_data7\";\n public static final String DATA_8 = \"ext_data8\";\n public static final String GRADE_INFO = \"ext_grade_info\";\n public static final String MEMBER_VP_INFO = \"ext_member_vp_info\";\n public static final String MEMBER_VP_POSITION = \"ext_member_vp_position\";\n }\n\n\n}", "public static void main(String[] args) throws MalformedURLException, InterruptedException {\n\t\t\t\tDesiredCapabilities capabilities= new DesiredCapabilities();\r\n\t\t\t\t\t\t\r\n\t\t\t\t//device details\r\n\t\t\t\tcapabilities.setCapability(\"deviceName\",\"GT-I9300I\");\r\n\t\t\t\tcapabilities.setCapability(\"platformName\",\"Android\");\r\n\t\t\t\tcapabilities.setCapability(\"platformVersion\",\"4.4.4\");\t\t\r\n\t\t\t\t\r\n\t\t\t\t//app details\r\n\t\t\t\tcapabilities.setCapability(\"appPackage\",\"com.emn8.mobilem8.nativeapp.bk\");\r\n\t\t\t\tcapabilities.setCapability(\"appActivity\",\"com.emn8.mobilem8.nativeapp.bk.BKNativeMobileApp\");\r\n\t\t\t\t\r\n\t\t\t\t//Appium Server details\r\n\t\t\t\tAndroidDriver driver= new AndroidDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\r\n\t\t\t\t\r\n\t\t\t\t//wait\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\t\r\n\t\t\t\tSet<String> contextHandles = driver.getContextHandles();\r\n\t\t\t\tint size = contextHandles.size();\r\n\t\t\t\tSystem.out.println(size);\r\n\t\t\t\t\r\n\t\t\t\t//****************************************************\r\n\t\t\t\tfor(String contextname:contextHandles)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"First Page\");\r\n\t\t\t\t\tSystem.out.println(contextname);\r\n\t\t\t\t\tSystem.out.println(\"-------------------\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contextname.contains(\"NATIVE\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdriver.context(contextname);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tWebDriverWait wait= new WebDriverWait(driver, 50);\r\n\t\t\t\tWebElement ele_voucher = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@index='9'][@content-desc='VOUCHERS'][@class='android.view.View']\")));\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Voucher is displayed \"+ele_voucher.isDisplayed());\r\n\t\t\t\t\r\n\t\t\t\tele_voucher.click();\r\n\t\t\t\t\r\n\t\t\t\t//**************************************************************\r\n\t\t\t\t//Second page\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\tfor(String contextname:contextHandles)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Second Page\");\r\n\t\t\t\t\tSystem.out.println(contextname);\r\n\t\t\t\t\tSystem.out.println(\"-------------------\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contextname.contains(\"NATIVE\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdriver.context(contextname);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tWebDriverWait wait2= new WebDriverWait(driver, 50);\r\n\t\t\t\tWebElement ele_redeem = wait2.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@index='17'][@content-desc='REDEEM'][@class='android.view.View']\")));\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Redeem is displayed \"+ele_redeem.isDisplayed());\r\n\t\t\t\t\r\n\t\t\t\tele_redeem.click();\r\n\t\t\t\t//**************************************************************\r\n\t\t\t\t//Third page\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\tfor(String contextname:contextHandles)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Third Page\");\r\n\t\t\t\t\tSystem.out.println(contextname);\r\n\t\t\t\t\tSystem.out.println(\"-------------------\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contextname.contains(\"WEBVIEW\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdriver.context(contextname);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tdriver.findElementByName(\"email\").sendKeys(\"nov@gmail.com\");\r\n\t\t\t\tWebElement ele_pwd = driver.findElementByName(\"password\");\r\n\t\t\t\tele_pwd.click();\r\n\t\t\t\t\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\tele_pwd.sendKeys(\"1234\");\r\n\t\t\t\t\r\n\t\t\t\t//********************************************************\r\n\t\t\t\t\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\t\r\n\t\t\t\tfor(String contextname:contextHandles)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Third Page\");\r\n\t\t\t\t\tSystem.out.println(contextname);\r\n\t\t\t\t\tSystem.out.println(\"-------------------\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contextname.contains(\"NATIVE\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdriver.context(contextname);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tWebDriverWait wait3= new WebDriverWait(driver, 50);\r\n\t\t\t\tWebElement ele_Signin = wait3.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@index='33'][@content-desc='SIGN IN'][@class='android.view.View']\")));\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Signin is displayed \"+ele_Signin.isDisplayed());\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public interface HomePageConstants {\r\n\tpublic static final String MYTASKS=\"html/body/div[1]/div[1]/div/div[2]/ul[1]/li[2]/a\";\r\n}", "public String toString()\r\n\t{\r\n\t\tString UrlValues = \"\"+this.stringID+\";\"+this.baseUrl+\";\"+this.redirectedUrl+\";\"+this.responseCode+\";\"+this.exceptionOccurred+\";\"+this.configUrlPattern+\";\"+this.configRedirectedUrlPattern+\";\"+this.configEngUrl+\";\"+this.configEngRedirectedUrl+\";\"+this.isErrorPage+\";\"+this.isDeleted+\";\"+this.baseUrlPatternMatchResult+\";\"+this.redirectedUrlPatternMatchResult+\";\"+this.isBaseUrlLocalized+\";\"+this.isRedirectedUrlLocalized+\";\"+this.followsConfigUrlPattern+\";\"+this.followsConfigRedirectedUrlPattern+\";\";\r\n\t\treturn UrlValues;\r\n\t}", "public interface Constant {\n\n String ACCESSIBILITY_SERVICE = \"github.hellocsl.smartmonitor/github.hellocsl.smartmonitor.VideoAccessibilityService\";\n\n String QQ_PKG = \"com.tencent.mobileqq\";\n\n String QQ_NUMBER = \"929371293\";\n\n String DIALER = \"com.google.android.dialer\";\n\n String MONITOR_CMD_VIDEO = \"monitor_cmd_video\";\n\n String MONITOR_TAG = \"WaterMonitor\";\n\n String MONITOR_CMD_RESET = \"110\";\n\n String MEIZU_IN_CALL_PKG = \"com.android.incallui\";\n\n //NEXUS 5\n String N5_MODEL = \"Nexus 5\";\n\n //MEIZU\n String MX_MODEL = \"mx\";\n\n\n}", "private static void m1853a(Activity activity, String[] strArr) {\n StringBuilder sb = new StringBuilder();\n int i = 0;\n while (i < strArr.length) {\n sb.append(\" \");\n int i2 = i + 1;\n sb.append(i2);\n sb.append('.');\n sb.append(activity.getString(C0517e.f2297k.get(strArr[i]).intValue()));\n sb.append(10);\n i = i2;\n }\n m1852a(activity, activity.getString(C0462R.string.string_permission_request_message, new Object[]{sb.toString()}), (DialogInterface.OnClickListener) new C0535b(activity));\n }", "public String dispaly(String result, String which) {\n String fword=\"\";\n String dump=result;\n Log.i(\"result \"+which,result);\n if(result!=null){\n result=result.replaceAll(\"lang=en\",\"\");\n String ts;\n if(result.contains(\"[[\")||result.contains(\"{{\"))\n {\tdump=dump.replaceAll(\"[^a-zA-Z0-9.\\\\[\\\\]|,;}\\\\s+]\", \"\").trim();\n if(dump.startsWith(\"[[\"))\n {\n int i=result.indexOf(\"[[\");\n int j=result.indexOf(\"]]\");\n fword=result.substring(i,j);\n int k=fword.indexOf('|');\n fword=fword.substring(k+1);\n //System.out.println(\"First Word \"+fword);\n //System.out.println(\"FIND \"+result);\n result=result.substring(j+2);\n //\tSystem.out.println(\"FIND \"+result);\n result=fword.concat(result);\n result=result.replace('|',' ');\n\n }\n else\n {\n System.out.println(\"Esle called \"+result);\n dump=dump.replaceAll(\"[^a-zA-Z0-9.\\\\[\\\\]|,;}\\\\s+]\", \"\").trim();\n String arr[]=dump.split(\" \");\n for(int aa=0;aa<arr.length;aa++)\n {\n\n if(arr[aa].contains(\"[[\")&&arr[aa].contains(\"|\"))\n {\n //System.out.println(arr[aa]);\n String min=arr[aa];\n //System.out.println(\"MINNN \"+min);\n int x=min.indexOf(\"[[\");\n int y=min.indexOf(\"|\");\n min=min.substring(y+1);\n //System.out.println(min);\n result=result.replace(arr[aa], min);\n }\n }\n result=result.replace('|',' ');\n }\n }\n //if(result.matches(\"[[[a-zA-Z|]\"))\n send+=\"<h3>\"+which+\"</h3>\"+\"\\n\";\n // System.out.println(\"Meaning for \"+which);\n if(result.contains(\"}}\"))\n {\n int resultindex=result.indexOf(\"}}\");\n //\t System.out.println(resultindex);\n result=result.substring(resultindex);\n }\n\n result = result.replaceAll(\"[^a-zA-Z0-9.,;\\\\s+]\", \"\");\n result=result.replaceAll(\";\",\".\\n\");\n\n // result.endsWith(\".\");\n // System.out.println(result);\n int newline=0;\n for(int i=0;i<result.length();i++)\n {\n if(result.charAt(i)=='\\n')\n {\n newline++;\n }\n }\n\n // System.out.println(\"New Line \"+newline);\n for(int i=0;i<newline;i++)\n {\n int nn=result.indexOf(\"\\n\");\n // System.out.println(\"First line \"+nn);\n String res=result.substring(0,nn);\n result=result.substring(nn+1);\n // System.out.println(res);\n send+=res+\"\\n\";\n }\n int nn=result.indexOf(\"\\n\");\n\n\n result=result.substring(nn+1);\n send+=result+\"\\n\";\n // System.out.println(result);\n /* fword=fword.trim();\n if(!fword.isEmpty())\n {\n\n fword=fword.concat(\" \");\n // send=fword+send;\n send=fword.concat(send);\n\n // System.out.println(\"Called\");\n return send;\n }*/\n\n\n\n }\n /*else {\n result1.setText(\"Wrorng\");\n send+=\"Enter Correct word\";\n // System.out.println(\"Enter correct word\");\n return \"Wrong\";\n }*/\n\n return send;\n }", "public interface API {\n\n String ZHIHU_DAILY_BEFORE = \"http://news.at.zhihu.com/api/4/news/before/\";\n String ZHIHU_DAILY_OFFLINE_NEWS = \"http://news-at.zhihu.com/api/4/news/\";\n String SEARCH = \"http://zhihudailypurify.herokuapp.com/search/\";\n\n}", "private void m7136b(String str) {\n String str2;\n C1588d dVar = new C1588d(getApplicationContext(), new C1576b(this));\n JSONObject jSONObject = null;\n try {\n JSONObject jSONObject2 = new JSONObject(str);\n str2 = jSONObject2.getString(C1584a.f7161e);\n try {\n if (!TextUtils.isEmpty(str2)) {\n JSONObject jSONObject3 = jSONObject2.getJSONObject(\"param\");\n if (jSONObject3 instanceof JSONObject) {\n jSONObject = jSONObject3;\n }\n String string = jSONObject2.getString(C1584a.f7163g);\n String string2 = jSONObject2.getString(C1584a.f7160d);\n C1584a aVar = new C1584a(\"call\");\n aVar.f7166j = string2;\n aVar.f7167k = string;\n aVar.f7169m = jSONObject;\n aVar.f7165i = str2;\n dVar.mo14464a(aVar);\n }\n } catch (Exception unused) {\n if (TextUtils.isEmpty(str2)) {\n }\n }\n } catch (Exception unused2) {\n str2 = null;\n if (TextUtils.isEmpty(str2)) {\n try {\n dVar.mo14465a(str2, C1584a.EnumC1585a.f7174d);\n } catch (JSONException unused3) {\n }\n }\n }\n }", "public void mo34874a(String str) {\n Class<C9780c> cls = C9780c.class;\n boolean[] a = m45645a();\n try {\n C9780c.m45630a(this.f25962b, System.currentTimeMillis(), this.f25961a);\n a[1] = true;\n InstabugSDKLogger.m46622d(cls, \"Features fetched successfully\");\n a[2] = true;\n JSONObject jSONObject = new JSONObject(str);\n a[3] = true;\n boolean optBoolean = jSONObject.optBoolean(\"crash_reporting\", true);\n a[4] = true;\n this.f25962b.mo34866a(Feature.CRASH_REPORTING, optBoolean);\n a[5] = true;\n boolean optBoolean2 = jSONObject.optBoolean(\"push_notifications\", true);\n a[6] = true;\n this.f25962b.mo34866a(Feature.PUSH_NOTIFICATION, optBoolean2);\n a[7] = true;\n boolean optBoolean3 = jSONObject.optBoolean(\"white_label\", true);\n a[8] = true;\n this.f25962b.mo34866a(Feature.WHITE_LABELING, optBoolean3);\n a[9] = true;\n boolean optBoolean4 = jSONObject.optBoolean(\"in_app_messaging\", true);\n a[10] = true;\n this.f25962b.mo34866a(Feature.IN_APP_MESSAGING, optBoolean4);\n a[11] = true;\n boolean optBoolean5 = jSONObject.optBoolean(\"multiple_attachments\", true);\n a[12] = true;\n this.f25962b.mo34866a(Feature.MULTIPLE_ATTACHMENTS, optBoolean5);\n String str2 = com.instabug.library.model.State.KEY_USER_STEPS;\n a[13] = true;\n boolean optBoolean6 = jSONObject.optBoolean(str2, true);\n a[14] = true;\n this.f25962b.mo34866a(Feature.TRACK_USER_STEPS, optBoolean6);\n a[15] = true;\n boolean optBoolean7 = jSONObject.optBoolean(\"repro_steps\", true);\n a[16] = true;\n this.f25962b.mo34866a(Feature.REPRO_STEPS, optBoolean7);\n String str3 = com.instabug.library.model.State.KEY_CONSOLE_LOG;\n a[17] = true;\n boolean optBoolean8 = jSONObject.optBoolean(str3, true);\n a[18] = true;\n this.f25962b.mo34866a(Feature.CONSOLE_LOGS, optBoolean8);\n a[19] = true;\n boolean optBoolean9 = jSONObject.optBoolean(\"ibg_log\", true);\n a[20] = true;\n this.f25962b.mo34866a(Feature.INSTABUG_LOGS, optBoolean9);\n a[21] = true;\n boolean optBoolean10 = jSONObject.optBoolean(com.instabug.library.model.State.KEY_USER_DATA, true);\n a[22] = true;\n this.f25962b.mo34866a(Feature.USER_DATA, optBoolean10);\n a[23] = true;\n boolean optBoolean11 = jSONObject.optBoolean(\"surveys\", true);\n a[24] = true;\n this.f25962b.mo34866a(Feature.SURVEYS, optBoolean11);\n String str4 = BugEntry.COLUMN_VIEW_HIERARCHY;\n a[25] = true;\n boolean optBoolean12 = jSONObject.optBoolean(str4, true);\n a[26] = true;\n this.f25962b.mo34866a(Feature.VIEW_HIERARCHY, optBoolean12);\n a[27] = true;\n boolean optBoolean13 = jSONObject.optBoolean(\"user_events\", true);\n a[28] = true;\n this.f25962b.mo34866a(Feature.USER_EVENTS, optBoolean13);\n a[29] = true;\n boolean optBoolean14 = jSONObject.optBoolean(\"disclaimer_text\", false);\n a[30] = true;\n this.f25962b.mo34866a(Feature.DISCLAIMER, optBoolean14);\n a[31] = true;\n boolean optBoolean15 = jSONObject.optBoolean(com.instabug.library.model.State.KEY_SESSIONS_PROFILER, true);\n a[32] = true;\n this.f25962b.mo34866a(Feature.SESSION_PROFILER, optBoolean15);\n a[33] = true;\n boolean optBoolean16 = jSONObject.optBoolean(\"feature_requests\", true);\n a[34] = true;\n this.f25962b.mo34866a(Feature.FEATURE_REQUESTS, optBoolean16);\n a[35] = true;\n boolean optBoolean17 = jSONObject.optBoolean(\"vp_customizations\", false);\n a[36] = true;\n this.f25962b.mo34866a(Feature.VP_CUSTOMIZATION, optBoolean17);\n a[37] = true;\n SDKCoreEventPublisher.post(new SDKCoreEvent(\"features\", Feature.VALUE_FETCHED));\n a[38] = true;\n } catch (JSONException e) {\n a[39] = true;\n InstabugSDKLogger.m46624e(cls, \"Something went wrong while parsing fetching features request's response\", e);\n a[40] = true;\n }\n a[41] = true;\n }", "public String getDimensionPresupuesto()\r\n/* 217: */ {\r\n/* 218:256 */ OrganizacionConfiguracion aux = AppUtil.getOrganizacion().getOrganizacionConfiguracion();\r\n/* 219:257 */ String numeroDimension = \"\";\r\n/* 220:258 */ if ((!aux.getNombreDimension1().equals(\"\")) && (aux.isIndicadorUsoPresupuestoDimension1()))\r\n/* 221: */ {\r\n/* 222:259 */ this.arregloMascara = aux.getMascaraDimension1().split(\"\\\\.\");\r\n/* 223:260 */ numeroDimension = \"1\";\r\n/* 224: */ }\r\n/* 225:261 */ else if ((!aux.getNombreDimension2().equals(\"\")) && (aux.isIndicadorUsoPresupuestoDimension2()))\r\n/* 226: */ {\r\n/* 227:262 */ this.arregloMascara = aux.getMascaraDimension2().split(\"\\\\.\");\r\n/* 228:263 */ numeroDimension = \"2\";\r\n/* 229: */ }\r\n/* 230:264 */ else if ((!aux.getNombreDimension3().equals(\"\")) && (aux.isIndicadorUsoPresupuestoDimension3()))\r\n/* 231: */ {\r\n/* 232:265 */ this.arregloMascara = aux.getMascaraDimension3().split(\"\\\\.\");\r\n/* 233:266 */ numeroDimension = \"3\";\r\n/* 234: */ }\r\n/* 235:267 */ else if ((!aux.getNombreDimension4().equals(\"\")) && (aux.isIndicadorUsoPresupuestoDimension4()))\r\n/* 236: */ {\r\n/* 237:268 */ this.arregloMascara = aux.getMascaraDimension4().split(\"\\\\.\");\r\n/* 238:269 */ numeroDimension = \"4\";\r\n/* 239: */ }\r\n/* 240:270 */ else if ((!aux.getNombreDimension5().equals(\"\")) && (aux.isIndicadorUsoPresupuestoDimension5()))\r\n/* 241: */ {\r\n/* 242:271 */ this.arregloMascara = aux.getMascaraDimension5().split(\"\\\\.\");\r\n/* 243:272 */ numeroDimension = \"5\";\r\n/* 244: */ }\r\n/* 245:274 */ return numeroDimension;\r\n/* 246: */ }", "public final String[] mo24226W(C7620bi c7620bi) {\n int i = 1;\n AppMethodBeat.m2504i(113302);\n String[] strArr = new String[2];\n String str = c7620bi.field_content;\n if (C5046bo.isNullOrNil(str)) {\n strArr[0] = \"\";\n strArr[1] = \"\";\n AppMethodBeat.m2505o(113302);\n return strArr;\n }\n int i2;\n String str2;\n if (c7620bi.field_isSend == 0) {\n i2 = 1;\n } else {\n i2 = 0;\n }\n if (C1855t.m3896kH(c7620bi.field_talker) && i2 != 0) {\n i2 = C1829bf.m3761ox(str);\n if (i2 != -1) {\n str = str.substring(i2 + 1).trim();\n }\n }\n C5136b Ro = ((C6982j) C1720g.m3528K(C6982j.class)).bOr().mo15261Ro(str);\n if (Ro.dua()) {\n str = Ro.label;\n str2 = Ro.eUu;\n strArr[0] = str;\n strArr[1] = str2;\n } else {\n strArr[0] = Ro.label;\n strArr[1] = \"\";\n }\n if (C5046bo.isNullOrNil(strArr[0]) && C5046bo.isNullOrNil(strArr[1])) {\n C4990ab.m7416i(\"MicroMsg.LocationServer\", \"pull from sever\");\n long j = c7620bi.field_msgId;\n if (!(this.nJC == null || this.nJC.contains(Long.valueOf(j)))) {\n str2 = c7620bi.field_content;\n if (c7620bi.field_isSend != 0) {\n i = 0;\n }\n if (C1855t.m3896kH(c7620bi.field_talker) && i != 0) {\n i = C1829bf.m3761ox(str2);\n if (i != -1) {\n str2 = str2.substring(i + 1).trim();\n }\n }\n Ro = C5136b.apD(str2);\n this.nJC.add(Long.valueOf(j));\n C18657c.agw().mo33924a(Ro.nJu, Ro.nJv, this.nJD, Long.valueOf(c7620bi.field_msgId));\n }\n }\n AppMethodBeat.m2505o(113302);\n return strArr;\n }", "void mo2199a(String[] strArr) {\n this.notificationDefaults = Integer.parseInt(strArr[1]);\n this.notificationFlags = Integer.parseInt(strArr[2]);\n this.statusBarDrawable = Integer.parseInt(strArr[3]);\n if (5 == strArr.length) {\n this.developerArg0 = strArr[4];\n }\n }", "public void findDataFromServer() {\n try {\n JSONObject jsonObjectGetPostParameterEachScreen = null;\n PassParameterbean passParameterbean = null;\n if (pageTokenAvailable) {\n searchbean_post_data.setPageToken(pageToken);\n }\n\n if (TextUtils.isEmpty(baseTextview_searched_item.getText().toString())) {\n\n } else {\n String name = URLEncoder.encode(baseTextview_searched_item.getText().toString(), \"utf-8\");\n searchbean_post_data.setSearchText(name);\n }\n\n\n searchbean_post_data.setIsCommuntiySearchByName(\"1\");\n searchbean_post_data.setUser_id(commonSession.getLoggedUserID());\n requestParametersbean.setSearchbeanPassPostData(searchbean_post_data);\n\n jsonObjectGetPostParameterEachScreen = GetPostParameterEachScreen.getPostParametersAccordingIndex(ScreensEnums.SEARCH_BY_COMMUNITYNAME.getScrenIndex(), requestParametersbean);\n passParameterbean = new PassParameterbean(this, CommunitySearchByNameActivity.this, getApplicationContext(), URLs.SEARCH_BY_COMMUNITYNAME, jsonObjectGetPostParameterEachScreen, ScreensEnums.SEARCH_BY_COMMUNITYNAME.getScrenIndex(), CommunitySearchByNameActivity.class.getClass());\n\n\n /* requestParametersbean.setUserId(commonSession.getLoggedUserID());\n requestParametersbean.setStart_limit(current_start);\n\n jsonObjectGetPostParameterEachScreen = GetPostParameterEachScreen.getPostParametersAccordingIndex(ScreensEnums.FILTER_COMMUNITY.getScrenIndex(), requestParametersbean);\n passParameterbean = new PassParameterbean(this, CommunitySearchByNameActivity.this, getApplicationContext(), URLs.FILTERCOMMUNITY, jsonObjectGetPostParameterEachScreen, ScreensEnums.FILTER_COMMUNITY.getScrenIndex(), CommunitySearchByNameActivity.class.getClass());\n*/\n\n\n passParameterbean.setNoNeedToDisplayLoadingDialog(true);\n new RequestToServer(passParameterbean, retryParameterbean).execute();\n\n\n } catch (Exception e) {\n e.printStackTrace();\n new BaseException(e, false, retryParameterbean);\n }\n }", "private void setStrings(){\n ip = context.getResources().getString(R.string.ip);\n port = context.getResources().getString(R.string.port);\n dbName = context.getResources().getString(R.string.db_name);\n user = context.getResources().getString(R.string.masterUser);\n pass = context.getResources().getString(R.string.masterPass);\n }", "private static String m1472a(String str, String str2, Integer num, Integer num2, JSONObject jSONObject, Integer num3) {\n return String.format(Locale.ROOT, \"<html><head></head><body><div id=\\\"%s\\\" style=\\\"width: %dpx; height: %dpx;\\\"></div><script>(function initMoatTracking(apiname, pcode, ids, duration) {var events = [];window[pcode + '_moatElToTrack'] = document.getElementById('%s');var moatapi = {'dropTime':%d,'adData': {'ids': ids, 'duration': duration, 'url': 'n/a'},'dispatchEvent': function(ev) {if (this.sendEvent) {if (events) { events.push(ev); ev = events; events = false; }this.sendEvent(ev);} else {events.push(ev);}},'dispatchMany': function(evs){for (var i=0, l=evs.length; i<l; i++) {this.dispatchEvent(evs[i]);}}};Object.defineProperty(window, apiname, {'value': moatapi});var s = document.createElement('script');s.src = 'https://z.moatads.com/' + pcode + '/moatvideo.js?' + apiname + '#' + apiname;document.body.appendChild(s);})('%s', '%s', %s, %s);</script></body></html>\", new Object[]{\"mianahwvc\", num, num2, \"mianahwvc\", Long.valueOf(System.currentTimeMillis()), str, str2, jSONObject.toString(), num3});\n }", "private static void m751a(Activity activity, String str, String str2, String str3) {\n if (!TextUtils.isEmpty(str2) && !TextUtils.isEmpty(str3)) {\n Intent intent = new Intent();\n try {\n intent.setPackage(\"hk.alipay.wallet\");\n intent.setData(Uri.parse(\"alipayhk://platformapi/startApp?appId=20000125&schemePaySession=\" + URLEncoder.encode(str, Utf8Charset.NAME) + \"&orderSuffix=\" + URLEncoder.encode(str2, Utf8Charset.NAME) + \"&packageName=\" + URLEncoder.encode(str3, Utf8Charset.NAME) + \"&externalPkgName=\" + URLEncoder.encode(str3, Utf8Charset.NAME)));\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n C0646c.m1017b(\"msp\", \"PayTask:payReuslt: UnsupportedEncodingException:\" + e);\n }\n if (activity != null) {\n activity.startActivity(intent);\n }\n }\n }", "private void initData() {\r\n allElements = new Vector<PageElement>();\r\n\r\n String className = Utility.getDisplayName(queryResult.getOutputEntity());\r\n List<AttributeInterface> attributes = Utility.getAttributeList(queryResult);\r\n int attributeSize = attributes.size();\r\n //int attributeLimitInDescStr = (attributeSize < 10) ? attributeSize : 10;\r\n\r\n Map<String, List<IRecord>> allRecords = queryResult.getRecords();\r\n serviceURLComboContents.add(\" All service URLs \");\r\n for (String url : allRecords.keySet()) {\r\n\r\n List<IRecord> recordList = allRecords.get(url);\r\n \r\n StringBuilder urlNameSize = new StringBuilder( url );\r\n urlNameSize = new StringBuilder( urlNameSize.substring(urlNameSize.indexOf(\"//\")+2));\r\n urlNameSize = new StringBuilder(urlNameSize.substring(0,urlNameSize.indexOf(\"/\")));\r\n urlNameSize.append(\" ( \" + recordList.size() + \" )\");\r\n serviceURLComboContents.add(urlNameSize.toString());\r\n Vector<PageElement> elements = new Vector<PageElement>();\r\n for (IRecord record : recordList) {\r\n StringBuffer descBuffer = new StringBuffer();\r\n for (int i = 0; i < attributeSize; i++) {\r\n Object value = record.getValueForAttribute(attributes.get(i));\r\n if (value != null) {\r\n if (i != 0) {\r\n descBuffer.append(',');\r\n }\r\n descBuffer.append(value);\r\n }\r\n }\r\n String description = descBuffer.toString();\r\n // if (description.length() > 150) {\r\n // //150 is allowable chars at 1024 resolution\r\n // description = description.substring(0, 150);\r\n // //To avoid clipping of attribute value in-between\r\n // int index = description.lastIndexOf(\",\");\r\n // description = description.substring(0, index);\r\n // }\r\n PageElement element = new PageElementImpl();\r\n element.setDisplayName(className + \"_\" + record.getRecordId().getId());\r\n element.setDescription(description);\r\n\r\n DataRow dataRow = new DataRow(record, queryResult.getOutputEntity());\r\n dataRow.setParent(parentDataRow);\r\n dataRow.setAssociation(queryAssociation);\r\n\r\n Vector recordListUserObject = new Vector();\r\n recordListUserObject.add(dataRow);\r\n recordListUserObject.add(record);\r\n\r\n element.setUserObject(recordListUserObject);\r\n\r\n allElements.add(element);\r\n elements.add(element);\r\n }\r\n URLSToResultRowMap.put(urlNameSize.toString(), elements);\r\n }\r\n }", "private String m81849m() {\n String str;\n if (this.f58083o) {\n str = UrlUtil.m84496b(UrlUtil.m84494a(this.f58071c, C6969H.m41409d(\"G738BEA0FAD3C\")));\n } else {\n str = this.f58070b;\n }\n if (!TextUtils.isEmpty(str)) {\n this.f58072d = Uri.parse(str);\n }\n return str;\n }", "private static void TestMetaQ() {\n\t\t\r\n\t\tJSONObject ployInfo = new JSONObject();\r\n//\t\tployInfo = JSONObject.fromObject(\"{'__OP_FLAG__': 'new','__TEMPLATE_ID__': 5800,'expDate': '2017-12-01 00:00:00','relOpers': [{'__OP_FLAG__': 'new','operId': '191000000004'},{'__OP_FLAG__': 'new','operId': '191000000016'}],'relRoles': {'__OP_FLAG__': 'new','roleName': '手机主角色','roleId': '181000000001'},'relRoles_roleName': '手机主角色','relFriendOffers': {'__OP_FLAG__': 'new','offerId': '0'},'relProds': [{'prodId': '390000050347','prodName': '充值送礼活动用户预存','optionType': '0','rowDataId': '0','__OP_FLAG__': 'new','relId': '0'}],'relRegions': [{'regionId': '1','regionName': 'RBOSS营业厅','saleStartTime': '','saleEndTime': '','rowDataId': '5','__OP_FLAG__': 'new','relId': '0'},{'regionId': '2','regionName': '网上营业厅','saleStartTime': '','saleEndTime': '','rowDataId': '6','__OP_FLAG__': 'new','relId': '0'},{'regionId': '18','regionName': '自助终端系统','saleStartTime': '20091231','saleEndTime': '20991231','rowDataId': '12','__OP_FLAG__': 'new','relId': '0'}], 'special': {'__OP_FLAG__': 'new','featureValue': '1001'}, 'name': '校园充值送(2017迎新篇)100元档测试','month': {'__OP_FLAG__': 'new','featureValue': '12'},'effDate': '2017-07-01 00:00:00','bootMessage': {'__OP_FLAG__': 'new','templateContent': ''},'comfirMes': {'__OP_FLAG__': 'new','templateContent': ''},'offerReport': {'__OP_FLAG__': 'new','rptType': '3','acctCode': '5505051','extendAttrB': '3520024','catalogId': '200000000021'},'ifIncludeComb': {'__OP_FLAG__': 'new','extendAttrF': '181000000001','relatProductItemIdName': '流量10元可选包(100M)','relatProductItemId': '350353001404','paramValueName': '移动数据10元档以上套餐','paramValue': '380000021335'},'relPromOfferVas': [],'BOUpOuterPloyH5': [],'': [],'outerSMSPloy': [],'relSKU': [],'BOUpOuterPloyComb': [],'prestoreDivideMoney': {'__OP_FLAG__': 'new','promoType': '1','allotAmount': '10000','allotModeValue': '3','prestoreFee': '10000','bookItemIdOut': '5505051','bookItemIdIn': '5024051','allotScaleName': '8|8|8|8|8|8|8|8|8|8|8|12|','allotScale': '800|800|800|800|800|800|800|800|800|800|800|1200|','divideMonth': '12','validDate': '2017-07-01 00:00:00','promoName': '校园充值送(2017迎新篇)100元档测试','allotBusiCode': '202014001','allotSmsType': '1','allotSmsExpr': '881 '},'deposit': {'__OP_FLAG__': 'new','feeAmount': '10000','prodName': '充值送礼活动用户预存100(元)','accCode': '5505051'},'desc': '校园充值送(2017迎新篇)100元档测试','renewOfferKind1': {'__OP_FLAG__': 'new','relKindName': '1','relKindId': '391000039503'},'renewOfferKind2': {'__OP_FLAG__': 'new','relKindId': '391000039503','relKindName': '1'},'punishFeeY': '100','catalogId': {'__OP_FLAG__': 'new','catalogName': '校园充值送(2017迎新篇)','catalogId': '200000000021','busiDesc': '活动内容:客户预存和包并承诺月最低消费及流量可选包(或为18元及以上档次4G套餐),即可获赠相应金额的和包。赠送和包一次性立即到账,预存和包分12个月返还。每个号码办理1次。','busiRuleDesc': '一、活动规则<br>(一)活动对象:<br>1、本活动仅向全球通、动感地带、神州行三大品牌客户开放(神州行易通卡和初始套装除外)。<br>2、本活动仅向上海移动1-5星客户开放,客户可发送CXXJ到10086查询客户星级。随e行品牌、和多号业务中的副号码、流量无限量套餐客户、新激活不超过6个自然月内的客户不能办理此类活动。<br>3、统付类-家庭畅享计划/和家庭副号码客户,需在主号码授权后方可参加此类活动。<br>4、客户办理此类活动时需状态有效、未停机。后付费客户需先结清所有账单,预付费客户需已激活入网。<br>5、此类活动需做好真实有效实名制登记后方可办理。个人客户凭本人有效真实身份证件原件,经办人凭机主有效身份证件原件和本人有效身份证原件办理;单位客户提供与客户名称一致的企业介绍信(加盖公章),经办人凭本人有效身份证原件,携带有效的企业单位营业执照副本原件办理。<br>6、已办理过充值送礼(含充值送话费、充值送和包电子券、充值送积分等)活动且尚未到期的客户不能办理本活动。<br>(二)办理次数:<br>同一个号码最多可参加1次本活动。<br>(三)预存话费返还与月个人最低消费规则:<br>1、活动办理成功后次月开始生效。预存话费从次月起分月返还,每月5日前到账,活动赠返话费均不能进行通信账户支付。<br>2、若客户通过话费支付方式参加活动,需在办理活动前10天内累计充值达到活动相应预存话费+5元,才可参加活动。客户只有自行预存的话费才可以作为活动预存款,赠返话费均不可作为活动预存款。<br>3、活动设定每月个人最低消费,若协议期内每月未满足当月个人最低消费,则按最低消费金额补足。账单中一级科目“代收费业务费用”不纳入月个人最低消费额度。如参加活动号码是家庭统付主号码,每月承诺的最低消费仅指主号码产生的费用,不包含统付成员费用。<br>4、如参与档次设定每月最低流量可选包档次,客户在协议期间每月使用不低于活动要求的流量可选包档次【18元及以上档次4G资费套餐无需开通】。参与活动时,若客户次月不满足最低流量可选包档次要求的,系统将自动为客户按最低流量可选包档次开通并于活动受理次月生效。协议期间,客户不可转入低档次的流量可选包。<br>5、其他承诺消费类活动的客户与本活动每月个人最低消费金额需叠加。<br>6、参加了家庭营销活动的家庭统付群组中的主、副号码若参加了个人营销活动,除个人需补足其个人营销活动的最低消费外,还需在家庭类活动的最低消费上叠加所有主副号码个人营销活动等额的最低消费对群组进行补足。<br>(四)赠送规则:<br>活动办理成功后,可立即获赠相应的和包电子券。本活动赠送的和包电子券自发放之日起90天内有效,过期不补。和包电子券不可回退、不可转赠、不可转让、不能兑现。<br>(五)其他规则:<br>1、活动成功受理后默认开通手机支付功能(免费)、和生活普通会员(免费)、移动杉德卡(优惠期内免费)。<br>2、此类活动办理后,不可回退,不可变更档次。活动预存话费不可退费,不可资金转移。协议期内,客户不可办理过户、销户、停机保号等业务。<br>3、如办理客户当前品牌具有有效期,则受理后将根据预存金额一次性延长有效期,后续返还话费不再增加有效期。<br>4、如办理客户为家庭统付活动(如畅享计划、和家庭等)的副号码,在家庭统付期间,获赠话费暂无法使用。客户如需使用,可通过“家庭统付副号码话费转赠”业务,每月开账时由系统根据副号码当月实际开账金额,将账户余额中可用于抵扣当月消费的部分结转至主号码账户。<br>5、如参加活动号码是家庭统付主号码,每月承诺的最低消费仅指主号码产生的费用,不包含统付成员费用。<br>'},'relProds4': {'__OP_FLAG__': 'new','prodName': '补足28元','extendName': '补足28元','extendId': '41000043'},'monthFee': {'__OP_FLAG__': 'new','featureValue': '2800'},'directFee': {'__OP_FLAG__': 'new','feeAmount': '10000','prodName': '承诺消费系列活动抵扣预存100(元)'},'__OBJECT_ID__': 20000,'preFeeRuleComb': {'__OP_FLAG__': 'new','paramValue': 100,'effDate': '2017-04-01','expDate': '2099-12-31'},'offerId': 111000307276,'alphaName': 'XYCZS(2017YXP)100YDCS','prestoreExtendId': 12060,'noPrepayBack': '0','type': 'OFFER_PLOY','trademark': '0','offerPlanType': '5','offerType': 'OFFER_PLOY','prodSpecId': '171000000001','isGlobal': '0','smsTamplateChoose': '1'}\");\r\n\t\tployInfo = JSONObject.fromObject(\"{'__OP_FLAG__': 'new','prodSpecId': '171000000001','prodSpecName': 'GSM产品规格','busiType': '1','relRegions': [{'regionId': '0','rowDataId': '0','__OP_FLAG__': 'new','relId': '0'}],'relPlanGroup': { '__OP_FLAG__': 'new','tagName': '后付费4G流量卡','tagId': '130006'},'name': '后付费流量至尊套餐288元档','offerType': 'OFFER_PLAN','payType': '0','tradeMark': '161000000012','offerPlanType': '1','effDate': '2018-01-01 00:00:00','expDate': '2099-12-31 00:00:00','relSameNameProd': {'__OP_FLAG__': 'new','isMain': '0','extendIdName': '后付费流量至尊套餐288元档','extendId': '82700004','upProdItemObject': {'__OP_FLAG__': 'new','type': 'SRVC_SINGLE'},'upPlanProdRel': {'__OP_FLAG__': 'new','extendF': '181000000001'},'relService': {'__OP_FLAG__': 'new','offerGroupId': '270000050001','relType': 'SRVC_SINGLE_PRICE_SERVICE'},'upItemFeature': {'__OP_FLAG__': 'new','featureId': '10000017','featureValue': '1'}},'BossType': {'__OP_FLAG__': 'new','featureValue': '1'},'preOpenLever': {'__OP_FLAG__': 'new','featureValue': '1'},'relRoles': {'__OP_FLAG__': 'new','roleName': '手机主角色','roleId': '181000000001','isMainRole': '1'},'desc': '后付费流量至尊套餐288元档介绍','pointPlan': {'__OP_FLAG__': 'new','featureValue': '1'},'__TEMPLATE_ID__': 666,'relCatalogInfo': [{'catalogId': '250000000003','catalogName': '基本套餐','rowDataId': '1','__OP_FLAG__': 'new','relId': '0'},{'catalogId': '950641000308','catalogName': '基本策划','baseCatalogFlag': '策划销售目录','rowDataId': '2','__OP_FLAG__': 'new','relId': '0'},{'catalogId': '950500000012','catalogName': '个人套餐','rowDataId': '3','__OP_FLAG__': 'new','relId': '0'},{'catalogId': '950641000110','catalogName': '4G套餐','baseCatalogFlag': '策划销售目录','rowDataId': '4','__OP_FLAG__': 'new','relId': '0'},{'catalogId': '950641000111','catalogName': '4G套餐','baseCatalogFlag': '策划销售目录','rowDataId': '5','__OP_FLAG__': 'new','relId': '0'},{'catalogId': '950641000112','catalogName': '4G套餐','baseCatalogFlag': '策划销售目录','rowDataId': '6','__OP_FLAG__': 'new','relId': '0'},{'catalogId': '950641000113','catalogName': '4G套餐','baseCatalogFlag': '策划销售目录','rowDataId': '7','__OP_FLAG__': 'new','relId': '0'}],'refOfferTemp': {'__OP_FLAG__': 'new','isRefOffer': '1','refOfferId': '390000020081','refCondition': '191000000003'},'refOfferName': '后付费4G飞享套餐58元档','entityId': 111000303477,'bootMessage': {'__OP_FLAG__': 'new','templateContent': '入'},'relProds': [{'prodId': '310014001001','prodName': '移动IP17951电话','optionType': '0','rowDataId': '0','__OP_FLAG__': 'new','relId': '0'},{'prodId': '310090106001','prodName': '呼叫等待','optionType': '2','rowDataId': '1','__OP_FLAG__': 'new','relId': '0'},{'prodId': '310090112001','prodName': '国内呼叫转移','optionType': '1','rowDataId': '2','__OP_FLAG__': 'new','relId': '0'},{'prodId': '310090113001','prodName': '国内长话','optionType': '0','rowDataId': '3','__OP_FLAG__': 'new','relId': '0'},{'prodId': '310090116001','prodName': '国内漫游','optionType': '0','rowDataId': '4','__OP_FLAG__': 'new','relId': '0'}],'relOpers': [],'relOffers': [{'offerType': '增值策划','prodSpecName': 'GSM产品规格','relOfferId': '350315001001','relOfferName': 'WLAN标准资费','relType': 'OFFER_PLAN_INCLUDE_OFFER_PLAN','includeType': '1','autoDiscountProdId': '','autoDiscountProdIdName': '','rowDataId': '0','__OP_FLAG__': 'new','relId': '0'},{'offerType': '增值策划','prodSpecName': 'GSM产品规格','relOfferId': '350350005001','relOfferName': '点对点短信息','relType': 'OFFER_PLAN_INCLUDE_OFFER_PLAN','includeType': '1','autoDiscountProdId': '','autoDiscountProdIdName': '','rowDataId': '1','__OP_FLAG__': 'new','relId': '0'},{'offerType': '增值策划','prodSpecName': 'GSM产品规格','relOfferId': '350353001001','relOfferName': '移动数据标准资费','relType': 'OFFER_PLAN_INCLUDE_OFFER_PLAN','includeType': '1','autoDiscountProdId': '','autoDiscountProdIdName': '','rowDataId': '2','__OP_FLAG__': 'new','relId': '0'},{'offerType': '增值策划','prodSpecName': 'GSM产品规格','relOfferId': '350390103001','relOfferName': '主叫显示','relType': 'OFFER_PLAN_INCLUDE_OFFER_PLAN','includeType': '1','autoDiscountProdId': '','autoDiscountProdIdName': '','rowDataId': '3','__OP_FLAG__': 'new','relId': '0'},{'offerType': '增值策划','prodSpecName': 'GSM产品规格','relOfferId': '350390208001','relOfferName': '直拨长途一费制','relType': 'OFFER_PLAN_INCLUDE_OFFER_PLAN','includeType': '0','autoDiscountProdId': '','autoDiscountProdIdName': '','rowDataId': '4','__OP_FLAG__': 'new','relId': '0'},{'offerType': '增值策划','prodSpecName': 'GSM产品规格','relOfferId': '390000000092','relOfferName': '移动数据资费(0.29元/M,满60元1G)','relType': 'OFFER_PLAN_INCLUDE_OFFER_PLAN','includeType': '0','autoDiscountProdId': '','autoDiscountProdIdName': '','rowDataId': '5','__OP_FLAG__': 'new','relId': '0'}],'preStoreLevel': [],'relSKU': [],'relChgOffers': [],'relChgOffersIn': [],'relKinds': [],'upOuterPloy': [],'relNewRpt': {'__OP_FLAG__': 'new','rptType': '6','extendAttrA': '卡类'},'privilege': {'__OP_FLAG__': 'new','privId': '90000003'},'extendName': '后付费流量至尊套餐288元档','extendId': '22000003','__OBJECT_ID__': 10000,'offerId': 111000303477,'alphaName': 'HFFLLZZTC288YD','type': 'OFFER_PLAN'}\");\r\n//\t\t\r\n\t\t\r\n\t\tString offerId = null;\r\n\t\tString buss_name = null;\r\n\t\tString main_business_id = null;\r\n\t\t//资费\r\n\t\tString saleStartTime = null; //上架时间\r\n\t\tString saleEndTime = null; //下架时间\r\n\t\tString tagName = null;\t//大类名称\r\n\t\tString tagId = null;\t//大类分组\r\n\t\tString bussdesp = null; //业务介绍\r\n\t\t\r\n\t\tofferId = ployInfo.get(\"offerId\").toString();\r\n\t\tbuss_name = ployInfo.get(\"name\").toString();\r\n\t\t\r\n\t\tbussdesp = ployInfo.get(\"desc\").toString();\r\n\t\t\r\n\t\tif(ployInfo.containsKey(\"relPlanGroup\")){ //大类分组\r\n\t\t\tJSONObject relPlanGroup = ployInfo.getJSONObject(\"relPlanGroup\");\r\n\t\t\ttagName = relPlanGroup.get(\"tagName\").toString();\r\n\t\t\ttagId = relPlanGroup.get(\"tagId\").toString();\r\n\t\t\tif(\"130001\".equals(tagId)){\t\t\t//预付费4G飞享套餐\r\n\t\t\t\tmain_business_id = \"165\";\r\n\t\t\t}else if(\"130002\".equals(tagId)){\t//后付费4G飞享套餐\r\n\t\t\t\tmain_business_id = \"166\";\r\n\t\t\t}else if(\"130003\".equals(tagId)){\t//预付费4G无线上网套餐\r\n\t\t\t\tmain_business_id = \"173\";\r\n\t\t\t}else if(\"130004\".equals(tagId)){\t//后付费4G无线上网套餐\r\n\t\t\t\tmain_business_id = \"174\";\r\n\t\t\t}else if(\"130005\".equals(tagId)){\t//预付费4G流量卡\r\n\t\t\t\tmain_business_id = \"178\";\r\n\t\t\t}else if(\"130006\".equals(tagId)){\t//后付费4G流量卡\r\n\t\t\t\tmain_business_id = \"179\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(ployInfo.containsKey(\"relRegions\")){ //渠道信息,上下架时间\r\n\t\t\tJSONArray relRegions = ployInfo.getJSONArray(\"relRegions\");\r\n\t\t\tfor(int i = 0; i<relRegions.size(); i++){\r\n\t\t\t\tJSONObject term = relRegions.getJSONObject(i);\r\n\t\t\t\tif(\"18\".equals(term.get(\"regionId\"))){ //18-自助终端\r\n\t\t\t\t\tsaleStartTime = term.get(\"saleStartTime\").toString();\r\n\t\t\t\t\tsaleEndTime = term.get(\"saleEndTime\").toString();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSimpleDateFormat formatter = new SimpleDateFormat (\"yyyy-MM-dd hh:mm:ss\"); \r\n\t\tString ctime = formatter.format(new Date()); //当前时间\r\n\t\tSystem.out.println(\"当前时间 ---- \" + ctime);\r\n\t\t\r\n\t\tSystem.out.println(\"业务ID = \" + offerId);\r\n\t\tSystem.out.println(\"业务名称 = \" + buss_name);\r\n\t\tSystem.out.println(\"上架时间 = \" + saleStartTime);\r\n\t\tSystem.out.println(\"下架时间 = \" + saleEndTime);\r\n\t\tSystem.out.println(\"业务描述 = \" + bussdesp);\r\n\t\tSystem.out.println(\"大类名称 = \" + tagName);\r\n\t\tSystem.out.println(\"大类分组 = \" + tagId);\r\n\t\tSystem.out.println(\"父类ID = \" + main_business_id);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void m72639a(com.p280ss.android.ugc.aweme.feed.model.Aweme r3, java.lang.String r4, int r5) {\n /*\n if (r3 == 0) goto L_0x006d\n boolean r0 = r3.isFamiliar()\n r1 = 1\n if (r0 != r1) goto L_0x006c\n boolean r0 = com.p280ss.android.ugc.aweme.utils.C43122ff.m136762a(r3)\n if (r0 == 0) goto L_0x0010\n goto L_0x006c\n L_0x0010:\n com.ss.android.ugc.aweme.app.g.d r0 = com.p280ss.android.ugc.aweme.app.p305g.C22984d.m75611a()\n java.lang.String r1 = \"enter_from\"\n java.lang.String r2 = \"homepage_hot\"\n com.ss.android.ugc.aweme.app.g.d r0 = r0.mo59973a(r1, r2)\n java.lang.String r1 = \"event_type\"\n com.ss.android.ugc.aweme.app.g.d r4 = r0.mo59973a(r1, r4)\n java.lang.String r0 = \"rec_uid\"\n java.lang.String r1 = com.p280ss.android.ugc.aweme.metrics.C33230ac.m107205a(r3)\n com.ss.android.ugc.aweme.app.g.d r4 = r4.mo59973a(r0, r1)\n java.lang.String r0 = \"req_id\"\n java.lang.String r1 = r3.getRequestId()\n com.ss.android.ugc.aweme.app.g.d r4 = r4.mo59973a(r0, r1)\n java.lang.String r0 = \"rec_reason\"\n com.ss.android.ugc.aweme.feed.model.RelationDynamicLabel r1 = r3.getRelationLabel()\n if (r1 == 0) goto L_0x0044\n java.lang.String r1 = r1.getLabelInfo()\n if (r1 != 0) goto L_0x0046\n L_0x0044:\n java.lang.String r1 = \"\"\n L_0x0046:\n com.ss.android.ugc.aweme.app.g.d r4 = r4.mo59973a(r0, r1)\n java.lang.String r0 = \"card_type\"\n java.lang.String r1 = \"item\"\n com.ss.android.ugc.aweme.app.g.d r4 = r4.mo59973a(r0, r1)\n java.lang.String r0 = \"group_id\"\n java.lang.String r3 = r3.getAid()\n com.ss.android.ugc.aweme.app.g.d r3 = r4.mo59973a(r0, r3)\n r4 = -1\n if (r5 == r4) goto L_0x0064\n java.lang.String r4 = \"feed_order\"\n r3.mo59970a(r4, r5)\n L_0x0064:\n java.lang.String r4 = \"follow_card\"\n java.util.Map<java.lang.String, java.lang.String> r3 = r3.f60753a\n com.p280ss.android.ugc.aweme.common.C6907h.m21524a(r4, r3)\n return\n L_0x006c:\n return\n L_0x006d:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.familiar.p966b.C21718a.m72639a(com.ss.android.ugc.aweme.feed.model.Aweme, java.lang.String, int):void\");\n }", "public interface Const {\n String SERVER_NAME = \"http://xxx.kenit.net/\";\n String SERVER_PATH = \"http://xxx.kenit.net/androidpart/\";\n String GET_PRODUCT_FILE = \"getproduct.php\";\n}", "@Override\n public void getWebResult(SERVICE_TYPE type, JSONObject result) {\n listFooter.setVisibility(View.GONE);\n isTotalRecordGet = false;\n\n /* Home.progressBarHome.setVisibility(View.GONE);*/\n\n if (result == null)\n return;\n try {\n if (!result.getString(\"code\").equalsIgnoreCase(\"200\")) {\n if (result.has(\"message\"))\n Toast.makeText(context, result.getString(\"message\").toString(), Toast.LENGTH_SHORT).show();\n return;\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n boolean isSearchResult = false;\n\n switch (type) {\n case GET_UPPER_DATA:\n\n swipeContainer.setRefreshing(false);\n break;\n\n case GET_BOTTOM_DATA:\n isLoading = false;\n\n\n break;\n case GET_SEARCH_DATA:\n isSearchResult = true;\n break;\n\n\n case GET_FILTER_DATA:\n isSearchResult = true;\n break;\n default:\n break;\n }\n\n if (!isSearchResult) {\n\n try {\n if (pageNo == 1) {\n\n values = new ContentValues();\n values.put(InvoiceList.table_field[position], (String) null);\n db.clearTableColumn(DatabaseHelper.Table_InvoiceList, values);\n\n\n values = new ContentValues();\n values.put(InvoiceList.table_field[position], result.toString()); // Contact\n\n db.insert(DatabaseHelper.Table_InvoiceList, values);\n\n\n String selectQuery = \"Select \" + InvoiceList.table_field[position]\n + \" From \" + DatabaseHelper.Table_InvoiceList + \" WHERE \"\n + InvoiceList.table_field[position] + \" !='' AND \"\n + InvoiceList.table_field[position] + \" IS NOT NULL\";\n\n Cursor cursor = db.getRecords(selectQuery);\n\n if (cursor.moveToFirst() && cursor.getCount() > 0)\n for (int i = 0; i < cursor.getCount(); i++) {\n updateUI(new JSONObject(cursor.getString(cursor\n .getColumnIndex(InvoiceList.table_field[position]))));\n }\n } else updateUI(result);\n\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n } else {\n\n updateUI(result);\n }\n\n }", "public void setWebKey(String s)\n {\n ScDecoder x = new ScDecoder(s);\n _firstFlightId = (Integer)x.get();\n _secondFlightId = (Integer)x.get();\n _thirdFlightId = (Integer)x.get();\n _fourthFlightId = (Integer)x.get();\n _fifthFlightId = (Integer)x.get();\n _consignmentNumber = (String)x.get();\n _consignmentExpectedDestinationAirportCode = (String)x.get();\n _upuTagOriginCountryCode = (String)x.get();\n _upuTagOriginLocationCode = (String)x.get();\n _upuTagOriginOfficeOfExchangeQualifier = (String)x.get();\n _upuTagDestinationCountryCode = (String)x.get();\n _upuTagDestinationLocationCode = (String)x.get();\n _upuTagDestinationOfficeOfExchangeQualifier = (String)x.get();\n _upuTagMailCategoryCode = (String)x.get();\n _upuTagMailSubClassCode = (String)x.get();\n _upuTagMailClassCode = (String)x.get();\n _upuTagDispatchYear = (String)x.get();\n _upuTagDispatchSerialNumber = (String)x.get();\n _upuTagReceptacleSerialNumber = (String)x.get();\n _upuTagHighestNumberedReceptacleIndicator = (String)x.get();\n _upuTagInsuredOrRegisteredIndicator = (String)x.get();\n _upuTagWeight = (JwKilogram)x.get();\n }", "public interface ExtraConstant {\n\n String SERVER_CONFIG = \"server_config\"; // 需要服务器配置的数据\n /********************* 图片预览 ********************/\n String PREVIEW_IMAGE_DATA = \"preview_image_data\";//图片预览\n String PREVIEW_IMAGE_POSITION = \"preview_image_position\";//图片预览默认的显示位置\n String IS_ACTIVITY_INIT = \"is_activity_init\"; // 是否初始化\n String ACTIVITY_CONFIG = \"activity_config\";\n String TOKEN_ENTITY = \"token_entity\"; // 登录标识\n String USER_INFO = \"user_bean\"; // 用户信息\n String WEB_URL = \"web_url\"; // 网页地址\n String WEB_IS_ANALYSIS = \"web_is_analysis\"; // 是否统计\n String RIGHT_CUSTOM_TYPE = \"right_custom_type\"; // 右上角显示在线客服类型\n String CUSTOMDIALOG_TYPE = \"customdialog_type\"; // 自定义弹窗类型\n String EXTRA_VERSION = \"extra_version\";//版本\n String NEED_UPDATE = \"need_update\"; // 是否需要更新\n\n String REPAYMENT_TYPE = \"repayment_type\"; // 代偿模式\n\n}", "public void mo71540w() {\n boolean z;\n VideoItemParams requestId = VideoItemParams.newBuilder().setFragment(this.f73947d).setAweme(this.f73950g).setAwemeFromPage(this.f73953m).setEventType(this.f73944a).setMyProfile(this.f73946c).setPageType(this.f73954n).setEnterMethodValue(this.f74254j).setRequestId(this.f73952l);\n if (this.f74252h != null) {\n this.f74252h.mo60134a(\"video_params\", (Object) requestId);\n }\n mo71773u();\n User author = this.f73950g.getAuthor();\n if (author != null) {\n this.mTitleView.setText(this.f73949f.getString(R.string.b5s, new Object[]{author.getNickname()}));\n this.mTitleView.getPaint().setFakeBoldText(true);\n } else {\n this.mTitleView.setText(\"\");\n }\n if (this.f73950g == null || this.f73950g.isCanPlay()) {\n this.mTitleView.setVisibility(0);\n } else {\n this.mTitleView.setVisibility(4);\n }\n this.tagLayout.setEventType(this.f73944a);\n List videoLabels = this.f73950g.getVideoLabels();\n m91744a(videoLabels);\n if (!RelationLabelHelper.hasDuoShanLabel(this.f73950g)) {\n if (C6319n.m19594a(this.f73944a, \"homepage_hot\")) {\n this.tagLayout.mo61051c(this.f73950g, videoLabels, new C23440a(7, 20));\n } else {\n this.tagLayout.mo61050b(this.f73950g, videoLabels, new C23440a(7, 20));\n }\n }\n if (TextUtils.isEmpty(this.f73950g.getExtra()) || !C6399b.m19928c()) {\n this.mTxtExtra.setVisibility(8);\n } else {\n this.mTxtExtra.setText(this.f73950g.getExtra());\n this.mTxtExtra.setVisibility(0);\n }\n if (this.f73950g.getUserDigg() == 1) {\n z = true;\n } else {\n z = false;\n }\n mo71770a(z);\n if (this.f73953m == 1) {\n mo71533d(m91740N());\n }\n AwemeStatus status = this.f73950g.getStatus();\n if (status == null) {\n this.mAwemeInCheckLayout.setVisibility(8);\n } else if (status.isInReviewing()) {\n this.mAwemeInCheckLayout.setVisibility(0);\n } else {\n this.mAwemeInCheckLayout.setVisibility(8);\n }\n }", "public interface RequestURLs {\n String DEFAULT_URL = \"http://aperturedev.co.kr:21002/petcommunity/\";\n\n /*\n 매칭 서비스 관련\n */\n String GET_PET_TYPES = DEFAULT_URL + \"services/get-pettypes.php\"; // 강아지 종을 가져온다.\n String REGIST_MATCH_PET = DEFAULT_URL + \"matching/regist-new-pet.php\"; // 팻 등록 실시\n String MATCHING_OTHER_PET = DEFAULT_URL + \"matching/matching.php\"; // 매칭할 팻을 하나 가져옵니다.\n\n /*\n 사용자 정보 관련\n */\n String GET_USER_INFO = DEFAULT_URL + \"users/get-info.php\"; // UUID -> 사용자 정보\n String REGIST_SERVICE = DEFAULT_URL + \"users/signup.php\"; // 회원가입을 실시한다.\n String IS_REGIST_SERVICE = DEFAULT_URL + \"/users/is-registed.php\"; // 회원가입 되어 있는지 확인한다.\n String LOGIN_SERVICE = DEFAULT_URL + \"users/signin.php\"; // 로그인 처리한다.\n\n\n\n\n}", "public String _class_globals() throws Exception{\n_wholescreen = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 3;BA.debugLine=\"Dim infoholder As Panel\";\n_infoholder = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 4;BA.debugLine=\"Dim screenimg As ImageView\";\n_screenimg = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 5;BA.debugLine=\"Dim usernamefield As EditText\";\n_usernamefield = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 6;BA.debugLine=\"Dim passwordfield As EditText\";\n_passwordfield = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 7;BA.debugLine=\"Dim loginbtn As Button\";\n_loginbtn = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 8;BA.debugLine=\"Dim singup As Button\";\n_singup = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 9;BA.debugLine=\"Dim myxml As SaxParser\";\n_myxml = new anywheresoftware.b4a.objects.SaxParser();\n //BA.debugLineNum = 12;BA.debugLine=\"Dim usermainscreen As UserInterfaceMainScreen\";\n_usermainscreen = new b4a.HotelAppTP.userinterfacemainscreen();\n //BA.debugLineNum = 14;BA.debugLine=\"Dim LoginJob As HttpJob\";\n_loginjob = new anywheresoftware.b4a.samples.httputils2.httpjob();\n //BA.debugLineNum = 16;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public String _class_globals() throws Exception{\n_pub_key = \"\";\n //BA.debugLineNum = 8;BA.debugLine=\"Private Event As String\";\n_event = \"\";\n //BA.debugLineNum = 9;BA.debugLine=\"Private Instance As Object\";\n_instance = new Object();\n //BA.debugLineNum = 11;BA.debugLine=\"Private Page As Activity\";\n_page = new anywheresoftware.b4a.objects.ActivityWrapper();\n //BA.debugLineNum = 12;BA.debugLine=\"Private PaymentPage As WebView\";\n_paymentpage = new anywheresoftware.b4a.objects.WebViewWrapper();\n //BA.debugLineNum = 13;BA.debugLine=\"Private JarFile As JarFileLoader\";\n_jarfile = new b4a.paystack.jarfileloader();\n //BA.debugLineNum = 14;BA.debugLine=\"Private PageCurrentTitle As String\";\n_pagecurrenttitle = \"\";\n //BA.debugLineNum = 15;BA.debugLine=\"Private IME As IME\";\n_ime = new anywheresoftware.b4a.objects.IME();\n //BA.debugLineNum = 16;BA.debugLine=\"Private POPUP As Boolean = False\";\n_popup = __c.False;\n //BA.debugLineNum = 17;BA.debugLine=\"Private POPUP_PANEL As Panel\";\n_popup_panel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 20;BA.debugLine=\"Private JS As DefaultJavascriptInterface\";\n_js = new uk.co.martinpearman.b4a.webkit.DefaultJavascriptInterface();\n //BA.debugLineNum = 21;BA.debugLine=\"Private WebClient As DefaultWebViewClient\";\n_webclient = new uk.co.martinpearman.b4a.webkit.DefaultWebViewClient();\n //BA.debugLineNum = 22;BA.debugLine=\"Private PaymentPageExtra As WebViewExtras\";\n_paymentpageextra = new uk.co.martinpearman.b4a.webkit.WebViewExtras();\n //BA.debugLineNum = 23;BA.debugLine=\"Private Chrome As DefaultWebChromeClient\";\n_chrome = new uk.co.martinpearman.b4a.webkit.DefaultWebChromeClient();\n //BA.debugLineNum = 24;BA.debugLine=\"Private CookieManager As CookieManager\";\n_cookiemanager = new uk.co.martinpearman.b4a.httpcookiemanager.B4ACookieManager();\n //BA.debugLineNum = 25;BA.debugLine=\"Private Loaded As Boolean = False\";\n_loaded = __c.False;\n //BA.debugLineNum = 26;BA.debugLine=\"Public ShowMessage As Boolean = True\";\n_showmessage = __c.True;\n //BA.debugLineNum = 29;BA.debugLine=\"Private ReferenceCode As String\";\n_referencecode = \"\";\n //BA.debugLineNum = 30;BA.debugLine=\"Private AccesCode As String\";\n_accescode = \"\";\n //BA.debugLineNum = 31;BA.debugLine=\"Private AmountCurrency As String\";\n_amountcurrency = \"\";\n //BA.debugLineNum = 34;BA.debugLine=\"Public CURRENCY_GHS As String = \\\"GHS\\\"\";\n_currency_ghs = \"GHS\";\n //BA.debugLineNum = 35;BA.debugLine=\"Public CURRENCY_NGN As String = \\\"NGN\\\"\";\n_currency_ngn = \"NGN\";\n //BA.debugLineNum = 36;BA.debugLine=\"Public CURRENCY_ZAR As String = \\\"ZAR\\\"\";\n_currency_zar = \"ZAR\";\n //BA.debugLineNum = 37;BA.debugLine=\"Public CURRENCY_USD As String = \\\"USD\\\"\";\n_currency_usd = \"USD\";\n //BA.debugLineNum = 39;BA.debugLine=\"Private HTML As String = $\\\" <!doctype html> <html\";\n_html = (\"\\n\"+\"<!doctype html>\\n\"+\"<html>\\n\"+\"<head>\\n\"+\"\t<title>Paystack</title>\\n\"+\"\t<script>\\n\"+\"\t\tfunction setCookie(cname, cvalue, exdays) {\\n\"+\"\t\t const d = new Date();\\n\"+\"\t\t d.setTime(d.getTime() + (exdays*24*60*60*1000));\\n\"+\"\t\t let expires = \\\"expires=\\\"+ d.toUTCString();\\n\"+\"\t\t document.cookie = cname + \\\"=\\\" + cvalue + \\\";\\\" + expires + \\\";path=/\\\";\\n\"+\"\t\t}\\n\"+\"\t\tsetCookie('SameSite', 'Secure', 1);\\n\"+\"\t</script>\\n\"+\"</head>\\n\"+\"<body>\\n\"+\"\t<script>\\n\"+\"\t\tfunction Pay(key,email,amount,ref,label,currency){\\n\"+\"\t\t\tlet handler = PaystackPop.setup({\\n\"+\"\t\t\t\tkey: key,\\n\"+\"\t\t\t\temail: email,\\n\"+\"\t\t\t\tamount: amount * 100,\\n\"+\"\t\t\t\tref: ref+Math.floor((Math.random() * 1000000000) + 1),\\n\"+\"\t\t\t\tlabel: label,\\n\"+\"\t\t\t\tcurrency: currency,\\n\"+\"\t\t\t\tonClose: function(){\\n\"+\"\t\t\t\t\tB4A.CallSub(\\\"Message\\\",true,\\\"Paystack\\\",\\\"Payment Cancelled\\\",\\\"cancelled\\\");\\n\"+\"\t\t\t\t},\\n\"+\"\t\t\t\tcallback: function(response){\t\\n\"+\"\t\t\t\t\tif(response.status == 'success'){\\n\"+\"\t\t\t\t\t\tB4A.CallSub(\\\"Message\\\",true,\\\"Paystack\\\",\\\"Payment of \\\"+currency+amount+\\\" Successul\\\",\\\"success\\\");\\n\"+\"\t\t\t\t\t}else{\\n\"+\"\t\t\t\t\t\tB4A.CallSub(\\\"Message\\\",true,\\\"Paystack\\\",\\\"Error: \\\"+response.status,\\\"error\\\");\\n\"+\"\t\t\t\t\t}\\n\"+\"\t\t\t\t}\\n\"+\"\t\t\t});\\n\"+\"\t\t\thandler.openIframe();\\n\"+\"\t\t}\\n\"+\"\t</script>\\n\"+\"\t<script type=\\\"text/javascript\\\" src=\\\"https://js.paystack.co/v1/inline.js\\\"></script>\\n\"+\"</script>\\n\"+\"</body>\\n\"+\"</html>\\n\"+\"\t\");\n //BA.debugLineNum = 83;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static Map<String, String> validateiOSAssetDetailsCosole(String path, String url) throws Exception {\n\t\tHashMap<String, String> dynamicValuesMap = new HashMap<String, String>();\r\n\t\tMap<String, String> addynamicValuesMap = new HashMap<String, String>();\r\n\t\tMap<String, String> feedValuesMap = new HashMap<String, String>();\r\n\t\tString s = \"\";\r\n\t\tStringBuffer str = new StringBuffer();\r\n\t\t// BufferedReader in = new BufferedReader(new\r\n\t\t// FileReader(\"ConsoleOutputnull.txt\"));\r\n\t\tBufferedReader in = new BufferedReader(new FileReader(path));\r\n\t\tString line;\r\n\t\twhile ((line = in.readLine()) != null) {\r\n\t\t\tstr.append(\" \");\r\n\t\t\tstr.append(line);\r\n\t\t}\r\n\t\tin.close();\r\n\t\tString st = str.toString();\r\n\t\t// System.out.println(st);\r\n\t\tString[] vod = st.split(\"VOD ID:\");\r\n\t\tString[] vod1 = vod[1].split(\"VOD Series\");\r\n\t\tSystem.out.println(\"VOD ID = \" + vod1[0].substring(0, vod1[0].length() - 14));\r\n\t\tString guid = vod1[0].substring(0, vod1[0].length() - 14);\r\n\t\ttest.log(LogStatus.INFO,\r\n\t\t\t\t\"************<b><font color=\\\"purple\\\">\" + \"VOD Asset Details From Console*************</font></b>\");\r\n\t\ttest.log(LogStatus.INFO, \"VOD ID = \" + vod1[0].substring(0, vod1[0].length() - 14));\r\n\t\tList<String> typeKey = Arrays.asList(guid.replaceAll(\"\\\\s\", \"\").split(\"_\"));\r\n\t\tSystem.out.println(typeKey);\r\n\t\tdynamicValuesMap.put(\"VOD ID\", typeKey.get(2).trim());\r\n\t\ttest.log(LogStatus.INFO, \"VOD ID\", vod1[0].substring(0, vod1[0].length() - 14));\r\n\t\tString[] vodseries = st.split(\"VOD Series:\");\r\n\t\tString[] vodseries1 = vodseries[1].split(\"VOD Season:\");\r\n\t\tSystem.out.println(\"VOD Series = \" + vodseries1[0].substring(0, vodseries1[0].length() - 14));\r\n\t\ttest.log(LogStatus.INFO, \"VOD Series = \" + vodseries1[0].substring(0, vodseries1[0].length() - 14));\r\n\t\tdynamicValuesMap.put(\"VOD Series\", vodseries1[0].substring(0, vodseries1[0].length() - 14).trim());\r\n\t\tString[] VODSeason = st.split(\"VOD Season:\");\r\n\t\tString[] VODSeason1 = VODSeason[1].split(\"VOD Episode Number:\");\r\n\t\tSystem.out.println(\"VOD Season = \" + VODSeason1[0].substring(0, VODSeason1[0].length() - 14));\r\n\t\ttest.log(LogStatus.INFO, \"VOD Season = \" + VODSeason1[0].substring(0, VODSeason1[0].length() - 14));\r\n\t\tdynamicValuesMap.put(\"VOD Season\", VODSeason1[0].substring(0, VODSeason1[0].length() - 14).trim());\r\n\t\tString[] VODEpisodeNumber = st.split(\"VOD Episode Number:\");\r\n\t\tString[] VODEpisodeNumber1 = VODEpisodeNumber[1].split(\"VOD Episode:\");\r\n\t\tSystem.out.println(\r\n\t\t\t\t\"VOD Episode Number = \" + VODEpisodeNumber1[0].substring(0, VODEpisodeNumber1[0].length() - 14));\r\n\t\ttest.log(LogStatus.INFO,\r\n\t\t\t\t\"VOD Episode Number = \" + VODEpisodeNumber1[0].substring(0, VODEpisodeNumber1[0].length() - 14));\r\n\t\tdynamicValuesMap.put(\"VOD Episode Number\",\r\n\t\t\t\tVODEpisodeNumber1[0].substring(0, VODEpisodeNumber1[0].length() - 14).trim());\r\n\t\tString[] VODEpisode = st.split(\"VOD Episode:\");\r\n\t\tString[] VODEpisode1 = VODEpisode[1].split(\"VOD Rating:\");\r\n\t\tSystem.out.println(\"VOD Episode = \" + VODEpisode1[0].substring(0, VODEpisode1[0].length() - 14));\r\n\t\ttest.log(LogStatus.INFO, \"VOD Episode = \" + VODEpisode1[0].substring(0, VODEpisode1[0].length() - 14));\r\n\t\tdynamicValuesMap.put(\"VOD Episode\", VODEpisode1[0].substring(0, VODEpisode1[0].length() - 14).trim());\r\n\t\tString[] VODRating = st.split(\"VOD Rating:\");\r\n\t\tString[] VODRating1 = VODRating[1].split(\"ContentLoadStatus:\");\r\n\t\tSystem.out.println(\"VOD Rating = \" + VODRating1[0].substring(0, VODRating1[0].length() - 14));\r\n\t\ttest.log(LogStatus.INFO, \"VOD Rating = \" + VODRating1[0].substring(0, VODRating1[0].length() - 14));\r\n\t\t// dynamicValuesMap.put(\"VOD Rating\", VODRating1[0].substring(0,\r\n\t\t// VODRating1[0].length() - 14));\r\n\t\tfeedResponse(url);\r\n\t\ttest.log(LogStatus.INFO, \"*******Validating VOD Asset Details with Feed Url******\");\r\n\t\tcompareTwoMaps(dynamicValuesMap, assetValuesFeedMap);\r\n\t\treturn dynamicValuesMap;\r\n\t}", "@Override\n\tpublic void process(Page page) {\n\t\tboolean contain=false;\n\t\tint idindex=page.getUrl().toString().lastIndexOf(\"=\");\n\t\tString id=\"\";\n\t\tif(page.getUrl().toString().length()>=(idindex+1))\n\t\t id=page.getUrl().toString().substring(idindex+1);\n\t\tSystem.out.println(id);\n\t\tif(id.contains(\".\"))\n\t\t{\n\t\t\tcontain=true;\n\t\t\tSystem.out.println(\"contain is true\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString ziduan=page.getHtml().xpath(\"//tbody/tr[3]/td[1]/text()\").all().get(0);\n\t\t\tString legal=\"法律状态:\";\n\t\t\tif(ziduan.equals(legal))\n\t\t\t{\n\t\t\t\tcontain=true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*`patent_name` '专利名称',\n\t\t `patent_type` '专利类型',\n\t\t `legal_status`'法律状态',\n\t\t `abstract` '文摘',\n\t\t `sovereignty` '主权项',\n\t\t `apply_data` '申请日期',\n\t\t `public_data`'公开(公告)日期',\n\t\t `patent_number` '申请(专利)号',\n\t\t `public_number` '公开(公告)号',\n\t\t `main_type_number` '主分类号',\n\t\t `type_number` '分类号',\n\t\t `apply_people` '申请人',\n\t\t `patent_people` '发明人',\n\t\t `people_address` '主申请人地址',\n\t\t `city_code` '省市、代码',\n\t\t */\n\t\t\n\t\tpage.putField(\"patent_name\", page.getHtml().xpath(\"//tbody/tr[1]/td[2]/text()\").all().get(0));\n\t\t\n\t\t//x类\n\t\tif(contain)\n\t\t{\n\t\t\t//专利类型\n\t\t\tpage.putField(\"patent_type\", page.getHtml().xpath(\"//tbody/tr[2]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//法律状态\n\t\t\tList<String> legal=new ArrayList<String>();\n\t\t\tlegal=page.getHtml().xpath(\"//tbody/tr[3]/td[2]/div/div/span/text()\").all();\n\t\t\tString templegal=\"\";\n\t\t\tfor(int i=0;i<legal.size();i++)\n\t\t\t\ttemplegal+=legal.get(i);\n\t\t\tpage.putField(\"legal_status\",templegal);\n\t\t\t\n\t\t\t//文摘\n\t\t\tpage.putField(\"abstract\", page.getHtml().xpath(\"//tbody/tr[4]/td[2]//*/text()\").all().get(0));\n\t\t\t\n\t\t\t//主权项\n\t\t\tpage.putField(\"sovereignty\", page.getHtml().xpath(\"//tbody/tr[5]/td[2]//*/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请日期\n\t\t\tpage.putField(\"apply_date\", page.getHtml().xpath(\"//tbody/tr[6]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//公开日期\n\t\t\tpage.putField(\"public_date\",page.getHtml().xpath(\"//tbody/tr[7]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请号\n\t\t\tpage.putField(\"patent_number\",page.getHtml().xpath(\"//tbody/tr[8]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//公开号\n\t\t\tpage.putField(\"public_number\", page.getHtml().xpath(\"//tbody/tr[9]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//主分类号\n\t\t\tpage.putField(\"main_type_number\",page.getHtml().xpath(\"//tbody/tr[10]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//分类号\n\t\t\tpage.putField(\"type_number\",page.getHtml().xpath(\"//tbody/tr[11]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请人\n\t\t\tpage.putField(\"apply_people\",page.getHtml().xpath(\"//tbody/tr[6]/td[4]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//发明人\n\t\t\tpage.putField(\"patent_people\",page.getHtml().xpath(\"//tbody/tr[7]/td[4]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//主申请人地址\n\t\t\tpage.putField(\"people_address\", page.getHtml().xpath(\"//tbody/tr[10]/td[4]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//省市代码\n\t\t\tpage.putField(\"city_code\", page.getHtml().xpath(\"//tbody/tr[11]/td[4]/span/text()\").all().get(0));\n\t\t}\n\t\t//n类\n\t\telse{\n\t\t\t//文摘\n\t\t\tpage.putField(\"abstract\", page.getHtml().xpath(\"//tbody/tr[2]/td[2]//*/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请日期\n\t\t\tpage.putField(\"apply_date\",page.getHtml().xpath(\"//tbody/tr[3]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//公开日期\n\t\t\tpage.putField(\"public_date\",page.getHtml().xpath(\"//tbody/tr[4]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请号\n\t\t\tpage.putField(\"patent_number\", page.getHtml().xpath(\"//tbody/tr[5]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//公开号\n\t\t\tpage.putField(\"public_number\", page.getHtml().xpath(\"//tbody/tr[6]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//主分类号\n\t\t\tpage.putField(\"main_type_number\",page.getHtml().xpath(\"//tbody/tr[7]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//分类号\n\t\t\tpage.putField(\"type_number\",page.getHtml().xpath(\"//tbody/tr[8]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请人\n\t\t\t//如果申请人为空,则没有span标签\n\t\t\tList<String> apply=new ArrayList<String>();\n\t\t\tapply=page.getHtml().xpath(\"//tbody/tr[10]/td[2]/span/text()\").all();\n\t\t\tif(apply.size()==0)\n\t\t\t{\n\t\t\t\tpage.putField(\"apply_people\",page.getHtml().xpath(\"//tbody/tr[10]/td[2]/text()\").all().get(0));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tpage.putField(\"apply_people\",apply.get(0));\n\t\t\t}\n\t\t\t\n\t\t\t//发明人\n\t\t\t//如果发明人为空,则没有span标签\n\t\t\tapply=page.getHtml().xpath(\"//tbody/tr[11]/td[2]/span/text()\").all();\n\t\t\tif(apply.size()==0)\n\t\t\t{\n\t\t\t\tpage.putField(\"patent_people\",page.getHtml().xpath(\"//tbody/tr[11]/td[2]/text()\").all().get(0));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tpage.putField(\"patent_people\",apply.get(0));\n\t\t\t}\t\n\t\t}\t\n\t\t\n\t\tpage.putField(\"url\", page.getRequest().getUrl());\n//\t\tSystem.out.println(page.getResultItems().get(\"patent_name\"));\n\t}", "public void setPageInfo(){\n\t\tif(AllP>=1){\n\t\t\tPageInfo=\"<table border='0' cellpadding='3'><tr><td>\";\n\t\t\tPageInfo+=\"Show: \"+PerR+\"/\"+AllR+\" Records!&nbsp;\";\n\t\t\tPageInfo+=\"Current page: \"+CurrentP+\"/\"+AllP;\n\t\t\tPageInfo+=\"</td></tr></table>\";\t\t\t\n\t\t}\t\t\t\t\n\t}", "protected ActivityDTO m10241a(String... strArr) {\n try {\n return this.f8958a.f8975c.a(this.f8958a.f8973a.mo3316c(), strArr[0]);\n } catch (Exception e) {\n return null;\n }\n }", "private void getDataFromMainActivity(){\n Intent intent = getIntent();\n Bundle bundle = intent.getExtras();\n site = bundle.getString(\"site\");\n }", "@SuppressLint(\"DefaultLocale\")\n @Override\n protected void onPostExecute(SoapObject result) {\n\n if (pd != null && pd.isShowing() && !OutletActivity.this.isFinishing()) {\n pd.dismiss();\n }\n\n if (Flag.equalsIgnoreCase(\"0\")) {\n\n Toast.makeText(\n getApplicationContext(),\n \"Connectivity Error, Please check Internet connection!!\",\n Toast.LENGTH_SHORT).show();\n\n } else if (Flag.equalsIgnoreCase(\"1\")) {\n\n try {\n outletDetailsArraylist = new ArrayList<OutletModel>();\n Cursor cursor;\n db.open();\n cursor = db.getdata_outlet(flotername);\n\n if (cursor != null && cursor.getCount() > 0) {\n cursor.moveToFirst();\n do {\n\n outletModel = new OutletModel();\n outletModel.setBACodeOutlet(cursor.getString(cursor.getColumnIndex(\"baCodeOutlet\")));\n outletModel.setBAnameOutlet(cursor.getString(cursor.getColumnIndex(\"banameOutlet\")));\n outletModel.setOutletname(cursor.getString(cursor.getColumnIndex(\"outletname\")));\n outletModel.setFlotername(cursor.getString(cursor.getColumnIndex(\"flotername\")));\n\n outletDetailsArraylist.add(outletModel);\n } while (cursor.moveToNext());\n cursor.close();\n }\n db.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n if (role.equalsIgnoreCase(\"FLR\")||\n role.equalsIgnoreCase(\"ADR\")||\n role.equalsIgnoreCase(\"BP\")) {\n if (outletDetailsArraylist.size() > 0) {\n strOutletArray = new String[outletDetailsArraylist.size() + 1];\n strOutletArray[0] = \"Office\";\n for (int i = 0; i < outletDetailsArraylist.size(); i++) {\n\n strOutletArray[i + 1] = outletDetailsArraylist.get(i).getOutletname() + \"(\" +\n outletDetailsArraylist.get(i).getBAnameOutlet() + \"-\" +\n outletDetailsArraylist.get(i).getBACodeOutlet() + \")\";\n }\n }\n } else {\n if (outletDetailsArraylist.size() > 0) {\n strOutletArray = new String[outletDetailsArraylist.size()];\n\n for (int i = 0; i < outletDetailsArraylist.size(); i++) {\n\n strOutletArray[i] = outletDetailsArraylist.get(i).getOutletname();\n\n }\n }\n }\n if (outletDetailsArraylist != null && outletDetailsArraylist.size() > 0) {\n ArrayAdapter<String> adapter1 = new ArrayAdapter<String>(OutletActivity.this, android.R.layout.simple_list_item_1, strOutletArray) {\n @Override\n public View getDropDownView(int position, View convertView, ViewGroup parent) {\n View v = null;\n // If this is the initial dummy entry, make it hidden\n if (position == 0) {\n TextView tv = new TextView(getContext());\n tv.setHeight(0);\n tv.setVisibility(View.GONE);\n v = tv;\n } else {\n // Pass convertView as null to prevent reuse of special case views\n v = super.getDropDownView(position, null, parent);\n }\n // Hide scroll bar because it appears sometimes unnecessarily, this does not prevent scrolling\n parent.setVerticalScrollBarEnabled(false);\n return v;\n }\n };\n\n adapter1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n outlet.setAdapter(adapter1);\n }\n }\n\n\n }", "public static void a(android.content.Context r5, java.lang.String r6, boolean r7, int r8, android.net.Uri r9) {\n /*\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r1 = z;\n r2 = 11;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r6);\n r1 = z;\n r2 = 7;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r8);\n r1 = z;\n r2 = 8;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r9);\n r1 = \"]\";\n r0 = r0.append(r1);\n r0 = r0.toString();\n com.whatsapp.util.Log.i(r0);\n if (r7 == 0) goto L_0x0058;\n L_0x003d:\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r1 = z;\n r2 = 9;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r8);\n r0 = r0.toString();\n r1 = com.whatsapp.wallpaper.ImageViewTouchBase.e;\n if (r1 == 0) goto L_0x006f;\n L_0x0058:\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r1 = z;\n r2 = 10;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r9);\n r0 = r0.toString();\n L_0x006f:\n r1 = z;\n r2 = 13;\n r1 = r1[r2];\n r2 = 0;\n r1 = r5.getSharedPreferences(r1, r2);\n r1 = r1.edit();\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = z;\n r4 = 12;\n r3 = r3[r4];\n r2 = r2.append(r3);\n r2 = r2.append(r6);\n r2 = r2.toString();\n r1.putString(r2, r0);\n r1.commit();\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.wallpaper.p.a(android.content.Context, java.lang.String, boolean, int, android.net.Uri):void\");\n }", "public interface Constants {\n final public static String TAG = \"[PracticalTest02Var03]\";\n\n final public static boolean DEBUG = true;\n\n final public static String WEB_SERVICE_ADDRESS = \"http://services.aonaware.com/DictService/DictService.asmx/Define\";\n\n final public static String EMPTY_STRING = \"\";\n\n final public static String QUERY_ATTRIBUTE = \"word\";\n\n final public static String SCRIPT_TAG = \"WordDefinition\";\n final public static String SEARCH_KEY = \"wui.api_data =\\n\";\n\n final public static String CURRENT_OBSERVATION = \"current_observation\";\n}", "public static void m5828f(String str) {\n if (f4669a != null) {\n Bundle bundle = new Bundle();\n bundle.putString(\"vehicleNum\", str);\n f4669a.m12578a(\"Search_Successful_WebView\", bundle);\n }\n Answers.getInstance().logCustom((CustomEvent) new CustomEvent(\"Search Successful WebView\").putCustomAttribute(\"vehicleNum\", str));\n }", "public interface ApiPathConstants {\n\n // The media type constants\n String APPLICATION_JSON = \"application/json\";\n String ACCEPT_APPLICATION_JSON = \"Accept=application/json\";\n\n // Need to match below variables according to the cbr project\n String DEFAULT_CASEBASE = \"CaseBase0\";\n String DEFAULT_CONCEPT = \"Car\";\n String DEFAULT_AMAL_FUNCTION = \"CarFunc\";\n String DEFAULT_ATTR_ID = \"Color\";\n\n // The number of retrieved cases per query as preferred by the user.\n String DEFAULT_NO_OF_CASES = \"-1\";\n String NO_OF_RETURNED_CASES = \"k\";\n\n\n // myCBR-rest API: core vocabulary - single\n String PROJECT = \"project\";\n String CONCEPT \t= \"concept\";\n String CASEBASE \t= \"casebase\";\n String AMAL_FUNCTION= \"amalgamationFunction\";\n String ATTR \t= \"attribute\";\n String CASE \t= \"case\";\n String INSTANCE\t= \"instance\";\n String VALUE \t= \"value\";\n String SIM_FUNCTION = \"similarityFunction\";\n String LIST = \"list\";\n String NEW = \"new\";\n\n String EPHEMERAL \t= \"ephemeral\";\n String ANALYTICS \t= \"analytics\";\n\n\n // myCBR-rest API: core vocabulary - multiple\n String S \t\t\t= \"s\";\n String CONCEPTS \t\t= CONCEPT \t+ S;\n String CASEBASES \t\t= CASEBASE \t+ S;\n String AMAL_FUNCTIONS\t= AMAL_FUNCTION + S;\n String ATTRS \t\t= ATTR \t\t+ S;\n String CASES \t\t= CASE \t\t+ S;\n String INSTANCES\t\t= INSTANCE \t+ S;\n String VALUES \t\t= VALUE \t+ S;\n String SIM_FUNCTIONS \t= SIM_FUNCTION\t+ S;\n\n\n // myCBR-rest API: ID vocabulary\n String ID \t\t\t= \"ID\";\n String CONCEPT_ID \t\t= CONCEPT \t+ ID;\n String CASEBASE_ID \t\t= CASEBASE \t+ ID;\n String AMAL_FUNCTION_ID \t= AMAL_FUNCTION + ID;\n String ATTR_ID \t\t= ATTR \t\t+ ID;\n String NEW_ATTR_ID \t\t= NEW + ATTR \t\t+ ID;\n String ATTR_IDS = ATTR \t\t+ ID + S;\n String CASE_ID \t\t= CASE \t\t+ ID;\n String INSTANCE_ID \t\t= INSTANCE \t+ ID;\n String SIM_FUNCTION_ID\t= SIM_FUNCTION \t+ ID;\n //String ATTR_ID_LIST \t\t= ATTR \t\t+ ID + LIST;\n\n\n // myCBR-rest API: type vocabulary specific names\n String TYPE \t\t= \"Type\";\n String AMAL_FUNCTION_TYPE \t= AMAL_FUNCTION + TYPE;\n String ATTR_TYPE \t \t= ATTR + TYPE;\n\n\n // Path variables\n\n // Path pattern: /___ss\n String PATH \t\t=\"/\";\n String PATH_PROJECT = PATH + PROJECT;\n String PATH_CONCEPTS \t= PATH + CONCEPTS;\n String PATH_CASEBASES \t= PATH + CASEBASES;\n String PATH_AMAL_FUNCTIONS = PATH + AMAL_FUNCTIONS;\n String PATH_CASES \t\t= PATH + CASES;\n String PATH_ATTRIBUTES \t= PATH + ATTRS;\n String PATH_VALUE_RANGE = PATH + VALUE + \"Range\";\n String PATH_SIM_FUNCTIONS = PATH + SIM_FUNCTIONS;\n\n String PATH_EPHEMERAL = PATH + EPHEMERAL;\n String PATH_ANALYTICS = PATH + ANALYTICS;\n\n\n // Path pattern: /___s/{___ID}\n String PATH_CONCEPT_ID\t = PATH_CONCEPTS + \"/{\" + CONCEPT_ID \t + \"}\";\n String PATH_CASEBASE_ID \t = PATH_CASEBASES + \"/{\" + CASEBASE_ID \t + \"}\";\n String PATH_AMAL_FUNCTION_ID = PATH_AMAL_FUNCTIONS + \"/{\" + AMAL_FUNCTION_ID+ \"}\";\n String PATH_CASE_ID \t = PATH_CASES + \"/{\" + CASE_ID\t + \"}\";\n String PATH_ATTR_ID \t = PATH_ATTRIBUTES + \"/{\" + ATTR_ID + \"}\";\n String PATH_SIM_FUNCTION_ID = PATH_SIM_FUNCTIONS + \"/{\" + SIM_FUNCTION_ID + \"}\";\n //String PATH_ATTR_ID_LIST \t = PATH_ATTRIBUTES + \"/{\" + ATTR_ID_LIST + \"}\";\n String PATH_NEW_ATTR_ID \t = PATH_ATTRIBUTES + \"/{\" + NEW_ATTR_ID + \"}\";\n\n\n // Path pattern: /concepts/{conceptID}/___s\n String PATH_CONCEPT_CASEBASES \t= PATH_CONCEPT_ID + PATH_CASEBASES;\n String PATH_CONCEPT_AMAL_FUNCTIONS = PATH_CONCEPT_ID + PATH_AMAL_FUNCTIONS;\n String PATH_CONCEPT_CASES \t \t= PATH_CONCEPT_ID + PATH_CASES;\n String PATH_CONCEPT_ATTRS \t \t= PATH_CONCEPT_ID + PATH_ATTRIBUTES;\n\n\n // Path pattern: /concepts/{conceptID}/___s/{___ID}\n String PATH_CONCEPT_CASEBASE_ID \t = PATH_CONCEPT_ID + PATH_CASEBASE_ID;\n String PATH_CONCEPT_AMAL_FUNCTION_ID = PATH_CONCEPT_ID + PATH_AMAL_FUNCTION_ID;\n String PATH_CONCEPT_CASE_ID \t = PATH_CONCEPT_ID + PATH_CASE_ID;\n String PATH_CONCEPT_ATTR_ID\t \t = PATH_CONCEPT_ID + PATH_ATTR_ID;\n //String PATH_CONCEPT_ATTR_ID_LIST\t \t = PATH_CONCEPT_ID + PATH_ATTR_ID_LIST;\n\n\n //Path pattern: /concepts/{conceptID}/casebases/{casebaseID}/___s\n String PATH_CONCEPT_CASEBASE_AMAL_FUNCTIONS = PATH_CONCEPT_CASEBASE_ID + PATH_AMAL_FUNCTIONS;\n String PATH_CONCEPT_CASEBASE_CASES = PATH_CONCEPT_CASEBASE_ID + PATH_CASES;\n\n //Path pattern: /concepts/{conceptID}/casebases/{casebaseID}/___s/{___ID}\n String PATH_CONCEPT_CASEBASE_AMAL_FUNCTION_ID = PATH_CONCEPT_CASEBASE_ID + PATH_AMAL_FUNCTION_ID;\n String PATH_CONCEPT_CASEBASE_CASE_ID = PATH_CONCEPT_CASEBASE_ID + PATH_CASE_ID;\n\n //Path pattern: /concepts/{conceptID}/attributes/{attributeID}/valueRange\n String PATH_CONCEPT_ATTR_VALUE_RANGE = PATH_CONCEPT_ATTR_ID + PATH_VALUE_RANGE;\n\n //Path pattern: /concepts/{conceptID}/attributes/{attributeID}/___s\n String PATH_CONCEPT_ATTR_SIM_FUNCTIONS = PATH_CONCEPT_ATTR_ID + PATH_SIM_FUNCTIONS;\n\n //Path pattern: /concepts/{conceptID}/attributes/{attributeID}/___s/{___ID}\n String PATH_CONCEPT_ATTR_SIM_FUNCTION_ID = PATH_CONCEPT_ATTR_ID + PATH_SIM_FUNCTION_ID;\n\n\n //Path pattern: /ephemeral/concepts/{conceptID}/amalgamationFunctions/{amalgamationFunctionID}s\n String PATH_EPHEMERAL_CONCEPT_AMAL_FUNCTION_ID = PATH_EPHEMERAL + PATH_CONCEPT_AMAL_FUNCTION_ID;\n\n //Path pattern: /analytics/concepts/{conceptID}/amalgamationFunctions/{amalgamationFunctionID}\n String PATH_ANALYTICS_CONCEPT_AMAL_FUNCTION_ID = PATH_ANALYTICS + PATH_CONCEPT_AMAL_FUNCTION_ID;\n\n String COMPUTE_SELF_SIMLARITY = \"computeSelfSimilarity\";\n String RETRIEVAL_BY_CASE_IDS = \"retrievalByCaseIDs\";\n String RETRIEVAL_BY_CASE_ID_WITH_CONTENT = \"retrievalByCaseIDWithContent\";\n\n // Path pattern: /___\n String PATH_SELF_SIMLARITY \t\t= PATH + COMPUTE_SELF_SIMLARITY;\n String PATH_RETRIEVAL \t\t\t= PATH + RETRIEVAL_BY_CASE_IDS;\n String PATH_RETRIEVAL_BY_CASE_ID_WITH_CONTENT \t= PATH + RETRIEVAL_BY_CASE_ID_WITH_CONTENT;\n\n String PATH_CONCEPT_CASEBASE_SELF_SIMLARITY = PATH_CONCEPT_CASEBASE_ID + PATH_SELF_SIMLARITY;\n\n String PATH_DEFAULT_EPHEMERAL = PATH_EPHEMERAL + PATH_CONCEPT_CASEBASE_AMAL_FUNCTION_ID;\n String PATH_EPHEMERAL_RETRIEVAL = PATH_DEFAULT_EPHEMERAL + PATH_RETRIEVAL;\n String PATH_EPHEMERAL_RETRIEVAL_WITH_CONTENT = PATH_DEFAULT_EPHEMERAL + PATH_RETRIEVAL_BY_CASE_ID_WITH_CONTENT;\n String PATH_EPHEMERAL_SELF_SIMILARITY = PATH_DEFAULT_EPHEMERAL + PATH_SELF_SIMLARITY;\n}", "public interface Keys {\n String VIEW_PAGER_INDEX = \"view_pager_index\";\n String LOCAL_MUSIC_POSITION = \"local_music_position\";\n String LOCAL_MUSIC_OFFSET = \"local_music_offset\";\n String PLAYLIST_POSITION = \"playlist_position\";\n String PLAYLIST_OFFSET = \"playlist_offset\";\n}", "public Map<String, String> mo9339b() {\n HashMap hashMap = new HashMap();\n hashMap.put(\"sdk_version\", AppLovinSdk.VERSION);\n hashMap.put(\"build\", String.valueOf(131));\n if (!((Boolean) this.f2745b.mo10202a(C1096c.f2507eM)).booleanValue()) {\n hashMap.put(AppLovinWebViewActivity.INTENT_EXTRA_KEY_SDK_KEY, this.f2745b.mo10246t());\n }\n C1200b c = this.f2745b.mo10189O().mo10261c();\n hashMap.put(InMobiNetworkValues.PACKAGE_NAME, C1277l.m3044d(c.f2980c));\n hashMap.put(TapjoyConstants.TJC_APP_VERSION_NAME, C1277l.m3044d(c.f2979b));\n hashMap.put(TapjoyConstants.TJC_PLATFORM, \"android\");\n hashMap.put(\"os\", C1277l.m3044d(VERSION.RELEASE));\n return hashMap;\n }", "public static java.util.Map<java.lang.String, java.lang.String> getImeiAndMeid() {\n /*\n java.lang.String r0 = \"PhoneInfoUtil\"\n java.util.HashMap r1 = new java.util.HashMap\n r1.<init>()\n r2 = 0\n java.lang.StringBuilder r3 = new java.lang.StringBuilder // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n r3.<init>() // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n java.lang.String r4 = \"android api: \"\n r3.append(r4) // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n int r4 = android.os.Build.VERSION.SDK_INT // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n r3.append(r4) // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n java.lang.String r4 = \"\\n\"\n r3.append(r4) // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n java.lang.String r3 = r3.toString() // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n com.tencent.p605ep.commonbase.api.Log.m31483i(r0, r3) // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n android.content.Context r3 = com.tencent.p605ep.commonbase.api.AppContext.getAppContext() // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n java.lang.String r4 = \"phone\"\n java.lang.Object r3 = r3.getSystemService(r4) // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n android.telephony.TelephonyManager r3 = (android.telephony.TelephonyManager) r3 // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n int r4 = android.os.Build.VERSION.SDK_INT // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n r5 = 21\n if (r4 >= r5) goto L_0x0039\n r4 = r2\n r8 = r4\n goto L_0x0182\n L_0x0039:\n int r4 = android.os.Build.VERSION.SDK_INT // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n r5 = 26\n r6 = 0\n r7 = 1\n if (r4 >= r5) goto L_0x00b3\n java.lang.String r4 = r3.getDeviceId(r6) // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n boolean r5 = android.text.TextUtils.isEmpty(r4) // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n r6 = 14\n if (r5 != 0) goto L_0x0059\n int r5 = r4.length() // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n if (r5 != r6) goto L_0x0056\n r5 = r2\n r8 = r4\n goto L_0x005b\n L_0x0056:\n r8 = r2\n r5 = r4\n goto L_0x005b\n L_0x0059:\n r5 = r2\n r8 = r5\n L_0x005b:\n java.lang.StringBuilder r9 = new java.lang.StringBuilder // Catch:{ SecurityException -> 0x00ae, all -> 0x00a9 }\n r9.<init>() // Catch:{ SecurityException -> 0x00ae, all -> 0x00a9 }\n java.lang.String r10 = \"\\ngetDeviceId(0): \"\n r9.append(r10) // Catch:{ SecurityException -> 0x00ae, all -> 0x00a9 }\n r9.append(r4) // Catch:{ SecurityException -> 0x00ae, all -> 0x00a9 }\n java.lang.String r4 = r9.toString() // Catch:{ SecurityException -> 0x00ae, all -> 0x00a9 }\n com.tencent.p605ep.commonbase.api.Log.m31483i(r0, r4) // Catch:{ SecurityException -> 0x00ae, all -> 0x00a9 }\n java.lang.String r3 = r3.getDeviceId(r7) // Catch:{ SecurityException -> 0x00ae, all -> 0x00a9 }\n boolean r4 = android.text.TextUtils.isEmpty(r3) // Catch:{ SecurityException -> 0x00ae, all -> 0x00a9 }\n if (r4 != 0) goto L_0x0084\n int r4 = r3.length() // Catch:{ SecurityException -> 0x00ae, all -> 0x00a9 }\n if (r4 != r6) goto L_0x0082\n r4 = r2\n r8 = r3\n goto L_0x0085\n L_0x0082:\n r4 = r3\n goto L_0x0085\n L_0x0084:\n r4 = r2\n L_0x0085:\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ SecurityException -> 0x00a7, all -> 0x00a5 }\n r6.<init>() // Catch:{ SecurityException -> 0x00a7, all -> 0x00a5 }\n java.lang.String r7 = \"\\ngetDeviceId(1): \"\n r6.append(r7) // Catch:{ SecurityException -> 0x00a7, all -> 0x00a5 }\n r6.append(r3) // Catch:{ SecurityException -> 0x00a7, all -> 0x00a5 }\n java.lang.String r3 = r6.toString() // Catch:{ SecurityException -> 0x00a7, all -> 0x00a5 }\n com.tencent.p605ep.commonbase.api.Log.m31483i(r0, r3) // Catch:{ SecurityException -> 0x00a7, all -> 0x00a5 }\n boolean r3 = android.text.TextUtils.equals(r5, r4) // Catch:{ SecurityException -> 0x00a7, all -> 0x00a5 }\n if (r3 == 0) goto L_0x00a2\n r4 = r8\n goto L_0x0146\n L_0x00a2:\n r2 = r5\n goto L_0x0182\n L_0x00a5:\n r3 = move-exception\n goto L_0x00ab\n L_0x00a7:\n r3 = move-exception\n goto L_0x00b0\n L_0x00a9:\n r3 = move-exception\n r4 = r2\n L_0x00ab:\n r2 = r5\n goto L_0x0173\n L_0x00ae:\n r3 = move-exception\n r4 = r2\n L_0x00b0:\n r2 = r5\n goto L_0x017f\n L_0x00b3:\n java.lang.Class r4 = r3.getClass() // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n java.lang.String r5 = \"getMeid\"\n java.lang.Class[] r8 = new java.lang.Class[r7] // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n java.lang.Class r9 = java.lang.Integer.TYPE // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n r8[r6] = r9 // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n java.lang.reflect.Method r4 = r4.getMethod(r5, r8) // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n r4.setAccessible(r7) // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n java.lang.Object[] r5 = new java.lang.Object[r7] // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n java.lang.Integer r8 = java.lang.Integer.valueOf(r6) // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n r5[r6] = r8 // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n java.lang.Object r4 = r4.invoke(r3, r5) // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n java.lang.String r4 = (java.lang.String) r4 // Catch:{ SecurityException -> 0x017c, all -> 0x0170 }\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ SecurityException -> 0x016c, all -> 0x0168 }\n r5.<init>() // Catch:{ SecurityException -> 0x016c, all -> 0x0168 }\n java.lang.String r8 = \"\\napi 26+, meid: \"\n r5.append(r8) // Catch:{ SecurityException -> 0x016c, all -> 0x0168 }\n r5.append(r4) // Catch:{ SecurityException -> 0x016c, all -> 0x0168 }\n java.lang.String r5 = r5.toString() // Catch:{ SecurityException -> 0x016c, all -> 0x0168 }\n com.tencent.p605ep.commonbase.api.Log.m31483i(r0, r5) // Catch:{ SecurityException -> 0x016c, all -> 0x0168 }\n java.lang.Class r5 = r3.getClass() // Catch:{ SecurityException -> 0x016c, all -> 0x0168 }\n java.lang.String r8 = \"getImei\"\n java.lang.Class[] r9 = new java.lang.Class[r7] // Catch:{ SecurityException -> 0x016c, all -> 0x0168 }\n java.lang.Class r10 = java.lang.Integer.TYPE // Catch:{ SecurityException -> 0x016c, all -> 0x0168 }\n r9[r6] = r10 // Catch:{ SecurityException -> 0x016c, all -> 0x0168 }\n java.lang.reflect.Method r5 = r5.getMethod(r8, r9) // Catch:{ SecurityException -> 0x016c, all -> 0x0168 }\n r5.setAccessible(r7) // Catch:{ SecurityException -> 0x016c, all -> 0x0168 }\n java.lang.Object[] r8 = new java.lang.Object[r7] // Catch:{ SecurityException -> 0x016c, all -> 0x0168 }\n java.lang.Integer r9 = java.lang.Integer.valueOf(r6) // Catch:{ SecurityException -> 0x016c, all -> 0x0168 }\n r8[r6] = r9 // Catch:{ SecurityException -> 0x016c, all -> 0x0168 }\n java.lang.Object r8 = r5.invoke(r3, r8) // Catch:{ SecurityException -> 0x016c, all -> 0x0168 }\n java.lang.String r8 = (java.lang.String) r8 // Catch:{ SecurityException -> 0x016c, all -> 0x0168 }\n java.lang.Object[] r9 = new java.lang.Object[r7] // Catch:{ SecurityException -> 0x0162, all -> 0x015c }\n java.lang.Integer r7 = java.lang.Integer.valueOf(r7) // Catch:{ SecurityException -> 0x0162, all -> 0x015c }\n r9[r6] = r7 // Catch:{ SecurityException -> 0x0162, all -> 0x015c }\n java.lang.Object r3 = r5.invoke(r3, r9) // Catch:{ SecurityException -> 0x0162, all -> 0x015c }\n java.lang.String r3 = (java.lang.String) r3 // Catch:{ SecurityException -> 0x0162, all -> 0x015c }\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ SecurityException -> 0x0155, all -> 0x014e }\n r5.<init>() // Catch:{ SecurityException -> 0x0155, all -> 0x014e }\n java.lang.String r6 = \"\\napi 26+, imei1: \"\n r5.append(r6) // Catch:{ SecurityException -> 0x0155, all -> 0x014e }\n r5.append(r8) // Catch:{ SecurityException -> 0x0155, all -> 0x014e }\n java.lang.String r5 = r5.toString() // Catch:{ SecurityException -> 0x0155, all -> 0x014e }\n com.tencent.p605ep.commonbase.api.Log.m31483i(r0, r5) // Catch:{ SecurityException -> 0x0155, all -> 0x014e }\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ SecurityException -> 0x0155, all -> 0x014e }\n r5.<init>() // Catch:{ SecurityException -> 0x0155, all -> 0x014e }\n java.lang.String r6 = \"\\napi 26+, imei2: \"\n r5.append(r6) // Catch:{ SecurityException -> 0x0155, all -> 0x014e }\n r5.append(r3) // Catch:{ SecurityException -> 0x0155, all -> 0x014e }\n java.lang.String r5 = r5.toString() // Catch:{ SecurityException -> 0x0155, all -> 0x014e }\n com.tencent.p605ep.commonbase.api.Log.m31483i(r0, r5) // Catch:{ SecurityException -> 0x0155, all -> 0x014e }\n boolean r5 = android.text.TextUtils.equals(r8, r3) // Catch:{ SecurityException -> 0x0155, all -> 0x014e }\n if (r5 == 0) goto L_0x014a\n r5 = r8\n L_0x0146:\n r8 = r4\n r4 = r2\n goto L_0x00a2\n L_0x014a:\n r2 = r8\n r8 = r4\n r4 = r3\n goto L_0x0182\n L_0x014e:\n r2 = move-exception\n r11 = r3\n r3 = r2\n r2 = r8\n r8 = r4\n r4 = r11\n goto L_0x0173\n L_0x0155:\n r2 = move-exception\n r11 = r3\n r3 = r2\n r2 = r8\n r8 = r4\n r4 = r11\n goto L_0x017f\n L_0x015c:\n r3 = move-exception\n r11 = r4\n r4 = r2\n r2 = r8\n r8 = r11\n goto L_0x0173\n L_0x0162:\n r3 = move-exception\n r11 = r4\n r4 = r2\n r2 = r8\n r8 = r11\n goto L_0x017f\n L_0x0168:\n r3 = move-exception\n r8 = r4\n r4 = r2\n goto L_0x0173\n L_0x016c:\n r3 = move-exception\n r8 = r4\n r4 = r2\n goto L_0x017f\n L_0x0170:\n r3 = move-exception\n r4 = r2\n r8 = r4\n L_0x0173:\n r3.printStackTrace()\n java.lang.String r5 = \"getImeiAndMeid\"\n com.tencent.p605ep.commonbase.api.Log.m31488w(r0, r5, r3)\n goto L_0x0182\n L_0x017c:\n r3 = move-exception\n r4 = r2\n r8 = r4\n L_0x017f:\n r3.printStackTrace()\n L_0x0182:\n boolean r3 = android.text.TextUtils.isEmpty(r8)\n if (r3 != 0) goto L_0x018d\n java.lang.String r3 = \"meid\"\n r1.put(r3, r8)\n L_0x018d:\n boolean r3 = android.text.TextUtils.isEmpty(r2)\n if (r3 != 0) goto L_0x0198\n java.lang.String r3 = \"imei1\"\n r1.put(r3, r2)\n L_0x0198:\n boolean r3 = android.text.TextUtils.isEmpty(r4)\n if (r3 != 0) goto L_0x01a3\n java.lang.String r3 = \"imei2\"\n r1.put(r3, r4)\n L_0x01a3:\n java.lang.StringBuilder r3 = new java.lang.StringBuilder\n r3.<init>()\n java.lang.String r5 = \"meid: \"\n r3.append(r5)\n r3.append(r8)\n java.lang.String r3 = r3.toString()\n com.tencent.p605ep.commonbase.api.Log.m31483i(r0, r3)\n java.lang.StringBuilder r3 = new java.lang.StringBuilder\n r3.<init>()\n java.lang.String r5 = \"imei1: \"\n r3.append(r5)\n r3.append(r2)\n java.lang.String r2 = r3.toString()\n com.tencent.p605ep.commonbase.api.Log.m31483i(r0, r2)\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"imei2: \"\n r2.append(r3)\n r2.append(r4)\n java.lang.String r2 = r2.toString()\n com.tencent.p605ep.commonbase.api.Log.m31483i(r0, r2)\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.p605ep.commonbase.utils.PhoneInfoUtil.getImeiAndMeid():java.util.Map\");\n }", "public static RemoteObject _class_globals(RemoteObject __ref) throws Exception{\nb4i_customlistview._mbase = RemoteObject.createNew (\"B4XViewWrapper\");__ref.setField(\"_mbase\",b4i_customlistview._mbase);\n //BA.debugLineNum = 15;BA.debugLine=\"Public sv As B4XView\";\nb4i_customlistview._sv = RemoteObject.createNew (\"B4XViewWrapper\");__ref.setField(\"_sv\",b4i_customlistview._sv);\n //BA.debugLineNum = 16;BA.debugLine=\"Type CLVItem(Panel As B4XView, Size As Int, Value\";\n;\n //BA.debugLineNum = 18;BA.debugLine=\"Private items As List\";\nb4i_customlistview._items = RemoteObject.createNew (\"B4IList\");__ref.setField(\"_items\",b4i_customlistview._items);\n //BA.debugLineNum = 19;BA.debugLine=\"Private mDividerSize As Float\";\nb4i_customlistview._mdividersize = RemoteObject.createImmutable(0.0f);__ref.setField(\"_mdividersize\",b4i_customlistview._mdividersize);\n //BA.debugLineNum = 20;BA.debugLine=\"Private EventName As String\";\nb4i_customlistview._eventname = RemoteObject.createImmutable(\"\");__ref.setField(\"_eventname\",b4i_customlistview._eventname);\n //BA.debugLineNum = 21;BA.debugLine=\"Private CallBack As Object\";\nb4i_customlistview._callback = RemoteObject.createNew (\"NSObject\");__ref.setField(\"_callback\",b4i_customlistview._callback);\n //BA.debugLineNum = 22;BA.debugLine=\"Public DefaultTextColor As Int\";\nb4i_customlistview._defaulttextcolor = RemoteObject.createImmutable(0);__ref.setField(\"_defaulttextcolor\",b4i_customlistview._defaulttextcolor);\n //BA.debugLineNum = 23;BA.debugLine=\"Public DefaultTextBackgroundColor As Int\";\nb4i_customlistview._defaulttextbackgroundcolor = RemoteObject.createImmutable(0);__ref.setField(\"_defaulttextbackgroundcolor\",b4i_customlistview._defaulttextbackgroundcolor);\n //BA.debugLineNum = 24;BA.debugLine=\"Public AnimationDuration As Int = 300\";\nb4i_customlistview._animationduration = BA.numberCast(int.class, 300);__ref.setField(\"_animationduration\",b4i_customlistview._animationduration);\n //BA.debugLineNum = 25;BA.debugLine=\"Private LastReachEndEvent As Long\";\nb4i_customlistview._lastreachendevent = RemoteObject.createImmutable(0L);__ref.setField(\"_lastreachendevent\",b4i_customlistview._lastreachendevent);\n //BA.debugLineNum = 26;BA.debugLine=\"Public PressedColor As Int\";\nb4i_customlistview._pressedcolor = RemoteObject.createImmutable(0);__ref.setField(\"_pressedcolor\",b4i_customlistview._pressedcolor);\n //BA.debugLineNum = 27;BA.debugLine=\"Private xui As XUI\";\nb4i_customlistview._xui = RemoteObject.createNew (\"B4IXUI\");__ref.setField(\"_xui\",b4i_customlistview._xui);\n //BA.debugLineNum = 28;BA.debugLine=\"Private DesignerLabel As Label\";\nb4i_customlistview._designerlabel = RemoteObject.createNew (\"B4ILabelWrapper\");__ref.setField(\"_designerlabel\",b4i_customlistview._designerlabel);\n //BA.debugLineNum = 29;BA.debugLine=\"Private horizontal As Boolean\";\nb4i_customlistview._horizontal = RemoteObject.createImmutable(false);__ref.setField(\"_horizontal\",b4i_customlistview._horizontal);\n //BA.debugLineNum = 35;BA.debugLine=\"Private FeedbackGenerator As NativeObject\";\nb4i_customlistview._feedbackgenerator = RemoteObject.createNew (\"B4INativeObject\");__ref.setField(\"_feedbackgenerator\",b4i_customlistview._feedbackgenerator);\n //BA.debugLineNum = 37;BA.debugLine=\"Private mFirstVisibleIndex, mLastVisibleIndex As\";\nb4i_customlistview._mfirstvisibleindex = RemoteObject.createImmutable(0);__ref.setField(\"_mfirstvisibleindex\",b4i_customlistview._mfirstvisibleindex);\nb4i_customlistview._mlastvisibleindex = RemoteObject.createImmutable(0);__ref.setField(\"_mlastvisibleindex\",b4i_customlistview._mlastvisibleindex);\n //BA.debugLineNum = 38;BA.debugLine=\"Private MonitorVisibleRange As Boolean\";\nb4i_customlistview._monitorvisiblerange = RemoteObject.createImmutable(false);__ref.setField(\"_monitorvisiblerange\",b4i_customlistview._monitorvisiblerange);\n //BA.debugLineNum = 39;BA.debugLine=\"Private FireScrollChanged As Boolean\";\nb4i_customlistview._firescrollchanged = RemoteObject.createImmutable(false);__ref.setField(\"_firescrollchanged\",b4i_customlistview._firescrollchanged);\n //BA.debugLineNum = 40;BA.debugLine=\"Private ScrollBarsVisible As Boolean\";\nb4i_customlistview._scrollbarsvisible = RemoteObject.createImmutable(false);__ref.setField(\"_scrollbarsvisible\",b4i_customlistview._scrollbarsvisible);\n //BA.debugLineNum = 41;BA.debugLine=\"End Sub\";\nreturn RemoteObject.createImmutable(\"\");\n}", "private static String selectAppArguments(String targetApp) {\n\t\tString tmp = \"\";\n\t\tswitch(targetApp){\n\t\tcase \"NAVI\": \n\t\t\ttmp+=\"maps_size=\"+SimulationSetup.navigatorMapSize;\n\t\t\tbreak;\n\t\tcase \"ANTIVIRUS\":\n\t\t\ttmp+=\"file_size=\"+SimulationSetup.antivirusFileSize;\n\t\t\tbreak;\n\t\tcase \"FACEREC\":\n\t\t\ttmp+=\"image_size=\"+SimulationSetup.facerecImageSize;\n\t\t\tbreak;\n\t\tcase \"CHESS\":\n\t\t\ttmp+=\"chess_mi=\"+SimulationSetup.chess_mi;\n\t\t\tbreak;\n\t\tcase \"FACEBOOK\":\n\t\t\ttmp+=\"image_size=\"+SimulationSetup.facebookImageSize;\n\t\t\tbreak;\n\t\t}\n\t\treturn tmp;\n\t}", "void m1478a(String str, Map<String, String> map, Integer num, Integer num2, Integer num3) {\n if (this.f1377d == C0833a.f1372b) {\n this.f1374a.setWebViewClient(new C08322(this));\n this.f1374a.loadData(C0834g.m1472a(this.f1376c, str, num, num2, new JSONObject(map), num3), AudienceNetworkActivity.WEBVIEW_MIME_TYPE, null);\n }\n }", "public void mo35983a(String str, View view) {\n HashMap hashMap = new HashMap();\n String str2 = \"{}\";\n if (view != null) {\n try {\n DisplayMetrics l = m36216l(view);\n boolean c = m36207c(view);\n boolean d = m36208d(view);\n boolean e = m36209e(view);\n float f = m36210f(view);\n hashMap.put(\"dr\", Float.valueOf(l.density));\n hashMap.put(\"dv\", Double.valueOf(C10972s.m36121a()));\n hashMap.put(\"adKey\", str);\n boolean z = false;\n hashMap.put(\"isAttached\", Integer.valueOf(c ? 1 : 0));\n hashMap.put(\"inFocus\", Integer.valueOf(d ? 1 : 0));\n hashMap.put(\"isHidden\", Integer.valueOf(e ? 1 : 0));\n hashMap.put(\"opacity\", Float.valueOf(f));\n Rect a = m36190a(l);\n Rect a2 = m36191a(view);\n C11003c a3 = m36194a(view, a2, c, d, e);\n if (this.f33603c == null || a3.f33616b != this.f33602b.f33616b || !a3.f33615a.equals(this.f33602b.f33615a) || a3.f33617c != this.f33602b.f33617c) {\n this.f33602b = a3;\n this.f33603c = new JSONObject(m36196a(this.f33602b.f33615a, l));\n z = true;\n }\n hashMap.put(\"coveredPercent\", Double.valueOf(a3.f33617c));\n if (this.f33607g == null || !a.equals(this.f33605e)) {\n this.f33605e = a;\n this.f33607g = new JSONObject(m36196a(a, l));\n z = true;\n }\n if (this.f33606f == null || !a2.equals(this.f33604d)) {\n this.f33604d = a2;\n this.f33606f = new JSONObject(m36196a(a2, l));\n z = true;\n }\n if (this.f33609i == null || !hashMap.equals(this.f33609i)) {\n this.f33609i = hashMap;\n z = true;\n }\n Location b = C10966o.m36089a().mo35961b();\n if (!C10966o.m36094a(b, this.f33608h)) {\n this.f33608h = b;\n z = true;\n }\n if (z) {\n JSONObject jSONObject = new JSONObject(this.f33609i);\n jSONObject.accumulate(\"screen\", this.f33607g);\n jSONObject.accumulate(\"view\", this.f33606f);\n jSONObject.accumulate(\"visible\", this.f33603c);\n jSONObject.accumulate(\"maybe\", this.f33603c);\n jSONObject.accumulate(\"visiblePercent\", Double.valueOf(this.f33602b.f33616b));\n if (b != null) {\n jSONObject.accumulate(\"location\", m36197a(b));\n }\n this.f33601a = jSONObject.toString();\n }\n } catch (Exception e2) {\n C10960m.m36077a(e2);\n this.f33601a = str2;\n }\n }\n }", "public interface Constants {\n\n final public static String TAG = \"[PracticalTest02Var04]\";\n\n final public static boolean DEBUG = true;\n\n final public static String EMPTY_STRING = \"\";\n\n final public static String QUERY_ATTRIBUTE = \"query\";\n\n final public static String SCRIPT_TAG = \"script\";\n final public static String SEARCH_KEY = \"wui.api_data =\\n\";\n\n final public static String CURRENT_OBSERVATION = \"current_observation\";\n\n}", "public interface ModelViewConstant {\n\n interface MODEL {\n String\n EXCEPTION = \"exception\",\n PAGE = \"page\",\n LOCALISED_PAGE = \"localisedPage\",\n LANGUAGE = \"language\";\n\n }\n\n interface VIEW {\n String\n ERROR = \"errors/error\",\n PAGE = \"page\",\n INDEX = \"index\";\n }\n\n interface PROJECTION {\n String\n WITH_LOCALISED_PAGES = \"with-localised-pages\";\n }\n\n}", "public String getComments() \n{\nreturn (String)get_Value(\"Comments\");\n}" ]
[ "0.5584313", "0.55263644", "0.52137613", "0.5133729", "0.504267", "0.5031494", "0.49973026", "0.49882954", "0.49790064", "0.49774587", "0.49703115", "0.49574548", "0.49322644", "0.49312174", "0.4892794", "0.48901176", "0.48840404", "0.4870962", "0.48692447", "0.48638955", "0.48609135", "0.48582762", "0.48441172", "0.48383224", "0.48193124", "0.48098895", "0.48095495", "0.48090833", "0.47996235", "0.47969443", "0.47963768", "0.47940785", "0.47904766", "0.47827023", "0.47826925", "0.4779618", "0.47705057", "0.47699645", "0.47664428", "0.4765735", "0.47655666", "0.4758157", "0.4755498", "0.47491306", "0.47381777", "0.47335163", "0.4731179", "0.47265026", "0.47072762", "0.47072762", "0.47072762", "0.47021952", "0.46942475", "0.46929166", "0.46904758", "0.46872658", "0.4684554", "0.46759975", "0.46713492", "0.46666217", "0.46558207", "0.4654606", "0.465288", "0.46524867", "0.46473712", "0.4646468", "0.46442038", "0.4644097", "0.46394894", "0.46272928", "0.46264258", "0.46146703", "0.46082145", "0.46033862", "0.46022773", "0.45943788", "0.4594257", "0.45871794", "0.45843375", "0.4582283", "0.45796436", "0.45779225", "0.457436", "0.45675093", "0.4564192", "0.45594454", "0.45591635", "0.455573", "0.45551974", "0.45522574", "0.45484895", "0.45465246", "0.45432067", "0.4537494", "0.45357028", "0.45312253", "0.4523304", "0.452213", "0.4520923", "0.450892", "0.45074394" ]
0.0
-1
Data comes to this method in form of json. The source of data(at present) is the map. This method uses the products and other data to prefill the unifiedCampaignDTO values.
private void setJsonDataInUnifiedCampaign(UnifiedCampaignDTO unifiedCampaignDTO, boolean checkMaster){ try{ JSONObject jsonObject = (JSONObject) JSONSerializer.toJSON(request.getParameter("jsonParam").trim()); IProductService productService = (IProductService) BusinessServiceLocator.locate(IProductService.class); String products = jsonObject.getString("products"); Date startDate = new Date(); Date endDate = DateUtil.getDateBeforeAfterDays(30); unifiedCampaignDTO.setStartDate(DateUtil.getDateAsString(startDate, "MM-dd-yyyy")); unifiedCampaignDTO.setEndDate(DateUtil.getDateAsString(endDate, "MM-dd-yyyy")); unifiedCampaignDTO.setPStartDate(DateUtil.getDateAsString(startDate, "MM-dd-yyyy")); unifiedCampaignDTO.setPEndDate(DateUtil.getDateAsString(endDate, "MM-dd-yyyy")); if(products != null && products.trim().length() > 0){ List<ProductsObj> productsList = productService.loadProducts(Arrays.asList(products.split(","))); if(productsList != null){ Set<CommonDTO> creatives = new HashSet<CommonDTO>(); Set<CommonDTO> platforms = new HashSet<CommonDTO>(); Set<CommonDTO> devices = new HashSet<CommonDTO>(); for(ProductsObj product: productsList){ if(product.getCreative() != null){ for(CreativeObj creative: product.getCreative()){ creatives.add(new CommonDTO(String.valueOf(creative.getId()), creative.getSize())); } } if(product.getPlatforms() != null && product.getPlatforms().size() > 0){ for(PlatformObj platform : product.getPlatforms()){ if(String.valueOf(platform.getId()).equals(ProductService.allOptionId)){ platforms.clear(); platforms.add(new CommonDTO(ProductService.allOptionId, ProductService.allOption)); break; } platforms.add(new CommonDTO(String.valueOf(platform.getId()), platform.getText())); } }else { platforms.add(new CommonDTO(ProductService.allOptionId, ProductService.allOption)); } if(product.getDevices() != null && product.getDevices().size() > 0){ for(DeviceObj device : product.getDevices()){ if(String.valueOf(device.getId()).equals(ProductService.allOptionId)){ devices.clear(); devices.add(new CommonDTO(ProductService.allOptionId, ProductService.allOption)); break; } devices.add(new CommonDTO(String.valueOf(device.getId()), device.getText())); } }else { devices.add(new CommonDTO(ProductService.allOptionId, ProductService.allOption)); } unifiedCampaignDTO.setDeviceCapability(product.getDeviceCapability()); unifiedCampaignDTO.setSelectedDevicePlacementList(new ArrayList<CommonDTO>(devices)); unifiedCampaignDTO.setSelectedPlatformPlacementList(new ArrayList<CommonDTO>(platforms)); unifiedCampaignDTO.setSelectedCreativePlacementList(new ArrayList<CommonDTO>(creatives)); } } int deviceCapability = ReportUtil.TARGETING_ANY; for(ProductsObj product: productsList){ if((deviceCapability == ReportUtil.TARGETING_MOBILE_WEB_ONLY && product.getDeviceCapability() == ReportUtil.TARGETING_MOBILE_APP_ONLY)|| (deviceCapability == ReportUtil.TARGETING_MOBILE_APP_ONLY && product.getDeviceCapability() == ReportUtil.TARGETING_MOBILE_WEB_ONLY)){ deviceCapability = ReportUtil.TARGETING_MOBILE_APP_AND_WEB; continue; } if(product.getDeviceCapability() == ReportUtil.TARGETING_ANY){ deviceCapability = ReportUtil.TARGETING_ANY; break; } deviceCapability = product.getDeviceCapability(); } unifiedCampaignDTO.setDeviceCapability(deviceCapability); } try{unifiedCampaignDTO.setSelectedPlacementProducts(jsonObject.getString("products"));}catch(Exception e){} try{unifiedCampaignDTO.setUpperAge(jsonObject.getString("upperAge"));unifiedCampaignDTO.setIsDemographic(Boolean.TRUE.toString());}catch(Exception e){} try{unifiedCampaignDTO.setLowerAge(jsonObject.getString("lowerAge"));unifiedCampaignDTO.setIsDemographic(Boolean.TRUE.toString());}catch(Exception e){} try{unifiedCampaignDTO.setUpperIncome(jsonObject.getString("upperIncome"));unifiedCampaignDTO.setIsDemographic(Boolean.TRUE.toString());}catch(Exception e){} try{unifiedCampaignDTO.setLowerIncome(jsonObject.getString("lowerIncome"));unifiedCampaignDTO.setIsDemographic(Boolean.TRUE.toString());}catch(Exception e){} try{unifiedCampaignDTO.setGender(jsonObject.getString("gender"));unifiedCampaignDTO.setIsDemographic(Boolean.TRUE.toString());}catch(Exception e){} try{unifiedCampaignDTO.setSelectedEducationList(getDTOListFromJSONObject(jsonObject.getString("educationList"), unifiedCampaignDTO.getEducationList(), checkMaster));unifiedCampaignDTO.setIsDemographic(Boolean.TRUE.toString());}catch(Exception e){} try{unifiedCampaignDTO.setSelectedEthinicityList(getDTOListFromJSONObject(jsonObject.getString("ethnicityList"), unifiedCampaignDTO.getEthinicityList(), checkMaster));unifiedCampaignDTO.setIsDemographic(Boolean.TRUE.toString());}catch(Exception e){} try{unifiedCampaignDTO.setSelectedCountryList(getDTOListFromJSON(jsonObject.getString("countryList"), unifiedCampaignDTO.getCountryList(), checkMaster));unifiedCampaignDTO.setIsGeographic(Boolean.TRUE.toString());}catch(Exception e){} try{unifiedCampaignDTO.setSelectedDMAPlacementList(getDTOListFromJSONObject(jsonObject.getString("dmaList"), unifiedCampaignDTO.getDmaList(), checkMaster));unifiedCampaignDTO.setIsGeographic(Boolean.TRUE.toString());}catch(Exception e){} try{unifiedCampaignDTO.setSelectedStateList(getDTOListFromJSONObject(jsonObject.getString("stateList"), unifiedCampaignDTO.getStateList(), checkMaster));unifiedCampaignDTO.setIsGeographic(Boolean.TRUE.toString());}catch(Exception e){} try{ String cityList = jsonObject.getString("cityList"); if(cityList != null && cityList.trim().length()>0){ unifiedCampaignDTO.setCityJSON("{\"cityList\":"+cityList+"}"); } unifiedCampaignDTO.setIsGeographic(Boolean.TRUE.toString()); }catch(Exception e){} try{ String zipList = jsonObject.getString("zipList"); if(zipList != null && zipList.trim().length()>0){ unifiedCampaignDTO.setZipJSON("{\"zipList\":"+zipList+"}"); } unifiedCampaignDTO.setIsGeographic(Boolean.TRUE.toString()); }catch(Exception e){} try{unifiedCampaignDTO.setSelectedCensusAge(jsonObject.getString("age"));unifiedCampaignDTO.setIsDemographic(Boolean.TRUE.toString());}catch(Exception e){} try{unifiedCampaignDTO.setSelectedCensusIncome(jsonObject.getString("income"));unifiedCampaignDTO.setIsDemographic(Boolean.TRUE.toString());}catch(Exception e){} try{unifiedCampaignDTO.setSelectedCensusEducation(jsonObject.getString("education"));unifiedCampaignDTO.setIsDemographic(Boolean.TRUE.toString());}catch(Exception e){} try{unifiedCampaignDTO.setSelectedCensusEthnicity(jsonObject.getString("ethnicity"));unifiedCampaignDTO.setIsDemographic(Boolean.TRUE.toString());}catch(Exception e){} try{unifiedCampaignDTO.setSelectedCensusGender(jsonObject.getString("gender"));unifiedCampaignDTO.setIsDemographic(Boolean.TRUE.toString());}catch(Exception e){} try{unifiedCampaignDTO.setSelectedCensusRank(jsonObject.getString("rank"));}catch(Exception e){} }catch(Exception e){ log.severe("ERROR while parsing main JSON ["+ request.getParameter("jsonParam") +"]"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n @Transactional(propagation = Propagation.REQUIRED)\n public JSONObject fetchMasterDataForGSTFields(List<FieldParams> list, Map mapData) throws ServiceException, JSONException {\n JSONObject result = new JSONObject();\n KwlReturnObject kwlReturnObject = null;\n String companyid = \"\";\n try {\n if (!StringUtil.isNullObject(list)) {\n if (mapData.containsKey(Constants.companyid)) {\n companyid = (String) mapData.get(Constants.companyid);\n }\n for (FieldParams fp : list) {\n JSONArray jarr = new JSONArray();\n kwlReturnObject = accAccountDAOobj.getFieldComboDatabyFieldID(fp.getId(), companyid);\n List<FieldComboData> listFC = kwlReturnObject.getEntityList();\n for (FieldComboData fc : listFC) {\n JSONObject jobj = new JSONObject();\n jobj.put(\"id\", fc.getId());\n jobj.put(\"value\", fc.getValue());\n jarr.put(jobj);\n }\n\n if (fp.getFieldlabel().equalsIgnoreCase(Constants.GST_ADDRESS_STATE_KEY)) {\n result.put(Constants.GST_ADDRESS_STATE_KEY, jarr);\n } else if (fp.getFieldlabel().equalsIgnoreCase(Constants.GST_ADDRESS_CITY_KEY)) {\n result.put(Constants.GST_ADDRESS_CITY_KEY, jarr);\n } else if (fp.getFieldlabel().equalsIgnoreCase(Constants.GST_ADDRESS_COUNTY_KEY)) {\n result.put(Constants.GST_ADDRESS_COUNTY_KEY, jarr);\n } else if (fp.getFieldlabel().equalsIgnoreCase(Constants.GST_ENTITY_KEY)) {\n result.put(Constants.GST_ENTITY_KEY, jarr);\n } else if (fp.getFieldlabel().equalsIgnoreCase(Constants.GSTProdCategory)) {\n result.put(Constants.GST_PRODUCT_CATEGORY_KEY, jarr);\n } else if (fp.getFieldlabel().equalsIgnoreCase(Constants.HSN_SACCODE)) {\n result.put(\"hsncode\", jarr);\n }\n\n }\n }\n } catch (ServiceException | JSONException e) {\n throw ServiceException.FAILURE(e.getMessage(), e);\n }\n return result;\n }", "private void loadData()\r\n\t{\r\n\t\taddProduct(\"Area\", \"Education\");\r\n\t\taddProduct(\"Area\", \"Environment\");\r\n\t\taddProduct(\"Area\", \"Health\");\r\n\r\n\t\taddProduct(\"Domain\", \"Documentation\");\r\n\t\taddProduct(\"Domain\", \"Project Activity\");\r\n\t\taddProduct(\"Domain\", \"Technology\");\r\n\r\n\t\taddProduct(\"City\", \"Bangalore\");\r\n\t\taddProduct(\"City\", \"Hyderabad\");\r\n\t\taddProduct(\"City\", \"Lucknow\");\r\n\r\n\t\taddProduct(\"Activity_Type\", \"Onsite\");\r\n\t\taddProduct(\"Activity_Type\", \"Offsite\");\r\n\r\n\t}", "private void getDataFromCustomerDataUpdate(Map<String, Object> cusData, 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 cusData.put(data.getKey(), objectMapper.writeValueAsString(listSaveDb));\n } else {\n cusData.put(data.getKey(), STRING_ARRAY_EMPTY);\n }\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 cusData.put(data.getKey(), fValue);\n } else if (FieldTypeEnum.PULLDOWN.getCode().equals(data.getFieldType())\n || FieldTypeEnum.RADIO.getCode().equals(data.getFieldType())\n || FieldTypeEnum.NUMBER.getCode().equals(data.getFieldType())) {\n if (StringUtils.isBlank(data.getValue())) {\n if (cusData.containsKey(data.getKey())) {\n cusData.remove(data.getKey());\n }\n } else {\n if (CheckUtil.isNumeric(data.getValue())) {\n cusData.put(data.getKey(), Long.valueOf(data.getValue()));\n } else {\n cusData.put(data.getKey(), Double.valueOf(data.getValue()));\n }\n }\n } else if (FieldTypeEnum.DATE.getCode().equals(data.getFieldType())) {\n getSystemDate(cusData, formatDate, data.getValue(), data.getKey(), null);\n } else if (FieldTypeEnum.TIME.getCode().equals(data.getFieldType())) {\n getSystemTime(cusData, DateUtil.FORMAT_HOUR_MINUTE, data.getValue(), data.getKey());\n } else if (FieldTypeEnum.DATETIME.getCode().equals(data.getFieldType())) {\n String date = StringUtils.isNotBlank(data.getValue()) ? data.getValue().substring(0, formatDate.length())\n : \"\";\n String hour = StringUtils.isNotBlank(data.getValue()) ? data.getValue().substring(formatDate.length()) : \"\";\n getSystemDate(cusData, 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 };\n fValue = objectMapper.readValue(data.getValue(), typeRef);\n } catch (IOException e) {\n log.error(e.getLocalizedMessage());\n }\n cusData.put(data.getKey(), fValue);\n } else if (FieldTypeEnum.LINK.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 };\n fValue = objectMapper.readValue(data.getValue(), typeRef);\n cusData.put(data.getKey(), fValue);\n } catch (Exception e) {\n log.error(e.getLocalizedMessage());\n }\n } else {\n cusData.put(data.getKey(), data.getValue());\n }\n }", "private Set<Product> payloadToProductSet(LinkedHashMap body) { //throws Exception {\n //System.out.println(\"body: \" + body.toString());\n ArrayList arrayListProducts = (ArrayList) body.get(\"product\");\n //System.out.println(\"arrayList: \" + arrayListProducts);\n Set<Product> productSet = new HashSet<>();\n// try {\n arrayListProducts.forEach(\n productIndex -> {\n ((HashMap) productIndex).values().forEach(\n productValue -> {\n Product product = new Product();\n TreeMap<Tab, TreeMap<Category, TreeMap<Item, TreeSet<Tag>>>> tabMap = new TreeMap();\n //System.out.println(\"productValue: \" + productValue);\n ((HashMap) productValue).forEach(\n (substanceKey, substanceValue) -> {\n //System.out.println(\"substanceKey: \" + substanceKey);\n //System.out.println(\"substanceValue: \" + substanceValue);\n ((HashMap) substanceValue).values().forEach(\n tabArrayWrapped -> {\n //System.out.println(\"tabArrayWrapped: \" + tabArrayWrapped);\n ((ArrayList) tabArrayWrapped).forEach(\n tabArrayUnwrapped -> {\n //System.out.println(\"tabArrayUnwrapped: \" + tabArrayUnwrapped);\n ((HashMap) tabArrayUnwrapped).forEach(\n (tabKey, tabValue) -> {\n TreeMap<Category, TreeMap<Item, TreeSet<Tag>>> categoryMap = new TreeMap<>();\n //System.out.println(\"tabValue: \" + tabValue);\n ((HashMap) tabValue).values().forEach(\n categoryWrapped -> {\n //System.out.println(\"categoryWrapped: \" + categoryWrapped);\n ((ArrayList) categoryWrapped).forEach(\n categoryUnwrapped -> {\n //System.out.println(\"categoryUnwrapped: \" + categoryUnwrapped);\n ((HashMap) categoryUnwrapped).forEach(\n (categoryKey, categoryValue) -> {\n TreeMap<Item, TreeSet<Tag>> itemMap = new TreeMap();\n //System.out.println(\"categoryValue: \" + categoryValue);\n ((HashMap) categoryValue).values().forEach(\n itemWrapped -> {\n //System.out.println(\"itemWrapped: \" + itemWrapped);\n ((ArrayList) itemWrapped).forEach(\n itemUnwrapped -> {\n\n Item item = new Item();\n //System.out.println(\"itemUnwrapped: \" + itemUnwrapped);\n ((HashMap) itemUnwrapped).forEach(\n (itemKey, itemValue) -> {\n //System.out.println(\"itemKey: \" + itemKey + \" itemValue: \" + itemValue);\n if (itemKey.equals(\"Title\")) {\n item.setName(itemValue.toString());\n }\n if (itemKey.equals(\"Description\")) {\n item.setDescription(itemValue.toString());\n }\n if (itemKey.equals(\"Tag\")) {\n TreeSet<Tag> tagSet = new TreeSet();\n ((ArrayList) itemValue).forEach(tagName -> tagSet.add(new Tag(tagName.toString())));\n itemMap.put(item, tagSet);\n categoryMap.put(new Category(categoryKey.toString()), itemMap);\n tabMap.put(new Tab(tabKey.toString()), categoryMap);\n product.getProduct().put(new Substance(substanceKey.toString()), tabMap);\n productSet.add(product);\n }\n });\n });\n });\n });\n });\n });\n });\n });\n });\n });\n });\n });\n// }\n// catch (Exception ex){\n// System.out.println(\"Ex: \" + ex.getMessage());\n// }\n\n return productSet;\n }", "public static List<Map<String,Object>> getData(){\n\t\tList<Map<String,Object>> coupons = new ArrayList<Map<String,Object>>();\n\t\t\n\t\tMap<String,Object> ChoclateCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> MeatCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> ChkCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> FruitCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> FishCpnSalmon = new HashMap<String,Object>();\n\t\tMap<String,Object> FishCpnCatish = new HashMap<String,Object>();\n\t\t\n\t\tChoclateCpn.put(\"sku\" , \"SKU001\");\n\t\tChoclateCpn.put(\"id\",\"100\");\n\t\tChoclateCpn.put(\"type\",\"GROC\");\n\t\tChoclateCpn.put(\"price\",12);\n\t\tChoclateCpn.put(\"amount\",2);\n\t\t\n\t\tMeatCpn.put(\"sku\" , \"SKU002\");\n\t\tMeatCpn.put(\"id\",\"101\");\n\t\tMeatCpn.put(\"type\",\"MT\");\n\t\tMeatCpn.put(\"price\",10);\n\t\tMeatCpn.put(\"amount\",2);\n\t\t\n\t\tChkCpn.put(\"sku\" , \"SKU003\");\n\t\tChkCpn.put(\"id\",\"103\");\n\t\tChkCpn.put(\"type\",\"MT\");\n\t\tChkCpn.put(\"price\",6);\n\t\tChkCpn.put(\"amount\",1);\n\t\t\n\t\tFruitCpn.put(\"sku\" , \"SKU004\");\n\t\tFruitCpn.put(\"id\",\"104\");\n\t\tFruitCpn.put(\"type\",\"FRUT\");\n\t\tFruitCpn.put(\"price\", 20);\n\t\tFruitCpn.put(\"amount\", 4);\n\t\t\n\t\tFishCpnSalmon.put(\"sku\" , \"SKU005\");\n\t\tFishCpnSalmon.put(\"id\",\"105\");\n\t\tFishCpnSalmon.put(\"type\",\"MT\");\n\t\tFishCpnSalmon.put(\"price\", 12);\n\t\tFishCpnSalmon.put(\"amount\", 2);\n\t\t\n\t\tFishCpnCatish.put(\"sku\" , \"SKU006\");\n\t\tFishCpnCatish.put(\"id\",\"106\");\n\t\tFishCpnCatish.put(\"type\",\"MT\");\n\t\tFishCpnCatish.put(\"price\", 5 );\n\t\tFishCpnCatish.put(\"amount\", 1.5 );\n\t\t\n\t\tcoupons.add( ChoclateCpn);\n\t\tcoupons.add( MeatCpn );\n\t\t\n\t\tcoupons.add( ChkCpn );\n\t\tcoupons.add( FruitCpn );\n\t\t\n\t\tcoupons.add( FishCpnSalmon );\n\t\tcoupons.add( FishCpnCatish );\n\t\t\n\t\treturn coupons;\n\t}", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void getPlanSkus() {\n\n List<PlanSkuVo> planList = new ArrayList<>();\n final Session session = sessionManager.getSession();\n\n\n PreparedStatement statement = session.prepare(\"SELECT * FROM PLANSKU\");\n BoundStatement boundStatement = statement.bind();\n ResultSet result = session.execute(boundStatement);\n\n if (result == null){\n log.info(\"No Planskus found\");\n// throw new NoDataAvailableException(\"There are no Plans available right now\");\n }\n else {\n log.info(\"Populating results for getPlanSkus\");\n result.forEach(row -> {\n PlanSkuVo planSkuVo = new PlanSkuVo(row.getString(\"product_id\"),\n row.getString(\"sku_id\"),\n row.getString(\"prod_desc\"),\n row.getString(\"prod_frenchname\"),\n row.getString(\"prod_name\"),\n row.getMap(\"sku_features\", String.class, String.class),\n row.getInt(\"sku_order\"));\n planList.add(planSkuVo);\n });\n\n ObjectMapper mapper = new ObjectMapper();\n String jsonInString =\"\";\n try {\n jsonInString = mapper.writeValueAsString(planList);\n } catch (JsonProcessingException e) {\n log.info(\"error in forming json \");\n }\n\n getSender().tell(jsonInString, ActorRef.noSender());\n }\n\n }", "public Data() {\n this.customers = new HashMap<>();\n this.orders = new HashMap<>();\n this.siteVisits = new HashMap<>();\n this.imageUploads = new HashMap<>();\n }", "private String getJsonCustomerDataUpdate(CustomersDTO cusDto,\n List<CustomerDataTypeDTO> listEmployeeData,\n List<CustomFieldsInfoOutDTO> fieldsList, Map<String, List<FileInfosDTO>> uploadData, String formatDate)\n throws JsonProcessingException {\n ObjectMapper mapper = new ObjectMapper();\n TypeReference<Map<String, Object>> typeRef = new TypeReference<Map<String, Object>>() {\n };\n Map<String, Object> cusData = new HashMap<>();\n if (StringUtils.isNotBlank(cusDto.getCustomerData())) {\n try {\n cusData = mapper.readValue(cusDto.getCustomerData(), typeRef);\n } catch (IOException e) {\n throw new CustomException(CONVERT_DATA_ERROR, e);\n }\n }\n\n String rtn;\n try {\n if (fieldsList != null && !fieldsList.isEmpty() && listEmployeeData != null\n && !listEmployeeData.isEmpty()) {\n processJsonCustomerDataUpdate(fieldsList, listEmployeeData, uploadData, mapper, cusData, formatDate);\n }\n rtn = objectMapper.writeValueAsString(cusData);\n } catch (JsonProcessingException e) {\n throw new CustomException(CONVERT_DATA_ERROR, e);\n }\n return rtn;\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}", "public Map buildDataModel() {\r\n\t\tMap<String, Object> root = new HashMap<String, Object>();\r\n\t\t\t\t\r\n\t\t// Create the \"latestProduct\" hash. We use a JavaBean here, but it could be a Map too.\r\n\t\t\t\t\t\t\r\n\t\tProduct latestProduct = new Product();\r\n\t\tlatestProduct.setUrl(\"products/greenmouse.html\");\r\n\t\tlatestProduct.setName(\"green mouse\");\r\n\t\t\r\n\t\t// and all animals\r\n\t\tAnimal mouse = new Animal();\r\n\t\tmouse.setSize(\"small\");\r\n\t\tmouse.setPrice(50);\r\n\t\t\r\n\t\tAnimal elephant = new Animal();\r\n\t\telephant.setSize(\"large\");\r\n\t\telephant.setPrice(5000);\r\n\t\t\r\n\t\tAnimal python = new Animal();\r\n\t\tpython.setSize(\"medium\");\r\n\t\tpython.setPrice(4999);\r\n\t\tList<Animal> animals = new ArrayList<Animal>();\r\n\t\t\r\n\t\tanimals.add(mouse);\r\n\t\tanimals.add(elephant);\r\n\t\tanimals.add(python);\r\n\t\tMisc foo = new Misc();\r\n\t\tfoo.setFoo(\"Something\");\r\n\t\t\r\n\t\t// and put it into the root\r\n\t\troot.put(\"user\", \"Big Joe\");\r\n\t\troot.put(\"latestProduct\", latestProduct);\r\n\t\troot.put(\"message\",\"It is a test\");\r\n\t\troot.put(\"foo\",foo);\r\n\t\troot.put(\"animals\", animals);\r\n\t\treturn root;\r\n\t}", "private String getJsonCustomerDataCreate(\n List<CustomerDataTypeDTO> listCustomerData,\n Map<Long, Map<String, List<FileInfosDTO>>> uploadData, String formatDate) throws JsonProcessingException {\n Map<String, Object> empData = new HashMap<>();\n Map<String, List<FileInfosDTO>> customerFilesMap = null;\n if (uploadData != null) {\n customerFilesMap = uploadData.get(0L);\n }\n if (listCustomerData != null && !listCustomerData.isEmpty()) {\n for (CustomerDataTypeDTO data : listCustomerData) {\n List<FileInfosDTO> listFiles = null;\n if (customerFilesMap != null) {\n listFiles = customerFilesMap.get(data.getKey());\n }\n getDataFromEmployeeDataCreate(empData, data, listFiles, formatDate);\n }\n }\n return objectMapper.writeValueAsString(empData);\n }", "public static JsonObject specialRespToClient_queryFreeUnitByPack_4H_001(JsonObject nomalRespToClient){\n\t\tJsonObject specialRespToClient = new JsonObject();\n\t\tJsonArray freeUnitItemList = (JsonArray) nomalRespToClient.get(\"freeUnitItemList\");\n\t\tArrayList<HashMap<String, Object>> flatMap = getFlatMapFromJsonArray(freeUnitItemList);\n//\t\tSystem.out.println(\"---flatMap---\");\n//\t\tSystem.out.println(flatMap.toString());\n//\t\tSystem.out.println(\"------------------------\");\n\t\t\n\t\tHashMap<String, List<HashMap<String, Object>>> groupByProductMap = new HashMap<String, List<HashMap<String, Object>>>();\n\t\tfor(int i =0;i<flatMap.size();i++) {\n\t\t\tString firstId = (flatMap.get(i).get(\"productId\")==null)?\"\":flatMap.get(i).get(\"productId\").toString();\n\t\t\tString firstSequence = (flatMap.get(i).get(\"productSequenceId\")==null)?\"\":flatMap.get(i).get(\"productSequenceId\").toString();\n\t\t\tList<HashMap<String, Object>> productDetail;\n\t\t\tif(groupByProductMap.containsKey(firstId+firstSequence)) {\n\t\t\t\tproductDetail = groupByProductMap.get(firstId+firstSequence);\n\t\t\t\tproductDetail.add(flatMap.get(i));\n\t\t\t}else {\n\t\t\t\tproductDetail = new ArrayList<>();\n\t\t\t\tproductDetail.add(flatMap.get(i));\n\t\t\t\tgroupByProductMap.put(firstId+firstSequence, productDetail);\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tJsonArray mainProduct = new JsonArray();\n\t\tJsonArray onTopProduct = new JsonArray();\n\t\tJsonArray ortherFreeUnit = new JsonArray();\n\t\t\n\t\tfor(Entry<String, List<HashMap<String, Object>>> key : groupByProductMap.entrySet()) {\n\n\t\t\t\tString productId = key.getValue().get(0).get(\"productId\")==null?\"\":key.getValue().get(0).get(\"productId\").toString();\n\t\t\t\tif(productId.length() == 8) {\n\t\t\t\t\tgroupByProductProcessor(mainProduct,key.getValue(),true);\n\t\t\t\t}else if(productId.length() == 6){\n\t\t\t\t\tgroupByProductProcessor(onTopProduct,key.getValue(),false);\n\t\t\t\t}else {\n\t\t\t\t\tgroupByProductProcessor(ortherFreeUnit,key.getValue(),false);\n\t\t\t\t}\n\t\t}\n\n\t\tspecialRespToClient.add(\"responseMainProductList\", mainProduct);\n\t\tspecialRespToClient.add(\"responseOntopAndServiceList\", onTopProduct);\n\t\tspecialRespToClient.add(\"responseOtherList\", ortherFreeUnit);\n\t\t\n\t\tAFLog.d(specialRespToClient.toString());\n\t\treturn specialRespToClient;\n\t\t\n\t}", "public Map getTotalItemByVoucherNoForEditGRHelper(String voucherNo)\r\n\t{\n\t\t\tSystem.out.println(\"====HELPER====\");\r\n\t\t\tSystem.out.println(\"voucherNo :: \" + voucherNo);\r\n\t\t\tlong k = 0l;\r\n\t\t\tDouble grossTotal = 0.0;\r\n\t\t\tDouble totalTaxAmt = 0.0;\r\n\t\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\r\n\t\t\t//Map<Long, PurchaseReturnGetItems> map = new HashMap<Long, PurchaseReturnGetItems>();\r\n\t\t\t\r\n\t\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\t\tList productList = dao.getTotalItemByVoucherNoForEditGRDao(voucherNo);\r\n\t\t\tMap map = new HashMap();\r\n\t\t\tPurchaseReturnGetItems cs = null;\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < productList.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tk++;\r\n\t\t\t\tObject[] o = (Object[]) productList.get(i);\r\n\t\t\t\tEditPurchase bean = new EditPurchase();\r\n\t\t\t\tbean.setPkGoodRecId(Long.parseLong(o[0].toString()));\r\n\t\t\t\tbean.setCatName(o[1].toString());\r\n\t\t\t\tbean.setItemName(o[2].toString());\r\n\t\t\t\tbean.setQuantity(Double.parseDouble(o[3].toString()));\r\n\t\t\t\tbean.setOriQuantity(o[3].toString());\r\n\t\t\t\tbean.setBuyPrice(Double.parseDouble(o[4].toString()));\r\n\t\t\t\tbean.setFinalBuyPrice(o[4].toString());\r\n\t\t\t\tbean.setVat(Double.parseDouble(o[5].toString()));\r\n\t\t\t\tbean.setIgst(Double.parseDouble(o[11].toString()));\r\n\t\t\t\tbean.setFinalVat(Double.parseDouble(o[5].toString()));\r\n\t\t\t\tbean.setFinalIgst(Double.parseDouble(o[11].toString()));\r\n\t\t\t\tbean.setDiscount(Double.parseDouble(o[12].toString()));\r\n\t\t\t\tbean.setFinalDisPer(o[12].toString());\r\n\t\t\t\tbean.setRollsize(Double.parseDouble(o[13].toString()));\r\n\t\t\t\tbean.setTotal(Double.parseDouble(o[6].toString()));\r\n\t\t\t\tbean.setContactPerson(o[7].toString());\r\n\t\t\t\tbean.setBarcodeNo(Long.parseLong(o[8].toString()));\r\n\t\t\t\tbean.setOndate(o[9].toString());\r\n\t\t\t\tbean.setAvailquantity(Double.parseDouble(o[10].toString()));\r\n\t\t\t\tbean.setSize(o[14].toString());\r\n\t\t\t\tbean.setSupplierId(o[15].toString());\r\n\t\t\t\tbean.setBillNo(o[16].toString());\r\n\t\t\t\tbean.setSupplierName2(o[17].toString());\r\n\t\t\t\tbean.setGrossTotal(Double.parseDouble(o[18].toString()));\r\n\t\t\t\tDouble d = 0d;\r\n\t\t\t\tbean.setReturnTotal(d);\r\n\t\t\t\tLong editQuan = 0l;\r\n\t\t\t\tbean.setEditQuantity(editQuan);\r\n\t\t\t\tbean.setTotalQuantity(k);\r\n\t\t\t\tgrossTotal = grossTotal + Double.parseDouble(o[6].toString());\r\n\t\t\t\tbean.setFinalGrossTotal(o[18].toString());\r\n\t\t\t\tbean.setSubcatName(o[19].toString());\r\n\t\t\t\tbean.setHsnSac(o[20].toString());\r\n\t\t\t\tbean.setColor(o[21].toString());\r\n\t\t\t\tbean.setStyle(o[22].toString());\r\n\t\t\t\tif(o[23] == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tbean.setPurchaseCode(\"\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tbean.setPurchaseCode(o[23].toString());\r\n\t\t\t\t}\r\n\t\t\t\tbean.setContactPerson(o[24].toString());\r\n\t\t\t\tbean.setTaxAmount(o[25].toString());\r\n\t\t\t\tbean.setReturnedQty(o[26].toString());\r\n\t\t\t\tint rQtyInInt = (int)(Double.parseDouble(o[26].toString()));\r\n\t\t\t\tbean.setReturnedQty(String.valueOf(rQtyInInt));\r\n\t\t\t\tbean.setSalePrice(Double.parseDouble(o[27].toString()));\r\n\t\t\t\tbean.setFinalSalePrice(o[27].toString());\r\n\t\t\t\tbean.setPkSuppId(o[28].toString());\r\n\t\t\t\tbean.setProductId(o[29].toString());\r\n\t\t\t\tbean.setSubCatId(o[30].toString());\r\n\t\t\t\tbean.setCatId(o[31].toString());\r\n\t\t\t\tbean.setSuppCode(o[32].toString());\r\n\t\t\t\tbean.setSoldQty(o[33].toString());\r\n\t\t\t\tbean.setPendingBillPayment(o[34].toString());\r\n\t\t\t\tbean.setBarQtyTotalPuchaseQty(o[35].toString());\r\n\t\t\t\tSystem.out.println(\"BarQtyTotalPuchaseQty ====> \"+bean.getBarQtyTotalPuchaseQty());\r\n\t\t\t\tSystem.out.println(\"grossTotal =====> \"+grossTotal);\r\n\t\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\t\tmap.put(bean.getPkGoodRecId(), bean);\t\r\n\t\t\t/*if (catList != null && catList.size() > 0)\r\n\t\t\t{\r\n\t\t\t\tcs = (PurchaseReturnGetItems) catList.get(0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"TOTAL ITEMLIST Helper \"+catList.size());\r\n\t\t\t\r\n\t\t\treturn cs;*/\r\n\t\t}\r\n\t\t\t\r\n\t\t\treturn map;\r\n\t}", "public void setData(){\n\t\tif(companyId != null){\t\t\t\n\t\t\tSystemProperty systemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"BUSINESS_TYPE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tbusinessType = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"MAX_INVALID_LOGIN\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tinvalidloginMax = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SKU_GENFLAG\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tautomaticItemCode = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SKU_GENFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tformatItemCode = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"DO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tdeliveryItemNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"STO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tstockOpnameNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"RN_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\treceiptItemNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PLU_GENFLAG\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tautomaticProdCode = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PLU_FORMAT_TYPE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tprodCodeFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tsalesNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SOINV_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tinvoiceNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SORCPT_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\treceiptNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"DEFAULT_TAX_TYPE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tsalesTax = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"DELIVERY_COST\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tdeliveryCost = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tpurchaceNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PINV_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tpurchaceInvoiceNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PAYMENT_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tpaymentNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"TAX_VALUE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\ttaxValue = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t} else {\n\t\t\tbusinessType = null;\n\t\t\tinvalidloginMax = null;\n\t\t\tautomaticItemCode = null;\n\t\t\tformatItemCode = null;\n\t\t\tdeliveryItemNoFormat = null;\n\t\t\tstockOpnameNoFormat = null;\n\t\t\treceiptItemNoFormat = null;\n\t\t\tautomaticProdCode = null;\n\t\t\tprodCodeFormat = null;\n\t\t\tsalesNoFormat = null;\n\t\t\tinvoiceNoFormat = null;\n\t\t\treceiptNoFormat = null;\n\t\t\tsalesTax = null;\n\t\t\tdeliveryCost = null;\n\t\t\tpurchaceNoFormat = null;\n\t\t\tpurchaceInvoiceNoFormat = null;\n\t\t\tpaymentNoFormat = null;\n\t\t\ttaxValue = null;\n\t\t}\n\t}", "public MultiValueMap<String, String> getMap() {\r\n\t\tMultiValueMap<String, String> map = new LinkedMultiValueMap<String, String>();\r\n\t\t\r\n\t\tif(this.country != null) \t\tmap.add(\"country\", this.getCountry().getValue());\r\n\t\tif(this.operation != null) \t\tmap.add(\"operation\", this.getOperation().getValue());\r\n\t\tif(this.propertyType != null) \tmap.add(\"propertyType\", this.getPropertyType().getValue());\r\n\t\tif(this.center != null) \t\tmap.add(\"center\", this.getCenter().getCoordinates());\r\n\t\tif(this.locale != null) \t\tmap.add(\"locale\", this.getLocale().getValue());\r\n\t\tif(this.distance != null) \t\tmap.add(\"distance\", this.getDistance().toString());\r\n\t\tif(this.locationId != null) \tmap.add(\"locationId\", this.getLocationId().getValue());\r\n\t\tif(this.maxItems != null) \t\tmap.add(\"maxItems\", this.getMaxItems().toString());\r\n\t\tif(this.numPage != null) \t\tmap.add(\"numPage\", this.getNumPage().toString());\r\n\t\tif(this.maxPrice != null) \t\tmap.add(\"maxPrice\", this.getMaxPrice().toString());\r\n\t\tif(this.sinceDate != null) \t\tmap.add(\"sinceDate\", this.getSinceDate().getValue());\r\n\t\tif(this.order != null) \t\t\tmap.add(\"order\", this.getOrder().getValue());\r\n\t\tif(this.sort != null) \t\t\tmap.add(\"sort\", this.getSort().getValue());\r\n\t\tif(this.adIds != null) {\r\n\t\t\tfor(Integer id: adIds) {\r\n\t\t\t\tmap.add(\"adIds\", id.toString());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(this.hasMultimedia != null) \tmap.add(\"hasMultimedia\", this.getHasMultimedia().toString());\r\n\t\t\r\n\t\treturn map;\r\n\t}", "@Override\r\n\tpublic Map<String, Object> returnData(Map<String, Object> map,Model model, HttpServletRequest request) {\n\t\treturn null;\r\n\t}", "private void initdata() {\n\t\tProgressDialogUtil.showProgressDlg(this, \"加载数据\");\n\t\tProdDetailRequest req = new ProdDetailRequest();\n\t\treq.id = prodInfo.id+\"\";\n\t\tRequestParams params = new RequestParams();\n\t\ttry {\n\t\t\tparams.setBodyEntity(new StringEntity(req.toJson()));\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tnew HttpUtils().send(HttpMethod.POST, Api.GETGOODSDETAIL, params, new RequestCallBack<String>() {\n\t\t\t@Override\n\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\tProgressDialogUtil.dismissProgressDlg();\n\t\t\t\tT.showNetworkError(CommodityInfosActivity.this);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(ResponseInfo<String> resp) {\n\t\t\t\tProgressDialogUtil.dismissProgressDlg();\n\t\t\t\tProdDetailResponse bean = new Gson().fromJson(resp.result, ProdDetailResponse.class);\n\t\t\t\tLog.e(\"\", \"\"+resp.result);\n\t\t\t\tif(Api.SUCCEED == bean.result_code && bean.data != null) {\n\t\t\t\t\tupview(bean.data);\n\t\t\t\t\tdatas = bean.data;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Override\r\n\tpublic List<CartsDTO> getProductMenData() {\n\t\treturn null;\r\n\t}", "public ProductDetail getProductDetail(JSONObject jsonObject) {\n if (jsonObject != null) {\n try {\n boolean publishStatus = false, onSaleStatus = false, inStockStatus = false, isReviewAllow = false;\n int id = 0, categoryId = 0, totalSale = 0, totalRating = 0;\n float averageRating = 0, regularPrice = 0, sellPrice = 0;\n String name = null, shortDescription = null, linkAddress = null, categoryName = null, priceHtml = null, type = null, createdDateTime = null,\n modifiedDateTime = null, description = null;\n\n ArrayList<String> imageList = new ArrayList<>();\n ArrayList<Integer> relatedProdIds = new ArrayList<>();\n ArrayList<Category> relatedCategoryList = new ArrayList<>();\n ArrayList<ProductAttribute> attributeList = new ArrayList<>();\n\n if (jsonObject.has(ParserKey.KEY_ID)) {\n id = jsonObject.getInt(ParserKey.KEY_ID);\n }\n if (jsonObject.has(ParserKey.KEY_NAME)) {\n name = jsonObject.getString(ParserKey.KEY_NAME);\n }\n if (jsonObject.has(ParserKey.KEY_SHORT_DESC)) {\n shortDescription = jsonObject.getString(ParserKey.KEY_SHORT_DESC);\n }\n if (jsonObject.has(ParserKey.KEY_IMAGES)) {\n imageList.addAll(getImageList(jsonObject.getJSONArray(ParserKey.KEY_IMAGES)));\n }\n if (jsonObject.has(ParserKey.KEY_LINK_ADDRESS)) {\n linkAddress = jsonObject.getString(ParserKey.KEY_LINK_ADDRESS);\n }\n if (jsonObject.has(ParserKey.KEY_CATEGORIES)) {\n categoryId = getCategoryId(jsonObject.getJSONArray(ParserKey.KEY_CATEGORIES));\n categoryName = getCategoryName(jsonObject.getJSONArray(ParserKey.KEY_CATEGORIES));\n }\n if (jsonObject.has(ParserKey.KEY_RELATED_IDS)) {\n relatedProdIds.addAll(getProductIds(jsonObject.getJSONArray(ParserKey.KEY_RELATED_IDS)));\n }\n if (jsonObject.has(ParserKey.KEY_CATEGORIES)) {\n relatedCategoryList.addAll(getCategories(jsonObject.getJSONArray(ParserKey.KEY_CATEGORIES)));\n }\n if (jsonObject.has(ParserKey.KEY_REGULAR_PRICE)) {\n if (!jsonObject.getString(ParserKey.KEY_REGULAR_PRICE).isEmpty()) {\n regularPrice = Float.parseFloat(jsonObject.getString(ParserKey.KEY_REGULAR_PRICE));\n }\n }\n if (jsonObject.has(ParserKey.KEY_SELL_PRICE)) {\n if (!jsonObject.getString(ParserKey.KEY_SELL_PRICE).isEmpty()) {\n sellPrice = Float.parseFloat(jsonObject.getString(ParserKey.KEY_SELL_PRICE));\n }\n }\n if (jsonObject.has(ParserKey.KEY_TOTAL_SALE)) {\n totalSale = jsonObject.getInt(ParserKey.KEY_TOTAL_SALE);\n }\n if (jsonObject.has(ParserKey.KEY_PRICE_HTML)) {\n priceHtml = jsonObject.getString(ParserKey.KEY_PRICE_HTML);\n }\n if (jsonObject.has(ParserKey.KEY_TYPE)) {\n type = jsonObject.getString(ParserKey.KEY_TYPE);\n }\n if (jsonObject.has(ParserKey.KEY_CREATED_DATE)) {\n createdDateTime = jsonObject.getString(ParserKey.KEY_CREATED_DATE);\n }\n if (jsonObject.has(ParserKey.KEY_MODIFIED_DATE)) {\n modifiedDateTime = jsonObject.getString(ParserKey.KEY_MODIFIED_DATE);\n }\n if (jsonObject.has(ParserKey.KEY_DESCRIPTION)) {\n description = jsonObject.getString(ParserKey.KEY_DESCRIPTION);\n }\n if (jsonObject.has(ParserKey.KEY_TOTAL_RATING)) {\n totalRating = jsonObject.getInt(ParserKey.KEY_TOTAL_RATING);\n }\n if (jsonObject.has(ParserKey.KEY_AVERAGE_RATING)) {\n if (!jsonObject.getString(ParserKey.KEY_AVERAGE_RATING).isEmpty()) {\n averageRating = Float.parseFloat(jsonObject.getString(ParserKey.KEY_AVERAGE_RATING));\n }\n }\n if (jsonObject.has(ParserKey.KEY_PUBLISH_STATUS)) {\n publishStatus = jsonObject.getBoolean(ParserKey.KEY_PUBLISH_STATUS);\n }\n if (jsonObject.has(ParserKey.KEY_ON_SALE)) {\n onSaleStatus = jsonObject.getBoolean(ParserKey.KEY_ON_SALE);\n }\n if (jsonObject.has(ParserKey.KEY_IN_STOCK)) {\n inStockStatus = jsonObject.getBoolean(ParserKey.KEY_IN_STOCK);\n }\n if (jsonObject.has(ParserKey.KEY_REVIEW_ALLOW)) {\n isReviewAllow = jsonObject.getBoolean(ParserKey.KEY_REVIEW_ALLOW);\n }\n if (jsonObject.has(ParserKey.KEY_ATTRIBUTE)) {\n attributeList.addAll(getAttributes(jsonObject.getJSONArray(ParserKey.KEY_ATTRIBUTE)));\n }\n\n return new ProductDetail(id, name, shortDescription, categoryId, categoryName, linkAddress, imageList, relatedProdIds, relatedCategoryList,\n regularPrice, sellPrice, totalSale, priceHtml, type, createdDateTime, modifiedDateTime, description, totalRating,\n averageRating, publishStatus, onSaleStatus, inStockStatus, isReviewAllow, attributeList);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n }", "@Override\n public void loadDetailProductData() {\n mDetailPresenter.loadDetailProductData();\n }", "private CustomersDTO buildDTOToUpdate(CustomersDTO customerDto, CustomersInputDTO inputData) {\n if (inputData.getPersonInCharge() != null) {\n PersonInChargeDTO personInChargeDTO = inputData.getPersonInCharge();\n if (personInChargeDTO.getEmployeeId() == null) {\n customerDto.setEmployeeId(ConstantsCustomers.LONG_VALUE_0L);\n } else {\n customerDto.setEmployeeId(personInChargeDTO.getEmployeeId());\n }\n if (personInChargeDTO.getDepartmentId() == null) {\n customerDto.setDepartmentId(ConstantsCustomers.LONG_VALUE_0L);\n } else {\n customerDto.setDepartmentId(personInChargeDTO.getDepartmentId());\n }\n if (personInChargeDTO.getGroupId() == null) {\n customerDto.setGroupId(ConstantsCustomers.LONG_VALUE_0L);\n } else {\n customerDto.setGroupId(personInChargeDTO.getGroupId());\n }\n }\n if (customerDto.getBusinessMainId() == null || customerDto.getBusinessMainId() < 0) {\n customerDto.setBusinessMainId(0);\n }\n if (customerDto.getBusinessSubId() == null || customerDto.getBusinessSubId() < 0) {\n customerDto.setBusinessSubId(0);\n }\n\n customerDto.setUpdatedUser(jwtTokenUtil.getEmployeeIdFromToken());\n return customerDto;\n }", "public void loadProducts() throws RetailException {\n\t\tObjectMapper objectMapper = new ObjectMapper();\n\t\ttry {\n\t\t\tif (!dataLoadedIndicator) {\n\t\t\t\tproductData = Collections.unmodifiableMap((Map<String, Product>) objectMapper.readValue(\n\t\t\t\t\t\tThread.currentThread().getContextClassLoader().getResourceAsStream(\"products.json\"),\n\t\t\t\t\t\tnew TypeReference<HashMap<String, Product>>() {\n\t\t\t\t\t\t}));\n\t\t\t\t// load properties file\n\t\t\t\tsalesTaxConfig = new Properties();\n\t\t\t\tsalesTaxConfig.load(Thread.currentThread().getContextClassLoader()\n\t\t\t\t\t\t.getResourceAsStream(\"sales_tax_entries.properties\"));\n\t\t\t\tdataLoadedIndicator = true;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"There was an exception trying to upoad product data {}\", e);\n\t\t\tthrow new RetailException(ErrorCodes.ERR_PRODUCT_DATA_LOAD_ERROR);\n\t\t}\n\t}", "public static List<ProductCardListResults> getProductsCardViewData(JSONArray mapData) {\n Gson gson = new Gson();\n Type listType = new TypeToken<List<ProductCardListResults>>(){}.getType();\n\n List<ProductCardListResults> results = gson.fromJson(mapData.toString(),listType);\n return results;\n }", "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "public void getProductData(PdpUseCase.ResponseValues responseValues) {\n mProductDetailsViewModel.parsePdpResponseValues(responseValues);\n }", "public void initCampaignData() {\n tozAdCampaignAccount = \"init\";\n tozAdCampaignID = \"init\";\n baseViewIndex = 0;\n finalViewIndex = 0;\n repeatCycle = 0;\n }", "private void mergeProductData(List<ProductView> productViews,\n Map<String, List<ProductDataView>> productDataViews) {\n LOG.debug(\"Enter.\");\n\n productViews.stream().forEach(\n product -> product.setDataDefinitions(productDataViews.get(product.getId())));\n\n LOG.debug(\"Exit.\");\n }", "@Override\n\tpublic void sendData(JSONObject o) {\n\t\taddToProduct(o);\n\t}", "public String fillRequestBody(){\n\n Gson gson = new Gson();\n ApiSetlistRequestDTO apiSetlistRequestDTO = gson.fromJson(fileOperations.bufferedReader(configurationGet.getApiSetlistRequestJSonBodyResourcePath()), ApiSetlistRequestDTO.class);\n\n apiSetlistRequestDTO.setPage(30303030);\n apiSetlistRequestDTO.setPerPage(8888888);\n apiSetlistRequestDTO.setTotal(300000000);\n apiSetlistRequestDTO.setTotalPages(88888888);\n\n Datum data = new Datum();\n data.setId(10);\n data.setName(\"fghfdasfghgfdsfg\");\n data.setYear(453453);\n data.setColor(\"#f43242\");\n data.setPantoneValue(\"Test dfgfdgfdg Value\");\n\n Datum data2 = new Datum();\n data2.setId(15);\n data2.setName(\"burak\");\n data2.setYear(19);\n data2.setColor(\"#tyuyrefe\");\n data2.setPantoneValue(\"fsd\");\n\n List<Datum> datumList = apiSetlistRequestDTO.getData();\n datumList.set(0,data);\n datumList.set(5,data2);\n\n apiSetlistRequestDTO.setData(datumList);\n\n /*for (Datum data : exampleTestClass.getData()){\n data.setId(10);\n data.setName(\"Sarı\");\n data.setYear(5000);\n data.setColor(\"#999999999\");\n data.setPantoneValue(\"Test Pandone Value\");\n }*/\n\n logger.info(\"Manipule Edilen Data:\" + gson.toJson(apiSetlistRequestDTO));\n\n return gson.toJson(apiSetlistRequestDTO);\n }", "private void prepareDataData(String campaignName, String supplierID, String supplierName, String supplierAddress1, String supplierAddress2, String url, String shortlistedSpacesId,String lat,String lon) {\n Data data = new Data(campaignName, supplierID, supplierName, supplierAddress1, supplierAddress2, url,lat,lon);\r\n selectedDate = getDateOnGivenDay(spinner.getSelectedItem().toString());\r\n data.setShortlistedSpacesId(shortlistedSpacesId);\r\n data.setSelectedDate(selectedDate);\r\n dataList.add(data);\r\n mAdapter.notifyDataSetChanged();\r\n }", "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 }", "private JSONObject getGSTR3B_Section_4_A_2_Data(JSONObject params, String companyId, JSONArray dataJArr) throws JSONException, ServiceException {\n JSONObject reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"isServiceProduct\", true);\n// reqParams.put(\"isRCMApplicable\", false);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_Import);\n reqParams.put(GSTRConstants.ADD_LANDEDCOST_JOIN_FOR_IMPORT_INVOICES, true);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Unregistered);\n reqParams.put(\"typeofjoinisleft\", true);\n// reqParams.put(\"interstate\", true);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Percenatge);\n reqParams.put(\"itctype\", Constants.GST_ITCTYPE_DEFAULT+\",\"+Constants.GST_ITCTYPE_REVERSED);\n JSONObject jSONObject = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_INVOICE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n jSONObject = getGoodsReceiptForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = jSONObject.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n }\n \n /**\n * Vendor DN\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"isServiceProduct\", true);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_Import);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Unregistered);\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Percenatge);\n reqParams.remove(\"cnentityValue\");\n JSONObject temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n temp = getDNForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n }\n /**\n * Vendor CN\n */\n\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"isServiceProduct\", true);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_Import);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Unregistered);\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Percenatge);\n reqParams.put(\"onlycnagainstvendor\", true);\n temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n temp = getDNForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n jSONObject.put(\"tableno\", \"\");\n jSONObject.put(\"particulars\", GSTRConstants.GSTR3B_SECTION_4_A_2);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"enableViewDetail\", true);\n dataJArr.put(jSONObject);\n }\n return jSONObject;\n }", "private JSONObject getGSTR3B_Section_4_A_1_Data(JSONObject params, String companyId, JSONArray dataJArr) throws JSONException, ServiceException {\n JSONObject reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"isServiceProduct\", false);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_Import);\n reqParams.put(GSTRConstants.ADD_LANDEDCOST_JOIN_FOR_IMPORT_INVOICES, true);\n reqParams.put(\"excludetaxClassType\", true);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Unregistered);\n reqParams.put(\"typeofjoinisleft\", true);\n// reqParams.put(\"interstate\", true);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Percenatge);\n reqParams.put(\"itctype\", Constants.GST_ITCTYPE_DEFAULT+\",\"+Constants.GST_ITCTYPE_REVERSED);\n JSONObject jSONObject = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_INVOICE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n jSONObject = getGoodsReceiptForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = jSONObject.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n }\n\n /**\n * Vendor DN \n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"isServiceProduct\", false);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_Import);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Unregistered);\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Percenatge);\n reqParams.remove(\"cnentityValue\");\n JSONObject temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n temp = getDNForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n\n }\n\n /**\n * Vendor CN\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"isServiceProduct\", false);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_Import);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Unregistered);\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Percenatge);\n reqParams.put(\"onlycnagainstvendor\", true);\n temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n temp = getDNForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n jSONObject.put(\"tableno\", \"\");\n jSONObject.put(\"particulars\", GSTRConstants.GSTR3B_SECTION_4_A_1);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"enableViewDetail\", true);\n dataJArr.put(jSONObject);\n }\n return jSONObject;\n }", "public AboutUsDataDTO() {\n\t\tsuper();\n\t}", "private List<ProductionData> getProdData(LocalDateTime from, LocalDateTime to) {\n List<ProductionData> data = null;\n try {\n data = prodDao.getData(from, to);\n } catch (IOException e) {\n // Throw generic exception\n }\n\n return data;\n }", "private JSONObject getGSTR3B_Section_4_A_3_Data(JSONObject params, String companyId, JSONArray dataJArr) throws JSONException, ServiceException {\n JSONObject reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"isGSTINnull\", false);\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"isRCMApplicable\", true);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Percenatge);\n reqParams.put(\"itctype\", Constants.GST_ITCTYPE_DEFAULT+\",\"+Constants.GST_ITCTYPE_REVERSED);\n JSONObject jSONObject = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_INVOICE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n jSONObject = getGoodsReceiptForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = jSONObject.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } \n /**\n * Purchase Invoice- REGTYPE:Unregistered.CUSTTYPE:NA.\n * Interstate/Intrastate: Both. RCM: TRUE. InterState/IntraState : Both.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"isRCMApplicable\", true);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Unregistered);\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Percenatge);\n reqParams.put(\"itctype\", Constants.GST_ITCTYPE_DEFAULT+\",\"+Constants.GST_ITCTYPE_REVERSED);\n JSONObject temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_INVOICE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n temp = getGoodsReceiptForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n \n jSONObject.put(\"tableno\", \"\");\n jSONObject.put(\"particulars\", GSTRConstants.GSTR3B_SECTION_4_A_3);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"enableViewDetail\", true);\n dataJArr.put(jSONObject);\n }\n return jSONObject;\n }", "List<ClassificationCostsDto> map(List<ClassificationCostsReport> classificationCostsReports);", "@Override\n public void loadWomenProductsData() {\n\n if (mCatalogWomenPresenter != null) {\n mCatalogWomenPresenter.loadWomenProductsData();\n }\n }", "public ProductDetails getProductDetails(Long productId) {\n\t\t// TODO Auto-generated method stub\t\t\n\t\t//do http get call\n ResponseEntity<String> productDetails = doRestTemplateCall(ConstantsUtil.BASE_URL+productId+ConstantsUtil.URL_ENDPOINT);\n ProductDetails pdtDetailsResponse = new ProductDetails();\n //To handle redirect from http to https\n HttpHeaders httpHeaders = productDetails.getHeaders();\n HttpStatus statusCode = productDetails.getStatusCode();\n if (statusCode.equals(HttpStatus.MOVED_PERMANENTLY) || statusCode.equals(HttpStatus.FOUND) || statusCode.equals(HttpStatus.SEE_OTHER)) {\n if (httpHeaders.getLocation() != null) {\n \tproductDetails = doRestTemplateCall(httpHeaders.getLocation().toString());\n } else {\n throw new RuntimeException();\n }\n }\n if(null!= productDetails) { //to check if productdetail response is received \n log.info(\"product details found:\"+productDetails.getBody());\n \n JsonNode node;\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n\t\t\tnode = objectMapper.readValue(productDetails.getBody(), JsonNode.class);\n\t\t\tif(!myRetailAppDao.isProductDetailsPresent(productId))\t //check if product data is present in MongoDB\n\t\t\t\tmyRetailAppDao.saveToMongoDB(productDetails.getBody()); // if not, save product data to MongoDB\n\t\t\telse\n\t\t\t\tlog.info(\"Data for prductId \"+productId+\" is already present in DB, skipping insert\");\n\t\t\tJsonNode title = null;\n\t\t\t//get product title from the nested json\n\t\t\ttitle = node.get(ConstantsUtil.PRODUCT).get(ConstantsUtil.ITEM).get(ConstantsUtil.PDT_DESC).get(ConstantsUtil.TITLE);\n\t\t\tlog.info(\"title:\"+title.asText());\n\t\t\t//set the product details response\n\t\t\tpdtDetailsResponse.setName(title.asText());\n\t\t\tpdtDetailsResponse.setId(productId);\n\t\t\tCurrentPrice currentPrice = new CurrentPrice();\n\t\t\tPriceAndCurrency priceAndCurr = myRetailAppDao.getPriceAndCurrency(productId); //get price and currency details\n\t\t\tcurrentPrice.setCurrency_code(CurrencyMap.getCurrencyCode(priceAndCurr.getCurrency()));\n\t\t\tcurrentPrice.setValue(priceAndCurr.getPrice()); \n\t\t\tpdtDetailsResponse.setCurrentPrice(currentPrice);\n\t\t\t\n\t\t\tlog.info(\"pdtDetailsResponse:\"+pdtDetailsResponse.toString());\n\t\t} catch (IOException e) {\n\t\t\tlog.error(\"Error while calling external api for title\",e);\n\t\t}\n }\n \n \treturn pdtDetailsResponse;\n\t}", "public String getAllDataForAttributes() throws Exception {\n\t\tactionStartTime = new Date();\n\t\ttry {\n\t\t\tif (lstObjectType != null && lstObjectType.size() > 0 && lstId != null && lstId.size() > 0 && lstObjectType.size() == lstId.size()) { //lstId = listObjectId\n\t\t\t\tList<PromotionCustAttrVO> lst = new ArrayList<PromotionCustAttrVO>();\n\t\t\t\tPromotionCustAttrVO vo;\n\t\t\t\tInteger objectType;\n\t\t\t\tLong objectId;\n\t\t\t\tCustomerAttribute attribute;\n\t\t\t\tAttributeColumnType attColType;\n\t\t\t\tList<AttributeDetailVO> lstAttDetail;\n\t\t\t\tfor (int i = 0; i < lstObjectType.size(); i++) {\n\t\t\t\t\tobjectType = lstObjectType.get(i);\n\t\t\t\t\tobjectId = lstId.get(i);\n\t\t\t\t\tif (objectType != null) {\n\t\t\t\t\t\tvo = new PromotionCustAttrVO();\n\t\t\t\t\t\tvo.setObjectType(objectType);\n\t\t\t\t\t\tvo.setObjectId(objectId);\n\t\t\t\t\t\tif (objectType.equals(AUTO_ATTRIBUTE)) {\n\t\t\t\t\t\t\tattribute = customerAttributeMgr.getCustomerAttributeById(objectId);\n\t\t\t\t\t\t\tif (attribute != null) {\n\t\t\t\t\t\t\t\tattColType = attribute.getValueType();\n\t\t\t\t\t\t\t\tvo.setValueType(attColType);// setValueType\n\t\t\t\t\t\t\t\tvo.setName(attribute.getName());\n\t\t\t\t\t\t\t\t// chi set du lieu cho kieu dropdownlist:\n\t\t\t\t\t\t\t\tif (attColType == AttributeColumnType.CHOICE || attColType == AttributeColumnType.MULTI_CHOICE) {\n\t\t\t\t\t\t\t\t\tlstAttDetail = promotionProgramMgr.getListPromotionCustAttVOCanBeSet(attribute.getId());\n\t\t\t\t\t\t\t\t\tvo.setListData(lstAttDetail);// setListData\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (objectType.equals(CUSTOMER_TYPE)) {\n\t\t\t\t\t\t\tList<ChannelTypeVO> listChannelTypeVO = promotionProgramMgr.getListChannelTypeVO();\n\t\t\t\t\t\t\tvo.setListData(listChannelTypeVO);//setListData\n\t\t\t\t\t\t} else if (objectType.equals(SALE_LEVEL)) {\n\t\t\t\t\t\t\tList<ProductInfoVO> listProductInfoVO = promotionProgramMgr.getListProductInfoVO();\n\t\t\t\t\t\t\tif (listProductInfoVO != null && listProductInfoVO.size() > 0) {\n\t\t\t\t\t\t\t\tfor (ProductInfoVO productInfoVO : listProductInfoVO) {\n\t\t\t\t\t\t\t\t\tList<SaleCatLevelVO> listSaleCatLevelVO = promotionProgramMgr.getListSaleCatLevelVOByIdPro(productInfoVO.getIdProductInfoVO());\n\t\t\t\t\t\t\t\t\tproductInfoVO.setListSaleCatLevelVO(listSaleCatLevelVO);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tvo.setListProductInfoVO(listProductInfoVO);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tlst.add(vo);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tresult.put(\"list\", lst);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.getAllDataForAttributes\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t\treturn JSON;\n\t\t}\n\t\treturn JSON;\n\t}", "private JSONObject getGSTR3B_Section_3_1_C_Data(JSONObject params, String companyId, JSONArray dataJArr) throws JSONException, ServiceException {\n\n JSONObject jSONObject = new JSONObject();\n JSONObject reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_ZeroPercenatge);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n jSONObject = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_INVOICE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n jSONObject = getInvoiceForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = jSONObject.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n }\n /**\n * Invoice- REGTYPE:Regular,Composition,Unregistered.CUSTTYPE:NA,Export,ExportWOPAY,SEZ,SEZWOPAY.\n * Product Tax Class: Exempted.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", true);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Exempted);\n reqParams.put(\"typeofjoinisleft\", true);\n JSONObject temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_INVOICE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n temp = getInvoiceForGSTR3BNillRated(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"count\", (jSONObject.optInt(\"count\", 0) + temp.optInt(\"count\", 0)));\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n }\n \n \n /**\n * Debit Note- REGTYPE:Regular,Composition,Unregistered.CUSTTYPE:NA,Export,ExportWOPAY,SEZ,SEZWOPAY.\n * Product Tax Class: 0%,Exempted.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_ZeroPercenatge + \",\" + FieldComboData.TaxClass_Exempted);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n temp = getDNAgainstSalesForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n }\n /**\n * Credit Note- REGTYPE:Regular,Composition,Unregistered.CUSTTYPE:NA,Export,ExportWOPAY,SEZ,SEZWOPAY.\n * Product Tax Class: 0%,Exempted.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_ZeroPercenatge + \",\" + FieldComboData.TaxClass_Exempted);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA );\n temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n temp = getCNForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n }\n \n /**\n * Advance Liability- REGTYPE:Regular,Composition,Unregistered.CUSTTYPE:NA,Export,ExportWOPAY,SEZ,SEZWOPAY.\n * Product Tax Class: 0%,Exempted.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_ZeroPercenatge + \",\" + FieldComboData.TaxClass_Exempted);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n JSONObject tempObj = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_PAYMENT_RECEIPT || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n tempObj = getTaxLiabilityOnAdvance(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = tempObj.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n temp = tempObj.optJSONObject(\"gstr3Obj\");\n double totaltaxamt = temp.optDouble(\"csgst3b\", 0.0) + temp.optDouble(\"cgst3b\", 0.0) + temp.optDouble(\"sgst3b\", 0.0) + temp.optDouble(\"igst3b\", 0.0);\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt3b\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst3b\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst3b\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst3b\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst3b\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + totaltaxamt), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"taxableamt3b\", 0.0) + totaltaxamt), companyId));\n }\n /**\n * Adjusted Advance- REGTYPE:Regular,Composition,Unregistered.CUSTTYPE:NA,Export,ExportWOPAY,SEZ,SEZWOPAY.\n * Product Tax Class: 0%,Exempted.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_ZeroPercenatge + \",\" + FieldComboData.TaxClass_Exempted);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n tempObj = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_PAYMENT_RECEIPT || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n tempObj = getAdjustedAdvance(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = tempObj.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n temp = tempObj.optJSONObject(\"gstr3Obj\");\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n\n \n jSONObject.put(\"tableno\", \"\");\n jSONObject.put(\"particulars\", GSTRConstants.GSTR3B_SECTION_3_1_C);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"enableViewDetail\", true);\n dataJArr.put(jSONObject);\n }\n return jSONObject;\n }", "@Override\n public void loadCartProductsData() {\n mCartPresenter.loadCartProductsData();\n }", "private JSONObject getGSTR3B_Section_5_4_Data(JSONObject params, String companyId, JSONArray dataJArr) throws JSONException, ServiceException {\n JSONObject reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"isGSTINnull\", false);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Composition);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"itctype\", Constants.GST_ITCTYPE_DEFAULT+\",\"+Constants.GST_ITCTYPE_REVERSED);\n// reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Percenatge);\n reqParams.put(\"excludetaxClassType\", true);\n JSONObject jSONObject = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_INVOICE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n jSONObject = getGoodsReceiptForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = jSONObject.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n }\n\n /**\n * Vendor DN\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"isGSTINnull\", false);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Composition);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.remove(\"cnentityValue\");\n JSONObject temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n temp = getDNForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n\n }\n\n /**\n * Vendor CN\n *\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"isGSTINnull\", false);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Composition);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"onlycnagainstvendor\", true);\n temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n temp = getDNForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n jSONObject.put(\"tableno\", \"\");\n jSONObject.put(\"particulars\", GSTRConstants.GSTR3B_SECTION_5_4);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"enableViewDetail\", true);\n dataJArr.put(jSONObject);\n }\n return jSONObject;\n }", "public abstract T toObject(String uuid, Map<String, Object> data);", "protected void populateDto(ProductosPuntoVenta dto, ResultSet rs)\r\n throws SQLException {\r\n dto.setIdPuntoVenta(new Integer(rs.getInt(COLUMN_ID_PDV)));\r\n dto.setIdProducto(new Integer(rs.getInt(COLUMN_ID_PRODUCTO)));\r\n dto.setCantidad(rs.getInt(COLUMN_CANTIDAD));\r\n }", "private void subscribeVariantData() {\n mProductDetailsViewModel.getVariants().observe(this, integerObjectHashMap -> {\n mUnitId = (String) integerObjectHashMap.get(ONE);\n mStoreId = (String) integerObjectHashMap.get(TWO);\n ArrayList<VariantsData> variantsData = (ArrayList<VariantsData>) integerObjectHashMap.get(\n THREE);\n mOffersListData = (PdpOfferData) integerObjectHashMap.get(FOUR);\n mAvailableCount = (Integer) integerObjectHashMap.get(FIVE);\n // mCartCount=(Integer)integerObjectHashMap.get(SIX);\n mAvailableCount = (Integer) integerObjectHashMap.get(FIVE);\n if (variantsData != null) {\n mVariantsData.clear();\n mVariantsData.addAll(variantsData);\n mPdpVariantsAdapter.notifyDataSetChanged();\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 }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "public void getOrgUnitAttributeValueMap()\n {\n orgUnitAttributeValueMap = new HashMap<Integer, String>();\n try\n {\n String query = \"SELECT org.organisationunitid, attvalue.value from attributevalue attvalue \" +\n \"INNER JOIN organisationunitattributevalues org ON org.attributevalueid = attvalue.attributevalueid \" + \n \"Where attvalue.attributeid = 1\";\n \n //System.out.println( \"data-set-Query - \" + query );\n SqlRowSet rs = jdbcTemplate.queryForRowSet( query );\n while ( rs.next() )\n {\n Integer orgUnitId = rs.getInt( 1 );\n String orgUnitAttribueValue = rs.getString( 2 );\n \n //System.out.println( orgUnitId + \" : \" + orgUnitAttribueValue );\n \n if ( orgUnitId != null && orgUnitAttribueValue != null )\n {\n orgUnitAttributeValueMap.put( orgUnitId, orgUnitAttribueValue );\n }\n }\n //return orgUnitAttributeValueMap;\n }\n catch ( Exception e )\n {\n throw new RuntimeException( \"Illegal OrgUnitIds \", e );\n }\n }", "public void insertIntoDb(JSONObject data) {\n shortlistedSuppliersData.clear();\r\n shortlistedInventoryDetailsData.clear();\r\n basicSupplierData.clear();\r\n inventoryActivityAssignmentData.clear();\r\n inventoryActivityData.clear();\r\n\r\n if ( data == null)\r\n return;\r\n\r\n try {\r\n // handling shortlisted suppliers here\r\n JSONObject shortlistedSuppliers = data.getJSONObject(\"shortlisted_suppliers\");\r\n Iterator<?> shortlistedSupplierKeys = shortlistedSuppliers.keys();\r\n\r\n while ( shortlistedSupplierKeys.hasNext() ) {\r\n\r\n String shortlistedSupplierId = (String)shortlistedSupplierKeys.next();\r\n if ( shortlistedSuppliers.get(shortlistedSupplierId) instanceof JSONObject ) {\r\n\r\n JSONObject shortlistedSupplier = (JSONObject)shortlistedSuppliers.get(shortlistedSupplierId);\r\n String supplierContentType = shortlistedSupplier.getString(\"content_type_id\");\r\n\r\n ShortlistedSuppliersTable shortlistedSupplierObject =\r\n getShortlistedSupplierData(shortlistedSupplier, shortlistedSupplierId);\r\n\r\n if (shortlistedSupplierObject == null)\r\n continue;\r\n\r\n // work for BasicSupplier Data\r\n JSONObject supplierDetail = shortlistedSupplier.getJSONObject(\"supplier_detail\");\r\n BasicSupplierTable instance = getBasicSupplierData(supplierDetail, supplierContentType);\r\n if ( instance != null ) {\r\n basicSupplierData.add(instance);\r\n }\r\n\r\n //Log.e(\"In assigned Frag\",supplierDetail.toString());\r\n contactTableEntryList = ContactsTable.getContactDetails(supplierDetail);\r\n\r\n shortlistedSuppliersData.add(shortlistedSupplierObject);\r\n }\r\n }\r\n\r\n // handling shortlisted inventories here\r\n JSONObject shortlistedInventories = data.getJSONObject(\"shortlisted_inventories\");\r\n Iterator<?> shortlistedInventoryKeys = shortlistedInventories.keys();\r\n\r\n while ( shortlistedInventoryKeys.hasNext() ) {\r\n\r\n String shortlistedInventoryId = (String)shortlistedInventoryKeys.next();\r\n JSONObject shortlistedInventory = (JSONObject)shortlistedInventories.get(shortlistedInventoryId);\r\n\r\n ShortlistedInventoryDetailsTable instance = getShortlistedInventoryDetailsTableInstance(shortlistedInventory, shortlistedInventoryId);\r\n if ( instance == null)\r\n continue;\r\n shortlistedInventoryDetailsData.add(instance);\r\n }\r\n\r\n // handle inventory activities\r\n JSONObject inventoryActivities = data.getJSONObject(\"inventory_activities\");\r\n Iterator<?> inventoryActivityKeys = inventoryActivities.keys();\r\n\r\n while ( inventoryActivityKeys.hasNext() ) {\r\n\r\n String inventoryActivityId = (String)inventoryActivityKeys.next();\r\n JSONObject inventoryActivity = (JSONObject)inventoryActivities.get(inventoryActivityId);\r\n\r\n InventoryActivityTable inventoryActivityTable = getInventoryActivityInstance(inventoryActivity, inventoryActivityId);\r\n if (inventoryActivityTable == null)\r\n continue;\r\n inventoryActivityData.add(inventoryActivityTable);\r\n }\r\n\r\n // handling inventory activity assignment here\r\n\r\n JSONObject inventoryActivityAssignment = data.getJSONObject(\"inventory_activity_assignment\");\r\n Iterator<?> inventoryActivityAssignmentKeys = inventoryActivityAssignment.keys();\r\n\r\n while( inventoryActivityAssignmentKeys.hasNext() ) {\r\n\r\n String inventoryActivityAssignmentId = (String)inventoryActivityAssignmentKeys.next();\r\n JSONObject inventoryActivityAssignmentObject = (JSONObject)inventoryActivityAssignment.get(inventoryActivityAssignmentId);\r\n\r\n InventoryActivityAssignmentTable instance = getInventoryActivityAssignmentInstance(inventoryActivityAssignmentObject, inventoryActivityAssignmentId);\r\n if ( instance == null)\r\n continue;\r\n inventoryActivityAssignmentData.add(instance);\r\n\r\n }\r\n }\r\n catch (Exception e) {\r\n Log.d(\"insertIntoDb\", e.getMessage());\r\n }\r\n\r\n DataBaseHandler db = DataBaseHandler.getInstance(getContext());\r\n try {\r\n // bulk insert them all.\r\n\r\n ShortlistedSuppliersTable.insertBulk(db, shortlistedSuppliersData);\r\n ShortlistedInventoryDetailsTable.insertBulk(db, shortlistedInventoryDetailsData);\r\n BasicSupplierTable.insertBulk(db, basicSupplierData);\r\n InventoryActivityTable.insertBulk(db, inventoryActivityData);\r\n InventoryActivityAssignmentTable.insertBulk(db, inventoryActivityAssignmentData);\r\n ContactsTable.insertBulk(db,contactTableEntryList);\r\n\r\n Log.d(\"ShortlistedSuppTable\", Integer.toString( db.getTotalCount(ShortlistedSuppliersTable.getTableName())));\r\n Log.d(\"shortInvDetail\", Integer.toString( db.getTotalCount(ShortlistedInventoryDetailsTable.getTableName()))) ;\r\n Log.d(\"BasicSuppData\", Integer.toString(db.getTotalCount(BasicSupplierTable.getTableName()))) ;\r\n Log.d(\"InvActivity\", Integer.toString(db.getTotalCount(InventoryActivityTable.getTableName()))) ;\r\n Log.d(\"InvActivityAssignment\", Integer.toString(db.getTotalCount(InventoryActivityAssignmentTable.getTableName()))) ;\r\n\r\n }\r\n catch (Exception e) {\r\n Log.d(\"insertIntoDb\", e.getMessage());\r\n }\r\n finally {\r\n\r\n }\r\n }", "private Map<String, TravelDetailsObject> getOptimumFlightData(\n\t\t\tMap<String, HashMap<String, TravelDetailsObject>> providerData) {\n\t\tMap<String, TravelDetailsObject> flightDataMap = new HashMap<String, TravelDetailsObject>();\n\t\tfor (String provider : providerData.keySet()) {\n\t\t\tif (flightDataMap.isEmpty()) {\n\t\t\t\tflightDataMap = providerData.get(provider);\n\t\t\t\tfor (String flightCode : flightDataMap.keySet()) {\n\t\t\t\t\tTravelDetailsObject tdObj = flightDataMap.get(flightCode);\n\t\t\t\t\tServiceProviderDetails spd = new ServiceProviderDetails();\n\t\t\t\t\tspd.setName(provider);\n\t\t\t\t\tspd.setPrice(tdObj.getPrice());\n\t\t\t\t\tspd.setInfantPrice(tdObj.getInfantCost());\n\t\t\t\t\tspd.setOffers(tdObj.getOfferDetails());\n\t\t\t\t\tMap<String, ServiceProviderDetails> providerDetails = new HashMap<String, ServiceProviderDetails>();\n\t\t\t\t\tproviderDetails.put(provider, spd);\n\t\t\t\t\ttdObj.setServiceProviderPrice(providerDetails);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tMap<String, TravelDetailsObject> providerTravelDetails = providerData.get(provider);\n\t\t\t\tfor (String flightCode : providerTravelDetails.keySet()) {\n\t\t\t\t\tTravelDetailsObject providerTdObj = providerTravelDetails.get(flightCode);\n\t\t\t\t\tif (flightDataMap.containsKey(flightCode)) {\n\t\t\t\t\t\tTravelDetailsObject tdObj = flightDataMap.get(flightCode);\n\t\t\t\t\t\tif (tdObj.getPrice() > providerTdObj.getPrice()) {\n\t\t\t\t\t\t\ttdObj.setPrice(providerTdObj.getPrice());\n\t\t\t\t\t\t\ttdObj.setOfferDetails(providerTdObj.getOfferDetails());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tServiceProviderDetails spd = new ServiceProviderDetails();\n\t\t\t\t\t\tspd.setName(provider);\n\t\t\t\t\t\tspd.setPrice(providerTdObj.getPrice());\n\t\t\t\t\t\tspd.setInfantPrice(providerTdObj.getInfantCost());\n\t\t\t\t\t\tspd.setOffers(providerTdObj.getOfferDetails());\n\t\t\t\t\t\tMap<String, ServiceProviderDetails> providerDetails = tdObj.getServiceProviderPrice();\n\t\t\t\t\t\tproviderDetails.put(provider, spd);\n\t\t\t\t\t\t// tdObj.setServiceProviderPrice(providerDetails);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tServiceProviderDetails spd = new ServiceProviderDetails();\n\t\t\t\t\t\tspd.setName(provider);\n\t\t\t\t\t\tspd.setPrice(providerTdObj.getPrice());\n\t\t\t\t\t\tspd.setInfantPrice(providerTdObj.getInfantCost());\n\t\t\t\t\t\tspd.setOffers(providerTdObj.getOfferDetails());\n\t\t\t\t\t\tMap<String, ServiceProviderDetails> providerDetails = new HashMap<String, ServiceProviderDetails>();\n\t\t\t\t\t\tproviderDetails.put(provider, spd);\n\t\t\t\t\t\tproviderTdObj.setServiceProviderPrice(providerDetails);\n\t\t\t\t\t\tflightDataMap.put(flightCode, providerTdObj);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!flightDataMap.isEmpty()) {\n\t\t\tTreeMap<String, TravelDetailsObject> sortedFlightDataMap = new TreeMap<String, TravelDetailsObject>(\n\t\t\t\t\tnew PriceComparator(flightDataMap));\n\t\t\tsortedFlightDataMap.putAll(flightDataMap);\n\t\t\treturn sortedFlightDataMap;\n\t\t}\n\t\treturn flightDataMap;\n\n\t}", "List<ProductDto> getProducts();", "private JSONObject joinAdditionalData() {\n JSONObject additionalData = new JSONObject();\n\n try {\n if (mMessageChannel != null) {\n additionalData.put(IPC_MESSAGE_DATA_CHANNELBASEURL,\n \"ws://\" + mFlintServerIp + \":9439/channels/\"\n + mMessageChannel.getName());\n }\n\n if (mCustAdditionalData != null) {\n additionalData.put(\"customData\", mCustAdditionalData);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n if (additionalData.length() > 0) {\n return additionalData;\n }\n\n return null;\n }", "private void initializeData() {\n lblItem.setText(product.getName());\n txtReference.setText(product.getTransaction().getReferenceNumber());\n txtItem.setText(product.getName());\n txtDescription.setText(product.getDescription());\n txtBrand.setText(product.getBrand());\n txtModel.setText(product.getModel());\n txtQuantity.setText(String.valueOf(product.getQuantity()));\n txtUnit.setText(product.getUnit());\n txtProductDate.setDate(product.getProduct_date());\n txtOrigPrice.setText(String.valueOf(product.getOriginalPrice()));\n txtAgent.setText(product.getAgent());\n txtContactPerson.setText(product.getContactPerson());\n try { \n txtSupplier.setText(((Supplier)product.getSuppliers().toArray()[0]).getName());\n } catch(ArrayIndexOutOfBoundsException ex) {\n System.out.println(ex.toString());\n }\n }", "protected void populateDto(Opportunities dto, ResultSet rs) throws SQLException\r\n\t{\r\n\t\tdto.setId( rs.getInt( COLUMN_ID ) );\r\n\t\tdto.setSupplierId( rs.getInt( COLUMN_SUPPLIER_ID ) );\r\n\t\tdto.setUniqueProducts( rs.getString( COLUMN_UNIQUE_PRODUCTS ) );\r\n\t\tdto.setPortfolio( rs.getString( COLUMN_PORTFOLIO ) );\r\n\t\tdto.setRecongnisation( rs.getString( COLUMN_RECONGNISATION ) );\r\n\t\tdto.setKeyWords( rs.getString( COLUMN_KEY_WORDS ) );\r\n\t\tdto.setDateCreation( rs.getTimestamp(COLUMN_DATE_CREATION ) );\r\n\t\tdto.setDateModification( rs.getTimestamp(COLUMN_DATE_MODIFICATION ) );\r\n\t\treset(dto);\r\n\t}", "public JSONArray getGoodsReceiptsJsonMerged(HashMap<String, Object> request, List<GoodsReceipt> list, JSONArray jArr, AccountingHandlerDAO accountingHandlerDAOobj, accCurrencyDAO accCurrencyDAOobj, accGoodsReceiptDAO accGoodsReceiptobj, accAccountDAO accAccountDAOobj, accGoodsReceiptCMN accGoodsReceiptCommon, accTaxDAO accTaxObj) throws ServiceException {\n try {\n String companyid = (String) request.get(GoodsReceiptCMNConstants.COMPANYID);\n String currencyid = (String) request.get(GoodsReceiptCMNConstants.GCURRENCYID);\n// DateFormat userDateFormat = (DateFormat) request.get(Constants.userdf);\n DateFormat userDateFormat=null;\n if (request.containsKey(Constants.userdf) && request.get(Constants.userdf) != null) {\n userDateFormat = (DateFormat) request.get(Constants.userdf);\n }\n DateFormat df = (DateFormat) request.get(GoodsReceiptCMNConstants.DATEFORMAT);\n String only1099AccStr = (String) request.get(GoodsReceiptCMNConstants.ONLY1099ACC);\n DateFormat dateFormat=(DateFormat) authHandler.getDateOnlyFormat();\n List ll = null;\n /*\n * amoutinbase is used to calculate excnahnge rate for transaction \n */\n double amountInBase=0.0;\n KwlReturnObject extraprefresult = null;\n ExtraCompanyPreferences extraCompanyPreferences = null;\n if(!StringUtil.isNullOrEmpty(companyid)){\n extraprefresult = accountingHandlerDAOobj.getObject(ExtraCompanyPreferences.class.getName(), companyid);\n extraCompanyPreferences = extraprefresult != null ? (ExtraCompanyPreferences) extraprefresult.getEntityList().get(0) : null;\n }\n boolean isMalaysian = extraCompanyPreferences != null ? extraCompanyPreferences.getCompany().getCountry().getID().equalsIgnoreCase(\"137\") : false;\n KwlReturnObject curresult = accountingHandlerDAOobj.getObject(KWLCurrency.class.getName(), currencyid);\n KWLCurrency currency = (KWLCurrency) curresult.getEntityList().get(0);\n boolean isBadDebtInvoices = false;// for Malasian Company\n boolean isproductCategory=false;\n boolean isproductType = false;\n KwlReturnObject cmp = accountingHandlerDAOobj.getObject(Company.class.getName(), companyid);\n Company company = (Company) cmp.getEntityList().get(0);\n int countryid = company.getCountry() != null ? Integer.parseInt(company.getCountry().getID()) : 0;\n request.put(\"countryid\", countryid);\n if (request.containsKey(\"isBadDebtInvoices\") && request.get(\"isBadDebtInvoices\") != null) {\n isBadDebtInvoices = (Boolean) request.get(\"isBadDebtInvoices\");\n }\n if (request.containsKey(\"productCategoryid\") && request.get(\"productCategoryid\")!=null && !StringUtil.isNullOrEmpty((String) request.get(\"productCategoryid\"))) {\n isproductCategory = true;\n }\n if (request.containsKey(InvoiceConstants.productid) && request.get(InvoiceConstants.productid) != null && !StringUtil.isNullOrEmpty((String) request.get(InvoiceConstants.productid))) {\n isproductType = true;\n }\n int noOfInterval = Constants.DefaultNoOfIntervals;\n if(request.containsKey(\"noOfInterval\") && request.get(\"noOfInterval\") != null) {\n noOfInterval = request.get(\"noOfInterval\").toString().equals(\"\") ? Constants.DefaultNoOfIntervals : Integer.parseInt(request.get(\"noOfInterval\").toString());\n }\n\n double taxPercent = 0;\n boolean belongsTo1099 = false;\n boolean isAged = (request.containsKey(\"isAged\") && request.get(\"isAged\") != null) ? Boolean.parseBoolean(request.get(\"isAged\").toString()) : false;\n boolean isProduct = (request.containsKey(GoodsReceiptCMNConstants.PRODUCTID) && !StringUtil.isNullOrEmpty((String) request.get(GoodsReceiptCMNConstants.PRODUCTID))) ? true : false;\n boolean only1099Acc = (only1099AccStr != null ? Boolean.parseBoolean(only1099AccStr) : false);\n boolean ignoreZero = request.get(GoodsReceiptCMNConstants.IGNOREZERO) != null;\n boolean onlyAmountDue = request.get(GoodsReceiptCMNConstants.ONLYAMOUNTDUE) != null;\n boolean report = request.get(\"report\") != null;\n boolean isFixedAsset = request.containsKey(\"isFixedAsset\") ? (Boolean) request.get(\"isFixedAsset\") : false;\n boolean isConsignment = request.containsKey(\"isConsignment\") ? (Boolean) request.get(\"isConsignment\") : false;\n int duration = (request.containsKey(GoodsReceiptCMNConstants.DURATION) && request.get(GoodsReceiptCMNConstants.DURATION) != null) ? Integer.parseInt(request.get(GoodsReceiptCMNConstants.DURATION).toString()) : 30;\n int invoiceLinkedWithGRNStatus = (request.containsKey(\"invoiceLinkedWithGRNStatus\") && request.get(\"invoiceLinkedWithGRNStatus\") != null) ? Integer.parseInt(request.get(\"invoiceLinkedWithGRNStatus\").toString()) : 0;\n boolean isExport = (request.get(\"isExport\") == null) ? false : (Boolean) request.get(\"isExport\");\n\n Date startDate=null;\n if(request.containsKey(Constants.REQ_startdate) && request.get(Constants.REQ_startdate)!=null){\n try{\n startDate=dateFormat.parse(request.get(Constants.REQ_startdate).toString());\n }catch(Exception ex){\n startDate = null;\n }\n }\n String curDateString = \"\";\n Date curDate = null;\n boolean booleanAged = false;//Added for aged payable/receivable\n\n //Custom field details Maps for Global data\n HashMap<String, String> customFieldMap = new HashMap<String, String>();\n HashMap<String, String> customDateFieldMap = new HashMap<String, String>();\n\n HashMap<String, Object> fieldrequestParams = new HashMap();\n int moduleid=isFixedAsset ? Constants.Acc_FixedAssets_PurchaseInvoice_ModuleId :isConsignment?Constants.Acc_Consignment_GoodsReceipt_ModuleId: Constants.Acc_Vendor_Invoice_ModuleId;\n fieldrequestParams.put(Constants.filter_names, Arrays.asList(Constants.companyid, Constants.moduleid));\n fieldrequestParams.put(Constants.filter_values, Arrays.asList(companyid, moduleid));\n HashMap<String, String> replaceFieldMap = new HashMap<String, String>();\n HashMap<String, Integer> FieldMap = accAccountDAOobj.getFieldParamsCustomMap(fieldrequestParams, replaceFieldMap, customFieldMap, customDateFieldMap);\n\n //Custom field details Maps for Line Level data\n HashMap<String, Object> fieldrequestParamsRows = new HashMap();\n HashMap<String, String> replaceFieldMapRows = new HashMap();\n HashMap<String, String> customFieldMapRows = new HashMap();\n HashMap<String, String> customDateFieldMapRows = new HashMap();\n fieldrequestParamsRows.put(Constants.filter_names, Arrays.asList(Constants.companyid, Constants.moduleid, Constants.customcolumn));\n fieldrequestParamsRows.put(Constants.filter_values, Arrays.asList(companyid, moduleid, 1));\n HashMap<String, Integer> fieldMapRows = null;\n fieldMapRows = accAccountDAOobj.getFieldParamsCustomMap(fieldrequestParamsRows, replaceFieldMapRows, customFieldMapRows, customDateFieldMapRows);\n\n List InvoiceList=new ArrayList();\n String compids[] = Constants.Companyids_Chkl_And_Marubishi.split(\",\");\n boolean isFromChklorMarubishi = false;\n for (int cnt = 0; cnt < compids.length; cnt++) {\n String compid = compids[cnt];\n if (compid.equalsIgnoreCase(companyid)) {\n isFromChklorMarubishi = true;\n }\n }\n Calendar oneDayBeforeCal1 = Calendar.getInstance();\n Calendar cal1 = Calendar.getInstance();\n Calendar cal2 = Calendar.getInstance();\n Calendar cal3 = Calendar.getInstance();\n Calendar cal4 = Calendar.getInstance();\n Calendar cal5 = Calendar.getInstance();\n Calendar cal6 = Calendar.getInstance();\n Calendar cal7 = Calendar.getInstance();\n Calendar cal8 = Calendar.getInstance();\n Calendar cal9 = Calendar.getInstance();\n Calendar cal10 = Calendar.getInstance();\n\n if (request.get(Constants.asOfDate) != null) {//Added for aged payable/receivable\n curDateString = (String) request.get(Constants.asOfDate);\n\n if (request.get(\"MonthlyAgeingCurrDate\") != null) {\n curDate = (Date) request.get(\"MonthlyAgeingCurrDate\");\n } else {\n curDate = df.parse(curDateString);\n }\n booleanAged = true;\n oneDayBeforeCal1.setTime(curDate);\n cal1.setTime(curDate);\n cal2.setTime(curDate);\n cal3.setTime(curDate);\n cal4.setTime(curDate);\n cal5.setTime(curDate);\n cal6.setTime(curDate);\n cal7.setTime(curDate);\n cal8.setTime(curDate);\n cal9.setTime(curDate);\n cal10.setTime(curDate);\n oneDayBeforeCal1.add(Calendar.DAY_OF_YEAR, -1); //Need to verify in multiple cases, then only take action on it\n cal2.add(Calendar.DAY_OF_YEAR, -duration);\n cal3.add(Calendar.DAY_OF_YEAR, -(duration * 2));\n cal4.add(Calendar.DAY_OF_YEAR, -(duration * 3));\n cal5.add(Calendar.DAY_OF_YEAR, -(duration * 4));\n cal6.add(Calendar.DAY_OF_YEAR, -(duration * 5));\n cal7.add(Calendar.DAY_OF_YEAR, -(duration * 6));\n cal8.add(Calendar.DAY_OF_YEAR, -(duration * 7));\n cal9.add(Calendar.DAY_OF_YEAR, -(duration * 8));\n cal10.add(Calendar.DAY_OF_YEAR, -(duration * 9));\n }\n\n Date oneDayBeforeCal1Date = null;\n Date cal1Date = null;\n Date cal2Date = null;\n Date cal3Date = null;\n Date cal4Date = null;\n Date cal5Date = null;\n Date cal6Date = null;\n Date cal7Date = null;\n Date cal8Date = null;\n Date cal9Date = null;\n Date cal10Date = null;\n\n String oneDayBeforeCal1String = dateFormat.format(oneDayBeforeCal1.getTime());\n oneDayBeforeCal1Date = dateFormat.parse(oneDayBeforeCal1String);\n\n String cal1String = dateFormat.format(cal1.getTime());\n cal1Date = dateFormat.parse(cal1String);\n\n String cal2String = dateFormat.format(cal2.getTime());\n cal2Date = dateFormat.parse(cal2String);\n\n String cal3String = dateFormat.format(cal3.getTime());\n cal3Date = dateFormat.parse(cal3String);\n\n String cal4String = dateFormat.format(cal4.getTime());\n cal4Date = dateFormat.parse(cal4String);\n\n String cal5String = dateFormat.format(cal5.getTime());\n cal5Date = dateFormat.parse(cal5String);\n\n String cal6String = dateFormat.format(cal6.getTime());\n cal6Date = dateFormat.parse(cal6String);\n\n String cal7String = dateFormat.format(cal7.getTime());\n cal7Date = dateFormat.parse(cal7String);\n\n String cal8String = dateFormat.format(cal8.getTime());\n cal8Date = dateFormat.parse(cal8String);\n\n String cal9String = dateFormat.format(cal9.getTime());\n cal9Date = dateFormat.parse(cal9String);\n\n String cal10String = dateFormat.format(cal10.getTime());\n cal10Date = dateFormat.parse(cal10String);\n\n double amountdue1 = 0;\n double amountdue2 = 0;\n double amountdue3 = 0;\n double amountdue4 = 0;\n double amountdue5 = 0;\n double amountdue6 = 0;\n double amountdue7 = 0;\n double amountdue8 = 0;\n double amountdue9 = 0;\n double amountdue10 = 0;\n double amountdue11 = 0;\n// double accruedbalance = 0;\n if (list != null && !list.isEmpty()) {\n for (Object objectArr : list) {\n Object[] oj = (Object[]) objectArr;\n String invid = oj[0].toString();\n //Withoutinventory 0 for normal, 1 for billing\n boolean withoutinventory = Boolean.parseBoolean(oj[1].toString());\n {\n amountdue1 = amountdue2 = amountdue3 = amountdue4 = amountdue5 = amountdue6 = amountdue7 = amountdue8 = amountdue9 = amountdue10 = amountdue11 = 0;\n KwlReturnObject objItr = accountingHandlerDAOobj.getObject(GoodsReceipt.class.getName(), invid);\n GoodsReceipt gReceipt = (GoodsReceipt) objItr.getEntityList().get(0);\n\n \n \n \n /*------- Code for Loading Data in Invoice Grid as per Applied filter of PI linking with GR--------- */\n if (invoiceLinkedWithGRNStatus != 0) {\n boolean invoiceLinkedWithGRNStatusFilter = false;\n\n if (invoiceLinkedWithGRNStatus == 11) {//When PI is fully received\n invoiceLinkedWithGRNStatusFilter = isInvoiceFullyLinkedWithGR(gReceipt);\n } else if (invoiceLinkedWithGRNStatus == 12) {//When PI is not linked with GR\n invoiceLinkedWithGRNStatusFilter = isInvoiceNotLinkedWithAnyGR(gReceipt);\n } else if (invoiceLinkedWithGRNStatus == 13) {//When PI is partially received\n invoiceLinkedWithGRNStatusFilter = isInvoicePartiallyLinkedWithGR(gReceipt);\n }\n /*--------Only relevant Data will load as per applied filter--------- */\n if (!invoiceLinkedWithGRNStatusFilter) {\n continue;\n }\n\n }\n\n \n //Below If Block code is used to remove duplicate invoice id's when filter on the basis of Product category or Product name\n if (isproductCategory || isproductType) {\n if (InvoiceList.contains(gReceipt.getID())) {\n continue;\n } else {\n InvoiceList.add(gReceipt.getID());\n }\n }\n JournalEntry je = null;\n JournalEntryDetail d = null;\n if (gReceipt.isNormalInvoice()) {\n je = gReceipt.getJournalEntry();\n d = gReceipt.getVendorEntry();\n }\n\n double invoiceOriginalAmt = 0d;\n double externalCurrencyRate = 0d;\n boolean isopeningBalanceInvoice = gReceipt.isIsOpeningBalenceInvoice();\n Date creationDate = null;\n\n currencyid = (gReceipt.getCurrency() == null ? currency.getCurrencyID() : gReceipt.getCurrency().getCurrencyID());\n Account account = null;\n if (gReceipt.isIsOpeningBalenceInvoice() && !gReceipt.isNormalInvoice()) {\n KwlReturnObject accObjItr = accountingHandlerDAOobj.getObject(Account.class.getName(), gReceipt.getVendor().getAccount().getID());\n account = (Account) accObjItr.getEntityList().get(0);\n externalCurrencyRate = gReceipt.getExchangeRateForOpeningTransaction();\n creationDate = gReceipt.getCreationDate();\n invoiceOriginalAmt = gReceipt.getOriginalOpeningBalanceAmount();\n } else {\n account = d.getAccount();\n externalCurrencyRate = je.getExternalCurrencyRate();\n JSONObject jObj = extraCompanyPreferences.getColumnPref() != null ? new JSONObject(extraCompanyPreferences.getColumnPref()) : new JSONObject();\n boolean isPostingDateCheck = false;\n if (!StringUtil.isNullObject(jObj) && jObj.has(Constants.IS_POSTING_DATE_CHECK) && jObj.get(Constants.IS_POSTING_DATE_CHECK) != null && jObj.optBoolean(Constants.IS_POSTING_DATE_CHECK, false)) {\n isPostingDateCheck = true;\n }\n if(isPostingDateCheck){\n creationDate = gReceipt.getCreationDate();\n }else{\n creationDate = je.getEntryDate();\n }\n invoiceOriginalAmt = d.getAmount();\n }\n double amountdue = 0,amountdueinbase = 0, deductDiscount = 0,amountDueOriginal=0.0;\n if (gReceipt.isIsExpenseType()) {\n if(Constants.InvoiceAmountDueFlag && !isAged){\n ll = accGoodsReceiptCommon.getUpdatedExpGRAmountDue(request, gReceipt);\n } else {\n ll = accGoodsReceiptCommon.getExpGRAmountDue(request, gReceipt);\n amountdueinbase = (Double) ll.get(5);\n }\n amountdue = (Double) ll.get(1);\n belongsTo1099 = (Boolean) ll.get(3);\n } else {\n if (gReceipt.isIsOpeningBalenceInvoice() && !gReceipt.isNormalInvoice()) {\n ll = new ArrayList();\n ll.add(gReceipt.getOriginalOpeningBalanceAmount());\n ll.add(gReceipt.getOpeningBalanceAmountDue());\n ll.add(\"\");\n ll.add(false);\n ll.add(0.0);\n ll.add(gReceipt.getOpeningBalanceAmountDue());\n } else {\n if (Constants.InvoiceAmountDueFlag && !isAged) {\n ll = accGoodsReceiptCommon.getInvoiceDiscountAmountInfo(request, gReceipt);\n } else {\n ll = accGoodsReceiptCommon.getGRAmountDue(request, gReceipt);\n amountdueinbase = (Double) ll.get(6);\n }\n }\n\n amountdue = (Double) ll.get(1);\n belongsTo1099 = (Boolean) ll.get(3);\n deductDiscount = (Double) ll.get(4);\n amountDueOriginal = (Double) ll.get(5);\n }\n if (onlyAmountDue && authHandler.round(amountdue, companyid) == 0 || (only1099Acc && !belongsTo1099)) {//remove //belongsTo1099&&gReceipt.isIsExpenseType()\\\\ in case of viewing all accounts. [PS]\n continue;\n }\n if ((ignoreZero && authHandler.round(amountdue, companyid) <= 0)) {\n continue;\n }\n int isReval = 0;\n if (report) {\n KwlReturnObject brdAmt = accGoodsReceiptobj.getRevalFlag(gReceipt.getID());\n List reval = brdAmt.getEntityList();\n if (!reval.isEmpty() && (Long) reval.get(0) > 0) {\n isReval = 1;\n }\n }\n\n if (request.containsKey(\"excludeInvoiceId\") && request.get(\"excludeInvoiceId\") != null) {\n String excludeInvoiceId = (String) request.get(\"excludeInvoiceId\");\n if (gReceipt.getGoodsReceiptNumber().equals(excludeInvoiceId)) {\n continue;\n }\n }\n Vendor vendor=gReceipt.getVendor();\n HashMap<String, Object> hashMap = new HashMap<>();\n hashMap.put(\"invoiceID\", gReceipt.getID());\n hashMap.put(\"companyid\", companyid);\n KwlReturnObject object = accInvoiceDAOobj.getinvoiceDocuments(hashMap);\n int attachemntcount = object.getRecordTotalCount();\n com.krawler.utils.json.base.JSONObject obj = new com.krawler.utils.json.base.JSONObject();\n obj.put(GoodsReceiptCMNConstants.BILLID, gReceipt.getID());\n obj.put(\"isdropshipchecked\", gReceipt.isIsDropshipDocument());\n obj.put(Constants.isDraft, gReceipt.isIsDraft());\n boolean isForTemplate = (request.containsKey(\"isForTemplate\") && Boolean.parseBoolean(request.get(\"isForTemplate\").toString()))?true:false;\n //KwlReturnObject cmp = accountingHandlerDAOobj.getObject(Company.class.getName(), companyid);\n // Company company = (Company) cmp.getEntityList().get(0);\n // int countryid = company.getCountry() != null ? Integer.parseInt(company.getCountry().getID()) : 0;\n // Comment this code because get Company object availble for method\n\n String landedInvoice = accProductObj.consignmentInvoice(gReceipt.getID(), companyid);\n\n \n if (Constants.indian_country_id == countryid) {\n List<ExciseDetailsInvoice> ed = null;\n if (!isForTemplate) {\n if (extraCompanyPreferences.isExciseApplicable()) {\n KwlReturnObject exciseDetails = accGoodsReceiptobj.getExciseDetails(gReceipt.getID());\n// if (!exciseDetails.getEntityList().isEmpty()){\n ed = exciseDetails.getEntityList();\n// }\n }\n if (extraCompanyPreferences.isExciseApplicable() && ed.size() > 0) {\n if (isFixedAsset) {\n obj.put(\"assetExciseid\", ed.get(0).getId());\n } else {\n obj.put(\"exciseDetailid\", ed.get(0).getId());\n }\n obj.put(\"suppliers\", ed.get(0).getSupplier());\n obj.put(\"supplierTINSalesTAXNo\", ed.get(0).getSupplierTINSalesTaxNo());\n obj.put(\"supplierExciseRegnNo\", ed.get(0).getSupplierExciseRegnNo());\n obj.put(\"cstnumber\", ed.get(0).getCstnumber());\n obj.put(\"supplierRange\", ed.get(0).getSupplierRange());\n obj.put(\"supplierCommissionerate\", ed.get(0).getSupplierCommissioneRate());\n obj.put(\"supplierAddress\", ed.get(0).getSupplierAddress());\n obj.put(\"supplierImporterExporterCode\", ed.get(0).getSupplierImporterExporterCode());\n obj.put(\"supplierDivision\", ed.get(0).getSupplierDivision());\n obj.put(\"manufacturername\", ed.get(0).getManufacturerName());\n obj.put(\"manufacturerExciseRegnNo\", ed.get(0).getManufacturerExciseregnNo());\n obj.put(\"manufacturerRange\", ed.get(0).getManufacturerRange());\n obj.put(\"manufacturerCommissionerate\", ed.get(0).getManufacturerCommissionerate());\n obj.put(\"manufacturerDivision\", ed.get(0).getManufacturerDivision());\n obj.put(\"manufacturerAddress\", ed.get(0).getManufacturerAddress());\n obj.put(\"manufacturerImporterExporterCode\", ed.get(0).getManufacturerImporterexporterCode());\n obj.put(\"supplierState\", ed.get(0).getSupplierstate());\n obj.put(\"registrationType\", ed.get(0).getRegistrationType());\n obj.put(\"UnitName\", ed.get(0).getUnitname());\n obj.put(\"ECCNo\", ed.get(0).getECCNo());\n obj.put(\"isExciseInvoiceWithTemplate\", (!ed.get(0).getRegistrationType().equals(\"\") || !ed.get(0).getUnitname().equals(\"\") || !ed.get(0).getECCNo().equals(\"\")) ? true : false);\n }\n HashMap tmpHashMap = new HashMap();\n tmpHashMap.put(\"moduleRecordId\", invid);\n tmpHashMap.put(\"companyid\", companyid);\n KwlReturnObject exciseTemp = accountingHandlerDAOobj.getExciseTemplatesMap(tmpHashMap);\n if (exciseTemp != null && exciseTemp.getEntityList().size() > 0) {\n ExciseDetailsTemplateMap moduleTemp = (ExciseDetailsTemplateMap) exciseTemp.getEntityList().get(0);\n if (moduleTemp != null) {\n// obj.put(\"manufacturerType\", moduleTemp.getManufacturerType());\n obj.put(\"registrationType\", moduleTemp.getRegistrationType());\n obj.put(\"UnitName\", moduleTemp.getUnitname());\n obj.put(\"ECCNo\", moduleTemp.getECCNo());\n }\n }\n obj.put(\"vvattin\", !StringUtil.isNullOrEmpty(gReceipt.getVendor().getVATTINnumber())?gReceipt.getVendor().getVATTINnumber():\"\");\n obj.put(\"vcsttin\", !StringUtil.isNullOrEmpty(gReceipt.getVendor().getCSTTINnumber())?gReceipt.getVendor().getCSTTINnumber():\"\");\n obj.put(\"veccno\", !StringUtil.isNullOrEmpty(gReceipt.getVendor().getECCnumber())?gReceipt.getVendor().getECCnumber():\"\");\n obj.put(\"vservicetaxregno\", !StringUtil.isNullOrEmpty(gReceipt.getVendor().getSERVICEnumber())?gReceipt.getVendor().getSERVICEnumber():\"\");\n obj.put(\"vattinno\", !StringUtil.isNullOrEmpty(vendor.getVATTINnumber())?vendor.getVATTINnumber():\"\");\n obj.put(\"csttinno\", !StringUtil.isNullOrEmpty(vendor.getCSTTINnumber())?vendor.getCSTTINnumber():\"\");\n obj.put(\"eccno\", !StringUtil.isNullOrEmpty(vendor.getECCnumber())?vendor.getECCnumber():\"\");\n obj.put(\"panno\", !StringUtil.isNullOrEmpty(vendor.getPANnumber())?vendor.getPANnumber():\"\");\n obj.put(\"servicetaxno\", !StringUtil.isNullOrEmpty(vendor.getSERVICEnumber())?vendor.getSERVICEnumber():\"\");\n obj.put(\"tanno\", !StringUtil.isNullOrEmpty(vendor.getTANnumber())?vendor.getTANnumber():\"\");\n obj.put(\"formtypeid\", !StringUtil.isNullOrEmpty(gReceipt.getFormtype()) ? gReceipt.getFormtype() : 0);\n obj.put(\"gtaapplicable\", gReceipt.isGtaapplicable());\n obj.put(\"gstapplicable\", gReceipt.isIsIndGSTApplied());\n obj.put(\"isInterstateParty\", gReceipt.getVendor().isInterstateparty());\n obj.put(\"formseriesno\", !StringUtil.isNullOrEmpty(gReceipt.getFormseriesno()) ? gReceipt.getFormseriesno() : \"\");\n obj.put(\"formno\", !StringUtil.isNullOrEmpty(gReceipt.getFormno()) ? gReceipt.getFormno() : \"\");\n obj.put(\"formdate\", gReceipt.getFormdate());\n obj.put(\"formamount\", gReceipt.getFormamount());\n if (!StringUtil.isNullOrEmpty(gReceipt.getFormstatus())) {\n if (gReceipt.getFormstatus().equals(\"1\")) {\n obj.put(\"formstatus\", \"NA\");\n } else if (gReceipt.getFormstatus().equals(\"2\")) {\n obj.put(\"formstatus\", \"Pending\");\n } else if (gReceipt.getFormstatus().equals(\"3\")) {\n obj.put(\"formstatus\", \"Submitted\");\n }\n } else{\n obj.put(\"formstatus\", \"NA\");\n }\n } else {\n if (company.getCountry() != null && Integer.parseInt(company.getCountry().getID()) == Constants.indian_country_id && extraCompanyPreferences.isExciseApplicable()) {\n obj.put(\"suppliers\", vendor.getName());\n obj.put(\"supplierCommissionerate\", vendor.getCommissionerate() != null ? vendor.getCommissionerate() : \"\");\n obj.put(\"supplierDivision\", vendor.getDivision() != null ? vendor.getDivision() : \"\");\n obj.put(\"supplierRange\", vendor.getRangecode() != null ? vendor.getRangecode() : \"\");\n obj.put(\"supplierImporterExporterCode\", vendor.getIECNo() != null ? vendor.getIECNo() : \"\");\n obj.put(\"cstnumber\", vendor.getCSTTINnumber() != null ? vendor.getCSTTINnumber() : \"\");\n obj.put(\"supplierTINSalesTAXNo\", vendor.getVATTINnumber() != null ? vendor.getVATTINnumber() : \"\");\n obj.put(\"supplierExciseRegnNo\", vendor.getECCnumber() != null ? vendor.getECCnumber() : \"\");\n\n HashMap<String, Object> addrRequestParams = new HashMap<String, Object>();\n addrRequestParams.put(\"vendorid\", vendor.getID());\n addrRequestParams.put(\"companyid\", companyid);\n addrRequestParams.put(\"isBillingAddress\", true);//only billing address \n KwlReturnObject addressResult = accountingHandlerDAOobj.getVendorAddressDetails(addrRequestParams);\n if (!addressResult.getEntityList().isEmpty()) {\n List<VendorAddressDetails> casList = addressResult.getEntityList();\n if (casList.size() > 0) {\n VendorAddressDetails vas = (VendorAddressDetails) casList.get(0);\n String fullAddress = \"\";\n if (!StringUtil.isNullOrEmpty(vas.getAddress())) {\n fullAddress += vas.getAddress() + \", \";\n }\n if (!StringUtil.isNullOrEmpty(vas.getCity())) {\n fullAddress += vas.getCity() + \", \";\n }\n if (!StringUtil.isNullOrEmpty(vas.getState())) {\n fullAddress += vas.getState() + \", \";\n }\n if (!StringUtil.isNullOrEmpty(vas.getCountry())) {\n fullAddress += vas.getCountry() + \", \";\n }\n if (!StringUtil.isNullOrEmpty(fullAddress)) {\n fullAddress = fullAddress.substring(0, fullAddress.length() - 2);\n }\n obj.put(\"supplierAddress\", fullAddress);\n obj.put(\"supplierState\", vas.getState() != null ? vas.getState() : \"\");\n }\n }\n }\n }\n /**\n * Get Module template and its mapped Unit details for company if Line level term flag ON \n */\n if(extraCompanyPreferences!=null && extraCompanyPreferences.getLineLevelTermFlag()==1 && isForTemplate){\n HashMap<String, Object> ModuleTempParams = new HashMap<>();\n ModuleTempParams.put(\"modulerecordid\", invid);\n ModuleTempParams.put(\"companyid\", companyid);\n /** Get Module template from invoice id . In module template invoice id add as modulerecordid */\n KwlReturnObject ModuleTempObj = accountingHandlerDAOobj.getModuleTemplates(ModuleTempParams);\n if(ModuleTempObj!=null && ModuleTempObj.getEntityList().size() > 0){\n ModuleTemplate moduleTemp = (ModuleTemplate) ModuleTempObj.getEntityList().get(0);\n obj.put(\"companyunitid\", moduleTemp.getCompanyUnitid());\n\n HashMap tmpHashMap = new HashMap();\n tmpHashMap.put(\"companyunitid\", moduleTemp.getCompanyUnitid());\n tmpHashMap.put(Constants.companyKey, companyid);\n /* Get Company Unit details from companyunitid mapped with module template */\n KwlReturnObject exciseTemp = accountingHandlerDAOobj.getExciseTemplatesMap(tmpHashMap);\n if (exciseTemp != null && exciseTemp.getEntityList()!=null && exciseTemp.getEntityList().size() > 0) {\n ExciseDetailsTemplateMap ExcisemoduleTemp = (ExciseDetailsTemplateMap) exciseTemp.getEntityList().get(0);\n if (ExcisemoduleTemp != null) {\n obj.put(\"registrationType\", ExcisemoduleTemp.getRegistrationType());\n obj.put(\"UnitName\", ExcisemoduleTemp.getUnitname());\n obj.put(\"ECCNo\", ExcisemoduleTemp.getECCNo());\n }\n }\n }\n }\n if (extraCompanyPreferences.isExciseApplicable()) {\n KwlReturnObject grDetailsRes = accountingHandlerDAOobj.getObject(GoodsReceipt.class.getName(), gReceipt.getID());\n GoodsReceipt goodsReceiptDetail = (GoodsReceipt) grDetailsRes.getEntityList().get(0);\n if (goodsReceiptDetail.isIsExciseInvoice()) {\n Set<GoodsReceiptDetail> rows = goodsReceiptDetail.getRows();\n for (GoodsReceiptDetail goodsReceiptDetailsRow : rows) {\n KwlReturnObject result = accGoodsReceiptobj.getSupplierExciseDetailsMapping(goodsReceiptDetailsRow.getID(), companyid); //while deleting GR check wether it is used in Consignment Cost\n list = result.getEntityList();\n if (list != null && !list.isEmpty()) {\n obj.put(\"isSupplierLinekd\", true);\n break;\n }\n }\n }\n }\n /**\n * Put GST document history.\n */\n if (gReceipt.getCompany().getCountry().getID().equalsIgnoreCase(\"\" + Constants.indian_country_id)) {\n obj.put(\"refdocid\", gReceipt.getID());\n fieldDataManagercntrl.getGSTDocumentHistory(obj);\n }\n /**\n * Put Merchant Exporter Check\n */\n obj.put(Constants.isMerchantExporter, gReceipt.isIsMerchantExporter());\n\n \n \n }\n if (company.getCountry() != null && Integer.parseInt(company.getCountry().getID()) == Constants.indian_country_id && extraCompanyPreferences.isTDSapplicable()) {\n //For Indian Country related fields\n obj.put(\"TotalAdvanceTDSAdjustmentAmt\", gReceipt.getTotalAdvanceTDSAdjustmentAmt());\n obj.put(\"natureOfPayment\", gReceipt.getVendor() != null ? gReceipt.getVendor().getNatureOfPayment() : \"\");\n obj.put(\"deducteetype\", gReceipt.getVendor() != null ? gReceipt.getVendor().getDeducteeType() : \"\");\n obj.put(\"residentialstatus\", gReceipt.getVendor() != null ? gReceipt.getVendor().getResidentialstatus() : \"\");\n String tdsPayableAccount = \"\";\n MasterItem masterItem2 = null;\n if (!StringUtil.isNullOrEmpty(vendor.getNatureOfPayment())) {\n KwlReturnObject catresult = accountingHandlerDAOobj.getObject(MasterItem.class.getName(), vendor.getNatureOfPayment());\n masterItem2 = (MasterItem) catresult.getEntityList().get(0);\n obj.put(\"natureOfPaymentname\", masterItem2.getCode() + \" - \" + masterItem2.getValue());//INDIAN Company for TDS Calculation\n tdsPayableAccount = masterItem2.getAccID();\n } else {\n obj.put(\"natureOfPaymentname\", \"\");\n }\n if (!StringUtil.isNullOrEmpty(vendor.getDeducteeType())) {\n KwlReturnObject catresult = accountingHandlerDAOobj.getObject(MasterItem.class.getName(), vendor.getDeducteeType());\n masterItem2 = (MasterItem) catresult.getEntityList().get(0);\n obj.put(\"deducteetypename\", (masterItem2!=null)?masterItem2.getValue():\"\");//INDIAN Company for TDS Calculation in Make Payment\n } else {\n obj.put(\"deducteetypename\", \"\");\n }\n obj.put(\"tdsPayableAccount\", tdsPayableAccount);\n }\n\n \n HashMap<String, Object> ModuleTempParams = new HashMap<>();\n ModuleTempParams.put(\"modulerecordid\", invid);\n ModuleTempParams.put(\"companyid\", companyid);\n /**\n * Get Module template from invoice id . In module\n * template invoice id add as modulerecordid\n */\n KwlReturnObject ModuleTempObj = accountingHandlerDAOobj.getModuleTemplates(ModuleTempParams);\n if (ModuleTempObj != null && ModuleTempObj.getEntityList().size() > 0) {\n ModuleTemplate moduleTemp = (ModuleTemplate) ModuleTempObj.getEntityList().get(0);\n obj.put(\"companyunitid\", moduleTemp.getCompanyUnitid());\n obj.put(\"populateproducttemplate\", moduleTemp.isPopulateproductintemp());\n obj.put(\"populatecustomertemplate\", moduleTemp.isPopulatecustomerintemp());\n obj.put(\"populateautodointemp\", moduleTemp.isPopulateautodointemp());\n }\n// MasterItem gstRegistrationType = vendor != null ? vendor.getGSTRegistrationType() : null;\n// if (gstRegistrationType != null && gstRegistrationType.getDefaultMasterItem() != null) {\n// obj.put(\"GSTINRegTypeDefaultMstrID\", gstRegistrationType.getDefaultMasterItem().getID());\n// }\n obj.put(\"tdsrate\", gReceipt.getTdsRate());\n obj.put(\"tdsamount\", gReceipt.getTdsAmount());\n obj.put(\"tdsmasterrateruleid\", gReceipt.getTdsMasterRateRuleId());\n obj.put(\"isInterstateParty\", (gReceipt.getVendor() !=null ? gReceipt.getVendor().isInterstateparty() : false));\n obj.put(\"isOpeningBalanceTransaction\", gReceipt.isIsOpeningBalenceInvoice());\n obj.put(\"isExciseInvoice\", gReceipt.isIsExciseInvoice());\n obj.put(\"defaultnatureofpurchase\", gReceipt.getDefaultnatureOfPurchase());\n obj.put(\"manufacturertype\", gReceipt.getManufacturerType());\n obj.put(\"isNormalTransaction\", gReceipt.isNormalInvoice());\n obj.put(\"parentinvoiceid\", gReceipt.getParentInvoice()!=null?gReceipt.getParentInvoice().getID():\"\");\n obj.put(\"companyid\", gReceipt.getCompany().getCompanyID());\n obj.put(\"companyname\", gReceipt.getCompany().getCompanyName());\n obj.put(\"withoutinventory\", withoutinventory);\n obj.put(Constants.HAS_ACCESS, vendor.isActivate());\n obj.put(GoodsReceiptCMNConstants.PERSONID,vendor == null ? account.getID() : vendor.getID());\n obj.put(GoodsReceiptCMNConstants.ALIASNAME, vendor == null ? \"\" : vendor.getAliasname());\n obj.put(GoodsReceiptCMNConstants.PERSONEMAIL, vendor == null ? \"\" : vendor.getEmail());\n obj.put(\"code\", vendor == null ? \"\" : vendor.getAcccode());\n obj.put(GoodsReceiptCMNConstants.BILLNO, gReceipt.getGoodsReceiptNumber());\n obj.put(GoodsReceiptCMNConstants.CURRENCYID, currencyid);\n obj.put(GoodsReceiptCMNConstants.CURRENCYSYMBOL, (gReceipt.getCurrency() == null ? currency.getSymbol() : gReceipt.getCurrency().getSymbol()));\n obj.put(\"currencyCode\", (gReceipt.getCurrency() == null ? currency.getCurrencyCode() : gReceipt.getCurrency().getCurrencyCode()));\n obj.put(\"currencycode\", (gReceipt.getCurrency() == null ? currency.getCurrencyCode() : gReceipt.getCurrency().getCurrencyCode()));\n obj.put(GoodsReceiptCMNConstants.CURRENCYNAME, (gReceipt.getCurrency() == null ? currency.getName() : gReceipt.getCurrency().getName()));\n obj.put(GoodsReceiptCMNConstants.COMPANYADDRESS, gReceipt.getCompany().getAddress());\n obj.put(GoodsReceiptCMNConstants.COMPANYNAME, gReceipt.getCompany().getCompanyName());\n// KwlReturnObject bAmt = accCurrencyDAOobj.getBaseToCurrencyAmount(request, 1.0, currencyid, creationDate, 0);\n KwlReturnObject bAmt = accCurrencyDAOobj.getBaseToCurrencyAmount(request, 1.0, currencyid, gReceipt.getCreationDate(), 0);\n obj.put(GoodsReceiptCMNConstants.OLDCURRENCYRATE, bAmt.getEntityList().get(0));\n obj.put(GoodsReceiptCMNConstants.BILLTO, gReceipt.getBillFrom());\n obj.put(GoodsReceiptCMNConstants.ISEXPENSEINV, gReceipt.isIsExpenseType());\n obj.put(GoodsReceiptCMNConstants.SHIPTO, gReceipt.getShipFrom());\n obj.put(GoodsReceiptCMNConstants.JOURNALENTRYID, je != null ? je.getID() : \"\");\n obj.put(GoodsReceiptCMNConstants.EXTERNALCURRENCYRATE, externalCurrencyRate);\n obj.put(GoodsReceiptCMNConstants.ENTRYNO, je != null ? je.getEntryNumber() : \"\");\n obj.put(GoodsReceiptCMNConstants.DATE, df.format(creationDate));\n obj.put(GoodsReceiptCMNConstants.SHIPDATE, gReceipt.getShipDate() == null ? \"\" : df.format(gReceipt.getShipDate()));\n obj.put(GoodsReceiptCMNConstants.DUEDATE, df.format(gReceipt.getDueDate()));\n obj.put(GoodsReceiptCMNConstants.PERSONNAME, vendor == null ? account.getName() : vendor.getName());\n obj.put(\"personcode\", vendor == null ? (account.getAcccode()==null?\"\":account.getAcccode()) : (vendor.getAcccode()==null?\"\":vendor.getAcccode()));\n obj.put(GoodsReceiptCMNConstants.PERSONINFO, vendor == null ? (account.getAcccode()==null?\"\":account.getAcccode()) : (vendor.getName()+\"(\"+vendor.getAcccode()+\")\"));\n obj.put(\"agent\", gReceipt.getMasterAgent() == null ? \"\" : gReceipt.getMasterAgent().getID());\n obj.put(\"agentname\", gReceipt.getMasterAgent() == null ? \"\" : gReceipt.getMasterAgent().getValue());\n obj.put(GoodsReceiptCMNConstants.MEMO, gReceipt.getMemo());\n obj.put(\"posttext\", gReceipt.getPostText());\n obj.put(\"shiplengthval\", gReceipt.getShiplength());\n obj.put(\"invoicetype\", gReceipt.getInvoicetype());\n obj.put(\"purchaseinvoicetype\",gReceipt.isIsExpenseType() ? \"Expense\" : \"Product\");\n obj.put(GoodsReceiptCMNConstants.TERMNAME, vendor == null ? \"\" : ((vendor.getDebitTerm() == null) ? \"\" : vendor.getDebitTerm().getTermname()));\n obj.put(GoodsReceiptCMNConstants.DELETED, gReceipt.isDeleted());\n obj.put(GoodsReceiptCMNConstants.TAXINCLUDED, gReceipt.getTax() == null ? false : true);\n obj.put(GoodsReceiptCMNConstants.TAXID, gReceipt.getTax() == null ? \"\" : gReceipt.getTax().getID());\n// obj.put(GoodsReceiptCMNConstants.TAXNAME, gReceipt.getTax() == null ? \"\" : gReceipt.getTax().getName());\n obj.put(GoodsReceiptCMNConstants.ExchangeRate, \"1 \"+currency.getCurrencyCode()+\" = \"+externalCurrencyRate+\" \"+(gReceipt.getCurrency() == null ? \"\" : gReceipt.getCurrency().getCurrencyCode()));\n obj.put(\"status\", gReceipt.isIsOpenInGR()?\"Open\":\"Closed\");\n obj.put(\"amountDueStatus\", gReceipt.isIsOpenPayment()? \"Open\" : \"Closed\");\n obj.put(\"isTDSApplicable\", gReceipt.isIsTDSApplicable());// TDS Applicable Flag where at time of creating invoice TDS Applicable or not\n obj.put(Constants.SUPPLIERINVOICENO, gReceipt.getSupplierInvoiceNo()!=null? gReceipt.getSupplierInvoiceNo():\"\");\n obj.put(Constants.importExportDeclarationNo, gReceipt.getImportDeclarationNo()!=null? gReceipt.getImportDeclarationNo():\"\");\n obj.put(Constants.IsRoundingAdjustmentApplied, gReceipt.isIsRoundingAdjustmentApplied());\n obj.put(Constants.isCreditable, isExport ? (gReceipt.isIsCreditable() ? \"Yes\" : \"No\") : gReceipt.isIsCreditable());\n\n if (!StringUtil.isNullObject(gReceipt.getBillingShippingAddresses())) {\n obj.put(\"billingAddContactPerson\", gReceipt.getBillingShippingAddresses().getBillingContactPerson() != null ? gReceipt.getBillingShippingAddresses().getBillingContactPerson() : \"\");\n obj.put(\"shippingAddContactPerson\", gReceipt.getBillingShippingAddresses().getShippingContactPerson() != null ? gReceipt.getBillingShippingAddresses().getShippingContactPerson() : \"\");\n obj.put(\"billingAddContactNo\", gReceipt.getBillingShippingAddresses().getBillingContactPersonNumber() != null ? gReceipt.getBillingShippingAddresses().getBillingContactPersonNumber() : \"\");\n obj.put(\"shippingAddContactNo\", gReceipt.getBillingShippingAddresses().getShippingContactPersonNumber() != null ? gReceipt.getBillingShippingAddresses().getShippingContactPersonNumber() : \"\");\n obj.put(\"BillingAddEmail\", gReceipt.getBillingShippingAddresses().getBillingEmail() != null ? gReceipt.getBillingShippingAddresses().getBillingEmail() : \"\");\n obj.put(\"shippingAddEmail\", gReceipt.getBillingShippingAddresses().getShippingEmail() != null ? gReceipt.getBillingShippingAddresses().getShippingEmail() : \"\");\n } else {\n obj.put(\"billingAddContactPerson\", \"\");\n obj.put(\"shippingAddContactPerson\", \"\");\n obj.put(\"billingAddContactNo\", \"\");\n obj.put(\"shippingAddContactNo\", \"\");\n obj.put(\"BillingAddEmail\", \"\");\n obj.put(\"shippingAddEmail\", \"\");\n }\n\n Set<LccManualWiseProductAmount> manualProductDetailsSet = gReceipt.getLccmanualwiseproductamount() != null ? (Set<LccManualWiseProductAmount>) gReceipt.getLccmanualwiseproductamount() : null;\n if (manualProductDetailsSet != null && !manualProductDetailsSet.isEmpty()) {\n JSONArray manuProductDetailsJArr = new JSONArray();\n for (LccManualWiseProductAmount lccManualWiseProductAmountObj : manualProductDetailsSet) {\n JSONObject manuProductDetailsJOBJ = new JSONObject();\n manuProductDetailsJOBJ.put(\"id\", lccManualWiseProductAmountObj.getID());\n manuProductDetailsJOBJ.put(\"billid\", lccManualWiseProductAmountObj.getGrdetailid().getGoodsReceipt().getID());\n manuProductDetailsJOBJ.put(\"rowid\", lccManualWiseProductAmountObj.getGrdetailid().getID());\n manuProductDetailsJOBJ.put(\"originalTransactionRowid\", lccManualWiseProductAmountObj.getGrdetailid().getID());\n manuProductDetailsJOBJ.put(\"productid\", lccManualWiseProductAmountObj.getGrdetailid().getInventory().getProduct().getID());\n manuProductDetailsJOBJ.put(\"billno\", lccManualWiseProductAmountObj.getGrdetailid().getGoodsReceipt().getGoodsReceiptNumber());\n manuProductDetailsJOBJ.put(\"productname\", lccManualWiseProductAmountObj.getGrdetailid().getInventory().getProduct().getName());\n manuProductDetailsJOBJ.put(\"enterpercentage\", lccManualWiseProductAmountObj.getPercentage());\n manuProductDetailsJOBJ.put(\"enteramount\", lccManualWiseProductAmountObj.getAmount());\n if (lccManualWiseProductAmountObj.getAssetDetails() != null) {\n manuProductDetailsJOBJ.put(\"productname\", lccManualWiseProductAmountObj.getAssetDetails().getAssetId());\n }\n manuProductDetailsJOBJ.put(\"assetId\", lccManualWiseProductAmountObj.getAssetDetails() != null ? lccManualWiseProductAmountObj.getAssetDetails().getAssetId() : \"\");\n if (lccManualWiseProductAmountObj.isCustomDutyAllocationType()) {\n manuProductDetailsJOBJ.put(\"igstamount\", lccManualWiseProductAmountObj.getIgstamount());\n manuProductDetailsJOBJ.put(\"igstrate\", lccManualWiseProductAmountObj.getIgstrate());\n manuProductDetailsJOBJ.put(\"taxablevalueforigst\", lccManualWiseProductAmountObj.getTaxablevalueforigst());\n manuProductDetailsJOBJ.put(\"customdutyandothercharges\", lccManualWiseProductAmountObj.getCustomdutyandothercharges());\n manuProductDetailsJOBJ.put(\"customdutyandothercharges\", lccManualWiseProductAmountObj.getCustomdutyandothercharges());\n manuProductDetailsJOBJ.put(\"taxablevalueforcustomduty\", lccManualWiseProductAmountObj.getTaxablevalueforcustomduty());\n int hsncolnum = 0, producttaxcolnum = 0;\n HashMap fieldparams = new HashMap<>();\n fieldparams.put(Constants.filter_names, Arrays.asList(Constants.companyid, Constants.moduleid, \"fieldname\"));\n fieldparams.put(Constants.filter_values, Arrays.asList(companyid, lccManualWiseProductAmountObj.getGrdetailid().getGoodsReceipt().isFixedAssetInvoice() ? Constants.Acc_FixedAssets_AssetsGroups_ModuleId : Constants.Acc_Product_Master_ModuleId, \"Custom_\" + Constants.HSN_SACCODE));\n\n KwlReturnObject kwlReturnObjectGstCust = fieldManagerDAOobj.getFieldParams(fieldparams);\n List<FieldParams> fieldParamses = kwlReturnObjectGstCust.getEntityList();\n for (FieldParams fieldParams : fieldParamses) {\n hsncolnum = fieldParams.getColnum();\n }\n fieldparams = new HashMap<>();\n fieldparams.put(Constants.filter_names, Arrays.asList(Constants.companyid, Constants.moduleid, \"fieldname\"));\n fieldparams.put(Constants.filter_values, Arrays.asList(companyid, lccManualWiseProductAmountObj.getGrdetailid().getGoodsReceipt().isFixedAssetInvoice() ? Constants.Acc_FixedAssets_AssetsGroups_ModuleId : Constants.Acc_Product_Master_ModuleId, \"Custom_\" + Constants.GSTProdCategory));\n\n kwlReturnObjectGstCust = fieldManagerDAOobj.getFieldParams(fieldparams);\n fieldParamses = kwlReturnObjectGstCust.getEntityList();\n for (FieldParams fieldParams : fieldParamses) {\n producttaxcolnum = fieldParams.getColnum();\n }\n manuProductDetailsJOBJ.put(\"producttaxcolnum\", producttaxcolnum);\n manuProductDetailsJOBJ.put(\"hsncolnum\", hsncolnum);\n List temp = fieldManagerDAOobj.getFieldComboValue(hsncolnum, lccManualWiseProductAmountObj.getGrdetailid().getInventory().getProduct().getID());\n if (list != null && !temp.isEmpty()) {\n Object[] tempArr = (Object[]) temp.get(0);\n String hsncode = (String) tempArr[0];\n manuProductDetailsJOBJ.put(\"hsncode\", hsncode);\n }\n temp = fieldManagerDAOobj.getFieldComboValue(producttaxcolnum, lccManualWiseProductAmountObj.getGrdetailid().getInventory().getProduct().getID());\n if (temp != null && !temp.isEmpty()) {\n Object[] tempArr = (Object[]) temp.get(0);\n String producttaxclassvalue = (String) tempArr[0];\n manuProductDetailsJOBJ.put(\"producttaxclass\", producttaxclassvalue);\n }\n }\n manuProductDetailsJArr.put(manuProductDetailsJOBJ);\n }\n //manuProductDetailsJOBJTemp.put(\"data\", manuProductDetailsJArr);\n obj.put(\"manualLandedCostCategory\", manuProductDetailsJArr.toString());\n }\n double taxAmt = 0d;\n if(isopeningBalanceInvoice){\n taxAmt = gReceipt.getTaxamount();\n } else {\n if (gReceipt.getTaxEntry() != null) {// if Invoice Level Tax is available\n taxAmt = gReceipt.getTaxEntry() == null ? 0 : gReceipt.getTaxEntry().getAmount();\n // obj.put(GoodsReceiptCMNConstants.TAXAMOUNT, gReceipt.getTaxEntry() == null ? 0 : gReceipt.getTaxEntry().getAmount());\n }\n }\n /**\n * Finding Term Mapped to Invoice and Discount Mapped to\n * Term and passing discount value, Type, applicable\n * days, Purchase invoice date and amount due of invoice\n * because these are used on JS side for calculation of\n * discount while making bulk payment of selected invoice.\n * ERM-981.\n */\n JSONObject columnPrefJObj = null;\n if (!StringUtil.isNullOrEmpty(extraCompanyPreferences.getColumnPref())) {\n columnPrefJObj = new JSONObject((String) extraCompanyPreferences.getColumnPref());\n if (columnPrefJObj.has(Constants.DISCOUNT_ON_PAYMENT_TERMS) && columnPrefJObj.get(Constants.DISCOUNT_ON_PAYMENT_TERMS) != null && columnPrefJObj.optBoolean(Constants.DISCOUNT_ON_PAYMENT_TERMS, false)) {\n obj.put(\"grcreationdate\", je != null ? je.getEntryDate() : creationDate);\n }\n }\n obj.put(\"amountDueOriginal\", (amountDueOriginal <= 0) ? 0 : authHandler.round(amountDueOriginal, companyid));\n// obj.put(\"amountbeforegst\", gReceipt.getTaxEntry() == null ? invoiceOriginalAmt : (invoiceOriginalAmt - gReceipt.getTaxEntry().getAmount()));\n obj.put(GoodsReceiptCMNConstants.DISCOUNT, gReceipt.getDiscountAmount()); //Discount according to created transaction.\n obj.put(\"discountinbase\", gReceipt.getDiscountAmountInBase()); //Discount according to created transaction.\n obj.put(GoodsReceiptCMNConstants.ISPERCENTDISCOUNT, gReceipt.getDiscount() == null ? false : gReceipt.getDiscount().isInPercent());\n obj.put(GoodsReceiptCMNConstants.DISCOUNTVAL, gReceipt.getDiscount() == null ? 0 : gReceipt.getDiscount().getDiscount());\n obj.put(CCConstants.JSON_costcenterid, je != null ? (je.getCostcenter() == null ? \"\" : je.getCostcenter().getID()) : \"\");\n obj.put(CCConstants.JSON_costcenterName, je != null ? (je.getCostcenter() == null ? \"\" : je.getCostcenter().getName()) : \"\");\n obj.put(\"isfavourite\", gReceipt.isFavourite());\n obj.put(\"isprinted\", gReceipt.isPrinted());\n obj.put(\"isEmailSent\", gReceipt.isIsEmailSent());\n obj.put(\"cashtransaction\", gReceipt.isCashtransaction());\n obj.put(\"archieve\", 0);\n obj.put(\"shipvia\", gReceipt.getShipvia() == null ? \"\" : gReceipt.getShipvia());\n obj.put(\"fob\", gReceipt.getFob() == null ? \"\" : gReceipt.getFob());\n obj.put(\"termdetails\", getPurchaseInvoiceTermDetails(gReceipt.getID(), accGoodsReceiptobj));\n boolean isApplyTaxToTerms=gReceipt.isApplyTaxToTerms();\n obj.put(\"isapplytaxtoterms\", isApplyTaxToTerms);\n if (gReceipt.getTermsincludegst() != null) {\n obj.put(Constants.termsincludegst, gReceipt.getTermsincludegst());\n }\n KwlReturnObject result = accLinkDataDao.checkEntryForTransactionInLinkingTableForForwardReference(\"GoodsReceipt\", gReceipt.getID());\n list = result.getEntityList();\n KwlReturnObject linkedDebitNoteResult = accGoodsReceiptobj.getCreditNoteLinkedWithInvoice(gReceipt.getID(), companyid);\n List listDn = linkedDebitNoteResult.getEntityList();\n\n KwlReturnObject linkedDNForOverchargeResult = accGoodsReceiptobj.getDebitNoteForOverchargedLinkedWithInvoice(gReceipt.getID(), companyid);\n List dnOverchargelist = linkedDNForOverchargeResult.getEntityList();\n\n /*\n * TDS Payment is Done - Set true IsLinkedTransaction \n */\n List listtdspayment = null;\n if (Constants.indian_country_id == countryid) {\n KwlReturnObject linkedTDSPaymentObj = accGoodsReceiptobj.getGoodsReceiptTDSPayment(gReceipt.getID(), companyid);\n listtdspayment = linkedTDSPaymentObj.getEntityList();\n }\n if ((list != null && !list.isEmpty())||(!StringUtil.isNullOrEmpty(landedInvoice))||(!gReceipt.isCashtransaction() && (authHandler.round((Double)invoiceOriginalAmt,companyid)!=authHandler.round(amountdue, companyid))) || (listDn!=null && !listDn.isEmpty()) || (listtdspayment!=null && !listtdspayment.isEmpty()) || (dnOverchargelist != null && !dnOverchargelist.isEmpty())){\n obj.put(Constants.IS_LINKED_TRANSACTION, true);\n } else {\n obj.put(Constants.IS_LINKED_TRANSACTION, false);\n }\n /*\n * Check if invoice is claimed as bad debt\n */\n if(gReceipt.getClaimAmountDue()!= 0){\n obj.put(\"isClaimedTransaction\", true);\n }\n// double termAmount = CommonFunctions.getTotalTermsAmount(getTermDetails(gReceipt.getID(), accGoodsReceiptobj));\n// obj.put(\"termamount\", termAmount);\n obj.put(\"termdays\", gReceipt.getTermid() == null ? 0 : gReceipt.getTermid().getTermdays());\n obj.put(\"termid\", gReceipt.getTermid() == null ? \"\" : gReceipt.getTermid().getID());\n //ERP-20637\n if (gReceipt.getLandedInvoice() != null) {\n Set<GoodsReceipt> landInvoiceSet = gReceipt.getLandedInvoice();\n String landedInvoiceId = \"\", landedInvoiceNumber = \"\";\n for (GoodsReceipt grObj : landInvoiceSet) {\n if (!(StringUtil.isNullOrEmpty(landedInvoiceId) && StringUtil.isNullOrEmpty(landedInvoiceId))) {\n landedInvoiceId += \",\";\n landedInvoiceNumber += \",\";\n }\n landedInvoiceId += grObj.getID();\n landedInvoiceNumber += grObj.getGoodsReceiptNumber();\n }\n obj.put(\"landedInvoiceID\", landedInvoiceId);\n obj.put(\"landedInvoiceNumber\", landedInvoiceNumber);\n }\n// obj.put(\"landedInvoiceID\", gReceipt.getLandedInvoice() == null ? \"\" : gReceipt.getLandedInvoice().getID());\n// obj.put(\"landedInvoiceNumber\", gReceipt.getLandedInvoice() == null ? \"\" : gReceipt.getLandedInvoice().getGoodsReceiptNumber());\n obj.put(\"billto\", gReceipt.getBillTo() == null ? \"\" : gReceipt.getBillTo());\n obj.put(\"shipto\", gReceipt.getShipTo() == null ? \"\" : gReceipt.getShipTo());\n obj.put(\"isCapitalGoodsAcquired\", gReceipt.isCapitalGoodsAcquired());\n obj.put(\"isRetailPurchase\", gReceipt.isRetailPurchase());\n obj.put(\"importService\", gReceipt.isImportService());\n obj.put(\"attachment\", attachemntcount);\n obj.put(Constants.isDraft, gReceipt.isIsDraft());\n obj.put(\"isConsignment\", gReceipt.isIsconsignment());\n obj.put(\"landingCostCategoryCombo\", gReceipt.getLandingCostCategory()!=null?gReceipt.getLandingCostCategory().getId():\"\");\n Set<GoodsReceiptDetail> goodsReceiptDetails = gReceipt.getRows();\n // Calculating total invoice amount in base currency\n KwlReturnObject invoiceTotalAmtInBaseResult=null;\n KwlReturnObject taxTotalAmtInBaseResult=null;\n if (isopeningBalanceInvoice && gReceipt.isConversionRateFromCurrencyToBase()) {// if invoice is opening balance invoice and Conversion rate is taken from user is Currency to base then following method will be called.\n// invoiceTotalAmtInBaseResult = accCurrencyDAOobj.getCurrencyToBaseAmountAccordingToCurrencyToBaseExchangeRate(request, invoiceOriginalAmt, currencyid, creationDate, externalCurrencyRate);\n invoiceTotalAmtInBaseResult = accCurrencyDAOobj.getCurrencyToBaseAmountAccordingToCurrencyToBaseExchangeRate(request, invoiceOriginalAmt, currencyid, gReceipt.getCreationDate(), externalCurrencyRate);\n } else {\n// invoiceTotalAmtInBaseResult = accCurrencyDAOobj.getCurrencyToBaseAmount(request, invoiceOriginalAmt, currencyid, creationDate, externalCurrencyRate);\n invoiceTotalAmtInBaseResult = accCurrencyDAOobj.getCurrencyToBaseAmount(request, invoiceOriginalAmt, currencyid, gReceipt.getCreationDate(), externalCurrencyRate);\n }\n double invoiceTotalAmountInBase=authHandler.round((Double) invoiceTotalAmtInBaseResult.getEntityList().get(0),companyid);\n if (isBadDebtInvoices) {// in case of Malasian Company\n int baddebttype = (Integer) request.get(\"baddebttype\");\n double totalTaxAmt = 0d;\n double totalTaxAmtInBase = 0d;\n String taxId = \"\";\n if (isopeningBalanceInvoice) {\n totalTaxAmt = gReceipt.getTaxamount();\n } else {\n double invoiceLevelTaxAmt = gReceipt.getTaxEntry() == null ? 0 : gReceipt.getTaxEntry().getAmount();\n taxId = gReceipt.getTaxEntry() == null ? \"\" : gReceipt.getTax().getID();\n double rowTaxAmt = 0d;\n for (GoodsReceiptDetail invoiceDetail : goodsReceiptDetails) {\n rowTaxAmt += invoiceDetail.getRowTaxAmount();\n rowTaxAmt += invoiceDetail.getRowTermTaxAmount();\n taxId = (invoiceDetail.getTax() != null) ? invoiceDetail.getTax().getID() : taxId;\n }\n totalTaxAmt = invoiceLevelTaxAmt + rowTaxAmt;\n }\n\n if (totalTaxAmt == 0) {// no need to put invoice in bad debt section if it has tax 0\n continue;\n }\n\n if (isopeningBalanceInvoice) {\n totalTaxAmtInBase = gReceipt.getTaxamountinbase();\n } else {\n taxTotalAmtInBaseResult = accCurrencyDAOobj.getCurrencyToBaseAmount(request, totalTaxAmt, currencyid, gReceipt.getCreationDate(), externalCurrencyRate);\n totalTaxAmtInBase = authHandler.round((Double) taxTotalAmtInBaseResult.getEntityList().get(0), companyid);\n }\n\n// if (baddebttype == 1) {\n // get Paid amount of invoice\n Date badDebtCalculationToDate = null;\n if (request.get(\"badDebtCalculationToDate\") != null) {\n badDebtCalculationToDate = df.parse((String) request.get(\"badDebtCalculationToDate\"));\n }\n KwlReturnObject invoicePaidAmtObj = accPaymentDAOobj.getPaymentFromBadDebtClaimedInvoice(gReceipt.getID(), true, badDebtCalculationToDate);//accPaymentDAOobj.getPaymentAmountofBadDebtGoodsReceipt(gReceipt.getID(),true);\n// double paidAmt = (Double) invoicePaidAmtObj.getEntityList().get(0);\n\n double paidAmt = 0;\n\n List paidList = invoicePaidAmtObj.getEntityList();\n if (paidList != null && !paidList.isEmpty()) {\n Iterator pmtIt = paidList.iterator();\n while (pmtIt.hasNext()) {\n PaymentDetail rd = (PaymentDetail) pmtIt.next();\n\n double paidAmtInPaymentCurrency = rd.getAmount();\n\n// KwlReturnObject bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, paidAmtInPaymentCurrency, rd.getPayment().getCurrency().getCurrencyID(), rd.getPayment().getJournalEntry().getEntryDate(), rd.getPayment().getJournalEntry().getExternalCurrencyRate());\n KwlReturnObject bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, paidAmtInPaymentCurrency, rd.getPayment().getCurrency().getCurrencyID(), rd.getPayment().getCreationDate(), rd.getPayment().getJournalEntry().getExternalCurrencyRate());\n double paidAmtInBase = authHandler.round((Double) bAmt1.getEntityList().get(0), companyid);\n\n paidAmt += paidAmtInBase;\n\n }\n }\n\n // paidAmt should be converted into base currency\n// KwlReturnObject taxObj = accTaxObj.getTaxPercent(companyid, isopeningBalanceInvoice ? gReceipt.getCreationDate() : gReceipt.getJournalEntry().getEntryDate(), taxId);\n KwlReturnObject taxObj = accTaxObj.getTaxPercent(companyid, isopeningBalanceInvoice ? gReceipt.getCreationDate() : gReceipt.getCreationDate(), taxId);\n\n double taxPer = (Double) taxObj.getEntityList().get(0);\n\n// double gstToRecover = paidAmt*taxPer/(100+taxPer);\n // Gst claimable amount\n double grAmountDue = isopeningBalanceInvoice ? gReceipt.getOpeningBalanceAmountDue() : gReceipt.getInvoiceamountdue();\n\n // Converting grAmountDue to base currency\n KwlReturnObject bAmt1 = null;\n String fromcurrencyid = gReceipt.getCurrency().getCurrencyID();\n if (isopeningBalanceInvoice) {\n grAmountDue = gReceipt.getOpeningBalanceBaseAmountDue();\n } else {\n// bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, grAmountDue, fromcurrencyid, gReceipt.getJournalEntry().getEntryDate(), gReceipt.getJournalEntry().getExternalCurrencyRate());\n bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, grAmountDue, fromcurrencyid, gReceipt.getCreationDate(), gReceipt.getJournalEntry().getExternalCurrencyRate());\n grAmountDue = authHandler.round((Double) bAmt1.getEntityList().get(0), companyid);\n }\n\n double gstclaimableamount = 0.0;\n// double gstclaimableamount = grAmountDue * taxPer / (100 + taxPer);\n gstclaimableamount = (totalTaxAmtInBase * grAmountDue) / invoiceTotalAmountInBase;\n gstclaimableamount = authHandler.round(gstclaimableamount, companyid);\n //Calculate Bad Debt Recoverable Amount\n // Get Recovered Amount of invoice\n\n HashMap<String, Object> badMaps = new HashMap<String, Object>();\n badMaps.put(\"companyid\", companyid);\n badMaps.put(\"invoiceid\", invid);\n\n KwlReturnObject badDebtMappingResult = accGoodsReceiptobj.getBadDebtPurchaseInvoiceMappingForGoodsReceipt(badMaps);\n\n Date badDebtClaimedDate = null;\n double totalRecoveredAmt = 0;\n List badDebtMapping = badDebtMappingResult.getEntityList();\n if (!badDebtMapping.isEmpty()) {\n Iterator badIt = badDebtMapping.iterator();\n while (badIt.hasNext()) {\n BadDebtPurchaseInvoiceMapping debtInvoiceMapping = (BadDebtPurchaseInvoiceMapping) badIt.next();\n totalRecoveredAmt += debtInvoiceMapping.getBadDebtAmtRecovered();\n if (debtInvoiceMapping.getBadDebtClaimedDate() != null) {\n badDebtClaimedDate = debtInvoiceMapping.getBadDebtClaimedDate();\n }\n }\n }\n\n // Calculate Recover Amount in base\n if (isopeningBalanceInvoice) {\n if (gReceipt.isConversionRateFromCurrencyToBase()) {\n totalRecoveredAmt = totalRecoveredAmt / gReceipt.getExchangeRateForOpeningTransaction();\n } else {\n totalRecoveredAmt = totalRecoveredAmt * gReceipt.getExchangeRateForOpeningTransaction();\n }\n } else {\n// bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, totalRecoveredAmt, fromcurrencyid, gReceipt.getJournalEntry().getEntryDate(), gReceipt.getJournalEntry().getExternalCurrencyRate());\n bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, totalRecoveredAmt, fromcurrencyid, gReceipt.getCreationDate(), gReceipt.getJournalEntry().getExternalCurrencyRate());\n totalRecoveredAmt = authHandler.round((Double) bAmt1.getEntityList().get(0), companyid);\n }\n\n if (baddebttype == 1) {\n\n// System.out.println(gReceipt.getGoodsReceiptNumber());\n// HashMap<String, Object> hm = new HashMap<String, Object>();\n//\n// hm.put(\"companyid\", companyid);\n// hm.put(\"invoiceId\", gReceipt.getID());\n// // hm.put(\"invoiceId\", invoice.getI);\n//\n// double consumedAmt = accGoodsReceiptCommon.getAmountDueOfGRBeforeClaimedDate(hm);\n// double invoiceOrigAmt = d.getAmount();\n//\n// double remainedAmtBeforeClaim = invoiceOrigAmt - consumedAmt;\n//\n// double claimedGST = remainedAmtBeforeClaim * taxPer/(100+taxPer);\n double claimedGST = 0;\n\n if (!badDebtMapping.isEmpty()) {\n Iterator badIt = badDebtMapping.iterator();\n while (badIt.hasNext()) {\n BadDebtPurchaseInvoiceMapping debtInvoiceMapping = (BadDebtPurchaseInvoiceMapping) badIt.next();\n if (debtInvoiceMapping.getBadDebtType() == 0) {\n claimedGST += debtInvoiceMapping.getBadDebtGSTAmtClaimed();\n }\n }\n }\n\n // converting claimed GST in Base Currency\n// bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, claimedGST, fromcurrencyid, gReceipt.getJournalEntry().getEntryDate(), gReceipt.getJournalEntry().getExternalCurrencyRate());\n bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, claimedGST, fromcurrencyid, gReceipt.getCreationDate(), gReceipt.getJournalEntry().getExternalCurrencyRate());\n claimedGST = authHandler.round((Double) bAmt1.getEntityList().get(0), companyid);\n\n obj.put(\"gstclaimableamount\", claimedGST);\n } else {\n obj.put(\"gstclaimableamount\", gstclaimableamount);\n\n Date selectedCriteriaDate = df.parse((String) request.get(\"selectedCriteriaDate\"));\n int badDebtCriteria = (Integer) request.get(\"badDebtCriteria\");\n\n long diff = 0;\n if (badDebtCriteria == 0 && gReceipt.getDueDate() != null) {// on Invoice Due Date\n diff = selectedCriteriaDate.getTime() - gReceipt.getDueDate().getTime();\n } else if (badDebtCriteria == 1) {// on Invoice Creation Date\n diff = selectedCriteriaDate.getTime() - creationDate.getTime();\n }\n long diffInDays = diff / (24 * 60 * 60 * 1000);\n\n obj.put(\"agingDays\", diffInDays);\n\n }\n\n double gstToRecover = (paidAmt - totalRecoveredAmt) * taxPer / (100 + taxPer);\n double paidAfterClaimed = paidAmt - totalRecoveredAmt;\n\n// obj.put(\"gstclaimableamount\", gstclaimableamount);\n obj.put(\"paidAfterClaimed\", paidAfterClaimed);\n obj.put(\"gstToRecover\", gstToRecover);\n obj.put(\"claimedPeriod\", gReceipt.getClaimedPeriod());\n obj.put(\"badDebtClaimedDate\", (badDebtClaimedDate != null) ? df.format(badDebtClaimedDate) : null);\n\n if (authHandler.round(amountdue, companyid) == 0 && authHandler.round(paidAfterClaimed, companyid) == 0) {// don't put invoices which has amount due zero and whole gst has been recovered\n continue;\n }\n// }\n }\n obj=AccountingAddressManager.getTransactionAddressJSON(obj,gReceipt.getBillingShippingAddresses(),true);\n obj.put(\"sequenceformatid\", gReceipt.getSeqformat() == null ? \"\" : gReceipt.getSeqformat().getID());\n obj.put(\"gstIncluded\", gReceipt.isGstIncluded());\n obj.put(\"selfBilledInvoice\", gReceipt.isSelfBilledInvoice());\n obj.put(\"RMCDApprovalNo\", gReceipt.getRMCDApprovalNo());\n obj.put(\"fixedAssetInvoice\", gReceipt.isFixedAssetInvoice());\n obj.put(\"isConsignment\", gReceipt.isIsconsignment());\n if (gReceipt.isCashtransaction()) {\n obj.put(Constants.IS_PYMENT_STATUS_CLEARED, false);\n PayDetail payDetail = gReceipt.getPayDetail();\n if (payDetail != null) {\n PaymentMethod paymentMethod = payDetail.getPaymentMethod();\n obj.put(\"paymentname\", paymentMethod.getMethodName());\n obj.put(\"methodid\", paymentMethod.getID());\n obj.put(\"detailtype\", paymentMethod.getDetailType());\n if (paymentMethod.getDetailType() == PaymentMethod.TYPE_CARD) {\n Card card = payDetail.getCard();\n obj.put(\"cardno\", card != null ? card.getCardNo() : \"\");\n obj.put(\"nameoncard\", card != null ? card.getCardHolder() : \"\");\n obj.put(\"cardexpirydate\", card != null ? df.format(card.getExpiryDate()) : \"\");\n obj.put(\"cardtype\", card != null ? card.getCardType() : \"\");\n obj.put(\"cardrefno\", card != null ? card.getRefNo() : \"\");\n\n } else if (paymentMethod.getDetailType() == PaymentMethod.TYPE_BANK) {\n Cheque cheque = payDetail.getCheque();\n obj.put(\"chequeno\", cheque != null ? cheque.getChequeNo() : \"\");\n obj.put(\"chequedescription\", cheque != null ? cheque.getDescription() : \"\");\n obj.put(\"bankname\", cheque != null ? cheque.getBankName() : \"\");\n obj.put(\"chequedate\", cheque != null ? df.format(cheque.getDueDate()) : \"\");\n obj.put(\"clearanceDate\", \"\");\n obj.put(\"paymentStatus\", \"Uncleared\");\n if (gReceipt.getPayDetail() != null) {\n KwlReturnObject clearanceDate = accBankReconciliationObj.getBRfromJE(gReceipt.getJournalEntry().getID(), gReceipt.getCompany().getCompanyID(), false);\n if (clearanceDate != null && clearanceDate.getEntityList() != null && clearanceDate.getEntityList().size() > 0) {\n BankReconciliationDetail brd = (BankReconciliationDetail) clearanceDate.getEntityList().get(0);\n if (brd.getBankReconciliation().getClearanceDate() != null) {\n obj.put(\"clearanceDate\", df.format(brd.getBankReconciliation().getClearanceDate()));\n obj.put(\"paymentStatus\", \"Cleared\");\n obj.put(Constants.IS_PYMENT_STATUS_CLEARED, true);// To Disable Feilds in Edit Case for Cleard Cash Payment\n }\n }\n }\n }\n\n } else {\n obj.put(\"paymentname\", \"\");\n obj.put(\"methodid\", \"\");\n }\n } else {\n obj.put(\"paymentname\", \"NA\");\n }\n if (gReceipt.getModifiedby() != null) {\n obj.put(\"lasteditedby\", StringUtil.getFullName(gReceipt.getModifiedby()));\n }\n obj.put(\"createdby\", gReceipt.getCreatedby() == null ? \"\" : StringUtil.getFullName(gReceipt.getCreatedby()));\n if (report) {\n obj.put(\"isreval\", isReval);\n }\n// int pendingApprovalInt = gReceipt.getPendingapproval();\n// obj.put(\"approvalstatusint\", pendingApprovalInt);\n// if (pendingApprovalInt == Constants.LEVEL_ONE) {\n// obj.put(\"approvalstatus\", \"Pending level 1 approval\");\n// } else if (pendingApprovalInt == Constants.LEVEL_TWO) {\n// obj.put(\"approvalstatus\", \"Pending level 2 approval\");\n// } else {\n// obj.put(\"approvalstatus\", \"\");\n// }\n obj.put(\"approvalstatus\", gReceipt.getApprovestatuslevel());\n obj.put(\"isjobworkoutrec\", gReceipt.isIsJobWorkOutInv());\n String approvalStatus=\"\";\n ScriptEngineManager mgr = new ScriptEngineManager();\n ScriptEngine engine = mgr.getEngineByName(\"JavaScript\");\n String multipleRuleids=\"\";\n if(gReceipt.getApprovestatuslevel() < 0){\n approvalStatus=\"Rejected\";\n }else if(gReceipt.getApprovestatuslevel() < 11){\n String ruleid = \"\",userRoleName=\"\";\n HashMap<String, Object> qdDataMap = new HashMap<String, Object>();\n qdDataMap.put(\"companyid\", companyid);\n qdDataMap.put(\"level\",gReceipt.getApprovestatuslevel());\n qdDataMap.put(\"moduleid\", Constants.Acc_Vendor_Invoice_ModuleId);\n KwlReturnObject flowresult = accMultiLevelApprovalDAOObj.getMultiApprovalRuleData(qdDataMap);\n Iterator ruleitr = flowresult.getEntityList().iterator();\n while (ruleitr.hasNext()) {\n Object[] rulerow = (Object[]) ruleitr.next();\n ruleid = rulerow[0].toString();\n boolean sendForApproval = false;\n int appliedUpon = Integer.parseInt(rulerow[5].toString());\n String discountRule = \"\";\n String rule = \"\";\n if (rulerow[2] != null) {\n rule = rulerow[2].toString();\n }\n if (rulerow[7] != null) {\n discountRule = rulerow[7].toString();\n }\n if (appliedUpon == Constants.Total_Amount) {\n /*\n Added to get condition of approval rule i.e set when creating approval rule \n */\n rule = rule.replaceAll(\"[$$]+\", String.valueOf(gReceipt.getInvoiceAmountInBase()));\n } else if (appliedUpon == Constants.Specific_Products || appliedUpon == Constants.Specific_Products_Discount || appliedUpon == Constants.Specific_Products_Category) {\n /*\n Handled for Product,product discount And product category\n */\n HashMap<String, Object> GlobalParams = new HashMap<String, Object>();\n JSONArray productDiscountJArr = new JSONArray();\n Set<GoodsReceiptDetail> grDetails = gReceipt.getRows();\n for (GoodsReceiptDetail grDetail : grDetails) {\n if (grDetail.getInventory() != null) {\n String productId = grDetail.getInventory().getProduct().getID();\n Discount invDiscount = grDetail.getDiscount();\n double discAmountinBase = 0;\n if (invDiscount != null) {\n double discountVal = invDiscount.getDiscountValue();\n KwlReturnObject dAmount = accCurrencyDAOobj.getCurrencyToBaseAmount(request, discountVal, currencyid, gReceipt.getCreationDate(), gReceipt.getExternalCurrencyRate());\n discAmountinBase = (Double) dAmount.getEntityList().get(0);\n }\n discAmountinBase = authHandler.round(discAmountinBase, companyid);\n JSONObject productDiscountObj = new JSONObject();\n productDiscountObj.put(\"productId\", productId);\n productDiscountObj.put(\"discountAmount\", discAmountinBase);\n productDiscountJArr.put(productDiscountObj);\n }\n }\n if (appliedUpon == Constants.Specific_Products || appliedUpon == Constants.Specific_Products_Discount) {\n /*\n * Check If Rule is apply on specefic product\n * and Specific product discount from multiapproverule window\n */\n if (productDiscountJArr != null) {\n sendForApproval = AccountingManager.checkForProductAndProductDiscountRule(productDiscountJArr, appliedUpon, rule, discountRule);\n }\n } else if (appliedUpon == Constants.Specific_Products_Category) {\n /*\n * Check If Rule is apply on product\n * category from multiapproverule window\n */\n sendForApproval = accountingHandlerDAOobj.checkForProductCategoryForProduct(productDiscountJArr, appliedUpon, rule);\n }\n }\n /*\n Added to check if record falls in total amount approval rule \n */\n if (StringUtil.isNullOrEmpty(rule) || sendForApproval || (!StringUtil.isNullOrEmpty(rule) && appliedUpon == Constants.Total_Amount && Boolean.parseBoolean(engine.eval(rule).toString()))) {\n multipleRuleids += ruleid + \",\";\n }\n }\n /*\n Added to get multiple ruleid if record falls in multiple approval rule \n */\n String[] multipleRuleidsArray = multipleRuleids.split(\",\");\n for (int multiRule = 0; multiRule < multipleRuleidsArray.length; multiRule++) {\n ruleid = multipleRuleidsArray[multiRule];\n if (!StringUtil.isNullOrEmpty(ruleid)) {\n qdDataMap.put(\"ruleid\", ruleid);\n KwlReturnObject userResult = accMultiLevelApprovalDAOObj.getApprovalRuleTargetUsers(qdDataMap);\n Iterator useritr = userResult.getEntityList().iterator();\n while (useritr.hasNext()) {\n Object[] userrow = (Object[]) useritr.next();\n String userId = userrow[0].toString();\n\n String fname = userrow[1].toString();\n String lname = userrow[2].toString();\n String userName = fname+\" \"+lname;\n /*\n Addded so duplicate approve's can be eleminated \n */\n if(userRoleName.contains(userName)){\n continue;\n }\n KwlReturnObject kmsg = null;\n String roleName=\"Company User\";\n kmsg = permissionHandlerDAOObj.getRoleofUser(userId);\n Iterator ite2 = kmsg.getEntityList().iterator();\n while (ite2.hasNext()) {\n Object[] row = (Object[]) ite2.next();\n roleName = row[1].toString();\n }\n userRoleName += roleName+\" \"+userName + \",\";\n }\n }\n }\n if (!StringUtil.isNullOrEmpty(userRoleName)) {\n userRoleName = userRoleName.substring(0, userRoleName.length() - 1);\n }\n approvalStatus=\"Pending Approval\" + ( StringUtil.isNullOrEmpty(userRoleName) ? \"\" : \" by \"+userRoleName )+\" at Level - \"+gReceipt.getApprovestatuslevel();\n } else {\n approvalStatus=\"Approved\";\n }\n obj.put(\"approvalstatusinfo\",approvalStatus);\n\n if (request.containsKey(\"pendingapproval\") && request.get(\"pendingapproval\") != null && (Boolean) request.containsKey(\"pendingapproval\")) {\n int nextApprovalLevel = 11;\n HashMap<String, Object> qdDataMap = new HashMap<String, Object>();\n qdDataMap.put(\"companyid\", companyid);\n qdDataMap.put(\"level\", gReceipt.getApprovestatuslevel() + 1);\n qdDataMap.put(\"moduleid\", Constants.Acc_Vendor_Invoice_ModuleId);\n KwlReturnObject flowresult = accMultiLevelApprovalDAOObj.getMultiApprovalRuleData(qdDataMap);\n List<Object[]> approvalRuleItr = flowresult.getEntityList();\n if (approvalRuleItr != null && approvalRuleItr.size() > 0) {\n for (Object[] rowObj : approvalRuleItr) {\n String rule = \"\";\n if (rowObj[2] != null) {\n rule = rowObj[2].toString();\n }\n int appliedUpon = Integer.parseInt(rowObj[5].toString());\n rule = rule.replaceAll(\"[$$]+\", String.valueOf(gReceipt.getInvoiceAmountInBase()));\n if (StringUtil.isNullOrEmpty(rule) || (!StringUtil.isNullOrEmpty(rule) && ( appliedUpon != Constants.Specific_Products && appliedUpon != Constants.Specific_Products_Discount && appliedUpon != Constants.Specific_Products_Category) && Boolean.parseBoolean(engine.eval(rule).toString()))) {\n nextApprovalLevel = gReceipt.getApprovestatuslevel() + 1;\n }\n }\n }\n obj.put(\"isFinalLevelApproval\", nextApprovalLevel == Constants.APPROVED_STATUS_LEVEL ? true : false);\n }\n /*\n * For Product search, add Products details from Invoice\n * details\n */\n\n if (isProduct && gReceipt.isNormalInvoice()) {\n String idvString = isProduct ? oj[4].toString() : \"\"; //as in list invoiedetail id comes 4th\n KwlReturnObject objItrGRD = accountingHandlerDAOobj.getObject(GoodsReceiptDetail.class.getName(), idvString);\n GoodsReceiptDetail idvObj = (GoodsReceiptDetail) objItrGRD.getEntityList().get(0);\n if (idvObj != null) {\n obj.put(\"rowproductname\", idvObj.getInventory().getProduct().getName());\n obj.put(\"rowquantity\", idvObj.getInventory().isInvrecord() ? idvObj.getInventory().getQuantity() : idvObj.getInventory().getActquantity());\n obj.put(\"rowrate\", idvObj.getRate());\n\n Discount disc = idvObj.getDiscount();\n if (disc != null && disc.isInPercent()) {\n obj.put(\"rowprdiscount\", disc.getDiscount()); //product discount in percent\n } else {\n obj.put(\"rowprdiscount\", 0);\n }\n\n double rowTaxPercent = 0;\n if (idvObj.getTax() != null) {\n// KwlReturnObject perresult = accTaxObj.getTaxPercent(companyid, gReceipt.getJournalEntry().getEntryDate(), idvObj.getTax().getID());\n KwlReturnObject perresult = accTaxObj.getTaxPercent(companyid, gReceipt.getCreationDate(), idvObj.getTax().getID());\n rowTaxPercent = (Double) perresult.getEntityList().get(0);\n }\n obj.put(\"rowprtaxpercent\", rowTaxPercent);\n }\n }\n\n //For getting tax in percent applyied on invoice [PS]\n if (gReceipt.getTax() != null) {\n// KwlReturnObject taxresult = accTaxObj.getTaxPercent(companyid, je.getEntryDate(), gReceipt.getTax().getID());\n KwlReturnObject taxresult = accTaxObj.getTaxPercent(companyid, gReceipt.getCreationDate(), gReceipt.getTax().getID());\n taxPercent = (Double) taxresult.getEntityList().get(0);\n }\n obj.put(GoodsReceiptCMNConstants.TAXPERCENT, taxPercent);\n\n //For getting amountdue [PS]\n if (gReceipt.isCashtransaction()) {\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUEINBASE, 0);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE, 0);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUENONNEGATIVE, 0);\n obj.put(GoodsReceiptCMNConstants.INCASH, true);\n } else {\n if ((Constants.InvoiceAmountDueFlag && !isAged) || isopeningBalanceInvoice) {\n if (isopeningBalanceInvoice && gReceipt.isConversionRateFromCurrencyToBase()) {// if invoice is opening balance invoice and Conversion rate is taken from user is Currency to base then following method will be called.\n// bAmt = accCurrencyDAOobj.getCurrencyToBaseAmountAccordingToCurrencyToBaseExchangeRate(request, amountdue, currencyid, creationDate, externalCurrencyRate);\n bAmt = accCurrencyDAOobj.getCurrencyToBaseAmountAccordingToCurrencyToBaseExchangeRate(request, amountdue, currencyid, gReceipt.getCreationDate(), externalCurrencyRate);\n } else {\n// bAmt = accCurrencyDAOobj.getCurrencyToBaseAmount(request, amountdue, currencyid, creationDate, externalCurrencyRate);\n bAmt = accCurrencyDAOobj.getCurrencyToBaseAmount(request, amountdue, currencyid, gReceipt.getCreationDate(), externalCurrencyRate);\n }\n amountInBase = (Double) bAmt.getEntityList().get(0);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUEINBASE, authHandler.round((Double) bAmt.getEntityList().get(0), companyid));\n } else { // For aged we are fetching amount in base as well so no need for calculation\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUEINBASE, amountdueinbase);\n }\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE, authHandler.round(amountdue, companyid));\n /*\n * To calulate exchange rate\n */\n obj.put(\"exchangeratefortransaction\", (amountInBase <= 0 && amountdue <= 0) ? 0 : (amountInBase / amountdue));\n\n if (booleanAged) {//Added for aged payable/receivable\n int datefilter = (request.containsKey(\"datefilter\") && request.get(\"datefilter\") != null) ? Integer.parseInt(request.get(\"datefilter\").toString()) : 0;// 0 = Invoice Due date OR 1 = Invoice date\n Date dueDate = null;\n if (!StringUtil.isNullOrEmpty(df.format(gReceipt.getDueDate()))) {\n dueDate = df.parse(df.format(gReceipt.getDueDate()));\n }\n if (datefilter == 0 || datefilter == Constants.agedDueDate0to30Filter) {\n dueDate = df.parse(df.format(gReceipt.getDueDate()));\n } else {\n dueDate = df.parse(df.format(creationDate));\n }\n// if(startDate!=null && dueDate.before(startDate)){//In Aged Report amountdue goes in Accruade Balance for those transaction whose creation/due date is previous to Start date will goes into the accrued balance, likes opening balance \n// accruedbalance = authHandler.round(amountdue, companyid);\n// } else\n if (dueDate.after(oneDayBeforeCal1Date)) {\n if (dueDate.equals(cal1Date) && (datefilter == Constants.agedDueDate0to30Filter || datefilter == Constants.agedInvoiceDate0to30Filter)) {\n amountdue2 = authHandler.round(amountdue, companyid); // 0-30 Days\n } else {\n amountdue1 = authHandler.round(amountdue, companyid); // Current\n }\n } else if ((cal2Date.before(dueDate) || cal2Date.equals(dueDate)) && cal1Date.after(dueDate)) { // 1-30\n amountdue2 = authHandler.round(amountdue, companyid);\n } else if ((cal3Date.before(dueDate) || cal3Date.equals(dueDate)) && cal2Date.after(dueDate)) { // 31-60\n amountdue3 = authHandler.round(amountdue, companyid);\n } else if ((cal4Date.before(dueDate) || cal4Date.equals(dueDate)) && cal3Date.after(dueDate)) { // 61-90\n amountdue4 = authHandler.round(amountdue, companyid);\n } else if ((cal5Date.before(dueDate) || cal5Date.equals(dueDate)) && cal4Date.after(dueDate)) { // 91-120\n amountdue5 = authHandler.round(amountdue, companyid);\n } else if ((cal6Date.before(dueDate) || cal6Date.equals(dueDate)) && cal5Date.after(dueDate)) { // 121-150\n amountdue6 = authHandler.round(amountdue, companyid);\n } else if ((cal7Date.before(dueDate) || cal7Date.equals(dueDate)) && cal6Date.after(dueDate)) { // 151-180\n amountdue7 = authHandler.round(amountdue, companyid);\n } else if ((cal8Date.before(dueDate) || cal8Date.equals(dueDate)) && cal7Date.after(dueDate)) { // 181-210\n amountdue8 = authHandler.round(amountdue, companyid);\n } else if ((cal9Date.before(dueDate) || cal9Date.equals(dueDate)) && cal8Date.after(dueDate)) { // 211-240\n amountdue9 = authHandler.round(amountdue, companyid);\n } else if ((cal10Date.before(dueDate) || cal10Date.equals(dueDate)) && cal9Date.after(dueDate)) { // 241-270\n amountdue10 = authHandler.round(amountdue, companyid);\n } else { // > 270 \n amountdue11 = authHandler.round(amountdue, companyid);\n }\n \n switch(noOfInterval){\n case 2:\n amountdue3 += amountdue4 + amountdue5 + amountdue6 + amountdue7 + amountdue8 + amountdue9 + amountdue10 + amountdue11;\n amountdue4 = amountdue5 = amountdue6 = amountdue7 = amountdue8 = amountdue9 = amountdue10 = amountdue11 = 0;\n break;\n case 3:\n amountdue4 += amountdue5 + amountdue6 + amountdue7 + amountdue8 + amountdue9 + amountdue10 + amountdue11;\n amountdue5 = amountdue6 = amountdue7 = amountdue8 = amountdue9 = amountdue10 = amountdue11 = 0;\n break;\n case 4:\n amountdue5 += amountdue6 + amountdue7 + amountdue8 + amountdue9 + amountdue10 + amountdue11;\n amountdue6 = amountdue7 = amountdue8 = amountdue9 = amountdue10 = amountdue11 = 0;\n break;\n case 5:\n amountdue6 += amountdue7 + amountdue8 + amountdue9 + amountdue10 + amountdue11;\n amountdue7 = amountdue8 = amountdue9 = amountdue10 = amountdue11 = 0;\n break;\n case 6:\n amountdue7 += amountdue8 + amountdue9 + amountdue10 + amountdue11;\n amountdue8 = amountdue9 = amountdue10 = amountdue11 = 0;\n break;\n case 7:\n amountdue8 += amountdue9 + amountdue10 + amountdue11;\n amountdue9 = amountdue10 = amountdue11 = 0;\n break;\n case 8:\n amountdue9 += amountdue10 + amountdue11;\n amountdue10 = amountdue11 = 0;\n break;\n case 9:\n amountdue10 += amountdue11;\n amountdue11 = 0;\n break;\n }\n }\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUENONNEGATIVE, (amountdue <= 0) ? 0 : authHandler.round(amountdue, companyid));\n }\n boolean includeprotax = false;\n String taxname=\"\";\n double rowTaxAmt = 0d, rowOtherTermNonTaxableAmount = 0;\n boolean isLineLevelTermFlag = false;//To Check Whether LinelevelTerms are applicable or not.\n if(extraCompanyPreferences != null && extraCompanyPreferences.getLineLevelTermFlag()==1){\n isLineLevelTermFlag = true;//If LineLevelTerms are applicable, then update the flag.\n }\n double subtotal=0.0;\n double productTotalAmount=0.0;\n double discountAmount = 0.0;\n// double taxAmountOfTerms=0d;\n if (!gReceipt.isIsExpenseType() && gReceipt.isNormalInvoice()) {\n// Set<GoodsReceiptDetail> goodsReceiptDetails = gReceipt.getRows();\n for (GoodsReceiptDetail goodsReceiptDetail : goodsReceiptDetails) {\n double rowsubtotal = 0d;\n double invquantity = goodsReceiptDetail.getInventory().getQuantity();\n if (goodsReceiptDetail.getGoodsReceipt().isGstIncluded()) {\n rowsubtotal = goodsReceiptDetail.getRateincludegst() * invquantity;\n } else {\n rowsubtotal = goodsReceiptDetail.getRate() * invquantity;\n }\n /**\n * Getting the Discount Value(Amount) and\n * subtracting from subtotal.\n */\n Discount disc = goodsReceiptDetail.getDiscount();\n if (disc != null) {\n discountAmount += disc.getDiscountValue();\n }\n productTotalAmount += authHandler.round(rowsubtotal, companyid);\n if(isLineLevelTermFlag){\n // Append OtherTermNonTaxableAmount for rach row.\n rowOtherTermNonTaxableAmount += goodsReceiptDetail.getOtherTermNonTaxableAmount();\n rowTaxAmt += goodsReceiptDetail.getRowTermAmount();\n rowTaxAmt += goodsReceiptDetail.getRowTermTaxAmount();\n// taxAmountOfTerms += goodsReceiptDetail.getRowTermTaxAmount();\n }else if (goodsReceiptDetail.getTax() != null) {\n includeprotax = true;\n taxname += goodsReceiptDetail.getTax().getName() + \", \";\n rowTaxAmt += goodsReceiptDetail.getRowTaxAmount();\n// rowTaxAmt += goodsReceiptDetail.getRowTermTaxAmount();\n// taxAmountOfTerms += goodsReceiptDetail.getRowTermTaxAmount();\n }\n }\n } else if (gReceipt.isIsExpenseType()) {\n Set<ExpenseGRDetail> expenseGRDetails = gReceipt.getExpenserows();\n for (ExpenseGRDetail expGReceiptDetail : expenseGRDetails) {\n if (!expGReceiptDetail.getGoodsReceipt().isGstIncluded()) {\n productTotalAmount += expGReceiptDetail.isIsdebit() ? expGReceiptDetail.getRate() : -(expGReceiptDetail.getRate());\n } else {\n productTotalAmount += expGReceiptDetail.isIsdebit() ? expGReceiptDetail.getRate() : -(expGReceiptDetail.getRate());\n // productTotalAmount +=expGReceiptDetail.getRate();\n }\n /**\n * Getting the Discount Value(Amount) and\n * subtracting from subtotal.(ERP-38123)\n */\n Discount disc = expGReceiptDetail.getDiscount();\n if (disc != null) {\n if (expGReceiptDetail.isIsdebit()) {\n discountAmount += disc.getDiscountValue();\n } else {\n discountAmount -= disc.getDiscountValue();\n }\n }\n// System.out.println(expGReceiptDetail.getGoodsReceipt().getGoodsReceiptNumber());\n if (expGReceiptDetail.getTax() != null) {\n includeprotax = true;\n taxname += expGReceiptDetail.getTax().getName() + \", \";\n rowTaxAmt += expGReceiptDetail.isIsdebit()?expGReceiptDetail.getRowTaxAmount():-(expGReceiptDetail.getRowTaxAmount());// SDP- 4676 PO/PI Expense type records to show tax amount in report\n }\n }\n }\n obj.put(\"productTotalAmount\", productTotalAmount); \n double termTaxAmount = 0d;\n double termAmountInBase = 0d;\n double termAmount = 0d;\n List receiptTermMapList = kwlCommonTablesDAOObj.getSummationOfTermAmtAndTermTaxAmt(Constants.receipttermsmap, invid);\n if(receiptTermMapList != null && !receiptTermMapList.isEmpty()){\n Iterator termItr = receiptTermMapList.iterator();\n while (termItr.hasNext()) {\n Object[] termObj = (Object[]) termItr.next();\n /* \n * [0] : Sum of termamount \n * [1] : Sum of termamountinbase \n * [2] : Sum of termTaxamount \n * [3] : Sum of termTaxamountinbase \n * [4] : Sum of termamountexcludingtax \n * [5] : Sum of termamountexcludingtaxinbase\n */ \n if (gReceipt.isGstIncluded()) {\n if(termObj[4] != null && termObj[5] != null){\n termAmount += authHandler.round((Double) termObj[4],companyid);\n termAmountInBase += authHandler.round((Double) termObj[5],companyid);\n }\n } else {\n if(termObj[0] != null && termObj[1] != null){\n termAmount += authHandler.round((Double) termObj[0],companyid);\n termAmountInBase += authHandler.round((Double) termObj[1],companyid);\n }\n }\n if(termObj[2] != null){\n termTaxAmount += authHandler.round((Double) termObj[2],companyid);\n }\n }\n }\n \n taxAmt += rowTaxAmt + termTaxAmount;\n if (gReceipt.isGstIncluded()) {\n subtotal = productTotalAmount - discountAmount - rowTaxAmt;\n } else {\n subtotal = productTotalAmount - discountAmount;\n }\n obj.put(\"subtotal\", subtotal);\n obj.put(\"termamount\", termAmount);\n obj.put(\"termamountinBase\", termAmountInBase);\n obj.put(\"amountBeforeTax\", authHandler.formattingDecimalForAmount((subtotal+termAmount),companyid));\n double tdsAmountandOtherCharges = 0.0;\n if (Constants.indian_country_id == countryid) { // For india Company\n tdsAmountandOtherCharges = gReceipt.getTdsAmount() - rowOtherTermNonTaxableAmount;\n obj.put(\"totalAmountWithTDS\", authHandler.round(invoiceOriginalAmt + gReceipt.getTdsAmount(), companyid)); // Amount with TDS\n }\n// obj.put(\"amountbeforegst\", authHandler.round(invoiceOriginalAmt-taxAmt-termAmount+tdsAmountandOtherCharges, 2)); // Amount before both kind of tax row level or transaction level\n obj.put(\"amountbeforegst\", gReceipt.getExcludingGstAmount());\n obj.put(GoodsReceiptCMNConstants.TAXAMOUNT, taxAmt);\n\n //*** For GTA - Start***//\n if (Constants.indian_country_id == countryid && gReceipt.isGtaapplicable() && !gReceipt.isIsExciseInvoice() && taxAmt > 0) { // exclude service tax from totaltax on grid\n obj.put(\"amountbeforegst\", authHandler.round(invoiceOriginalAmt - (taxAmt) - termAmount + tdsAmountandOtherCharges, companyid)); // Amount before both kind of tax row level or transaction level\n }\n //*** For GTA - END***//\n\n if (isLineLevelTermFlag) {\n // If LineLevelTerm is applicable then add the value in JSON Object.\n obj.put(Constants.OtherTermNonTaxableAmount, rowOtherTermNonTaxableAmount);\n }\n// obj.put(\"taxamountinbase\", accCurrencyDAOobj.getCurrencyToBaseAmount(request, taxAmt, currencyid, creationDate, externalCurrencyRate).getEntityList().get(0));\n obj.put(\"taxamountinbase\", gReceipt.getTaxamountinbase());\n// obj.put(\"taxamountsaved\", gReceipt.getTaxamount());\n// obj.put(\"taxamountinbasesaved\", gReceipt.getTaxamountinbase());\n// obj.put(\"excludinggstamountsaved\", gReceipt.getExcludingGstAmount());\n// obj.put(\"excludinggstamountinbasesaved\", gReceipt.getExcludingGstAmountInBase());\n if (includeprotax) {\n obj.put(GoodsReceiptCMNConstants.TAXNAME, taxname.substring(0, taxname.length() > 1 ? taxname.length() - 2 : taxname.length()));\n } else {\n obj.put(GoodsReceiptCMNConstants.TAXNAME, gReceipt.getTax() == null ? \"\" : gReceipt.getTax().getName());\n }\n\n obj.put(\"includeprotax\", includeprotax);\n obj.put(GoodsReceiptCMNConstants.AMOUNT, authHandler.round((Double)invoiceOriginalAmt,companyid)); //actual invoice amount\n obj.put(GoodsReceiptCMNConstants.AMOUNTINBASE, invoiceTotalAmountInBase);\n obj.put(GoodsReceiptCMNConstants.ACCOUNTNAMES, (String) ll.get(2));\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE1, amountdue1);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE2, amountdue2);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE3, amountdue3);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE4, amountdue4);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE5, amountdue5);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE6, amountdue6);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE7, amountdue7);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE8, amountdue8);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE9, amountdue9);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE10, amountdue10);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE11, amountdue11);\n// obj.put(GoodsReceiptCMNConstants.ACCRUEDBALANCE, accruedbalance);\n obj.put(GoodsReceiptCMNConstants.TYPE, \"Purchase Invoice\");\n obj.put(GoodsReceiptCMNConstants.DEDUCTDISCOUNT, deductDiscount);\n\n KwlReturnObject custumObjresult = null;\n if (gReceipt.isNormalInvoice()) {\n// boolean isExport = (request.get(\"isExport\") == null) ? false : (Boolean) request.get(\"isExport\");\n Map<String, Object> variableMap = new HashMap<String, Object>();\n custumObjresult = accountingHandlerDAOobj.getObject(AccJECustomData.class.getName(), je.getID());\n replaceFieldMap = new HashMap<String, String>();\n if (custumObjresult != null && custumObjresult.getEntityList().size() > 0) {\n AccJECustomData jeDetailCustom = (AccJECustomData) custumObjresult.getEntityList().get(0);\n if (jeDetailCustom != null) {\n AccountingManager.setCustomColumnValues(jeDetailCustom, FieldMap, replaceFieldMap, variableMap);\n JSONObject params = new JSONObject();\n params.put(\"companyid\", companyid);\n params.put(Constants.userdf,userDateFormat);\n if (!isExport) {\n isExport = (request.get(\"isAgedPayables\") == null) ? false : (Boolean) request.get(\"isAgedPayables\");\n }\n params.put(\"isExport\", isExport);\n// if (request.containsKey(\"browsertz\") && request.get(\"browsertz\") != null) {\n// params.put(\"browsertz\", request.get(\"browsertz\").toString());\n// }\n fieldDataManagercntrl.addCustomData(variableMap, customFieldMap, customDateFieldMap, obj, params);\n }\n }\n \n \n if (booleanAged ) \n {\n if (!request.containsKey(\"isAgedPayables\") || !(Boolean) request.get(\"isAgedPayables\")) {\n accGoodsReceiptServiceDAO.getCustmDataForPurchaseInvoice(request, jArr, companyid, replaceFieldMap, customFieldMap, customDateFieldMap, FieldMap, replaceFieldMapRows, customFieldMapRows, customDateFieldMapRows, fieldMapRows);\n //getPurchaseInvoiceCustomField(gReceipt,goodsReceiptDetails,fieldMapRows,replaceFieldMapRows,customFieldMapRows,customDateFieldMapRows,obj,userDateFormat);\n }\n }\n }\n RepeatedInvoices repeatedInvoice = gReceipt.getRepeateInvoice();\n obj.put(\"isRepeated\", repeatedInvoice == null ? false : true);\n if (repeatedInvoice != null) {\n obj.put(\"repeateid\", repeatedInvoice.getId());\n obj.put(\"interval\", repeatedInvoice.getIntervalUnit());\n obj.put(\"intervalType\", repeatedInvoice.getIntervalType());\n SimpleDateFormat sdf = new SimpleDateFormat(\"MMMM d, yyyy hh:mm:ss aa\");\n // sdf.setTimeZone(TimeZone.getTimeZone(\"GMT\"+sessionHandlerImpl.getTimeZoneDifference(request)));\n obj.put(\"NoOfpost\", repeatedInvoice.getNoOfInvoicespost());\n obj.put(\"NoOfRemainpost\", repeatedInvoice.getNoOfRemainInvoicespost());\n obj.put(\"startDate\", sdf.format(repeatedInvoice.getStartDate()));\n obj.put(\"nextDate\", sdf.format(repeatedInvoice.getNextDate()));\n obj.put(\"isactivate\", repeatedInvoice.isIsActivate());\n obj.put(\"ispendingapproval\", repeatedInvoice.isIspendingapproval());\n obj.put(\"approver\", repeatedInvoice.getApprover());\n obj.put(\"expireDate\", repeatedInvoice.getExpireDate() == null ? \"\" : sdf.format(repeatedInvoice.getExpireDate()));\n obj.put(\"advancedays\", repeatedInvoice.getAdvanceNoofdays()== 0 ? 0 : repeatedInvoice.getAdvanceNoofdays());\n obj.put(\"advanceDate\", repeatedInvoice.getInvoiceAdvanceCreationDate()== null ? \"\" : sdf.format(repeatedInvoice.getInvoiceAdvanceCreationDate()));\n request.put(\"parentInvoiceId\", gReceipt.getID());\n KwlReturnObject details = accGoodsReceiptobj.getRepeateVendorInvoicesDetails(request);\n List detailsList = details.getEntityList();\n obj.put(\"childCount\", detailsList.size());\n }\n \n\n if (gReceipt.isIsOpeningBalenceInvoice()) {\n Map<String, Object> variableMap = new HashMap<String, Object>();\n custumObjresult = accountingHandlerDAOobj.getObject(OpeningBalanceVendorInvoiceCustomData.class.getName(), gReceipt.getID());\n replaceFieldMap = new HashMap<String, String>();\n if (custumObjresult != null && custumObjresult.getEntityList().size() > 0) {\n OpeningBalanceVendorInvoiceCustomData openingBalanceVendorInvoiceCustomData = (OpeningBalanceVendorInvoiceCustomData) custumObjresult.getEntityList().get(0);\n if (openingBalanceVendorInvoiceCustomData != null) {\n AccountingManager.setCustomColumnValues(openingBalanceVendorInvoiceCustomData, FieldMap, replaceFieldMap, variableMap);\n DateFormat defaultDateFormat=new SimpleDateFormat(Constants.MMMMdyyyy);\n Date dateFromDB=null;\n for (Map.Entry<String, Object> varEntry : variableMap.entrySet()) {\n String coldata = varEntry.getValue() != null ? varEntry.getValue().toString() : \"\";\n if (customFieldMap.containsKey(varEntry.getKey())) {\n KwlReturnObject rdresult = accountingHandlerDAOobj.getObject(FieldComboData.class.getName(), coldata);\n FieldComboData fieldComboData = (FieldComboData) rdresult.getEntityList().get(0);\n if (fieldComboData != null) {\n obj.put(varEntry.getKey(), fieldComboData.getValue() != null ? fieldComboData.getValue() : \"\");\n }\n } else if (customDateFieldMap.containsKey(varEntry.getKey())) {\n DateFormat sdf = userDateFormat != null?userDateFormat:new SimpleDateFormat(\"yyyy-MM-dd\");\n dateFromDB=defaultDateFormat.parse(coldata);\n coldata=sdf.format(dateFromDB);\n obj.put(varEntry.getKey(), coldata);\n } else {\n if (!StringUtil.isNullOrEmpty(coldata)) {\n obj.put(varEntry.getKey(), coldata);\n }\n }\n }\n }\n }\n }\n try { // check if credit/cash purchase is allowed to edit\n // isAllowToEdit= if credit/cash purchase created using auto generate GR option and credit/cash purchase/GR hasn't been forward linked in any document\n result = accGoodsReceiptobj.getAutoGRFromInvoice(gReceipt.getID(), companyid);\n list = result.getEntityList();\n if (list != null && !list.isEmpty()) { // SI/CS created with auto generate DO option\n boolean isDOLinkedInPR = false;\n String groID = \"\";\n Object groid = list.get(0);\n groID = (String) groid;\n KwlReturnObject resultPR = accGoodsReceiptobj.getPurchaseReturnLinkedWithGR(groID, companyid);\n List listPR = resultPR.getEntityList();\n if (!listPR.isEmpty()) { // is DO forward linked in any SR\n isDOLinkedInPR = true;\n }\n if (!isDOLinkedInPR && obj.optDouble(GoodsReceiptCMNConstants.AMOUNTDUEINBASE, 0.0) == obj.optDouble(GoodsReceiptCMNConstants.AMOUNTINBASE, 0.0) && !gReceipt.isCashtransaction()) {\n obj.put(Constants.IS_INVOICE_ALLOW_TO_EDIT, true);\n } else if (gReceipt.isCashtransaction() && !isDOLinkedInPR) {\n obj.put(Constants.IS_INVOICE_ALLOW_TO_EDIT, true);\n } else {\n obj.put(Constants.IS_INVOICE_ALLOW_TO_EDIT, false);\n }\n } else {\n obj.put(Constants.IS_INVOICE_ALLOW_TO_EDIT, false);\n }\n if (!StringUtil.isNullOrEmpty(landedInvoice)) {\n obj.put(Constants.IS_INVOICE_ALLOW_TO_EDIT, false);\n }\n } catch (Exception ex) {\n Logger.getLogger(AccGoodsReceiptServiceImpl.class.getName()).log(Level.WARNING, ex.getMessage());\n obj.put(Constants.IS_INVOICE_ALLOW_TO_EDIT, false);\n }\n if (!(ignoreZero && authHandler.round(amountdue, companyid) <= 0)) {\n jArr.put(obj);\n }\n }\n }\n }\n } catch (Exception ex) {\n throw ServiceException.FAILURE(\"AccGoodsReceiptServiceHandler.getGoodsReceiptsJson : \" + ex.getMessage(), ex);\n }\n return jArr;\n }", "@Override\n\tpublic DataTablesResponseInfo getPurchaserequisition(Map<String, Object> map) {\n\t\tDataTablesResponseInfo info = new DataTablesResponseInfo();\n\t\tinfo.setData(purchaseDao.getPurchaserequisition(map));\n\t\treturn info;\n\t}", "private void initData() {\r\n allElements = new Vector<PageElement>();\r\n\r\n String className = Utility.getDisplayName(queryResult.getOutputEntity());\r\n List<AttributeInterface> attributes = Utility.getAttributeList(queryResult);\r\n int attributeSize = attributes.size();\r\n //int attributeLimitInDescStr = (attributeSize < 10) ? attributeSize : 10;\r\n\r\n Map<String, List<IRecord>> allRecords = queryResult.getRecords();\r\n serviceURLComboContents.add(\" All service URLs \");\r\n for (String url : allRecords.keySet()) {\r\n\r\n List<IRecord> recordList = allRecords.get(url);\r\n \r\n StringBuilder urlNameSize = new StringBuilder( url );\r\n urlNameSize = new StringBuilder( urlNameSize.substring(urlNameSize.indexOf(\"//\")+2));\r\n urlNameSize = new StringBuilder(urlNameSize.substring(0,urlNameSize.indexOf(\"/\")));\r\n urlNameSize.append(\" ( \" + recordList.size() + \" )\");\r\n serviceURLComboContents.add(urlNameSize.toString());\r\n Vector<PageElement> elements = new Vector<PageElement>();\r\n for (IRecord record : recordList) {\r\n StringBuffer descBuffer = new StringBuffer();\r\n for (int i = 0; i < attributeSize; i++) {\r\n Object value = record.getValueForAttribute(attributes.get(i));\r\n if (value != null) {\r\n if (i != 0) {\r\n descBuffer.append(',');\r\n }\r\n descBuffer.append(value);\r\n }\r\n }\r\n String description = descBuffer.toString();\r\n // if (description.length() > 150) {\r\n // //150 is allowable chars at 1024 resolution\r\n // description = description.substring(0, 150);\r\n // //To avoid clipping of attribute value in-between\r\n // int index = description.lastIndexOf(\",\");\r\n // description = description.substring(0, index);\r\n // }\r\n PageElement element = new PageElementImpl();\r\n element.setDisplayName(className + \"_\" + record.getRecordId().getId());\r\n element.setDescription(description);\r\n\r\n DataRow dataRow = new DataRow(record, queryResult.getOutputEntity());\r\n dataRow.setParent(parentDataRow);\r\n dataRow.setAssociation(queryAssociation);\r\n\r\n Vector recordListUserObject = new Vector();\r\n recordListUserObject.add(dataRow);\r\n recordListUserObject.add(record);\r\n\r\n element.setUserObject(recordListUserObject);\r\n\r\n allElements.add(element);\r\n elements.add(element);\r\n }\r\n URLSToResultRowMap.put(urlNameSize.toString(), elements);\r\n }\r\n }", "@SuppressLint(\"SetTextI18n\")\n private void processJsonData(String report)\n {\n try {\n JSONObject mainObject = new JSONObject(report);\n JSONArray reportArray = mainObject.optJSONArray(\"report\");\n\n JSONObject jsonIndex = reportArray.getJSONObject(0);\n JSONArray detailArray = jsonIndex.getJSONArray(\"detail\");\n JSONObject detailObject = detailArray.getJSONObject(0);\n\n if(!detailObject.getString(\"monthlyTaka\").equals(\"0\"))\n monthlyTaka = detailObject.getString(\"monthlyTaka\");\n else monthlyTaka = \"0\";\n\n if(!detailObject.getString(\"monthlyCost\").equals(\"0\"))\n monthlyCost = detailObject.getString(\"monthlyCost\");\n else monthlyCost = \"0\";\n\n if(!detailObject.getString(\"monthlyMeal\").equals(\"0\"))\n monthlyMeal = detailObject.getString(\"monthlyMeal\");\n else monthlyMeal = \"0\";\n\n if(!detailObject.getString(\"remaining\").equals(\"0\"))\n remain = detailObject.getString(\"remaining\");\n else remain = \"0\";\n\n if(!detailObject.getString(\"mealRate\").equals(\"0\"))\n mealRate = detailObject.getString(\"mealRate\");\n else mealRate = \"0\";\n\n String name,meal,taka,cost,status;\n\n for(int i=1;i<reportArray.length();i++)\n {\n int count=0;\n JSONObject index = reportArray.getJSONObject(i);\n JSONArray infoArray = index.getJSONArray(\"info\");\n while(count<infoArray.length())\n {\n JSONObject object = infoArray.getJSONObject(count);\n\n name = object.getString(\"name\");\n if(!object.getString(\"meal\").equals(\"null\"))\n meal = object.getString(\"meal\");\n else meal = \"0\";\n if(!object.getString(\"taka\").equals(\"null\"))\n taka = object.getString(\"taka\");\n else taka = \"0\";\n if(!object.getString(\"cost\").equals(\"null\"))\n cost = object.getString(\"cost\");\n else cost = \"0\";\n if(!object.getString(\"status\").equals(\"null\"))\n status = object.getString(\"status\");\n else status = \"0\";\n modelList.add(new CostModel(name,meal,taka,cost,status));\n count++;\n }\n }\n\n ReportAdapter adapter = new ReportAdapter(this, modelList, mealRate, sharedPreferenceData.getmyCurrentSession());\n listView.setAdapter(adapter);\n\n txtTotalTaka.setText(monthlyTaka);txtTotalMeal.setText(monthlyMeal);txtTotalCost.setText(monthlyCost);\n txtRemaining.setText(remain);txtMealRate.setText(mealRate+\" per meal\");\n\n }catch (JSONException e)\n {\n Log.d(\"Exception \",e.toString());\n }\n }", "@Test\n public void doTest() throws Exception {\n CougarManager cougarManager1 = CougarManager.getInstance();\n HttpCallBean getNewHttpCallBean1 = cougarManager1.getNewHttpCallBean(\"87.248.113.14\");\n cougarManager1 = cougarManager1;\n \n getNewHttpCallBean1.setOperationName(\"simpleMapOperation\");\n \n getNewHttpCallBean1.setServiceName(\"baseline\", \"cougarBaseline\");\n \n getNewHttpCallBean1.setVersion(\"v2\");\n // Set the post body to contain a simple map with a large volume of entries\n Map map2 = new HashMap();\n map2.put(\"RESTJSON\",\"{\\\"message\\\":\\n {\\\"simpleMap\\\": {\\n\\\"1\\\": \\\"Value for 1\\\",\\n\\\"2\\\": \\\"Value for 2\\\",\\n\\\"3\\\": \\\"Value for 3\\\",\\n\\\"4\\\": \\\"Value for 4\\\",\\n\\\"5\\\": \\\"Value for 5\\\",\\n\\\"6\\\": \\\"Value for 6\\\",\\n\\\"7\\\": \\\"Value for 7\\\",\\n\\\"8\\\": \\\"Value for 8\\\",\\n\\\"9\\\": \\\"Value for 9\\\",\\n\\\"10\\\": \\\"Value for 10\\\",\\n\\\"11\\\": \\\"Value for 11\\\",\\n\\\"12\\\": \\\"Value for 12\\\",\\n\\\"13\\\": \\\"Value for 13\\\",\\n\\\"14\\\": \\\"Value for 14\\\",\\n\\\"15\\\": \\\"Value for 15\\\",\\n\\\"16\\\": \\\"Value for 16\\\",\\n\\\"17\\\": \\\"Value for 17\\\",\\n\\\"18\\\": \\\"Value for 18\\\",\\n\\\"19\\\": \\\"Value for 19\\\",\\n\\\"20\\\": \\\"Value for 20\\\",\\n\\\"21\\\": \\\"Value for 21\\\",\\n\\\"22\\\": \\\"Value for 22\\\",\\n\\\"23\\\": \\\"Value for 23\\\",\\n\\\"24\\\": \\\"Value for 24\\\",\\n\\\"25\\\": \\\"Value for 25\\\",\\n\\\"26\\\": \\\"Value for 26\\\",\\n\\\"27\\\": \\\"Value for 27\\\",\\n\\\"28\\\": \\\"Value for 28\\\",\\n\\\"29\\\": \\\"Value for 29\\\",\\n\\\"30\\\": \\\"Value for 30\\\",\\n\\\"31\\\": \\\"Value for 31\\\",\\n\\\"32\\\": \\\"Value for 32\\\",\\n\\\"33\\\": \\\"Value for 33\\\",\\n\\\"34\\\": \\\"Value for 34\\\",\\n\\\"35\\\": \\\"Value for 35\\\",\\n\\\"36\\\": \\\"Value for 36\\\",\\n\\\"37\\\": \\\"Value for 37\\\",\\n\\\"38\\\": \\\"Value for 38\\\",\\n\\\"39\\\": \\\"Value for 39\\\",\\n\\\"40\\\": \\\"Value for 40\\\",\\n\\\"41\\\": \\\"Value for 41\\\",\\n\\\"42\\\": \\\"Value for 42\\\",\\n\\\"43\\\": \\\"Value for 43\\\",\\n\\\"44\\\": \\\"Value for 44\\\",\\n\\\"45\\\": \\\"Value for 45\\\",\\n\\\"46\\\": \\\"Value for 46\\\",\\n\\\"47\\\": \\\"Value for 47\\\",\\n\\\"48\\\": \\\"Value for 48\\\",\\n\\\"49\\\": \\\"Value for 49\\\",\\n\\\"50\\\": \\\"Value for 50\\\",\\n\\\"51\\\": \\\"Value for 51\\\",\\n\\\"52\\\": \\\"Value for 52\\\",\\n\\\"53\\\": \\\"Value for 53\\\",\\n\\\"54\\\": \\\"Value for 54\\\",\\n\\\"55\\\": \\\"Value for 55\\\",\\n\\\"56\\\": \\\"Value for 56\\\",\\n\\\"57\\\": \\\"Value for 57\\\",\\n\\\"58\\\": \\\"Value for 58\\\",\\n\\\"59\\\": \\\"Value for 59\\\",\\n\\\"60\\\": \\\"Value for 60\\\",\\n\\\"61\\\": \\\"Value for 61\\\",\\n\\\"62\\\": \\\"Value for 62\\\",\\n\\\"63\\\": \\\"Value for 63\\\",\\n\\\"64\\\": \\\"Value for 64\\\",\\n\\\"65\\\": \\\"Value for 65\\\",\\n\\\"66\\\": \\\"Value for 66\\\",\\n\\\"67\\\": \\\"Value for 67\\\",\\n\\\"68\\\": \\\"Value for 68\\\",\\n\\\"69\\\": \\\"Value for 69\\\",\\n\\\"70\\\": \\\"Value for 70\\\",\\n\\\"71\\\": \\\"Value for 71\\\",\\n\\\"72\\\": \\\"Value for 72\\\",\\n\\\"73\\\": \\\"Value for 73\\\",\\n\\\"74\\\": \\\"Value for 74\\\",\\n\\\"75\\\": \\\"Value for 75\\\",\\n\\\"76\\\": \\\"Value for 76\\\",\\n\\\"77\\\": \\\"Value for 77\\\",\\n\\\"78\\\": \\\"Value for 78\\\",\\n\\\"79\\\": \\\"Value for 79\\\",\\n\\\"80\\\": \\\"Value for 80\\\",\\n\\\"81\\\": \\\"Value for 81\\\",\\n\\\"82\\\": \\\"Value for 82\\\",\\n\\\"83\\\": \\\"Value for 83\\\",\\n\\\"84\\\": \\\"Value for 84\\\",\\n\\\"85\\\": \\\"Value for 85\\\",\\n\\\"86\\\": \\\"Value for 86\\\",\\n\\\"87\\\": \\\"Value for 87\\\",\\n\\\"88\\\": \\\"Value for 88\\\",\\n\\\"89\\\": \\\"Value for 89\\\",\\n\\\"90\\\": \\\"Value for 90\\\",\\n\\\"91\\\": \\\"Value for 91\\\",\\n\\\"92\\\": \\\"Value for 92\\\",\\n\\\"93\\\": \\\"Value for 93\\\",\\n\\\"94\\\": \\\"Value for 94\\\",\\n\\\"95\\\": \\\"Value for 95\\\",\\n\\\"96\\\": \\\"Value for 96\\\",\\n\\\"97\\\": \\\"Value for 97\\\",\\n\\\"98\\\": \\\"Value for 98\\\",\\n\\\"99\\\": \\\"Value for 99\\\",\\n\\\"100\\\": \\\"Value for 100\\\",\\n\\\"101\\\": \\\"Value for 101\\\",\\n\\\"102\\\": \\\"Value for 102\\\",\\n\\\"103\\\": \\\"Value for 103\\\",\\n\\\"104\\\": \\\"Value for 104\\\",\\n\\\"105\\\": \\\"Value for 105\\\",\\n\\\"106\\\": \\\"Value for 106\\\",\\n\\\"107\\\": \\\"Value for 107\\\",\\n\\\"108\\\": \\\"Value for 108\\\",\\n\\\"109\\\": \\\"Value for 109\\\",\\n\\\"110\\\": \\\"Value for 110\\\",\\n\\\"111\\\": \\\"Value for 111\\\",\\n\\\"112\\\": \\\"Value for 112\\\",\\n\\\"113\\\": \\\"Value for 113\\\",\\n\\\"114\\\": \\\"Value for 114\\\",\\n\\\"115\\\": \\\"Value for 115\\\",\\n\\\"116\\\": \\\"Value for 116\\\",\\n\\\"117\\\": \\\"Value for 117\\\",\\n\\\"118\\\": \\\"Value for 118\\\",\\n\\\"119\\\": \\\"Value for 119\\\",\\n\\\"120\\\": \\\"Value for 120\\\",\\n\\\"121\\\": \\\"Value for 121\\\",\\n\\\"122\\\": \\\"Value for 122\\\",\\n\\\"123\\\": \\\"Value for 123\\\",\\n\\\"124\\\": \\\"Value for 124\\\",\\n\\\"125\\\": \\\"Value for 125\\\",\\n\\\"126\\\": \\\"Value for 126\\\",\\n\\\"127\\\": \\\"Value for 127\\\",\\n\\\"128\\\": \\\"Value for 128\\\",\\n\\\"129\\\": \\\"Value for 129\\\",\\n\\\"130\\\": \\\"Value for 130\\\",\\n\\\"131\\\": \\\"Value for 131\\\",\\n\\\"132\\\": \\\"Value for 132\\\",\\n\\\"133\\\": \\\"Value for 133\\\",\\n\\\"134\\\": \\\"Value for 134\\\",\\n\\\"135\\\": \\\"Value for 135\\\",\\n\\\"136\\\": \\\"Value for 136\\\",\\n\\\"137\\\": \\\"Value for 137\\\",\\n\\\"138\\\": \\\"Value for 138\\\",\\n\\\"139\\\": \\\"Value for 139\\\",\\n\\\"140\\\": \\\"Value for 140\\\",\\n\\\"141\\\": \\\"Value for 141\\\",\\n\\\"142\\\": \\\"Value for 142\\\",\\n\\\"143\\\": \\\"Value for 143\\\",\\n\\\"144\\\": \\\"Value for 144\\\",\\n\\\"145\\\": \\\"Value for 145\\\",\\n\\\"146\\\": \\\"Value for 146\\\",\\n\\\"147\\\": \\\"Value for 147\\\",\\n\\\"148\\\": \\\"Value for 148\\\",\\n\\\"149\\\": \\\"Value for 149\\\",\\n\\\"150\\\": \\\"Value for 150\\\",\\n\\\"151\\\": \\\"Value for 151\\\",\\n\\\"152\\\": \\\"Value for 152\\\",\\n\\\"153\\\": \\\"Value for 153\\\",\\n\\\"154\\\": \\\"Value for 154\\\",\\n\\\"155\\\": \\\"Value for 155\\\",\\n\\\"156\\\": \\\"Value for 156\\\",\\n\\\"157\\\": \\\"Value for 157\\\",\\n\\\"158\\\": \\\"Value for 158\\\",\\n\\\"159\\\": \\\"Value for 159\\\",\\n\\\"160\\\": \\\"Value for 160\\\",\\n\\\"161\\\": \\\"Value for 161\\\",\\n\\\"162\\\": \\\"Value for 162\\\",\\n\\\"163\\\": \\\"Value for 163\\\",\\n\\\"164\\\": \\\"Value for 164\\\",\\n\\\"165\\\": \\\"Value for 165\\\",\\n\\\"166\\\": \\\"Value for 166\\\",\\n\\\"167\\\": \\\"Value for 167\\\",\\n\\\"168\\\": \\\"Value for 168\\\",\\n\\\"169\\\": \\\"Value for 169\\\",\\n\\\"170\\\": \\\"Value for 170\\\",\\n\\\"171\\\": \\\"Value for 171\\\",\\n\\\"172\\\": \\\"Value for 172\\\",\\n\\\"173\\\": \\\"Value for 173\\\",\\n\\\"174\\\": \\\"Value for 174\\\",\\n\\\"175\\\": \\\"Value for 175\\\",\\n\\\"176\\\": \\\"Value for 176\\\",\\n\\\"177\\\": \\\"Value for 177\\\",\\n\\\"178\\\": \\\"Value for 178\\\",\\n\\\"179\\\": \\\"Value for 179\\\",\\n\\\"180\\\": \\\"Value for 180\\\",\\n\\\"181\\\": \\\"Value for 181\\\",\\n\\\"182\\\": \\\"Value for 182\\\",\\n\\\"183\\\": \\\"Value for 183\\\",\\n\\\"184\\\": \\\"Value for 184\\\",\\n\\\"185\\\": \\\"Value for 185\\\",\\n\\\"186\\\": \\\"Value for 186\\\",\\n\\\"187\\\": \\\"Value for 187\\\",\\n\\\"188\\\": \\\"Value for 188\\\",\\n\\\"189\\\": \\\"Value for 189\\\",\\n\\\"190\\\": \\\"Value for 190\\\",\\n\\\"191\\\": \\\"Value for 191\\\",\\n\\\"192\\\": \\\"Value for 192\\\",\\n\\\"193\\\": \\\"Value for 193\\\",\\n\\\"194\\\": \\\"Value for 194\\\",\\n\\\"195\\\": \\\"Value for 195\\\",\\n\\\"196\\\": \\\"Value for 196\\\",\\n\\\"197\\\": \\\"Value for 197\\\",\\n\\\"198\\\": \\\"Value for 198\\\",\\n\\\"199\\\": \\\"Value for 199\\\",\\n\\\"200\\\": \\\"Value for 200\\\",\\n\\\"201\\\": \\\"Value for 201\\\",\\n\\\"202\\\": \\\"Value for 202\\\",\\n\\\"203\\\": \\\"Value for 203\\\",\\n\\\"204\\\": \\\"Value for 204\\\",\\n\\\"205\\\": \\\"Value for 205\\\",\\n\\\"206\\\": \\\"Value for 206\\\",\\n\\\"207\\\": \\\"Value for 207\\\",\\n\\\"208\\\": \\\"Value for 208\\\",\\n\\\"209\\\": \\\"Value for 209\\\",\\n\\\"210\\\": \\\"Value for 210\\\",\\n\\\"211\\\": \\\"Value for 211\\\",\\n\\\"212\\\": \\\"Value for 212\\\",\\n\\\"213\\\": \\\"Value for 213\\\",\\n\\\"214\\\": \\\"Value for 214\\\",\\n\\\"215\\\": \\\"Value for 215\\\",\\n\\\"216\\\": \\\"Value for 216\\\",\\n\\\"217\\\": \\\"Value for 217\\\",\\n\\\"218\\\": \\\"Value for 218\\\",\\n\\\"219\\\": \\\"Value for 219\\\",\\n\\\"220\\\": \\\"Value for 220\\\",\\n\\\"221\\\": \\\"Value for 221\\\",\\n\\\"222\\\": \\\"Value for 222\\\",\\n\\\"223\\\": \\\"Value for 223\\\",\\n\\\"224\\\": \\\"Value for 224\\\",\\n\\\"225\\\": \\\"Value for 225\\\",\\n\\\"226\\\": \\\"Value for 226\\\",\\n\\\"227\\\": \\\"Value for 227\\\",\\n\\\"228\\\": \\\"Value for 228\\\",\\n\\\"229\\\": \\\"Value for 229\\\",\\n\\\"230\\\": \\\"Value for 230\\\",\\n\\\"231\\\": \\\"Value for 231\\\",\\n\\\"232\\\": \\\"Value for 232\\\",\\n\\\"233\\\": \\\"Value for 233\\\",\\n\\\"234\\\": \\\"Value for 234\\\",\\n\\\"235\\\": \\\"Value for 235\\\",\\n\\\"236\\\": \\\"Value for 236\\\",\\n\\\"237\\\": \\\"Value for 237\\\",\\n\\\"238\\\": \\\"Value for 238\\\",\\n\\\"239\\\": \\\"Value for 239\\\",\\n\\\"240\\\": \\\"Value for 240\\\",\\n\\\"241\\\": \\\"Value for 241\\\",\\n\\\"242\\\": \\\"Value for 242\\\",\\n\\\"243\\\": \\\"Value for 243\\\",\\n\\\"244\\\": \\\"Value for 244\\\",\\n\\\"245\\\": \\\"Value for 245\\\",\\n\\\"246\\\": \\\"Value for 246\\\",\\n\\\"247\\\": \\\"Value for 247\\\",\\n\\\"248\\\": \\\"Value for 248\\\",\\n\\\"249\\\": \\\"Value for 249\\\",\\n\\\"250\\\": \\\"Value for 250\\\",\\n\\\"251\\\": \\\"Value for 251\\\",\\n\\\"252\\\": \\\"Value for 252\\\",\\n\\\"253\\\": \\\"Value for 253\\\",\\n\\\"254\\\": \\\"Value for 254\\\",\\n\\\"255\\\": \\\"Value for 255\\\",\\n\\\"256\\\": \\\"Value for 256\\\",\\n\\\"257\\\": \\\"Value for 257\\\",\\n\\\"258\\\": \\\"Value for 258\\\",\\n\\\"259\\\": \\\"Value for 259\\\",\\n\\\"260\\\": \\\"Value for 260\\\",\\n\\\"261\\\": \\\"Value for 261\\\",\\n\\\"262\\\": \\\"Value for 262\\\",\\n\\\"263\\\": \\\"Value for 263\\\",\\n\\\"264\\\": \\\"Value for 264\\\",\\n\\\"265\\\": \\\"Value for 265\\\",\\n\\\"266\\\": \\\"Value for 266\\\",\\n\\\"267\\\": \\\"Value for 267\\\",\\n\\\"268\\\": \\\"Value for 268\\\",\\n\\\"269\\\": \\\"Value for 269\\\",\\n\\\"270\\\": \\\"Value for 270\\\",\\n\\\"271\\\": \\\"Value for 271\\\",\\n\\\"272\\\": \\\"Value for 272\\\",\\n\\\"273\\\": \\\"Value for 273\\\",\\n\\\"274\\\": \\\"Value for 274\\\",\\n\\\"275\\\": \\\"Value for 275\\\",\\n\\\"276\\\": \\\"Value for 276\\\",\\n\\\"277\\\": \\\"Value for 277\\\",\\n\\\"278\\\": \\\"Value for 278\\\",\\n\\\"279\\\": \\\"Value for 279\\\",\\n\\\"280\\\": \\\"Value for 280\\\",\\n\\\"281\\\": \\\"Value for 281\\\",\\n\\\"282\\\": \\\"Value for 282\\\",\\n\\\"283\\\": \\\"Value for 283\\\",\\n\\\"284\\\": \\\"Value for 284\\\",\\n\\\"285\\\": \\\"Value for 285\\\",\\n\\\"286\\\": \\\"Value for 286\\\",\\n\\\"287\\\": \\\"Value for 287\\\",\\n\\\"288\\\": \\\"Value for 288\\\",\\n\\\"289\\\": \\\"Value for 289\\\",\\n\\\"290\\\": \\\"Value for 290\\\",\\n\\\"291\\\": \\\"Value for 291\\\",\\n\\\"292\\\": \\\"Value for 292\\\",\\n\\\"293\\\": \\\"Value for 293\\\",\\n\\\"294\\\": \\\"Value for 294\\\",\\n\\\"295\\\": \\\"Value for 295\\\",\\n\\\"296\\\": \\\"Value for 296\\\",\\n\\\"297\\\": \\\"Value for 297\\\",\\n\\\"298\\\": \\\"Value for 298\\\",\\n\\\"299\\\": \\\"Value for 299\\\",\\n\\\"300\\\": \\\"Value for 300\\\",\\n\\\"301\\\": \\\"Value for 301\\\",\\n\\\"302\\\": \\\"Value for 302\\\",\\n\\\"303\\\": \\\"Value for 303\\\",\\n\\\"304\\\": \\\"Value for 304\\\",\\n\\\"305\\\": \\\"Value for 305\\\",\\n\\\"306\\\": \\\"Value for 306\\\",\\n\\\"307\\\": \\\"Value for 307\\\",\\n\\\"308\\\": \\\"Value for 308\\\",\\n\\\"309\\\": \\\"Value for 309\\\",\\n\\\"310\\\": \\\"Value for 310\\\",\\n\\\"311\\\": \\\"Value for 311\\\",\\n\\\"312\\\": \\\"Value for 312\\\",\\n\\\"313\\\": \\\"Value for 313\\\",\\n\\\"314\\\": \\\"Value for 314\\\",\\n\\\"315\\\": \\\"Value for 315\\\",\\n\\\"316\\\": \\\"Value for 316\\\",\\n\\\"317\\\": \\\"Value for 317\\\",\\n\\\"318\\\": \\\"Value for 318\\\",\\n\\\"319\\\": \\\"Value for 319\\\",\\n\\\"320\\\": \\\"Value for 320\\\",\\n\\\"321\\\": \\\"Value for 321\\\",\\n\\\"322\\\": \\\"Value for 322\\\",\\n\\\"323\\\": \\\"Value for 323\\\",\\n\\\"324\\\": \\\"Value for 324\\\",\\n\\\"325\\\": \\\"Value for 325\\\",\\n\\\"326\\\": \\\"Value for 326\\\",\\n\\\"327\\\": \\\"Value for 327\\\",\\n\\\"328\\\": \\\"Value for 328\\\",\\n\\\"329\\\": \\\"Value for 329\\\",\\n\\\"330\\\": \\\"Value for 330\\\",\\n\\\"331\\\": \\\"Value for 331\\\",\\n\\\"332\\\": \\\"Value for 332\\\",\\n\\\"333\\\": \\\"Value for 333\\\",\\n\\\"334\\\": \\\"Value for 334\\\",\\n\\\"335\\\": \\\"Value for 335\\\",\\n\\\"336\\\": \\\"Value for 336\\\",\\n\\\"337\\\": \\\"Value for 337\\\",\\n\\\"338\\\": \\\"Value for 338\\\",\\n\\\"339\\\": \\\"Value for 339\\\",\\n\\\"340\\\": \\\"Value for 340\\\",\\n\\\"341\\\": \\\"Value for 341\\\",\\n\\\"342\\\": \\\"Value for 342\\\",\\n\\\"343\\\": \\\"Value for 343\\\",\\n\\\"344\\\": \\\"Value for 344\\\",\\n\\\"345\\\": \\\"Value for 345\\\",\\n\\\"346\\\": \\\"Value for 346\\\",\\n\\\"347\\\": \\\"Value for 347\\\",\\n\\\"348\\\": \\\"Value for 348\\\",\\n\\\"349\\\": \\\"Value for 349\\\",\\n\\\"350\\\": \\\"Value for 350\\\",\\n\\\"351\\\": \\\"Value for 351\\\",\\n\\\"352\\\": \\\"Value for 352\\\",\\n\\\"353\\\": \\\"Value for 353\\\",\\n\\\"354\\\": \\\"Value for 354\\\",\\n\\\"355\\\": \\\"Value for 355\\\",\\n\\\"356\\\": \\\"Value for 356\\\",\\n\\\"357\\\": \\\"Value for 357\\\",\\n\\\"358\\\": \\\"Value for 358\\\",\\n\\\"359\\\": \\\"Value for 359\\\",\\n\\\"360\\\": \\\"Value for 360\\\",\\n\\\"361\\\": \\\"Value for 361\\\",\\n\\\"362\\\": \\\"Value for 362\\\",\\n\\\"363\\\": \\\"Value for 363\\\",\\n\\\"364\\\": \\\"Value for 364\\\",\\n\\\"365\\\": \\\"Value for 365\\\",\\n\\\"366\\\": \\\"Value for 366\\\",\\n\\\"367\\\": \\\"Value for 367\\\",\\n\\\"368\\\": \\\"Value for 368\\\",\\n\\\"369\\\": \\\"Value for 369\\\",\\n\\\"370\\\": \\\"Value for 370\\\",\\n\\\"371\\\": \\\"Value for 371\\\",\\n\\\"372\\\": \\\"Value for 372\\\",\\n\\\"373\\\": \\\"Value for 373\\\",\\n\\\"374\\\": \\\"Value for 374\\\",\\n\\\"375\\\": \\\"Value for 375\\\",\\n\\\"376\\\": \\\"Value for 376\\\",\\n\\\"377\\\": \\\"Value for 377\\\",\\n\\\"378\\\": \\\"Value for 378\\\",\\n\\\"379\\\": \\\"Value for 379\\\",\\n\\\"380\\\": \\\"Value for 380\\\",\\n\\\"381\\\": \\\"Value for 381\\\",\\n\\\"382\\\": \\\"Value for 382\\\",\\n\\\"383\\\": \\\"Value for 383\\\",\\n\\\"384\\\": \\\"Value for 384\\\",\\n\\\"385\\\": \\\"Value for 385\\\",\\n\\\"386\\\": \\\"Value for 386\\\",\\n\\\"387\\\": \\\"Value for 387\\\",\\n\\\"388\\\": \\\"Value for 388\\\",\\n\\\"389\\\": \\\"Value for 389\\\",\\n\\\"390\\\": \\\"Value for 390\\\",\\n\\\"391\\\": \\\"Value for 391\\\",\\n\\\"392\\\": \\\"Value for 392\\\",\\n\\\"393\\\": \\\"Value for 393\\\",\\n\\\"394\\\": \\\"Value for 394\\\",\\n\\\"395\\\": \\\"Value for 395\\\",\\n\\\"396\\\": \\\"Value for 396\\\",\\n\\\"397\\\": \\\"Value for 397\\\",\\n\\\"398\\\": \\\"Value for 398\\\",\\n\\\"399\\\": \\\"Value for 399\\\",\\n\\\"400\\\": \\\"Value for 400\\\",\\n\\\"401\\\": \\\"Value for 401\\\",\\n\\\"402\\\": \\\"Value for 402\\\",\\n\\\"403\\\": \\\"Value for 403\\\",\\n\\\"404\\\": \\\"Value for 404\\\",\\n\\\"405\\\": \\\"Value for 405\\\",\\n\\\"406\\\": \\\"Value for 406\\\",\\n\\\"407\\\": \\\"Value for 407\\\",\\n\\\"408\\\": \\\"Value for 408\\\",\\n\\\"409\\\": \\\"Value for 409\\\",\\n\\\"410\\\": \\\"Value for 410\\\",\\n\\\"411\\\": \\\"Value for 411\\\",\\n\\\"412\\\": \\\"Value for 412\\\",\\n\\\"413\\\": \\\"Value for 413\\\",\\n\\\"414\\\": \\\"Value for 414\\\",\\n\\\"415\\\": \\\"Value for 415\\\",\\n\\\"416\\\": \\\"Value for 416\\\",\\n\\\"417\\\": \\\"Value for 417\\\",\\n\\\"418\\\": \\\"Value for 418\\\",\\n\\\"419\\\": \\\"Value for 419\\\",\\n\\\"420\\\": \\\"Value for 420\\\",\\n\\\"421\\\": \\\"Value for 421\\\",\\n\\\"422\\\": \\\"Value for 422\\\",\\n\\\"423\\\": \\\"Value for 423\\\",\\n\\\"424\\\": \\\"Value for 424\\\",\\n\\\"425\\\": \\\"Value for 425\\\",\\n\\\"426\\\": \\\"Value for 426\\\",\\n\\\"427\\\": \\\"Value for 427\\\",\\n\\\"428\\\": \\\"Value for 428\\\",\\n\\\"429\\\": \\\"Value for 429\\\",\\n\\\"430\\\": \\\"Value for 430\\\",\\n\\\"431\\\": \\\"Value for 431\\\",\\n\\\"432\\\": \\\"Value for 432\\\",\\n\\\"433\\\": \\\"Value for 433\\\",\\n\\\"434\\\": \\\"Value for 434\\\",\\n\\\"435\\\": \\\"Value for 435\\\",\\n\\\"436\\\": \\\"Value for 436\\\",\\n\\\"437\\\": \\\"Value for 437\\\",\\n\\\"438\\\": \\\"Value for 438\\\",\\n\\\"439\\\": \\\"Value for 439\\\",\\n\\\"440\\\": \\\"Value for 440\\\",\\n\\\"441\\\": \\\"Value for 441\\\",\\n\\\"442\\\": \\\"Value for 442\\\",\\n\\\"443\\\": \\\"Value for 443\\\",\\n\\\"444\\\": \\\"Value for 444\\\",\\n\\\"445\\\": \\\"Value for 445\\\",\\n\\\"446\\\": \\\"Value for 446\\\",\\n\\\"447\\\": \\\"Value for 447\\\",\\n\\\"448\\\": \\\"Value for 448\\\",\\n\\\"449\\\": \\\"Value for 449\\\",\\n\\\"450\\\": \\\"Value for 450\\\",\\n\\\"451\\\": \\\"Value for 451\\\",\\n\\\"452\\\": \\\"Value for 452\\\",\\n\\\"453\\\": \\\"Value for 453\\\",\\n\\\"454\\\": \\\"Value for 454\\\",\\n\\\"455\\\": \\\"Value for 455\\\",\\n\\\"456\\\": \\\"Value for 456\\\",\\n\\\"457\\\": \\\"Value for 457\\\",\\n\\\"458\\\": \\\"Value for 458\\\",\\n\\\"459\\\": \\\"Value for 459\\\",\\n\\\"460\\\": \\\"Value for 460\\\",\\n\\\"461\\\": \\\"Value for 461\\\",\\n\\\"462\\\": \\\"Value for 462\\\",\\n\\\"463\\\": \\\"Value for 463\\\",\\n\\\"464\\\": \\\"Value for 464\\\",\\n\\\"465\\\": \\\"Value for 465\\\",\\n\\\"466\\\": \\\"Value for 466\\\",\\n\\\"467\\\": \\\"Value for 467\\\",\\n\\\"468\\\": \\\"Value for 468\\\",\\n\\\"469\\\": \\\"Value for 469\\\",\\n\\\"470\\\": \\\"Value for 470\\\",\\n\\\"471\\\": \\\"Value for 471\\\",\\n\\\"472\\\": \\\"Value for 472\\\",\\n\\\"473\\\": \\\"Value for 473\\\",\\n\\\"474\\\": \\\"Value for 474\\\",\\n\\\"475\\\": \\\"Value for 475\\\",\\n\\\"476\\\": \\\"Value for 476\\\",\\n\\\"477\\\": \\\"Value for 477\\\",\\n\\\"478\\\": \\\"Value for 478\\\",\\n\\\"479\\\": \\\"Value for 479\\\",\\n\\\"480\\\": \\\"Value for 480\\\",\\n\\\"481\\\": \\\"Value for 481\\\",\\n\\\"482\\\": \\\"Value for 482\\\",\\n\\\"483\\\": \\\"Value for 483\\\",\\n\\\"484\\\": \\\"Value for 484\\\",\\n\\\"485\\\": \\\"Value for 485\\\",\\n\\\"486\\\": \\\"Value for 486\\\",\\n\\\"487\\\": \\\"Value for 487\\\",\\n\\\"488\\\": \\\"Value for 488\\\",\\n\\\"489\\\": \\\"Value for 489\\\",\\n\\\"490\\\": \\\"Value for 490\\\",\\n\\\"491\\\": \\\"Value for 491\\\",\\n\\\"492\\\": \\\"Value for 492\\\",\\n\\\"493\\\": \\\"Value for 493\\\",\\n\\\"494\\\": \\\"Value for 494\\\",\\n\\\"495\\\": \\\"Value for 495\\\",\\n\\\"496\\\": \\\"Value for 496\\\",\\n\\\"497\\\": \\\"Value for 497\\\",\\n\\\"498\\\": \\\"Value for 498\\\",\\n\\\"499\\\": \\\"Value for 499\\\",\\n\\\"500\\\": \\\"Value for 500\\\"\\n}}}\");\n getNewHttpCallBean1.setPostQueryObjects(map2);\n // Get current time for getting log entries later\n\n Timestamp getTimeAsTimeStamp7 = new Timestamp(System.currentTimeMillis());\n // Make JSON call to the operation requesting an XML response\n cougarManager1.makeRestCougarHTTPCall(getNewHttpCallBean1, com.betfair.testing.utils.cougar.enums.CougarMessageProtocolRequestTypeEnum.RESTJSON, com.betfair.testing.utils.cougar.enums.CougarMessageContentTypeEnum.XML);\n // Make JSON call to the operation requesting a JSON response\n cougarManager1.makeRestCougarHTTPCall(getNewHttpCallBean1, com.betfair.testing.utils.cougar.enums.CougarMessageProtocolRequestTypeEnum.RESTJSON, com.betfair.testing.utils.cougar.enums.CougarMessageContentTypeEnum.JSON);\n // Create the expected response as an XML document\n XMLHelpers xMLHelpers4 = new XMLHelpers();\n Document createAsDocument10 = xMLHelpers4.getXMLObjectFromString(\"<SimpleMapOperationResponse><SimpleMapOperationResponseObject><responseMap><entry key=\\\"1\\\"><String>Value for 1</String></entry><entry key=\\\"10\\\"><String>Value for 10</String></entry><entry key=\\\"100\\\"><String>Value for 100</String></entry><entry key=\\\"101\\\"><String>Value for 101</String></entry><entry key=\\\"102\\\"><String>Value for 102</String></entry><entry key=\\\"103\\\"><String>Value for 103</String></entry><entry key=\\\"104\\\"><String>Value for 104</String></entry><entry key=\\\"105\\\"><String>Value for 105</String></entry><entry key=\\\"106\\\"><String>Value for 106</String></entry><entry key=\\\"107\\\"><String>Value for 107</String></entry><entry key=\\\"108\\\"><String>Value for 108</String></entry><entry key=\\\"109\\\"><String>Value for 109</String></entry><entry key=\\\"11\\\"><String>Value for 11</String></entry><entry key=\\\"110\\\"><String>Value for 110</String></entry><entry key=\\\"111\\\"><String>Value for 111</String></entry><entry key=\\\"112\\\"><String>Value for 112</String></entry><entry key=\\\"113\\\"><String>Value for 113</String></entry><entry key=\\\"114\\\"><String>Value for 114</String></entry><entry key=\\\"115\\\"><String>Value for 115</String></entry><entry key=\\\"116\\\"><String>Value for 116</String></entry><entry key=\\\"117\\\"><String>Value for 117</String></entry><entry key=\\\"118\\\"><String>Value for 118</String></entry><entry key=\\\"119\\\"><String>Value for 119</String></entry><entry key=\\\"12\\\"><String>Value for 12</String></entry><entry key=\\\"120\\\"><String>Value for 120</String></entry><entry key=\\\"121\\\"><String>Value for 121</String></entry><entry key=\\\"122\\\"><String>Value for 122</String></entry><entry key=\\\"123\\\"><String>Value for 123</String></entry><entry key=\\\"124\\\"><String>Value for 124</String></entry><entry key=\\\"125\\\"><String>Value for 125</String></entry><entry key=\\\"126\\\"><String>Value for 126</String></entry><entry key=\\\"127\\\"><String>Value for 127</String></entry><entry key=\\\"128\\\"><String>Value for 128</String></entry><entry key=\\\"129\\\"><String>Value for 129</String></entry><entry key=\\\"13\\\"><String>Value for 13</String></entry><entry key=\\\"130\\\"><String>Value for 130</String></entry><entry key=\\\"131\\\"><String>Value for 131</String></entry><entry key=\\\"132\\\"><String>Value for 132</String></entry><entry key=\\\"133\\\"><String>Value for 133</String></entry><entry key=\\\"134\\\"><String>Value for 134</String></entry><entry key=\\\"135\\\"><String>Value for 135</String></entry><entry key=\\\"136\\\"><String>Value for 136</String></entry><entry key=\\\"137\\\"><String>Value for 137</String></entry><entry key=\\\"138\\\"><String>Value for 138</String></entry><entry key=\\\"139\\\"><String>Value for 139</String></entry><entry key=\\\"14\\\"><String>Value for 14</String></entry><entry key=\\\"140\\\"><String>Value for 140</String></entry><entry key=\\\"141\\\"><String>Value for 141</String></entry><entry key=\\\"142\\\"><String>Value for 142</String></entry><entry key=\\\"143\\\"><String>Value for 143</String></entry><entry key=\\\"144\\\"><String>Value for 144</String></entry><entry key=\\\"145\\\"><String>Value for 145</String></entry><entry key=\\\"146\\\"><String>Value for 146</String></entry><entry key=\\\"147\\\"><String>Value for 147</String></entry><entry key=\\\"148\\\"><String>Value for 148</String></entry><entry key=\\\"149\\\"><String>Value for 149</String></entry><entry key=\\\"15\\\"><String>Value for 15</String></entry><entry key=\\\"150\\\"><String>Value for 150</String></entry><entry key=\\\"151\\\"><String>Value for 151</String></entry><entry key=\\\"152\\\"><String>Value for 152</String></entry><entry key=\\\"153\\\"><String>Value for 153</String></entry><entry key=\\\"154\\\"><String>Value for 154</String></entry><entry key=\\\"155\\\"><String>Value for 155</String></entry><entry key=\\\"156\\\"><String>Value for 156</String></entry><entry key=\\\"157\\\"><String>Value for 157</String></entry><entry key=\\\"158\\\"><String>Value for 158</String></entry><entry key=\\\"159\\\"><String>Value for 159</String></entry><entry key=\\\"16\\\"><String>Value for 16</String></entry><entry key=\\\"160\\\"><String>Value for 160</String></entry><entry key=\\\"161\\\"><String>Value for 161</String></entry><entry key=\\\"162\\\"><String>Value for 162</String></entry><entry key=\\\"163\\\"><String>Value for 163</String></entry><entry key=\\\"164\\\"><String>Value for 164</String></entry><entry key=\\\"165\\\"><String>Value for 165</String></entry><entry key=\\\"166\\\"><String>Value for 166</String></entry><entry key=\\\"167\\\"><String>Value for 167</String></entry><entry key=\\\"168\\\"><String>Value for 168</String></entry><entry key=\\\"169\\\"><String>Value for 169</String></entry><entry key=\\\"17\\\"><String>Value for 17</String></entry><entry key=\\\"170\\\"><String>Value for 170</String></entry><entry key=\\\"171\\\"><String>Value for 171</String></entry><entry key=\\\"172\\\"><String>Value for 172</String></entry><entry key=\\\"173\\\"><String>Value for 173</String></entry><entry key=\\\"174\\\"><String>Value for 174</String></entry><entry key=\\\"175\\\"><String>Value for 175</String></entry><entry key=\\\"176\\\"><String>Value for 176</String></entry><entry key=\\\"177\\\"><String>Value for 177</String></entry><entry key=\\\"178\\\"><String>Value for 178</String></entry><entry key=\\\"179\\\"><String>Value for 179</String></entry><entry key=\\\"18\\\"><String>Value for 18</String></entry><entry key=\\\"180\\\"><String>Value for 180</String></entry><entry key=\\\"181\\\"><String>Value for 181</String></entry><entry key=\\\"182\\\"><String>Value for 182</String></entry><entry key=\\\"183\\\"><String>Value for 183</String></entry><entry key=\\\"184\\\"><String>Value for 184</String></entry><entry key=\\\"185\\\"><String>Value for 185</String></entry><entry key=\\\"186\\\"><String>Value for 186</String></entry><entry key=\\\"187\\\"><String>Value for 187</String></entry><entry key=\\\"188\\\"><String>Value for 188</String></entry><entry key=\\\"189\\\"><String>Value for 189</String></entry><entry key=\\\"19\\\"><String>Value for 19</String></entry><entry key=\\\"190\\\"><String>Value for 190</String></entry><entry key=\\\"191\\\"><String>Value for 191</String></entry><entry key=\\\"192\\\"><String>Value for 192</String></entry><entry key=\\\"193\\\"><String>Value for 193</String></entry><entry key=\\\"194\\\"><String>Value for 194</String></entry><entry key=\\\"195\\\"><String>Value for 195</String></entry><entry key=\\\"196\\\"><String>Value for 196</String></entry><entry key=\\\"197\\\"><String>Value for 197</String></entry><entry key=\\\"198\\\"><String>Value for 198</String></entry><entry key=\\\"199\\\"><String>Value for 199</String></entry><entry key=\\\"2\\\"><String>Value for 2</String></entry><entry key=\\\"20\\\"><String>Value for 20</String></entry><entry key=\\\"200\\\"><String>Value for 200</String></entry><entry key=\\\"201\\\"><String>Value for 201</String></entry><entry key=\\\"202\\\"><String>Value for 202</String></entry><entry key=\\\"203\\\"><String>Value for 203</String></entry><entry key=\\\"204\\\"><String>Value for 204</String></entry><entry key=\\\"205\\\"><String>Value for 205</String></entry><entry key=\\\"206\\\"><String>Value for 206</String></entry><entry key=\\\"207\\\"><String>Value for 207</String></entry><entry key=\\\"208\\\"><String>Value for 208</String></entry><entry key=\\\"209\\\"><String>Value for 209</String></entry><entry key=\\\"21\\\"><String>Value for 21</String></entry><entry key=\\\"210\\\"><String>Value for 210</String></entry><entry key=\\\"211\\\"><String>Value for 211</String></entry><entry key=\\\"212\\\"><String>Value for 212</String></entry><entry key=\\\"213\\\"><String>Value for 213</String></entry><entry key=\\\"214\\\"><String>Value for 214</String></entry><entry key=\\\"215\\\"><String>Value for 215</String></entry><entry key=\\\"216\\\"><String>Value for 216</String></entry><entry key=\\\"217\\\"><String>Value for 217</String></entry><entry key=\\\"218\\\"><String>Value for 218</String></entry><entry key=\\\"219\\\"><String>Value for 219</String></entry><entry key=\\\"22\\\"><String>Value for 22</String></entry><entry key=\\\"220\\\"><String>Value for 220</String></entry><entry key=\\\"221\\\"><String>Value for 221</String></entry><entry key=\\\"222\\\"><String>Value for 222</String></entry><entry key=\\\"223\\\"><String>Value for 223</String></entry><entry key=\\\"224\\\"><String>Value for 224</String></entry><entry key=\\\"225\\\"><String>Value for 225</String></entry><entry key=\\\"226\\\"><String>Value for 226</String></entry><entry key=\\\"227\\\"><String>Value for 227</String></entry><entry key=\\\"228\\\"><String>Value for 228</String></entry><entry key=\\\"229\\\"><String>Value for 229</String></entry><entry key=\\\"23\\\"><String>Value for 23</String></entry><entry key=\\\"230\\\"><String>Value for 230</String></entry><entry key=\\\"231\\\"><String>Value for 231</String></entry><entry key=\\\"232\\\"><String>Value for 232</String></entry><entry key=\\\"233\\\"><String>Value for 233</String></entry><entry key=\\\"234\\\"><String>Value for 234</String></entry><entry key=\\\"235\\\"><String>Value for 235</String></entry><entry key=\\\"236\\\"><String>Value for 236</String></entry><entry key=\\\"237\\\"><String>Value for 237</String></entry><entry key=\\\"238\\\"><String>Value for 238</String></entry><entry key=\\\"239\\\"><String>Value for 239</String></entry><entry key=\\\"24\\\"><String>Value for 24</String></entry><entry key=\\\"240\\\"><String>Value for 240</String></entry><entry key=\\\"241\\\"><String>Value for 241</String></entry><entry key=\\\"242\\\"><String>Value for 242</String></entry><entry key=\\\"243\\\"><String>Value for 243</String></entry><entry key=\\\"244\\\"><String>Value for 244</String></entry><entry key=\\\"245\\\"><String>Value for 245</String></entry><entry key=\\\"246\\\"><String>Value for 246</String></entry><entry key=\\\"247\\\"><String>Value for 247</String></entry><entry key=\\\"248\\\"><String>Value for 248</String></entry><entry key=\\\"249\\\"><String>Value for 249</String></entry><entry key=\\\"25\\\"><String>Value for 25</String></entry><entry key=\\\"250\\\"><String>Value for 250</String></entry><entry key=\\\"251\\\"><String>Value for 251</String></entry><entry key=\\\"252\\\"><String>Value for 252</String></entry><entry key=\\\"253\\\"><String>Value for 253</String></entry><entry key=\\\"254\\\"><String>Value for 254</String></entry><entry key=\\\"255\\\"><String>Value for 255</String></entry><entry key=\\\"256\\\"><String>Value for 256</String></entry><entry key=\\\"257\\\"><String>Value for 257</String></entry><entry key=\\\"258\\\"><String>Value for 258</String></entry><entry key=\\\"259\\\"><String>Value for 259</String></entry><entry key=\\\"26\\\"><String>Value for 26</String></entry><entry key=\\\"260\\\"><String>Value for 260</String></entry><entry key=\\\"261\\\"><String>Value for 261</String></entry><entry key=\\\"262\\\"><String>Value for 262</String></entry><entry key=\\\"263\\\"><String>Value for 263</String></entry><entry key=\\\"264\\\"><String>Value for 264</String></entry><entry key=\\\"265\\\"><String>Value for 265</String></entry><entry key=\\\"266\\\"><String>Value for 266</String></entry><entry key=\\\"267\\\"><String>Value for 267</String></entry><entry key=\\\"268\\\"><String>Value for 268</String></entry><entry key=\\\"269\\\"><String>Value for 269</String></entry><entry key=\\\"27\\\"><String>Value for 27</String></entry><entry key=\\\"270\\\"><String>Value for 270</String></entry><entry key=\\\"271\\\"><String>Value for 271</String></entry><entry key=\\\"272\\\"><String>Value for 272</String></entry><entry key=\\\"273\\\"><String>Value for 273</String></entry><entry key=\\\"274\\\"><String>Value for 274</String></entry><entry key=\\\"275\\\"><String>Value for 275</String></entry><entry key=\\\"276\\\"><String>Value for 276</String></entry><entry key=\\\"277\\\"><String>Value for 277</String></entry><entry key=\\\"278\\\"><String>Value for 278</String></entry><entry key=\\\"279\\\"><String>Value for 279</String></entry><entry key=\\\"28\\\"><String>Value for 28</String></entry><entry key=\\\"280\\\"><String>Value for 280</String></entry><entry key=\\\"281\\\"><String>Value for 281</String></entry><entry key=\\\"282\\\"><String>Value for 282</String></entry><entry key=\\\"283\\\"><String>Value for 283</String></entry><entry key=\\\"284\\\"><String>Value for 284</String></entry><entry key=\\\"285\\\"><String>Value for 285</String></entry><entry key=\\\"286\\\"><String>Value for 286</String></entry><entry key=\\\"287\\\"><String>Value for 287</String></entry><entry key=\\\"288\\\"><String>Value for 288</String></entry><entry key=\\\"289\\\"><String>Value for 289</String></entry><entry key=\\\"29\\\"><String>Value for 29</String></entry><entry key=\\\"290\\\"><String>Value for 290</String></entry><entry key=\\\"291\\\"><String>Value for 291</String></entry><entry key=\\\"292\\\"><String>Value for 292</String></entry><entry key=\\\"293\\\"><String>Value for 293</String></entry><entry key=\\\"294\\\"><String>Value for 294</String></entry><entry key=\\\"295\\\"><String>Value for 295</String></entry><entry key=\\\"296\\\"><String>Value for 296</String></entry><entry key=\\\"297\\\"><String>Value for 297</String></entry><entry key=\\\"298\\\"><String>Value for 298</String></entry><entry key=\\\"299\\\"><String>Value for 299</String></entry><entry key=\\\"3\\\"><String>Value for 3</String></entry><entry key=\\\"30\\\"><String>Value for 30</String></entry><entry key=\\\"300\\\"><String>Value for 300</String></entry><entry key=\\\"301\\\"><String>Value for 301</String></entry><entry key=\\\"302\\\"><String>Value for 302</String></entry><entry key=\\\"303\\\"><String>Value for 303</String></entry><entry key=\\\"304\\\"><String>Value for 304</String></entry><entry key=\\\"305\\\"><String>Value for 305</String></entry><entry key=\\\"306\\\"><String>Value for 306</String></entry><entry key=\\\"307\\\"><String>Value for 307</String></entry><entry key=\\\"308\\\"><String>Value for 308</String></entry><entry key=\\\"309\\\"><String>Value for 309</String></entry><entry key=\\\"31\\\"><String>Value for 31</String></entry><entry key=\\\"310\\\"><String>Value for 310</String></entry><entry key=\\\"311\\\"><String>Value for 311</String></entry><entry key=\\\"312\\\"><String>Value for 312</String></entry><entry key=\\\"313\\\"><String>Value for 313</String></entry><entry key=\\\"314\\\"><String>Value for 314</String></entry><entry key=\\\"315\\\"><String>Value for 315</String></entry><entry key=\\\"316\\\"><String>Value for 316</String></entry><entry key=\\\"317\\\"><String>Value for 317</String></entry><entry key=\\\"318\\\"><String>Value for 318</String></entry><entry key=\\\"319\\\"><String>Value for 319</String></entry><entry key=\\\"32\\\"><String>Value for 32</String></entry><entry key=\\\"320\\\"><String>Value for 320</String></entry><entry key=\\\"321\\\"><String>Value for 321</String></entry><entry key=\\\"322\\\"><String>Value for 322</String></entry><entry key=\\\"323\\\"><String>Value for 323</String></entry><entry key=\\\"324\\\"><String>Value for 324</String></entry><entry key=\\\"325\\\"><String>Value for 325</String></entry><entry key=\\\"326\\\"><String>Value for 326</String></entry><entry key=\\\"327\\\"><String>Value for 327</String></entry><entry key=\\\"328\\\"><String>Value for 328</String></entry><entry key=\\\"329\\\"><String>Value for 329</String></entry><entry key=\\\"33\\\"><String>Value for 33</String></entry><entry key=\\\"330\\\"><String>Value for 330</String></entry><entry key=\\\"331\\\"><String>Value for 331</String></entry><entry key=\\\"332\\\"><String>Value for 332</String></entry><entry key=\\\"333\\\"><String>Value for 333</String></entry><entry key=\\\"334\\\"><String>Value for 334</String></entry><entry key=\\\"335\\\"><String>Value for 335</String></entry><entry key=\\\"336\\\"><String>Value for 336</String></entry><entry key=\\\"337\\\"><String>Value for 337</String></entry><entry key=\\\"338\\\"><String>Value for 338</String></entry><entry key=\\\"339\\\"><String>Value for 339</String></entry><entry key=\\\"34\\\"><String>Value for 34</String></entry><entry key=\\\"340\\\"><String>Value for 340</String></entry><entry key=\\\"341\\\"><String>Value for 341</String></entry><entry key=\\\"342\\\"><String>Value for 342</String></entry><entry key=\\\"343\\\"><String>Value for 343</String></entry><entry key=\\\"344\\\"><String>Value for 344</String></entry><entry key=\\\"345\\\"><String>Value for 345</String></entry><entry key=\\\"346\\\"><String>Value for 346</String></entry><entry key=\\\"347\\\"><String>Value for 347</String></entry><entry key=\\\"348\\\"><String>Value for 348</String></entry><entry key=\\\"349\\\"><String>Value for 349</String></entry><entry key=\\\"35\\\"><String>Value for 35</String></entry><entry key=\\\"350\\\"><String>Value for 350</String></entry><entry key=\\\"351\\\"><String>Value for 351</String></entry><entry key=\\\"352\\\"><String>Value for 352</String></entry><entry key=\\\"353\\\"><String>Value for 353</String></entry><entry key=\\\"354\\\"><String>Value for 354</String></entry><entry key=\\\"355\\\"><String>Value for 355</String></entry><entry key=\\\"356\\\"><String>Value for 356</String></entry><entry key=\\\"357\\\"><String>Value for 357</String></entry><entry key=\\\"358\\\"><String>Value for 358</String></entry><entry key=\\\"359\\\"><String>Value for 359</String></entry><entry key=\\\"36\\\"><String>Value for 36</String></entry><entry key=\\\"360\\\"><String>Value for 360</String></entry><entry key=\\\"361\\\"><String>Value for 361</String></entry><entry key=\\\"362\\\"><String>Value for 362</String></entry><entry key=\\\"363\\\"><String>Value for 363</String></entry><entry key=\\\"364\\\"><String>Value for 364</String></entry><entry key=\\\"365\\\"><String>Value for 365</String></entry><entry key=\\\"366\\\"><String>Value for 366</String></entry><entry key=\\\"367\\\"><String>Value for 367</String></entry><entry key=\\\"368\\\"><String>Value for 368</String></entry><entry key=\\\"369\\\"><String>Value for 369</String></entry><entry key=\\\"37\\\"><String>Value for 37</String></entry><entry key=\\\"370\\\"><String>Value for 370</String></entry><entry key=\\\"371\\\"><String>Value for 371</String></entry><entry key=\\\"372\\\"><String>Value for 372</String></entry><entry key=\\\"373\\\"><String>Value for 373</String></entry><entry key=\\\"374\\\"><String>Value for 374</String></entry><entry key=\\\"375\\\"><String>Value for 375</String></entry><entry key=\\\"376\\\"><String>Value for 376</String></entry><entry key=\\\"377\\\"><String>Value for 377</String></entry><entry key=\\\"378\\\"><String>Value for 378</String></entry><entry key=\\\"379\\\"><String>Value for 379</String></entry><entry key=\\\"38\\\"><String>Value for 38</String></entry><entry key=\\\"380\\\"><String>Value for 380</String></entry><entry key=\\\"381\\\"><String>Value for 381</String></entry><entry key=\\\"382\\\"><String>Value for 382</String></entry><entry key=\\\"383\\\"><String>Value for 383</String></entry><entry key=\\\"384\\\"><String>Value for 384</String></entry><entry key=\\\"385\\\"><String>Value for 385</String></entry><entry key=\\\"386\\\"><String>Value for 386</String></entry><entry key=\\\"387\\\"><String>Value for 387</String></entry><entry key=\\\"388\\\"><String>Value for 388</String></entry><entry key=\\\"389\\\"><String>Value for 389</String></entry><entry key=\\\"39\\\"><String>Value for 39</String></entry><entry key=\\\"390\\\"><String>Value for 390</String></entry><entry key=\\\"391\\\"><String>Value for 391</String></entry><entry key=\\\"392\\\"><String>Value for 392</String></entry><entry key=\\\"393\\\"><String>Value for 393</String></entry><entry key=\\\"394\\\"><String>Value for 394</String></entry><entry key=\\\"395\\\"><String>Value for 395</String></entry><entry key=\\\"396\\\"><String>Value for 396</String></entry><entry key=\\\"397\\\"><String>Value for 397</String></entry><entry key=\\\"398\\\"><String>Value for 398</String></entry><entry key=\\\"399\\\"><String>Value for 399</String></entry><entry key=\\\"4\\\"><String>Value for 4</String></entry><entry key=\\\"40\\\"><String>Value for 40</String></entry><entry key=\\\"400\\\"><String>Value for 400</String></entry><entry key=\\\"401\\\"><String>Value for 401</String></entry><entry key=\\\"402\\\"><String>Value for 402</String></entry><entry key=\\\"403\\\"><String>Value for 403</String></entry><entry key=\\\"404\\\"><String>Value for 404</String></entry><entry key=\\\"405\\\"><String>Value for 405</String></entry><entry key=\\\"406\\\"><String>Value for 406</String></entry><entry key=\\\"407\\\"><String>Value for 407</String></entry><entry key=\\\"408\\\"><String>Value for 408</String></entry><entry key=\\\"409\\\"><String>Value for 409</String></entry><entry key=\\\"41\\\"><String>Value for 41</String></entry><entry key=\\\"410\\\"><String>Value for 410</String></entry><entry key=\\\"411\\\"><String>Value for 411</String></entry><entry key=\\\"412\\\"><String>Value for 412</String></entry><entry key=\\\"413\\\"><String>Value for 413</String></entry><entry key=\\\"414\\\"><String>Value for 414</String></entry><entry key=\\\"415\\\"><String>Value for 415</String></entry><entry key=\\\"416\\\"><String>Value for 416</String></entry><entry key=\\\"417\\\"><String>Value for 417</String></entry><entry key=\\\"418\\\"><String>Value for 418</String></entry><entry key=\\\"419\\\"><String>Value for 419</String></entry><entry key=\\\"42\\\"><String>Value for 42</String></entry><entry key=\\\"420\\\"><String>Value for 420</String></entry><entry key=\\\"421\\\"><String>Value for 421</String></entry><entry key=\\\"422\\\"><String>Value for 422</String></entry><entry key=\\\"423\\\"><String>Value for 423</String></entry><entry key=\\\"424\\\"><String>Value for 424</String></entry><entry key=\\\"425\\\"><String>Value for 425</String></entry><entry key=\\\"426\\\"><String>Value for 426</String></entry><entry key=\\\"427\\\"><String>Value for 427</String></entry><entry key=\\\"428\\\"><String>Value for 428</String></entry><entry key=\\\"429\\\"><String>Value for 429</String></entry><entry key=\\\"43\\\"><String>Value for 43</String></entry><entry key=\\\"430\\\"><String>Value for 430</String></entry><entry key=\\\"431\\\"><String>Value for 431</String></entry><entry key=\\\"432\\\"><String>Value for 432</String></entry><entry key=\\\"433\\\"><String>Value for 433</String></entry><entry key=\\\"434\\\"><String>Value for 434</String></entry><entry key=\\\"435\\\"><String>Value for 435</String></entry><entry key=\\\"436\\\"><String>Value for 436</String></entry><entry key=\\\"437\\\"><String>Value for 437</String></entry><entry key=\\\"438\\\"><String>Value for 438</String></entry><entry key=\\\"439\\\"><String>Value for 439</String></entry><entry key=\\\"44\\\"><String>Value for 44</String></entry><entry key=\\\"440\\\"><String>Value for 440</String></entry><entry key=\\\"441\\\"><String>Value for 441</String></entry><entry key=\\\"442\\\"><String>Value for 442</String></entry><entry key=\\\"443\\\"><String>Value for 443</String></entry><entry key=\\\"444\\\"><String>Value for 444</String></entry><entry key=\\\"445\\\"><String>Value for 445</String></entry><entry key=\\\"446\\\"><String>Value for 446</String></entry><entry key=\\\"447\\\"><String>Value for 447</String></entry><entry key=\\\"448\\\"><String>Value for 448</String></entry><entry key=\\\"449\\\"><String>Value for 449</String></entry><entry key=\\\"45\\\"><String>Value for 45</String></entry><entry key=\\\"450\\\"><String>Value for 450</String></entry><entry key=\\\"451\\\"><String>Value for 451</String></entry><entry key=\\\"452\\\"><String>Value for 452</String></entry><entry key=\\\"453\\\"><String>Value for 453</String></entry><entry key=\\\"454\\\"><String>Value for 454</String></entry><entry key=\\\"455\\\"><String>Value for 455</String></entry><entry key=\\\"456\\\"><String>Value for 456</String></entry><entry key=\\\"457\\\"><String>Value for 457</String></entry><entry key=\\\"458\\\"><String>Value for 458</String></entry><entry key=\\\"459\\\"><String>Value for 459</String></entry><entry key=\\\"46\\\"><String>Value for 46</String></entry><entry key=\\\"460\\\"><String>Value for 460</String></entry><entry key=\\\"461\\\"><String>Value for 461</String></entry><entry key=\\\"462\\\"><String>Value for 462</String></entry><entry key=\\\"463\\\"><String>Value for 463</String></entry><entry key=\\\"464\\\"><String>Value for 464</String></entry><entry key=\\\"465\\\"><String>Value for 465</String></entry><entry key=\\\"466\\\"><String>Value for 466</String></entry><entry key=\\\"467\\\"><String>Value for 467</String></entry><entry key=\\\"468\\\"><String>Value for 468</String></entry><entry key=\\\"469\\\"><String>Value for 469</String></entry><entry key=\\\"47\\\"><String>Value for 47</String></entry><entry key=\\\"470\\\"><String>Value for 470</String></entry><entry key=\\\"471\\\"><String>Value for 471</String></entry><entry key=\\\"472\\\"><String>Value for 472</String></entry><entry key=\\\"473\\\"><String>Value for 473</String></entry><entry key=\\\"474\\\"><String>Value for 474</String></entry><entry key=\\\"475\\\"><String>Value for 475</String></entry><entry key=\\\"476\\\"><String>Value for 476</String></entry><entry key=\\\"477\\\"><String>Value for 477</String></entry><entry key=\\\"478\\\"><String>Value for 478</String></entry><entry key=\\\"479\\\"><String>Value for 479</String></entry><entry key=\\\"48\\\"><String>Value for 48</String></entry><entry key=\\\"480\\\"><String>Value for 480</String></entry><entry key=\\\"481\\\"><String>Value for 481</String></entry><entry key=\\\"482\\\"><String>Value for 482</String></entry><entry key=\\\"483\\\"><String>Value for 483</String></entry><entry key=\\\"484\\\"><String>Value for 484</String></entry><entry key=\\\"485\\\"><String>Value for 485</String></entry><entry key=\\\"486\\\"><String>Value for 486</String></entry><entry key=\\\"487\\\"><String>Value for 487</String></entry><entry key=\\\"488\\\"><String>Value for 488</String></entry><entry key=\\\"489\\\"><String>Value for 489</String></entry><entry key=\\\"49\\\"><String>Value for 49</String></entry><entry key=\\\"490\\\"><String>Value for 490</String></entry><entry key=\\\"491\\\"><String>Value for 491</String></entry><entry key=\\\"492\\\"><String>Value for 492</String></entry><entry key=\\\"493\\\"><String>Value for 493</String></entry><entry key=\\\"494\\\"><String>Value for 494</String></entry><entry key=\\\"495\\\"><String>Value for 495</String></entry><entry key=\\\"496\\\"><String>Value for 496</String></entry><entry key=\\\"497\\\"><String>Value for 497</String></entry><entry key=\\\"498\\\"><String>Value for 498</String></entry><entry key=\\\"499\\\"><String>Value for 499</String></entry><entry key=\\\"5\\\"><String>Value for 5</String></entry><entry key=\\\"50\\\"><String>Value for 50</String></entry><entry key=\\\"500\\\"><String>Value for 500</String></entry><entry key=\\\"51\\\"><String>Value for 51</String></entry><entry key=\\\"52\\\"><String>Value for 52</String></entry><entry key=\\\"53\\\"><String>Value for 53</String></entry><entry key=\\\"54\\\"><String>Value for 54</String></entry><entry key=\\\"55\\\"><String>Value for 55</String></entry><entry key=\\\"56\\\"><String>Value for 56</String></entry><entry key=\\\"57\\\"><String>Value for 57</String></entry><entry key=\\\"58\\\"><String>Value for 58</String></entry><entry key=\\\"59\\\"><String>Value for 59</String></entry><entry key=\\\"6\\\"><String>Value for 6</String></entry><entry key=\\\"60\\\"><String>Value for 60</String></entry><entry key=\\\"61\\\"><String>Value for 61</String></entry><entry key=\\\"62\\\"><String>Value for 62</String></entry><entry key=\\\"63\\\"><String>Value for 63</String></entry><entry key=\\\"64\\\"><String>Value for 64</String></entry><entry key=\\\"65\\\"><String>Value for 65</String></entry><entry key=\\\"66\\\"><String>Value for 66</String></entry><entry key=\\\"67\\\"><String>Value for 67</String></entry><entry key=\\\"68\\\"><String>Value for 68</String></entry><entry key=\\\"69\\\"><String>Value for 69</String></entry><entry key=\\\"7\\\"><String>Value for 7</String></entry><entry key=\\\"70\\\"><String>Value for 70</String></entry><entry key=\\\"71\\\"><String>Value for 71</String></entry><entry key=\\\"72\\\"><String>Value for 72</String></entry><entry key=\\\"73\\\"><String>Value for 73</String></entry><entry key=\\\"74\\\"><String>Value for 74</String></entry><entry key=\\\"75\\\"><String>Value for 75</String></entry><entry key=\\\"76\\\"><String>Value for 76</String></entry><entry key=\\\"77\\\"><String>Value for 77</String></entry><entry key=\\\"78\\\"><String>Value for 78</String></entry><entry key=\\\"79\\\"><String>Value for 79</String></entry><entry key=\\\"8\\\"><String>Value for 8</String></entry><entry key=\\\"80\\\"><String>Value for 80</String></entry><entry key=\\\"81\\\"><String>Value for 81</String></entry><entry key=\\\"82\\\"><String>Value for 82</String></entry><entry key=\\\"83\\\"><String>Value for 83</String></entry><entry key=\\\"84\\\"><String>Value for 84</String></entry><entry key=\\\"85\\\"><String>Value for 85</String></entry><entry key=\\\"86\\\"><String>Value for 86</String></entry><entry key=\\\"87\\\"><String>Value for 87</String></entry><entry key=\\\"88\\\"><String>Value for 88</String></entry><entry key=\\\"89\\\"><String>Value for 89</String></entry><entry key=\\\"9\\\"><String>Value for 9</String></entry><entry key=\\\"90\\\"><String>Value for 90</String></entry><entry key=\\\"91\\\"><String>Value for 91</String></entry><entry key=\\\"92\\\"><String>Value for 92</String></entry><entry key=\\\"93\\\"><String>Value for 93</String></entry><entry key=\\\"94\\\"><String>Value for 94</String></entry><entry key=\\\"95\\\"><String>Value for 95</String></entry><entry key=\\\"96\\\"><String>Value for 96</String></entry><entry key=\\\"97\\\"><String>Value for 97</String></entry><entry key=\\\"98\\\"><String>Value for 98</String></entry><entry key=\\\"99\\\"><String>Value for 99</String></entry></responseMap></SimpleMapOperationResponseObject></SimpleMapOperationResponse>\");\n // Create the expected response as a JSON object\n JSONHelpers jSONHelpers5 = new JSONHelpers();\n JSONObject createAsJSONObject11 = jSONHelpers5.createAsJSONObject(new JSONObject(\"{\\\"responseMap\\\": {\\\"1\\\": \\\"Value for 1\\\",\\\"2\\\": \\\"Value for 2\\\",\\\"3\\\": \\\"Value for 3\\\",\\\"4\\\": \\\"Value for 4\\\",\\\"5\\\": \\\"Value for 5\\\",\\\"6\\\": \\\"Value for 6\\\",\\\"7\\\": \\\"Value for 7\\\",\\\"8\\\": \\\"Value for 8\\\",\\\"9\\\": \\\"Value for 9\\\",\\\"10\\\": \\\"Value for 10\\\",\\\"11\\\": \\\"Value for 11\\\",\\\"12\\\": \\\"Value for 12\\\",\\\"13\\\": \\\"Value for 13\\\",\\\"14\\\": \\\"Value for 14\\\",\\\"15\\\": \\\"Value for 15\\\",\\\"16\\\": \\\"Value for 16\\\",\\\"17\\\": \\\"Value for 17\\\",\\\"18\\\": \\\"Value for 18\\\",\\\"19\\\": \\\"Value for 19\\\",\\\"20\\\": \\\"Value for 20\\\",\\\"21\\\": \\\"Value for 21\\\",\\\"22\\\": \\\"Value for 22\\\",\\\"23\\\": \\\"Value for 23\\\",\\\"24\\\": \\\"Value for 24\\\",\\\"25\\\": \\\"Value for 25\\\",\\\"26\\\": \\\"Value for 26\\\",\\\"27\\\": \\\"Value for 27\\\",\\\"28\\\": \\\"Value for 28\\\",\\\"29\\\": \\\"Value for 29\\\",\\\"30\\\": \\\"Value for 30\\\",\\\"31\\\": \\\"Value for 31\\\",\\\"32\\\": \\\"Value for 32\\\",\\\"33\\\": \\\"Value for 33\\\",\\\"34\\\": \\\"Value for 34\\\",\\\"35\\\": \\\"Value for 35\\\",\\\"36\\\": \\\"Value for 36\\\",\\\"37\\\": \\\"Value for 37\\\",\\\"38\\\": \\\"Value for 38\\\",\\\"39\\\": \\\"Value for 39\\\",\\\"40\\\": \\\"Value for 40\\\",\\\"41\\\": \\\"Value for 41\\\",\\\"42\\\": \\\"Value for 42\\\",\\\"43\\\": \\\"Value for 43\\\",\\\"44\\\": \\\"Value for 44\\\",\\\"45\\\": \\\"Value for 45\\\",\\\"46\\\": \\\"Value for 46\\\",\\\"47\\\": \\\"Value for 47\\\",\\\"48\\\": \\\"Value for 48\\\",\\\"49\\\": \\\"Value for 49\\\",\\\"50\\\": \\\"Value for 50\\\",\\\"51\\\": \\\"Value for 51\\\",\\\"52\\\": \\\"Value for 52\\\",\\\"53\\\": \\\"Value for 53\\\",\\\"54\\\": \\\"Value for 54\\\",\\\"55\\\": \\\"Value for 55\\\",\\\"56\\\": \\\"Value for 56\\\",\\\"57\\\": \\\"Value for 57\\\",\\\"58\\\": \\\"Value for 58\\\",\\\"59\\\": \\\"Value for 59\\\",\\\"60\\\": \\\"Value for 60\\\",\\\"61\\\": \\\"Value for 61\\\",\\\"62\\\": \\\"Value for 62\\\",\\\"63\\\": \\\"Value for 63\\\",\\\"64\\\": \\\"Value for 64\\\",\\\"65\\\": \\\"Value for 65\\\",\\\"66\\\": \\\"Value for 66\\\",\\\"67\\\": \\\"Value for 67\\\",\\\"68\\\": \\\"Value for 68\\\",\\\"69\\\": \\\"Value for 69\\\",\\\"70\\\": \\\"Value for 70\\\",\\\"71\\\": \\\"Value for 71\\\",\\\"72\\\": \\\"Value for 72\\\",\\\"73\\\": \\\"Value for 73\\\",\\\"74\\\": \\\"Value for 74\\\",\\\"75\\\": \\\"Value for 75\\\",\\\"76\\\": \\\"Value for 76\\\",\\\"77\\\": \\\"Value for 77\\\",\\\"78\\\": \\\"Value for 78\\\",\\\"79\\\": \\\"Value for 79\\\",\\\"80\\\": \\\"Value for 80\\\",\\\"81\\\": \\\"Value for 81\\\",\\\"82\\\": \\\"Value for 82\\\",\\\"83\\\": \\\"Value for 83\\\",\\\"84\\\": \\\"Value for 84\\\",\\\"85\\\": \\\"Value for 85\\\",\\\"86\\\": \\\"Value for 86\\\",\\\"87\\\": \\\"Value for 87\\\",\\\"88\\\": \\\"Value for 88\\\",\\\"89\\\": \\\"Value for 89\\\",\\\"90\\\": \\\"Value for 90\\\",\\\"91\\\": \\\"Value for 91\\\",\\\"92\\\": \\\"Value for 92\\\",\\\"93\\\": \\\"Value for 93\\\",\\\"94\\\": \\\"Value for 94\\\",\\\"95\\\": \\\"Value for 95\\\",\\\"96\\\": \\\"Value for 96\\\",\\\"97\\\": \\\"Value for 97\\\",\\\"98\\\": \\\"Value for 98\\\",\\\"99\\\": \\\"Value for 99\\\",\\\"100\\\": \\\"Value for 100\\\",\\\"101\\\": \\\"Value for 101\\\",\\\"102\\\": \\\"Value for 102\\\",\\\"103\\\": \\\"Value for 103\\\",\\\"104\\\": \\\"Value for 104\\\",\\\"105\\\": \\\"Value for 105\\\",\\\"106\\\": \\\"Value for 106\\\",\\\"107\\\": \\\"Value for 107\\\",\\\"108\\\": \\\"Value for 108\\\",\\\"109\\\": \\\"Value for 109\\\",\\\"110\\\": \\\"Value for 110\\\",\\\"111\\\": \\\"Value for 111\\\",\\\"112\\\": \\\"Value for 112\\\",\\\"113\\\": \\\"Value for 113\\\",\\\"114\\\": \\\"Value for 114\\\",\\\"115\\\": \\\"Value for 115\\\",\\\"116\\\": \\\"Value for 116\\\",\\\"117\\\": \\\"Value for 117\\\",\\\"118\\\": \\\"Value for 118\\\",\\\"119\\\": \\\"Value for 119\\\",\\\"120\\\": \\\"Value for 120\\\",\\\"121\\\": \\\"Value for 121\\\",\\\"122\\\": \\\"Value for 122\\\",\\\"123\\\": \\\"Value for 123\\\",\\\"124\\\": \\\"Value for 124\\\",\\\"125\\\": \\\"Value for 125\\\",\\\"126\\\": \\\"Value for 126\\\",\\\"127\\\": \\\"Value for 127\\\",\\\"128\\\": \\\"Value for 128\\\",\\\"129\\\": \\\"Value for 129\\\",\\\"130\\\": \\\"Value for 130\\\",\\\"131\\\": \\\"Value for 131\\\",\\\"132\\\": \\\"Value for 132\\\",\\\"133\\\": \\\"Value for 133\\\",\\\"134\\\": \\\"Value for 134\\\",\\\"135\\\": \\\"Value for 135\\\",\\\"136\\\": \\\"Value for 136\\\",\\\"137\\\": \\\"Value for 137\\\",\\\"138\\\": \\\"Value for 138\\\",\\\"139\\\": \\\"Value for 139\\\",\\\"140\\\": \\\"Value for 140\\\",\\\"141\\\": \\\"Value for 141\\\",\\\"142\\\": \\\"Value for 142\\\",\\\"143\\\": \\\"Value for 143\\\",\\\"144\\\": \\\"Value for 144\\\",\\\"145\\\": \\\"Value for 145\\\",\\\"146\\\": \\\"Value for 146\\\",\\\"147\\\": \\\"Value for 147\\\",\\\"148\\\": \\\"Value for 148\\\",\\\"149\\\": \\\"Value for 149\\\",\\\"150\\\": \\\"Value for 150\\\",\\\"151\\\": \\\"Value for 151\\\",\\\"152\\\": \\\"Value for 152\\\",\\\"153\\\": \\\"Value for 153\\\",\\\"154\\\": \\\"Value for 154\\\",\\\"155\\\": \\\"Value for 155\\\",\\\"156\\\": \\\"Value for 156\\\",\\\"157\\\": \\\"Value for 157\\\",\\\"158\\\": \\\"Value for 158\\\",\\\"159\\\": \\\"Value for 159\\\",\\\"160\\\": \\\"Value for 160\\\",\\\"161\\\": \\\"Value for 161\\\",\\\"162\\\": \\\"Value for 162\\\",\\\"163\\\": \\\"Value for 163\\\",\\\"164\\\": \\\"Value for 164\\\",\\\"165\\\": \\\"Value for 165\\\",\\\"166\\\": \\\"Value for 166\\\",\\\"167\\\": \\\"Value for 167\\\",\\\"168\\\": \\\"Value for 168\\\",\\\"169\\\": \\\"Value for 169\\\",\\\"170\\\": \\\"Value for 170\\\",\\\"171\\\": \\\"Value for 171\\\",\\\"172\\\": \\\"Value for 172\\\",\\\"173\\\": \\\"Value for 173\\\",\\\"174\\\": \\\"Value for 174\\\",\\\"175\\\": \\\"Value for 175\\\",\\\"176\\\": \\\"Value for 176\\\",\\\"177\\\": \\\"Value for 177\\\",\\\"178\\\": \\\"Value for 178\\\",\\\"179\\\": \\\"Value for 179\\\",\\\"180\\\": \\\"Value for 180\\\",\\\"181\\\": \\\"Value for 181\\\",\\\"182\\\": \\\"Value for 182\\\",\\\"183\\\": \\\"Value for 183\\\",\\\"184\\\": \\\"Value for 184\\\",\\\"185\\\": \\\"Value for 185\\\",\\\"186\\\": \\\"Value for 186\\\",\\\"187\\\": \\\"Value for 187\\\",\\\"188\\\": \\\"Value for 188\\\",\\\"189\\\": \\\"Value for 189\\\",\\\"190\\\": \\\"Value for 190\\\",\\\"191\\\": \\\"Value for 191\\\",\\\"192\\\": \\\"Value for 192\\\",\\\"193\\\": \\\"Value for 193\\\",\\\"194\\\": \\\"Value for 194\\\",\\\"195\\\": \\\"Value for 195\\\",\\\"196\\\": \\\"Value for 196\\\",\\\"197\\\": \\\"Value for 197\\\",\\\"198\\\": \\\"Value for 198\\\",\\\"199\\\": \\\"Value for 199\\\",\\\"200\\\": \\\"Value for 200\\\",\\\"201\\\": \\\"Value for 201\\\",\\\"202\\\": \\\"Value for 202\\\",\\\"203\\\": \\\"Value for 203\\\",\\\"204\\\": \\\"Value for 204\\\",\\\"205\\\": \\\"Value for 205\\\",\\\"206\\\": \\\"Value for 206\\\",\\\"207\\\": \\\"Value for 207\\\",\\\"208\\\": \\\"Value for 208\\\",\\\"209\\\": \\\"Value for 209\\\",\\\"210\\\": \\\"Value for 210\\\",\\\"211\\\": \\\"Value for 211\\\",\\\"212\\\": \\\"Value for 212\\\",\\\"213\\\": \\\"Value for 213\\\",\\\"214\\\": \\\"Value for 214\\\",\\\"215\\\": \\\"Value for 215\\\",\\\"216\\\": \\\"Value for 216\\\",\\\"217\\\": \\\"Value for 217\\\",\\\"218\\\": \\\"Value for 218\\\",\\\"219\\\": \\\"Value for 219\\\",\\\"220\\\": \\\"Value for 220\\\",\\\"221\\\": \\\"Value for 221\\\",\\\"222\\\": \\\"Value for 222\\\",\\\"223\\\": \\\"Value for 223\\\",\\\"224\\\": \\\"Value for 224\\\",\\\"225\\\": \\\"Value for 225\\\",\\\"226\\\": \\\"Value for 226\\\",\\\"227\\\": \\\"Value for 227\\\",\\\"228\\\": \\\"Value for 228\\\",\\\"229\\\": \\\"Value for 229\\\",\\\"230\\\": \\\"Value for 230\\\",\\\"231\\\": \\\"Value for 231\\\",\\\"232\\\": \\\"Value for 232\\\",\\\"233\\\": \\\"Value for 233\\\",\\\"234\\\": \\\"Value for 234\\\",\\\"235\\\": \\\"Value for 235\\\",\\\"236\\\": \\\"Value for 236\\\",\\\"237\\\": \\\"Value for 237\\\",\\\"238\\\": \\\"Value for 238\\\",\\\"239\\\": \\\"Value for 239\\\",\\\"240\\\": \\\"Value for 240\\\",\\\"241\\\": \\\"Value for 241\\\",\\\"242\\\": \\\"Value for 242\\\",\\\"243\\\": \\\"Value for 243\\\",\\\"244\\\": \\\"Value for 244\\\",\\\"245\\\": \\\"Value for 245\\\",\\\"246\\\": \\\"Value for 246\\\",\\\"247\\\": \\\"Value for 247\\\",\\\"248\\\": \\\"Value for 248\\\",\\\"249\\\": \\\"Value for 249\\\",\\\"250\\\": \\\"Value for 250\\\",\\\"251\\\": \\\"Value for 251\\\",\\\"252\\\": \\\"Value for 252\\\",\\\"253\\\": \\\"Value for 253\\\",\\\"254\\\": \\\"Value for 254\\\",\\\"255\\\": \\\"Value for 255\\\",\\\"256\\\": \\\"Value for 256\\\",\\\"257\\\": \\\"Value for 257\\\",\\\"258\\\": \\\"Value for 258\\\",\\\"259\\\": \\\"Value for 259\\\",\\\"260\\\": \\\"Value for 260\\\",\\\"261\\\": \\\"Value for 261\\\",\\\"262\\\": \\\"Value for 262\\\",\\\"263\\\": \\\"Value for 263\\\",\\\"264\\\": \\\"Value for 264\\\",\\\"265\\\": \\\"Value for 265\\\",\\\"266\\\": \\\"Value for 266\\\",\\\"267\\\": \\\"Value for 267\\\",\\\"268\\\": \\\"Value for 268\\\",\\\"269\\\": \\\"Value for 269\\\",\\\"270\\\": \\\"Value for 270\\\",\\\"271\\\": \\\"Value for 271\\\",\\\"272\\\": \\\"Value for 272\\\",\\\"273\\\": \\\"Value for 273\\\",\\\"274\\\": \\\"Value for 274\\\",\\\"275\\\": \\\"Value for 275\\\",\\\"276\\\": \\\"Value for 276\\\",\\\"277\\\": \\\"Value for 277\\\",\\\"278\\\": \\\"Value for 278\\\",\\\"279\\\": \\\"Value for 279\\\",\\\"280\\\": \\\"Value for 280\\\",\\\"281\\\": \\\"Value for 281\\\",\\\"282\\\": \\\"Value for 282\\\",\\\"283\\\": \\\"Value for 283\\\",\\\"284\\\": \\\"Value for 284\\\",\\\"285\\\": \\\"Value for 285\\\",\\\"286\\\": \\\"Value for 286\\\",\\\"287\\\": \\\"Value for 287\\\",\\\"288\\\": \\\"Value for 288\\\",\\\"289\\\": \\\"Value for 289\\\",\\\"290\\\": \\\"Value for 290\\\",\\\"291\\\": \\\"Value for 291\\\",\\\"292\\\": \\\"Value for 292\\\",\\\"293\\\": \\\"Value for 293\\\",\\\"294\\\": \\\"Value for 294\\\",\\\"295\\\": \\\"Value for 295\\\",\\\"296\\\": \\\"Value for 296\\\",\\\"297\\\": \\\"Value for 297\\\",\\\"298\\\": \\\"Value for 298\\\",\\\"299\\\": \\\"Value for 299\\\",\\\"300\\\": \\\"Value for 300\\\",\\\"301\\\": \\\"Value for 301\\\",\\\"302\\\": \\\"Value for 302\\\",\\\"303\\\": \\\"Value for 303\\\",\\\"304\\\": \\\"Value for 304\\\",\\\"305\\\": \\\"Value for 305\\\",\\\"306\\\": \\\"Value for 306\\\",\\\"307\\\": \\\"Value for 307\\\",\\\"308\\\": \\\"Value for 308\\\",\\\"309\\\": \\\"Value for 309\\\",\\\"310\\\": \\\"Value for 310\\\",\\\"311\\\": \\\"Value for 311\\\",\\\"312\\\": \\\"Value for 312\\\",\\\"313\\\": \\\"Value for 313\\\",\\\"314\\\": \\\"Value for 314\\\",\\\"315\\\": \\\"Value for 315\\\",\\\"316\\\": \\\"Value for 316\\\",\\\"317\\\": \\\"Value for 317\\\",\\\"318\\\": \\\"Value for 318\\\",\\\"319\\\": \\\"Value for 319\\\",\\\"320\\\": \\\"Value for 320\\\",\\\"321\\\": \\\"Value for 321\\\",\\\"322\\\": \\\"Value for 322\\\",\\\"323\\\": \\\"Value for 323\\\",\\\"324\\\": \\\"Value for 324\\\",\\\"325\\\": \\\"Value for 325\\\",\\\"326\\\": \\\"Value for 326\\\",\\\"327\\\": \\\"Value for 327\\\",\\\"328\\\": \\\"Value for 328\\\",\\\"329\\\": \\\"Value for 329\\\",\\\"330\\\": \\\"Value for 330\\\",\\\"331\\\": \\\"Value for 331\\\",\\\"332\\\": \\\"Value for 332\\\",\\\"333\\\": \\\"Value for 333\\\",\\\"334\\\": \\\"Value for 334\\\",\\\"335\\\": \\\"Value for 335\\\",\\\"336\\\": \\\"Value for 336\\\",\\\"337\\\": \\\"Value for 337\\\",\\\"338\\\": \\\"Value for 338\\\",\\\"339\\\": \\\"Value for 339\\\",\\\"340\\\": \\\"Value for 340\\\",\\\"341\\\": \\\"Value for 341\\\",\\\"342\\\": \\\"Value for 342\\\",\\\"343\\\": \\\"Value for 343\\\",\\\"344\\\": \\\"Value for 344\\\",\\\"345\\\": \\\"Value for 345\\\",\\\"346\\\": \\\"Value for 346\\\",\\\"347\\\": \\\"Value for 347\\\",\\\"348\\\": \\\"Value for 348\\\",\\\"349\\\": \\\"Value for 349\\\",\\\"350\\\": \\\"Value for 350\\\",\\\"351\\\": \\\"Value for 351\\\",\\\"352\\\": \\\"Value for 352\\\",\\\"353\\\": \\\"Value for 353\\\",\\\"354\\\": \\\"Value for 354\\\",\\\"355\\\": \\\"Value for 355\\\",\\\"356\\\": \\\"Value for 356\\\",\\\"357\\\": \\\"Value for 357\\\",\\\"358\\\": \\\"Value for 358\\\",\\\"359\\\": \\\"Value for 359\\\",\\\"360\\\": \\\"Value for 360\\\",\\\"361\\\": \\\"Value for 361\\\",\\\"362\\\": \\\"Value for 362\\\",\\\"363\\\": \\\"Value for 363\\\",\\\"364\\\": \\\"Value for 364\\\",\\\"365\\\": \\\"Value for 365\\\",\\\"366\\\": \\\"Value for 366\\\",\\\"367\\\": \\\"Value for 367\\\",\\\"368\\\": \\\"Value for 368\\\",\\\"369\\\": \\\"Value for 369\\\",\\\"370\\\": \\\"Value for 370\\\",\\\"371\\\": \\\"Value for 371\\\",\\\"372\\\": \\\"Value for 372\\\",\\\"373\\\": \\\"Value for 373\\\",\\\"374\\\": \\\"Value for 374\\\",\\\"375\\\": \\\"Value for 375\\\",\\\"376\\\": \\\"Value for 376\\\",\\\"377\\\": \\\"Value for 377\\\",\\\"378\\\": \\\"Value for 378\\\",\\\"379\\\": \\\"Value for 379\\\",\\\"380\\\": \\\"Value for 380\\\",\\\"381\\\": \\\"Value for 381\\\",\\\"382\\\": \\\"Value for 382\\\",\\\"383\\\": \\\"Value for 383\\\",\\\"384\\\": \\\"Value for 384\\\",\\\"385\\\": \\\"Value for 385\\\",\\\"386\\\": \\\"Value for 386\\\",\\\"387\\\": \\\"Value for 387\\\",\\\"388\\\": \\\"Value for 388\\\",\\\"389\\\": \\\"Value for 389\\\",\\\"390\\\": \\\"Value for 390\\\",\\\"391\\\": \\\"Value for 391\\\",\\\"392\\\": \\\"Value for 392\\\",\\\"393\\\": \\\"Value for 393\\\",\\\"394\\\": \\\"Value for 394\\\",\\\"395\\\": \\\"Value for 395\\\",\\\"396\\\": \\\"Value for 396\\\",\\\"397\\\": \\\"Value for 397\\\",\\\"398\\\": \\\"Value for 398\\\",\\\"399\\\": \\\"Value for 399\\\",\\\"400\\\": \\\"Value for 400\\\",\\\"401\\\": \\\"Value for 401\\\",\\\"402\\\": \\\"Value for 402\\\",\\\"403\\\": \\\"Value for 403\\\",\\\"404\\\": \\\"Value for 404\\\",\\\"405\\\": \\\"Value for 405\\\",\\\"406\\\": \\\"Value for 406\\\",\\\"407\\\": \\\"Value for 407\\\",\\\"408\\\": \\\"Value for 408\\\",\\\"409\\\": \\\"Value for 409\\\",\\\"410\\\": \\\"Value for 410\\\",\\\"411\\\": \\\"Value for 411\\\",\\\"412\\\": \\\"Value for 412\\\",\\\"413\\\": \\\"Value for 413\\\",\\\"414\\\": \\\"Value for 414\\\",\\\"415\\\": \\\"Value for 415\\\",\\\"416\\\": \\\"Value for 416\\\",\\\"417\\\": \\\"Value for 417\\\",\\\"418\\\": \\\"Value for 418\\\",\\\"419\\\": \\\"Value for 419\\\",\\\"420\\\": \\\"Value for 420\\\",\\\"421\\\": \\\"Value for 421\\\",\\\"422\\\": \\\"Value for 422\\\",\\\"423\\\": \\\"Value for 423\\\",\\\"424\\\": \\\"Value for 424\\\",\\\"425\\\": \\\"Value for 425\\\",\\\"426\\\": \\\"Value for 426\\\",\\\"427\\\": \\\"Value for 427\\\",\\\"428\\\": \\\"Value for 428\\\",\\\"429\\\": \\\"Value for 429\\\",\\\"430\\\": \\\"Value for 430\\\",\\\"431\\\": \\\"Value for 431\\\",\\\"432\\\": \\\"Value for 432\\\",\\\"433\\\": \\\"Value for 433\\\",\\\"434\\\": \\\"Value for 434\\\",\\\"435\\\": \\\"Value for 435\\\",\\\"436\\\": \\\"Value for 436\\\",\\\"437\\\": \\\"Value for 437\\\",\\\"438\\\": \\\"Value for 438\\\",\\\"439\\\": \\\"Value for 439\\\",\\\"440\\\": \\\"Value for 440\\\",\\\"441\\\": \\\"Value for 441\\\",\\\"442\\\": \\\"Value for 442\\\",\\\"443\\\": \\\"Value for 443\\\",\\\"444\\\": \\\"Value for 444\\\",\\\"445\\\": \\\"Value for 445\\\",\\\"446\\\": \\\"Value for 446\\\",\\\"447\\\": \\\"Value for 447\\\",\\\"448\\\": \\\"Value for 448\\\",\\\"449\\\": \\\"Value for 449\\\",\\\"450\\\": \\\"Value for 450\\\",\\\"451\\\": \\\"Value for 451\\\",\\\"452\\\": \\\"Value for 452\\\",\\\"453\\\": \\\"Value for 453\\\",\\\"454\\\": \\\"Value for 454\\\",\\\"455\\\": \\\"Value for 455\\\",\\\"456\\\": \\\"Value for 456\\\",\\\"457\\\": \\\"Value for 457\\\",\\\"458\\\": \\\"Value for 458\\\",\\\"459\\\": \\\"Value for 459\\\",\\\"460\\\": \\\"Value for 460\\\",\\\"461\\\": \\\"Value for 461\\\",\\\"462\\\": \\\"Value for 462\\\",\\\"463\\\": \\\"Value for 463\\\",\\\"464\\\": \\\"Value for 464\\\",\\\"465\\\": \\\"Value for 465\\\",\\\"466\\\": \\\"Value for 466\\\",\\\"467\\\": \\\"Value for 467\\\",\\\"468\\\": \\\"Value for 468\\\",\\\"469\\\": \\\"Value for 469\\\",\\\"470\\\": \\\"Value for 470\\\",\\\"471\\\": \\\"Value for 471\\\",\\\"472\\\": \\\"Value for 472\\\",\\\"473\\\": \\\"Value for 473\\\",\\\"474\\\": \\\"Value for 474\\\",\\\"475\\\": \\\"Value for 475\\\",\\\"476\\\": \\\"Value for 476\\\",\\\"477\\\": \\\"Value for 477\\\",\\\"478\\\": \\\"Value for 478\\\",\\\"479\\\": \\\"Value for 479\\\",\\\"480\\\": \\\"Value for 480\\\",\\\"481\\\": \\\"Value for 481\\\",\\\"482\\\": \\\"Value for 482\\\",\\\"483\\\": \\\"Value for 483\\\",\\\"484\\\": \\\"Value for 484\\\",\\\"485\\\": \\\"Value for 485\\\",\\\"486\\\": \\\"Value for 486\\\",\\\"487\\\": \\\"Value for 487\\\",\\\"488\\\": \\\"Value for 488\\\",\\\"489\\\": \\\"Value for 489\\\",\\\"490\\\": \\\"Value for 490\\\",\\\"491\\\": \\\"Value for 491\\\",\\\"492\\\": \\\"Value for 492\\\",\\\"493\\\": \\\"Value for 493\\\",\\\"494\\\": \\\"Value for 494\\\",\\\"495\\\": \\\"Value for 495\\\",\\\"496\\\": \\\"Value for 496\\\",\\\"497\\\": \\\"Value for 497\\\",\\\"498\\\": \\\"Value for 498\\\",\\\"499\\\": \\\"Value for 499\\\",\\\"500\\\": \\\"Value for 500\\\"}}\"));\n // Check the 2 responses are as expected\n HttpResponseBean response6 = getNewHttpCallBean1.getResponseObjectsByEnum(com.betfair.testing.utils.cougar.enums.CougarMessageProtocolResponseTypeEnum.RESTJSONXML);\n AssertionUtils.multiAssertEquals(createAsDocument10, response6.getResponseObject());\n AssertionUtils.multiAssertEquals((int) 200, response6.getHttpStatusCode());\n AssertionUtils.multiAssertEquals(\"OK\", response6.getHttpStatusText());\n \n HttpResponseBean response7 = getNewHttpCallBean1.getResponseObjectsByEnum(com.betfair.testing.utils.cougar.enums.CougarMessageProtocolResponseTypeEnum.RESTJSONJSON);\n AssertionUtils.multiAssertEquals(createAsJSONObject11, response7.getResponseObject());\n AssertionUtils.multiAssertEquals((int) 200, response7.getHttpStatusCode());\n AssertionUtils.multiAssertEquals(\"OK\", response7.getHttpStatusText());\n \n // generalHelpers.pauseTest(500L);\n // Check the log entries are as expected\n \n cougarManager1.verifyRequestLogEntriesAfterDate(getTimeAsTimeStamp7, new RequestLogRequirement(\"2.8\", \"simpleMapOperation\"),new RequestLogRequirement(\"2.8\", \"simpleMapOperation\") );\n }", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime &gt;= #{higherSkuParam.startTime}\",\n \"AND s.updateTime &lt;= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}", "public static void groupByProductProcessor (JsonArray jsonArr, List<HashMap<String, Object>> list, Boolean isMain) {\n\t\t\n\t\tHashMap<String, Object> firstOfGroup = list.get(0);\n\t\tJsonObject jsonProduct = new JsonObject();\n\t\tString[] productAttr = {\"productId\",\"productSequenceId\",\"productName\",\"notificationName\"}; \n\t\tString[] freeUnitAttr = {\"freeUnitId\",\"freeUnitName\",\"measureUnit\",\"measureUnitName\"};\n\t\t\n\t\tfor(int i=0;i<productAttr.length;i++){\n\t\t\tif(firstOfGroup.get(productAttr[i])!=null\n\t\t\t\t\t&&StringUtils.isNotBlank(firstOfGroup.get(productAttr[i]).toString())){\n\t\t\t\tif(isMain&&i==0){\n\t\t\t\t\tjsonProduct.addProperty(productAttr[i], firstOfGroup.get(productAttr[i]).toString().substring(0,6));\n\t\t\t\t}else{\n\t\t\t\t\tjsonProduct.addProperty(productAttr[i], firstOfGroup.get(productAttr[i]).toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tHashMap<String, List<HashMap<String, Object>>> groupByFreeUnitMap = new HashMap<String, List<HashMap<String, Object>>>();\n\t\t\n\t\t//grouping by freeUnitId, if it didn't exist -> use unknown for key\n\t\tfor(int i =0;i<list.size();i++) {\n\t\t\tString freeUnitId = \"unknown\";\n\t\t\tif(list.get(i).get(freeUnitAttr[0])!=null&&StringUtils.isNotBlank(list.get(i).get(freeUnitAttr[0]).toString())){\n\t\t\t\tfreeUnitId = list.get(i).get(freeUnitAttr[0]).toString();\n\t\t\t}\n\t\t\tList<HashMap<String, Object>> freeUnitDetail ;\n\t\t\tif(groupByFreeUnitMap.containsKey(freeUnitId)) {\n\t\t\t\tfreeUnitDetail = groupByFreeUnitMap.get(freeUnitId);\n\t\t\t\tfreeUnitDetail.add(list.get(i));\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tfreeUnitDetail = new ArrayList<>();\n\t\t\t\tfreeUnitDetail.add(list.get(i));\n\t\t\t\tgroupByFreeUnitMap.put(freeUnitId, freeUnitDetail);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//freeUnitItemList\n\t\tJsonArray freeUnitArr = new JsonArray();\t\t\n\t\tfor(List<HashMap<String, Object>> freeUnitMap : groupByFreeUnitMap.values()) {\n\t\t\tBoolean isUnlimited = false;\n\t\t\tJsonObject jsonFreeUnitList = new JsonObject();\n\t\t\tHashMap<String, Object> firstFreeUnitOfGroup = freeUnitMap.get(0);\n\t\t\t\n\t\t\tfor(int i=0;i<freeUnitAttr.length;i++){\n\t\t\t\tif(firstFreeUnitOfGroup.get(freeUnitAttr[i])!=null\n\t\t\t\t\t\t&&StringUtils.isNotBlank(firstFreeUnitOfGroup.get(freeUnitAttr[i]).toString())){\n\t\t\t\t\tif(i==0){\n\t\t\t\t\t\tif(firstFreeUnitOfGroup.get(freeUnitAttr[i]).toString().contains(\"_U\")){\n\t\t\t\t\t\t\tisUnlimited = true;\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif((!\"unknown\".equalsIgnoreCase(firstFreeUnitOfGroup.get(freeUnitAttr[i]).toString()))\n\t\t\t\t\t\t\t\t&&firstFreeUnitOfGroup.get(freeUnitAttr[i])!=null\n\t\t\t\t\t\t\t\t&&StringUtils.isNotBlank(firstFreeUnitOfGroup.get(freeUnitAttr[i]).toString())){\n\t\t\t\t\t\tjsonFreeUnitList.addProperty(freeUnitAttr[i], firstFreeUnitOfGroup.get(freeUnitAttr[i]).toString().replaceAll(\"_U\",\"\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(firstFreeUnitOfGroup.get(freeUnitAttr[i])!=null\n\t\t\t\t\t\t\t&&StringUtils.isNotBlank(firstFreeUnitOfGroup.get(freeUnitAttr[i]).toString())){\t\t\t\t\t\n\t\t\t\t\t\tjsonFreeUnitList.addProperty(freeUnitAttr[i], firstFreeUnitOfGroup.get(freeUnitAttr[i]).toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//freeUnitItemDetailList\n\t\t\tJsonArray freeUnitdetailArr = new JsonArray();\n\t\t\tfor(int i=0;i<freeUnitMap.size();i++) {\n\t\t\t\tJsonObject jsonFreeUnitDetail = new JsonObject();\n\t\t\t\tfor (Map.Entry<String, Object> entry : freeUnitMap.get(i).entrySet()) {\n\t\t\t\t\tif((!Arrays.asList(productAttr).contains(entry.getKey())&&!Arrays.asList(freeUnitAttr).contains(entry.getKey()))\n\t\t\t\t\t\t\t&&(entry.getValue()!=null&&StringUtils.isNotBlank(entry.getValue().toString()))){\n\t\t\t\t\t\tif(isUnlimited && entry.getKey().toString().equalsIgnoreCase(\"initialAmount\")){\n\t\t\t\t\t\t\tjsonFreeUnitDetail.addProperty(entry.getKey().toString(), \"Unlimited\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tjsonFreeUnitDetail.addProperty(entry.getKey().toString(), entry.getValue().toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfreeUnitdetailArr.add(jsonFreeUnitDetail);\t\n\t\t\t}\n\t\t\t\n\t\t\tjsonFreeUnitList.add(\"freeUnitItemDetailList\", freeUnitdetailArr);\n\t\t\tfreeUnitArr.add(jsonFreeUnitList);\n\t\t}\n\t\tjsonProduct.add(\"freeUnitItemList\", freeUnitArr);\n\t\t\n\t\tAFLog.d(jsonProduct.toString());\n\t\tjsonArr.add(jsonProduct);\n\t}", "@Test\n\tpublic void populate_map() {\n\t\t//Arrange\n\t\t//testSteve.populateProductMap();\n\t\t\n\t\t//Act\n\t\ttestSteve.populateProductMap();\n\t\t\n\t\t//Assert\n\t\tAssert.assertEquals(testSteve.getProductGenerator().size(), (16));\n\t}", "@Override\n\tpublic DataTablesResponseInfo getMaterielInfo(Map<String, Object> map) {\n\t\tDataTablesResponseInfo info = new DataTablesResponseInfo();\n\t\tinfo.setData(purchaseDao.getMaterielInfo(map));\n\t\treturn info;\n\t}", "@Override\n public JSONObject getGSTRuleSetup(JSONObject requestParams) throws ServiceException, ParseException, com.krawler.utils.json.base.JSONException {\n JSONObject finalReturnObj = new JSONObject();\n try {\n String storeRec = \"\";\n JSONObject jMeta = new JSONObject();\n JSONArray jarrColumns = new JSONArray();\n JSONArray jarrRecords = new JSONArray();\n JSONObject jobjTemp = new JSONObject();\n JSONArray dataJArr = new JSONArray();\n JSONArray pagedJson = new JSONArray();\n\n /**\n * Create Column model\n */\n HashMap<String, Object> fieldParamsRequestMap = new HashMap<>();\n ArrayList fieldParamsfilter_names = new ArrayList();\n ArrayList fieldParamsfilter_params = new ArrayList();\n\n KwlReturnObject KWLObj = accountingHandlerDAOobj.getObject(Company.class.getName(), requestParams.optString(Constants.companyKey));\n Company company = (Company) KWLObj.getEntityList().get(0);\n String countryid = company.getCountry().getID();\n requestParams.put(\"countryid\", countryid);\n\n fieldParamsfilter_names.add(Constants.FIELDPARAMS_ISACTIVATE);\n fieldParamsfilter_params.add(1);\n fieldParamsfilter_names.add(Constants.GST_CONFIG_TYPE);\n fieldParamsfilter_params.add(Constants.GST_CONFIG_ISFORGST);\n fieldParamsfilter_names.add(Constants.moduleid);\n fieldParamsfilter_params.add(Constants.GSTModule);\n fieldParamsfilter_names.add(\"companyid\");\n fieldParamsfilter_params.add(requestParams.optString(\"companyid\"));\n fieldParamsRequestMap.put(Constants.filterNamesKey, fieldParamsfilter_names);\n fieldParamsRequestMap.put(Constants.filterParamsKey, fieldParamsfilter_params);\n KwlReturnObject result = accEntityGstDao.getChildFieldParamsForGSTRule(fieldParamsRequestMap);\n List<FieldParams> fieldParamses = result.getEntityList();\n for (FieldParams fieldParams : fieldParamses) {\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", fieldParams.getFieldlabel());\n jobjTemp.put(\"dataIndex\", \"shippedLoc\" + fieldParams.getGSTMappingColnum());\n jobjTemp.put(\"align\", \"center\");\n jobjTemp.put(\"width\", 150);\n jobjTemp.put(\"pdfwidth\", 150);\n jarrColumns.put(jobjTemp);\n //Records\n jobjTemp = new JSONObject();\n jobjTemp.put(\"name\", \"shippedLoc\" + fieldParams.getGSTMappingColnum());\n jarrRecords.put(jobjTemp);\n }\n\n JSONObject params = new JSONObject();\n params.put(\"termType\", 7);\n params.put(\"companyid\", requestParams.optString(\"companyid\"));\n params.put(\"isInput\", requestParams.optBoolean(\"isSales\"));\n /**\n * get GST master\n */\n\n KwlReturnObject kwlReturnObject = accEntityGstDao.getGSTTermDetails(params);\n List<LineLevelTerms> lineLevelTerms = kwlReturnObject.getEntityList();\n Map<String, String> GSTTermMap = new HashMap();\n for (LineLevelTerms lineLevelTerms1 : lineLevelTerms) {\n /**\n * Create Map for Term Id,Name\n */\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", lineLevelTerms1.getTerm());\n jobjTemp.put(\"dataIndex\", lineLevelTerms1.getId());\n jobjTemp.put(\"align\", \"center\");\n jobjTemp.put(\"width\", 150);\n jobjTemp.put(\"renderer\", \"WtfGlobal.gstdecimalRenderer\");\n jobjTemp.put(\"pdfwidth\", 150);\n jarrColumns.put(jobjTemp);\n //Records\n jobjTemp = new JSONObject();\n jobjTemp.put(\"name\", lineLevelTerms1.getId());\n jarrRecords.put(jobjTemp);\n }\n /**\n * ERP-34044\n */\n if(countryid.equals(String.valueOf(Constants.indian_country_id))){\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\",\"\" );\n jobjTemp.put(\"dataIndex\", \"groupTerm\");\n jarrColumns.put(jobjTemp);\n //Records\n jobjTemp = new JSONObject();\n jobjTemp.put(\"name\", \"groupTerm\");\n jarrRecords.put(jobjTemp);\n }\n /**\n * get rule data from table\n */\n requestParams.put(\"df\", authHandler.getDateOnlyFormat());\n JSONObject dataObj = getEntityRuleSetup(requestParams);\n dataJArr = dataObj.optJSONArray(\"dataArr\");\n\n pagedJson = dataJArr;\n finalReturnObj.put(\"totalCount\", dataJArr.length());\n finalReturnObj.put(\"columns\", jarrColumns);\n finalReturnObj.put(\"coldata\", pagedJson);\n jMeta.put(\"totalProperty\", \"totalCount\");\n jMeta.put(\"root\", \"coldata\");\n jMeta.put(\"fields\", jarrRecords);\n finalReturnObj.put(\"metaData\", jMeta);\n boolean isExport = false;\n if (requestParams.has(\"isExport\")) {\n isExport = Boolean.parseBoolean(requestParams.optString(\"isExport\"));\n }\n if (isExport) {\n finalReturnObj.put(\"data\", dataJArr);\n }\n } catch (ServiceException | com.krawler.utils.json.base.JSONException ex) {\n Logger.getLogger(AccGstServiceImpl.class.getName()).log(Level.INFO, ex.getMessage());\n } catch (SessionExpiredException ex) {\n Logger.getLogger(AccGstServiceImpl.class.getName()).log(Level.SEVERE, null, ex);\n }\n return finalReturnObj;\n }", "@Override\r\n\tpublic Map<Long, Item> getCatalogoUnidades() {\r\n\t\tMap<Long, Item> unidades = new HashMap<Long, Item>();\r\n\t\tList<Map<String, Object>> rows = jdbcTemplate.queryForList(\"select u.id as codigo, u.descripcion as descripcion from registro_cobranza.cu_cat_uc u where u.id in (select unidad_id from sccl.unidades group by unidad_id)\");\r\n\t\tfor(Map<String, Object> row : rows){\r\n\t\t\tunidades.put((Long)row.get(\"codigo\"), new Item((Long)row.get(\"codigo\"),(String)row.get(\"descripcion\")));\r\n\t\t}\r\n\t\treturn unidades;\r\n\t}", "@ApiStatus.Internal\n @NotNull\n public Map<String, Object> getData() {\n return data;\n }", "@Override\n public void flatMap1(String input1_value, Collector<String> out) {\n JSONObject originalJSON = JSONObject.parseObject(input1_value);\n String appId= originalJSON.getString(\"appId\");\n String userId = originalJSON.getString(\"userId\");\n String userName= dimMap.get(\"userMap\").get(userId);\n String funcId = originalJSON.getString(\"funcId\");\n String orgCode = originalJSON.getString(\"orgCode\");\n String orgName = \"\";\n String stropDate = originalJSON.getString(\"opDate\");\n String funcName = dimMap.get(\"funcMap\").get(funcId);\n\n JSONObject jsondata = geneJSONData(appId,funcId,funcName,stropDate,orgCode,orgName,userId,userName);\n//System.out.println(jsondata.toJSONString());\n\n out.collect(jsondata.toJSONString());\n\n }", "private void extractDataPackage() {\n ArrayList<Parcelable> arrayListBundle = new ArrayList<Parcelable>();\n arrayListBundle = getIntent().getParcelableArrayListExtra(\"usersList\");\n\n UserEntity userEntity;\n StringBuilder builder = new StringBuilder();\n\n for (Parcelable bundle : arrayListBundle) {\n\n //Tracking Data by UserEntity Object ;\n userEntity = (UserEntity) bundle;\n //Set StringBuilder Object ;\n builder.append(userEntity.getId() + \" : \" + userEntity.getUsername() + \" / \" + userEntity.getEmailAddress() + \" / \" + userEntity.getPhoneNumber() + \" / \" + userEntity.getJobTitle() + \"\\n\\n\");\n }\n extractedData = builder.toString();\n }", "@Override\n public void loadAdd2CartProductData() {\n mAdd2CartPresenter.loadAdd2CartProductData();\n }", "private void initValues(){\n\t\tProduct p = GetMockEnitiy.getProduct();\n\t\t\n\t\tString s = JSONhelper.toJSON(p);\n\t\ttvJSON.setText(s);\n\t\t\n\t}", "private JSONObject getGSTR3B_Section_5_3_Data(JSONObject params, String companyId, JSONArray dataJArr) throws JSONException, ServiceException {\n JSONObject reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"isRCMApplicable\", false);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_ZeroPercenatge);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA + \",\" + Constants.CUSTVENTYPE_SEZ + \",\" + Constants.CUSTVENTYPE_SEZWOPAY + \",\" + Constants.CUSTVENTYPE_Import);\n reqParams.put(\"itctype\", Constants.GST_ITCTYPE_DEFAULT+\",\"+Constants.GST_ITCTYPE_REVERSED);\n reqParams.put(\"typeofjoinisleft\", true);\n JSONObject jSONObject = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_INVOICE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n jSONObject = getGoodsReceiptForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = jSONObject.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n }\n /**\n * Vendor DN\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"isRCMApplicable\", false);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_ZeroPercenatge);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA + \",\" + Constants.CUSTVENTYPE_SEZ + \",\" + Constants.CUSTVENTYPE_SEZWOPAY + \",\" + Constants.CUSTVENTYPE_Import);\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.remove(\"cnentityValue\");\n JSONObject temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n temp = getDNForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n\n }\n\n /**\n * Vendor CN\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"isRCMApplicable\", false);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_ZeroPercenatge);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA + \",\" + Constants.CUSTVENTYPE_SEZ + \",\" + Constants.CUSTVENTYPE_SEZWOPAY + \",\" + Constants.CUSTVENTYPE_Import);\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"onlycnagainstvendor\", true);\n temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n temp = getDNForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n jSONObject.put(\"tableno\", \"\");\n jSONObject.put(\"particulars\", GSTRConstants.GSTR3B_SECTION_5_3);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"enableViewDetail\", true);\n dataJArr.put(jSONObject);\n }\n return jSONObject;\n }", "@JsonSetter(\"product_details\")\n public void setProductDetails (ProductData value) { \n this.productDetails = value;\n }", "private void updateTargetProductGeocoding() {\n }", "@Test\n public void crawleProductSize() throws Exception {\n String url = \"https://www.net-a-porter.com/cn/en/product/1048811/fendi/mon-tresor-embroidered-leather-bucket-bag\" ;\n NetCrawingProductSizes crawingProductSizes = new NetCrawingProductSizes() ;\n NetProductDetailPage productDetailPage = crawingProductSizes.crawle(url, \"https://www.net-a-porter.com\") ;\n System.out.println(productDetailPage) ;\n\n ObjectMapper mapper = new ObjectMapper();\n List<NetProductDetailPage.OptionJson> options = mapper.readValue(productDetailPage.options, new TypeReference<List<NetProductDetailPage.OptionJson>>(){});\n System.out.println(options);\n\n }", "@Override\n public void parseJSON(JSONObject jsonObject) {\n if (jsonObject.has(\"business\"))\n try {\n JSONObject businessJsonObject = jsonObject.getJSONObject(\"business\");\n this.businessId = businessJsonObject.getString(\"_id\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n if (jsonObject.has(\"_id\"))\n try {\n this.foodlogiqId = jsonObject.getString(\"_id\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n if (jsonObject.has(\"name\"))\n try {\n this.name = jsonObject.getString(\"name\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n if (jsonObject.has(\"associateWith\"))\n try {\n this.associateWith = jsonObject.getString(\"associateWith\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n if (jsonObject.has(\"attributes\"))\n try {\n this.attributes = new ArrayList<>();\n JSONArray attributesJson = jsonObject.getJSONArray(\"attributes\");\n for (int i = 0; i < attributesJson.length(); i++) {\n JSONObject attributeJson = attributesJson.getJSONObject(i);\n CustomAttribute attribute = new CustomAttribute();\n attribute.parseJSON(attributeJson);\n this.attributes.add(attribute);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "private JSONObject getGSTR3B_Section_3_1_E_Data(JSONObject params, String companyId, JSONArray dataJArr) throws JSONException, ServiceException {\n JSONObject jSONObject = new JSONObject();\n JSONObject reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA );\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Non_GST_Product);\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_INVOICE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n jSONObject = getInvoiceForGSTR3BNillRated(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = jSONObject.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n }\n /**\n * Debit Note-\n * REGTYPE:Regular,Composition,Unregistered.CUSTTYPE:NA,Export,ExportWOPAY,SEZ,SEZWOPAY.\n * Product Tax Class: NON-GST.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Non_GST_Product);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA );\n JSONObject temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n temp = getDNAgainstSalesForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n\n }\n /**\n * Credit Note-\n * REGTYPE:Regular,Composition,Unregistered.CUSTTYPE:NA,Export,ExportWOPAY,SEZ,SEZWOPAY.\n * Product Tax Class: NON-GST.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Non_GST_Product);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n temp = getCNForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n }\n\n /**\n * Advance Liability-\n * REGTYPE:Regular,Composition,Unregistered.CUSTTYPE:NA,Export,ExportWOPAY,SEZ,SEZWOPAY.\n * Product Tax Class: NON-GST.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Non_GST_Product);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n JSONObject tempObj = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_PAYMENT_RECEIPT || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n tempObj = getTaxLiabilityOnAdvance(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = tempObj.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n temp = tempObj.optJSONObject(\"gstr3Obj\");\n double totaltaxamt = temp.optDouble(\"csgst3b\", 0.0) + temp.optDouble(\"cgst3b\", 0.0) + temp.optDouble(\"sgst3b\", 0.0) + temp.optDouble(\"igst3b\", 0.0);\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt3b\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst3b\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst3b\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst3b\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst3b\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + totaltaxamt), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"taxableamt3b\", 0.0) + totaltaxamt), companyId));\n }\n /**\n * Adjusted Advance-\n * REGTYPE:Regular,Composition,Unregistered.CUSTTYPE:NA,Export,ExportWOPAY,SEZ,SEZWOPAY.\n * Product Tax Class: NON-GST.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Non_GST_Product);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA );\n tempObj = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_PAYMENT_RECEIPT || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n tempObj = getAdjustedAdvance(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = tempObj.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n temp = tempObj.optJSONObject(\"gstr3Obj\");\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n\n jSONObject.put(\"tableno\", \"\");\n jSONObject.put(\"particulars\", GSTRConstants.GSTR3B_SECTION_3_1_E);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"enableViewDetail\", true);\n dataJArr.put(jSONObject);\n }\n return jSONObject;\n }", "@Override\n public HashMap<String, Object> toMap() {\n\n HashMap<String,Object> hashMap=new HashMap<>();\n hashMap.put(ApodClientAPI.APOD_START_DATE,APOD_START_DATE);\n hashMap.put(ApodClientAPI.APOD_END_DATE,APOD_END_DATE);\n hashMap.put(ApodClientAPI.APOD_API_KEY,ApodClientAPI.APOD_API_KEY_VALUE);\n\n\n return hashMap;\n }", "public ProductoDTO(){\r\n\t\t\r\n\t}", "@Override\n\tpublic JSONObject getJSONObject() throws JSONException {\n\t\tJSONObject jsonObj = super.getJSONObject();\n\t\tif (this.isAudit){\n\t JSONDataUtil.put(jsonObj, COLUMN_RESULT_PRODUCT_ROW_ID, this.resultProductRowId); \n }else{\n JSONDataUtil.put(jsonObj, COLUMN_RESULT_PRODUCT_ROW_ID, this.productRowID); \n }\n\t\t\n\t\tJSONDataUtil.put(jsonObj, ATT_JOB_NO, this.jobNo);\n\t\tif (this.marketPriceID == 0){\n\t\t\tJSONDataUtil.put(jsonObj, COLUMN_MARKET_PRICE_ID, \"null\");//is null = empty\n\t\t}else{\n\t\t\tJSONDataUtil.put(jsonObj, COLUMN_MARKET_PRICE_ID, this.marketPriceID);\n\t\t}\n\t\t\n\t\tJSONDataUtil.put(jsonObj, \"godownId\", this.customerSurveySiteID);\n\t\t\n\t\t\n\t\t//JSONDataUtil.put(jsonObj, COLUMN_MARKET_PRICE,this.marketPrice);\n\t\t/*\n\t\t * skip \"productType\", \"itemNo\", \"productValueText\", \"jobRequestID\", \"productGroup\", \"productRowId\"\n\t\t * public final static String COLUMN_PRODUCT_TYPE = \"productType\";\n\t\t * public final static String COLUMN_ITEM_NO = \"itemNo\";\n\t\t public final static String COLUMN_PRODUCT_VALUE_TEXT = \"productValueText\";\n\t\t public final static String COLUMN_JOB_REQUEST_ID = \"jobRequestID\";\n\t\t public final static String COLUMN_PRODUCT_ROW_ID = \"productRowId\";\n\t\t public final static String COLUMN_PRODUCT_GROUP = \"productGroup\";\n\t\t */\n\t\tjsonObj.remove(COLUMN_JOB_NO);\n\t\tjsonObj.remove(COLUMN_PRODUCT_TYPE);\n\t\tjsonObj.remove(COLUMN_ITEM_NO);\n\t\tjsonObj.remove(COLUMN_PRODUCT_VALUE_TEXT);\n\t\tjsonObj.remove(COLUMN_JOB_REQUEST_ID);\n\t\tjsonObj.remove(COLUMN_PRODUCT_ROW_ID);\n\t\tjsonObj.remove(COLUMN_PRODUCT_GROUP);\n\n\t\treturn jsonObj;\n\t}", "private Map<String, String> getMapParams(CovidData covidData) {\n Map<String, String> params = new HashMap<>();\n params.put(\"borough\", covidData.getDistrict());\n params.put(\"datatype\", this.dataType); // Hard coded for each dataset type\n params.put(\"longitude\", covidData.getLoc().getLongitude());\n params.put(\"latitude\", covidData.getLoc().getLatitude());\n params.put(\"Feature\", \"Feature\");\n params.put(\"Point\", \"Point\");\n params.put(\"value\", String.valueOf(covidData.getNewCases()));\n params.put(\"percentageOfTotal\", String.valueOf(((covidData.getNewCases()/percentageOfTotal)*100)));\n return params;\n }", "public ShareContactData(Map data) {\n // optional data, but at least one exist\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_NAME)) this.name = data.get(Tokens.JS_TOKEN_CONTACT_NAME).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_MOBILE)) this.mobile = data.get(Tokens.JS_TOKEN_CONTACT_MOBILE).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_EMAIL)) this.email = data.get(Tokens.JS_TOKEN_CONTACT_EMAIL).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_COMPANY)) this.company = data.get(Tokens.JS_TOKEN_CONTACT_COMPANY).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_POSTAL)) this.postal = data.get(Tokens.JS_TOKEN_CONTACT_POSTAL).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_JOB)) this.job = data.get(Tokens.JS_TOKEN_CONTACT_JOB).toString();\n if (data.containsKey(Tokens.JS_TOKEN_DETAIL)) this.detail = data.get(Tokens.JS_TOKEN_DETAIL).toString();\n }", "public static void populateData() {\n\n }", "@JsonGetter(\"product_details\")\n public ProductData getProductDetails ( ) { \n return this.productDetails;\n }", "private JSONObject getGSTR3B_Section_5_1_Data(JSONObject params, String companyId, JSONArray dataJArr) throws JSONException, ServiceException {\n JSONObject reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Exempted);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA + \",\" + Constants.CUSTVENTYPE_SEZ + \",\" + Constants.CUSTVENTYPE_SEZWOPAY + \",\" + Constants.CUSTVENTYPE_Import);\n reqParams.put(\"itctype\", Constants.GST_ITCTYPE_DEFAULT+\",\"+Constants.GST_ITCTYPE_REVERSED);\n JSONObject jSONObject = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_INVOICE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n jSONObject = getGoodsReceiptForGSTR3BNonGST(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = jSONObject.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n }\n /**\n * Vendor DN\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"isRCMApplicable\", false);\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Exempted);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA + \",\" + Constants.CUSTVENTYPE_SEZ + \",\" + Constants.CUSTVENTYPE_SEZWOPAY + \",\" + Constants.CUSTVENTYPE_Import);\n reqParams.remove(\"cnentityValue\");\n JSONObject temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n temp = getDNForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n }\n /**\n * Vendor CN\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"isRCMApplicable\", false);\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Exempted);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA + \",\" + Constants.CUSTVENTYPE_SEZ + \",\" + Constants.CUSTVENTYPE_SEZWOPAY + \",\" + Constants.CUSTVENTYPE_Import);\n reqParams.put(\"onlycnagainstvendor\", true);\n temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n temp = getDNForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n jSONObject.put(\"tableno\", \"\");\n jSONObject.put(\"particulars\", GSTRConstants.GSTR3B_SECTION_5_1);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"enableViewDetail\", true); \n }\n /**\n * Purchase Invoice- REGTYPE:Unregistered.CUSTTYPE:NA. ERP-40740\n * Interstate/Intrastate: Both. RCM : FALSE.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"isGSTINnull\", true);\n reqParams.put(\"isRCMApplicable\", false);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Percenatge);\n temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_INVOICE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n temp = getGoodsReceiptForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n jSONObject.put(\"tableno\", \"\");\n jSONObject.put(\"particulars\", GSTRConstants.GSTR3B_SECTION_5_1);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"enableViewDetail\", true);\n }\n /**\n * Vendor DN (ERP-40740)\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Unregistered);\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Percenatge);\n reqParams.remove(\"cnentityValue\");\n temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n temp = getDNForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n jSONObject.put(\"tableno\", \"\");\n jSONObject.put(\"particulars\", GSTRConstants.GSTR3B_SECTION_5_1);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"enableViewDetail\", true);\n }\n /**\n * Vendor CN (ERP-40740)\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Unregistered);\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Percenatge);\n reqParams.put(\"onlycnagainstvendor\", true);\n temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n /**\n * For GSTR3B-Detail View.\n */\n temp = getDNForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n jSONObject.put(\"tableno\", \"\");\n jSONObject.put(\"particulars\", GSTRConstants.GSTR3B_SECTION_5_1);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"enableViewDetail\", true);\n dataJArr.put(jSONObject);\n }\n return jSONObject;\n }", "List<Map<String, String>> getEmptyRoomList(RealtorProductDTO realtorProductDTO);", "public void rebuildJson(Long id, String filter) {\n List<Product> products = new ArrayList<>();\n if (id > 0) {\n Product product = productRepository.find(id);\n if (product != null) {\n products.add(product);\n }\n } else {\n List<Product> prods = productRepository.all().filter(filter).fetch();\n if (prods != null && prods.size() > 0) {\n products.addAll(prods);\n }\n }\n final AtomicInteger count = new AtomicInteger(products.size());\n final AtomicInteger progress = new AtomicInteger(0);\n products.forEach(\n product -> {\n LOG.debug(\n String.format(\n \"Process %04d|%d %s\",\n progress.incrementAndGet(), count.get(), product.getCode()));\n String attr = product.getAttrs();\n if (attr != null) {\n JsonReader jsonReader = Json.createReader(new StringReader(attr));\n JsonObject attrJsonObject = jsonReader.readObject();\n String url = attrJsonObject.getString(\"variant_url\");\n if (url != null) {\n\n Map<String, String> variantMap =\n Stream.of(url.split(\"&\"))\n .map(str -> str.split(\"=\"))\n .collect(toMap(entry -> entry[0], entry -> entry[1]));\n JsonObjectBuilder variantObj = getBuilder();\n variantMap\n .entrySet()\n .forEach(\n e -> {\n String code = e.getValue();\n String name = attrJsonObject.getString(e.getKey());\n variantObj.add(\n e.getKey(), getBuilder().add(\"code\", code).add(\"name\", name).build());\n });\n JsonObjectBuilder newAttrs = getBuilder();\n attrJsonObject.entrySet().forEach(e -> newAttrs.add(e.getKey(), e.getValue()));\n newAttrs.add(\"variant_props\", variantObj.build());\n // String attrsString = newAttrs.build().toString();\n product.setAttrs(newAttrs.build().toString());\n productRepository.save(product);\n }\n }\n });\n }", "@RequestMapping(value = \"/detail\", method = RequestMethod.POST)\n public RetResult<Map> detail(@RequestBody Map<String,String> map) throws IOException {\n String id = String.valueOf(map.get(\"id\"));\n AffiliationsMysqlBean affiliationsMysqlBean = affiliationsMapper.getDataById(id);\n\n Map<String, Object> affiliationsEsBean = mySqlBeanToEsBean(affiliationsMysqlBean);\n //retResult.setCode(20000).setMsg(\"SUCCESS\").setData(affiliationsMysqlBean);\n return RetResponse.makeOKRsp(affiliationsEsBean);\n }", "@Override\n public ArrayList<MultipleItemEntity> convert() {\n\n ArrayList<MultipleItemEntity> dataList = new ArrayList<>();\n\n final int status = JSON.parseObject(getJsonData()).getInteger(\"status\");\n switch (status){\n case 0:\n final int pageNum = JSON.parseObject(getJsonData()).getJSONObject(\"data\").getInteger(\"pageNum\");\n final JSONObject object = JSON.parseObject(getJsonData()).getJSONObject(\"data\");\n\n final JSONArray dataArray = object.getJSONArray(\"list\");\n\n final int size = dataArray.size();\n if (pageNum == 1) {\n mCommentId.clear();\n }\n for (int i = 0;i<size;i++){\n final JSONObject data = dataArray.getJSONObject(i);\n final int id = data.getInteger(\"id\");\n mCommentId.add(id);\n final String avatar = data.getString(\"avatar\");\n final int userId = data.getInteger(\"userId\");\n final String userName = data.getString(\"username\");\n final String content = data.getString(\"content\");\n// final Date createTime= data.getDate(\"createTime\");\n final String createTime= data.getString(\"createTime\");\n\n\n final MultipleItemEntity entity = MultipleItemEntity.builder()\n .setField(MultipleFields.ITEM_TYPE, ItemType.COMMENT_PROMO)\n .setField(MultipleFields.ID,id)\n .setField(MultipleFields.USER_ID,userId)\n .setField(MultipleFields.USER_NAME,userName)\n .setField(MultipleFields.AVATAR,avatar)\n .setField(MultipleFields.CREATE_TIME,createTime)\n .setField(MultipleFields.CONTENT,content)\n .build();\n\n dataList.add(entity);\n }\n break;\n default:\n final String message = JSON.parseObject(getJsonData()).getString(\"msg\");\n Toast.makeText(Higo.getApplicationContext(),message,Toast.LENGTH_LONG).show();\n HigoLogger.d(\"DATALIST\",dataList);\n break;\n }\n\n return dataList;\n }", "void populateData();", "@Override\n\t\t\t\tprotected LibProducts parseResponse(String rawJsonData,\n\t\t\t\t\t\tboolean isFailure) throws Throwable {\n\t\t\t\t\treturn gson.fromJson(rawJsonData, LibProducts.class);\n\t\t\t\t}", "protected abstract void processDTO();", "@ServiceMethod(name = \"WebServiceStoreProduct\")\r\n\tpublic IResponseHandler webServiceStoreProduct(StoreProductDTO dto)\r\n\t{\t\r\n\t\tStoreProductOutDTO outDTO = new StoreProductOutDTO();\r\n\t\tList<StoreProduct> sps =getStoreProduct(dto);\r\n\t\t\r\n\t\tfor(StoreProduct sp : sps)\r\n\t\t{\r\n\t\t\tdto = new StoreProductDTO();\r\n\t\t\t\r\n\t\t\toutDTO.getStoreProducts().add(dto.assemble(sp));\r\n\t\t}\r\n\t\t\t\t\r\n\t\treturn outDTO;\r\n\t}", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n getHome_aDataFromMap((Map<String,Object>) dataSnapshot.getValue());\n }", "public SetupData getMapWithValues() {\n\tSetupData updatedMap = SetupData.create(setupDefinition);\n\n\tfor (String key : panels.keySet()) {\n\t FieldPanel panel = panels.get(key);\n\t FieldValue value = panel.getOption();\n\t if (value == null) {\n\t\tSpecsLogs.getLogger().warning(\"value is null.\");\n\t\t// No valid value for the table\n\t\tcontinue;\n\t }\n\t updatedMap.put(key, value);\n\t}\n\n\treturn updatedMap;\n }", "@Override\n\tpublic Map<String, Object> updateProduction(Production production) {\n\t\treturn null;\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 }", "private void loadData() {\n RetrofitHelper.getInstance().getNearbyItems(new Observer<MainItemListBean>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(MainItemListBean mainItemListBean) {\n if (refreshLayout.getState() == RefreshState.Refreshing) {\n dataBeans.clear();\n }\n dataBeans.addAll(mainItemListBean.getData());\n if (dataBeans.isEmpty()) {\n emptyView.setVisibility(View.VISIBLE);\n } else {\n emptyView.setVisibility(View.GONE);\n }\n adapter.setData(dataBeans);\n }\n\n @Override\n public void onError(Throwable e) {\n e.printStackTrace();\n endLoading();\n }\n\n @Override\n public void onComplete() {\n endLoading();\n }\n }, longitude, latitude, maxDistance, page, category);\n }" ]
[ "0.5710336", "0.5558113", "0.5519186", "0.54597944", "0.5425615", "0.5379281", "0.5351705", "0.52405626", "0.52044624", "0.5201011", "0.5158075", "0.5137141", "0.5135715", "0.51118207", "0.50960624", "0.5086088", "0.50822854", "0.5070475", "0.50556237", "0.5034732", "0.50341916", "0.5013668", "0.5002688", "0.49806595", "0.49745688", "0.49709672", "0.49672738", "0.49591783", "0.49567354", "0.4943192", "0.49303564", "0.49228513", "0.49206948", "0.49120924", "0.4908552", "0.49024767", "0.48922938", "0.48888105", "0.48873624", "0.48870108", "0.48835045", "0.48806253", "0.48641732", "0.48624113", "0.48492277", "0.4847526", "0.48467517", "0.48457024", "0.4836652", "0.48288488", "0.4826885", "0.48248705", "0.48184073", "0.48157102", "0.48108384", "0.4810171", "0.4798584", "0.4793474", "0.47902414", "0.47891125", "0.47890225", "0.47824162", "0.47798336", "0.47784418", "0.47766882", "0.47743642", "0.47654718", "0.47500375", "0.47465667", "0.47442856", "0.47426343", "0.4739466", "0.47381425", "0.47289017", "0.47234285", "0.4714539", "0.47134376", "0.4712964", "0.4712038", "0.47062278", "0.47033253", "0.46943444", "0.46871436", "0.46867839", "0.46855697", "0.4678774", "0.46761638", "0.4671995", "0.46702293", "0.46677366", "0.46673506", "0.466139", "0.4659473", "0.46591097", "0.46570623", "0.46555278", "0.46426228", "0.4632419", "0.46307594", "0.46272975" ]
0.6805686
0
/ Not used right now Under development, need for query
public String addAdvertiserAccount(){ log.info("In addAdvertiserAccount method of SmartCampaignPlannerAction .."); ISmartCampaignPlannerService service = (ISmartCampaignPlannerService) BusinessServiceLocator.locate(ISmartCampaignPlannerService.class); try{ sessionDTO = (SessionObjectDTO) session.get("sessionDTO"); if(sessionDTO !=null ){ String name = request.getParameter("name").trim(); String address = request.getParameter("address"); String phone = request.getParameter("phone").trim(); String fax = request.getParameter("fax").trim(); String email = request.getParameter("email").trim(); String zip = request.getParameter("zip").trim(); String accountType=LinMobileConstants.ADVERTISER_ID_PREFIX; String dfpNetworkCode=LinMobileConstants.LIN_MOBILE_DFP_NETWORK_CODE; IUserService userService=(IUserService) BusinessServiceLocator.locate(IUserService.class); List<CompanyObj> userCompanyList=userService.getSelectedCompaniesByUserId(sessionDTO.getUserId()); if(userCompanyList!=null && userCompanyList.size()>0){ CompanyObj companyObj=null; if(userCompanyList.size()>1){ for(CompanyObj company:userCompanyList){ if(company.getAdServerId().contains(dfpNetworkCode)){ companyObj=company; break; } } } if(companyObj==null){ //Assign first company if , there is only one company to this user // or all the companies assigned to this user don't have company with LIN_MOBILE_DFP_NETWORK_CODE companyObj=userCompanyList.get(0); } // Right now we are setting up on LIN Mobile new DFP.... if(companyObj==null || dfpNetworkCode==null){ companyObj=userCompanyList.get(0); } //advertisersObj = service.addAdvertiser(name, address, phone, fax, email, zip,sessionDTO.getUserId(),accountType); accountObj = service.addAccount(name, address,accountType, phone, fax, email, zip,sessionDTO.getUserId(),dfpNetworkCode,companyObj); if(accountObj!=null){ return Action.SUCCESS; }else{ return Action.ERROR; } }else{ throw new Exception("No company exist for this user, please assign a company first to this user."); } }else{ throw new Exception("Invalid user or session not exist.."); } }catch(Exception e){ log.severe("Exception in addAdvertiser method of SmartCampaignPlannerAction"+e.getMessage()); return Action.ERROR; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "private void searchFunction() {\n\t\t\r\n\t}", "private void montaQuery(Publicacao object, Query q) {\t\t\n\t}", "private boolean inDatabase() {\r\n \t\treturn inDatabase(0, null);\r\n \t}", "public void method_4270() {}", "private DbQuery() {}", "public void Query() {\n }", "private static HashSet<String> simpleExecution(Query query, OntModel ontologie) {\n HashSet<String> propertySet = new HashSet<>();\n try (QueryExecution qexec = QueryExecutionFactory.create(query, ontologie)) {\n ResultSet results = qexec.execSelect();\n int i = 0;\n while (results.hasNext()) {\n propertySet.add(results.next().getResource(\"prop\").getURI());\n\n i++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return propertySet;\n }", "private static final String FIND_ALL() {\r\n\t\treturn \"from Shipping3VO vo \";\r\n\t}", "private void querys() {\n\t try {\r\n\t\tBoxYieldRptFactory.getRemoteInstance().SteDate();\r\n\t } catch (EASBizException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t } catch (BOSException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}", "@Test\n public void test3() throws Exception {\n String jpql = \"SELECT c FROM Course c where SQL('course_mapped ->> ''?'' = ''Second one''',c.name) \";\n Query q = em.createQuery(jpql, Course.class);\n List<Course> courses = q.getResultList();\n Assert.assertEquals(1, courses.size());\n Assert.assertEquals(\"Second one\", courses.get(0).getCourseMapped().getName());\n\n }", "@Override\n public void perish() {\n \n }", "protected OpinionFinding() {/* intentionally empty block */}", "private interface ProfileQuery {\n String[] PROJECTION = {\n ContactsContract.CommonDataKinds.Email.ADDRESS,\n ContactsContract.CommonDataKinds.Email.IS_PRIMARY,\n };\n\n int ADDRESS = 0;\n int IS_PRIMARY = 1;\n }", "protected String getQueryIdentifier() {\n \t\treturn null;\n \t}", "@Override\n\tpublic void queryPoints() {\n\n\t}", "private void poetries() {\n\n\t}", "private void getScholsFromDatabase() {\n schols = new Select().all().from(Scholarship.class).execute();\n }", "private String createFindAll() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"SELECT \");\n\t\tsb.append(\" * \");\n\t\tsb.append(\" FROM \");\n\t\tsb.append(type.getSimpleName());\n\t\treturn sb.toString();\n\t}", "private void addQueries(String query){\n ArrayList <String> idsFullSet = new ArrayList <String>(searchIDs);\n while(idsFullSet.size() > 0){\n ArrayList <String> idsSmallSet = new ArrayList <String>(); \n if(debugMode) {\n System.out.println(\"\\t Pmids not used in query available : \" + idsFullSet.size());\n }\n idsSmallSet.addAll(idsFullSet.subList(0,Math.min(getSearchIdsLimit(), idsFullSet.size())));\n idsFullSet.removeAll(idsSmallSet);\n String idsConstrain =\"\";\n idsConstrain = idsConstrain(idsSmallSet);\n addQuery(query,idsConstrain);\n }\n }", "@Override\n protected void processSelect() {\n \n }", "private CompareDB () {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void customerQuery(){\n }", "public abstract String createQuery();", "@Override\n public Criteria getCriteria() {\n //region your codes 2\n return null;\n //endregion your codes 2\n }", "@Override\n\tprotected void parseResult() {\n\t\t\n\t}", "public abstract Statement queryToRetrieveData();", "@Test public void gh1202() {\n execute(new CreateDB(NAME, \"<x/>\"));\n query(\"let $x := 'e' return element e {} / self::e[name() = $x]\", \"<e/>\");\n query(\"let $x := 'f' return element f {} ! self::f[name() = $x]\", \"<f/>\");\n }", "private void ini_SelectDB()\r\n\t{\r\n\r\n\t}", "@Override\n public List<BaseLog> query(String realname) {\n BaseLogExample example = new BaseLogExample();\n if(realname!=null){\n example.createCriteria().andRealnameLike(\"%\"+realname+\"%\");\n }\n List<BaseLog> list = baseLogMapper.selectByExample(example);\n return list;\n }", "String getBarcharDataQuery();", "protected boolean func_70814_o() { return true; }", "private int queryfromCP() {\n\t\tString[] projection = { Databse_for_CP.COLUMN_VAL };\n\t\tString selection = Databse_for_CP.COLUMN_KEY+\"=\" + \"'\" +seqList.get(i).toString()+\"'\";\n\t\tCursor new_cursor = Content_Provider.query_dump(\n\t\t\t\tContent_Provider.cp_uri, projection, selection,\n\t\t\t\tnull, null);\n\t\tLog.d(\"key is :\", \"\" + seqList.get(i).toString());\n\t\t\n\t\tString cursret=\"\";\n\t\tif (new_cursor != null && new_cursor.getCount() != 0) {\n\t\t\twhile (new_cursor.moveToNext()) {\n\t\t\t\t\n\t\t\t\tcursret += new_cursor.getString(new_cursor\n\t\t\t\t\t\t.getColumnIndexOrThrow(Databse_for_CP.COLUMN_VAL));\n\t\t\t\t\n\t\t\t}\n\t\t\tif(new_cursor.getCount()>0){\n\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn -1;\n\t\t\t\t} \n\t\t} else {\n\t\t\tif(Content_Provider.returnC.isEmpty()){\n\t\t\t\tLog.d(\"data not found\", \"\");\n\t\t\t\treturn -1;\n\t\t\t}else if (Content_Provider.returnC.contains(messageList.get(i).toString())) {\n\t\t\t\treturn 1;\n\t\t\t} else {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t}\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "protected abstract void retrievedata();", "public static void main (String[] args) {\n EntityQuery query = new EntityQuery();\n Harvestable res = new OaiPmhResource();\n query.setFilter(\"test\", res);\n query.setAcl(\"diku\");\n query.setStartsWith(\"cf\",\"name\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"a\"));\n query.setQuery(\"(usedBy=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"x\"));\n\n query = new EntityQuery();\n query.setQuery(\"(usedBy=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"b\"));\n query.setQuery(\"usedBy=*library\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"c\"));\n query.setQuery(\"(=library\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"d\"));\n query.setQuery(\"usedBy=\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"e\"));\n query.setQuery(\"(usedBy!=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"f\"));\n query.setQuery(\"(usedBy==library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"g\"));\n query.setQuery(\"(usedBy===library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"h\"));\n }", "protected abstract void select();", "String query();", "@Override\r\n\tpublic void search() {\n\r\n\t}", "private String doQueryById(HttpServletRequest request,\n HttpServletResponse response) {\n return null;\n }", "Query query();", "@Test\n public void testDAM31201001() {\n // In this test case the where clause is specified in a common sql shared in multiple queries.\n testDAM30505001();\n }", "@Test\n\tpublic void testQuery1() {\n\t}", "@Override\n\tprotected Cursor query()\n\t{\n\t\treturn null;\n\t}", "protected String createFindBy(String nume) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"SELECT \");\n\t\tsb.append(\" * \");\n\t\tsb.append(\" FROM \");\n\t\tsb.append(type.getSimpleName());\n\t\tsb.append(\" WHERE \");\n\t\treturn sb.toString();\n\t}", "SELECT createSELECT();", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void select() {}", "private void checkInlineQueries() throws Exceptions.OsoException, Exceptions.InlineQueryFailedError {\n Ffi.Query nextQuery = ffiPolar.nextInlineQuery();\n while (nextQuery != null) {\n if (!new Query(nextQuery, host).hasMoreElements()) {\n String source = nextQuery.source();\n throw new Exceptions.InlineQueryFailedError(source);\n }\n nextQuery = ffiPolar.nextInlineQuery();\n }\n }", "@Test\n public void testDAM31901001() {\n // in this case, there are different querirs used to generate the ids.\n // the database id is specified in the selectKey element\n testDAM30602001();\n }", "public Query() {\n\n// oriToRwt = new HashMap();\n// oriToRwt.put(); // TODO\n }", "public void mo38117a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void evaluateActiveUsers(String query) {\n\n\t}", "private void strin() {\n\n\t}", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[0];\n String string0 = SQLUtil.renderQuery(defaultDBTable0, stringArray0, stringArray0);\n assertEquals(\"SELECT * FROM null WHERE \", string0);\n }", "@Test\n public void test4() throws Exception {\n String jpql = \"SELECT c FROM Course c where SQL('course_mapped ->> ''?'' LIKE ''%i%''', c.name) AND \" +\n \"SQL('json_array_length(course_mapped #> ''{levels}'') > 0')\";\n Query q = em.createQuery(jpql, Course.class);\n List<Course> courses = q.getResultList();\n Assert.assertEquals(1,courses.size());\n Assert.assertEquals(\"First one\", courses.get(0).getCourseMapped().getName());\n }", "protected String getRetrievalQuery()\n {\n return immutableGetRetrievalQuery();\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "static void checkObjects() {\n String[] names = new String[]{\"Person\", \"Address\", \"CreditCard\", \"Pincode\", \"Bank\"};\n EntityManager em = factory.createEntityManager();\n\n System.out.println(\"-----------------------------------\");\n for (String name : names) {\n Query q = em.createQuery(String.format(\"select x from %s x\", name));\n\n List resultList = q.getResultList();\n for (Object x : resultList) {\n System.out.println(x);\n }\n System.out.println(\"-----------------------------------\");\n }\n em.close();\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected abstract Set method_1559();", "private Singletion3() {}", "protected Collection method_1554() {\n return this.method_1559();\n }", "@Test\n public void testClientSqlFieldsQuery() {\n SqlFieldsQuery qry = new SqlFieldsQuery((\"SELECT * FROM \" + (GridCacheDynamicLoadOnClientTest.FULL_TABLE_NAME)));\n Assert.assertEquals(GridCacheDynamicLoadOnClientTest.CACHE_ELEMENT_COUNT, getDefaultCacheOnClient().query(qry).getAll().size());\n }", "@SuppressWarnings(\"unused\")\n\t\tprivate String querySingleValue(String query, String field){\n\t\t\treturn field;\n\n\t\t/*\tJdbcTemplate jdt = new JdbcTemplate(getDataSource());\n\t \tList queryList;\n\t \tString result = \"\";\n\n\t \t queryList = jdt.queryForList(query);\n\t \t Iterator i = queryList.iterator();\n\t \t i = queryList.iterator();\n\t \t if (i.hasNext()) {\n\t\t\t\t ListOrderedMap data = (ListOrderedMap) i.next();\n\t\t\t\t if (data.get(field) == null){\n\t\t\t\t } else {\n\t\t\t\t\t result = data.get(field).toString();\n\t\t\t\t }\n\t \t }\n\t \t return result;*/\n\t\t}", "private List<FollowItem> query(String sql)\r\n {\r\n DbManager db=new DbManager();\r\n ResultSet rs=null;\r\n List<FollowItem> list=new ArrayList<FollowItem>();\r\n rs = db.getRs(sql);\r\n try {\r\n while(rs.next())\r\n {\r\n FollowItem followItem = new FollowItem();\r\n followItem.setUserId(rs.getInt(\"UserID\"));\r\n followItem.setListingId(rs.getInt(\"ListingID\"));\r\n \r\n list.add(followItem);\r\n }\r\n } catch (SQLException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } finally{\r\n db.destory();\r\n }\r\n return list;\r\n }", "Object executeSelectQuery(String sql) { return null;}", "Object getCurrentData();", "protected List getList() {\n/* 88 */ return (List)getCollection();\n/* */ }", "default List<Source> representativeTypicalityQuery(Set<Source> resultSet, Set<String> domain){\n return representativeTypicalityQuery(5/*optimization: 5 most typical are enough*/, resultSet, domain);\n }", "@Override\n\tpublic void find() {\n\n\t}", "String limitSubquery();", "@Override\n @Test\n public void testQuery_advancedRankingWithJoin() throws Exception { }", "@Override\n public void onCancelled(DatabaseError error) {\n\n }", "@Override\n public void onCancelled(DatabaseError error) {\n\n }", "@Test(timeout = 4000)\n public void test39() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\" WHERE \");\n String string0 = SQLUtil.typeAndName(defaultDBTable0);\n assertEquals(\"table WHERE \", string0);\n }", "FunctionInfo selectByPrimaryKey(String fucno);", "@Test\n public void testClientSqlQuery() {\n SqlQuery<Integer, GridCacheDynamicLoadOnClientTest.Person> qry = new SqlQuery(GridCacheDynamicLoadOnClientTest.PERSON_CACHE, (\"FROM \" + (GridCacheDynamicLoadOnClientTest.PERSON_CACHE)));\n Assert.assertEquals(GridCacheDynamicLoadOnClientTest.CACHE_ELEMENT_COUNT, GridCacheDynamicLoadOnClientTest.clientNode.getOrCreateCache(GridCacheDynamicLoadOnClientTest.PERSON_CACHE).query(qry).getAll().size());\n }", "Map getAll();", "public static void listing5_14() {\n }", "@Override\r\n\tprotected void execute() {\r\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private Queries() {\n // prevent instantiation\n }", "@Override\n\tpublic void search() {\n\t}", "@Test\n\tpublic void testQueryPage() {\n\n\t}", "@Test\n public void run() {\n Tools.title(\"Selecting FIRST_NAME and LAST_NAME from the AUTHOR table\");\n Tools.print(DSL.using(Tools.connection()).select(FIRST_NAME, LAST_NAME).from(AUTHOR).orderBy(ID).fetch());\n }", "private stendhal() {\n\t}", "public void testUsingQueriesFromQueryManger(){\n\t\tSet<String> names = testDataMap.keySet();\n\t\tUtils.prtObMess(this.getClass(), \"atm query\");\n\t\tDseInputQuery<BigDecimal> atmq = \n\t\t\t\tqm.getQuery(new AtmDiot());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> bdResult = \n\t\t\t\tatmq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(bdResult);\n\n\t\tUtils.prtObMess(this.getClass(), \"vol query\");\n\t\tDseInputQuery<BigDecimal> volq = \n\t\t\t\tqm.getQuery(new VolDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> dbResult = \n\t\t\t\tvolq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(dbResult);\n\t\n\t\tUtils.prtObMess(this.getClass(), \"integer query\");\n\t\tDseInputQuery<BigDecimal> strikeq = \n\t\t\t\tqm.getQuery(new StrikeDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> strikeResult = \n\t\t\t\tstrikeq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(strikeResult);\n\t\n\t}", "private void m50366E() {\n }", "String queryInformation(String tableName,String queryname){\n Connection con = GetDBConnection.connectDB(\"booklibrarymanager\",\"root\",\"HanDong85\");\n String tar;\n if(tableName.equals(\"authorinformation\"))\n tar = \"author\";\n else if(tableName.equals(\"classificationinformation\"))\n tar = \"classification\";\n else tar = \"press\";\n String sql = \"select \" + tar + \"Id\" + \" from \" + tableName + \" where \";\n if(tableName.equals(\"authorinformation\"))\n sql += \"authorName = ?;\";\n else if(tableName.equals(\"classificationinformation\"))\n sql += \"classifcationName = ?;\";\n else sql += \"pressName = ?;\";\n System.out.println(sql);\n PreparedStatement preSQL;\n try{\n preSQL = con.prepareStatement(sql);\n preSQL.setString(1,queryname);\n ResultSet rs = preSQL.executeQuery();\n rs.beforeFirst();\n if(rs.next()){\n String ans = rs.getString(1);\n GetDBConnection.closeCon(con);\n return ans;\n }\n else{\n GetDBConnection.closeCon(con);\n return ERROR_TIP;\n }\n }\n catch (SQLException e){\n GetDBConnection.closeCon(con);\n return ERROR_TIP;\n }\n }", "@Test\n public void twoColumns_and_projection() {\n for (Tuple row : query().from(Constants.survey).select(Constants.survey.id, Constants.survey.name, new QIdName(Constants.survey.id, Constants.survey.name)).fetch()) {\n Assert.assertEquals(3, row.size());\n Assert.assertEquals(Integer.class, row.get(0, Object.class).getClass());\n Assert.assertEquals(String.class, row.get(1, Object.class).getClass());\n Assert.assertEquals(IdName.class, row.get(2, Object.class).getClass());\n }\n }", "@Override\n protected void initResultTable() {\n }", "@Override\n public void onCancelled(DatabaseError databaseError) {\n }", "CampusSearchQuery generateQuery();", "@Override\n protected Cursor buildCursor() {\n return(db.getReadableDatabase().rawQuery(rawQuery, args));\n }", "public int cursor();" ]
[ "0.54522693", "0.5233147", "0.5180559", "0.5091728", "0.50585914", "0.5052578", "0.49730715", "0.49278638", "0.4919325", "0.48942634", "0.4888071", "0.48879272", "0.48855013", "0.4878812", "0.48769164", "0.48656568", "0.48639983", "0.48622924", "0.48592082", "0.48581356", "0.48528662", "0.48522905", "0.483619", "0.4833191", "0.48311642", "0.48027414", "0.4801374", "0.4797985", "0.47905695", "0.47823793", "0.47786623", "0.47678983", "0.47643083", "0.47628316", "0.4761276", "0.4756288", "0.47548905", "0.47540903", "0.47470576", "0.47422814", "0.47386578", "0.4738656", "0.47381607", "0.47340792", "0.47331604", "0.47311437", "0.47279054", "0.47197986", "0.47162023", "0.47159106", "0.47154146", "0.47108832", "0.47076333", "0.4707183", "0.47029713", "0.47024146", "0.47021416", "0.47015393", "0.4694594", "0.46943477", "0.46906567", "0.46781057", "0.46747786", "0.4674642", "0.46665147", "0.46586746", "0.46526742", "0.46504232", "0.46444675", "0.46408913", "0.46385694", "0.46374774", "0.46352586", "0.4631151", "0.46277153", "0.4627609", "0.46211123", "0.46205932", "0.46205932", "0.46202427", "0.4618782", "0.46132335", "0.46075037", "0.46060026", "0.46053568", "0.4605123", "0.4602931", "0.4602156", "0.45981252", "0.45977166", "0.4597707", "0.45959818", "0.4594309", "0.4594121", "0.45938697", "0.45920515", "0.45901754", "0.4589877", "0.45878947", "0.4587621", "0.45871842" ]
0.0
-1
/ Getters / Setters
public InvocationType getInvocationType() { return invocationType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n public void get() {}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public void get() {\n }", "public void setdat()\n {\n }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "public void setAge(int age) { this.age = age; }", "public int getAge() {return age;}", "@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}", "String setValue();", "private void assignment() {\n\n\t\t\t}", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n String get();", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "@Test\n public void testSongGettersSetters() {\n Integer id = 4;\n String title=\"title\",uri = \"uri\";\n\n Song song = new Song();\n song.setId(id);\n song.setTitle(title);\n song.setUri(uri);\n\n assertEquals(\"Problem with id\",id, song.getId());\n assertEquals(\"Problem with title\",title, song.getTitle());\n assertEquals(\"Problem with uri\",uri, song.getUri());\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\npublic void setAttributes() {\n\t\n}", "public Student getStudent() { return student; }", "public String getAuthor(){return author;}", "public int getAge(){\n return age;\n }", "public void setName(String name){this.name=name;}", "public void setNombre(String nombre) {\r\n\tthis.nombre = nombre;\r\n}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public String getID(){return ID;}", "@Test\r\n\tpublic void gettersSettersTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setCount(NUMBER);\r\n\t\tassertEquals(item.getCount(), NUMBER);\r\n\t\titem.setDescription(\"word\");\r\n\t\tassertEquals(item.getDescription(), \"word\");\r\n\t\titem.setId(NUMBER);\r\n\t\tassertEquals(item.getId(), NUMBER);\r\n\t\titem.setName(\"word\");\r\n\t\tassertEquals(item.getName(), \"word\");\r\n\t\titem.setPicture(\"picture\");\r\n\t\tassertEquals(item.getPicture(), \"picture\");\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\tassertEquals(item.getPrice(), FLOATNUMBER, 0);\r\n\t\titem.setType(\"word\");\r\n\t\tassertEquals(item.getType(), \"word\");\r\n\t\titem.setSellerId(NUMBER);\r\n\t\tassertEquals(item.getSellerId(), NUMBER);\r\n\t\titem.setDeleted(false);\r\n\t\tassertEquals(item.isDeleted(), false);\r\n\t\titem.setDeleted(true);\r\n\t\tassertEquals(item.isDeleted(), true);\t\t\r\n\t}", "public String get();", "public int getSet() {\n return set;\n }", "@Override\n protected void updateProperties() {\n }", "private ReadProperty()\r\n {\r\n\r\n }", "String getName(){return this.name;}", "public int getAge()\r\n {\r\n return age;\r\n }", "public int getlife(){\r\n return life;\r\n}", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "public void setNombre(String nombre) {this.nombre = nombre;}", "public abstract String get();", "public String getName () { return this.name; }", "public Address getAddress() { return address; }", "private Get() {}", "private Get() {}", "public Book getBook() \t\t{ return this.myBook; }", "@Override\n //Method for getting output from String declaration\n //First set of accessor/mutator that returns value as String\n public String toString(){\n return \"[\"+name+\",\"+type+\",\"+value+\"]\";\n }", "public int getID() {return id;}", "public int getID() {return id;}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public int getArmadura(){return armadura;}", "@Override\n\tpublic void set() {\n\t\tSystem.out.println(\"A==========set\");\n\t}", "public String getNombre()\r\n/* 17: */ {\r\n/* 18:41 */ return this.nombre;\r\n/* 19: */ }", "public String getName(){return this.name;}", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void setPrice(double price){this.price=price;}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }", "public int getID(){\r\n return this.ID;\r\n }", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "public int getAge()\n {\n return age;\n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void initValue() {\n\t\t\n\t}", "public void setName(String name){this.name = name;}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public int getNumber(){return number;}", "private void setData() {\n\n }", "public int get () { return rating; }", "public String getValue() {\n/* 99 */ return this.value;\n/* */ }", "@Override\n public void memoria() {\n \n }", "@Override\n\tprotected void getDataFromUCF() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public int\t\tget() { return value; }", "@Override\n\tpublic void setData() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void initializeValues() {\n\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}", "@Override\n void init() {\n }", "public int getLives(){return lives;}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public int getValue() {\n/* 450 */ return this.value;\n/* */ }", "public void setupProperties() {\n // left empty for subclass to override\n }", "public Empleado getEmpleado()\r\n/* 183: */ {\r\n/* 184:337 */ return this.empleado;\r\n/* 185: */ }", "@Test\n\tpublic void testSet() {\n\t}", "public int getYearsOffice()\n {\n return yearsOffice;\n}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "public String getName(){\n return name;\n}", "@Override\n public void init() {\n\n }", "public int getAge() {\n\t \t return age; \n\t}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}" ]
[ "0.68003595", "0.6558789", "0.6552484", "0.64120036", "0.62294185", "0.6210205", "0.61401826", "0.61208946", "0.6081686", "0.6043031", "0.5965628", "0.5945217", "0.59434736", "0.5939926", "0.5920166", "0.5899987", "0.5898689", "0.58881354", "0.5869365", "0.5869247", "0.5838588", "0.5812347", "0.5797407", "0.5794814", "0.579031", "0.57795644", "0.577835", "0.5770927", "0.57701164", "0.57680756", "0.57675654", "0.5766282", "0.57647616", "0.57614684", "0.5754689", "0.5750062", "0.5742365", "0.5741466", "0.57404214", "0.573494", "0.57308143", "0.57302564", "0.57302564", "0.572279", "0.5719592", "0.57076836", "0.57076836", "0.57069826", "0.5703922", "0.5700368", "0.5692091", "0.5688439", "0.56798893", "0.567682", "0.56743133", "0.56743133", "0.567216", "0.56696355", "0.5665813", "0.5660841", "0.56600046", "0.5656578", "0.5655491", "0.5654439", "0.56543267", "0.5653469", "0.56531894", "0.56499314", "0.56488204", "0.5648613", "0.5646114", "0.5636076", "0.5627856", "0.5624369", "0.56243557", "0.5616", "0.5616", "0.5616", "0.5616", "0.5616", "0.5616", "0.56148374", "0.56133807", "0.56128955", "0.5612112", "0.56117326", "0.5606357", "0.56051844", "0.5604293", "0.5602374", "0.5601846", "0.5599406", "0.55964756", "0.55964756", "0.5593973", "0.5591566", "0.5591156", "0.5587491", "0.5587491", "0.5587491", "0.5587491" ]
0.0
-1
Genero l'handler per il caso d'uso, che a sua volta genera la configurazione.
@Override public void esegui(Console console) { console.getSistema().setHandlerConfigurazioni(); this.handlerConfigurazione = console.getSistema().getHandlerConfigurazioni(); //Genero una variabile per il loop Boolean fine = true; String cat = null; while (fine) { console.print(categorieList()); console.print("Seleziona una categoria inserendo il suo codice intero: \n"); Integer selezione = console.getInt(); if (selezione != null) { cat = this.mappaCorrispondenzaCategorie.get(selezione.intValue()); console.print("Seleziona una componente, tra quelle che vengono mostrate a video, inserendo il suo codice numerico:\n"); Map<Integer, Componente> mappaComponenti = this.handlerConfigurazione.selezionaCategoria(cat); for (Integer key : mappaComponenti.keySet()) { console.print("\n ---Codice: "+key +" Componente: "+ mappaComponenti.get(key) +"--- \n"); } console.print("---INSERISCI CODICE COMPONENTE--- \n"); Componente componenteAttuale = this.handlerConfigurazione.selezionaComponente(console.getInt()); if (componenteAttuale != null) { console.print("\n\n ECCO I DETTAGLI DEL COMPONENTE SELEZIONATO"+componenteAttuale.toString()); console.print("\n Ti soddisfa il componente selezionato? Inserisci Si o No \n"); if (console.getYesNo()) { console.print(this.handlerConfigurazione.confermaComponente()); /*Vengono mostrati a video eventuali messaggi di incompatibilitá previsti dalla clase Configuration Handler... */ }else console.print("Non inserisco il componente..."); console.print("Desideri continuare con l'inserimento componenti? \n"); if (!console.getYesNo()) { //Nel caso di valore true o non valido continuo con l'inserimento delle componenti console.print("---TERMINA ASSEMBLAGGIO: ESECUZIONE DEI CONTROLLI--- \n"); if (this.handlerConfigurazione.terminaAssemblaggio() == true) { fine = false; console.print("---ASSEMBLAGGIO ANDATO A BUON FINE: RIEPILOGO--- \n"); console.print(this.handlerConfigurazione.getStringaComunicazioni()); this.handlerConfigurazione.confermaConfigurazione(); console.print("---SALVATAGGIO IN CATALOGO IN CORSO--- \n"); console.getSistema().getHandlerComponenti().salvaCatalogo(); } else { console.print("---ASSEMBLAGGIO NON RIUSCITO--- \n"); console.print(this.handlerConfigurazione.getStringaComunicazioni()); console.print("---RIPROVA INSERENDO UN NUOVO COMPONENTE--- \n"); } } }else console.print("Hai inserito un codice non valido"); }else console.print("Hai inserito un codice non valido"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void configHandler(Handlers me) {\n\r\n\t}", "CreateHandler()\n {\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:47.199 -0500\", hash_original_method = \"41983E4AD1DCA5E034973FB71B6F64E2\", hash_generated_method = \"FE0086F5838C2FA5A6CD634F53A119E2\")\n \npublic void createUIHandler() {\n if (mUIHandler == null) {\n mUIHandler = new Handler() {\n @DSSafe(DSCat.SAFE_LIST)\n @Override\n public void handleMessage(Message msg) {\n // Runs on the UI thread.\n switch (msg.what) {\n case RETURN_ORIGINS: {\n Map values = (Map) msg.obj;\n Set<String> origins = (Set<String>) values.get(ORIGINS);\n ValueCallback<Set<String> > callback = (ValueCallback<Set<String> >) values.get(CALLBACK);\n callback.onReceiveValue(origins);\n } break;\n case RETURN_ALLOWED: {\n Map values = (Map) msg.obj;\n Boolean allowed = (Boolean) values.get(ALLOWED);\n ValueCallback<Boolean> callback = (ValueCallback<Boolean>) values.get(CALLBACK);\n callback.onReceiveValue(allowed);\n } break;\n }\n }\n };\n }\n }", "String getConfigurationHandlerId();", "protected void setHandlers()\n {\n tableTypeHandler = ccddMain.getTableTypeHandler();\n dataTypeHandler = ccddMain.getDataTypeHandler();\n }", "private void loadHandlers(String namespace, ObjectFactory objectFactory)\r\n throws CockpitConfigurationException {\r\n // gets 'handlers' property\r\n Property handlersProp = getHandlersPropertyObject(namespace);\r\n\r\n // iterates all sub-properties\r\n for (Iterator<?> iter = handlersProp.list().iterator(); iter.hasNext();) {\r\n Property handlerProp = (Property) iter.next();\r\n\r\n // creates the HandlerRegistryInfo based on property name\r\n String handlerPropName = handlerProp.getName();\r\n HandlerRegistryInfo info = createHandlerRegistryInfo(handlerPropName);\r\n\r\n // creates the PhaseHandler based on property value.\r\n String handlerPropValue = handlerProp.getValue();\r\n\r\n if (handlerPropValue.trim().length() == 0) {\r\n throw new CockpitConfigurationException(\"The value of '\" + handlerPropName\r\n + \"' should not be empty\");\r\n }\r\n\r\n PhaseHandler phaseHandler = (PhaseHandler) createObject(objectFactory, handlerPropValue,\r\n PhaseHandler.class);\r\n\r\n // put the mapping to the handlers.\r\n this.delegate.registerHandler(phaseHandler, info.getType(), info.getOperation());\r\n }\r\n }", "@Bean\n PessoaEventHandler pessoaEventHandler() {\n return new PessoaEventHandler();\n }", "@FXML \r\n private void handleIrConfiguracion() {\r\n \ttry {\r\n\t\t\tmain.mostrarVistaConfiguracion();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }", "public ConfigParserHandler() {\n\t}", "public GenericHandler() {\n\n }", "PaymentHandler createPaymentHandler();", "private void controladorAdminConfig(Controlador controlador) {\n \tthis.contAdminUsuarios = controlador.getAdminUsuarios();\n \tadminConfig.setControlAdminUsuarios(contAdminUsuarios);\n \t\n \tthis.contAdminProyectos = controlador.getAdminProyectos();\n \tadminConfig.setControlAdminProyectos(contAdminProyectos);\n \t\n \tthis.contAdminConfigVotes = controlador.getAdminConfigVotes();\n \tadminConfig.setControlAdminConfigVotes(contAdminConfigVotes);\n \t\n \tthis.contAdminConfigCaducidad = controlador.getAdminConfigCaducidad();\n adminConfig.setControlAdminConfigCaducidad(contAdminConfigCaducidad);\n }", "@Override\n public void onEvent(EventInterface e)\n {\n if (e.getTarget() instanceof Contacts || e.getTarget() instanceof Login) {\n try {\n settings.store();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n }", "@Override\n\t\t\tprotected void configure() {\n\t\t\t}", "private Handler OooO00o() {\n return C8775oo0ooo0.OooO00o(C8769oo0ooOOO.OooO00o());\n }", "@Override\n\tpublic void onApplicationEvent(ApplicationReadyEvent event) \n\t{\n\n\t\tHystrixCommandProperties.Setter().withExecutionTimeoutInMilliseconds(20000);\n\t\tConfigurationManager.getConfigInstance().setProperty(\"execution.isolation.thread.timeoutInMilliseconds\", \"20000\");\n\n\t\tSystem.out.println(\"1 value>>>>>>>>>>>>>>>>>>>>>>>>>>>> \");\n\t\t/*\t\tAbstractConfiguration manager = ConfigurationManager.getConfigInstance();\n\t\tfor (String key : event.getKeys())\n\t\t{\n\t\t\tfor (ConfigurationListener listener : manager.getConfigurationListeners()) \n\t\t\t{\n\t\t\t\tObject source = event.getSource();\n\t\t\t\t// TODO: Handle add vs set vs delete?\n\t\t\t\tint type = AbstractConfiguration.EVENT_SET_PROPERTY;\n\t\t\t\tString value = env.getProperty(key);\n\n\t\t\t\tSystem.out.println(\"value>>>>>>>>>>>>>>>>>>>>>>>>>>>> \"+value);\n\n\t\t\t\tboolean beforeUpdate = false;\n\t\t\t\tlistener.configurationChanged(new ConfigurationEvent(source, type, key, value, beforeUpdate));\n\t\t\t}\n\t\t}*/\n\t}", "@Override\n public void configurarContexto(Presentador presentador) {\n\n }", "@Override\n public void onCreate() {\n super.onCreate();\n handler = new Handler();\n BusProvider.register(this);\n }", "public TelaCliente() {\n\n try {\n Handler console = new ConsoleHandler();\n Handler file = new FileHandler(\"/tmp/roquerou.log\");\n console.setLevel(Level.ALL);\n file.setLevel(Level.ALL);\n file.setFormatter(new SimpleFormatter());\n LOG.addHandler(file);\n LOG.addHandler(console);\n LOG.setUseParentHandlers(false);\n } catch (IOException io) {\n LOG.warning(\"O ficheiro hellologgin.xml não pode ser criado\");\n }\n\n initComponents();\n NivelDAO nd = new NivelDAO();\n if (nd.buscar() == 3) {\n botaoNovoCliente.setEnabled(false);\n buscarcli.setEnabled(false);\n tabelaCliente.setEnabled(false);\n popularCombo();\n setarLabels();\n\n LOG.info(\"Abertura da Tela de Clientes\");\n } else {\n popularCombo();\n setarLabels();\n\n LOG.info(\"Abertura da Tela de Clientes\");\n }\n }", "@Override\n\tpublic void configure(Context arg0) {\n\t\t\n\t}", "@Override\n\tpublic void configure(Context arg0) {\n\t\t\n\t}", "public void setHandler(String handler) {\n this.Handler = handler;\n }", "@Override\n\tpublic void configure(Context arg0) {\n\n\t}", "@Override\r\n\tprotected void configure() {\n\t\t\r\n\t}", "private Builder configureFrom(SecurityHandler handler) {\n handler.rolesAllowed.ifPresent(this::rolesAllowed);\n handler.customObjects.ifPresent(this::customObjects);\n handler.config.ifPresent(this::config);\n handler.explicitAuthenticator.ifPresent(this::authenticator);\n handler.explicitAuthorizer.ifPresent(this::authorizer);\n handler.authenticate.ifPresent(this::authenticate);\n handler.authenticationOptional.ifPresent(this::authenticationOptional);\n handler.audited.ifPresent(this::audit);\n handler.auditEventType.ifPresent(this::auditEventType);\n handler.auditMessageFormat.ifPresent(this::auditMessageFormat);\n handler.authorize.ifPresent(this::authorize);\n this.queryParamHandlers.addAll(handler.queryParamHandlers());\n\n return this;\n }", "public EnchantHandler(){\n loadEnchants();\n }", "@Override\n\tpublic void configure() {\n\t\t\n\t}", "DispatchingProperties() {\r\n\t\tsuper();\r\n\t\t// if (handler != null) {\r\n\t\t// throw new\r\n\t\t// RuntimeException(\"ServicePropertiesHandler: class already instantiated!\");\r\n\t\t// }\r\n\t\t// handler = this;\r\n\t}", "public void registerHandler(Object handler)\n {\n\n }", "public abstract void setup(Map<String, Value> literals, GenericEventHandler eventHandler);", "@Override\n\tpublic void setHandler(String defaultHandler, String handlerName) {\n\n\t}", "@Override\n public void configure() throws Exception {TODO: implement using data generators\n// final SensorDataProcessor sensorDataProcessor = new SensorDataProcessor();\n//\n// from(restBaseUri() + \"/sensorData?httpMethodRestrict=GET\")\n// .setHeader(\"address\", simple(CONFIG.getSensorAddress()))\n// .setBody(simple(\"\"))\n// .to(\"bulldog:i2c?readLength=2\")\n// .process(sensorDataProcessor)\n// .marshal().json(JsonLibrary.Jackson, true);\n//\n from(\"timer:sensorBroadcast?period=5000\")\n .setBody(simple(\"\\\"temperature\\\" : 10, \\\"humidity\\\" : 100, \"))\n .log(\"firing\")\n .to(\"websocket:weather?sendToAll=true\");\n\n HouseBean houseBean = HouseBean.getInstance();\n\n from(restBaseUri() + \"/all?httpMethodRestrict=GET\")\n .setProperty(\"type\", simple(Object.class.getSimpleName()))\n .bean(houseBean, \"objInfo\")\n .marshal().json(JsonLibrary.Jackson, true);\n\n\n }", "@Override\n\tprotected void configure() {\n\n\t}", "public void commonSetup(FMLCommonSetupEvent event){\n PacketHandler.registerMessages();\n// config = new Configuration(event.getSuggestedConfigurationFile());\n// ConfigHandler.readConfig();\n }", "@Override\n\tpublic void configure() {\n\n\t}", "public PropertiesHandler(final Configuration aConfig) {\n super(aConfig);\n }", "public interface SettingsEventHandler\n{\n\t/** record that a setting name was not provided when it was required */\n\tpublic void alarmOnMissingSetting(String settingName);\n\n\t/** record the use of the provided setting */\n\tpublic void recordUsedSettingAndValue(String settingName, Object value, String description);\n}", "@Override\n public void configure() {\n }", "private void configurarEventos() {\n\n btnVoltar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //OBJETIVO: fecha a tela atual\n VerPessoaActivity.this.finish();\n }\n });\n }", "private void config() {\n\t}", "public static void setCustomFactoryHandler(CustomFactoryHandler factoryHandler)\n {\n DBFactory.factoryHandler = factoryHandler;\n }", "@Override\n protected void configure() {\n }", "Map<String, Handler> handlers();", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public void bindHandlers() {\n\n _eventBus.addHandler(NewIncidentEvent.TYPE, new NewIncidentEventHandler() {\n\n @Override\n public void onNewIncidentEventHandler(NewIncidentEvent event) {\n\n newIncident(event.getIncident());\n //addTodo(event.getTodoTitle());\n }\n });\n\n _eventBus.addHandler(AddressSearchEvent.TYPE, new AddressSearchEventHandler() {\n\n @Override\n public void onAddressSearchEventHandler(AddressSearchEvent event) {\n requestAddress(event.getTypedAddress());\n //addTodo(event.getTodoTitle());\n }\n });\n\n _eventBus.addHandler(RepairCallEvent.TYPE, new RepairCallEventHandler() {\n\n @Override\n public void onRepairCallEventHandler(RepairCallEvent event) {\n\n updateIncident(event.getIncident());\n //addTodo(event.getTodoTitle());\n }\n });\n }", "public void onConfigure(dbHelper helper){\n\n }", "private static Map<String, Greetable> loadHandlers() {\n Map<String, Greetable> result = new HashMap<>();\n\n try (InputStream is = Server.class.getClassLoader()\n .getResourceAsStream(\"server.properties\")){\n\n Properties properties = new Properties();\n properties.load(is);\n\n //Get full name of handler class by associated map key\n for (Object command : properties.keySet()) {\n String className = properties.getProperty(command.toString());\n //Get link on class realizzation\n Class<Greetable> cl = (Class<Greetable>) Class.forName(className);\n //Get class entity\n Greetable handler = cl.getConstructor().newInstance();\n result.put(command.toString(), handler);\n\n }\n\n } catch (Exception e){\n e.printStackTrace(System.out);\n }\n\n\n return result;\n }", "private void createHandler()\r\n {\r\n serverHandler = new Handler(Looper.getMainLooper())\r\n {\r\n @Override\r\n public void handleMessage(Message inputMessage)\r\n {\r\n int percentage;\r\n switch (inputMessage.what)\r\n {\r\n case LISTENING:\r\n waiting.setVisibility(View.VISIBLE);\r\n statusText.setText(\"Oczekiwanie na połączenie\");\r\n break;\r\n case CONNECTED:\r\n waiting.setVisibility(View.INVISIBLE);\r\n progress.setVisibility(View.VISIBLE);\r\n statusText.setText(\"Przesyłanie pliku\");\r\n break;\r\n case PROGRESS:\r\n percentage = (int) inputMessage.obj;\r\n progress.setProgress(percentage);\r\n break;\r\n case DONE:\r\n messageDialog(\"Przesyłanie zakończone!\", DIALOG_MODE_DONE);\r\n break;\r\n case LISTENING_FAILED:\r\n if(acceptMessages)\r\n messageDialog(\"Nie udało się utworzyć gniazda\", DIALOG_MODE_ERROR);\r\n break;\r\n case SOCKET_ACCEPT_FAILED:\r\n if(acceptMessages)\r\n messageDialog(\"Wystąpił błąd połączenia!\\nPowrót\", DIALOG_MODE_ERROR);\r\n break;\r\n case EXTERNAL_STORAGE_ACCESS_FAILED:\r\n messageDialog(\"Brak dostępu do pamięci masowej!\\nPowrót\", DIALOG_MODE_ERROR);\r\n break;\r\n case FILE_TRANSFER_FAILED:\r\n if(acceptMessages)\r\n messageDialog(\"Wystąpił błąd podczas przesyłania danych!\\nPowrót\",\r\n DIALOG_MODE_ERROR);\r\n break;\r\n default:\r\n super.handleMessage(inputMessage);\r\n }\r\n }\r\n };\r\n }", "public void salvaConfigurazione(Configurazione conf) {\n\t\tthis.aggiungiInCatalogo((Componente) conf);\n\t}", "Config(InfoHandler info){\n \n this.info = info;\n \n config_list = new ArrayList<>();\n \n File test = new File(config_path);\n \n if(test.exists()){ //plik istnieje\n \n info.mode=1; //wlaczenie trybu dla obslugi pliku konfiguracyjnego\n \n \n //tutaj pobieranie informacji z pliku konfiguracyjnego\n //do ciała funkcji\n \n config_file = new DictReader(config_path,info);\n \n //tutaj dodajemy funkcjonalnosci\n \n config_list.add(config_file.szukaj(\"%imie\"));\n config_list.add(config_file.szukaj(\"%dict_path\"));\n \n config = get_config();\n \n info.mode=0;\n \n is_alive = true;\n }\n else{\n config = new ArrayList<>();\n config_file = new DictReader(config_path,info);\n first_start = 1;\n }\n }", "private OpenApiHandlerConfig(String configName) {\n config = Config.getInstance();\n mappedConfig = config.getJsonMapConfigNoCache(configName);\n setConfigData();\n setConfigMap();\n }", "void createHandler(final String handlerClassName);", "protected void registerHandlers(ConfigurationSection configuration) {\n ConfigurationSection currencyConfiguration = configuration.getConfigurationSection(\"builtin_currency\");\n ConfigurationSection spSection = currencyConfiguration.getConfigurationSection(\"sp\");\n ConfigurationSection xpSection = currencyConfiguration.getConfigurationSection(\"xp\");\n String skillPointIcon = configuration.getString(\"sp_item_icon_url\");\n if (skillPointIcon != null) {\n getLogger().warning(\"The config option sp_item_icon_url is deprecated, see builtin_currencies section\");\n spSection.set(\"icon\", \"skull:\" + skillPointIcon);\n }\n if (configuration.contains(\"sp_max\")) {\n getLogger().warning(\"The config option sp_max is deprecated, see builtin_currencies section\");\n spSection.set(\"max\", configuration.getInt(\"sp_max\"));\n }\n if (configuration.contains(\"worth_sp\")) {\n getLogger().warning(\"The config option worth_sp is deprecated, see builtin_currencies section\");\n spSection.set(\"worth\", configuration.getInt(\"worth_sp\"));\n }\n if (configuration.contains(\"sp_default\")) {\n getLogger().warning(\"The config option sp_default is deprecated, see builtin_currencies section\");\n spSection.set(\"default\", configuration.getInt(\"sp_default\"));\n }\n if (configuration.contains(\"worth_xp\")) {\n getLogger().warning(\"The config option worth_xp is deprecated, see builtin_currencies section\");\n xpSection.set(\"worth\", configuration.getDouble(\"worth_xp\"));\n }\n ConfigurationSection legacyItemCurrency = configuration.getConfigurationSection(\"currency\");\n if (legacyItemCurrency != null) {\n ConfigurationSection itemConfiguration = currencyConfiguration.getConfigurationSection(\"item\");\n getLogger().warning(\"The config section currency is deprecated, see builtin_currencies.item section\");\n Collection<String> worthItemKeys = legacyItemCurrency.getKeys(false);\n for (String worthItemKey : worthItemKeys) {\n ConfigurationSection currencyConfig = legacyItemCurrency.getConfigurationSection(worthItemKey);\n if (!currencyConfig.getBoolean(\"enabled\", true)) continue;\n itemConfiguration.set(\"item\", worthItemKey);\n itemConfiguration.set(\"worth\", currencyConfig.getDouble(\"worth\"));\n // This is kind of a hack, but makes it easier to override the default ... (heldover from legacy configs)\n if (!worthItemKey.equals(\"emerald\")) {\n break;\n }\n }\n }\n\n // Load builtin default currencies\n addCurrency(new ItemCurrency(this, currencyConfiguration.getConfigurationSection(\"item\")));\n addCurrency(new ManaCurrency(this, currencyConfiguration.getConfigurationSection(\"mana\")));\n addCurrency(new ExperienceCurrency(this, xpSection));\n addCurrency(new HealthCurrency(this, currencyConfiguration.getConfigurationSection(\"health\")));\n addCurrency(new HungerCurrency(this, currencyConfiguration.getConfigurationSection(\"hunger\")));\n addCurrency(new LevelCurrency(this, currencyConfiguration.getConfigurationSection(\"levels\")));\n addCurrency(new SpellPointCurrency(this, spSection));\n }", "@Override\n\tpublic void registrarLlegada() {\n\t\t\n\t}", "public frmConfiguracion() {\n initComponents();\n iniciarObjetos();\n }", "void getConfiguration(final AsyncHandler<LabelsConfiguration> aHandler);", "private void setHandler() {\n handler = new Handler() {\n @Override\n public void handleMessage(Message msg) {\n JSONObject message;\n try {\n message = new JSONObject((String)msg.obj);\n switch (message.getString(\"type\")) {\n case \"picture\":\n setImage(message.getString(\"img\"));\n break;\n case \"info\":\n name = message.getString(\"name\");\n battery = Integer.parseInt(message.getString(\"battery\"));\n stiffness = Boolean.parseBoolean(message.getString(\"stiffness\"));\n showInfo();\n break;\n case \"disconnect\":\n Toast.makeText(getApplicationContext(), message.getString(\"text\"),\n Toast.LENGTH_SHORT).show();\n // Change connect button and hide robot info\n Button connectButton = (Button) findViewById(R.id.connectButton);\n LinearLayout robotInfo = (LinearLayout) findViewById(R.id.robotInfo);\n if (connectButton != null) {\n connectButton.setText(\"Connect\");\n robotInfo.setVisibility(View.INVISIBLE);\n }\n break;\n case \"error\":\n Toast.makeText(getApplicationContext(), message.getString(\"text\"),\n Toast.LENGTH_SHORT).show();\n break;\n default:\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n };\n }", "public MOTDHandler(Configuration config, JawaToolBox plugin) {\n MOTDHandler.plugin = plugin;\n MOTDHandler.motdNormalCount = config.getInt(\"motd-normal-count\", 4);\n MOTDHandler.motd = loadMOTD();\n }", "@Override\n\tprotected void handleSettings(ClickEvent event) {\n\t\t\n\t}", "@Test\n public void testAddHandler() {\n System.out.println(\"addHandler\");\n String sa = \"testhandler\";\n SpineEbXmlHandler h = (EbXmlMessage m) -> {\n };\n instance.addHandler(sa, h);\n }", "void registerEventbusHandlers();", "public void configurarIdioma() {\n botonAceptar.setText(resources.getString(\"aceptar\"));\n labelErrorRegistro.setText(resources.getString(\"LabelErrorRegistro\"));\n labelNoSePuedeRegistrar.setText(resources.getString(\"noSePuedeRegistrar\"));\n labelCamposVacios.setText(resources.getString(\"hayCamposVacios\"));\n }", "void addHandler( final String route, final Class<?> handler, final Object... initParams ) {\n Object[] params;\n if ( initParams != null ) {\n params = new Object[initParams.length + 2];\n params[0] = this;\n params[1] = new Config();\n for ( int x = 0; x < initParams.length; x++ ) {\n params[x + 2] = initParams[x];\n }\n } else {\n params = new Object[] { this, new Config() };\n }\n\n server.addRoute( route, 100, handler, params );\n }", "private HandlerBuilder() {\n }", "public static void setUp() {\n Handler handler = new LoggerHandler();\n handler.setFormatter(new SimpleFormatter());\n getInstance().addHandler(handler);\n }", "protected void agregarUbicacion(){\n\n\n\n }", "public void setGameOptionHandler(EventHandler<ActionEvent> handler){\n\t\tfor(Node gO : gameOptions.getChildren()){\n\t\t\t((Button) gO).setOnAction(handler);\n\t\t}\n\t}", "public ConfigurePaymentFranchisee() {\n initComponents();\n }", "@Override\n\tpublic void registrarLlegada() {\n\t}", "public ConfigCuenta() {\n initComponents();\n }", "public void setHandler(Handler handler) {\r\n this.handler = handler;\r\n }", "public void setHandler(Handler handler) {\r\n this.handler = handler;\r\n }", "public boolean configure(StaplerRequest req, JSONObject o) throws FormException {\n \trhapsodyClPath = o.getString(\"rhapsodyClPath\");\n \tlicenseServerPath = o.getString(\"licenseServerPath\");\n save();\n return super.configure(req, o);\n }", "@Override\n public void afterPropertiesSet() throws Exception {\n\n Map<String, EventHandler> beans = applicationContext.getBeansOfType(EventHandler.class);\n if (beans != null) {\n\n for (Map.Entry<String, EventHandler> entry : beans.entrySet()) {\n List<EventType> supportedEventType = entry.getValue().getSupportEventType();\n\n for (EventType type : supportedEventType) {\n if (eventHandlerMap.containsKey(type) == false) {\n eventHandlerMap.put(type, new LinkedList<EventHandler>());\n }\n\n eventHandlerMap.get(type).add(entry.getValue());\n }\n }\n }\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n while (true) {\n\n String key = RedisKeyUtil.getKeyEventQueue();\n // pop an event from event queuqe (key, event)\n List<String> events = jedisAdapter.popFromListTail(key, 0);\n\n for (String message : events) {\n // skip the first key\n if (message.equals(key)) {\n continue;\n }\n\n EventModel eventModel = JSON.parseObject(message, EventModel.class);\n if (eventHandlerMap.containsKey(eventModel.getType()) == false) {\n logger.error(\"Wrong event type.\");\n continue;\n }\n\n // handle event\n for (EventHandler handler : eventHandlerMap.get(eventModel.getType())) {\n handler.handleEvent(eventModel);\n }\n }\n }\n }\n });\n\n thread.start();\n }", "public ConfigurationHandlerImpl() {\n initComponents();\n jProgressBar1.setVisible(false);\n }", "public boolean addWatchHandler (ConfigurationPropertyChangeHandler handler, String... name);", "public static void creaHidatoAutomaticament()\n {\n ControladorVista.mostraCreacioHidatoAutomatica();\n }", "@Override\n\tprotected void setUp() {\n\t\topthand1 = new SimpleOptionHandler(4);\n\t\topthand2 = new SimpleOptionHandler(8, true, true, true, true);\n\t\topthand3 = new SimpleOptionHandler(91, false, false, false, false);\n\t}", "protected void configure() {\n\t \n\t Configuration.BASE=true;\n\t Configuration.BASEMENUBAR=true;\n\t Configuration.BASETOOLBAR=true;\n\t Configuration.EDITMENUBAR=true;\n\t Configuration.EDITTOOLBAR=true;\n\t Configuration.FORMATMENUBAR=true;\n\t Configuration.FORMATTOOLBAR=true;\n\t Configuration.PERSISTENCEMENUBAR=true;\n\t Configuration.PERSISTENCETOOLBAR=true;\n\t Configuration.PRINTMENUBAR=true;\n\t Configuration.PRINTTOOLBAR=true;\n\t Configuration.SEARCHMENUBAR=true;\n\t Configuration.SEARCHTOOLBAR=true;\n\t Configuration.UNDOREDOMENUBAR=true;\n\t \t Configuration.UNDOREDOTOOLBAR=true;\n\t //\n\t Configuration.WORDCOUNTMENUBAR=true;\n\t Configuration.WORDCOUNTTOOLBAR=true;\n }", "private void initializeHandler() {\n if (handler == null) {\n handler = AwsHelpers.initSpringBootHandler(Application.class);\n }\n }", "public ModuliHandler() {\n\t}", "@Override\n\tpublic void creatConfigUI(Composite parent, Map<String, String> params) {\n\n\t}", "@Override\n\tprotected ManageEventHandler createEventHandler() {\n\t\tif (m_handler == null)\n\t\t\tm_handler = new BankKeepEventHandler(this, createController());\n\t\treturn m_handler;\n\t}", "public int getHandler() {\n\t\treturn 1;\n\t}", "private EventProcessorBuilder baseConfig(MockEventSender es) {\n return sendEvents().eventSender(senderFactory(es));\n }", "public interface ConfigService {\n\n\n /**\n * eureka配置\n *\n * @param sb\n * @param addr\n */\n void eureka(StringBuilder sb, String addr);\n\n /**\n * redis配置\n *\n * @param sb\n * @param addr\n */\n void redis(StringBuilder sb, String addr);\n\n\n /**\n * 数据源配置\n *\n * @param sb\n */\n void thymeleafAndDatasource(StringBuilder sb);\n\n\n /**\n * 关于mybatis的配置\n *\n * @param sb\n * @param packages\n */\n void mybatis(StringBuilder sb, String packages);\n\n\n /**\n * 分页插件配置\n *\n * @param sb\n */\n void pagehelper(StringBuilder sb);\n\n /**\n * 生成application.yml\n *\n * @param name\n */\n void application(String name);\n\n\n /**\n * 生成application-xxx.yml\n *\n * @param branch\n * @param packages\n */\n void applicationBranch(String branch, String packages);\n\n\n /**\n * log文件\n *\n */\n void logBack();\n}", "protected void configEvent(String[] aKey) {}", "private void initHandlers(){\n\t\thandlers.put((byte) 0x02, new Cmd02());\n\t\t//handlers.put((byte) 0x03, new Cmd03());\n\t\thandlers.put((byte) 0x04, new Cmd04());\n\t\thandlers.put((byte) 0x05, new Cmd05());\n\t\thandlers.put((byte) 0x06, new Cmd06());\n\t\thandlers.put((byte) 0x07, new Cmd07());\n\t\thandlers.put((byte) 0x08, new Cmd08());\n\t\thandlers.put((byte) 0x80, new Cmd80());\n\t\thandlers.put((byte) 0x81, new Cmd81());\n\t\thandlers.put((byte) 0x82, new Cmd82());\n\t\thandlers.put((byte) 0x83, new Cmd83());\n\t\thandlers.put((byte) 0x84, new Cmd84());\n\t\thandlers.put((byte) 0x85, new Cmd85());\n\t\thandlers.put((byte) 0x86, new Cmd86());\n\t}", "@Override\n public void handle(ActionEvent event) {\n Usuarios u = new Usuarios();\n u.setIdUsuario(Integer.parseInt(key));\n u.setNome(txtNome.getText());\n u.setLogin(txtLogin.getText());\n u.setSenha(txtSenha.getText());\n usuario.atualizar(u);\n limpar();\n listar();\n }", "protected void onUserSettingsChanged(@Observes UserSettingsChangedEvent usc)\n {\n loadMenu();\n }", "public void buscarGestor(){\r\n\t\t\r\n\t}", "public void crearConfiguracion (){\n\t\tInputStream streamMenues = FileUtil.getResourceAsStream(\"organizacionMenues.xml\");\r\n\t\tgruposModulos = new ArrayList<GrupoModulos>();\r\n\t\ttry {\r\n\t\t\tif (streamMenues != null){\r\n\t\t\t\tgruposModulos = leerGruposModulos(streamMenues);\t\r\n\t\t\t}\r\n\t\t} catch(XPathExpressionException e) {\r\n\t\t\tManejadorMenues.logger.error(\"Error procesando xml de menues\",e);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif (gruposModulos.isEmpty()){\r\n\t\t\tGrupoModulos gm = new GrupoModulos();\r\n\t\t\tgm.setNombre(\"Módulos\");\r\n\t\t\tgm.setEsDefault(true);\r\n\t\t\tgruposModulos.add(gm);\r\n\t\t}\r\n\t\t\r\n\t}", "public void setCommunicationHandler(){\n this.comHandler = new CommunicationHandler(this);\n }", "@Override\n public void init(DsConfiguration conf, DsMetaData metaData) {\n logger.info(\"PilosaHandler initialized.\");\n this.pilosaClient = PilosaClient.withAddress(this.address, this.address);\n createSchema();\n super.init(conf, metaData);\n }", "@Override\n public void run(PuntiSpesaConfig c, Environment e) throws Exception {\n final PuntiSpesa ps = new PuntiSpesa(c.getSaldoIniziale());\n \n // Registrazione della risorsa \"ps\" sul server di esecuzione\n e.jersey().register(ps);\n \n }", "@Override\n public void handle(ActionEvent event) {\n Usuarios u = new Usuarios();\n u.setIdUsuario(Integer.parseInt(key));\n u.setNome(txtNome.getText());\n u.setLogin(txtLogin.getText());\n u.setSenha(txtSenha.getText());\n usuario.deletar(u);\n limpar();\n listar();\n }", "public TransformerHandler newTransformerHandler()\n throws TransformerConfigurationException\n {\n synchronized(factory) {\n return factory.newTransformerHandler(templates);\n }\n }", "public void setHandler ( Object handler ) {\r\n\t\tgetStateHelper().put(PropertyKeys.handler, handler);\r\n\t\thandleAttribute(\"handler\", handler);\r\n\t}", "protected abstract ElementHandler createElementHandler( String voTagname );", "private void createHandler() {\r\n playerAHandler = new Handler() {\r\n @Override\r\n public void handleMessage(Message msg) {\r\n switch(msg.what) {\r\n case Constants.MADE_MOVE:\r\n makeMove();\r\n break;\r\n default: break;\r\n }\r\n }\r\n };\r\n }", "public void sendNewConfiguration() {\n this.mWmService.mH.obtainMessage(18, this).sendToTarget();\n }" ]
[ "0.688342", "0.5707415", "0.5511158", "0.5322334", "0.5282124", "0.52674764", "0.52431965", "0.52056015", "0.51671124", "0.51242685", "0.5110821", "0.51005995", "0.50995356", "0.5093228", "0.5066576", "0.50646174", "0.50415903", "0.5030697", "0.5024947", "0.50168467", "0.50168467", "0.50117713", "0.5000396", "0.50001484", "0.4978391", "0.49603143", "0.49517897", "0.4936017", "0.49330023", "0.49157515", "0.49105346", "0.49081147", "0.49018893", "0.4901252", "0.48920503", "0.48842514", "0.4877546", "0.48649555", "0.48571324", "0.4856753", "0.48555374", "0.48351458", "0.48332736", "0.48329878", "0.48277166", "0.48246357", "0.48178416", "0.48133808", "0.48131636", "0.48050708", "0.4805059", "0.4797716", "0.47976422", "0.47884482", "0.4787205", "0.478573", "0.47693074", "0.47689083", "0.47651845", "0.47643253", "0.47622547", "0.47620207", "0.47580665", "0.47554043", "0.47547883", "0.47495696", "0.4749241", "0.47392687", "0.4728954", "0.4719755", "0.4717294", "0.4717294", "0.47132856", "0.47112256", "0.47078842", "0.47031477", "0.4701626", "0.47002232", "0.469781", "0.46911302", "0.4686259", "0.46760976", "0.4673456", "0.46723995", "0.4664749", "0.466129", "0.46580663", "0.46574122", "0.46499908", "0.46456733", "0.46455154", "0.46427003", "0.46420908", "0.46334472", "0.46289665", "0.46281213", "0.46273628", "0.46223417", "0.46076044", "0.46071666", "0.46070138" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean payToArtistByPurchaseOrder(long id) { return false; }
{ "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
Interface for handling Ocean updates
public interface IOnUpdateField { /** * Handles Ocean update */ public void updateField(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "interface Update {}", "public void receivedUpdateFromServer();", "void updateInformation();", "Update createUpdate();", "interface Update {\n\n }", "void update(Information info);", "@Override\n\tpublic void update(UpdateInfo updateInfo) {\n\t\t\n\t}", "interface Update extends\n Appliable<SearchService>,\n Resource.UpdateWithTags<Update>,\n UpdateStages.WithReplicaCount,\n UpdateStages.WithPartitionCount {\n }", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "public abstract Response update(Request request, Response response);", "void update(storage_server_connections connection);", "public void update() {}", "public void update(){}", "public void update(){}", "public interface KcsgUpdateInfoApiService {\n\n /**\n * Update information about other controller.\n *\n * @param data String data to update\n * @return JSON representation\n */\n JsonNode updateData(String data);\n}", "interface Update extends Appliable<PrivateEndpointConnection>, UpdateStages.WithId, UpdateStages.WithName, UpdateStages.WithPrivateEndpoint, UpdateStages.WithPrivateLinkServiceConnectionState, UpdateStages.WithProvisioningState {\n }", "public Object getUpdate(IObserver obj);", "interface Update extends Appliable<Secret>, UpdateStages.WithProperties, UpdateStages.WithTags {\n }", "protected abstract void updateInfos();", "interface Update extends Appliable<MoveCollection>, Resource.UpdateWithTags<Update>, UpdateStages.WithIdentity {\n }", "protected abstract void update();", "protected abstract void update();", "interface Update\n extends UpdateStages.WithBranch,\n UpdateStages.WithFolderPath,\n UpdateStages.WithAutoSync,\n UpdateStages.WithPublishRunbook,\n UpdateStages.WithSecurityToken,\n UpdateStages.WithDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n SourceControl apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n SourceControl apply(Context context);\n }", "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "@Override\n\tpublic void update(Object o) {\n\n\t}", "@Override\n\tpublic void update(Object o) {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "interface Update extends Appliable<Job>, Resource.UpdateWithTags<Update>, UpdateStages.WithCaffe2Settings, UpdateStages.WithCaffeSettings, UpdateStages.WithChainerSettings, UpdateStages.WithCntkSettings, UpdateStages.WithConstraints, UpdateStages.WithContainerSettings, UpdateStages.WithCustomToolkitSettings, UpdateStages.WithEnvironmentVariables, UpdateStages.WithExperimentName, UpdateStages.WithInputDirectories, UpdateStages.WithJobPreparation, UpdateStages.WithOutputDirectories, UpdateStages.WithPriority, UpdateStages.WithTensorFlowSettings {\n }", "public Weather update(Weather weather);", "@Override\n\tpublic void update() { }", "@Override\n public void update() {\n }", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithCancelRequested,\n UpdateStages.WithState,\n UpdateStages.WithReturnAddress,\n UpdateStages.WithReturnShipping,\n UpdateStages.WithDeliveryPackage,\n UpdateStages.WithLogLevel,\n UpdateStages.WithBackupDriveManifest,\n UpdateStages.WithDriveList {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n JobResponse apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n JobResponse apply(Context context);\n }", "public abstract void update(@Nonnull Response response);", "interface Update extends UpdateStages.WithLevel, UpdateStages.WithNotes, UpdateStages.WithOwners {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n ManagementLockObject apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n ManagementLockObject apply(Context context);\n }", "interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithSku,\n UpdateStages.WithOsType,\n UpdateStages.WithDiskSizeGB,\n UpdateStages.WithEncryptionSettingsCollection,\n UpdateStages.WithEncryption {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Snapshot apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Snapshot apply(Context context);\n }", "@Override\r\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\r\n\r\n\t}", "public void updateManager();", "public int update(Conge conge) ;", "public void update(){\n \t//NOOP\n }", "public void willbeUpdated() {\n\t\t\n\t}", "@Override\n public void update() {\n }", "@Override\r\n\tpublic void update() {\r\n\t}", "interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithAutoShutdownProfile,\n UpdateStages.WithConnectionProfile,\n UpdateStages.WithVirtualMachineProfile,\n UpdateStages.WithSecurityProfile,\n UpdateStages.WithRosterProfile,\n UpdateStages.WithLabPlanId,\n UpdateStages.WithTitle,\n UpdateStages.WithDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Lab apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Lab apply(Context context);\n }", "abstract public void update();", "@Override\r\n\tpublic void update(Object object) {\n\t\t\r\n\t}", "@Override\n\tpublic void update(CorsoDiLaurea corso) {\n\t\t\n\t}", "public void update() {\n\n }", "public void update() {\n\n }", "public void update(int updateType);", "public abstract void update(Object obj) ;", "protected abstract boolean supportsForUpdate();", "public interface JournalizeCrawlService extends UpdateService<JournalizeCrawl> {\n}", "public abstract void update ();", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\n public void update() {\n\n }", "@Override\n public void update() {\n \n }", "Motivo update(Motivo update);", "@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}", "public abstract void updateLocations();", "@Override\n public void update()\n {\n\n }", "JobResponse.Update update();", "@Override\n\tpublic void update(Map<String, Object> params)\n\t{\n\t}", "public interface PublicCurrencyUpdateListener {\n void updating();\n\n void updated();\n\n void updateError(Throwable t);\n\n void startUpdate();\n}", "public void update() ;", "protected abstract void update();", "public void update() {\n }", "@Override\r\n\tpublic void update() {\n\r\n\t}", "@Override\r\n\tpublic void update() {\n\r\n\t}", "long getUpdated();" ]
[ "0.6466599", "0.6281397", "0.6211941", "0.61744374", "0.6153742", "0.60462224", "0.60236645", "0.60076547", "0.5989511", "0.5989511", "0.5984646", "0.59738594", "0.5949357", "0.5948642", "0.5948642", "0.5915635", "0.5896934", "0.58814925", "0.587032", "0.58670455", "0.5858053", "0.585231", "0.585231", "0.58354694", "0.58279425", "0.5822538", "0.5822538", "0.58155257", "0.58155257", "0.58155257", "0.58155257", "0.58155257", "0.58155257", "0.58079314", "0.58079314", "0.58079314", "0.5804235", "0.5801626", "0.5789921", "0.57878", "0.578749", "0.578749", "0.578749", "0.578749", "0.578749", "0.578749", "0.578749", "0.578749", "0.578749", "0.578749", "0.578749", "0.578749", "0.5786346", "0.57796806", "0.5776898", "0.57663643", "0.57451546", "0.57451546", "0.5742244", "0.57410187", "0.57410187", "0.57410187", "0.57396144", "0.57306147", "0.5728778", "0.5726667", "0.57201797", "0.5714171", "0.5713726", "0.5709926", "0.5707786", "0.5707339", "0.56999207", "0.5696401", "0.5696401", "0.5693418", "0.5692724", "0.56918246", "0.56886613", "0.5686067", "0.56853545", "0.56853545", "0.56853545", "0.56853545", "0.56853545", "0.5683385", "0.56801194", "0.56768787", "0.56726915", "0.5670218", "0.56695646", "0.56660527", "0.5665895", "0.5663783", "0.56579614", "0.5655849", "0.5640274", "0.56344676", "0.56344676", "0.56316155" ]
0.6626287
0
Method for displaying the receipt.
public String showReceipt(Account account);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void displayReceipt()\r\n\t{\r\n\t\tSystem.out.println(\"__________________________________________________________\");\r\n\t\tSystem.out.println(\"Receipt \");\r\n\t\tSystem.out.println(\"__________________________________________________________\");\r\n\t\tSystem.out.println(\"Waiter/waitress: \"+name);\r\n\t\tSystem.out.println(\"Table Number: \"+tableNo);\r\n\t\tSystem.out.println(\"__________________________________________________________\");\r\n\t\tSystem.out.println(\"ID Item Name Unit Price Quantity Sub-total\");\r\n\t\tSystem.out.println(\"__________________________________________________________\");\r\n\t\tBillingSystemFormatter.receiptFormatter(orderList,menu,subTotalList);\r\n\t\tSystem.out.println(\"__________________________________________________________\");\r\n\t\tBillingSystemFormatter.billFormatter(total, tax, tip, grandTotal);\r\n\t}", "public void printReceipt(){\n\t\t//TO DO\n\t\t\n\t}", "public void printReceipt(){\n sale.updateExternalSystems();\n sale.printReceipt(totalCost, amountPaid, change);\n }", "public void printReceipt(Receipt receipt){\n System.out.println(receipt.toString());\n }", "public void printReceipt() {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION,\"Would you like a receipt?\",ButtonType.YES,ButtonType.NO);\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.YES) {\n try {\n String element = \"\";\n int height = 200;\n int length = 0;\n for (int i = 0; i < getItemList().size(); i++) {\n element += getItemList().get(i).toString() + \" \"+System.getProperty(\"line.separator\");\n height += 20;\n }\n String text = \"Receipt \" + System.getProperty(\"line.separator\")\n + System.getProperty(\"line.separator\") + \"Items: \" + System.getProperty(\"line.separator\")\n + element + System.getProperty(\"line.separator\") + \"Total: \" + getTotalCost();\n char[] array = text.toCharArray();\n System.out.println(array);\n length += array.length;\n BufferedImage bi = imageGenerator.createImageWithText(array, length, height);\n File outputfile = new File(\"receipt.png\");\n ImageIO.write(bi, \"png\", outputfile);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else{\n alert.close();\n }\n }", "public void printReceipt(Receipt receipt) {\n System.out.println(receipt.receiptInStringFormat());\n }", "private void displayReceiptPhoto() {\n\t\tif (mForm == null)\n\t\t\treturn;\n\t\tif (mReceipt == null)\n\t\t\treturn;\n\t\timageWidget().displayPhoto(getRBuddyActivity().photoStore(),\n\t\t\t\tmReceipt.getId(),\n\t\t\t\tmReceipt.getPhotoId());\n\t}", "public receipt() {\n initComponents();\n \n }", "public void display() {\r\n System.out.println(\" Cart Information \" + System.lineSeparator() +\r\n \"=========================\" + System.lineSeparator() +\r\n \"Customer ID: \" + getCustID() + System.lineSeparator() + \r\n \"Cart Total: \" + getTotal()+ System.lineSeparator());\r\n items.display();\r\n }", "public void doPrint() {\n printBehavior.printReceipt();\n\n }", "@Override\r\n public final void outputTransaction(String receiptOutput) {\r\n JOptionPane.showMessageDialog(null, receiptOutput, EZ, JOptionPane.PLAIN_MESSAGE, icon);\r\n }", "private void printTxnReceipt(IApplicationManager theAppMgr, String receiptName\n , boolean isFirstPrint) {\n ReceiptLocaleSetter localeSetter = new ReceiptLocaleSetter(compositePOSTransaction.getStore()\n , getCustomer());\n ReceiptFactory receiptFactory = new ReceiptFactory(new Object[] {this\n }, receiptName);\n localeSetter.setLocale(receiptFactory);\n if (isFirstPrint)\n receiptFactory.print(theAppMgr);\n else{\n //\tSystem.out.println(\"666666666666666666666666\");\n receiptFactory.reprint(theAppMgr);\n }}", "private void generateReceipt(){\n ArrayList<Product> productList = cart.getProductList();\n ArrayList<Float> costsList = cart.getCostsList();\n for (int i=0; i<productList.size(); i++){\n String quantity = \"\"+productList.get(i).getQuantity();\n String name = \"\"+productList.get(i).getName();\n String cost = \"\"+Math.round(costsList.get(i) * 100.0) / 100.0;\n //String cost = \"\"+costsList.get(i);\n \n reciept.addLine(quantity+\" \"+name+\": \"+cost);\n }\n \n reciept.addLine(\"Total Taxes: \"+Math.round(cart.getTotalTax() * 100.0) / 100.0);\n reciept.addLine(\"Total: \"+ Math.round((cart.getTotalTax()+cart.getTotalCost()) * 100.0) / 100.0);\n // print reciept\n }", "@Override\n public String toString()\n {\n String str = \"\";\n str += \"\\n********* Receipt *********\\n\";\n str += \"Order Number: \" + orderNum + \"\\nDate: \" + date + \"\\n\";\n str += \"Bartender: \" + bartenderName + \", \" + \"Customer: \" + customerName + \"\\n\";\n str += \"Drinks: \";\n\n for(DrinkAndQuantity d : drinksAndQuantities){\n str += d.toString() + \", \";\n }\n str = str.substring(0, str.length() - 2);\n \n //get payment info\n String payValue = \"\";\n String payType = \"\";\n if(paid){\n payValue = \" Yes,\";\n payType = paymentType;\n }else{\n payValue = \" No,\";\n payType = paymentType;\n }\n \n str += \"\\n\";\n str += \"Paid: \" + payValue + \" \" + paymentType;\n \n //get price\n NumberFormat formatter = NumberFormat.getCurrencyInstance();\n String totalCurrency = formatter.format(totalPrice);\n str += \"\\n\";\n str += \"Total: \" + totalCurrency;\n str += \"\\n***************************\\n\";\n return str;\n }", "public void print(){\r\n\t\t\t\r\n\t\t\tint i=1;\r\n\t\t\t//Iterator<Receipt> iter=reciptlist.iterator();\r\n\t\t\t\r\n\t\t\tfor(Receipt R : reciptlist){\r\n\t\t\t\r\n\t\t\t\tSystem.out.println( \"--------------------------------------\");\r\n\t\t\t\tSystem.out.println( \"Reciet number: \" +i );\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.println( \"ShoeType: \" + R.getShoeType());\r\n\t\t\t\t\tSystem.out.println( \" Amount: \" + R.getAmountSold());\r\n\t\t\t\t\tSystem.out.println( \" Discounted: \" + R.getDiscount());\r\n\t\t\t\t\tSystem.out.println( \" issuedTick : \" + R.getIssuedTick());\r\n\t\t\t\t\tSystem.out.println( \" requestd tick : \" + R.getRequestTick());\r\n\t\t\t\t\tSystem.out.println( \" customer : \" + R.getCustomer());\r\n\t\t\t\t\tSystem.out.println( \" seller : \" + R.getSeller());\r\n\t\t\t\t\t\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t}", "public void savingsReceipPrint(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\n//p.color(0);\n//p.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Made Receipt ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Savings Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Savings Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Savings Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Savings Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.addLineSeperator();\np.doubleStrik(true);\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.setText(\"OFFICE NUMBER: \"+receiptDetails.get(12).toString());\n////p.newLine();\n//p.addLineSeperatorX();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }", "@Override\n public String toString() {\n return \"Receipt{id=\"\n + this.receiptId.toString()\n + \", \"\n + \"Time placed=\"\n + this.timePlaced\n + \", \"\n + \"StoreId=\"\n + this.cart.getStoreID()\n + \", \"\n + \"Pizzas=\"\n + this.cart.getPizzas()\n + \", \"\n + \"Sides=\"\n + this.cart.getSides()\n + \", \"\n + \"Total Amount=\"\n + this.cart.getTotalAmount()\n + \", \"\n + \"Card=card number ending with \"\n + this.card.getCardNumber().substring(this.card.getCardNumber().length() - 4)\n + \"}\";\n }", "public void savingsWithdrawReceipPrint(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\np.color(0);\np.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Withdrawal ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Withdrawal Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Withdrawal Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Withdrawal Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Withdrawal Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(7).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.addLineSeperator();\np.doubleStrik(true);\n//p.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\np.newLine();\np.setText(\"OFFICE NUMBER: \"+receiptDetails.get(12).toString());\n\np.newLine();\np.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }", "public static void display(String title, String ticketNumber, int hours, double price, String vehicleType) {\n //Control objects declarations and assignments\n \n Stage customerReceipt = new Stage();\n \n customerReceipt.initModality(Modality.APPLICATION_MODAL);\n customerReceipt.setTitle(title);\n customerReceipt.setMinWidth(500);\n customerReceipt.setMinHeight(500);\n totalPrice = price;\n \n Label labelTicketPurchased = new Label(\"Receipt:\");\n Label labelTicketNumber = new Label(\"Ticket Number: \" + ticketNumber);\n Label labelVehicleType = new Label(\"Vehicle Type: \" + vehicleType);\n Label labelTotalHours = new Label(\"Total Hours: \" + hours);\n Label labelTotalPrice = new Label(\"Total Price: $\" + price);\n Label labelPaidPrice = new Label(\"Paid Price: $\" + totalPrice);\n Label labelPrintTicket = new Label(\"Please take picture \\nif asked by attendant\");\n \n Button buttonExit = new Button(\"Exit\");\n canvasReceipt.setStyle(\"-fx-background-color: white\");\n \n //Button click lambda events\n buttonExit.setOnAction(e -> {\n customerReceipt.close();\n });\n \n //VBox creation and node additions\n VBox vboxReceiptInfo = new VBox(10);\n vboxReceiptInfo.setPadding(new Insets(10, 10, 10, 10));\n \n vboxReceiptInfo.getChildren().addAll(labelTicketPurchased, labelTicketNumber, labelVehicleType, labelTotalHours, labelTotalPrice, labelPaidPrice, buttonExit, labelPrintTicket);\n \n //VBox addition to canvasReceipt\n canvasReceipt.getChildren().addAll(vboxReceiptInfo);\n \n //Scene assignment\n Scene customerReceiptScene = new Scene(canvasReceipt);\n customerReceipt.setScene(customerReceiptScene);\n customerReceipt.show();\n }", "private void display() {\n // TODO add your handling code here:\n String body = \"<ns1:SinglePayoutRequest>\\n\"\n + \"\t<ns1:CardPayoutRequest>\\n\"\n + \"\t\t<ns1:Account>\\n\"\n + \"\t\t\t<ns1:PayGateId>\" + payGateIDField.getText() + \"</ns1:PayGateId>\\n\"\n + \"\t\t\t<ns1:Password>\" + passwordField.getText() + \"</ns1:Password>\\n\"\n + \"\t\t</ns1:Account>\\n\"\n + \"\t\t<ns1:Customer>\\n\"\n + \"\t\t\t<ns1:FirstName>\" + firstnameField.getText() + \"</ns1:FirstName>\\n\"\n + \"\t\t\t<ns1:LastName>\" + lastnameField.getText() + \"</ns1:LastName>\\n\"\n + \"\t\t\t<ns1:Email>\" + emailField.getText() + \"</ns1:Email>\\n\"\n + \"\t\t</ns1:Customer>\\n\"\n + \"\t\t<ns1:CardNumber>\" + cardNumberField.getText() + \"</ns1:CardNumber>\\n\"\n + \"\t\t<ns1:CardExpiryDate>\" + cardExpiryDateField.getText() + \"</ns1:CardExpiryDate>\\n\"\n + \"\t\t<ns1:Order>\\n\"\n + \"\t\t\t<ns1:MerchantOrderId>\" + merchantOrderIDField.getText() + \"</ns1:MerchantOrderId>\\n\"\n + \"\t\t\t<ns1:Currency>\" + currencyField.getText() + \"</ns1:Currency>\\n\"\n + \"\t\t\t<ns1:Amount>\" + amountField.getText() + \"</ns1:Amount>\\n\"\n + \"\t\t</ns1:Order>\\n\"\n + \"\t</ns1:CardPayoutRequest>\\n\"\n + \"</ns1:SinglePayoutRequest>\\n\";\n requestArea.setText(body);\n }", "private void reprint() {\n HashMap<Integer, Invoice> invoiceHashMap = new HashMap<>();\n printHeader(\"List of Invoices\");\n MainApp.invoices.forEach((invoice -> {\n System.out.println(\"Receipt #\" + invoice.getOrderID() + \", Paid On: \" + DateTimeFormatHelper.formatMillisToDateTime(invoice.getCompletedAt()));\n invoiceHashMap.put(invoice.getOrderID(), invoice);\n }));\n printBreaks();\n invoiceHashMap.put(-1, null);\n int selection = ScannerHelper.getIntegerInput(\"Select invoice to reprint receipt: \", new ArrayList<>(invoiceHashMap.keySet()), \"Invalid Receipt Number. Please select a valid receipt number or enter -1 to cancel\");\n if (selection == -1) {\n System.out.println(\"Receipt Cancelled\");\n return;\n }\n Invoice selected = invoiceHashMap.get(selection);\n ArrayList<String> receipts;\n if (selected.getReceipt().equals(\"-\")) {\n // No receipt, generate and save\n receipts = generateReceipt(selected, selected.getTotal(), selected.getAmountPaid(), selected.getPaymentType());\n } else {\n String filePath = RECEIPT_SUBFOLDER + selected.getReceipt();\n try {\n BufferedReader reader = FileIOHelper.getFileBufferedReader(filePath);\n receipts = reader.lines().collect(Collectors.toCollection(ArrayList::new));\n } catch (IOException e) {\n System.out.println(\"Failed to load receipt. Regenerating\");\n receipts = generateReceipt(selected, selected.getTotal(), selected.getAmountPaid(), selected.getPaymentType());\n }\n }\n\n System.out.println(\"Reprinting Receipt...\");\n System.out.println();\n System.out.println();\n receipts.forEach(System.out::println);\n System.out.println(\"\\n\");\n }", "public void display() {\n System.out.println(\"Title: \" + this.title);\n System.out.println(\"Description: \" + this.des);\n System.out.println(\"Price Per Night: $\" + this.price);\n System.out.println(\"Max Guests: \" + this.guests);\n System.out.println(\"Length of stay: \" + this.days + \" days\");\n System.out.println(\"Total for stay: $\" + this.total);\n System.out.println(\"-----------------------------------\");\n }", "public void display()\n\t{\n\t\tSystem.out.println(\"Bike No.\\t\"+\n\t\t\t\t\"Phone no.\\t\"+\n\t\t\t\t\"Name\\t\"+\n\t\t\t\t\"No. of days\\t\"+\n\t\t\t\t\"Charge\");\n\t\tSystem.out.println(bno+\n\t\t\t\t\"\\t\"+phno+\n\t\t\t\t\"\\t\"+name+\n\t\t\t\t\"\\t\"+days+\n\t\t\t\t\"\\t\"+charge);\n\t}", "public void display() {\n \t\tSystem.out.printf(\"|%6s \", String.valueOf(idNumber));\n\t\tSystem.out.printf(\"|%13s |\", name);\n\t\tSystem.out.printf(\"%10s |\", quantity);\n\t\tSystem.out.printf(\"%8.2f |\", price);\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.println();\n }", "public void loanPaymentReceit(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\n//p.color(0);\n//p.chooseFont(1);\np.alignCenter();\np.emphasized(true);\np.underLine(2);\np.newLine();\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Loan Repayment Receipt ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Batch Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Loan ID: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \np.emphasized(false);\np.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX\"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\np.newLine();\np.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\np.newLine();\np.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\np.newLine();\np.setText(\"Payment Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(12).toString()+p.underLine(0));\np.newLine();\np.setText(\"Payment Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(13).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Payment Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\np.newLine();\np.alignLeft();\np.setText(\"Loan Paid: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Loan Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(9).toString()+\"/=\"+p.underLine(0));\np.newLine(); \n//p.alignLeft();\n//p.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\np.newLine();\n\np.addLineSeperator();\np.doubleStrik(true);\n\np.underLine(2) ;\np.newLine();\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\n\np.addLineSeperatorX();\np.newLine();\np.addLineSeperator();\np.newLine();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\n\np.addLineSeperator();\n//p.newLine();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\n\n//p.addLineSeperator();\np.newLine();\np.setText(\"OFFICE NUMBER: \"+receiptDetails.get(17).toString());\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }", "void display() {\n System.out.println(\"============================================================================================\");\n System.out.println(\"Name of the book:: \" + Bname);\n System.out.println(\"Price of the book:: Rs \" + price);\n System.out.println(\"============================================================================================\");\n }", "public void loanDisbursementReceit(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\n//p.color(0);\n//p.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Loan Disbursment Receipt ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Batch Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Loan ID: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\np.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\np.newLine();\np.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\np.newLine();\np.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\np.newLine();\np.setText(\"Disbursemnt Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(12).toString()+p.underLine(0));\np.newLine();\np.setText(\"Disbursement Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(13).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Disbursement Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Loan Disbursed: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(15).toString()+\"/=\"+p.underLine(0));\np.newLine(); \n//p.alignLeft();\n//p.setText(\"Loan Remaining: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(9).toString()+\"/=\"+p.underLine(0));\n//p.newLine(); \n//p.alignLeft();\n//p.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\np.addLineSeperator();\np.doubleStrik(true);\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.setText(\"OFFICE NUMBER: \"+receiptDetails.get(17).toString());\n//p.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n }", "public void savingsReceipPrintStamp(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\n//p.color(0);\n//p.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Made Receipt ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Savings Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Savings Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Savings Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Savings Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\np.newLine();\n//p.setText(\"OFFICE NUMBER: \"+receiptDetails.get(12).toString());\n////p.newLine();\n//p.addLineSeperatorX();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }", "public void display()\r\n\t{\r\n\t\tSystem.out.println(\"Dollar: $\"+getAmount());\r\n\t\tSystem.out.println(\"Rupiah: Rp.\"+dollarTorp());\r\n\t}", "public void cashReceipt(int amount){\r\n System.out.println(\"Take the receipt\");\r\n }", "public void print() {\n System.out.println(\"Code: \"+this.productCode);\n System.out.println(\"Name: \"+ this.productName);\n System.out.println(\"Price: \"+this.price);\n System.out.println(\"Discount: \"+this.discount+\"%\");\n }", "public void savingsWithdrawReceipPrintStamp(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\np.color(0);\np.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Withdrawal ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Withdrawal Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Withdrawal Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Withdrawal Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Withdrawal Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(7).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.addLineSeperator();\np.doubleStrik(true);\n//p.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.setText(\"OFFICE NUMBER: \"+receiptDetails.get(12).toString());\n\np.newLine();\np.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }", "public void loanDisbursementReceitStamp(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\n//p.color(0);\n//p.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Loan Disbursment Receipt ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Batch Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Loan ID: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\np.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\np.newLine();\np.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\np.newLine();\np.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\np.newLine();\np.setText(\"Disbursemnt Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(12).toString()+p.underLine(0));\np.newLine();\np.setText(\"Disbursement Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(13).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Disbursement Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Loan Disbursed: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(15).toString()+\"/=\"+p.underLine(0));\np.newLine(); \n//p.alignLeft();\n//p.setText(\"Loan Remaining: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(9).toString()+\"/=\"+p.underLine(0));\n//p.newLine(); \n//p.alignLeft();\n//p.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\n//p.setText(\"OFFICE NUMBER: \"+receiptDetails.get(17).toString());\n//p.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n }", "public void loanPaymentReceitStamp(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\n//p.color(0);\n//p.chooseFont(1);\np.alignCenter();\np.emphasized(true);\np.underLine(2);\np.newLine();\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Loan Repayment Receipt ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Batch Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Loan ID: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \np.emphasized(false);\np.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX\"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\np.newLine();\np.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\np.newLine();\np.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\np.newLine();\np.setText(\"Payment Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(12).toString()+p.underLine(0));\np.newLine();\np.setText(\"Payment Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(13).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Payment Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\np.newLine();\np.alignLeft();\np.setText(\"Loan Paid: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Loan Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(9).toString()+\"/=\"+p.underLine(0));\np.newLine(); \n//p.alignLeft();\n//p.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\np.newLine();\n\np.addLineSeperator();\np.doubleStrik(true);\n\np.underLine(2) ;\np.newLine();\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\n\np.addLineSeperatorX();\np.newLine();\np.addLineSeperator();\np.newLine();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\n\np.addLineSeperator();\n//p.newLine();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\n\n//p.addLineSeperator();\n//p.newLine();\n//p.setText(\"OFFICE NUMBER: \"+receiptDetails.get(17).toString());\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }", "public void sendReceipt(ActionEvent event) throws IOException, FileNotFoundException, DocumentException {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\r\n HttpServletResponse response = (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse();\r\n System.err.println(\"hahaha teest\");\r\n// thisOrder = (OrderEntity) event.getComponent().getAttributes().get(\"viewOrder\");\r\n System.out.println(\"No1: in sending invoice\" + thisOrder.getOrderId());\r\n billingSessionBean.createReceipt(thisOrder.getInvoice().getInvoiceId(), currentDate);\r\n thisOrder.setStatus(\"ReceiptSent\");\r\n orderSessionBean.updateOrder(thisOrder);\r\n double amount = thisOrder.getSalePrice();\r\n int receivable = billingSessionBean.viewAccount(2).getId();\r\n int cash = billingSessionBean.viewAccount(1).getId();\r\n System.out.println(\"whats the price now? and account\" + amount + receivable + cash);\r\n billingSessionBean.receivePayment(amount, cash);\r\n billingSessionBean.postPayment(amount, receivable);\r\n System.out.println(\"NO2: After confirming\" + thisOrder.getStatus());\r\n fBEmailSessionBean.sendReceipt(thisOrder.getEmail(), thisOrder.getInvoice().getReceipt());\r\n }", "private void showSuccessfullPreparationAndPrintLabel(Prescription prescription) {\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(null);\n\n // if (prescription.getMedications().size() > 1) {\n\n/* alert.setContentText(\"You now have successfully prepared all medications\\n for the prescription\" +\n \"congratulations!! :-p\" +\n \"\\nTake the printed barcode and put in on the item\" +\n \"\\nto enable bedside scanning.\" +\n \"\\n<< Happy Scan >>\"\n );*/\n\n alert.setContentText(\"Für die Verordnung -\" + prescription.getDescription()\n + \"- mit ID \" + prescription.getPolypointID() +\n \" wurden alle Medikamente vorbereitet,\\n\" +\n \"eine Barcode-Etikette wird im Anschluss gedruckt.\"\n );\n alert.showAndWait();\n\n try {\n barcodeGenerator.printBarcode(prescription, printerName, filePath);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (PrinterException e) {\n e.printStackTrace();\n Alert printAlert = new Alert(Alert.AlertType.ERROR);\n printAlert.setTitle(\"Druckfehler Dialog\");\n printAlert.setHeaderText(null);\n printAlert.setContentText(\"Leider gab es ein Fehler beim Drucken mit Drucker \" + printerName + \".\\n\" +\n \"Falls der Drucker in Ordnung ist, lösen Sie den Vorgang erneut aus.\");\n printAlert.showAndWait();\n }\n\n //}\n\n\n\n\n }", "public LinkedList<String> printReceipts (TheGroceryStore g);", "public void showInvoiceNo(){\n\t}", "public void print()\n {\n System.out.println();\n System.out.println(\"Ticket to \" + destination +\n \" Price : \" + price + \" pence \" + \n \" Issued \" + issueDateTime);\n System.out.println();\n }", "public void print() {\n\t\tString sqlList = \"select * from commodity;\";\n\t\tcommodityBuffer = new StringBuffer();\n\t\ttry {\n\t\t\tconnection = SQLConnect.getConnection();\n\t\t\tstatement = connection.createStatement();\n\t\t\tresultSet = statement.executeQuery(sqlList);\n\n\t\t\t// put the commodity messages into a stringbuffer\n\t\t\twhile ( resultSet.next() ) {\n\t\t\t\tcommodityBuffer.append(resultSet.getString(\"number\")+\" - \"+resultSet.getString(\"name\")+\"\\n\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// show the commodity messages on window\n\t\tcommodityArea = new JTextArea(commodityBuffer.toString());\n\t}", "public void printReceipt(int amount){\r\n PaymentAuthorization payAuth = new PaymentAuthorization();\r\n if (payAuth.authRequest(card)){\r\n System.out.println(\"Take the receipt\");\r\n }\r\n }", "@Override\n public String toString() {\n return \"Receipt{\"\n + \"itemsReceived=\" + itemsReceived\n + \", itemsOutOfStock=\" + itemsOutOfStock\n + \", removedItems=\" + removedItems\n + '}';\n }", "@Override\r\n\tpublic void display() {\n\t\tSystem.out.println(\"Discount Code: \" + discode);\r\n\t\tSystem.out.println(\"Group Size: \" + groupsize);\r\n\t\t\r\n\t}", "@Override\n public void printBill() {\n System.out.println(\"BILL FOR TABLE #\" + id);\n for (MenuItem item : bill.getItems()) {\n if (item.getPrice() == 0.0) {\n System.out.println(item.getQuantity() + \" \" + item.getName() + \": $\" + String.format(\"%.2f\", item.getTotal()) + \" Sent back because: \" + item.getComment() + \".\");\n } else {\n System.out.println(item.getQuantity() + \" \" + item.getName() + \": $\" + String.format(\"%.2f\", item.getTotal()));\n }\n for (Ingredient addedIng : item.getExtraIngredients()) {\n System.out.println(\"add \" + item.getQuantity() + \" \" + addedIng.getName() + \": $\" + String.format(\"%.2f\", addedIng.getPrice() * item.getQuantity()));\n }\n for (Ingredient removedIng : item.getRemovedIngredients()) {\n System.out.println(\"remove \" + item.getQuantity() + \" \" + removedIng.getName() + \": -$\" + String.format(\"%.2f\", removedIng.getPrice() * item.getQuantity()));\n }\n\n }\n System.out.println(\"Total: $\" + getBillPrice() + \"\\n\");\n }", "public void printRetailExportReceipt(IApplicationManager theAppMgr) {\n this.isPrintingRetailExportReceipt = true;\n Object[] arguments = {this\n };\n if (((CMSCompositePOSTransaction)this.getPaymentTransaction()).isPostAndPack()) {\n theAppMgr.showErrorDlg(res.getString(\n \"Retail Export is not allowed for Post and Pack transactions.\"));\n return;\n }\n ReceiptFactory receiptFactory = new ReceiptFactory(arguments\n , ReceiptBlueprintInventory.CMSRetailExportReceipt);\n ReceiptLocaleSetter localeSetter = new ReceiptLocaleSetter(getPaymentTransaction().getStore()\n , getCustomer());\n localeSetter.setLocale(receiptFactory);\n receiptFactory.print(theAppMgr);\n this.isPrintingRetailExportReceipt = false;\n }", "public void Display(){\n System.out.println(\"************************************************************\");\n System.out.println(\"Customer Account Number: \"+getAccountNo());\n System.out.println(\"Customer Account Id: \"+getAccountId());\n System.out.println(\"Customer Type: \"+getAccountType());\n System.out.println(\"Customer Balance: $\"+getAccountBal());\n System.out.println(\"Thank you for banking with us!\");\n System.out.println(\"************************************************************\");\n }", "public synchronized void onReceipt(DatagramPacket packet) {\n\t\tStringContent content= new StringContent(packet);\n\t\tthis.notify();\n\t\tterminal.println(content.toString());\n\t}", "@Override\n\tpublic void showContents() {\n\t\tprogram.add(returnToMain);\n\t\tprogram.add(congratMessage);\n\t\tprogram.setBackground(Color.DARK_GRAY);\n\t\t\n\t}", "public static void printReceipt(double totalPurchase, double tip, double tipAmount, double totalAmount) {\n\t\tSystem.out.println(\"Total purchase: \" + totalPurchase + \"\\n\" +\n\t\t\t\t\"Tip amount: \" + tipAmount + \" (\" + tip + \"%) \\n\" +\n\t\t\t\t\"Total amount with tip: \" + totalAmount);\n\t\n\t}", "public String toString() {\r\n\t\treturn super.display() + \"\\n\" + listAllCards() + \r\n\t\t\t\t\"Purchased tickets: \\n\" + listAllTickets() +\r\n\t\t\t\t\"___________________________________________\";\r\n\t}", "public void printInvoiceInfo() {\r\n\r\n\t\tSystem.out.println(\"\\nBill Summary :\");\r\n\r\n\t\tfor (int i = 0; i <= (numberOfBills - counter); i++) {\r\n\t\t\tSystem.out.println(invoiceInfo[i].toString());\r\n\t\t}\r\n\t}", "public void invoice(){ //------------------------------->>-----------------------------------void invoice------------------------------->>--------------------------------------------------//\r\n\t\r\n\t\r\n\r\n\t\tSystem.out.println(\"\\n\\n\\n\");\r\n\t\tSystem.out.println(\"--------------------------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"\tSr.No\t||\tName \t||\tQuantity\t||\tPrice\t||\tAmount\t\");\r\n\t\tSystem.out.println(\"--------------------------------------------------------------------------------------------\");\r\n \t\r\n\tfor(i = 1; i <= n; i++){\r\n\r\n\t\tSystem.out.println(\"\\t\"+ i+\"\\t\\t\"+name[i]+\"\\t\\t\"+quantity[i]+\"\\t\\t\\t\"+price[i]+\"\\t\\t\"+amount[i]); \t\t\r\n\t \r\n\t} // end of for loop\r\n\t\tSystem.out.println(\"--------------------------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"\tTotal\t\t||\t\t\t\t\t\t \t\t\"+ total);\r\n\t\tSystem.out.println(\" For You\t\t||\t\t\t\t\t\t \t\t\"+ cc);\r\n\r\n\t\tSystem.out.println(\"\\n\\n\\n\");\r\n \r\n }", "public String completeSale(){\n updateEISAndEAS();\n return sale.printReceipt(paymentDTO);\n }", "public void displayCart() {\n\t\tSystem.out.println(cart.toString());\n\t}", "public void display() {\n System.out.println(\"Displaying Order properties:\\n Order ID number: \" + getOrderID() + \"\\n Customer ID Number: \" + getCustomerID() + \"\\n Order Status: \" + getStatus());\n }", "public void display()\r\n {\r\n System.out.println(\"Description: \" +description);\r\n if(!customersName.equals(\"\")) {\r\n System.out.println(\"Customer Name: \" +customersName);\r\n }\r\n }", "public void displayOrder(Order order) {\n ProductType productType;\n// State state;\n \n productType = order.getProductType();\n// state = order.getState();\n \n ui.say(\n \"Customer Name: \" + order.getCustomerName() + \"\\n\" +\n \"State: \" + order.getState().getName() + \"\\n\" + \n \"Product Type: \" + productType.getName() + \"\\n\" +\n \"Area: \" + order.getArea()+ \" sq ft\\n\" + \n// \"Material Cost Per Square Foot: $\" + productType.getMaterialCostPerSquareFoot() + \"\\n\" +\n \"Material Cost: $\" + order.getMaterialCost() + \"\\n\" +\n// \"Labor Cost Per Square Foot: $\" + productType.getLaborCostPerSquareFoot() + \"\\n\" +\n \"Labor Cost: $\" + order.getLaborCost() + \"\\n\" + \n// \"Tax Rate: \" + state.getTaxRate() + \"\\n\" +\n \"Tax: $\" + order.getTax() + \"\\n\" +\n \"Total: $\" + order.getTotal() \n );\n }", "public void displayProduct() {\n\t\tDisplayOutput.getInstance()\n\t\t\t\t.displayOutput(StoreFacade.getInstance());\n\t}", "@Override\n\tpublic String print(CliPrinter printer) {\n\t\treturn printer.printTProductCards(this);\n\t}", "public void loanStatament(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\np.color(0);\np.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Withdrawal ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Withdrawal Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Withdrawal Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Withdrawal Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Withdrawal Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(7).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\np.addLineSeperator();\np.doubleStrik(true);\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\n//p.addLineSeperatorX();\np.newLine();\np.setText(\"OFFICE NUMBER: \"+receiptDetails.get(17).toString());\np.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }", "public void readCustomerReceipt()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tScanner reader = new Scanner(new FileReader(\"customerReceipt.txt\"));\r\n\t\t\twhile (reader.hasNext())\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(reader.nextLine());\r\n\t\t\t}\r\n\t\t\treader.close();\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"FileNotFoundException\");\r\n\t\t}\r\n\t}", "@Override\n protected int generateMenuScreen() {\n printHeader(\"Checkout\");\n System.out.println(\"1) Checkout\");\n System.out.println(\"2) Reprint Invoice\");\n System.out.println(\"3) Back to main menu\");\n System.out.println(\"0) Exit Application\");\n printBreaks();\n\n int choice = doMenuChoice(34, 0);\n switch (choice) {\n case 1:\n if (checkout()) {\n System.out.println();\n return -1; // If completed, go back to main menu\n }\n System.out.println();\n break;\n case 2:\n reprint();\n break;\n case 3:\n return -1;\n case 0:\n return 1;\n\n default:\n throw new MenuChoiceInvalidException(\"Checkout\");\n }\n return 0;\n }", "private static void viewCart() {\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" The items in your cart\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Name |Price |Count\");\r\n\t\tfor (Map.Entry<Product, Integer> productCountPair: cart.getCartProductsEntries()) {\r\n\t\t\tStringBuilder productName = generatePaddings(productCountPair.getKey().getName(), PRODUCT_NAME_LENGTH);\r\n\t\t\tStringBuilder price = generatePaddings(convertCentToDollar(productCountPair.getKey().getPriceInCent()), PRICE_LENGTH);\r\n\t\t\tSystem.out.println(\" \" + productName + \"|\" + price + \"|\" + productCountPair.getValue());\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Total price: \" + convertCentToDollar(cart.totalPriceInCent()));\r\n\t\tSystem.out.println();\r\n\t\tdisplayCartMenu();\r\n\t}", "public void view() {\n\t\t\t\n\t\t\tSystem.out.println(\"Poping up window to show each order of customer @ AdminSaleController\");\n\t\t\tCustomerOrderMain vo = new CustomerOrderMain();\n\t\t vo.start(ps);\n\t\t\t\n\t\t}", "public void display(){\r\n System.out.println(\"The Vacancy Number is : \" + getVacancyNumber());\r\n System.out.println(\"The Designation is : \" + getDesignation());\r\n System.out.println(\"The Job Type is : \" + getJobType());\r\n }", "private void displayBook() {\n NumberFormat formatter = NumberFormat.getCurrencyInstance();\n\n System.out.println(\"Book title: \" + getTitle());\n System.out.println(\"Book author: \" + getAuthor());\n System.out.println(\"Book description: \" + getDescription());\n System.out.println((\"The price is: \" + formatter.format(getPrice())));\n if (isInStock()) {\n System.out.println(\"Currently the book is in stock.\");\n }\n else {\n System.out.println(\"Currently the book is not in stock.\");\n }\n System.out.println();\n }", "@Override\n\tpublic String printBillInvoice(Billing bill) {\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tstringBuilder.append(\"RetailCustomer Details:\");\n\t\tstringBuilder.append(retailCustomer);\n\t\tstringBuilder.append(\"Shop the following:\");\n\t\tstringBuilder.append(bill.getOnlineShoppingCartItem());\n\t\tstringBuilder.append(\" Total Bill Amount : \");\n\t\tstringBuilder.append(bill.getTotalBill());\n\t\tstringBuilder.append(\" Bill Amount After RetailCustomer Discount:\");\n\t\tstringBuilder.append(bill.getTotalBillAfterRetailCustomerTypeDiscount());\n\t\tstringBuilder.append(\" Bill Amount After final Discount:\");\n\t\tstringBuilder.append(bill.getTotalBillCost());\n\t\treturn stringBuilder.toString();\n\t}", "public void print(){\r\n\t\tint ListLength = this.promo.size();\r\n\t\tSystem.out.println(\"Type: \"+this.Type);\r\n\t\tSystem.out.println(\"Name: \"+this.name);\r\n\t\tSystem.out.println(\"Description: \"+this.description);\r\n\t\tSystem.out.printf(\"$%.2f\\n\", this.price);\r\n\t\tSystem.out.println(\"Featured dishes:\");\r\n\t\tfor (int i =0; i<ListLength; i++){\r\n\t\t\tSystem.out.print(\"\\t\"+(i+1) + \". \");\r\n\t\t\tSystem.out.println(this.promo.get(i).getName()); //print name of ala-carte item in promo array\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public void loanStatamentStamp(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\np.color(0);\np.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Withdrawal ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Withdrawal Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Withdrawal Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Withdrawal Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Withdrawal Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(7).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\n//p.addLineSeperatorX();\n//p.newLine();\n//p.setText(\"OFFICE NUMBER: \"+receiptDetails.get(17).toString());\np.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }", "@Test\r\n public void testPrintReceipt() {\r\n \r\n instance = new Controller(dbMgr);\r\n instance.printReceipt();\r\n \r\n }", "@Override\n public void print() {\n System.out.println(\"VIn:- \"+getVehicalIndentificationNumber());\n System.out.println(\"Description:- \"+getVechicalDiscription());\n System.out.println(\"Manufacturer:- \"+getManufacturerName());\n System.out.println(\"isSelfDrive:- \"+getSelfDrive());\n System.out.println(\"isInsured:- \"+getInsured());\n System.out.println(\"insuranceProviderName:- \"+getInsuranceProviderName());\n System.out.println(\"NumberOfSeat:- \"+getNoOfSeat());\n System.out.println(\"FuelType:- \"+getFuelType());\n System.out.println(\"BaseRate:- \"+getBaseRate());\n System.out.println(\"RatePerKm:- \"+getRatePerKm());\n System.out.println(\"VehicleType:- \"+getVehicleType());\n System.out.println(\"Color:- \"+getColor());\n }", "public String displayDetails()\n\t{\n\t\tString displayDetail = \"\";\n\t\t \n\t\tdisplayDetail = (\"Make of your System\\t\\t=>\\t\" + make + \n\t\t\t\t\t\t\"\\nModel of your System\\t\\t=>\\t\" + model + \n\t\t\t\t\t\t\"\\nSpeed of your System\\t\\t=>\\t\" + speed + \n\t\t\t\t\t\t\"\\nMemory of your System\\t\\t=>\\t\" + memorySize + \" MB \" +\n\t\t\t\t\t\t\"\\nHard Disk of your System\\t=>\\t\" + hardDiskSize + \" GB \" +\n\t\t\t\t\t\t\"\\nPurchase Cost of your System\\t=>\\t\" + purchaseCost);\n\t\t\n\t\treturn displayDetail;\n\t}", "public String toString() {\n if (displayString == null)\n {\n displayString = this.exchange + ':' + this.firmNumber + ':' + classKey;\n }\n return displayString;\n }", "void showOrdersText();", "@FXML\n void displayPD() {\n generalTextArea.clear();\n clearEverything();\n String employeeListPD = company.printByDepartment();\n generalTextArea.appendText(employeeListPD);\n }", "private void showFinalInfoDialogue(boolean NEGATIVE_DUE, double dueAmnt, final SalesReturnReviewItem printList) {\n\n paymentDialog.dismiss();\n final Dialog lastDialog = new Dialog(this);\n\n lastDialog.setContentView(R.layout.pop_up_for_sale_and_payment_success);\n\n\n //SETTING SCREEN WIDTH\n lastDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n Window window = lastDialog.getWindow();\n window.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n //*************\n\n lastDialog.setOnDismissListener(new DialogInterface.OnDismissListener() {\n @Override\n public void onDismiss(DialogInterface dialog) {\n finish();\n }\n });\n\n Button okayButton = lastDialog.findViewById(R.id.pop_up_for_payment_okay);\n okayButton.setText(\"Done\");\n okayButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n lastDialog.dismiss();\n }\n });\n\n Button printBtn = lastDialog.findViewById(R.id.pop_up_for_payment_add_pay);\n printBtn.setText(\"Print\");\n printBtn.setVisibility(View.VISIBLE);\n printBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (btsocket == null) {\n Intent BTIntent = new Intent(getApplicationContext(), DeviceList.class);\n startActivityForResult(BTIntent, DeviceList.REQUEST_CONNECT_BT);\n } else {\n BPrinter printer = new BPrinter(btsocket, SalesReviewDetail.this);\n FabizProvider provider = new FabizProvider(SalesReviewDetail.this, false);\n Cursor cursor = provider.query(FabizContract.Customer.TABLE_NAME, new String[]{FabizContract.Customer.COLUMN_SHOP_NAME,\n FabizContract.Customer.COLUMN_VAT_NO,\n FabizContract.Customer.COLUMN_ADDRESS_AREA,\n FabizContract.Customer.COLUMN_ADDRESS_ROAD,\n FabizContract.Customer.COLUMN_ADDRESS_BLOCK,\n FabizContract.Customer.COLUMN_ADDRESS_SHOP_NUM\n },\n FabizContract.Customer._ID + \"=?\", new String[]{custId}, null);\n if (cursor.moveToNext()) {\n String addressForInvoice = cursor.getString(cursor.getColumnIndex(FabizContract.Customer.COLUMN_ADDRESS_AREA));\n if (!cursor.getString(cursor.getColumnIndex(FabizContract.Customer.COLUMN_ADDRESS_ROAD)).matches(\"NA\")) {\n addressForInvoice += \", \" + cursor.getString(cursor.getColumnIndex(FabizContract.Customer.COLUMN_ADDRESS_ROAD));\n }\n if (!cursor.getString(cursor.getColumnIndex(FabizContract.Customer.COLUMN_ADDRESS_BLOCK)).matches(\"NA\")) {\n addressForInvoice += \", \" + cursor.getString(cursor.getColumnIndex(FabizContract.Customer.COLUMN_ADDRESS_BLOCK));\n }\n if (!cursor.getString(cursor.getColumnIndex(FabizContract.Customer.COLUMN_ADDRESS_SHOP_NUM)).matches(\"NA\")) {\n addressForInvoice += \", \" + cursor.getString(cursor.getColumnIndex(FabizContract.Customer.COLUMN_ADDRESS_SHOP_NUM));\n }\n\n printer.printSalesReturnReciept(printList, cdue + \"\",\n cursor.getString(cursor.getColumnIndex(FabizContract.Customer.COLUMN_SHOP_NAME)), addressForInvoice,\n cursor.getString(cursor.getColumnIndex(FabizContract.Customer.COLUMN_VAT_NO)));\n } else {\n showToast(\"Something went wrong, can't print right now\");\n }\n }\n }\n });\n\n final TextView dateV = lastDialog.findViewById(R.id.pop_up_for_payment_date);\n\n final TextView returnedAmntLabel = lastDialog.findViewById(R.id.pop_up_for_payment_label_ent_amt);\n returnedAmntLabel.setText(\"Returned Amount\");\n\n final TextView returnedAmntV = lastDialog.findViewById(R.id.pop_up_for_payment_ent_amt);\n\n final TextView dueAmtV = lastDialog.findViewById(R.id.pop_up_for_payment_due);\n\n TextView dueLabelText = lastDialog.findViewById(R.id.pop_up_for_payment_due_label);\n dueLabelText.setText(\"Bill Due Amount\");\n\n dateV.setText(\": \" + DcurrentTime);\n returnedAmntV.setText(\": \" + TruncateDecimal(printList.getTotal() + \"\"));\n\n dueAmtV.setText(\": \" + TruncateDecimal(dueAmnt + \"\"));\n\n lastDialog.show();\n }", "public String editStartReceipt() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\treceipt = service.selectReceiptInfo(receiptSS);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\t\r\n\t\treturn SUCCESS;\r\n\t}", "private void display()\r\n\t{\r\n\t\tif(cardSet.getCards().size() == 0)\r\n\t\t{\r\n\t\t\tString text = \"\";\r\n\t\t\ttextBox.setText(text);\r\n\t\t\tcardCounterTxt.setText(\"0 / 0\");\r\n\t\t\tMainRunner.getCardManager().setCurrentCard(null);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tCard card = cardSet.getCards().get(currentCardIdx);\r\n\t\t//set the current card in card manager.\r\n\t\tMainRunner.getCardManager().setCurrentCard(card);\r\n\t\tString text = \"\";\r\n\t\tif(front)\r\n\t\t{\r\n\t\t\ttext = card.getFront();\r\n\t\t\ttextBoxContainer.setStyle(\"-fx-border-color: blue\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tList<String> expl = card.getBack();\r\n\t\t\tfor(int i = 0; i < expl.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tif(i + 1 == expl.size())\r\n\t\t\t\t\ttext += expl.get(i);\r\n\t\t\t\telse\r\n\t\t\t\t\ttext += expl.get(i) + \"\\n\";\r\n\t\t\t}\r\n\t\t\ttextBoxContainer.setStyle(\"-fx-border-color: green\");\r\n\t\t}\r\n\t\ttextBox.setText(text);\r\n\t\t\r\n\t\tcardCounterTxt.setText(currentCardIdx + 1 + \" / \" + cardSet.getCards().size());\r\n\t}", "public void sendReceipt(String fName, String customerEmail,int bookingNo, int numTicks,String movieTitle, String date, String timeslot){\n\t Properties props = makeProps();\r\n\t \r\n\t final String username = \"cinema4050@gmail.com\";\r\n\t final String password = \"movie4050\";\r\n\t \r\n\t try{\r\n\t\t Session session = Session.getDefaultInstance(props, \r\n\t\t\t\t new Authenticator(){\r\n\t\t\t \t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n\t\t\t \t\t\treturn new PasswordAuthentication(username,password);}});\r\n\t // -- Create a new message --\r\n\t Message msg = new MimeMessage(session);\r\n\t String slot;\r\n\t if(timeslot.equals(\"A\")) {\r\n\t\t slot = \"1 PM\";\r\n\t }else if(timeslot.equals(\"B\")) {\r\n\t\t slot = \"4 PM\";\r\n\t }else if(timeslot.equals(\"C\")) {\r\n\t\t slot = \"7 PM\";\r\n\t }else if(timeslot.equals(\"D\")) {\r\n\t\t slot = \"10 PM\";\r\n\t }else {\r\n\t\t slot = slot = \"Houston, we have a problem.\";\r\n\t }\r\n\t /* from */\r\n\t msg.setFrom(new InternetAddress(username));\r\n \r\n\t /* to */\r\n\t msg.setRecipients(Message.RecipientType.TO, \r\n InternetAddress.parse(customerEmail,false));\r\n\t /* title */\r\n\t msg.setSubject(\"Order Confirmation - Receipt\");\r\n \r\n\t /* text field */ \r\n\t String sendThis = \"Hello \\t\"+fName + \"!\\n\\nHere's your most recent booking for:\\t\"+movieTitle\r\n\t\t\t +\"\\nOrder Number:\\t\" + bookingNo\r\n\t\t\t +\"\\nNumber of tickets purchased:\\t\"+numTicks\r\n\t\t\t +\"\\nDate of showing:\\t\"+ date +\" at:\"+ slot\r\n\t\t\t +\"\\n\\n\\nThank you for choosing :^U\";\r\n\t msg.setText(sendThis);\r\n\t msg.setSentDate(new Date());\r\n\t Transport.send(msg);\r\n \r\n\t System.out.println(\"Message sent.\");\r\n\t }catch (MessagingException e){ \r\n\t\t System.out.println(\"Error: \" + e);\r\n\t }\r\n }", "public static void saveReceipt()\r\n\t{\r\n\t\tPrintWriter listWriter = null;\r\n\t\tPrintWriter contentWriter = null;\r\n\t\tnewReceipt = getTimeStamp();\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tlistWriter = new PrintWriter(new FileOutputStream(RECEIPT_LIST_FILE, true));\r\n\t\t\tcontentWriter = new PrintWriter(RECEIPT_PATH + newReceipt);\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(null,\"File Not Found\");\r\n\t\t}\r\n\t\t\r\n\t\tlistWriter.println(newReceipt);\r\n\t\tfor(int count=0; count < listModel.getSize(); count++)\r\n\t\t\tcontentWriter.println(listModel.elementAt(count));\r\n\t\t\r\n\t\tlistWriter.close();\r\n\t\tcontentWriter.close();\r\n\t\tclearReceipt();\r\n\t}", "@Override\n\tpublic void showGuaranteedDeliverySection() {\n\n\t}", "public void printToScreen() {\n String type = \"\";\n switch (this.type) {\n case 1:\n type = \"Fashion\";\n break;\n case 2:\n type = \"Electronic\";\n break;\n case 3:\n type = \"Consumable\";\n break;\n case 4:\n type = \"Household appliance\";\n break;\n }\n// System.out.println(\"Type : \" + type);\n System.out.printf(\"%6d%15s%6f%20s\\n\", id, name, price, type);\n }", "public String printDetails(){\n System.out.println(\"This is the Title of the book:\");\n return title;\n System.out.println(\"This is the Author of the book:\");\n return author;\n System.out.println(\"This is how many pages there are:\");\n return pages;\n System.out.println(\"This is the Ref Number:\");\n return refNumber;\n \n }", "private ArrayList<String> generateReceipt(@NotNull Order o, double total, double paid, Invoice.PaymentType type) {\n // Max Length of receipt is 50\n Table t = o.getTable();\n Staff s = o.getStaff();\n int tableNum = (t == null) ? -1 : t.getTableNum();\n String staffName = (s == null) ? \"Unknown\" : s.getStaffName() + \" (\" + s.getStaffId() + \")\";\n ArrayList<String> receiptStrings = new ArrayList<>();\n receiptStrings.add(centerText(MainApp.APP_NAME, 60, ' '));\n receiptStrings.add(spacer(60, '_'));\n receiptStrings.add(centerText(\"Block N4, SCSE, NTU Singapore\", 60, ' '));\n receiptStrings.add(centerText(\"50 Nanyang Ave, SG 639798\", 60, ' '));\n receiptStrings.add(\"\");\n receiptStrings.add(String.format(\"%-35s%-20s\", \"Check #: \" + o.getOrderID(), \"Server: \" + staffName));\n receiptStrings.add(String.format(\"%-35s%-20s\", \"Date: \" + DateTimeFormatHelper.formatMillisToDateTime(o.getCompletedAt()), \"Table: \" + tableNum));\n receiptStrings.add(spacer(60, '_'));\n // Print order items\n o.getOrderItems().forEach((item) -> receiptStrings.add(String.format(\" %-3sx %-45s $%6.2f\", item.getQuantity(), item.getItem().getName(), item.getItemTotal())));\n receiptStrings.add(spacer(60, '_'));\n receiptStrings.add(String.format(\"%51s $%6.2f\", \"Order Subtotal: \", o.getSubtotal()));\n receiptStrings.add(String.format(\"%51s $%6.2f\", \"GST (7%): \", total - o.getSubtotal()));\n receiptStrings.add(spacer(60, '_'));\n receiptStrings.add(String.format(\"%51s $%6.2f\", \"Total: \", total));\n receiptStrings.add(spacer(60, '_'));\n receiptStrings.add(String.format(\"%51s $%6.2f\", \"Paid (\" + type.toString() + \"): \", paid));\n if (type == Invoice.PaymentType.PAYMENT_CASH)\n receiptStrings.add(String.format(\"%51s $%6.2f\\n\", \"Change: \", (paid > total) ? Math.abs(total - paid) : 0));\n receiptStrings.add(spacer(60, '_'));\n receiptStrings.add(\"\");\n receiptStrings.add(\"\");\n receiptStrings.add(centerText(\"Thank you and have a nice day!\", 60, ' '));\n receiptStrings.add(centerText(\"Transaction Completed: \" + DateTimeFormatHelper.formatMillisToDateTime(o.getCompletedAt()), 60, ' '));\n return receiptStrings;\n }", "public String printableString()\r\n {\r\n String answer=\"\";\r\n answer=\"\\n Title:\\t\"+title+\"\\n Author:\\t\"+author+\"\\n Asking Price:\\t\"+askingPrice+\r\n \"\\n Purchased for:\\t\"+purchasePrice+\"\\n Date Acquired:\\t\"+dateAcquired+\"\\n Genre:\\t\"+genre+\"\\n Number on hand:\\t\"+bookCount+\"\\n\";\r\n return answer;\r\n }", "public void printPaymentSummary() {\n System.out.print(\"+========================+\\n\");\n System.out.print(\"| Payment Summary |\\n\");\n System.out.print(\"+========================+\\n\");\n System.out.printf(\"Payment_ID: %s\\n\", payment_id);\n System.out.printf(\"STAFF_NAME: %s\\t\\t\\tSTAFF_ID : %s\\n\", order_staff.getName().toUpperCase(),\n order_staff.getId());\n System.out.printf(\"CUST_NAME : %s\\t\\tCurrent_Date: %s\\n\", order_member.getName().toUpperCase(),\n java.time.LocalDate.now());\n System.out.printf(\"CUST_ICNO : %s\\t\\tCurrent_Time: %s\\n\", order_member.getMemberIC(),\n java.time.LocalTime.now());\n System.out.print(\"----------------------------------------------------------------\\n\");\n System.out.printf(\"Total : %.2f\\n\", total_sales_of_transaction);\n System.out.printf(\"Payment Type Used : %s\\n\", payment_used);\n System.out.printf(\"Bike Brand : %s\\n\", order.getBike().getBrand());\n System.out.printf(\"Bike Price : %.2f\\n\", order.getBike().getPrice());\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n }", "public void printBill(){\r\n\t\tint numOfItems = ItemsList.size();\r\n\t\tfor(int i = 0;i<numOfItems;i++){\r\n\t\t\tSystem.out.println(\"1\" + ItemsList.get(i).getName() + \"at \" + ItemsList.get(i).getPrice());\r\n\t\t}\r\n\t\tSystem.out.printf(\"Sales Tax: %.2f\\n\", taxTotal);\r\n\t\tSystem.out.println(\"Total: \" + total);\r\n\t}", "private void designBillTransactionInfo(CartReceiptResponse receiptResponse, final Document document, Locale locale)\n throws DocumentException, IOException {\n LOGGER.debug(\"Entered in designBillTransactionInfo() method\");\n SubmittedBill[] submittedBills = receiptResponse.getSubmittedBills();\n /* Start of Bill Submit Section */\n PdfPTable paymentSectionTable = new PdfPTable(3);\n paymentSectionTable.setWidths(new int[]{50, 150, 50});\n PdfPCell paymentSectionBlankSpaceCell = new PdfPCell(new Phrase(\" \", getFont(WHITE_COLOR, 8, Font.BOLD)));\n cellAlignment(paymentSectionBlankSpaceCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(paymentSectionTable, paymentSectionBlankSpaceCell, Rectangle.NO_BORDER, 3, 0);\n BigDecimal totalBillAmount = new BigDecimal(0);\n BigDecimal totalFeeAmount = new BigDecimal(0);\n Boolean flag = true;\n\n if (submittedBills != null && receiptResponse.getReturnedItems().length != 0) {\n returnPaymentHeading(locale, paymentSectionTable);\n for (final SubmittedBill submittedBill : submittedBills) {\n final ReturnReceiptItem[] returnReceiptItems = receiptResponse.getReturnedItems();\n for (final ReturnReceiptItem returnReceiptItem : returnReceiptItems) {\n long cartId = returnReceiptItem.getCartItemId();\n if (cartId == submittedBill.getId() &&\n submittedBill.getStatus().name().equalsIgnoreCase(PdfConstants.RETURNED)) {\n designReturnHeaderBillSection(submittedBill,\n returnReceiptItem,\n locale,\n paymentSectionTable,\n paymentSectionBlankSpaceCell, receiptResponse);\n }\n }\n }\n }\n\n if (submittedBills != null) {\n for (final SubmittedBill submittedBill : submittedBills) {\n BigDecimal transactionFee = new BigDecimal(0);\n if (submittedBill.getFee() != null) {\n transactionFee = submittedBill.getFee();\n }\n if (flag.equals(true)) {\n setTableForCells(paymentSectionTable, locale);\n cellAlignment(paymentSectionBlankSpaceCell, Element.ALIGN_LEFT, WHITE_COLOR, 0);\n cellAddingToTable(paymentSectionTable, paymentSectionBlankSpaceCell, Rectangle.NO_BORDER, 3, 0);\n flag = false;\n }\n\n\t\t\t\t/* Paid Biller Details Start */\n if (getStatusForPaid(submittedBill.getStatus().name())) {\n designSubmittedBillsSection(submittedBill, locale, paymentSectionTable);\n totalBillAmount = totalBillAmount.add(submittedBill.getAmount());\n totalFeeAmount = totalFeeAmount.add(transactionFee);\n }\n /* End Paid Biller Details */\n\n\t\t\t\t/* Failed Biller Details Start */\n if (getStatusForRejected(submittedBill.getStatus().name())) {\n LOGGER.debug(\"Enterd in to REJECTED Related section after checking all status\");\n designFailedBillsSection(locale, paymentSectionTable,\n submittedBill);\n }\n /* End Failed Biller Details */\n\n if (submittedBill.getStatus().name().equalsIgnoreCase(PdfConstants.RETURNED)) {\n LOGGER.debug(\"Enterd in to RETURNED Related section after checking all status\");\n designReturnedBillsSection(locale, paymentSectionTable, paymentSectionBlankSpaceCell,\n submittedBill);\n totalBillAmount = totalBillAmount.add(submittedBill.getAmount());\n totalFeeAmount = totalFeeAmount.add(transactionFee);\n }\n }\n }\n\n\t\t/* add blank Space Start */\n cellAlignment(paymentSectionBlankSpaceCell, Element.ALIGN_LEFT, WHITE_COLOR, 0);\n cellAddingToTable(paymentSectionTable, paymentSectionBlankSpaceCell, Rectangle.NO_BORDER, 3, 0);\n /* add blank space end */\n\n\t\t/* Calculating and displaying card service fee amount and service fee percent*/\n totalBillAmount = totalBillAmount.add(getCardServiceFeeAmount(receiptResponse, paymentSectionTable\n , paymentSectionBlankSpaceCell, locale));\n\t\t/* End of Card service fee */\n\n\t\t/* bill Total Paid start */\n drawTotalAmountCell(paymentSectionTable, paymentSectionBlankSpaceCell, locale, totalBillAmount, totalFeeAmount);\n /* bill Total Paid End */\n /* Add Line separator to the PDF document */\n addLineSeperator(paymentSectionTable, paymentSectionBlankSpaceCell);\n /* End of line separator */\n\n document.add(paymentSectionTable);\n LOGGER.debug(\"End pdfPaymentSection Table \");\n\n\n }", "public void printOrderItem(){\r\n\t\tSystem.out.print(this.quantity+\" x \"+this.menuItem.getName()+\" ---- \");\r\n\t\tSystem.out.printf(\"$%.2f\\n\",this.calculatePrice());\r\n\t}", "private void display(){\n out.println(\"\\n-STOCK EXCHANGE-\");\n out.println(\"Apple - Share Price: \" + game.apple.getSharePrice() + \" [\" + game.apple.top() + \"]\");\n out.println(\"BP - Share Price: \" + game.bp.getSharePrice() + \" [\" + game.bp.top() + \"]\");\n out.println(\"Cisco - Share Price: \" + game.cisco.getSharePrice() + \" [\" + game.cisco.top() + \"]\");\n out.println(\"Dell - Share Price: \" + game.dell.getSharePrice() + \" [\" + game.dell.top() + \"]\");\n out.println(\"Ericsson - Share Price: \" + game.ericsson.getSharePrice() + \" [\" + game.ericsson.top() + \"]\");\n\n out.println(\"\\n-PLAYERS-\");\n// System.out.println(playerList.toString());\n for (Player e : playerList) {\n if (e.equals(player)) {\n out.println(e.toString() + \" (you)\");\n } else {\n out.println(e.toString());\n }\n }\n }", "@Override\n\tpublic void printMenuHeader() {\n\t\tSystem.out.println(\"***** CHECKOUT *****\");\n\t\tSystem.out.print(\"Enter your credit card number without spaces and press enter if you confirm purchase: \");\n\n\t}", "public void display() {\r\n dlgRates.show();\r\n }", "public void displayMenu() {\r\n\t\tSystem.out.println(\"Enter a number between 0 and 8 as explained below: \\n\");\r\n\t\tSystem.out.println(\"[\" + ADD_CUSTOMER + \"] Add a customer.\");\r\n\t\tSystem.out.println(\"[\" + ADD_MODEL + \"] Add a model.\");\r\n\t\tSystem.out.println(\"[\" + ADD_TO_INVENTORY + \"] Add a washer to inventory.\");\r\n\t\tSystem.out.println(\"[\" + PURCHASE + \"] Purchase a washer.\");\r\n\t\tSystem.out.println(\"[\" + LIST_CUSTOMERS + \"] Display all customers.\");\r\n\t\tSystem.out.println(\"[\" + LIST_WASHERS + \"] Display all washers.\");\r\n\t\tSystem.out.println(\"[\" + DISPLAY_TOTAL + \"] Display total sales.\");\r\n\t\tSystem.out.println(\"[\" + SAVE + \"] Save data.\");\r\n\t\tSystem.out.println(\"[\" + EXIT + \"] to Exit\");\r\n\t}", "public void print() {\n DocFlavor flavor = DocFlavor.BYTE_ARRAY.AUTOSENSE;\n \n //Aca obtenemos el servicio de impresion por default\n //Si no quieres ver el dialogo de seleccionar impresora usa esto\n //PrintService defaultService = PrintServiceLookup.lookupDefaultPrintService();\n \n \n //Con esto mostramos el dialogo para seleccionar impresora\n //Si quieres ver el dialogo de seleccionar impresora usalo\n //Solo mostrara las impresoras que soporte arreglo de bits\n PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();\n PrintService printService[] = PrintServiceLookup.lookupPrintServices(flavor, pras);\n PrintService defaultService = PrintServiceLookup.lookupDefaultPrintService();\n PrintService service = ServiceUI.printDialog(null, 700, 200, printService, defaultService, flavor, pras);\n \n //Creamos un arreglo de tipo byte\n byte[] bytes;\n\n //Aca convertimos el string(cuerpo del ticket) a bytes tal como\n //lo maneja la impresora(mas bien ticketera :p)\n bytes = this.contenidoFactura.getBytes();\n //Creamos un documento a imprimir, a el se le appendeara\n //el arreglo de bytes\n Doc doc = new SimpleDoc(bytes,flavor,null);\n \n //Creamos un trabajo de impresión\n DocPrintJob job = service.createPrintJob();\n\n //Imprimimos dentro de un try de a huevo\n try {\n //El metodo print imprime\n job.print(doc, null);\n \n } catch (Exception er) {\n JOptionPane.showMessageDialog(null,\"Error al imprimir: \" + er.getMessage());\n }\n DocPrintJob cutjob = service.createPrintJob();\n DocPrintJob spacejob = service.createPrintJob();\n //dejando espacios al final\n byte[] espacio = (\"\\n \\n \\n \\n\").getBytes();\n try{\n spacejob.print(new SimpleDoc(espacio,flavor,null),null);\n }\n catch (Exception er) {\n JOptionPane.showMessageDialog(null,\"Error al imprimir: \" + er.getMessage());\n }\n //cortando el papel\n try{\n byte[] cutP = new byte[] { 0x1d, 'V', 1 };\n cutjob.print(new SimpleDoc(cutP,flavor,null),null); \n }catch (Exception er) {\n JOptionPane.showMessageDialog(null,\"Error al imprimir: \" + er.getMessage());\n }\n \n }", "public void displayMessage(){//displayMessage body start\n\t\tSystem.out.printf(\"course name = %s\\n\", getCourseName());\n\t}", "@Override\n\t\tpublic void postShow() {\n\t\t\tif (bmoRequisition.getSupplierId().toInteger() > 0)\n\t\t\t\tsetFormatEmailTo(bmoRequisition.getBmoSupplier().getEmail().toString(), bmoRequisition.getBmoSupplier().getName().toString());\n\n\t\t\tif (!newRecord)\n\t\t\t\tbuttonPanel.add(lifeCycleShowButton);\n\t\t\t// Mostrar boton cuando NO tenga un recibo(en parcial/total) y tenga un pagos de anticipo\n\t\t\tif (enableCheekingCostTravelExpense(false))\n\t\t\t\tbuttonPanel.add(verifyTravelExpenseShowButton);\n\t\t\telse {\n\t\t\t\tbuttonPanel.add(copyRequisitionDialogButton);\n\t\t\t}\n\n\t\t\tgetBmoOrderType(((BmoFlexConfig)getSFParams().getBmoAppConfig()).getDefaultOrderTypeId().toInteger());\t\n\t\t}", "public void display_inventory() {\n\t\t// displays all identified crystals\n\t\tfor(int i = 0;i<maxInvSize;i++) {\n\t\t\tif(identifiedArray[i] != null) {\n\t\t\t\tcrystal_description(identifiedArray[i]);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public abstract void generateReceipt(Transaction trans);", "private void btnGetReceiptActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGetReceiptActionPerformed\n String stringID = textReceiptID.getText();\n if(textReceiptID.getText().isEmpty()){\n JOptionPane.showMessageDialog(rootPane, \"Please Enter a valid ID\");\n return;\n }\n int ID = Integer.parseInt(stringID);\n newHandler.getReceipt(ID);\n \n if(newHandler.getReceiptErrorMsg() != null){\n JOptionPane.showMessageDialog(rootPane, newHandler.getReceiptErrorMsg());\n }\n textReceiptID.setText(Integer.toString(newHandler.getReceiptID()));\n textReceiptDate.setText(newHandler.getReceiptDate());\n textReceiptAmmount.setText(Double.toString(newHandler.getReceiptAmmount()));\n textReceiptType.setText(newHandler.getReceiptType());\n textReceiptDescription.setText(newHandler.getReceiptDescription());\n searched = true;\n }", "@PostMapping(\"/receipt\")\n\tpublic String generateReceipt(@RequestParam(\"btnRD\") String rd , Model model, HttpSession session) {\n\t\t\n\t\tOrderDetail orderDetail = new OrderDetail();\n\t\torderDetail.setOrderDate(new Date());\n\t\torderDetail.setShippingAddr(null);\n\t\torderDetail.setTransaction(rd);\n\t\torderDetail.setUsername(null);\n\t\t\n\t\t\n\t\tList<CartItem> cartItemList = cartItemService.listCartItems();\n\t\tCustomUserDetail connectedUser = (CustomUserDetail) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\tUser userId = userService.getUser(connectedUser.getUserId());\n\t\t\n\t\tmodel.addAttribute(\"userConnectedName\", userId.getUsername());\n\t\tmodel.addAttribute(\"cartItemList\", cartItemList);\n\t\tmodel.addAttribute(\"grandTotal\", this.getGrandTotal(cartItemList));\n\t\t\n\t\torderDetail.setTotalAmount(this.getGrandTotal(cartItemList));\n\t\t\n\t\torderService.saveOrder(orderDetail);\n\t\t\n\t\tmodel.addAttribute(\"orderDetail\", orderDetail);\n\t\t\n\t\treturn \"receipt\";\n\t}" ]
[ "0.8551617", "0.78501654", "0.7516671", "0.74918354", "0.74393106", "0.7355217", "0.68416953", "0.6756246", "0.674427", "0.66368556", "0.662998", "0.6610814", "0.66088253", "0.65970206", "0.6569539", "0.65598845", "0.65346843", "0.6522254", "0.65176594", "0.6496442", "0.6432113", "0.6417722", "0.6341459", "0.62704587", "0.6268148", "0.6261026", "0.625507", "0.6222868", "0.62064195", "0.62030464", "0.6187037", "0.61852074", "0.6165284", "0.6127802", "0.6124805", "0.6117527", "0.60939485", "0.60903895", "0.6088406", "0.60729575", "0.60605437", "0.60412455", "0.6005777", "0.5998172", "0.59927315", "0.59913844", "0.59888816", "0.59849197", "0.5962682", "0.59602183", "0.595579", "0.59461486", "0.5941553", "0.5919098", "0.5919047", "0.58881986", "0.58839715", "0.58692706", "0.5837132", "0.58335", "0.58285147", "0.5826911", "0.5821374", "0.579722", "0.5784388", "0.5783995", "0.57690793", "0.575892", "0.57539415", "0.57249826", "0.5713786", "0.5693832", "0.56925493", "0.5688637", "0.5679643", "0.5675464", "0.5647093", "0.56437683", "0.56371546", "0.56286246", "0.5627844", "0.56259346", "0.56192183", "0.5616062", "0.56127334", "0.56099385", "0.55911714", "0.55906284", "0.5585914", "0.5578497", "0.5570123", "0.556384", "0.55506814", "0.5549473", "0.55481887", "0.5544717", "0.55358475", "0.5534106", "0.5519038", "0.551867" ]
0.7094908
6
whether scaling or stretching
public MutableImage(@NonNull Path imageFile) throws IOException { image = ImageIO.read(imageFile.toFile()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasScale() { return hasScale; }", "public void rescale()\r\n\t{\n\t}", "@Override\n\tpublic float getRenderSizeModifier() {\n\t\treturn getScale();\n\t}", "public void setCanScale(boolean scale){\n mScale = scale;\n }", "public void setStretch(float stretch) {\n this.stretch = stretch;\n }", "public void beginScaling() {\n xScale = 1.0f;\n yScale = 1.0f;\n }", "private void updateImageScale() {\r\n\t\t//Check which dimension is larger and store it in this variable.\r\n\t\tint numHexLargestDimension = this.numHexRow;\r\n\t\tif (this.totalHexWidth > this.totalHexHeight) {\r\n\t\t\tnumHexLargestDimension = this.numHexCol;\r\n\t\t}\r\n\t\t\r\n\t\tif (numHexLargestDimension < 35) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 16.5) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 7){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (numHexLargestDimension < 70) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 22.2) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() \r\n\t\t\t\t\t* (this.numHexCol / 2) > 14.5){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (numHexLargestDimension < 105) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 32.6) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 21){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 44.4) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 28){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkImageScale() {\n\t\tboolean flag = oTest.checkImageScale();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "public void setRescale(double x, double y) {\n scaleX = x;\n scaleY = y;\n System.out.println(\"Rescale \" + x + \" \" + y);\n }", "private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }", "public void setScale(float scale);", "ScaleType getScale();", "public void setFreeAspectRatio() {\n setAspectRatio(-1.0);\n }", "public abstract BufferedImage scale(Dimension destinationSize);", "@Override\n public boolean onScaleBegin(ScaleGestureDetector detector) {\n return true;\n }", "@Override\n public boolean onScaleBegin(ScaleGestureDetector detector) {\n return true;\n }", "@Override\n public boolean onScaleBegin(ScaleGestureDetector detector) {\n return true;\n }", "public void doScaling() {\n try {\n int orientation = getExifOrientation(file);\n System.out.println(file.getName());\n //Dimension d = Imaging.getImageSize(file);\n ImageInputStream imageInputStream = ImageIO.createImageInputStream(file);\n // Use a subsampled image from the original, avoids read images too large to fit in memory\n BufferedImage bufferedImage = subsampleImage(imageInputStream, TARGET_WIDTH * 2, TARGET_HEIGHT * 2);\n ImageInformation ii=new ImageInformation(orientation, bufferedImage.getWidth(), bufferedImage.getHeight());\n AffineTransform transform=getExifTransformation(ii);\n bufferedImage=transformImage(bufferedImage, transform); \n Scalr.Mode mode;\n // calculate which side will be largest/smaller\n // this works with any image size\n double scaleX=(TARGET_WIDTH*1.0)/(bufferedImage.getWidth()*1.0);\n double scaleY=(TARGET_HEIGHT*1.0)/(bufferedImage.getHeight()*1.0);\n if (scaleX<scaleY) {\n mode = Scalr.Mode.FIT_TO_WIDTH;\n } else {\n mode = Scalr.Mode.FIT_TO_HEIGHT;\n } \n \n BufferedImage thumbnail = Scalr.resize(bufferedImage,\n Scalr.Method.QUALITY,\n mode, TARGET_WIDTH, TARGET_HEIGHT,\n Scalr.OP_ANTIALIAS);\n BufferedImage combined = new BufferedImage(TARGET_WIDTH, TARGET_HEIGHT, BufferedImage.TYPE_INT_ARGB);\n int x = 0, y = 0;\n if (mode == Scalr.Mode.FIT_TO_HEIGHT) {\n x = (TARGET_WIDTH - thumbnail.getWidth()) / 2;\n }\n if (mode == Scalr.Mode.FIT_TO_WIDTH) {\n y = (TARGET_HEIGHT - thumbnail.getHeight()) / 2;\n }\n Graphics g = combined.getGraphics();\n g.setColor(new java.awt.Color(0.0f, 0.0f, 0.0f, 0.0f));\n g.fillRect(0, 0, combined.getWidth(), combined.getHeight());\n g.drawImage(thumbnail, x, y, null);\n g.dispose();\n //Writes test subsampled image taken from original\n if (saveSubSampled) {\n ImageIO.write(bufferedImage, OUTPUT_EXTENSION, new File(output));\n }\n //Writes thumbnail, created from the subsampled image.\n ImageIO.write(combined, OUTPUT_EXTENSION, new File(output_thumb));\n\n } catch (IOException ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "int getScale();", "protected void updateScales() {\n hscale = 1f;\n vscale = 1f;\n viewData.setHscale(hscale);\n viewData.setVscale(vscale);\n }", "protected void configureScaler(Chart chart) {\n // This allows dealing with a difference\n // between emulgl and native\n // TODO : https://github.com/jzy3d/jzy3d-api/issues/304\n scaled = !chart.getCanvas().isNative();\n\n // This allows dealing with a difference\n // between Win+AWT and the other cases when \n // using HiDPI monitors\n // https://github.com/jzy3d/jzy3d-api/issues/101\n IPainter painter = chart.getPainter();\n if(painter.getOS().isWindows() && painter.getWindowingToolkit().isAWT()) {\n scaled = true;\n }\n }", "@objid (\"7f09cb82-1dec-11e2-8cad-001ec947c8cc\")\n public boolean allowsResize() {\n return true;\n }", "public float getScale();", "public boolean getScaleHorizontal() {\r\n return ScaleHorizontal;\r\n }", "@Override\n public float getScale() {\n return scale;\n }", "@Override\n\tpublic int[] getImageScaleDrawing() {\n\t\treturn new int[] {\n\t\t\t\t80, 80\n\t\t};\n\t}", "@Test\n public void testRecomputeStretch(){\n //Recalculate stretch\n imageData.recomputeStretch(frArray, 0, rangeValues, true);\n BufferedImage stretchImage =imageData.getImage(frArray);\n Assert.assertNotEquals(expectedImage, stretchImage);\n }", "boolean hasScaler();", "public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }", "private float getNewScale() {\n int width = getWidth() - (padding[0] + padding[2]);\n float scaleWidth = (float) width / (cropRect.right - cropRect.left);\n\n int height = getHeight() - (padding[1] + padding[3]);\n float scaleHeight = (float) height / (cropRect.bottom - cropRect.top);\n if (getHeight() > getWidth()) {\n return scaleWidth < scaleHeight ? scaleWidth : scaleHeight;\n }\n return scaleWidth < scaleHeight ? scaleWidth : scaleHeight;\n }", "private void updateRenderer() {\n StretchParameters stretchParameters;\n switch (mStretchType) {\n default:\n stretchParameters = new MinMaxStretchParameters(Collections.singletonList((double) mMin),\n Collections.singletonList((double) mMax));\n break;\n case PERCENT_CLIP:\n stretchParameters = new PercentClipStretchParameters(mPercentClipMin, mPercentClipMax);\n break;\n case STANDARD_DEVIATION:\n stretchParameters = new StandardDeviationStretchParameters(mStdDevFactor);\n }\n StretchRenderer stretchRenderer = new StretchRenderer(stretchParameters, null, true, null);\n mRasterLayer.setRasterRenderer(stretchRenderer);\n }", "public abstract void stretch(final DPoint _pnt_from, \n\t final DPoint _pnt_totalStretch,\n final DPoint _pnt_size);", "public void setKeepAspectRatio(boolean keepAspect);", "void onScaleChange(float scaleFactor, float focusX, float focusY);", "@Override\n public boolean onScale(ScaleGestureDetector detector) {\n\n Matrix mMatrix = new Matrix();\n //缩放比例\n float scale = detector.getScaleFactor() / 3;\n mMatrix.setScale(scale, scale);\n\n //锁定整个SurfaceView\n Canvas mCanvas = mSurfaceHolder.lockCanvas();\n //清屏\n mCanvas.drawColor(Color.BLACK);\n //画缩放后的图\n mCanvas.drawBitmap(mBitmap, mMatrix, null);\n //绘制完成,提交修改\n mSurfaceHolder.unlockCanvasAndPost(mCanvas);\n //重新锁一次\n mSurfaceHolder.lockCanvas(new Rect(0, 0, 0, 0));\n mSurfaceHolder.unlockCanvasAndPost(mCanvas);\n\n return false;\n }", "@Override\r\npublic void componentResized(ComponentEvent arg0) {\n\tsetSizeBackgr(getSize());\r\n\tsetSizeHat (getSize());\r\n\tsetSizeGift(getSize());\r\n}", "private boolean isMaintainAspectRatio() {\n return this.preferences.getBoolean(\"SplashMaintainAspectRatio\", false);\n }", "public void setScale(double scale, double xscale, double yscale) {\n\t\tif (this.scale != scale || this.xscale != xscale || this.yscale != yscale) {\n\t\t\tthis.scale = scale;\n\t\t\tthis.xscale = xscale;\n\t\t\tthis.yscale = yscale;\n\n\t\t\t// calculate the absolute coordinates and dimensions on the base\n\t\t\t// of the given scale parameters\n\t\t\tint x = (int) (xRel * xscale);\n\t\t\tint y = (int) (yRel * yscale);\n\t\t\tint width = (int) (widthRel * scale);\n\t\t\tint height = (int) (heightRel * scale);\n\n\t\t\t// the border rope holders must always be at the border\n\t\t\t// small rounding failures are eliminated here\n\t\t\tif (this instanceof Seilaufhaenger) {\n\t\t\t\tSeilaufhaenger aufhaenger = (Seilaufhaenger) this;\n\t\t\t\tif (!aufhaenger.isUnderTreibscheibe()) {\n\t\t\t\t\tif (aufhaenger.getHimmel() == Seilaufhaenger.NORD) {\n\t\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\t\tx = 1;\n\t\t\t\t\t\ty = 1;\n\t\t\t\t\t} else if (aufhaenger.getHimmel() == Seilaufhaenger.SUED) {\n\t\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\t\tx = 1;\n\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t} else if (aufhaenger.getHimmel() == Seilaufhaenger.WEST) {\n\t\t\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t\tif (y < 1)\n\t\t\t\t\t\t\ty = 1;\n\t\t\t\t\t\tx = 1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t\tif (y < 1)\n\t\t\t\t\t\t\ty = 1;\n\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t}\n\t\t\t\t\t// moves and resizes the element\n\t\t\t\t\tsetSize(width, height);\n\t\t\t\t\tsetLocation(x, y);\n\t\t\t\t} else {\n\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\tx = 1;\n\t\t\t\t\t// moves and resizes the element\n\t\t\t\t\tsetSize(width, height);\n\t\t\t\t\t// setLocation(x, y);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\tif (x < 1)\n\t\t\t\t\tx = 1;\n\t\t\t\tif (y < 1)\n\t\t\t\t\ty = 1;\n\t\t\t\t// moves and resizes the element\n\t\t\t\tsetSize(width, height);\n\t\t\t\tsetLocation(x, y);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public Double scalingFactor() {\n return 1.55d;\n }", "@Override\n\tpublic boolean canResizeShape(IResizeShapeContext context) {\n\t\treturn false;\n\t}", "public boolean getResized()\n {\n return resized;\n }", "public void scaleBitmap(int newWidth, int newHeight) {\n\t\t// Technically since we always keep aspect ratio intact\n\t\t// we should only need to check one dimension.\n\t\t// Need to investigate and fix\n\t\tif ((newWidth > mMaxWidth) || (newHeight > mMaxHeight)) {\n\t\t\tnewWidth = mMaxWidth;\n\t\t\tnewHeight = mMaxHeight;\n\t\t}\n\t\tif ((newWidth < mMinWidth) || (newHeight < mMinHeight)) {\n\t\t\tnewWidth = mMinWidth;\n\t\t\tnewHeight = mMinHeight;\t\t\t\n\t\t}\n\n\t\tif ((newWidth != mExpandWidth) || (newHeight!=mExpandHeight)) {\t\n\t\t\t// NOTE: depending on the image being used, it may be \n\t\t\t// better to keep the original image available and\n\t\t\t// use those bits for resize. Repeated grow/shrink\n\t\t\t// can render some images visually non-appealing\n\t\t\t// see comments at top of file for mScaleFromOriginal\n\t\t\t// try to create a new bitmap\n\t\t\t// If you get a recycled bitmap exception here, check to make sure\n\t\t\t// you are not setting the bitmap both from XML and in code\n\t\t\tBitmap newbits = Bitmap.createScaledBitmap(mScaleFromOriginal ? mOriginal:mImage, newWidth,\n\t\t\t\t\tnewHeight, true);\n\t\t\t// if successful, fix up all the tracking variables\n\t\t\tif (newbits != null) {\n\t\t\t\tif (mImage!=mOriginal) {\n\t\t\t\t\tmImage.recycle();\n\t\t\t\t}\n\t\t\t\tmImage = newbits;\n\t\t\t\tmExpandWidth=newWidth;\n\t\t\t\tmExpandHeight=newHeight;\n\t\t\t\tmResizeFactorX = ((float) newWidth / mImageWidth);\n\t\t\t\tmResizeFactorY = ((float) newHeight / mImageHeight);\n\t\t\t\t\n\t\t\t\tmRightBound = mExpandWidth>mViewWidth ? 0 - (mExpandWidth - mViewWidth) : 0;\n\t\t\t\tmBottomBound = mExpandHeight>mViewHeight ? 0 - (mExpandHeight - mViewHeight) : 0;\n\t\t\t}\t\t\t\t\t\t\t\n\t\t}\n\t}", "public void setMinSize(double aWidth, double aHeight) { setMinWidth(aWidth); setMinHeight(aHeight); }", "protected abstract void resize();", "@Override\n\tpublic boolean canfitSmall() {\n\t\treturn true;\n\t}", "@Override\n public void setScale(float scale) {\n this.scale = scale;\n }", "@Override\n\tfinal public void scale(double x, double y)\n\t{\n\t\twidth *= x;\n\t\theight *= y;\n\t}", "private void resize() {\n }", "@Override\r\n\tpublic void resize() {\n\t\t\r\n\t}", "public void setScale(float scale) {\n this.scale = scale;\n }", "public void displayScaled(float scaleFactor) {\n pushMatrix();\n scale(scaleFactor);\n shape(fullCar);\n popMatrix();\n }", "@Override\n\tpublic void handleScaledCFComponent(CFComponent component) {\n\n\t}", "public void setScale(Scale scale) {\n this.scale = scale;\n }", "@Override\n public boolean onScale(ScaleGestureDetector detector) {\n return false;\n }", "@Override\n public boolean onScale(ScaleGestureDetector detector) {\n return false;\n }", "@Override\n public boolean onScale(ScaleGestureDetector detector) {\n return false;\n }", "public void setScale(double scale) {\r\n if (scale >= 0.1) {\r\n this.scale = scale;\r\n }\r\n }", "public double getScale() {\n return scale;\n }", "public int getScale() {\n return scale_;\n }", "private static AppImage scale(AppImage image) {\n\t\treturn scale(image, GraphicsConfig.getScaleWidth(), GraphicsConfig.getScaleHeight());\n\t}", "public final boolean isRealSize() {\r\n return zoom == ZOOM_REAL_SIZE;\r\n }", "public void zoomScaleIn() {\n \t\tzoomScale(SCALE_DELTA_IN);\n \t}", "private Image scaleImage(Image image) { \n\t\treturn image.getScaledInstance(700, 500, Image.SCALE_SMOOTH); //Going to Scale the Image to the Size and Width Specified with the Highest Smoothness Possible \n\t}", "public void scaleBckgrd()\n {\n //Scaling Image for lbl_Bckgrd (Main Background)\n lbl_Bckgrd.setSize(this.getWidth(), this.getHeight());\n ImageIcon ic_Bckgrd = new ImageIcon(getClass().getResource(\"/resources/bckgrd_Student.jpg\"));\n Image img_Bckgrd = ic_Bckgrd.getImage();\n Image imgScaled_Bckgrd = img_Bckgrd.getScaledInstance(lbl_Bckgrd.getWidth(), lbl_Bckgrd.getHeight(), Image.SCALE_SMOOTH);\n ImageIcon scaled_Bckgrd = new ImageIcon(imgScaled_Bckgrd);\n lbl_Bckgrd.setIcon(scaled_Bckgrd);\n }", "public void scale(double sx, double sy)\r\n\t{\r\n\t\t// System.out.println(\"scale\");\r\n\t}", "@Override\n\tpublic void resize() {\n\t\t\n\t}", "void childResized(int w, int h);", "public void setScale( float scale ) {\n\t\tthis.scale = scale;\n\t}", "private void setXscale() {\n\t}", "private void rescale() {\n this.affineTransform = AffineTransform.getScaleInstance(this.zoom,\n this.zoom);\n int width = (int) ((this.board.getWidth() * 32) * this.zoom);\n int height = (int) ((this.board.getHeight() * 32) * this.zoom);\n this.setPreferredSize(new Dimension(width, height));\n this.repaint();\n }", "protected void setResized(Boolean b) {\n\t\tresized = b;\n\t}", "public void updateScale()\n {\n // get scale from world presenter\n s2 = (cam.getScale());\n //Convert to English Miles if appropriate\n if( !SettingsScreen.getUnits() ) s2 *= 0.60934;\n s1 = s2/2;\n repaint();\n }", "@Override\n public boolean onScale(ScaleGestureDetector scaleGestureDetector) {\n zoom *= scaleGestureDetector.getScaleFactor();\n recalculateView();\n return true;\n }", "public void InitScaling() {\n\tc2.InitScaling();\n\tc3.InitScaling();\n\tc1.InitScaling();\n\tc3.CalcPrev();\n\tc3.UpdateAllNoCoord();\n }", "protected byte desiredWinScale() { return 9; }", "public void setScaleFactor(float scale){\n scaleFactor = scale;\n }", "public int getScale(){\n return scale;\n }", "void setBounds(double x, double y, double scale) {\n double drawAspect = (double)width / (double)height;\n\n double halfPlotWidth = scale / 2.0;\n double halfPlotHeight = scale / 2.0;\n if (drawAspect > 1.0) {\n halfPlotWidth *= drawAspect;\n } else {\n halfPlotHeight /= drawAspect;\n }\n\n setBounds(x - halfPlotWidth, y - halfPlotHeight, x + halfPlotWidth, y + halfPlotHeight);\n }", "@Override\n\tpublic void resize(float width, float height) {\n\t}", "public double getScale(){\n\t\treturn scale;\n\t}", "@Override\n public void setContentScaleFactor(double v) {\n super.setContentScaleFactor(1);\n }", "public int getScale() {\r\n return scale;\r\n }", "public double getScale() {\r\n return scale;\r\n }", "public ImageScale getScale() {\n return this.scale;\n }", "public void settings() { size(1200, 800); }", "public double getScaleY() { return _rss==null? 1 : _rss.scaleY; }", "@Override\r\n protected boolean isResizable() {\r\n return true;\r\n }", "@Override\r\n protected boolean isResizable() {\r\n return true;\r\n }", "private BufferedImage scale(final BufferedImage input,\n \t\tfinal int newWidth, final int newHeight)\n \t{\n \t\tfinal int oldWidth = input.getWidth(), oldHeight = input.getHeight();\n \t\tif (oldWidth == newWidth && oldHeight == newHeight) return input;\n \n \t\tfinal BufferedImage output =\n \t\t\tnew BufferedImage(newWidth, newHeight, input.getType());\n \t\tfinal AffineTransform at = new AffineTransform();\n \t\tat.scale((double) newWidth / oldWidth, (double) newHeight / oldHeight);\n \t\tfinal AffineTransformOp scaleOp =\n \t\t\tnew AffineTransformOp(at, AffineTransformOp.TYPE_BILINEAR);\n \t\treturn scaleOp.filter(input, output);\n \t}", "public void setMaximizing() {\r\n maximizing = true;\r\n }", "private BufferedImage scale(BufferedImage sourceImage) {\n GraphicsEnvironment graphicsEnvironment = GraphicsEnvironment.getLocalGraphicsEnvironment();\n GraphicsDevice graphicsDevice = graphicsEnvironment.getDefaultScreenDevice();\n GraphicsConfiguration graphicsConfiguration = graphicsDevice.getDefaultConfiguration();\n BufferedImage scaledImage = graphicsConfiguration.createCompatibleImage(IMAGE_DIMENSION, IMAGE_DIMENSION);\n\n Graphics2D newGraphicsImage = scaledImage.createGraphics();\n newGraphicsImage.setColor(Color.white);\n newGraphicsImage.fillRect(0, 0, IMAGE_DIMENSION, IMAGE_DIMENSION);\n\n double xScale = (double) IMAGE_DIMENSION / sourceImage.getWidth();\n double yScale = (double) IMAGE_DIMENSION / sourceImage.getHeight();\n AffineTransform affineTransform = AffineTransform.getScaleInstance(xScale,yScale);\n newGraphicsImage.drawRenderedImage(sourceImage, affineTransform);\n newGraphicsImage.dispose();\n\n return scaledImage;\n }", "public float getScale() {\n \t\treturn scale;\n \t}", "private boolean isWithInScale(Rule r) {\n return ((r.getMinScaleDenominator() - TOLERANCE) <= scaleDenominator)\n && ((r.getMaxScaleDenominator() + TOLERANCE) > scaleDenominator);\n }", "private void onScaleClick() {\n PropertyValuesHolder scaleXHolder = PropertyValuesHolder.ofFloat(\"scaleX\", 1.5f);\r\n PropertyValuesHolder scaleYHolder = PropertyValuesHolder.ofFloat(\"scaleY\", 1.5f);\r\n Animator scaleAnimator = ObjectAnimator.ofPropertyValuesHolder(\r\n animatedView, scaleXHolder, scaleYHolder);\r\n scaleAnimator.setDuration(animationDuration);\r\n scaleAnimator.setInterpolator(new AccelerateDecelerateInterpolator());\r\n scaleAnimator.start();\r\n }", "private void basicSize(){\n setSize(375,400);\n }", "public double getScale() {\n return scale;\n }", "@Override\n\tpublic void componentResized(ComponentEvent e) {\n\t\twidthAttitude=e.getComponent().getSize().getWidth()/Width;\n\t\theightAttitude=e.getComponent().getSize().getHeight()/Height;\n\t}", "public void handle(ActionEvent ae) {\n scaleFactor += 0.1; \n if(scaleFactor > 2.0) scaleFactor = 0.4; \n \n scale.setX(scaleFactor); \n scale.setY(scaleFactor); \n \n }", "void setInitialImageBoundsFillScreen() {\n\t\tif (mImage != null) {\n\t\t\tif (mViewWidth > 0) {\n\t\t\t\tboolean resize=false;\n\t\t\t\t\n\t\t\t\tint newWidth=mImageWidth;\n\t\t\t\tint newHeight=mImageHeight;\n\t\t\t\n\t\t\t\t// The setting of these max sizes is very arbitrary\n\t\t\t\t// Need to find a better way to determine max size\n\t\t\t\t// to avoid attempts too big a bitmap and throw OOM\n\t\t\t\tif (mMinWidth==-1) { \n\t\t\t\t\t// set minimums so that the largest\n\t\t\t\t\t// direction we always filled (no empty view space)\n\t\t\t\t\t// this maintains initial aspect ratio\n\t\t\t\t\tif (mViewWidth > mViewHeight) {\n\t\t\t\t\t\tmMinWidth = mViewWidth;\n\t\t\t\t\t\tmMinHeight = (int)(mMinWidth/mAspect);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmMinHeight = mViewHeight;\n\t\t\t\t\t\tmMinWidth = (int)(mAspect*mViewHeight);\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\tmMaxWidth = (int)(mMinWidth * 1.5f);\n\t\t\t\t\tmMaxHeight = (int)(mMinHeight * 1.5f);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tif (newWidth < mMinWidth) {\n\t\t\t\t\tnewWidth = mMinWidth;\n\t\t\t\t\tnewHeight = (int) (((float) mMinWidth / mImageWidth) * mImageHeight);\n\t\t\t\t\tresize = true;\n\t\t\t\t}\n\t\t\t\tif (newHeight < mMinHeight) {\n\t\t\t\t\tnewHeight = mMinHeight;\n\t\t\t\t\tnewWidth = (int) (((float) mMinHeight / mImageHeight) * mImageWidth);\n\t\t\t\t\tresize = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmScrollTop = 0;\n\t\t\t\tmScrollLeft = 0;\n\t\t\t\t\n\t\t\t\t// scale the bitmap\n\t\t\t\tif (resize) {\n\t\t\t\t\tscaleBitmap(newWidth, newHeight);\n\t\t\t\t} else {\n\t\t\t\t\tmExpandWidth=newWidth;\n\t\t\t\t\tmExpandHeight=newHeight;\t\t\t\t\t\n\t\t\t\t\tmResizeFactorX = ((float) newWidth / mImageWidth);\n\t\t\t\t\tmResizeFactorY = ((float) newHeight / mImageHeight);\n\t\t\t\t\tmRightBound = 0 - (mExpandWidth - mViewWidth);\n\t\t\t\t\tmBottomBound = 0 - (mExpandHeight - mViewHeight);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void setMaxScale(int value);", "public void setFrameSize(double aWidth, double aHeight)\n{\n // If shape not rotated, scaled or skewed, just set and return\n if(!isRSS()) {\n if(_width<0) { setX(_x + (aWidth+_width)); aWidth = -aWidth; }\n if(_height<0) { setY(_y + (aHeight+_height)); aHeight = -aHeight; }\n setSize(aWidth, aHeight); return;\n }\n \n // Convert X & Y axis to parent coords\n RMSize x_axis = convertVectorToShape(new RMSize(_width, 0), _parent);\n RMSize y_axis = convertVectorToShape(new RMSize(0, _height), _parent);\n\n // Scale widths of X & Y axes in parent coords by ratio of NewWidth/OldWidth\n double sizeByRatio1 = Math.abs(aWidth)/(Math.abs(x_axis.width) + Math.abs(y_axis.width));\n x_axis.width *= sizeByRatio1; y_axis.width *= sizeByRatio1;\n \n // Scale heights of X & Y axes in parent coords by ratio of NewHeight/OldHeight\n double sizeByRatio2 = Math.abs(aHeight)/(Math.abs(x_axis.height) + Math.abs(y_axis.height));\n x_axis.height *= sizeByRatio2; y_axis.height *= sizeByRatio2;\n\n // Cache current bounds origin (this shouldn't change)\n RMPoint origin = getFrameXY();\n \n // Reset current Skew and convert X & Y axis from parent coords\n setSkewXY(0, 0);\n convertVectorFromShape(x_axis, _parent);\n convertVectorFromShape(y_axis, _parent);\n\n // Set the size to compensate for the skew\n setSize(x_axis.width, y_axis.height);\n\n // Calculate new skew angles (or roll, if width or height is zero)\n if(width()==0)\n setRoll(getRoll() - Math.toDegrees(Math.atan(y_axis.width/y_axis.height)));\n else if(height()==0)\n setRoll(getRoll() - Math.toDegrees(Math.atan(x_axis.height/x_axis.width)));\n else {\n setSkewX(Math.toDegrees(Math.atan(x_axis.height/x_axis.width)));\n setSkewY(Math.toDegrees(Math.atan(y_axis.width/y_axis.height)));\n }\n\n // Reset original bounds origin (it may have been effected by skew changes)\n setFrameXY(origin);\n}" ]
[ "0.67669445", "0.6754956", "0.6510135", "0.6465749", "0.643657", "0.6337063", "0.6281309", "0.62793726", "0.6275955", "0.62429637", "0.62118196", "0.6196876", "0.61919826", "0.6155373", "0.61532587", "0.61532587", "0.61532587", "0.61205333", "0.6117105", "0.6113849", "0.61116856", "0.6095863", "0.608104", "0.60806066", "0.6036204", "0.6018799", "0.60109377", "0.6010034", "0.60094273", "0.6007812", "0.6007522", "0.5999726", "0.5993332", "0.5972764", "0.5970487", "0.59556663", "0.5946172", "0.5930104", "0.5883113", "0.5869081", "0.58548033", "0.5852553", "0.58522165", "0.58495337", "0.58439237", "0.58425534", "0.582178", "0.5820074", "0.58165056", "0.5811664", "0.5809355", "0.5805636", "0.5804521", "0.5802587", "0.5802587", "0.5802587", "0.5798652", "0.5795895", "0.57946736", "0.5788958", "0.5786091", "0.5784832", "0.577888", "0.5775419", "0.57655215", "0.57536376", "0.57531536", "0.5747868", "0.5745083", "0.57368106", "0.5734617", "0.57343626", "0.5734218", "0.57236636", "0.5722018", "0.57143927", "0.5706212", "0.5700974", "0.56967384", "0.5694718", "0.5694475", "0.56914884", "0.5680276", "0.5675423", "0.5671267", "0.56704295", "0.5664623", "0.5664623", "0.5661866", "0.5660889", "0.56605226", "0.5658789", "0.5647535", "0.564165", "0.5636821", "0.56347156", "0.5633517", "0.56202114", "0.5620192", "0.5616754", "0.5614544" ]
0.0
-1
Decodes a Base64 image string.
public static MutableImage fromBase64String(String base64Image) throws IOException { if (base64Image == null) { return null; } var base64 = base64Image.replaceFirst("(?is)^.*?base64,(.*)$", "$1"); var bais = new ByteArrayInputStream( Base64.getMimeDecoder().decode(base64)); return new MutableImage(ImageIO.read(bais)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String base64Decode(String str) throws StoreFactoryException;", "public static Bitmap decodeBase64(String input) \n\t\t{\n\t\t byte[] decodedByte = Base64.decode(input, 0);\n\t\t return BitmapFactory.decodeByteArray(decodedByte, 0, decodedByte.length); \n\t\t}", "public static Bitmap decodeBase64(String input){\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory.decodeByteArray(decodedByte,0,decodedByte.length);\n }", "public static Bitmap decodeBase64(String input) {\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory\n .decodeByteArray(decodedByte, 0, decodedByte.length);\n }", "public static String base64Decode(String str) {\n try {\n return new String((new sun.misc.BASE64Decoder()).decodeBuffer(str));\n } catch (IOException e) {\n log.error(\"Error decoding string: \" + str, e);\n return str;\n }\n }", "public final static String decodeBase64(String data) {\n\t\tString rc = null;\n\t\tbyte[] b64 = Base64.decodeBase64(data);\n\t\trc = new String(b64);\n\t\treturn rc;\n\t}", "public static String base64DecodeString(String value) throws Exception\n {\n return new String(DatatypeConverter.parseBase64Binary(value), \"UTF-8\");\n }", "public static Bitmap decodeBase64(String input) {\r\n byte[] decodedBytes = Base64.decode(input, 0);\r\n return BitmapFactory.decodeByteArray(decodedBytes, 0, decodedBytes.length);\r\n }", "public static Bitmap decodeBase64(String input)\n {\n byte[] decodedBytes = Base64.decode(input, 0);\n return BitmapFactory.decodeByteArray(decodedBytes, 0, decodedBytes.length);\n }", "public static Bitmap decodeToBase64(String input) {\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory.decodeByteArray(decodedByte, 0, decodedByte.length);\n }", "private Bitmap decodeBitmapBase64 (String encodedString)\t{\n\t\ttry {\n\n\t\t\tbyte[] decodedString = Base64.decode(encodedString.getBytes(\"UTF-8\"), Base64.DEFAULT);\n\t\t\tBitmap decodedImage = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);\n\n\t\t\treturn decodedImage;\n\n\t\t} catch (Exception e) {\n\n\t\t\tToast.makeText(getBaseContext(), \"Catch # 12:19\", Toast.LENGTH_LONG).show();\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "public static Bitmap bitmapDecodeBase64(String input) {\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory\n .decodeByteArray(decodedByte, 0, decodedByte.length);\n }", "public static BufferedImage decodeToImage(String imageString) {\n\n\t\tBufferedImage image = null;\n\t\tbyte[] imageByte;\n\t\ttry {\n\t\t\tBASE64Decoder decoder = new BASE64Decoder();\n\t\t\timageByte = decoder.decodeBuffer(imageString);\n\t\t\tByteArrayInputStream bis = new ByteArrayInputStream(imageByte);\n\t\t\timage = ImageIO.read(bis);\n\t\t\tbis.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn image;\n\t}", "public static Bitmap getBitmapFromStringBase64(String imageString){\n byte[] imageAsBytes = Base64.decode(imageString, Base64.DEFAULT);\n Bitmap bitmap = BitmapFactory.decodeByteArray(imageAsBytes, 0, imageAsBytes.length);\n return bitmap;\n }", "private BufferedImage imageFromBase64(final String imageString) {\r\n\t\ttry {\r\n\t\t\tfinal boolean useCache=ImageIO.getUseCache();\r\n\t\t\ttry {\r\n\t\t\t\tImageIO.setUseCache(false); /* Wird benötigt, wenn im Stream nicht gesprungen werden kann, was bei einem ByteArrayInputStream nun definitiv möglich ist. */\r\n\t\t\t\treturn ImageIO.read(new ByteArrayInputStream(Base64.getDecoder().decode(imageString)));\r\n\t\t\t} finally {\r\n\t\t\t\tImageIO.setUseCache(useCache);\r\n\t\t\t}\r\n\t\t} catch (IOException | IllegalArgumentException e) {return null;}\r\n\t}", "private static byte[] decodeBase64(String data) {\n return Base64.decode(data, BASE64_DFLAGS);\n }", "public static byte[] decodebase64(String data) {\n\t\tbyte[] databytes;\n\t\ttry {\n\t\t\tdatabytes = data.getBytes(\"UTF8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tdatabytes = Base64.decode(data);\n\n\t\treturn databytes;\n\t}", "default byte[] decodificarBase64(String archivoBase64) {\n\t\treturn Base64.getDecoder().decode(archivoBase64);\n\t}", "public static byte[] decB64(String data) {\n return Base64.decode(data, Base64.DEFAULT);\n }", "public static byte[] fromBase64(String data)\n {\n return Base64.decode(data, Base64.NO_WRAP);\n }", "public String decode (String string){\n try {\n byte[] tmp2 = Base64.decode(string,Base64.DEFAULT);\n str = new String(tmp2,\"UTF-8\");str = new String(tmp2,\"UTF-8\");\n } catch (Exception ex){ex.printStackTrace();}\n return str;\n }", "public String getDecod(String text) {\n Base64.Decoder decoder = Base64.getDecoder();\n return new String(decoder.decode(text));\n }", "public static byte[] base64Decode(String property) throws Exception\n {\n return DatatypeConverter.parseBase64Binary( property);\n }", "public static byte[] decode(String data) {\n\t\treturn Base64.getDecoder().decode(data);\n\t}", "public static String decode(String str) throws UnsupportedEncodingException {\n byte[] base64decodedBytes = Base64.getDecoder().decode(str);\n return new String(base64decodedBytes, \"utf-8\");\n }", "static byte[] base64decode(String base64)\n {\n // Remove all whitespace.\n base64 = base64.replaceAll(\"\\\\s\", \"\");\n int endTrim = 0;\n if (base64.endsWith(\"==\")) {\n endTrim = 2;\n base64 = base64.substring(0, base64.length() - 2) + \"AA\";\n } else if (base64.endsWith(\"=\"))\n {\n endTrim = 1;\n base64 = base64.substring(0, base64.length() - 1) + \"A\";\n }\n if (base64.length() % 4 != 0) throw new IllegalArgumentException(\"Illegal base64 string, length \" + base64.length());\n int length = (base64.length() / 4) * 3 - endTrim;\n base64 = base64.replace('=', 'A');\n byte[] result = new byte[length];\n int stringLength = base64.length();\n int index = 0;\n for (int i = 0; i < stringLength; i += 4)\n {\n int i0 = BASE64_STRING.indexOf(base64.charAt(i));\n int i1 = BASE64_STRING.indexOf(base64.charAt(i + 1));\n int i2 = BASE64_STRING.indexOf(base64.charAt(i + 2));\n int i3 = BASE64_STRING.indexOf(base64.charAt(i + 3));\n byte b0 = (byte) ((i0 << 2) | (i1 >> 4));\n byte b1 = (byte) ((i1 << 4) | (i2 >> 2));\n byte b2 = (byte) ((i2 << 6) | i3);\n result[index++] = b0;\n if (index < length)\n {\n result[index++] = b1;\n if (index < length)\n {\n result[index++] = b2;\n }\n }\n }\n return result;\n }", "public static Term mime_decode_1(Binary base64) {\n return Binary.of(Base64.getMimeDecoder().decode(base64.toByteArray()));\n }", "private static String decodeString(String encoded) throws NullPointerException {\n byte[] dataDec = Base64.decode(encoded, Base64.DEFAULT);\n String decodedString = \"\";\n try {\n decodedString = new String(dataDec, \"UTF-8\");\n } catch (UnsupportedEncodingException ignored) {\n }\n return decodedString;\n }", "public static BufferedImage toBufferedImage(String imgString) throws IOException {\n \n BufferedImage bufferedImage = null;\n try {\n byte[] byteArray = Base64.decodeBase64(imgString);\n \n try (InputStream in = new ByteArrayInputStream(byteArray)) {\n bufferedImage = ImageIO.read(in);\n }\n \n } catch (IOException iOException) {\n \n return null;\n }\n \n return bufferedImage;\n }", "public String decode64(String bytesEncoded)\n\t{\n\t\tbyte[] valueDecoded= Base64.decodeBase64(bytesEncoded);\n\t\t//System.out.println(\"Decoded value is \" + new String(valueDecoded));\n\t\treturn new String(valueDecoded);\n\t}", "String decodeString();", "public static byte[] base64ToByte(String data) throws IOException {\n BASE64Decoder decoder = new BASE64Decoder();\n return decoder.decodeBuffer(data);\n }", "public static String decode(String arg) {\n byte[] bytes = Base64.getDecoder().decode(arg);\n String decoded = new String(bytes);\n\n return decoded;\n }", "private static byte[] decodeBase64(String base64Input) throws GeneralSecurityException\n {\n try\n {\n return Base64.getDecoder().decode(base64Input);\n }\n catch (IllegalArgumentException e)\n {\n throw new GeneralSecurityException(\"Failed to decode given base64 input. msg=\" + e.getMessage(), e);\n }\n }", "public ValidationEntity decodeBase64(ValidationEntity validationEntity) {\n String decodedString = new String(Base64.getDecoder().decode(validationEntity.getInputMessage()));\n log.debug(\"decodeBase64 completed successfully: {}\", decodedString);\n validationEntity.setValid(true);\n validationEntity.setInputMessage(decodedString);\n validationEntity.setValidationMessage(\"Decode Successful!!!\");\n return validationEntity;\n }", "public static byte[] base64Decode(final String key) {\n return Base64.decode(key);\n }", "public static void convertBase64StringToImage(String base64ImageString, File file) {\n FileOutputStream os;\n try {\n Base64 d = new Base64();\n byte[] bs = d.decode(base64ImageString);\n os = new FileOutputStream(file.getAbsolutePath());\n os.write(bs);\n os.close();\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e.getMessage(), e);\n } catch (IOException e) {\n throw new RuntimeException(e.getMessage(), e);\n } catch (Exception e) {\n throw new RuntimeException(e.getMessage(), e);\n }\n }", "private void decodeBase64AndSetImage(String completeImageData, ImageView imageView) {\n String imageDataBytes = completeImageData.substring(completeImageData.indexOf(\",\")+1);\n\n InputStream stream = new ByteArrayInputStream(Base64.decode(imageDataBytes.getBytes(), Base64.DEFAULT));\n\n Bitmap bitmap = BitmapFactory.decodeStream(stream);\n\n imageView.setImageBitmap(bitmap);\n }", "public static String decodeString(String str) throws IOException {\n BASE64Decoder dec = new BASE64Decoder();\n String value = new String(dec.decodeBuffer(str));\n \n return (value);\n }", "private String base64Decode(String token) {\n\t\t \tBase64 base64 = new Base64();\n\t \tbyte[] decodedBytes = base64.decode(token.getBytes()); \t\n\t \tString decodeString = new String(decodedBytes, Charset.forName(\"UTF-8\"));\t\t\n\t \tint index1 = decodeString.indexOf(\"3du\");\n\t \tint index2 = decodeString.indexOf(\"l0g\");\n\t \tint lengthChar = decodeString.length();\n//\t \tif(lengthChar %4 != 0) {\n//\t \t\treturn \"\";\n//\t \t}\n\t \tif((index1 < 3) & (index2 >=3))\n\t \t{\n\t \t\tlengthChar = lengthChar - 3;\n\t \t}\n\t \tif(lengthChar > 0) {\n\t \t\tdecodeString = decodeString.substring(3, lengthChar);\n\t \t} \t\n\t \treturn decodeString;\n\t\t}", "private static String descifrarBase64(String arg) {\n Base64.Decoder decoder = Base64.getDecoder();\n byte[] decodedByteArray = decoder.decode(arg);\n\n return new String(decodedByteArray);\n }", "public byte[] decodeContent(String contentDataString){\t\t\n return Base64.decodeBase64(contentDataString);\n}", "public static String uudecode (String base64string) {\n\tStringBuilder ret = new StringBuilder (base64string.length () * 3 / 4);\n \n\twhile ((base64string.length () % 4) != 0)\n\t base64string += \"=\"; // that should be safe.\n\tint i = 0;\n\tint c1 = 0, c2 = 0, c3 = 0, c4 = 0;\n\twhile (i < base64string.length () && \n\t pr2six[base64string.charAt (i)] <= 63) {\n\t c1 = pr2six[base64string.charAt (i)];\n\t c2 = pr2six[base64string.charAt (i+1)];\n\t c3 = pr2six[base64string.charAt (i+2)];\n\t c4 = pr2six[base64string.charAt (i+3)];\n\t ret.append ((char)(c1 << 2 | c2 >> 4));\n\t ret.append ((char)((c2 << 4 | c3 >> 2) % 256));\n\t ret.append ((char)((c3 << 6 | c4) % 256)); \n\t i += 4;\n\t} \n \n\tif (c3 > 63)\n\t ret.setLength (ret.length () - 2);\n\telse if (c4 > 63)\n\t ret.setLength (ret.length () - 1);\n\treturn ret.toString ();\n }", "public void DecodeImage(String encodedString, int id) throws CustomServiceUnavailableException {\r\n\r\n\t\tString filename = String.valueOf(id) + \".jpg\";\r\n\t\tString finalfile = \"\";\r\n\t\tfinalfile = filename;\r\n\t\tBufferedImage image = null;\r\n\t\tbyte[] imageByte;\r\n\r\n\t\ttry {\r\n\t\t\tBASE64Decoder decoder = new BASE64Decoder();\r\n\t\t\timageByte = decoder.decodeBuffer(encodedString);\r\n\t\t\tByteArrayInputStream bis = new ByteArrayInputStream(imageByte);\r\n\t\t\timage = ImageIO.read(bis);\r\n\t\t\tbis.close();\r\n\t\t\tImageIO.write(image, \"jpg\", new File(finalfile));\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new CustomServiceUnavailableException(\"Internal error in the application\");\r\n\t\t}\r\n\r\n\t}", "public void decodeImage(String completeImageData, ImageView imageView) {\n if (completeImageData == null) { return; }\n\n // Incase you're storing into aws or other places where we have extension stored in the starting.\n String imageDataBytes = completeImageData.substring(completeImageData.indexOf(\",\")+1);\n InputStream stream = new ByteArrayInputStream(Base64.decode(imageDataBytes.getBytes(), Base64.DEFAULT));\n Bitmap bitmap = BitmapFactory.decodeStream(stream);\n imageView.setImageBitmap(bitmap);\n }", "@Override\n public Message decode( String string ) throws DecodeException {\n try {\n byte[] data = EncodeUtil.decodeBase64Zipped( string );\n InputStream is = new ByteArrayInputStream( data );\n ObjectInputStream ois = new ObjectInputStream( is );\n Object o = ois.readObject();\n ois.close();\n return (Message) o;\n } catch ( Exception e ) {\n throw new RuntimeException( \"Unexpected error trying to decode object.\", e );\n }\n }", "public static byte[] decode(String encoded) {\n if (CommonUtil.isNull(encoded)) {\n return new byte[0];\n }\n\n char[] base64Data = encoded.toCharArray();\n // remove white spaces\n int len = removeWhiteSpace(base64Data);\n\n if (len % FOURBYTE != 0) {\n return new byte[0]; // should be divisible by four\n }\n\n int numberQuadruple = (len / FOURBYTE);\n\n if (numberQuadruple == 0) {\n return new byte[0];\n }\n\n return decode(base64Data, numberQuadruple);\n }", "public static byte[] decode(char[] in) {\r\n \t\tint iLen = in.length;\r\n \t\tif (iLen % 4 != 0)\r\n \t\t\tthrow new IllegalArgumentException(\r\n \t\t\t\t\t\"Length of Base64 encoded input string is not a multiple of 4.\");\r\n \t\twhile (iLen > 0 && in[iLen - 1] == '=')\r\n \t\t\tiLen--;\r\n \t\tint oLen = (iLen * 3) / 4;\r\n \t\tbyte[] out = new byte[oLen];\r\n \t\tint ip = 0;\r\n \t\tint op = 0;\r\n \t\twhile (ip < iLen) {\r\n \t\t\tint i0 = in[ip++];\r\n \t\t\tint i1 = in[ip++];\r\n \t\t\tint i2 = ip < iLen ? in[ip++] : 'A';\r\n \t\t\tint i3 = ip < iLen ? in[ip++] : 'A';\r\n \t\t\tif (i0 > 127 || i1 > 127 || i2 > 127 || i3 > 127)\r\n \t\t\t\tthrow new IllegalArgumentException(\r\n \t\t\t\t\t\t\"Illegal character in Base64 encoded data.\");\r\n \t\t\tint b0 = map2[i0];\r\n \t\t\tint b1 = map2[i1];\r\n \t\t\tint b2 = map2[i2];\r\n \t\t\tint b3 = map2[i3];\r\n \t\t\tif (b0 < 0 || b1 < 0 || b2 < 0 || b3 < 0)\r\n \t\t\t\tthrow new IllegalArgumentException(\r\n \t\t\t\t\t\t\"Illegal character in Base64 encoded data.\");\r\n \t\t\tint o0 = (b0 << 2) | (b1 >>> 4);\r\n \t\t\tint o1 = ((b1 & 0xf) << 4) | (b2 >>> 2);\r\n \t\t\tint o2 = ((b2 & 3) << 6) | b3;\r\n \t\t\tout[op++] = (byte) o0;\r\n \t\t\tif (op < oLen)\r\n \t\t\t\tout[op++] = (byte) o1;\r\n \t\t\tif (op < oLen)\r\n \t\t\t\tout[op++] = (byte) o2;\r\n \t\t}\r\n \t\treturn out;\r\n \t}", "public static byte[] base642Byte(String base64Key) throws IOException {\n BASE64Decoder decoder = new BASE64Decoder();\n return decoder.decodeBuffer(base64Key);\n }", "static Image bityNaObraz(String image) throws IOException\n {\n byte[] rysunek = DatatypeConverter.parseBase64Binary(image); \n BufferedImage img = ImageIO.read(new ByteArrayInputStream(rysunek));\n return img;\n }", "public Bitmap stringToBitMap(String encodedString){\n try {\n byte [] encodeByte= Base64.decode(encodedString,Base64.DEFAULT);\n Bitmap bitmap = BitmapFactory.decodeByteArray(encodeByte, 0, encodeByte.length);\n return bitmap;\n } catch(Exception e) {\n e.getMessage();\n return null;\n }\n }", "public static byte[] decode(String encoded) {\n \n if (encoded == null)\n return null;\n \n char[] base64Data = encoded.toCharArray();\n // remove white spaces\n int len = removeWhiteSpace(base64Data);\n \n if (len%FOURBYTE != 0) {\n return null;//should be divisible by four\n }\n \n int numberQuadruple = (len/FOURBYTE );\n \n if (numberQuadruple == 0)\n return new byte[0];\n \n byte decodedData[] = null;\n byte b1=0,b2=0,b3=0, b4=0, marker0=0, marker1=0;\n char d1=0,d2=0,d3=0,d4=0;\n \n int i = 0;\n int encodedIndex = 0;\n int dataIndex = 0;\n decodedData = new byte[ (numberQuadruple)*3];\n \n for (; i<numberQuadruple-1; i++) {\n \n if (!isData( (d1 = base64Data[dataIndex++]) )||\n !isData( (d2 = base64Data[dataIndex++]) )||\n !isData( (d3 = base64Data[dataIndex++]) )||\n !isData( (d4 = base64Data[dataIndex++]) ))\n return null;//if found \"no data\" just return null\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n b3 = base64Alphabet[d3];\n b4 = base64Alphabet[d4];\n \n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n }\n \n if (!isData( (d1 = base64Data[dataIndex++]) ) ||\n !isData( (d2 = base64Data[dataIndex++]) )) {\n return null;//if found \"no data\" just return null\n }\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n \n d3 = base64Data[dataIndex++];\n d4 = base64Data[dataIndex++];\n if (!isData( (d3 ) ) ||\n !isData( (d4 ) )) {//Check if they are PAD characters\n if (isPad( d3 ) && isPad( d4)) { //Two PAD e.g. 3c[Pad][Pad]\n if ((b2 & 0xf) != 0)//last 4 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 1 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex] = (byte)( b1 <<2 | b2>>4 ) ;\n return tmp;\n } else if (!isPad( d3) && isPad(d4)) { //One PAD e.g. 3cQ[Pad]\n b3 = base64Alphabet[ d3 ];\n if ((b3 & 0x3 ) != 0)//last 2 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 2 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex++] = (byte)( b1 <<2 | b2>>4 );\n tmp[encodedIndex] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n return tmp;\n } else {\n return null;//an error like \"3c[Pad]r\", \"3cdX\", \"3cXd\", \"3cXX\" where X is non data\n }\n } else { //No PAD e.g 3cQl\n b3 = base64Alphabet[ d3 ];\n b4 = base64Alphabet[ d4 ];\n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n \n }\n \n return decodedData;\n }", "JwtParserBuilder base64UrlDecodeWith(Decoder<String, byte[]> base64UrlDecoder);", "public Bitmap fromStringToImage(String photo){\n byte[] decodedString = Base64.decode(photo, Base64.DEFAULT);\n Bitmap decodedByte = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);\n return decodedByte;\n }", "public static Bitmap getBitmapFromString(String string) {\n \n \t\tbyte[] decodedString = Base64.decode(string, Base64.DEFAULT);\n \t\tBitmap decodedByte = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);\n \t\treturn decodedByte;\n \t}", "private byte[] decode(byte[] msg) {\r\n\t\treturn Base64.decode(msg); \r\n\t}", "private String base64Decode(String xmlAsBase64String, String xmlEncoding) throws UnsupportedEncodingException {\r\n\r\n byte[] xmlAsBase64 = Base64.decodeBase64(xmlAsBase64String.getBytes(\"ascii\"));\r\n\r\n return new String(xmlAsBase64, xmlEncoding);\r\n }", "public BufferedImage getImage() {\n\t\tString base64ImageString = getData();\n\t\tByteArrayInputStream byteStream = new ByteArrayInputStream(Base64\n\t\t\t\t.decodeBase64(base64ImageString.getBytes()));\n\t\ttry {\n\t\t\treturn ImageIO.read(byteStream);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public static String decode(String parameter) {\n \t\n \tString decodedParameter = new String(Base64.decodeBase64(parameter.getBytes()));\n \t\n \treturn decodedParameter;\n }", "Object decode(String encoded);", "private Bitmap getBitmapFromString(String jsonString) {\n byte[] decodedString = Base64.decode(jsonString, Base64.DEFAULT);\n\n return BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);\n }", "String convertImageToBase64String(final BufferedImage img) {\n final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n try {\n ImageIO.write(img, \"png\", byteArrayOutputStream);\n return Base64.getEncoder().encodeToString(byteArrayOutputStream.toByteArray());\n } catch (IOException e) {\n logger.error(\"cannot convert image to base 64\", e);\n }\n return null;\n }", "public InputStream mo12944a(String str) {\n if (str.startsWith(\"data:image\")) {\n int indexOf = str.indexOf(44);\n if (indexOf == -1) {\n throw new IllegalArgumentException(\"Missing comma in data URL.\");\n } else if (str.substring(0, indexOf).endsWith(\";base64\")) {\n return new ByteArrayInputStream(Base64.decode(str.substring(indexOf + 1), 0));\n } else {\n throw new IllegalArgumentException(\"Not a base64 image data URL.\");\n }\n } else {\n throw new IllegalArgumentException(\"Not a valid image data URL.\");\n }\n }", "public static String decodificarImagen(byte[] imagen){\n\t\tif(imagen!=null && imagen.length>0){\n\t\t\treturn \"data:image/jpeg;base64,\"+DatatypeConverter.printBase64Binary(imagen);\n\t\t}\n\t\treturn null;\n\t}", "public static final byte[] getDecoded(final String u) {\n BASE64Decoder decoder = new BASE64Decoder();\n\n try {\n return decoder.decodeBuffer(u);\n } catch (IOException e) {\n byte[] temp = {(byte) 0};\n return temp;\n }\n }", "public byte[] doDecoding(byte[] bArr) {\r\n return bArr == null ? null : Base64.decodeBase64(bArr);\r\n }", "public String getImageBase64(String imagePath) {\n\t\tString base64Image = \"\";\n\t\tFile file = new File(imagePath);\n\t\ttry (FileInputStream imageInFile = new FileInputStream(file)) {\n\t\t\t// Reading a Image file from file system\n\t\t\tbyte imageData[] = new byte[(int) file.length()];\n\t\t\timageInFile.read(imageData);\n\t\t\tbase64Image = Base64.getEncoder().encodeToString(imageData);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Image not found\" + e);\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"Exception while reading the Image \" + ioe);\n\t\t}\n\t\treturn base64Image;\n\t}", "static String convertToBase64(byte[] image){\n return !Objects.isNull(image)\n ? Base64.getEncoder().encodeToString(image)\n : \"\";\n }", "public static String base64StringToString(String base64Str) {\n if (base64Str == null) return null;\n return new String(Base64.decodeBase64(base64Str));\n }", "public byte[] decode(String b64, int str, int len) {\n byte[] ba; // target byte array\n int dc; // decode cycle (within sequence of 4 input chars).\n int rv; // reconstituted value\n int ol; // output length\n int pc; // padding count\n\n ba = new byte[len / 4 * 3]; // create array to largest possible size.\n dc = 0;\n rv = 0;\n ol = 0;\n pc = 0;\n\n for (int xa = 0; xa < len; xa++) {\n int ch = b64.charAt(xa + str);\n int value = ch <= 255 ? DECODE[ch] : IGNORE;\n if (value != IGNORE) {\n if (value == PAD) {\n value = 0;\n pc++;\n }\n switch (dc) {\n case 0: {\n rv = value;\n dc = 1;\n }\n break;\n\n case 1: {\n rv <<= 6;\n rv |= value;\n dc = 2;\n }\n break;\n\n case 2: {\n rv <<= 6;\n rv |= value;\n dc = 3;\n }\n break;\n\n case 3: {\n rv <<= 6;\n rv |= value;\n\n // Completed a cycle of 4 chars, so recombine the four 6-bit\n // values in big-endian order\n ba[ol + 2] = (byte) rv;\n rv >>>= 8;\n ba[ol + 1] = (byte) rv;\n rv >>>= 8;\n ba[ol] = (byte) rv;\n ol += 3;\n dc = 0;\n }\n break;\n }\n }\n }\n if (dc != 0) {\n throw new ArrayIndexOutOfBoundsException(\n \"Base64 data given as input was not an even multiple of 4 characters (should be padded with '=' characters).\");\n }\n ol -= pc;\n if (ba.length != ol) {\n byte[] b2 = new byte[ol];\n System.arraycopy(ba, 0, b2, 0, ol);\n ba = b2;\n }\n return ba;\n }", "default String codificarBase64(String contenido) {\n\t\tbyte[] encoded = Base64.getEncoder().encode(contenido.getBytes(StandardCharsets.UTF_8));\n\t\treturn new String(encoded);\n\t}", "private String[] decodeRequest(final String base64StringData) {\n final List<String> requestData = new ArrayList<>();\n final String dataSeparator = \"|\";\n try {\n if (null != base64StringData) {\n byte[] decoded = Base64.decode(base64StringData.getBytes(\"UTF-8\"));\n String receiptData = new String(decoded, \"UTF-8\");\n StringTokenizer receiptTokens = new StringTokenizer(receiptData, dataSeparator);\n while (receiptTokens.hasMoreTokens()) {\n requestData.add(receiptTokens.nextToken());\n }\n }\n } catch (final Exception e) {\n LOGGER.error(\"trouble decoding pdf request: \" + base64StringData, e);\n }\n return requestData.toArray(new String[requestData.size()]);\n }", "public String decode(BufferedImage stegoImage){\n // Setup data to be used for decoding\n setupData(stegoImage);\n\n // Check parameter data will allow for successful decoding\n checkData();\n\n // Decode data from the image\n StringBuilder binary = decodeSecretData();\n\n // Convert the data back to text\n String text = getText(binary);\n\n // Return the retrieved text\n return text;\n }", "public String getImageBase64() {\n return this.imageBase64;\n }", "public String decode(String path, String name) {\n byte[] decode;\n try {\n // user space is necessary for decrypting\n BufferedImage image = user_space(getImage(image_path(\n path,\n name,\n \"png\")));\n decode = decode_text(get_byte_data(image));\n return (new String(decode));\n }\n catch (Exception e) {\n JOptionPane.showMessageDialog(\n null,\n \"There is no hidden message in this image!\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n return \"\";\n }\n }", "byte[] decodeBytes();", "public Bitmap StringToBitMap(String encodedString) {\r\n\t\ttry {\r\n\t\t\tbyte[] encodeByte = Base64.decode(encodedString, Base64.DEFAULT);\r\n\t\t\tBitmap bitmap = BitmapFactory.decodeByteArray(encodeByte, 0,\r\n\t\t\t\t\tencodeByte.length);\r\n\t\t\treturn bitmap;\r\n\t\t} catch (Exception e) {\r\n\t\t\te.getMessage();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public static String getImageBase64String(BufferedImage image) {\n String result = null;\n try {\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n OutputStream b64 = new Base64OutputStream(os);\n ImageIO.write(image, \"png\", b64);\n result = os.toString(\"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e.getMessage(), e);\n } catch (IOException e) {\n throw new RuntimeException(e.getMessage(), e);\n }\n return result;\n }", "public static Payload decode(String base64) {\n JsonObject json = decodeToJson(base64);\n Payload payload = new Payload();\n json.keySet().forEach(key -> {\n switch (key) {\n case \"iss\" -> payload.issuer = json.getString(key);\n case \"sub\" -> payload.subject = json.getString(key);\n case \"aud\" -> payload.audience = json.getString(key);\n case \"exp\" -> payload.expires = Long.valueOf(json.get(key).toString());\n case \"nbf\" -> payload.notBefore = Long.valueOf(json.get(key).toString());\n case \"iat\" -> payload.issuedAt = Long.valueOf(json.get(key).toString());\n case \"jti\" -> payload.jwtId = json.getString(key);\n default -> payload.add(key, json.getString(key));\n }\n });\n return payload;\n }", "public String decode(String message) {\n if (message == null || message.isEmpty()) {\n return \"\";\n }\n StringBuilder source = new StringBuilder(message);\n StringBuilder target = new StringBuilder();\n while (source.length() >= 8) {\n String substring = source.substring(0,8);\n source.delete(0, 8);\n target.append(decodeByte(substring));\n }\n int bitOverlap = target.length() % 8;\n if (bitOverlap > 0 && target.length() > 8) {\n target.delete(target.length() - bitOverlap, target.length());\n }\n return target.toString();\n }", "public static String returnDecoded(String encodedText) {\n if (encodedText == null) {\n return null;\n }\n byte[] decoded = Base64.decode(encodedText, Base64.NO_WRAP);\n return new String(decoded);\n }", "String decrypt(String input) {\n\t\treturn new String(BaseEncoding.base64().decode(input));\n\t}", "static public byte[] decode(String encoded) {\n if (encoded == null)\n return null;\n int lengthData = encoded.length();\n if (lengthData % 2 != 0)\n return null;\n \n char[] binaryData = encoded.toCharArray();\n int lengthDecode = lengthData / 2;\n byte[] decodedData = new byte[lengthDecode];\n byte temp1, temp2;\n for( int i = 0; i<lengthDecode; i++ ){\n temp1 = hexNumberTable[binaryData[i*2]];\n if (temp1 == -1)\n return null;\n temp2 = hexNumberTable[binaryData[i*2+1]];\n if (temp2 == -1)\n return null;\n decodedData[i] = (byte)((temp1 << 4) | temp2);\n }\n return decodedData;\n }", "private Bitmap stringToBitmap(String datos) {\n\n\t\tBitmap foto = null;\n\t\t\n\t\ttry {\n\t\t\tbyte[] byteData = Base64.decode(datos, Base64.DEFAULT);\n\t\t\tfoto = BitmapFactory.decodeByteArray(byteData, 0, byteData.length);\n\t\t\tLog.e(\"ImgArticulos\", \"Imagen convertida\");\n\t\t} catch (Exception e) {\n\t\t\tLog.e(\"ImgArticulos\", e.toString());\n\t\t}\n\n\t\treturn getScaledImage(foto);\n\n\t}", "private String convertintobase64(Bitmap bitmap2) {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tbitmap2.compress(Bitmap.CompressFormat.PNG, 100, baos);\n\t\tbyte[] b = baos.toByteArray();\n\t\tString temp = Base64.encodeToString(b, Base64.DEFAULT | Base64.NO_WRAP);\n\t\tSystem.out.println(\"encoded string is:\" + temp);\n\t\treturn temp;\n\t}", "public static byte[] altBase64ToByteArray(String s) {\n return base64ToByteArray(s, true);\n }", "public String getStringImage() {\n if (bitmap != null) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos);\n byte[] imageBytes = baos.toByteArray();\n String encodedImage = Base64.encodeToString(imageBytes, Base64.DEFAULT);\n return encodedImage;\n } else {\n return null;\n }\n }", "public static String desencriptar(String s) throws UnsupportedEncodingException{\n byte[] decode = Base64.getDecoder().decode(s.getBytes());\n return new String(decode, \"utf-8\");\n }", "public static String decode(String string){\n\t\treturn new String(decode(string.getBytes()));\n\t}", "private Base64(){}", "static byte[] base64ToByteArray(String s) {\r\n byte[] alphaToInt = base64ToInt;\r\n int sLen = s.length();\r\n int numGroups = sLen/4;\r\n if (4*numGroups != sLen)\r\n throw new IllegalArgumentException(\r\n \"String length must be a multiple of four.\");\r\n int missingBytesInLastGroup = 0;\r\n int numFullGroups = numGroups;\r\n if (sLen != 0) {\r\n if (s.charAt(sLen-1) == '=') {\r\n missingBytesInLastGroup++;\r\n numFullGroups--;\r\n }\r\n if (s.charAt(sLen-2) == '=')\r\n missingBytesInLastGroup++;\r\n }\r\n byte[] result = new byte[3*numGroups - missingBytesInLastGroup];\r\n\r\n // Translate all full groups from base64 to byte array elements\r\n int inCursor = 0, outCursor = 0;\r\n for (int i=0; i<numFullGroups; i++) {\r\n int ch0 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n int ch1 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n int ch2 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n int ch3 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n result[outCursor++] = (byte) ((ch0 << 2) | (ch1 >> 4));\r\n result[outCursor++] = (byte) ((ch1 << 4) | (ch2 >> 2));\r\n result[outCursor++] = (byte) ((ch2 << 6) | ch3);\r\n }\r\n\r\n // Translate partial group, if present\r\n if (missingBytesInLastGroup != 0) {\r\n int ch0 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n int ch1 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n result[outCursor++] = (byte) ((ch0 << 2) | (ch1 >> 4));\r\n\r\n if (missingBytesInLastGroup == 1) {\r\n int ch2 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n result[outCursor++] = (byte) ((ch1 << 4) | (ch2 >> 2));\r\n }\r\n }\r\n // assert inCursor == s.length()-missingBytesInLastGroup;\r\n // assert outCursor == result.length;\r\n return result;\r\n }", "private byte[] toBytes(String obj){\n return Base64.getDecoder().decode(obj);\n }", "public static String convertImageToBase64(String path) {\n\n Bitmap btmp = BitmapFactory.decodeFile(path);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n btmp.compress(Bitmap.CompressFormat.JPEG, 100, baos);\n byte[] byteArrayImage = baos.toByteArray();\n\n return Base64.encodeToString(byteArrayImage, Base64.DEFAULT);\n }", "public static String decrypt(String input) {\n\t\t Base64.Decoder decoder = Base64.getMimeDecoder();\n\t String key = new String(decoder.decode(input));\n\t return key;\n\t}", "public static String getStringBase64Bitmap(Bitmap bitmap){\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, bos);\n byte[] bitmapBytes = bos.toByteArray();\n String encodedImage = Base64.encodeToString(bitmapBytes, Base64.DEFAULT);\n Log.i(\"getStringBase64Bitmap\",encodedImage);\n return encodedImage;\n }", "public static byte[] getDecodedBytes(byte[] bytes) {\n\t\tbyte[] buffer = null;\n\t\ttry {\n\t\t\t buffer = getRequestBytes(bytes); \n\t\t} catch (IOException e) {\n\t\t\tlog.debug(\"Message not base64 encoded? Trying as binary: \"+e.getMessage());\n\t\t\tbuffer = bytes;\n\t\t}\n\t\treturn buffer;\n\t}", "@Test\n public void testEncodeDecodeBase64() {\n ///////////////////////////////\n // plaintext=\"Text to convert.\";\n plaintext=\"ABCDEFGHIJKLMNOPQRSTUPVWYZ123456789\";\n /////////////////////////////////\n System.out.println(\"Convert following text: \"+plaintext);\n \n System.out.println(\"::encodeBase64::\");\n \n byte[] plaindata = plaintext.getBytes();\n byte[] tmp = Base64Encoder.encodeBase64(plaindata);\n this.storeEncoding=new String(tmp);\n System.out.println(storeEncoding);\n System.out.println(\"::decodeBase64::\");\n byte[] base64Message = this.storeEncoding.getBytes();\n byte[] expResult = plaindata;\n byte[] result = Base64Encoder.decodeBase64(base64Message);\n String decodedText=new String(result);\n System.out.println(\"Decoded Text: \"+decodedText);\n assertArrayEquals(expResult, result);\n }", "public Bitmap decodeImage() {\n\t\treturn image == null ? null : image.decodeBitmap();\n\t}", "private void loadImageInGUI(String image_64){\n if (image_64.length() > 10) {\r\n //Log.d(\"ddd\", \"writooo\");\r\n ImageView userImage = header.findViewById(R.id.profile_img);\r\n byte[] decodedString = Base64.decode(image_64, Base64.DEFAULT);\r\n Bitmap decodedByte = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);\r\n userImage.setImageBitmap(decodedByte);\r\n imageLoaded = true;\r\n }\r\n }", "public String decode(String str) throws DecoderException {\n/* 295 */ if (str == null) {\n/* 296 */ return null;\n/* */ }\n/* */ try {\n/* 299 */ return decode(str, getDefaultCharset());\n/* 300 */ } catch (UnsupportedEncodingException e) {\n/* 301 */ throw new DecoderException(e.getMessage(), e);\n/* */ } \n/* */ }" ]
[ "0.7797506", "0.7552004", "0.75402695", "0.744886", "0.737703", "0.7350599", "0.73349565", "0.7303382", "0.7295617", "0.72031635", "0.71774954", "0.71309674", "0.7096101", "0.70611304", "0.7022861", "0.7016887", "0.68349683", "0.68178284", "0.67304766", "0.67213875", "0.67066395", "0.662361", "0.6608413", "0.65430945", "0.65230614", "0.6517587", "0.64925164", "0.64588", "0.64522386", "0.64376014", "0.642988", "0.6419841", "0.64059234", "0.63535416", "0.6345979", "0.6344047", "0.6339788", "0.6332269", "0.63254297", "0.62556946", "0.62470895", "0.6236465", "0.6223405", "0.6215756", "0.61841714", "0.61713326", "0.6157486", "0.61338717", "0.61303467", "0.61299735", "0.6127726", "0.60995585", "0.6098632", "0.60866374", "0.6044336", "0.6027138", "0.6025913", "0.6025458", "0.60035014", "0.6001212", "0.5994087", "0.59818774", "0.5976524", "0.59667504", "0.5965238", "0.5927557", "0.5910659", "0.5874835", "0.58662677", "0.5810276", "0.58036166", "0.58034134", "0.57979107", "0.57942843", "0.57737374", "0.57622623", "0.57407784", "0.5727891", "0.57178193", "0.57099557", "0.5680093", "0.5651345", "0.56253207", "0.56203544", "0.56185013", "0.5597433", "0.55786395", "0.554697", "0.5544356", "0.55305696", "0.55273837", "0.55145764", "0.54724723", "0.54622924", "0.5459328", "0.544621", "0.54405093", "0.542543", "0.5423384", "0.5410065" ]
0.69410414
16
Rotation Rotates this image counterclockwise by 90 degrees.
public MutableImage rotateLeft() { return rotate(-90); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getRotation();", "public void rotate(float angle);", "@Override\n\tpublic void rotate90() {\n\n\t\tint[][] rotate = new int[this.frame[0].length][this.frame.length];\n\n\t\tfor (int x = 0; x < rotate[0].length; x++) {\n\t\t\tfor (int y = 0; y < rotate.length; y++) {\n\t\t\t\trotate[y][x] = this.frame[this.frame.length - x - 1][y];\n\t\t\t}\n\t\t} \n\n\t\tthis.frame = rotate;\n\n\t}", "public float getRotation() {\n return this.rotation;\n }", "public MutableImage rotate(double degrees) {\n return apply(t -> {\n var w = image.getWidth();\n var h = image.getHeight();\n var rads = Math.toRadians(degrees);\n var sin = Math.abs(Math.sin(rads));\n var cos = Math.abs(Math.cos(rads));\n var newWidth = (int) Math.floor(w * cos + h * sin);\n var newHeight = (int) Math.floor(h * cos + w * sin);\n t.translate((newWidth - w) / 2d, (newHeight - h) / 2d);\n var x = w / 2;\n var y = h / 2;\n t.rotate(rads, x, y);\n });\n }", "public native MagickImage rotateImage(double degrees)\n\t\t\tthrows MagickException;", "public Matrix rotate90Degree() {\n\t\tMatrix rotatedMatrix = new Matrix(this.getHeight(), this.getWidth());\n\t\tfor(int i = 0; i < this.getWidth(); i++) {\n\t\t\tfor(int j = 0; j < this.getHeight(); j++) {\n\t\t\t\trotatedMatrix.setElement(j, (this.getWidth() -1) - i, data[i][j]);\n\t\t\t}\n\t\t}\n\t\tthis.show();\n\t\trotatedMatrix.show();\n\t\treturn rotatedMatrix;\n\t}", "void rotate();", "public float getRotation()\n {\n return rotation;\n }", "public double getRotationAngleInRadians() {\n return Math.toRadians(rotationAngle);\n }", "public Direction rotate90() {\n return values()[r90index];\n }", "@Override\r\n\tpublic void rotate() {\n\t\t\r\n\t}", "public double getRotationAngle() {\n\t\treturn _rotationAngle;\n\t}", "DMatrix3C getRotation();", "public float getRotation() {\n\t\treturn rotation;\n\t}", "public int getRotation() {\r\n\t\treturn rotation;\r\n\t}", "public float getRotationAngle() {\n return this.mRotationAngle;\n }", "public MutableImage rotateRight() {\n return rotate(90);\n }", "public void rotate()\r\n\t{\r\n\t\tdouble degree = Math.PI/2;\r\n\t\tdouble sin = Math.sin(degree);\r\n\r\n\t\tAffineTransform tx = new AffineTransform();\r\n\t\ttx.rotate(degree, this.bufferedImage.getWidth() / (double)2, this.bufferedImage.getHeight() / (double)2);\r\n\t\tAffineTransformOp op = new AffineTransformOp(tx, AffineTransformOp.TYPE_BILINEAR);\r\n\r\n\t\tRectangle rect = op.getBounds2D(this.bufferedImage).getBounds();\r\n\t\ttx.translate(sin * rect.getX(), -sin * rect.getY());\r\n\t\top = new AffineTransformOp(tx,AffineTransformOp.TYPE_BILINEAR);\r\n\t\tthis.bufferedImage = op.filter(this.bufferedImage, op.createCompatibleDestImage(this.bufferedImage, null) );\r\n\r\n\r\n\t\tthis.setBounds( getX(), getY(), this.bufferedImage.getWidth(), this.bufferedImage.getHeight() );\r\n\t\tthis.width = this.bufferedImage.getWidth();\r\n\t\tthis.height = this.bufferedImage.getHeight();\r\n\t\t\r\n\t}", "@Override\n\tpublic void rotate() {\n\t}", "public void zRotate() {\n\t\t\n\t}", "@Override\n public void rotate(double angle) {\n graphicsEnvironmentImpl.rotate(canvas, angle);\n }", "int getRotationDegrees() {\n return rotationDegrees;\n }", "public void rotate() {\n // amoeba rotate\n // Here i will use my rotation_x and rotation_y\n }", "public static double rotation()\r\n\t{\r\n\t\treturn -(mxp.getAngle()/45);\r\n\t}", "public void setRotation(int degree) {\n\trotation = degree;\n}", "public abstract void rotate();", "public AbstractJmodelAction getRotate() {\r\n \r\n \t\treturn actionRotate;\r\n \t}", "public boolean hasRotate() { return hasRotate; }", "public void rotateClockWise() {\r\n\r\n transpose();\r\n\r\n // swap columns\r\n for (int col = 0; col < pixels[0].length / 2; col++) {\r\n for (int row = 0; row < pixels.length; row++) {\r\n int tmp = pixels[row][col];\r\n pixels[row][col] = pixels[row][pixels[0].length - 1 - col];\r\n pixels[row][pixels[0].length - 1 - col] = tmp;\r\n }\r\n }\r\n\r\n this.pix2img();\r\n }", "public void rotate() {\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\ttmp_grid[i][j] = squares[i][j];\n\t\t\t// copy back rotated 90 degrees\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tsquares[j][i] = tmp_grid[i][3-j];\n \n //log rotation\n LogEvent(\"rotate\");\n\t\t}", "public int getRotation() {\n\treturn rotation;\n\t//return rotation;\n}", "public ImageIcon rotateImage(ImageIcon aicon){\n\t\tswitch(angle){\n\t\tcase 90: case -90: return rotateImage(aicon, angle);\n\t\tcase 180: return rotateImage(rotateImage(aicon, 90), 90);\n\t\tdefault: return aicon;\n\t\t}\n\t}", "public void setRotation(int rotation) {\r\n\t\tthis.rotation = rotation;\r\n\t}", "public void xRotate() {\n\t\t\n\t}", "public void calculateRotation() {\r\n float x = this.getX();\r\n float y = this.getY();\r\n\r\n float mouseX = ((float) Mouse.getX() - 960) / (400.0f / 26.0f);\r\n float mouseY = ((float) Mouse.getY() - 540) / (400.0f / 23.0f);\r\n\r\n float b = mouseX - x;\r\n float a = mouseY - y;\r\n\r\n rotationZ = (float) Math.toDegrees(Math.atan2(a, b)) + 90;\r\n\r\n forwardX = (float) Math.sin(Math.toRadians(rotationZ));\r\n forwardY = (float) -Math.cos(Math.toRadians(rotationZ));\r\n }", "public Transform getRotationTransformation() {\n Transform t = Transform.newXRotation(rotation.x);\n t = t.compose(Transform.newYRotation(rotation.y));\n t = t.compose(Transform.newZRotation(rotation.z));\n return t;\n }", "public void Rotation(int i) {\n mRender.Rotation(i);\n }", "public void rotate(Rotation rotation)\r\n\t{\r\n\t\tthis.currentDirection=this.currentDirection.rotate(rotation);\r\n\t}", "public static void rotateAcw(RasterImage inputImage, RasterImage outputImage)\n\t{\n\t\tassert inputImage != null && outputImage != null && outputImage.getSize() == inputImage.getSize();\n\t\t\n\t\t\n\t\tif (inputImage == outputImage)\n\t\t{\n\t\t\tinputImage = new RasterImage(inputImage);\n\t\t}\n\t\t\n\t\toutputImage.resize(inputImage.getHeight(), inputImage.getWidth());\n\t\t\n\t\tint newY;\n\t\t\n\t\tfor (int i = 0; i < inputImage.getHeight(); i++)\n\t\t{\n\t\t\tfor (int j = 0; j < inputImage.getWidth(); j++)\n\t\t\t{\n\t\t\t\tnewY = inputImage.getWidth() - j - 1;\n\t\t\t\toutputImage.setRgb(i, newY, inputImage.getRgb(j, i));\n\t\t\t}\n\t\t}\n\t}", "public static BufferedImage rotate90ToLeft(BufferedImage inputImage) {\n // The most of code is same as before\n int width = inputImage.getWidth();\n int height = inputImage.getHeight();\n BufferedImage returnImage = new BufferedImage(height, width,\n inputImage.getType());\n // We have to change the width and height because when you rotate the image\n // by 90 degree, the\n // width is height and height is width <img\n // src='http://forum.codecall.net/public/style_emoticons/<#EMO_DIR#>/smile.png'\n // class='bbc_emoticon' alt=':)' />\n\n for (int x = 0; x < width; x++) {\n for (int y = 0; y < height; y++) {\n returnImage.setRGB(y, width - x - 1, inputImage.getRGB(x, y));\n }\n }\n return returnImage;\n\n }", "public float getRotationAngle() {\n return mPolygonShapeSpec.getRotation();\n }", "public Bearing rotate(Rotation rotation) {\n switch (rotation.min()) {\n case L90:\n return this.leftFrom();\n case R90:\n return this.rightFrom();\n case L180:\n case R180:\n return this.reverse();\n }\n return this; // matches NONE\n }", "public Matrix getCurrentRotation() throws ManipulatorException;", "public static BufferedImage rotate90ToRight(BufferedImage inputImage) {\n int width = inputImage.getWidth();\n int height = inputImage.getHeight();\n BufferedImage returnImage = new BufferedImage(height, width,\n inputImage.getType());\n\n for (int x = 0; x < width; x++) {\n for (int y = 0; y < height; y++) {\n returnImage.setRGB(height - y - 1, x, inputImage.getRGB(x, y));\n }\n }\n return returnImage;\n }", "public void rotate(boolean clockwise) \n\t{\n\t\tcircular_shift(connections, clockwise);\n\t\torientation = next(orientation, clockwise);\n\t}", "public Matrix rotate90DegreeInPlace() {\n\t\tfor(int layer = 0; layer < this.getWidth() / 2; ++layer) {\n\t\t\tint first = layer;\n\t\t\tint last = this.getWidth() - 1 - layer;\n\t\t\t\n\t\t\tfor(int i = first; i < last; ++i) {\n\t\t\t\tint offset = i - first;\n\t\t\t\t\n\t\t\t\t//save top\n\t\t\t\tdouble top = this.getElement(first, i);\n\t\t\t\t\n\t\t\t\t// left -> top\n\t\t\t\tthis.setElement(first, i, this.getElement(last - offset, first));\n\t\t\t\t// bottom -> left\n\t\t\t\tthis.setElement(last - offset, first, this.getElement(last, last - offset));\n\t\t\t\t// right -> bottom\n\t\t\t\tthis.setElement(last, last - offset, this.getElement(i, last));\n\t\t\t\t// top -> right\n\t\t\t\tthis.setElement(i, last, top);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}", "@Override\n\tpublic Rotation3 GetRotation() {\n\t\treturn new Rotation3(0f);\n\t}", "public void rotate(int rotation) {\n rotateCO(rotation);\n rotateCP(rotation);\n rotateEO(rotation);\n rotateEP(rotation);\n }", "public @NotNull Image rotateCW()\n {\n if (this.data != null)\n {\n if (this.mipmaps > 1) Image.LOGGER.warning(\"Image manipulation only applied to base mipmap level\");\n \n Color.Buffer output = Color.malloc(this.format, this.width * this.height);\n \n long srcPtr = this.data.address();\n long dstPtr = output.address();\n \n for (int y = 0; y < this.height; y++)\n {\n for (int x = 0; x < this.width; x++)\n {\n long src = Integer.toUnsignedLong(y * this.width + x) * this.format.sizeof;\n long dst = Integer.toUnsignedLong(x * this.height + this.height - y - 1) * this.format.sizeof;\n \n MemoryUtil.memCopy(srcPtr + src, dstPtr + dst, this.format.sizeof);\n }\n }\n \n this.data.free();\n this.data = output;\n }\n return this;\n }", "public void calculateAngleAndRotate(){\n\t\tdouble cumarea = 0;\n\t\tdouble sina = 0;\n\t\tdouble cosa = 0;\n\t\tdouble area, angle;\n\t\tfor (int n = 0; n < rt.size();n++) {\n\t\t\tarea = rt.getValueAsDouble(rt.getColumnIndex(\"Area\"),n);\n\t\t\tangle = 2*rt.getValueAsDouble(rt.getColumnIndex(\"Angle\"),n);\n\t\t\tsina = sina + area*Math.sin(angle*Math.PI/180);\n\t\t\tcosa = cosa + area*Math.cos(angle*Math.PI/180);\n\t\t\tcumarea = cumarea+area;\n\t\t}\n\t\taverageangle = Math.abs(0.5*(180/Math.PI)*Math.atan2(sina/cumarea,cosa/cumarea)); // this is the area weighted average angle\n\t\t// rotate the data \n\t\tIJ.run(ActiveImage,\"Select All\",\"\");\n\t\tActiveImageConverter.convertToGray32();\n\t\tIJ.run(ActiveImage,\"Macro...\", \"code=[v= x*sin(PI/180*\"+averageangle+\")+y*cos(PI/180*\"+averageangle+\")]\");\n\t\treturn;\n\t}", "@Override\n \t\t\t\tpublic void doRotateZ() {\n \n \t\t\t\t}", "int getStartRotationDegree();", "public void rotate(){\n\t\t\n\t\tfor(Vertex v : vertices){\n\n\t\t\tMatrix m = ViewSettings.getRotationMatrix4().multiply(v);\n\n\t\t\tv.setX(m.getValue(0, 0));\n\t\t\tv.setY(m.getValue(1, 0));\n\t\t\tv.setZ(m.getValue(2, 0));\n\t\t\tv.setW(m.getValue(3, 0));\n\t\t}\n\t}", "public double getRotation1() {\n return rotation1;\n }", "public RotationComponent setRotation(float degrees) {\n\trotation = degrees;\n\n\treturn this;\n }", "protected void rotateImage(int degrees) {\n mCropImageView.rotateImage(degrees);\n }", "void rotate() {\n startAnimation(allSubCubes(), Axis.Y, Direction.CLOCKWISE);\n rotateCubeSwap();\n }", "public @NotNull Image rotateCCW()\n {\n if (this.data != null)\n {\n if (this.mipmaps > 1) Image.LOGGER.warning(\"Image manipulation only applied to base mipmap level\");\n \n Color.Buffer output = Color.malloc(this.format, this.width * this.height);\n \n long srcPtr = this.data.address();\n long dstPtr = output.address();\n \n for (int y = 0; y < this.height; y++)\n {\n for (int x = 0; x < this.width; x++)\n {\n long src = Integer.toUnsignedLong(y * this.width + this.width - x - 1) * this.format.sizeof;\n long dst = Integer.toUnsignedLong(x * this.height + y) * this.format.sizeof;\n \n MemoryUtil.memCopy(srcPtr + src, dstPtr + dst, this.format.sizeof);\n }\n }\n \n this.data.free();\n this.data = output;\n }\n return this;\n }", "public float getBaseRotation() {\n return this.baseRotation;\n }", "public double getRotation() {\n return Degrees.atan2(y, x);\n }", "public void rotateY90() {\n\t\tfor (int v = 0; v < vertexCount; v++) {\n\t\t\tint x_ = vertexX[v];\n\t\t\tvertexX[v] = vertexZ[v];\n\t\t\tvertexZ[v] = -x_;\n\t\t}\n\t}", "public double getRotation()\n\t{\n\t\tdouble determinant = this.basisDeterminant();\n\t\tTransform2D m = orthonormalized();\n\t\tif (determinant < 0) \n\t\t{\n\t\t\tm.scaleBasis(new Vector2(1, -1)); // convention to separate rotation and reflection for 2D is to absorb a flip along y into scaling.\n\t\t}\n\t\treturn Math.atan2(m.matrix[0].y, m.matrix[0].x);\n\t}", "void calculateRotationMatrix() {\n R[0][0] = (float) (Math.cos(angle[0]) * Math.cos(angle[1]));\n R[1][0] = (float) (Math.sin(angle[0]) * Math.cos(angle[1]));\n R[0][1] = (float) (Math.cos(angle[0]) * Math.sin(angle[1]) * Math.sin(angle[2]) - Math.sin(angle[0]) * Math.cos(angle[2]));\n R[1][1] = (float) (Math.sin(angle[0]) * Math.sin(angle[1]) * Math.sin(angle[2]) + Math.cos(angle[0]) * Math.cos(angle[2]));\n R[0][2] = (float) (Math.cos(angle[0]) * Math.sin(angle[1]) * Math.cos(angle[2]) + Math.sin(angle[0]) * Math.sin(angle[2]));\n R[1][2] = (float) (Math.sin(angle[0]) * Math.sin(angle[1]) * Math.cos(angle[2]) - Math.cos(angle[0]) * Math.sin(angle[2]));\n R[2][0] = (float) - Math.sin(angle[1]);\n R[2][1] = (float) (Math.cos(angle[1]) * Math.sin(angle[2]));\n R[2][2] = (float) (Math.cos(angle[1]) * Math.cos(angle[2]));\n }", "private void rotate(int direction){\n\t\t//Gdx.app.debug(TAG, \"rotating, this.x: \" + this.x + \", this.y: \" + this.y);\n\t\tif (direction == 1 || direction == -1){\n\t\t\tthis.orientation = (this.orientation + (direction*-1) + 4) % 4;\n\t\t\t//this.orientation = (this.orientation + direction) % 4;\n\t\t} else{\n\t\t\tthrow new RuntimeException(\"Tile invalid direction\");\n\t\t}\n\t}", "public void setRotation(double angle)\n\t{\n\t\tdouble cos = Math.cos(angle);\n\t\tdouble sin = Math.sin(angle);\n\t\tmatrix[0].x=cos;\n\t\tmatrix[0].y=sin;\n\t\tmatrix[1].x=-sin;\n\t\tmatrix[1].y=cos;\n\t}", "public void rotateImage(View view) {\n\n View img = findViewById(ID_PlacementMode_BrickPreview_ImageView);\n\n float rotation;\n\n if (view.getId() == R.id.ID_PlacementMode_RotateLeft_Button) {\n rotation = img.getRotation() - (float) 90.0;\n }\n else { // rotate right\n rotation = img.getRotation() + (float) 90.0;\n }\n\n // set rotation in positive range in order to use map_angle_to_blockrotation correctly (Bugfix #414)\n if (rotation < 0) {\n rotation = rotation + 360f;\n }\n\n // set rotation of visualized brick preview\n img.setRotation(rotation);\n\n BlockRotation block_rotation = map_angle_to_blockrotation.get(((int)rotation)%360);\n\n // set rotation in block object\n objBrickPreview.setRotation(block_rotation);\n\n }", "public void rotation(double degrees) {\r\n \tdegrees = checkDegrees(degrees);\r\n \tsetFacingDirection(degrees);\r\n \trotation = (degrees * flipValue) * Math.PI / 180;\r\n }", "public static Image rotate(Image img, double angle){\n\n\t\tif(!(img instanceof BufferedImage)){\n\t\t\tMainFrame.error(\"[Rotate]: Image is not a bufferedimage\");\n\t\t\treturn img;\n\t\t}\n\n\t\tdouble sin = Math.abs(Math.sin(Math.toRadians(angle)));\n\t\tdouble cos = Math.abs(Math.cos(Math.toRadians(angle)));\n\n\t\tint w = img.getWidth(null); \n\t\tint h = img.getHeight(null);\n\n\t\tint new_width = (int) Math.floor(w*cos + h*sin);\n\t\tint new_height = (int) Math.floor(h*cos + w*sin);\n\n\t\tBufferedImage buffered_img = new BufferedImage(new_width,new_height,BufferedImage.TYPE_INT_ARGB);\n\t\tGraphics2D g = buffered_img.createGraphics();\n\n\n\t\tg.translate((new_width-w)/2, (new_height-h)/2);\n\t\tg.rotate(Math.toRadians(angle), w/2, h/2);\n\t\tg.drawRenderedImage((BufferedImage)img, null);\n\t\tg.dispose();\n\n\t\treturn (Image)buffered_img;\n\t}", "public int getDeviceRotation();", "@Override\r\n\tpublic void rotar() {\n\r\n\t}", "public void displayRotated(float angleInDegrees) {\n pushMatrix();\n rotate(radians(angleInDegrees));\n shape(fullCar);\n popMatrix();\n }", "public void rotateShip(){\n if (this.orientation == false){\n this.orientation = true;\n }else\n orientation = false;\n \n return;\n }", "public int getRotation() {\n\t\treturn config & 0x3;\n\t}", "@Override\n\tfinal public void rotate(double angle, Axis axis)\n\t{\n\t\t//center.setDirection(angle);\n\t}", "Point rotate (double angle);", "public void rotate(double angle) {\t\t\n\t\t// precompute values\n\t\tVector t = new Vector(this.a14, this.a24, this.a34);\n\t\tif (t.length() > 0) t = t.norm();\n\t\t\n\t\tdouble x = t.x();\n\t\tdouble y = t.y();\n\t\tdouble z = t.z();\n\t\t\n\t\tdouble s = Math.sin(angle);\n\t\tdouble c = Math.cos(angle);\n\t\tdouble d = 1 - c;\n\t\t\n\t\t// precompute to avoid double computations\n\t\tdouble dxy = d*x*y;\n\t\tdouble dxz = d*x*z;\n\t\tdouble dyz = d*y*z;\n\t\tdouble xs = x*s;\n\t\tdouble ys = y*s;\n\t\tdouble zs = z*s;\n\t\t\n\t\t// update matrix\n\t\ta11 = d*x*x+c; a12 = dxy-zs; a13 = dxz+ys;\n\t\ta21 = dxy+zs; a22 = d*y*y+c; a23 = dyz-xs;\n\t\ta31 = dxz-ys; a32 = dyz+xs; a33 = d*z*z+c;\n\t}", "private void rotate() {\n byte tmp = topEdge;\n topEdge = leftEdge;\n leftEdge = botEdge;\n botEdge = rightEdge;\n rightEdge = tmp;\n tmp = reversedTopEdge;\n reversedTopEdge = reversedLeftEdge;\n reversedLeftEdge = reversedBotEdge;\n reversedBotEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n tmp = ltCorner;\n ltCorner = lbCorner;\n lbCorner = rbCorner;\n rbCorner = rtCorner;\n rtCorner = tmp;\n\n }", "void setRotationDegrees(int rotationDegrees) {\n int temp = rotationDegrees % 360;\n if (temp < 0) {\n temp = 360 + temp;\n }\n this.rotationDegrees = temp;\n }", "void rotateTurtle(int turtleIndex, double degrees);", "public void RotateActionPerformed(java.awt.event.ActionEvent evt) { \r\n degree = degree + 90;\r\n drawingPanel.setDegree(degree); \r\n }", "public static void rotateCw(RasterImage inputImage, RasterImage outputImage)\n\t{\n\t\tassert outputImage.getSize() == inputImage.getSize();\n\t\t\n\t\t\n\t\tif (inputImage == outputImage)\n\t\t{\n\t\t\tinputImage = new RasterImage(inputImage);\n\t\t}\n\t\t\n\t\toutputImage.resize(inputImage.getHeight(), inputImage.getWidth());\n\t\t\n\t\tint newX;\n\t\t\n\t\tfor (int i = 0; i < inputImage.getHeight(); i++)\n\t\t{\n\t\t\tnewX = inputImage.getHeight() - i - 1;\n\t\t\t\n\t\t\tfor (int j = 0; j < inputImage.getWidth(); j++)\n\t\t\t{\n\t\t\t\toutputImage.setRgb(newX, j, inputImage.getRgb(j, i));\n\t\t\t}\n\t\t}\n\t}", "public float getRotation() { return centroid_rot; }", "public void setRotateAngle(Cuboid modelRenderer, float x, float y, float z) {\n modelRenderer.rotationPointX = x;\n modelRenderer.rotationPointY = y;\n modelRenderer.rotationPointZ = z;\n }", "public void setRotationAngle(float mAngle) {\n mPolygonShapeSpec.setRotation(mAngle);\n rebuildPolygon();\n invalidate();\n }", "private void setRotation()\n\t{\n\t\tGL11.glPushMatrix();\n\t\tGL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);\n\t}", "public void rotate(double deg) {\n deg = deg % 360;\n// System.out.println(\"Stopni:\" + deg);\n double e = 0;\n double f = 0;\n\n// for(int i = 0; i < pixels.length; i++) {\n// for(int j = 0; j < pixels[i].length; j++) {\n// e += pixels[i][j].getX();\n// f += pixels[i][j].getY();\n// }\n// }\n //e = e / (pixels.length * 2);\n //f = f / (pixels[0].length * 2);\n e = pixels.length / 2;\n f = pixels[0].length / 2;\n System.out.println(e);\n System.out.println(f);\n\n// System.out.println(e + \":\" + f);\n Matrix affineTransform;\n Matrix translateMinus = Matrix.translateRotate(-e, -f);\n Matrix translatePlus = Matrix.translateRotate(e, f);\n Matrix movedTransform = Matrix.multiply(translateMinus, Matrix.rotate(deg));\n //movedTransform.display();\n affineTransform = Matrix.multiply(movedTransform, translatePlus);\n //affineTransform.display();\n\n for(int i = 0; i < pixels.length; i++) {\n for(int j = 0; j < pixels[i].length; j++) {\n double[][] posMatrix1 = {{pixels[i][j].getX()}, {pixels[i][j].getY()}, {1}};\n Matrix m1 = new Matrix(posMatrix1);\n Matrix result1;\n result1 = Matrix.multiply(Matrix.transpose(affineTransform.v), m1);\n\n pixels[i][j].setX(Math.round(result1.v[0][0]));\n pixels[i][j].setY(Math.round(result1.v[1][0]));\n }\n }\n\n\n }", "void setRotation (DMatrix3C R);", "@Override\n\tpublic void rotate() {\n\t\tSystem.out.println(\"Triangle is Rotateing in \"+ Rotatable.DIRECTION + \"Direction\");\n\t}", "double adjust_angle_rotation(double angle) {\n double temp;\n temp=angle;\n if(temp>90) {\n temp=180-temp;\n }\n return temp;\n }", "public void setRotation(double rotation)\r\n\t{\r\n\t\t// AutoCAD's angle of rotation is opposite to SVG so\r\n\t\t// we have to convert it.\r\n\t\t// AutoCAD's angles are in radians and turn in the opposite\r\n\t\t// direction to SVG's.\r\n\r\n\t\tRotation = svgUtility.trimDouble(-rotation % 360.0);\r\n\t}", "public void setRotation(){\n\t\t\tfb5.accStop();\n\t\t\twt.turning = true;\n\t\t\tif(state == BotMove.RIGHT_15){\n\t\t\t\tfb5.turnRightBy(6);\n\t\t\t\tangle = (angle+360-20)%360;\n\t\t\t}\n\t\t\telse if(state == BotMove.RIGHT_10){\n\t\t\t\tfb5.turnRightBy(3);\n\t\t\t\tangle = (angle+360-10)%360;\n\t\t\t}\n\t\t\telse if(state == BotMove.LEFT_5){\n\t\t\t\tfb5.turnLeftBy(2);\n\t\t\t\tangle = (angle+360+5)%360;\n\t\t\t}\n\t\t}", "public float getOrientation() {\n return this.orientation + this.baseRotation;\n }", "public ImageRotator(int receivedAngle){angle = receivedAngle;}", "public void rotateToAngle(double angle) {\n controlState = ControlState.POSITION;\n outputPosition = -angle * TurretConstants.TICKS_PER_DEGREE;\n }", "public TextRotation getRotationRelativity();", "public void rotate(double degrees) {\n\t\trotate(degrees, true, false);\n\t}", "public void setRotationModifer(int degrees) {\n\t\tthis.rotation = degrees;\n\t}", "int getSensorRotationDegrees();", "public StateChangeMdiIcon rotate90() {\n defaultIcon.rotate90();\n statesMap.values().forEach(MdiIcon::rotate90);\n return this;\n }" ]
[ "0.7172498", "0.688471", "0.6813597", "0.6731874", "0.67264086", "0.67160445", "0.67159194", "0.66994315", "0.6660618", "0.6650751", "0.66441804", "0.6626332", "0.66143614", "0.6602404", "0.6574927", "0.6540847", "0.6522839", "0.651529", "0.6503279", "0.64573807", "0.64296156", "0.64142734", "0.6410958", "0.6404663", "0.64040345", "0.6327157", "0.63039136", "0.6263618", "0.62360185", "0.6229237", "0.6228877", "0.62160295", "0.62032974", "0.6196053", "0.6172729", "0.6172458", "0.61694247", "0.61623037", "0.61507845", "0.6147395", "0.6134275", "0.61321974", "0.6130045", "0.6107113", "0.61053467", "0.6101859", "0.6094672", "0.60841614", "0.6076655", "0.606827", "0.60610414", "0.6061039", "0.6059337", "0.6056481", "0.60547304", "0.60534614", "0.60511166", "0.60456556", "0.6041902", "0.6038355", "0.6031646", "0.60304767", "0.60220146", "0.5993023", "0.59893185", "0.5984293", "0.5982298", "0.5976443", "0.59638333", "0.59558547", "0.5955002", "0.5953867", "0.59335446", "0.5929431", "0.59287095", "0.59260756", "0.5917488", "0.59149694", "0.5903076", "0.5880242", "0.5865795", "0.58549476", "0.5854252", "0.58364576", "0.58356845", "0.5832781", "0.583273", "0.58326983", "0.5825032", "0.58229125", "0.5822066", "0.58219063", "0.58161235", "0.58042854", "0.58009046", "0.580019", "0.57967377", "0.57911247", "0.5785407", "0.5784837" ]
0.6479147
19
Rotates this image clockwise by 90 degrees.
public MutableImage rotateRight() { return rotate(90); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void rotate90() {\n\n\t\tint[][] rotate = new int[this.frame[0].length][this.frame.length];\n\n\t\tfor (int x = 0; x < rotate[0].length; x++) {\n\t\t\tfor (int y = 0; y < rotate.length; y++) {\n\t\t\t\trotate[y][x] = this.frame[this.frame.length - x - 1][y];\n\t\t\t}\n\t\t} \n\n\t\tthis.frame = rotate;\n\n\t}", "void rotate();", "public Direction rotate90() {\n return values()[r90index];\n }", "public MutableImage rotateLeft() {\n return rotate(-90);\n }", "public void rotate(float angle);", "public Matrix rotate90Degree() {\n\t\tMatrix rotatedMatrix = new Matrix(this.getHeight(), this.getWidth());\n\t\tfor(int i = 0; i < this.getWidth(); i++) {\n\t\t\tfor(int j = 0; j < this.getHeight(); j++) {\n\t\t\t\trotatedMatrix.setElement(j, (this.getWidth() -1) - i, data[i][j]);\n\t\t\t}\n\t\t}\n\t\tthis.show();\n\t\trotatedMatrix.show();\n\t\treturn rotatedMatrix;\n\t}", "public void rotate()\r\n\t{\r\n\t\tdouble degree = Math.PI/2;\r\n\t\tdouble sin = Math.sin(degree);\r\n\r\n\t\tAffineTransform tx = new AffineTransform();\r\n\t\ttx.rotate(degree, this.bufferedImage.getWidth() / (double)2, this.bufferedImage.getHeight() / (double)2);\r\n\t\tAffineTransformOp op = new AffineTransformOp(tx, AffineTransformOp.TYPE_BILINEAR);\r\n\r\n\t\tRectangle rect = op.getBounds2D(this.bufferedImage).getBounds();\r\n\t\ttx.translate(sin * rect.getX(), -sin * rect.getY());\r\n\t\top = new AffineTransformOp(tx,AffineTransformOp.TYPE_BILINEAR);\r\n\t\tthis.bufferedImage = op.filter(this.bufferedImage, op.createCompatibleDestImage(this.bufferedImage, null) );\r\n\r\n\r\n\t\tthis.setBounds( getX(), getY(), this.bufferedImage.getWidth(), this.bufferedImage.getHeight() );\r\n\t\tthis.width = this.bufferedImage.getWidth();\r\n\t\tthis.height = this.bufferedImage.getHeight();\r\n\t\t\r\n\t}", "public MutableImage rotate(double degrees) {\n return apply(t -> {\n var w = image.getWidth();\n var h = image.getHeight();\n var rads = Math.toRadians(degrees);\n var sin = Math.abs(Math.sin(rads));\n var cos = Math.abs(Math.cos(rads));\n var newWidth = (int) Math.floor(w * cos + h * sin);\n var newHeight = (int) Math.floor(h * cos + w * sin);\n t.translate((newWidth - w) / 2d, (newHeight - h) / 2d);\n var x = w / 2;\n var y = h / 2;\n t.rotate(rads, x, y);\n });\n }", "public void rotateClockWise() {\r\n\r\n transpose();\r\n\r\n // swap columns\r\n for (int col = 0; col < pixels[0].length / 2; col++) {\r\n for (int row = 0; row < pixels.length; row++) {\r\n int tmp = pixels[row][col];\r\n pixels[row][col] = pixels[row][pixels[0].length - 1 - col];\r\n pixels[row][pixels[0].length - 1 - col] = tmp;\r\n }\r\n }\r\n\r\n this.pix2img();\r\n }", "public void rotate(boolean clockwise) \n\t{\n\t\tcircular_shift(connections, clockwise);\n\t\torientation = next(orientation, clockwise);\n\t}", "public native MagickImage rotateImage(double degrees)\n\t\t\tthrows MagickException;", "@Override\r\n\tpublic void rotate() {\n\t\t\r\n\t}", "public void zRotate() {\n\t\t\n\t}", "public @NotNull Image rotateCW()\n {\n if (this.data != null)\n {\n if (this.mipmaps > 1) Image.LOGGER.warning(\"Image manipulation only applied to base mipmap level\");\n \n Color.Buffer output = Color.malloc(this.format, this.width * this.height);\n \n long srcPtr = this.data.address();\n long dstPtr = output.address();\n \n for (int y = 0; y < this.height; y++)\n {\n for (int x = 0; x < this.width; x++)\n {\n long src = Integer.toUnsignedLong(y * this.width + x) * this.format.sizeof;\n long dst = Integer.toUnsignedLong(x * this.height + this.height - y - 1) * this.format.sizeof;\n \n MemoryUtil.memCopy(srcPtr + src, dstPtr + dst, this.format.sizeof);\n }\n }\n \n this.data.free();\n this.data = output;\n }\n return this;\n }", "public abstract void rotate();", "public static void rotateAcw(RasterImage inputImage, RasterImage outputImage)\n\t{\n\t\tassert inputImage != null && outputImage != null && outputImage.getSize() == inputImage.getSize();\n\t\t\n\t\t\n\t\tif (inputImage == outputImage)\n\t\t{\n\t\t\tinputImage = new RasterImage(inputImage);\n\t\t}\n\t\t\n\t\toutputImage.resize(inputImage.getHeight(), inputImage.getWidth());\n\t\t\n\t\tint newY;\n\t\t\n\t\tfor (int i = 0; i < inputImage.getHeight(); i++)\n\t\t{\n\t\t\tfor (int j = 0; j < inputImage.getWidth(); j++)\n\t\t\t{\n\t\t\t\tnewY = inputImage.getWidth() - j - 1;\n\t\t\t\toutputImage.setRgb(i, newY, inputImage.getRgb(j, i));\n\t\t\t}\n\t\t}\n\t}", "public void rotate() {\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\ttmp_grid[i][j] = squares[i][j];\n\t\t\t// copy back rotated 90 degrees\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tsquares[j][i] = tmp_grid[i][3-j];\n \n //log rotation\n LogEvent(\"rotate\");\n\t\t}", "public double getRotation();", "public Matrix rotate90DegreeInPlace() {\n\t\tfor(int layer = 0; layer < this.getWidth() / 2; ++layer) {\n\t\t\tint first = layer;\n\t\t\tint last = this.getWidth() - 1 - layer;\n\t\t\t\n\t\t\tfor(int i = first; i < last; ++i) {\n\t\t\t\tint offset = i - first;\n\t\t\t\t\n\t\t\t\t//save top\n\t\t\t\tdouble top = this.getElement(first, i);\n\t\t\t\t\n\t\t\t\t// left -> top\n\t\t\t\tthis.setElement(first, i, this.getElement(last - offset, first));\n\t\t\t\t// bottom -> left\n\t\t\t\tthis.setElement(last - offset, first, this.getElement(last, last - offset));\n\t\t\t\t// right -> bottom\n\t\t\t\tthis.setElement(last, last - offset, this.getElement(i, last));\n\t\t\t\t// top -> right\n\t\t\t\tthis.setElement(i, last, top);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}", "public void rotateY90() {\n\t\tfor (int v = 0; v < vertexCount; v++) {\n\t\t\tint x_ = vertexX[v];\n\t\t\tvertexX[v] = vertexZ[v];\n\t\t\tvertexZ[v] = -x_;\n\t\t}\n\t}", "public static BufferedImage rotate90ToRight(BufferedImage inputImage) {\n int width = inputImage.getWidth();\n int height = inputImage.getHeight();\n BufferedImage returnImage = new BufferedImage(height, width,\n inputImage.getType());\n\n for (int x = 0; x < width; x++) {\n for (int y = 0; y < height; y++) {\n returnImage.setRGB(height - y - 1, x, inputImage.getRGB(x, y));\n }\n }\n return returnImage;\n }", "public static BufferedImage rotate90ToLeft(BufferedImage inputImage) {\n // The most of code is same as before\n int width = inputImage.getWidth();\n int height = inputImage.getHeight();\n BufferedImage returnImage = new BufferedImage(height, width,\n inputImage.getType());\n // We have to change the width and height because when you rotate the image\n // by 90 degree, the\n // width is height and height is width <img\n // src='http://forum.codecall.net/public/style_emoticons/<#EMO_DIR#>/smile.png'\n // class='bbc_emoticon' alt=':)' />\n\n for (int x = 0; x < width; x++) {\n for (int y = 0; y < height; y++) {\n returnImage.setRGB(y, width - x - 1, inputImage.getRGB(x, y));\n }\n }\n return returnImage;\n\n }", "@Override\n\tpublic void rotate() {\n\t}", "public static void rotateCw(RasterImage inputImage, RasterImage outputImage)\n\t{\n\t\tassert outputImage.getSize() == inputImage.getSize();\n\t\t\n\t\t\n\t\tif (inputImage == outputImage)\n\t\t{\n\t\t\tinputImage = new RasterImage(inputImage);\n\t\t}\n\t\t\n\t\toutputImage.resize(inputImage.getHeight(), inputImage.getWidth());\n\t\t\n\t\tint newX;\n\t\t\n\t\tfor (int i = 0; i < inputImage.getHeight(); i++)\n\t\t{\n\t\t\tnewX = inputImage.getHeight() - i - 1;\n\t\t\t\n\t\t\tfor (int j = 0; j < inputImage.getWidth(); j++)\n\t\t\t{\n\t\t\t\toutputImage.setRgb(newX, j, inputImage.getRgb(j, i));\n\t\t\t}\n\t\t}\n\t}", "public void xRotate() {\n\t\t\n\t}", "public static BufferedImage rotateCw( BufferedImage img ) {\n int width = img.getWidth();\n int height = img.getHeight();\n BufferedImage newImage = new BufferedImage( height, width, img.getType());\n\n for( int i=0 ; i < width ; i++ )\n for( int j=0 ; j < height ; j++ )\n newImage.setRGB( height-1-j, i, img.getRGB(i,j) );\n \n return newImage;\n }", "@Override\n \t\t\t\tpublic void doRotateZ() {\n \n \t\t\t\t}", "public @NotNull Image rotateCCW()\n {\n if (this.data != null)\n {\n if (this.mipmaps > 1) Image.LOGGER.warning(\"Image manipulation only applied to base mipmap level\");\n \n Color.Buffer output = Color.malloc(this.format, this.width * this.height);\n \n long srcPtr = this.data.address();\n long dstPtr = output.address();\n \n for (int y = 0; y < this.height; y++)\n {\n for (int x = 0; x < this.width; x++)\n {\n long src = Integer.toUnsignedLong(y * this.width + this.width - x - 1) * this.format.sizeof;\n long dst = Integer.toUnsignedLong(x * this.height + y) * this.format.sizeof;\n \n MemoryUtil.memCopy(srcPtr + src, dstPtr + dst, this.format.sizeof);\n }\n }\n \n this.data.free();\n this.data = output;\n }\n return this;\n }", "@Override\n public void rotate(double angle) {\n graphicsEnvironmentImpl.rotate(canvas, angle);\n }", "@Override\n\tprotected void onDraw(Canvas canvas) {\n\t\tint hieght=this.getHeight();\n\t\tint width=this.getWidth();\n\t\tcanvas.rotate(direction, width/2,hieght/2);\n\t\t\n\t\tsuper.onDraw(canvas);\n\t\t\n\t\t\n\t}", "public void rotate() {\n // amoeba rotate\n // Here i will use my rotation_x and rotation_y\n }", "private void rotate() {\n byte tmp = topEdge;\n topEdge = leftEdge;\n leftEdge = botEdge;\n botEdge = rightEdge;\n rightEdge = tmp;\n tmp = reversedTopEdge;\n reversedTopEdge = reversedLeftEdge;\n reversedLeftEdge = reversedBotEdge;\n reversedBotEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n tmp = ltCorner;\n ltCorner = lbCorner;\n lbCorner = rbCorner;\n rbCorner = rtCorner;\n rtCorner = tmp;\n\n }", "private void rotate(int direction){\n\t\t//Gdx.app.debug(TAG, \"rotating, this.x: \" + this.x + \", this.y: \" + this.y);\n\t\tif (direction == 1 || direction == -1){\n\t\t\tthis.orientation = (this.orientation + (direction*-1) + 4) % 4;\n\t\t\t//this.orientation = (this.orientation + direction) % 4;\n\t\t} else{\n\t\t\tthrow new RuntimeException(\"Tile invalid direction\");\n\t\t}\n\t}", "public void RotateActionPerformed(java.awt.event.ActionEvent evt) { \r\n degree = degree + 90;\r\n drawingPanel.setDegree(degree); \r\n }", "@Override\r\n\tpublic void rotateLeft() {\n\t\tsetDirection((this.getDirection() + 3) % 4);\r\n\t}", "public StateChangeMdiIcon rotate90() {\n defaultIcon.rotate90();\n statesMap.values().forEach(MdiIcon::rotate90);\n return this;\n }", "public ImageIcon rotateImage(ImageIcon aicon){\n\t\tswitch(angle){\n\t\tcase 90: case -90: return rotateImage(aicon, angle);\n\t\tcase 180: return rotateImage(rotateImage(aicon, 90), 90);\n\t\tdefault: return aicon;\n\t\t}\n\t}", "void rotate() {\n startAnimation(allSubCubes(), Axis.Y, Direction.CLOCKWISE);\n rotateCubeSwap();\n }", "@Override\n \t\t\t\tpublic void doRotateX() {\n \n \t\t\t\t}", "public void calculateAngleAndRotate(){\n\t\tdouble cumarea = 0;\n\t\tdouble sina = 0;\n\t\tdouble cosa = 0;\n\t\tdouble area, angle;\n\t\tfor (int n = 0; n < rt.size();n++) {\n\t\t\tarea = rt.getValueAsDouble(rt.getColumnIndex(\"Area\"),n);\n\t\t\tangle = 2*rt.getValueAsDouble(rt.getColumnIndex(\"Angle\"),n);\n\t\t\tsina = sina + area*Math.sin(angle*Math.PI/180);\n\t\t\tcosa = cosa + area*Math.cos(angle*Math.PI/180);\n\t\t\tcumarea = cumarea+area;\n\t\t}\n\t\taverageangle = Math.abs(0.5*(180/Math.PI)*Math.atan2(sina/cumarea,cosa/cumarea)); // this is the area weighted average angle\n\t\t// rotate the data \n\t\tIJ.run(ActiveImage,\"Select All\",\"\");\n\t\tActiveImageConverter.convertToGray32();\n\t\tIJ.run(ActiveImage,\"Macro...\", \"code=[v= x*sin(PI/180*\"+averageangle+\")+y*cos(PI/180*\"+averageangle+\")]\");\n\t\treturn;\n\t}", "@Override\r\n\tpublic void rotateRight() {\n\t\tsetDirection((this.getDirection() + 1) % 4);\r\n\t}", "void rotate () {\n final int rows = currentPiece.height;\n final int columns = currentPiece.width;\n int[][] rotated = new int[columns][rows];\n\n for (int i = 0; i < rows; i++)\n for (int j = 0; j < columns; j++)\n rotated[j][i] = currentPiece.blocks[i][columns - 1 - j];\n\n Piece rotatedPiece = new Piece(currentPiece.color, rotated);\n int kicks[][] = {\n {0, 0},\n {0, 1},\n {0, -1},\n //{0, -2},\n //{0, 2},\n {1, 0},\n //{-1, 0},\n {1, 1},\n //{-1, 1},\n {1, -1},\n //{-1, -1},\n };\n for (int kick[] : kicks) {\n if (canMove(currentRow + kick[0], currentColumn + kick[1], rotatedPiece)) {\n //System.out.println(\"Kicking \" + kick[0] + \", \" + kick[1]);\n currentPiece = rotatedPiece;\n currentRow += kick[0];\n currentColumn += kick[1];\n updateView();\n break;\n }\n }\n }", "public Direction rotate90(Node node) {\n node.setRotate(values()[r90index].getDegree());\n return values()[r90index];\n }", "public abstract void rotateLeft();", "Point rotate (double angle);", "public void rotateImage(View view) {\n\n View img = findViewById(ID_PlacementMode_BrickPreview_ImageView);\n\n float rotation;\n\n if (view.getId() == R.id.ID_PlacementMode_RotateLeft_Button) {\n rotation = img.getRotation() - (float) 90.0;\n }\n else { // rotate right\n rotation = img.getRotation() + (float) 90.0;\n }\n\n // set rotation in positive range in order to use map_angle_to_blockrotation correctly (Bugfix #414)\n if (rotation < 0) {\n rotation = rotation + 360f;\n }\n\n // set rotation of visualized brick preview\n img.setRotation(rotation);\n\n BlockRotation block_rotation = map_angle_to_blockrotation.get(((int)rotation)%360);\n\n // set rotation in block object\n objBrickPreview.setRotation(block_rotation);\n\n }", "public void Rotation(int i) {\n mRender.Rotation(i);\n }", "@Override\r\n\tpublic void rotar() {\n\r\n\t}", "@Override\n\tfinal public void rotate(double angle, Axis axis)\n\t{\n\t\t//center.setDirection(angle);\n\t}", "public static Image rotate(Image img, double angle){\n\n\t\tif(!(img instanceof BufferedImage)){\n\t\t\tMainFrame.error(\"[Rotate]: Image is not a bufferedimage\");\n\t\t\treturn img;\n\t\t}\n\n\t\tdouble sin = Math.abs(Math.sin(Math.toRadians(angle)));\n\t\tdouble cos = Math.abs(Math.cos(Math.toRadians(angle)));\n\n\t\tint w = img.getWidth(null); \n\t\tint h = img.getHeight(null);\n\n\t\tint new_width = (int) Math.floor(w*cos + h*sin);\n\t\tint new_height = (int) Math.floor(h*cos + w*sin);\n\n\t\tBufferedImage buffered_img = new BufferedImage(new_width,new_height,BufferedImage.TYPE_INT_ARGB);\n\t\tGraphics2D g = buffered_img.createGraphics();\n\n\n\t\tg.translate((new_width-w)/2, (new_height-h)/2);\n\t\tg.rotate(Math.toRadians(angle), w/2, h/2);\n\t\tg.drawRenderedImage((BufferedImage)img, null);\n\t\tg.dispose();\n\n\t\treturn (Image)buffered_img;\n\t}", "@Override\r\n\tpublic void rotateLeft() {\n\t\tfinal int THETA = 10;\r\n\t\tint dir = this.getDirection();\r\n\t\tthis.setDirection(dir - THETA);\r\n\t\t\r\n\t}", "public void degrees() throws InterruptedException{\n\n\t\tif(keyPressed){\n\t\t\twhile(deg < 90){\n\t\t\t\tdeg += 15;\n\t\t\t\tSystem.out.println(\"Rotating UP \" + opcode);\n\t\t\t}\n\t\t}\n\t\telse if(!keyPressed){\n\t\t\twhile(deg > 0){\n\t\t\t\tdeg -= 15;\n\t\t\t\tSystem.out.println(\"Rotating Down \" + opcode);\n\t\t\t}\n\t\t}\n\t}", "static PT RotateCCW90(PT p) {\r\n\t\treturn new PT(-p.y, p.x);\r\n\t}", "public ImageRotator(int receivedAngle){angle = receivedAngle;}", "public void rotateShip(){\n if (this.orientation == false){\n this.orientation = true;\n }else\n orientation = false;\n \n return;\n }", "@Override\n\tpublic void rotateLeft(int degrees) {\n\t\t\n\t}", "public void rotateCCW(){\n rotState = (rotState + 3) % 4;\n for (int i = 0; i < tiles.length; ++i){\n tiles[i] = new Point(tiles[i].y , -tiles[i].x);\n }\n }", "@Override\n\tpublic void rotateRight(int degrees) {\n\t\t\n\t}", "void rotatePolygon() {\n\t\tfor (int i = 0; i < amount; i++)\n\t\t\tpoint[i].rotate();\n\t}", "@Override\n \t\t\t\tpublic void doRotateY() {\n \n \t\t\t\t}", "public AbstractJmodelAction getRotate() {\r\n \r\n \t\treturn actionRotate;\r\n \t}", "public void rotate(double deg) {\n deg = deg % 360;\n// System.out.println(\"Stopni:\" + deg);\n double e = 0;\n double f = 0;\n\n// for(int i = 0; i < pixels.length; i++) {\n// for(int j = 0; j < pixels[i].length; j++) {\n// e += pixels[i][j].getX();\n// f += pixels[i][j].getY();\n// }\n// }\n //e = e / (pixels.length * 2);\n //f = f / (pixels[0].length * 2);\n e = pixels.length / 2;\n f = pixels[0].length / 2;\n System.out.println(e);\n System.out.println(f);\n\n// System.out.println(e + \":\" + f);\n Matrix affineTransform;\n Matrix translateMinus = Matrix.translateRotate(-e, -f);\n Matrix translatePlus = Matrix.translateRotate(e, f);\n Matrix movedTransform = Matrix.multiply(translateMinus, Matrix.rotate(deg));\n //movedTransform.display();\n affineTransform = Matrix.multiply(movedTransform, translatePlus);\n //affineTransform.display();\n\n for(int i = 0; i < pixels.length; i++) {\n for(int j = 0; j < pixels[i].length; j++) {\n double[][] posMatrix1 = {{pixels[i][j].getX()}, {pixels[i][j].getY()}, {1}};\n Matrix m1 = new Matrix(posMatrix1);\n Matrix result1;\n result1 = Matrix.multiply(Matrix.transpose(affineTransform.v), m1);\n\n pixels[i][j].setX(Math.round(result1.v[0][0]));\n pixels[i][j].setY(Math.round(result1.v[1][0]));\n }\n }\n\n\n }", "@Override\r\n\tpublic void rotateRight() {\n\t\tfinal int THETA = 10;\r\n\t\tint dir = this.getDirection();\r\n\t\tthis.setDirection(dir + THETA);\r\n\t\t\r\n\t}", "void rotateTurtle(int turtleIndex, double degrees);", "public static double rotation()\r\n\t{\r\n\t\treturn -(mxp.getAngle()/45);\r\n\t}", "public void rotate() {\n\t\tclearPiece();\n\t\trotateFirstBlock();\n\t\trotateSecondBlock();\n\t\trotateFourthBlock();\n\t\tsetPiece();\n\t\trepaint();\n\t}", "public static BufferedImage rotateCW (BufferedImage bi)\n {\n imageList.add(deepCopy(bi)); // add the image to the undo list\n int xSize = bi.getWidth(); \n int ySize = bi.getHeight();\n\n BufferedImage newBi = new BufferedImage (ySize, xSize, 1); // switch the height and width of the new image\n for (int x = 0; x < xSize; x++)\n {\n for (int y = 0; y < ySize; y++)\n {\n int rgb = bi.getRGB(x,y); \n newBi.setRGB(ySize-y-1,x,rgb); // rotates the image\n }\n }\n\n redoList.add(deepCopy(newBi)); // add the image to the redo list\n return newBi; // return the new rotated image\n\n }", "protected void rotateImage(int degrees) {\n mCropImageView.rotateImage(degrees);\n }", "public Direction rotate180() {\n return values()[r180index];\n }", "private void spinCompass(ImageView imageView, float angle){\n //Check that the angle is valid\n if (angle >= 0 || angle <= 360)\n imageView.setRotation(-angle + 180); //Flip and rotate the image to correspond to the actual angle\n\t}", "public boolean hasRotate() { return hasRotate; }", "DMatrix3C getRotation();", "public void calculateRotation() {\r\n float x = this.getX();\r\n float y = this.getY();\r\n\r\n float mouseX = ((float) Mouse.getX() - 960) / (400.0f / 26.0f);\r\n float mouseY = ((float) Mouse.getY() - 540) / (400.0f / 23.0f);\r\n\r\n float b = mouseX - x;\r\n float a = mouseY - y;\r\n\r\n rotationZ = (float) Math.toDegrees(Math.atan2(a, b)) + 90;\r\n\r\n forwardX = (float) Math.sin(Math.toRadians(rotationZ));\r\n forwardY = (float) -Math.cos(Math.toRadians(rotationZ));\r\n }", "public float getRotation()\n {\n return rotation;\n }", "public abstract void rotateRight();", "public static BufferedImage rotateCCW (BufferedImage bi)\n {\n imageList.add(deepCopy(bi)); // add the image to the undo list\n int xSize = bi.getWidth();\n int ySize = bi.getHeight();\n\n BufferedImage newBi = new BufferedImage (ySize, xSize, 1); // switch the height and width of the new image\n for (int x = 0; x < xSize; x++)\n {\n for (int y = 0; y < ySize; y++)\n {\n int rgb = bi.getRGB(x,y); \n newBi.setRGB(y,xSize-x-1,rgb); // rotates the image\n }\n }\n redoList.add(deepCopy(newBi)); // add the image to the redo list\n return newBi; // return the new rotated image\n }", "Point rotate (double angle, Point result);", "public double getRotationAngleInRadians() {\n return Math.toRadians(rotationAngle);\n }", "public void rotate(){\n\t\t\n\t\tfor(Vertex v : vertices){\n\n\t\t\tMatrix m = ViewSettings.getRotationMatrix4().multiply(v);\n\n\t\t\tv.setX(m.getValue(0, 0));\n\t\t\tv.setY(m.getValue(1, 0));\n\t\t\tv.setZ(m.getValue(2, 0));\n\t\t\tv.setW(m.getValue(3, 0));\n\t\t}\n\t}", "public void rotation(double degrees) {\r\n \tdegrees = checkDegrees(degrees);\r\n \tsetFacingDirection(degrees);\r\n \trotation = (degrees * flipValue) * Math.PI / 180;\r\n }", "public void setRotation(int degree) {\n\trotation = degree;\n}", "public void rotate(double angle) {\t\t\n\t\t// precompute values\n\t\tVector t = new Vector(this.a14, this.a24, this.a34);\n\t\tif (t.length() > 0) t = t.norm();\n\t\t\n\t\tdouble x = t.x();\n\t\tdouble y = t.y();\n\t\tdouble z = t.z();\n\t\t\n\t\tdouble s = Math.sin(angle);\n\t\tdouble c = Math.cos(angle);\n\t\tdouble d = 1 - c;\n\t\t\n\t\t// precompute to avoid double computations\n\t\tdouble dxy = d*x*y;\n\t\tdouble dxz = d*x*z;\n\t\tdouble dyz = d*y*z;\n\t\tdouble xs = x*s;\n\t\tdouble ys = y*s;\n\t\tdouble zs = z*s;\n\t\t\n\t\t// update matrix\n\t\ta11 = d*x*x+c; a12 = dxy-zs; a13 = dxz+ys;\n\t\ta21 = dxy+zs; a22 = d*y*y+c; a23 = dyz-xs;\n\t\ta31 = dxz-ys; a32 = dyz+xs; a33 = d*z*z+c;\n\t}", "public float getRotation() {\n return this.rotation;\n }", "public Direction rotate270() {\n return values()[r270index];\n }", "public void rotate180 (View view){\n\n if (toyRobotIsActive) {\n\n robot.animate().rotationBy(180f).setDuration(50); //turn toy robot AROUND (180')\n\n rotateRight += 2; //counter to determine orientation\n System.out.println(\"rotateRight \" + rotateRight);\n System.out.println(\"rotateLeft + rotateRight = \"\n + orientation(rotateLeft, rotateRight));\n\n } else errorMessage(\"Please place toy robot\");\n }", "int getStartRotationDegree();", "double adjust_angle_rotation(double angle) {\n double temp;\n temp=angle;\n if(temp>90) {\n temp=180-temp;\n }\n return temp;\n }", "private void rotateSeaperch(ImageView imageView, float x, float y, float z){\n\t\timageView.setRotationX(x);\n\t\timageView.setRotation(y);\n\t\timageView.setRotationY(z);\n\t}", "public Piece rotate() {\n\t\tif (!isRotatable) {\n\t\t\treturn this;\n\t\t}\n\t\tint m = shape.length;\n\t\tint n = shape[0].length;\n\t\tint[][] newPiece = new int[n][m];\n\t\tfor (int r = 0; r < m; r++) {\n\t for (int c = 0; c < n; c++) {\n\t newPiece[c][m-1-r] = shape[r][c];\n\t }\n\t\t}\n\t\treturn new Piece(value, name, newPiece, isFlippable, isRotatable);\n\t}", "public void turn(int angle)\n {\n setRotation(getRotation() + angle);\n }", "public void turn(int angle)\n {\n setRotation(getRotation() + angle);\n }", "@Override\n\tprotected void onDraw(Canvas canvas) {\n\t\t\n\t\n\t\tint px = getMeasuredWidth();\n\t\tint py =this.getMeasuredHeight();\n\t\tcanvas.rotate(current_degrees, px/2, py/2);\n\t\tsuper.onDraw(canvas);\n\t}", "void turn(float degrees) {\n _rotVector.rotate(radians(degrees));\n }", "public StateChangeMdiIcon rotate315() {\n defaultIcon.rotate315();\n statesMap.values().forEach(MdiIcon::rotate315);\n return this;\n }", "public void rotate() {\n \t// Parameters\n \tdouble z0 = angle;\n \tint n = numberIterations;\n \t\n \t// Get color of target and current vector for explanation texts\n \tColor vectorColor = (Color) angleVectorProperties.get(AnimationPropertiesKeys.COLOR_PROPERTY);\n \tColor goalColor = (Color) trueAngleVectorProperties.get(AnimationPropertiesKeys.COLOR_PROPERTY);\n \t\n \t// Animation title + frame (rectangle around title)\n\t\tTextProperties titleProps = new TextProperties();\n\t\ttitleProps.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.BLACK);\n\t\ttitleProps.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(\"Monospaced\", \n\t\t\t Font.BOLD, 24));\n\t\t\n\t\tText title = lang.newText(new Coordinates(20, 30), \"CORDIC\", \"title\", null, titleProps);\n\t\tRect titleFrame = lang.newRect(new Offset(-5, -5, \"title\", AnimalScript.DIRECTION_NW), new Offset(5, 5, \"title\", AnimalScript.DIRECTION_SE), \"titleFrame\", null);\n\n\t\t// Animation background information\n\t\tInfoBox description = new InfoBox(lang, new Offset(0, 20, \"title\", AnimalScript.DIRECTION_SW), 20, \"Background Information\"); \n\t\tList<String> preText = Arrays.asList(\n\t\t\t\t\"CORDIC (COordinate Rotation DIgital Computer) is a numerical algorithm which efficiently calculates sine and cosine of\",\n\t\t\t\t\"a given angle in the circular rotation mode, which is shown here (other modes allow for different computations).\",\n\t\t\t\t\"It was designed to be written in hardware using only addition and shifts and has been used for example in calculators.\",\n\t\t\t\t\"However, today it is seldom used since memory is no longer an issue and one can store thousands of sine and cosine\",\n\t\t\t\t\"values and interpolate if the exact value is not available.\",\n\t\t\t\t\"In CORDIC sine and cosine of a given angle are calculated by reading their values from the vector (1, 0) that is rotated\",\n\t\t\t\t\"by the given angle. However, since only addition and shifts are available for the computation the rotation must be\",\n\t\t\t\t\"approximated through additions or subtractions of smaller, given angles that were calculated such that their tangent\",\n\t\t\t\t\"equals a power of 2 (and can thus be applied by shifting).\",\n\t\t\t\t\"Also, for convergence the given angle must be in the interval of [-1.7433, 1.7433] respectively [-99.88°, 99.88°]. Sine\",\n\t\t\t\t\"and cosine of values beyond this interval may be calculated using their symmetry properties.\");\n\t\tdescription.setText(preText);\n\t\t\n\t\tlang.nextStep(\"Introduction\");\n\n\t\t// More detailed animation background information\t\n\t\tdescription.hide();\n\t\tInfoBox formula = new InfoBox(lang, new Offset(0, 20, \"title\", AnimalScript.DIRECTION_SW), 20, \"Iteration Formula\"); \n\t\tList<String> formulaText = Arrays.asList(\n\t\t\t\t\" x[i+1] = x[i] - sigma[i]*2^(-i)*y[i]\",\n\t\t\t\t\" y[i+1] = sigma[i]*2^(-i)*x[i] + y[i]\",\n\t\t\t\t\" z[i+1] = z[i] - sigma[i]*alpha[i]\",\n\t\t\t\t\"with x[0] = 1*K, y[0] = 0 and z[0] = target angle, where\",\n\t\t\t\t\"- x and y are the cosine and sine values of the angle that the vector describes at the n-th step\",\n\t\t\t\t\"- z is the target angle minus all rotations of (i-1) steps (i.e. the difference of the current angle to the target angle)\",\n\t\t\t\t\"- sigma[i] is the direction of rotation (either -1 for clockwise or 1 for counterclockwise); it is derived from z[i] and\",\n\t\t\t\t\" multiplied with the current angle to adjust the rotation direction (which is a simple sign change in hardware)\",\n\t\t\t\t\"- alpha[i] is the current angle of rotation looked up from a table of precomputed angles with a tangent equal to a power\",\n\t\t\t\t\" of 2\",\n\t\t\t\t\"The tangent is used because instead of applying the common rotation matrix the pseudo rotation matrix\",\n\t\t\t\t\" 1 -tan(angle)\",\n\t\t\t\t\" tan(angle) 1\",\n\t\t\t\t\"is used. Multiplying the pseudo rotation matrix by a correction factor cos(angle) yields the common rotation matrix\",\n\t\t\t\t\" cos(angle) -sin(angle)\",\n\t\t\t\t\" sin(angle) cos(angle\",\n\t\t\t\t\"Since multiplication in hardware is costly and one is only interested in the sine and cosine values of x and y at step n\",\n\t\t\t\t\"of the iteration this correction factor is precomputed, looked up in a table and used for x[0], so the vector will have\",\n\t\t\t\t\"size 1 at the n-th step of the iteration. Thus\",\n\t\t\t\t\"- K = Product_i=0^n-1*cos(alpha[i])\");\n\t\tformula.setText(formulaText);\n\t\t\n\t\tlang.nextStep();\n\t\t\n\t\tformula.hide();\n\t\t\n\t\t// Function graph\n\t\tint offsetFromLeft = 20;\n\t\tint lengthOfXY = 150;\n\t\tPolyline y = lang.newPolyline(new Offset[]{(new Offset(offsetFromLeft+lengthOfXY, 55+lengthOfXY*2, \"title\", AnimalScript.DIRECTION_SW)), (new Offset(offsetFromLeft+lengthOfXY, 55, \"title\", AnimalScript.DIRECTION_SW))}, \"yArrow\", null, functionGraphProperties);\n\t\tPolyline x = lang.newPolyline(new Offset[]{(new Offset(-lengthOfXY, -lengthOfXY, \"yArrow\", AnimalScript.DIRECTION_SW)), (new Offset(lengthOfXY, -lengthOfXY, \"yArrow\", AnimalScript.DIRECTION_SW))}, \"xArrow\", null, functionGraphProperties);\n\t\t\n\t\t// Create legend (angles of vectors) with rectangle frame (hidden until vectors are created)\n\t\tTextProperties targetProperties = new TextProperties();\n\t\ttargetProperties.set(AnimationPropertiesKeys.COLOR_PROPERTY, goalColor);\n\t\ttargetProperties.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(\"Monospaced\", Font.BOLD, 12));\n\t\tTextProperties vectorLegendProperties = new TextProperties();\n\t\tvectorLegendProperties.set(AnimationPropertiesKeys.COLOR_PROPERTY, vectorColor);\n\t\tvectorLegendProperties.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(\"Monospaced\", Font.BOLD, 12));\n\t\t\n\t\tText legendVector = lang.newText(new Offset(50, -lengthOfXY, \"xArrow\", AnimalScript.DIRECTION_NE), \"Current Angle\", \"legendVector\", null, vectorLegendProperties);\n\t\tText legendTarget = lang.newText(new Offset(0, 10, \"legendVector\", AnimalScript.DIRECTION_SW), \"Target Angle = \" + Math.toDegrees(z0), \"legendTarget\", null, targetProperties);\n\t\t\n\t\tRect legendFrame = lang.newRect(new Offset(-15, -15, \"legendVector\", AnimalScript.DIRECTION_NW), new Offset(15, 15, \"legendTarget\", AnimalScript.DIRECTION_SE), \"legendFrame\", null, legendFrameProperties);\n\n\t\tlegendVector.hide();\n\t\tlegendTarget.hide();\n\t\tlegendFrame.hide();\n\t\t\n\t\t// Source code and frame placed to the right of the legend\n\t\tSourceCode code = lang.newSourceCode(new Offset(50, 100, \"legendFrame\", AnimalScript.DIRECTION_NE), \"code\", null, sourceCodeProperties);\n\t\tcode.addCodeLine(\"define cordic(angle, numberIterations) //rotation mode\", \"definition\", 0, null);\n\t\tcode.addCodeLine(\"x[0] = K // get K from table\", \"xdef\", 2, null);\n\t\tcode.addCodeLine(\"y[0] = 0\", \"ydef\", 2, null);\n\t\tcode.addCodeLine(\"for i=0 to numberIterations-1 do\", \"for\", 2, null);\n\t\tcode.addCodeLine(\"if z[i] > 0\", \"if\", 4, null);\n\t\tcode.addCodeLine(\"sigma_i = 1\", \"posSigma\", 6, null);\n\t\tcode.addCodeLine(\"else\", \"else\", 4, null);\n\t\tcode.addCodeLine(\"sigma_i = -1\", \"negSigma\", 6, null);\n\t\tcode.addCodeLine(\"x[i+1] = x[i] - sigma_i*2^(-i)*y[i]\", \"xi\", 4, null);\n\t\tcode.addCodeLine(\"y[i+1] = sigma_i*2^(-i)*x[i] + y[i]\", \"yi\", 4, null);\n\t\tcode.addCodeLine(\"z[i+1] = z[i] - sigma_i*alpha_i // get alpha_i from table\", \"zi\", 4, null);\n\t\tcode.addCodeLine(\"return (x[numberIterations], y[numberIterations])\", \"return\", 2, null);\n\t\t\n\t\tRect codeFrame = lang.newRect(new Offset(-5, -5, \"code\", AnimalScript.DIRECTION_NW), new Offset(5, 5, \"code\", AnimalScript.DIRECTION_SE), \"codeFrame\", null, codeFrameProperties);\n\t\t\n\t\tlang.nextStep();\n\t\t\n\t\tcode.highlight(0);\n\t\t\n\t\t// Target vector\n\t\tPolyline goal = lang.newPolyline(new Offset[]{(new Offset(-lengthOfXY, 0, \"xArrow\", AnimalScript.DIRECTION_NE)), (new Offset(0, 0, \"xArrow\", AnimalScript.DIRECTION_NE))}, \"goalVector\", null, trueAngleVectorProperties);\n\t\tgoal.rotate(new Offset(-lengthOfXY, 0, \"xArrow\", AnimalScript.DIRECTION_NE), (int)Math.toDegrees(z0), null, null);\n\t\t\n\t\t// Show legend\n\t\tlegendVector.show();\n\t\tlegendTarget.show();\n\t\tlegendFrame.show();\n\t\t\n\t\t// Create number counter of iterations\n\t\tText nText = lang.newText(new Offset(0, 10, \"legendFrame\", AnimalScript.DIRECTION_SW), \"Iteration = 0\", \"nText\", null);\n\t\tnText.hide();\n\t\t// Create display text for z_i\n\t\tText ziText = lang.newText(new Offset(0, 8, \"nText\", AnimalScript.DIRECTION_SW), \"z_0 = \" + z0, \"ziText\", null);\n\t\tziText.hide();\n\t\t\n\t\tlang.nextStep(\"Initialization\");\n\t\t\n\t\tcode.unhighlight(0);\n\t\t\n\t\t// Call algorithm for CORDIC circular rotation and get the result for x[n] and y[n]\n\t\tdouble result[] = algorithmRotation(z0, n, lengthOfXY, code, legendVector, nText, ziText);\n\t\t\n\t\tcode.highlight(11);\n\n\t\t// Show marker for final sine and cosine values\n\t\tint xOffset = (int)(result[0]*lengthOfXY+lengthOfXY);\n\t\tint yOffset = (int)(result[1]*lengthOfXY+lengthOfXY);\n\t\tPolyline sin = lang.newPolyline(new Offset[]{(new Offset(6, -yOffset, \"yArrow\", AnimalScript.DIRECTION_SW)), (new Offset(-6, -yOffset, \"yArrow\", AnimalScript.DIRECTION_SW))}, \"sine\", null);\n\t\tPolyline cos = lang.newPolyline(new Offset[]{(new Offset(xOffset, 6, \"xArrow\", AnimalScript.DIRECTION_NW)), (new Offset(xOffset, -6, \"xArrow\", AnimalScript.DIRECTION_NW))}, \"cosine\", null);\n\t\t\n\t\t// Show final values of CORDIC and values of target angle\n\t\tText sinText = lang.newText(new Offset(-50, -35, \"yArrow\", AnimalScript.DIRECTION_N), \"sine = \" + result[1], \"sineText\", null, vectorLegendProperties);\n\t\tText cosText = lang.newText(new Offset(0, 0, \"xArrow\", AnimalScript.DIRECTION_SE), \"cosine = \" + result[0], \"cosineText\", null, vectorLegendProperties);\n\t\t\n\t\tText trueSinText = lang.newText(new Offset(0, 5, \"sineText\", AnimalScript.DIRECTION_SW), \"sine = \" + Math.sin(z0), \"sineText\", null, targetProperties);\n\t\tText trueCosText = lang.newText(new Offset(0, 5, \"cosineText\", AnimalScript.DIRECTION_SW), \"cosine = \" + Math.cos(z0), \"cosineText\", null, targetProperties);\n\t\t\n\t\tnText.hide();\n\t\tziText.hide();\n\t\t\n\t\tlang.nextStep(\"Leave Algorithm\");\n\t\t\n\t\t// HideAllPrimitivesExcept does not seem to work with\n\t\t// lang.hideAllPrimitivesExcept(Arrays.asList(title, titleFrame));\n\t\tlang.hideAllPrimitives();\n\t\t\n\t\ttitle.show();\n\t\ttitleFrame.show();\n\t\t\n\t\t// Final remark\n\t\tInfoBox outlook = new InfoBox(lang, new Offset(0, 20, \"title\", AnimalScript.DIRECTION_SW), 20, \"Final Remark\"); \n\t\tList<String> postText = Arrays.asList(\n\t\t\t\t\"This animation displayed the so called circular rotation mode of CORDIC for calculating sine and cosine of a given angle.\",\n\t\t\t\t\"The circular mode of CORDIC includes another so called vector mode which is the reverse of the rotation mode and provides\",\n\t\t\t\t\"the absolute of a vector and its angle. The changes necessary to apply this mode is to set z[0] = 0 and let the user\",\n\t\t\t\t\"define x[0] and y[0] (though the absolute value x[n] must be divided by K to obtain the real absolute value). Also, sigma[i]\",\n\t\t\t\t\"is evaluated using y[i-1] instead of z[i-1] (the basic idea is to try to rotate until y is zero instead of until the\",\n\t\t\t\t\"difference between the target and current angle is zero).\",\n\t\t\t\t\"Beyond that, even more modes exist which calculate for example the hyperbolical functions. These modes require different\",\n\t\t\t\t\"values for the variables than the circular mode and an additional one to generalize the algorithm.\");\n\t\toutlook.setText(postText);\n\t\t\n\t\tlang.nextStep(\"Final Remark\");\n\t}", "public void displayRotated(float angleInDegrees) {\n pushMatrix();\n rotate(radians(angleInDegrees));\n shape(fullCar);\n popMatrix();\n }", "@Override\n\tpublic void rotate() {\n\t\tSystem.out.println(\"Triangle is Rotateing in \"+ Rotatable.DIRECTION + \"Direction\");\n\t}", "public void rotateLeft() {\n\t\tthis.direction = this.direction.rotateLeft();\n\t}", "public void rotate(double degrees) {\n\t\trotate(degrees, true, false);\n\t}", "public void rotate(float val){\n\t\trot = val % 360;\n\t\tif(w>0){\n\t\t\tinvalidate();\t\n\t\t}\n\t\t\n\t\t\n\t}" ]
[ "0.6944046", "0.678056", "0.67572004", "0.6710405", "0.6619083", "0.6602006", "0.6584758", "0.65425074", "0.6482874", "0.6482359", "0.64265704", "0.6373551", "0.63533896", "0.6344648", "0.6333107", "0.6310863", "0.6302866", "0.6292422", "0.6253304", "0.625165", "0.62457037", "0.62323433", "0.6189801", "0.6160289", "0.61419505", "0.61400425", "0.6102253", "0.6076069", "0.60504764", "0.604074", "0.6035926", "0.6034036", "0.60039973", "0.5964349", "0.59438926", "0.59438473", "0.59424114", "0.5917806", "0.59041077", "0.59032786", "0.58963656", "0.58605224", "0.58271784", "0.5824376", "0.58221906", "0.5804921", "0.5802698", "0.5797006", "0.5786786", "0.57856864", "0.5775905", "0.57742214", "0.5770862", "0.57660353", "0.57324", "0.5721071", "0.5717495", "0.5713112", "0.57118046", "0.5705266", "0.56981045", "0.56916237", "0.5686322", "0.567883", "0.5662404", "0.56604755", "0.5653241", "0.5639966", "0.5631626", "0.561934", "0.5616801", "0.5604188", "0.5601606", "0.55986065", "0.55969185", "0.55949044", "0.5583029", "0.5568276", "0.5567819", "0.55587286", "0.55573475", "0.5554134", "0.55521905", "0.5547307", "0.55313504", "0.5531014", "0.553093", "0.5499905", "0.54959", "0.54931176", "0.54931176", "0.54869574", "0.548664", "0.54860294", "0.54768145", "0.5475242", "0.54631895", "0.5460048", "0.5449656", "0.54274464" ]
0.65210754
8
Rotates this image clockwise by the specified degrees.
public MutableImage rotate(double degrees) { return apply(t -> { var w = image.getWidth(); var h = image.getHeight(); var rads = Math.toRadians(degrees); var sin = Math.abs(Math.sin(rads)); var cos = Math.abs(Math.cos(rads)); var newWidth = (int) Math.floor(w * cos + h * sin); var newHeight = (int) Math.floor(h * cos + w * sin); t.translate((newWidth - w) / 2d, (newHeight - h) / 2d); var x = w / 2; var y = h / 2; t.rotate(rads, x, y); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native MagickImage rotateImage(double degrees)\n\t\t\tthrows MagickException;", "public void rotate(float angle);", "public void rotate(boolean clockwise) \n\t{\n\t\tcircular_shift(connections, clockwise);\n\t\torientation = next(orientation, clockwise);\n\t}", "public void rotate(double degrees) {\n\t\trotate(degrees, true, false);\n\t}", "protected void rotateImage(int degrees) {\n mCropImageView.rotateImage(degrees);\n }", "public void rotation(double degrees) {\r\n \tdegrees = checkDegrees(degrees);\r\n \tsetFacingDirection(degrees);\r\n \trotation = (degrees * flipValue) * Math.PI / 180;\r\n }", "public void rotate()\r\n\t{\r\n\t\tdouble degree = Math.PI/2;\r\n\t\tdouble sin = Math.sin(degree);\r\n\r\n\t\tAffineTransform tx = new AffineTransform();\r\n\t\ttx.rotate(degree, this.bufferedImage.getWidth() / (double)2, this.bufferedImage.getHeight() / (double)2);\r\n\t\tAffineTransformOp op = new AffineTransformOp(tx, AffineTransformOp.TYPE_BILINEAR);\r\n\r\n\t\tRectangle rect = op.getBounds2D(this.bufferedImage).getBounds();\r\n\t\ttx.translate(sin * rect.getX(), -sin * rect.getY());\r\n\t\top = new AffineTransformOp(tx,AffineTransformOp.TYPE_BILINEAR);\r\n\t\tthis.bufferedImage = op.filter(this.bufferedImage, op.createCompatibleDestImage(this.bufferedImage, null) );\r\n\r\n\r\n\t\tthis.setBounds( getX(), getY(), this.bufferedImage.getWidth(), this.bufferedImage.getHeight() );\r\n\t\tthis.width = this.bufferedImage.getWidth();\r\n\t\tthis.height = this.bufferedImage.getHeight();\r\n\t\t\r\n\t}", "void turn(float degrees) {\n _rotVector.rotate(radians(degrees));\n }", "void rotate();", "public void rotate(double degrees) {\n \tboolean added = CommandQueue.add(Commands.rotate((int) degrees, 50), name);\n \tif (added) { \n \t\tSystem.out.println(\"Rotated by \" + degrees);\n \t}\n }", "@Override\n\tpublic void rotateRight(int degrees) {\n\t\t\n\t}", "public void rotate(float degrees, float x, float y) {\n float radians = degrees * PI_FLOAT / 180F;\n float sin = (float)Math.sin(radians), cos = (float)Math.cos(radians);\n multiply(\n x * x * (1F - cos) + cos, y * x * (1F - cos), y * sin, 0F,\n x * y * (1F - cos), y * y * (1F - cos) + cos, -x * sin, 0F,\n -y * sin, x * sin, cos, 0F,\n 0F, 0F, 0F, 1F\n );\n }", "public void setRotationModifer(int degrees) {\n\t\tthis.rotation = degrees;\n\t}", "private void rotate(int direction){\n\t\t//Gdx.app.debug(TAG, \"rotating, this.x: \" + this.x + \", this.y: \" + this.y);\n\t\tif (direction == 1 || direction == -1){\n\t\t\tthis.orientation = (this.orientation + (direction*-1) + 4) % 4;\n\t\t\t//this.orientation = (this.orientation + direction) % 4;\n\t\t} else{\n\t\t\tthrow new RuntimeException(\"Tile invalid direction\");\n\t\t}\n\t}", "@Override\r\n\tpublic void rotate() {\n\t\t\r\n\t}", "@Override\n public void rotate(double angle) {\n graphicsEnvironmentImpl.rotate(canvas, angle);\n }", "public void degrees() throws InterruptedException{\n\n\t\tif(keyPressed){\n\t\t\twhile(deg < 90){\n\t\t\t\tdeg += 15;\n\t\t\t\tSystem.out.println(\"Rotating UP \" + opcode);\n\t\t\t}\n\t\t}\n\t\telse if(!keyPressed){\n\t\t\twhile(deg > 0){\n\t\t\t\tdeg -= 15;\n\t\t\t\tSystem.out.println(\"Rotating Down \" + opcode);\n\t\t\t}\n\t\t}\n\t}", "public void rotateClockWise() {\r\n\r\n transpose();\r\n\r\n // swap columns\r\n for (int col = 0; col < pixels[0].length / 2; col++) {\r\n for (int row = 0; row < pixels.length; row++) {\r\n int tmp = pixels[row][col];\r\n pixels[row][col] = pixels[row][pixels[0].length - 1 - col];\r\n pixels[row][pixels[0].length - 1 - col] = tmp;\r\n }\r\n }\r\n\r\n this.pix2img();\r\n }", "public void rotate() {\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\ttmp_grid[i][j] = squares[i][j];\n\t\t\t// copy back rotated 90 degrees\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tsquares[j][i] = tmp_grid[i][3-j];\n \n //log rotation\n LogEvent(\"rotate\");\n\t\t}", "Point rotate (double angle);", "public RotationComponent setRotation(float degrees) {\n\trotation = degrees;\n\n\treturn this;\n }", "@Override\n\tpublic void rotateLeft(int degrees) {\n\t\t\n\t}", "public void setRotation(int degree) {\n\trotation = degree;\n}", "public double getRotation();", "public static void turnByDegree(double degree) {\n LEFT_MOTOR.rotate(convertAngle(WHEEL_RAD, TRACK, degree), true);\n RIGHT_MOTOR.rotate(-convertAngle(WHEEL_RAD, TRACK, degree), false);\n }", "public abstract void rotate();", "public void RotateActionPerformed(java.awt.event.ActionEvent evt) { \r\n degree = degree + 90;\r\n drawingPanel.setDegree(degree); \r\n }", "@Override\n\tpublic void rotate90() {\n\n\t\tint[][] rotate = new int[this.frame[0].length][this.frame.length];\n\n\t\tfor (int x = 0; x < rotate[0].length; x++) {\n\t\t\tfor (int y = 0; y < rotate.length; y++) {\n\t\t\t\trotate[y][x] = this.frame[this.frame.length - x - 1][y];\n\t\t\t}\n\t\t} \n\n\t\tthis.frame = rotate;\n\n\t}", "public MutableImage rotateRight() {\n return rotate(90);\n }", "@Override\n\tpublic void rotate() {\n\t}", "void rotateTurtle(int turtleIndex, double degrees);", "@Override\r\n\tpublic void rotateRight() {\n\t\tsetDirection((this.getDirection() + 1) % 4);\r\n\t}", "public void zRotate() {\n\t\t\n\t}", "public void turn(int degree) {\n rightMotor.setSpeed(DEFAULT_TURN_SPEED);\n leftMotor.setSpeed(DEFAULT_TURN_SPEED);\n rightMotor.rotate((int) Math.round(TURN_RATIO * degree), true);\n leftMotor.rotate((int) Math.round(-TURN_RATIO * degree), true);\n }", "void rotate() {\n startAnimation(allSubCubes(), Axis.Y, Direction.CLOCKWISE);\n rotateCubeSwap();\n }", "void rotate () {\n final int rows = currentPiece.height;\n final int columns = currentPiece.width;\n int[][] rotated = new int[columns][rows];\n\n for (int i = 0; i < rows; i++)\n for (int j = 0; j < columns; j++)\n rotated[j][i] = currentPiece.blocks[i][columns - 1 - j];\n\n Piece rotatedPiece = new Piece(currentPiece.color, rotated);\n int kicks[][] = {\n {0, 0},\n {0, 1},\n {0, -1},\n //{0, -2},\n //{0, 2},\n {1, 0},\n //{-1, 0},\n {1, 1},\n //{-1, 1},\n {1, -1},\n //{-1, -1},\n };\n for (int kick[] : kicks) {\n if (canMove(currentRow + kick[0], currentColumn + kick[1], rotatedPiece)) {\n //System.out.println(\"Kicking \" + kick[0] + \", \" + kick[1]);\n currentPiece = rotatedPiece;\n currentRow += kick[0];\n currentColumn += kick[1];\n updateView();\n break;\n }\n }\n }", "public void xRotate() {\n\t\t\n\t}", "public void calculateAngleAndRotate(){\n\t\tdouble cumarea = 0;\n\t\tdouble sina = 0;\n\t\tdouble cosa = 0;\n\t\tdouble area, angle;\n\t\tfor (int n = 0; n < rt.size();n++) {\n\t\t\tarea = rt.getValueAsDouble(rt.getColumnIndex(\"Area\"),n);\n\t\t\tangle = 2*rt.getValueAsDouble(rt.getColumnIndex(\"Angle\"),n);\n\t\t\tsina = sina + area*Math.sin(angle*Math.PI/180);\n\t\t\tcosa = cosa + area*Math.cos(angle*Math.PI/180);\n\t\t\tcumarea = cumarea+area;\n\t\t}\n\t\taverageangle = Math.abs(0.5*(180/Math.PI)*Math.atan2(sina/cumarea,cosa/cumarea)); // this is the area weighted average angle\n\t\t// rotate the data \n\t\tIJ.run(ActiveImage,\"Select All\",\"\");\n\t\tActiveImageConverter.convertToGray32();\n\t\tIJ.run(ActiveImage,\"Macro...\", \"code=[v= x*sin(PI/180*\"+averageangle+\")+y*cos(PI/180*\"+averageangle+\")]\");\n\t\treturn;\n\t}", "public MutableImage rotateLeft() {\n return rotate(-90);\n }", "public double turn (double degrees) {\n setHeading(getHeading() + degrees);\n return Math.abs(degrees);\n }", "public void setRotate() {\r\n\t\tint npoints = xpoints.length;\r\n\t\tdouble[] tempxpoints = new double[xpoints.length];\r\n\t\tdouble[] tempypoints = new double[xpoints.length];\r\n\t\tdouble radians = Math.toRadians(angle%360);\r\n\t\tdouble y = pivotY;\r\n\t\tdouble x = pivotX;\r\n\t\tfor(int i = 0; i<xpoints.length; i++) {\r\n\t\t\ttempxpoints[i] = (Math.cos(radians)*(xpoints[i]-x)-Math.sin(radians)*(ypoints[i]-y)+x);\r\n\t\t\ttempypoints[i] = (Math.sin(radians)*(xpoints[i]-x)+Math.cos(radians)*(ypoints[i]-y)+y);\r\n\t\t}\r\n\t\txpoints = tempxpoints;\r\n\t\typoints = tempypoints;\r\n\t\tangle = 0;\r\n\t}", "void setRotationDegrees(int rotationDegrees) {\n int temp = rotationDegrees % 360;\n if (temp < 0) {\n temp = 360 + temp;\n }\n this.rotationDegrees = temp;\n }", "public void rotate() {\n // amoeba rotate\n // Here i will use my rotation_x and rotation_y\n }", "@Override\n\tprotected void onDraw(Canvas canvas) {\n\t\tint hieght=this.getHeight();\n\t\tint width=this.getWidth();\n\t\tcanvas.rotate(direction, width/2,hieght/2);\n\t\t\n\t\tsuper.onDraw(canvas);\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void rotateLeft() {\n\t\tsetDirection((this.getDirection() + 3) % 4);\r\n\t}", "public ImageRotator(int receivedAngle){angle = receivedAngle;}", "Point rotate (double angle, Point result);", "public void rotate() {\n\t\tclearPiece();\n\t\trotateFirstBlock();\n\t\trotateSecondBlock();\n\t\trotateFourthBlock();\n\t\tsetPiece();\n\t\trepaint();\n\t}", "private void setBoardRotation(int degrees) {\n gridPane.setRotate(degrees);\n for (Node n : gridPane.getChildren()) {\n n.setRotate(degrees);\n }\n }", "public void Rotation(int i) {\n mRender.Rotation(i);\n }", "public void rotate(double deg) {\n deg = deg % 360;\n// System.out.println(\"Stopni:\" + deg);\n double e = 0;\n double f = 0;\n\n// for(int i = 0; i < pixels.length; i++) {\n// for(int j = 0; j < pixels[i].length; j++) {\n// e += pixels[i][j].getX();\n// f += pixels[i][j].getY();\n// }\n// }\n //e = e / (pixels.length * 2);\n //f = f / (pixels[0].length * 2);\n e = pixels.length / 2;\n f = pixels[0].length / 2;\n System.out.println(e);\n System.out.println(f);\n\n// System.out.println(e + \":\" + f);\n Matrix affineTransform;\n Matrix translateMinus = Matrix.translateRotate(-e, -f);\n Matrix translatePlus = Matrix.translateRotate(e, f);\n Matrix movedTransform = Matrix.multiply(translateMinus, Matrix.rotate(deg));\n //movedTransform.display();\n affineTransform = Matrix.multiply(movedTransform, translatePlus);\n //affineTransform.display();\n\n for(int i = 0; i < pixels.length; i++) {\n for(int j = 0; j < pixels[i].length; j++) {\n double[][] posMatrix1 = {{pixels[i][j].getX()}, {pixels[i][j].getY()}, {1}};\n Matrix m1 = new Matrix(posMatrix1);\n Matrix result1;\n result1 = Matrix.multiply(Matrix.transpose(affineTransform.v), m1);\n\n pixels[i][j].setX(Math.round(result1.v[0][0]));\n pixels[i][j].setY(Math.round(result1.v[1][0]));\n }\n }\n\n\n }", "@Override\r\n\tpublic void rotateRight() {\n\t\tfinal int THETA = 10;\r\n\t\tint dir = this.getDirection();\r\n\t\tthis.setDirection(dir + THETA);\r\n\t\t\r\n\t}", "public void rotateBy(float amountInDegrees) {\n internalGroup.rotateBy(amountInDegrees);\n dataTrait.rotation = internalGroup.getRotation();\n resetSprite();\n\n }", "public Direction rotate90() {\n return values()[r90index];\n }", "@Override\n \t\t\t\tpublic void doRotateZ() {\n \n \t\t\t\t}", "private void rotate() {\n byte tmp = topEdge;\n topEdge = leftEdge;\n leftEdge = botEdge;\n botEdge = rightEdge;\n rightEdge = tmp;\n tmp = reversedTopEdge;\n reversedTopEdge = reversedLeftEdge;\n reversedLeftEdge = reversedBotEdge;\n reversedBotEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n tmp = ltCorner;\n ltCorner = lbCorner;\n lbCorner = rbCorner;\n rbCorner = rtCorner;\n rtCorner = tmp;\n\n }", "public void turn(int angle)\n {\n setRotation(getRotation() + angle);\n }", "public void turn(int angle)\n {\n setRotation(getRotation() + angle);\n }", "public double getRotationAngleInRadians() {\n return Math.toRadians(rotationAngle);\n }", "public void rotate(double angle) {\t\t\n\t\t// precompute values\n\t\tVector t = new Vector(this.a14, this.a24, this.a34);\n\t\tif (t.length() > 0) t = t.norm();\n\t\t\n\t\tdouble x = t.x();\n\t\tdouble y = t.y();\n\t\tdouble z = t.z();\n\t\t\n\t\tdouble s = Math.sin(angle);\n\t\tdouble c = Math.cos(angle);\n\t\tdouble d = 1 - c;\n\t\t\n\t\t// precompute to avoid double computations\n\t\tdouble dxy = d*x*y;\n\t\tdouble dxz = d*x*z;\n\t\tdouble dyz = d*y*z;\n\t\tdouble xs = x*s;\n\t\tdouble ys = y*s;\n\t\tdouble zs = z*s;\n\t\t\n\t\t// update matrix\n\t\ta11 = d*x*x+c; a12 = dxy-zs; a13 = dxz+ys;\n\t\ta21 = dxy+zs; a22 = d*y*y+c; a23 = dyz-xs;\n\t\ta31 = dxz-ys; a32 = dyz+xs; a33 = d*z*z+c;\n\t}", "public void rotateImage(View view) {\n\n View img = findViewById(ID_PlacementMode_BrickPreview_ImageView);\n\n float rotation;\n\n if (view.getId() == R.id.ID_PlacementMode_RotateLeft_Button) {\n rotation = img.getRotation() - (float) 90.0;\n }\n else { // rotate right\n rotation = img.getRotation() + (float) 90.0;\n }\n\n // set rotation in positive range in order to use map_angle_to_blockrotation correctly (Bugfix #414)\n if (rotation < 0) {\n rotation = rotation + 360f;\n }\n\n // set rotation of visualized brick preview\n img.setRotation(rotation);\n\n BlockRotation block_rotation = map_angle_to_blockrotation.get(((int)rotation)%360);\n\n // set rotation in block object\n objBrickPreview.setRotation(block_rotation);\n\n }", "public void rotate(){\n\t\t\n\t\tfor(Vertex v : vertices){\n\n\t\t\tMatrix m = ViewSettings.getRotationMatrix4().multiply(v);\n\n\t\t\tv.setX(m.getValue(0, 0));\n\t\t\tv.setY(m.getValue(1, 0));\n\t\t\tv.setZ(m.getValue(2, 0));\n\t\t\tv.setW(m.getValue(3, 0));\n\t\t}\n\t}", "public void rotate(int rotation) {\n rotateCO(rotation);\n rotateCP(rotation);\n rotateEO(rotation);\n rotateEP(rotation);\n }", "@Override\n \t\t\t\tpublic void doRotateX() {\n \n \t\t\t\t}", "@Override\r\n\tpublic void rotateLeft() {\n\t\tfinal int THETA = 10;\r\n\t\tint dir = this.getDirection();\r\n\t\tthis.setDirection(dir - THETA);\r\n\t\t\r\n\t}", "@Override\n\tfinal public void rotate(double angle, Axis axis)\n\t{\n\t\t//center.setDirection(angle);\n\t}", "private static double rotate(double bearing, double degrees) {\n double newBearing = bearing + degrees;\n if (newBearing >= 360) {\n newBearing -= 360;\n }\n return newBearing;\n }", "public void rotateShip(){\n if (this.orientation == false){\n this.orientation = true;\n }else\n orientation = false;\n \n return;\n }", "public SceneGraphNode setRotation(double degreesX, double degreesY, double degreesZ) {\n\n\t\trotationInDegreesX = degreesX;\n\t\trotationInDegreesY = degreesY;\n\t\trotationInDegreesZ = degreesZ;\n\t\treturn this;\n\n\t}", "float calcRotate(float rotateDeg, float anglePerIn)\n {\n return rotateDeg / anglePerIn;\n }", "public void rotateTurtle(double deg){\n\t\tSystem.out.println(\"in rotate\");\n\n\t\tmyTurtle.turn(deg);\n\t\tthis.updateTurtleOnView();\n\t}", "public void rotate(Rotation rotation)\r\n\t{\r\n\t\tthis.currentDirection=this.currentDirection.rotate(rotation);\r\n\t}", "public void displayRotated(float angleInDegrees) {\n pushMatrix();\n rotate(radians(angleInDegrees));\n shape(fullCar);\n popMatrix();\n }", "int getStartRotationDegree();", "void turnToDir(float angle) { \n float radian = radians(angle);\n _rotVector.set(cos(radian), sin(radian));\n _rotVector.setMag(1);\n }", "public Matrix rotate90Degree() {\n\t\tMatrix rotatedMatrix = new Matrix(this.getHeight(), this.getWidth());\n\t\tfor(int i = 0; i < this.getWidth(); i++) {\n\t\t\tfor(int j = 0; j < this.getHeight(); j++) {\n\t\t\t\trotatedMatrix.setElement(j, (this.getWidth() -1) - i, data[i][j]);\n\t\t\t}\n\t\t}\n\t\tthis.show();\n\t\trotatedMatrix.show();\n\t\treturn rotatedMatrix;\n\t}", "public static Image rotate(Image img, double angle){\n\n\t\tif(!(img instanceof BufferedImage)){\n\t\t\tMainFrame.error(\"[Rotate]: Image is not a bufferedimage\");\n\t\t\treturn img;\n\t\t}\n\n\t\tdouble sin = Math.abs(Math.sin(Math.toRadians(angle)));\n\t\tdouble cos = Math.abs(Math.cos(Math.toRadians(angle)));\n\n\t\tint w = img.getWidth(null); \n\t\tint h = img.getHeight(null);\n\n\t\tint new_width = (int) Math.floor(w*cos + h*sin);\n\t\tint new_height = (int) Math.floor(h*cos + w*sin);\n\n\t\tBufferedImage buffered_img = new BufferedImage(new_width,new_height,BufferedImage.TYPE_INT_ARGB);\n\t\tGraphics2D g = buffered_img.createGraphics();\n\n\n\t\tg.translate((new_width-w)/2, (new_height-h)/2);\n\t\tg.rotate(Math.toRadians(angle), w/2, h/2);\n\t\tg.drawRenderedImage((BufferedImage)img, null);\n\t\tg.dispose();\n\n\t\treturn (Image)buffered_img;\n\t}", "public void rotate180 (View view){\n\n if (toyRobotIsActive) {\n\n robot.animate().rotationBy(180f).setDuration(50); //turn toy robot AROUND (180')\n\n rotateRight += 2; //counter to determine orientation\n System.out.println(\"rotateRight \" + rotateRight);\n System.out.println(\"rotateLeft + rotateRight = \"\n + orientation(rotateLeft, rotateRight));\n\n } else errorMessage(\"Please place toy robot\");\n }", "private void rotate(int degrees, double power) {\n telemetry.addData(\"command\", \"turn %f.1\\u00B0 turn.\");\n // restart imu angle tracking.\n resetAngle();\n\n // if degrees > 359 we cap at 359 with same sign as original degrees.\n if (Math.abs(degrees) > 359)\n degrees = (int) Math.copySign(359, degrees);\n\n // Start pid controller. PID controller will monitor the turn angle with\n // respect to the target angle and reduce power as we approach the target\n // angle. This is to prevent the robots momentum from overshooting the\n // turn after we turn off the power. The PID controller reports onTarget\n // () = true when the difference between turn angle and target angle is\n // within 1% of target (tolerance) which is about 1 degree. This helps\n // prevent overshoot. Overshoot depends on the motor and gearing\n // configuration, starting power, weight of the robot and the on target\n // tolerance. If the controller overshoots, it will reverse the sign of\n // the output turning the robot back toward the setpoint value.\n\n pidRotate.reset();\n pidRotate.setSetpoint(degrees);\n pidRotate.setInputRange(0, degrees);\n pidRotate.setOutputRange(0, power);\n pidRotate.setTolerance(0.01);\n pidRotate.enable();\n\n // getAngle() returns + when rotating counter clockwise (left) and - when\n // rotating clockwise (right).\n\n // rotate until turn is completed.\n\n if (degrees < 0) {\n do {\n power = pidRotate.performPID(getAngle()); // power will be - on right\n // turn.\n robot.leftDrive.setPower(-power);\n robot.rightDrive.setPower(power);\n } while (opModeIsActive() && !pidRotate.onTarget());\n } else // left turn.\n do {\n power = pidRotate.performPID(getAngle()); // power will be + on left\n // turn.\n robot.leftDrive.setPower(-power);\n robot.rightDrive.setPower(power);\n } while (opModeIsActive() && !pidRotate.onTarget());\n // reset angle tracking on new heading.\n stopMotors();\n pidDrive.disable();\n\n // wait for motors to calm down.\n sleep(500);\n\n rotation = getAngle();\n resetAngle();\n }", "public static void rotateAcw(RasterImage inputImage, RasterImage outputImage)\n\t{\n\t\tassert inputImage != null && outputImage != null && outputImage.getSize() == inputImage.getSize();\n\t\t\n\t\t\n\t\tif (inputImage == outputImage)\n\t\t{\n\t\t\tinputImage = new RasterImage(inputImage);\n\t\t}\n\t\t\n\t\toutputImage.resize(inputImage.getHeight(), inputImage.getWidth());\n\t\t\n\t\tint newY;\n\t\t\n\t\tfor (int i = 0; i < inputImage.getHeight(); i++)\n\t\t{\n\t\t\tfor (int j = 0; j < inputImage.getWidth(); j++)\n\t\t\t{\n\t\t\t\tnewY = inputImage.getWidth() - j - 1;\n\t\t\t\toutputImage.setRgb(i, newY, inputImage.getRgb(j, i));\n\t\t\t}\n\t\t}\n\t}", "public void increaseRotation(float dx, float dy, float dz);", "public double radians() {\n return Math.toRadians(this.degrees);\n }", "public static double rotation()\r\n\t{\r\n\t\treturn -(mxp.getAngle()/45);\r\n\t}", "void rotatePolygon() {\n\t\tfor (int i = 0; i < amount; i++)\n\t\t\tpoint[i].rotate();\n\t}", "public @NotNull Image rotateCW()\n {\n if (this.data != null)\n {\n if (this.mipmaps > 1) Image.LOGGER.warning(\"Image manipulation only applied to base mipmap level\");\n \n Color.Buffer output = Color.malloc(this.format, this.width * this.height);\n \n long srcPtr = this.data.address();\n long dstPtr = output.address();\n \n for (int y = 0; y < this.height; y++)\n {\n for (int x = 0; x < this.width; x++)\n {\n long src = Integer.toUnsignedLong(y * this.width + x) * this.format.sizeof;\n long dst = Integer.toUnsignedLong(x * this.height + this.height - y - 1) * this.format.sizeof;\n \n MemoryUtil.memCopy(srcPtr + src, dstPtr + dst, this.format.sizeof);\n }\n }\n \n this.data.free();\n this.data = output;\n }\n return this;\n }", "private void rotateShape(double degree) {\n takeModuleOfShape(index);\n\n shiftMemento(index);\n draw.setMementos(mementos);\n\n mementos[mementoIndex - 1].setDegree(mementos[mementoIndex - 1].getDegree() + degree);\n\n shapes.get(shapes.size() - 1).draw(mementos[mementoIndex - 1].getRectangle(), mementos[mementoIndex - 1].getDegree());\n\n mementos = draw.getMementos();\n\n draw.revalidate();\n draw.repaint();\n gui.arrayPanel[1].repaintPanel();\n flagCopy = true;\n draw.setFlag(false);\n }", "public void rotate(Point P, int rotation) {\n\n\n }", "@Override\n \t\t\t\tpublic void doRotateY() {\n \n \t\t\t\t}", "public void rotateY90() {\n\t\tfor (int v = 0; v < vertexCount; v++) {\n\t\t\tint x_ = vertexX[v];\n\t\t\tvertexX[v] = vertexZ[v];\n\t\t\tvertexZ[v] = -x_;\n\t\t}\n\t}", "public void rotate( float x, float y, float z, float angle )\n\t{\n\t\tMatrix4f opMat = new Matrix4f();\n\t\topMat.set( new AxisAngle4f( x, y, z, angle ) );\n\t\tmat.mul( opMat );\n\t}", "public static Bitmap rotate(Bitmap b, int degrees) {\n\t\treturn rotateAndMirror(b, degrees, false);\n\t}", "public Piece rotate() {\n\t\tif (!isRotatable) {\n\t\t\treturn this;\n\t\t}\n\t\tint m = shape.length;\n\t\tint n = shape[0].length;\n\t\tint[][] newPiece = new int[n][m];\n\t\tfor (int r = 0; r < m; r++) {\n\t for (int c = 0; c < n; c++) {\n\t newPiece[c][m-1-r] = shape[r][c];\n\t }\n\t\t}\n\t\treturn new Piece(value, name, newPiece, isFlippable, isRotatable);\n\t}", "@Override\n\tpublic void rotate() {\n\t\tSystem.out.println(\"Triangle is Rotateing in \"+ Rotatable.DIRECTION + \"Direction\");\n\t}", "public RotationComponent add(float degrees) {\n\trotation += degrees;\n\n\treturn this;\n }", "DMatrix3C getRotation();", "@Override\n\tprotected void onDraw(Canvas canvas) {\n\t\t\n\t\n\t\tint px = getMeasuredWidth();\n\t\tint py =this.getMeasuredHeight();\n\t\tcanvas.rotate(current_degrees, px/2, py/2);\n\t\tsuper.onDraw(canvas);\n\t}", "public void rotate(double theta)\r\n\t{\r\n\t\t// System.out.println(\"rotate\");\r\n\t}", "private void spinCompass(ImageView imageView, float angle){\n //Check that the angle is valid\n if (angle >= 0 || angle <= 360)\n imageView.setRotation(-angle + 180); //Flip and rotate the image to correspond to the actual angle\n\t}", "public abstract void rotateLeft();", "@Override\n public void setOrientation(int degree, boolean animation) {\n String t = getText().toString();\n if(t != null && !t.equals(\"\")){\n mContent = t;\n }\n\n mEnableAnimation = animation;\n // make sure in the range of [0, 359]\n degree = degree >= 0 ? degree % 360 : degree % 360 + 360;\n if (degree == mTargetDegree)\n return;\n\n mTargetDegree = degree;\n if (mEnableAnimation) {\n mStartDegree = mCurrentDegree;\n mAnimationStartTime = AnimationUtils.currentAnimationTimeMillis();\n\n int diff = mTargetDegree - mCurrentDegree;\n diff = diff >= 0 ? diff : 360 + diff; // make it in range [0, 359]\n\n // Make it in range [-179, 180]. That's the shorted distance between the\n // two angles\n diff = diff > 180 ? diff - 360 : diff;\n\n mClockwise = diff >= 0;\n mAnimationEndTime = mAnimationStartTime\n + Math.abs(diff) * 1000 / ANIMATION_SPEED;\n } else {\n mCurrentDegree = mTargetDegree;\n }\n\n invalidate();\n }" ]
[ "0.7147946", "0.6878637", "0.6780003", "0.6753541", "0.66581404", "0.6632075", "0.66012794", "0.65613055", "0.6527902", "0.6402568", "0.63795865", "0.63378114", "0.62934476", "0.6230387", "0.6226645", "0.6219647", "0.6185071", "0.6157743", "0.6125738", "0.6125102", "0.6121529", "0.61019105", "0.6098408", "0.6096194", "0.60895514", "0.6086066", "0.6071433", "0.6031924", "0.600712", "0.6003516", "0.59894204", "0.59850353", "0.5969127", "0.59538037", "0.5928465", "0.59216315", "0.5905643", "0.5904374", "0.5899329", "0.5897639", "0.5876164", "0.58473665", "0.58440834", "0.58348894", "0.5830362", "0.582123", "0.5814706", "0.5806054", "0.5803294", "0.57995147", "0.57895803", "0.5788177", "0.57704324", "0.5768085", "0.57638335", "0.5757951", "0.5755607", "0.5755607", "0.5733334", "0.5707766", "0.56952804", "0.5689728", "0.5666003", "0.565349", "0.5650263", "0.56453353", "0.5632575", "0.5628203", "0.56280744", "0.561652", "0.5614235", "0.5612314", "0.56101894", "0.56010765", "0.5598713", "0.55934846", "0.55806804", "0.5579967", "0.55795366", "0.5578948", "0.5573395", "0.5549026", "0.5546487", "0.55422735", "0.55333954", "0.55285007", "0.55189574", "0.5515271", "0.55110914", "0.55079186", "0.5494109", "0.5491423", "0.54899657", "0.54895097", "0.5482713", "0.54762715", "0.54631466", "0.54626566", "0.54482704", "0.54469687" ]
0.7101301
1
Remove alpha layer for formats not supporting it. This prevents some files from having a colored background (instead of transparency) or to not be saved properly (e.g. png to bmp).
private BufferedImage deAlpha(BufferedImage img, String format) { if (EqualsUtil.equalsNoneIgnoreCase(format, "png", "gif")) { var fixedImg = new BufferedImage(img.getWidth(), img.getHeight(), BufferedImage.TYPE_INT_RGB); fixedImg.createGraphics().drawImage( img, 0, 0, Color.WHITE, null); return fixedImg; } return img; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clearAlphaInfo() {\n \n alphaInfo_ = 0;\n }", "protected void removealphaOpeque() {\n\t\tlistbackground.setAlpha(1f);\n\t\tbackground.setAlpha(1f);\n\t\tlv.setClickable(true);\n\t\tlvx.setClickable(true);\n\t\trefresh.setClickable(true);\n\t\tsearch.setClickable(true);\n\t\tsearch.setEnabled(true);\n\t\tlv.setEnabled(true);\n\t\tlvx.setEnabled(true);\n\t\tcancelButton.setClickable(true);\n\t\tcancelButton.setEnabled(true);\n\t\trefresh.setEnabled(true);\n\t}", "private AlphaComposite makeTransparent(float alpha){\n return(AlphaComposite.getInstance(AlphaComposite.SRC_OVER,alpha));\n }", "String removeImageStyle();", "public void setSuppressAlpha(boolean suppressAlpha) {\n/* 106 */ this.suppressAlpha = suppressAlpha;\n/* */ }", "@Override\n public int getAlpha() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n return patternDrawable.getAlpha();\n }\n\n return 0xFF;\n }", "public void clearFormats();", "@Override\n public void setAlpha(int alpha) {\n patternDrawable.setAlpha(alpha);\n }", "@Override\n\tpublic void setTransparency(float transparency) {\n\t\t\n\t}", "public Builder clearAlphaInfo() {\n copyOnWrite();\n instance.clearAlphaInfo();\n return this;\n }", "String getTransparencyAsString();", "@Override\n\t\t\tpublic void setAlpha(int alpha) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic int getOpacity() {\n\t\t\t\treturn 0;\n\t\t\t}", "@Override\n\tpublic int getOpacity() {\n\t\treturn 0;\n\t}", "protected void setScrimAlpha(float alpha) {\n mShowScrim = alpha > 0f;\n mRenderer.getPaint().setAlpha((int) (alpha * 255));\n invalidate();\n }", "private static boolean setGraphicsTransparency(Graphics g, float alpha) {\r\n\t\tif (g instanceof Graphics2D) {\r\n\t\t\tGraphics2D g2d = (Graphics2D) g;\r\n\t\t\tComposite comp = g2d.getComposite();\r\n\t\t\tif (comp instanceof AlphaComposite) {\r\n\t\t\t\tAlphaComposite acomp = (AlphaComposite) comp;\r\n\r\n\t\t\t\tif (acomp.getAlpha() != alpha) {\r\n\t\t\t\t\tif (alpha < 1.0f) {\r\n\t\t\t\t\t\tg2d.setComposite(AlphaComposite.getInstance(\r\n\t\t\t\t\t\t\t\tAlphaComposite.SRC_OVER, alpha));\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tg2d.setComposite(AlphaComposite.SrcOver);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void setAlpha(int alpha) {\n\n\t}", "public String getTransparency() {\n return transparency;\n }", "@Override\n\tpublic int getOpacity() {\n\t\treturn PixelFormat.OPAQUE;\n\t}", "public void saveLayerAlpha(int sx, int sy, int i, int j, int multipliedAlpha) {\n\t\t\n\t}", "@Override\r\n\t\tpublic int getOpacity()\r\n\t\t{\n\t\t\treturn 0;\r\n\t\t}", "public void resetAlphaValues();", "public void setAlpha(float alpha) {\n\t\tthis.alpha = alpha;\n\t}", "private BufferedImage CreateBuffedImage(WinFileMappingBuffer fm, boolean bWithAlphaChanle) {\n BitmapFileBuffer bitmap = new BitmapFileBuffer();\n if (!bitmap.Load(fm.getBuffer())) {\n return null;\n }\n return bitmap.GetBuffedImage(bWithAlphaChanle);\n }", "public void setOldImageAlpha(int oldImageAlpha) {\n\t\tthis.oldImageAlpha = oldImageAlpha;\n\t}", "public int getTransparency() {\n return Color.TRANSLUCENT;\n }", "@Override\n protected BufferedImage createEmptyImageForLayer(int width, int height) {\n BufferedImage empty = new BufferedImage(width, height, BufferedImage.TYPE_BYTE_GRAY);\n\n // when enlarging a layer mask, the new areas need to be white\n Graphics2D g = empty.createGraphics();\n g.setColor(Color.WHITE);\n g.fillRect(0, 0, width, height);\n g.dispose();\n\n return empty;\n }", "private static int getFormatFromSPPSampleModel(SinglePixelPackedSampleModel sm,\r\n boolean hasAlpha) {\r\n // Can we extract bytes?\r\n int mask = sm.getBitMasks()[0] >>> sm.getBitOffsets()[0];\r\n if (!(mask == 0xFF || mask == 0xFFFF || mask == 0xFFFFFFFF))\r\n return 0;\r\n\r\n // All masks are same?\r\n for (int i = 1; i < sm.getNumBands(); i++) {\r\n if ((sm.getBitMasks()[i] >>> sm.getBitOffsets()[i]) != mask)\r\n return 0;\r\n }\r\n\r\n int pixelSize = 0;\r\n // Check if data type is supported\r\n if (sm.getDataType() == DataBuffer.TYPE_USHORT)\r\n pixelSize = 2;\r\n else if (sm.getDataType() == DataBuffer.TYPE_INT)\r\n pixelSize = 4;\r\n else\r\n return 0;\r\n\r\n\r\n int bytes = 0;\r\n switch (mask) {\r\n case 0xFF:\r\n bytes = 1;\r\n break;\r\n case 0xFFFF:\r\n bytes = 2;\r\n break;\r\n case 0xFFFFFFFF:\r\n bytes = 4;\r\n break;\r\n default: return 0;\r\n }\r\n\r\n\r\n int channels = hasAlpha ? sm.getNumBands()-1 : sm.getNumBands();\r\n int extra = hasAlpha ? 1 : 0;\r\n extra += pixelSize/bytes - sm.getNumBands(); // Unused bytes?\r\n\r\n // Form an ArrayList containing offset for each band\r\n ArrayList<Integer> offsetsLst = new ArrayList<Integer>();\r\n for (int k=0; k < sm.getNumBands(); k++) {\r\n offsetsLst.add(new Integer(sm.getBitOffsets()[k]/(bytes*8)));\r\n }\r\n\r\n // Add offsets for unused space\r\n for (int i=0; i<pixelSize/bytes; i++) {\r\n if (offsetsLst.indexOf(new Integer(i)) < 0)\r\n offsetsLst.add(new Integer(i));\r\n }\r\n\r\n int offsets[] = new int[pixelSize/bytes];\r\n for (int i=0; i<offsetsLst.size(); i++) {\r\n offsets[i] = offsetsLst.get(i).intValue();\r\n }\r\n\r\n int doSwap = 0;\r\n int swapFirst = 0;\r\n boolean knownFormat = false;\r\n\r\n int i;\r\n\r\n // \"RGBA\"\r\n for (i=0; i < pixelSize; i++) {\r\n if (offsets[i] != i) break;\r\n }\r\n if (i == pixelSize) { // Ok, it is it\r\n doSwap = 0;\r\n swapFirst = 0;\r\n knownFormat = true;\r\n }\r\n\r\n // \"ARGB\"\r\n if (!knownFormat) {\r\n for (i=0; i < pixelSize-1; i++) {\r\n if (offsets[i] != i+1) break;\r\n }\r\n if (offsets[i] == 0) i++;\r\n if (i == pixelSize) { // Ok, it is it\r\n doSwap = 0;\r\n swapFirst = 1;\r\n knownFormat = true;\r\n }\r\n }\r\n\r\n // \"BGRA\"\r\n if (!knownFormat) {\r\n for (i=0; i < pixelSize-1; i++) {\r\n if (offsets[i] != pixelSize - 2 - i) break;\r\n }\r\n if (offsets[i] == pixelSize-1) i++;\r\n if (i == pixelSize) { // Ok, it is it\r\n doSwap = 1;\r\n swapFirst = 1;\r\n knownFormat = true;\r\n }\r\n }\r\n\r\n // \"ABGR\"\r\n if (!knownFormat) {\r\n for (i=0; i < pixelSize; i++) {\r\n if (offsets[i] != pixelSize - 1 - i) break;\r\n }\r\n if (i == pixelSize) { // Ok, it is it\r\n doSwap = 1;\r\n swapFirst = 0;\r\n knownFormat = true;\r\n }\r\n }\r\n\r\n // XXX - Planar formats are not supported yet\r\n if (!knownFormat)\r\n return 0;\r\n\r\n return\r\n channelsSh(channels) |\r\n bytesSh(bytes) |\r\n extraSh(extra) |\r\n doswapSh(doSwap) |\r\n swapfirstSh(swapFirst);\r\n }", "@Override\n public void setAlpha(float alpha) {\n super.setAlpha(alpha);\n\n int newVisibility = alpha <= 0f ? View.GONE : View.VISIBLE;\n setVisibility(newVisibility);\n }", "void removeComponents()\n {\n JPanel panel = Simulator.getInstance().getPanel(1);\n JLayeredPane jl = (JLayeredPane)panel.getComponent(0);\n Component[] comps = jl.getComponentsInLayer(JLayeredPane.PALETTE_LAYER.intValue());\n int size = comps.length;\n int i=0;\n while(i<size)\n {\n jl.remove(comps[i]);\n i++;\n } \n }", "public void applyFadingEffectInHideseat() {\n final Drawable drawable = getIconDrawable();\n if (drawable == null) return;\n /* YUNOS BEGIN */\n //## modules(Home Shell)\n //## date: 2015/12/25 ## author: wangye.wy\n //## BugID: 7721715: set alpha of whole layer\n Paint paint = new Paint();\n paint.setColorFilter(FADING_EFFECT_FILTER);\n paint.setAlpha(FADING_EFFECT_ALPHA);\n setLayerType(LAYER_TYPE_HARDWARE, paint);\n /*\n if (drawable instanceof FancyDrawable) {\n // for fancy icon, turn into gray immediately\n Paint paint = new Paint();\n paint.setColorFilter(FADING_EFFECT_FILTER);\n paint.setAlpha(FADING_EFFECT_ALPHA);\n setLayerType(LAYER_TYPE_HARDWARE, paint);\n return;\n }\n // for normal bitmap icon, play a transition animation\n final AnimatorSet as = new AnimatorSet();\n final ValueAnimator va = ValueAnimator.ofFloat(1f, 0f);\n va.setDuration(350);\n final ColorMatrix matrix = new ColorMatrix();\n va.addUpdateListener(new AnimatorUpdateListener(){\n @Override\n public void onAnimationUpdate(ValueAnimator animation) {\n float value = ((Float) animation.getAnimatedValue()).floatValue();\n matrix.setSaturation(value);\n mAnimatedIconFadingFilter = new ColorMatrixColorFilter(matrix);\n drawable.setAlpha(255 - (int) ((255 - FADING_EFFECT_ALPHA) * (1 - value)));\n invalidate();\n }\n });\n va.addListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator arg0) {\n mAnimatedIconFadingFilter = null;\n drawable.setAlpha(FADING_EFFECT_ALPHA);\n invalidate();\n }\n @Override\n public void onAnimationCancel(Animator arg0) {\n onAnimationEnd(arg0);\n }\n });\n as.play(va);\n as.setStartDelay(400);\n matrix.setSaturation(1);\n mAnimatedIconFadingFilter = new ColorMatrixColorFilter(matrix);\n drawable.setAlpha(255);\n invalidate();\n as.start();\n */\n /* YUNOS END */\n }", "private static int getFormatFromComponentModel(ComponentSampleModel sm, boolean hasAlpha) {\r\n // Multiple data arrays (banks) not supported\r\n int bankIndex = sm.getBankIndices()[0];\r\n for (int i=1; i < sm.getNumBands(); i++) {\r\n if (sm.getBankIndices()[i] != bankIndex) {\r\n return 0;\r\n }\r\n }\r\n\r\n int channels = hasAlpha ? sm.getNumBands()-1 : sm.getNumBands();\r\n int extra = hasAlpha ? 1 : 0;\r\n int bytes = 1;\r\n switch (sm.getDataType()) {\r\n case DataBuffer.TYPE_BYTE:\r\n bytes = 1; break;\r\n case DataBuffer.TYPE_SHORT:\r\n case DataBuffer.TYPE_USHORT:\r\n bytes = 2; break;\r\n case DataBuffer.TYPE_INT:\r\n bytes = 4; break;\r\n case DataBuffer.TYPE_DOUBLE:\r\n bytes = 0; break;\r\n default:\r\n return 0; // Unsupported data type\r\n }\r\n\r\n int doSwap = 0;\r\n int swapFirst = 0;\r\n boolean knownFormat = false;\r\n\r\n int i;\r\n\r\n // \"RGBA\"\r\n for (i=0; i < sm.getNumBands(); i++) {\r\n if (sm.getBandOffsets()[i] != i) break;\r\n }\r\n if (i == sm.getNumBands()) { // Ok, it is it\r\n doSwap = 0;\r\n swapFirst = 0;\r\n knownFormat = true;\r\n }\r\n\r\n // \"ARGB\"\r\n if (!knownFormat) {\r\n for (i=0; i < sm.getNumBands()-1; i++) {\r\n if (sm.getBandOffsets()[i] != i+1) break;\r\n }\r\n if (sm.getBandOffsets()[i] == 0) i++;\r\n if (i == sm.getNumBands()) { // Ok, it is it\r\n doSwap = 0;\r\n swapFirst = 1;\r\n knownFormat = true;\r\n }\r\n }\r\n\r\n // \"BGRA\"\r\n if (!knownFormat) {\r\n for (i=0; i < sm.getNumBands()-1; i++) {\r\n if (sm.getBandOffsets()[i] != sm.getNumBands() - 2 - i) break;\r\n }\r\n if (sm.getBandOffsets()[i] == sm.getNumBands()-1) i++;\r\n if (i == sm.getNumBands()) { // Ok, it is it\r\n doSwap = 1;\r\n swapFirst = 1;\r\n knownFormat = true;\r\n }\r\n }\r\n\r\n // \"ABGR\"\r\n if (!knownFormat) {\r\n for (i=0; i < sm.getNumBands(); i++) {\r\n if (sm.getBandOffsets()[i] != sm.getNumBands() - 1 - i) break;\r\n }\r\n if (i == sm.getNumBands()) { // Ok, it is it\r\n doSwap = 1;\r\n swapFirst = 0;\r\n knownFormat = true;\r\n }\r\n }\r\n\r\n // XXX - Planar formats are not supported yet\r\n if (!knownFormat)\r\n return 0;\r\n\r\n return\r\n channelsSh(channels) |\r\n bytesSh(bytes) |\r\n extraSh(extra) |\r\n doswapSh(doSwap) |\r\n swapfirstSh(swapFirst);\r\n }", "public void setAlpha(float alpha);", "public void unHighLight() {\r\n\t\tAcideFileEditorManager fileEditorManager = AcideMainWindow\r\n\t\t\t\t.getInstance().getFileEditorManager();\r\n\t\t// checks if the Asserted database panel is open\r\n\t\tif (AcideMainWindow.getInstance().isAssertedDatabaseOpened()) {\r\n\t\t\tAcideAssertedDatabasePanel assertedDatabase = AcideMainWindow\r\n\t\t\t\t\t.getInstance().getAssertedDatabasePanel();\r\n\t\t\t// checks if the Asserted database panel is showing\r\n\t\t\tif (assertedDatabase.isShowing())\r\n\t\t\t\tassertedDatabase.repaint();\r\n\t\t}\r\n\t\t// Iterates the lines on the lines map\r\n\t\tfor (String f : _fileLines.keySet()) {\r\n\t\t\t// Searches for the file in the file editor manager\r\n\t\t\tfor (int i = 0; i < fileEditorManager.getNumberOfFileEditorPanels(); i++) {\r\n\t\t\t\tif (fileEditorManager.getFileEditorPanelAt(i).getAbsolutePath() != null\r\n\t\t\t\t\t\t&& new File(fileEditorManager.getFileEditorPanelAt(i)\r\n\t\t\t\t\t\t\t\t.getAbsolutePath()).equals(new File(f))) {\r\n\t\t\t\t\t// Unhighlights the lines\r\n\t\t\t\t\tAcideTextComponent text = fileEditorManager\r\n\t\t\t\t\t\t\t.getFileEditorPanelAt(i).getActiveTextEditionArea();\r\n\r\n\t\t\t\t\tfor (Highlighter.Highlight h : text.getHighlighter()\r\n\t\t\t\t\t\t\t.getHighlights())\r\n\t\t\t\t\t\ttext.getHighlighter().removeHighlight(h);\r\n\t\t\t\t\ttext.repaint();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "protected void fading(float alpha) { }", "public void xtestWindowAlpha() throws Exception {\n if (GraphicsEnvironment.isHeadless())\n return;\n System.setProperty(\"sun.java2d.noddraw\", \"true\");\n GraphicsConfiguration gconfig = WindowUtils.getAlphaCompatibleGraphicsConfiguration();\n Frame root = JOptionPane.getRootFrame();\n final Window background = new Window(root);\n background.setBackground(Color.white);\n background.setLocation(X, Y);\n final Window transparent = new Window(root, gconfig);\n transparent.setBackground(Color.black);\n transparent.setLocation(X, Y);\n WindowUtils.setWindowAlpha(transparent, .5f);\n \n transparent.addMouseListener(handler);\n transparent.addMouseMotionListener(handler);\n\n SwingUtilities.invokeAndWait(new Runnable() { public void run() {\n background.pack();\n background.setSize(new Dimension(W, H));\n background.setVisible(true);\n transparent.pack();\n transparent.setSize(new Dimension(W, H));\n transparent.setVisible(true);\n }});\n \n //robot.delay(60000);\n\n Point where = new Point(transparent.getX() + W/2, \n transparent.getY() + H/2);\n Color sample = robot.getPixelColor(where.x, where.y);\n // NOTE: w32 won't sample non-opaque windows\n if (System.getProperty(\"os.name\").startsWith(\"Windows\")) {\n assertFalse(\"Sample not transparent (w32)\",\n sample.equals(transparent.getBackground()));\n }\n else {\n assertEquals(\"Sample should be 50% fg/bg\",\n new Color(128, 128, 128), sample);\n }\n \n SwingUtilities.invokeAndWait(new Runnable() {public void run() {\n WindowUtils.setWindowAlpha(transparent, 1f);\n }});\n sample = robot.getPixelColor(where.x, where.y);\n assertEquals(\"Window should be opaque with alpha=1f\",\n transparent.getBackground(), sample);\n \n SwingUtilities.invokeAndWait(new Runnable() {public void run() {\n WindowUtils.setWindowAlpha(transparent, 0f);\n }});\n sample = robot.getPixelColor(where.x, where.y);\n assertEquals(\"Window should be transparent with alpha=0f\",\n transparent.getBackground(), sample);\n }", "public void revertColorAndFont()\r\n\t{\r\n\t\trevertColor();\r\n\t\trevertFont();\r\n\t}", "public static void clearLayers(){\n\t\tfor(int i=0;i<ChangeLayer.Layers.length;i++){\n\t\t\tChangeLayer.Layers[i].clear();\n\t\t\t}\n\t}", "public static void ocultar_modelos()\n {\n for (int i = 0; i < array_modelos.size(); i++)\n array_modelos.get(i).setAlpha(Constantes.IMAGE_ALPHA);\n }", "public void unsetFormat()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FORMAT$10, 0);\n }\n }", "@Override\n public void setAlpha(int alpha) {\n if (alpha != mAlpha) {\n mAlpha = alpha;\n invalidateSelf();\n }\n }", "private void m146649c() {\n if (this.f108106a) {\n getHolder().setFormat(-2);\n setZOrderOnTop(true);\n }\n getHolder().addCallback(this.f108110e);\n setAlpha(0.0f);\n }", "public int getAlpha()\n {\n return getColor().alpha();\n }", "private BufferedImage addAlpha(final RenderedImage img) {\n final BufferedImage buffer = new BufferedImage(img.getWidth(), img.getHeight(), BufferedImage.TYPE_INT_ARGB);\n buffer.createGraphics().drawRenderedImage(img, new AffineTransform());\n return buffer;\n }", "public void saveAccentWallpaper() {\n Theme.ThemeAccent themeAccent = this.accent;\n if (themeAccent != null && !TextUtils.isEmpty(themeAccent.patternSlug)) {\n try {\n File pathToWallpaper = this.accent.getPathToWallpaper();\n Drawable background = this.backgroundImage.getBackground();\n Bitmap bitmap = this.backgroundImage.getImageReceiver().getBitmap();\n FileOutputStream fileOutputStream = new FileOutputStream(pathToWallpaper);\n bitmap.compress(background instanceof MotionBackgroundDrawable ? Bitmap.CompressFormat.PNG : Bitmap.CompressFormat.JPEG, 87, fileOutputStream);\n fileOutputStream.close();\n } catch (Throwable th) {\n FileLog.e(th);\n }\n }\n }", "public void setDefaultAlpha(double alpha) {\n defaultAlpha = alpha;\n invalidate();\n }", "public void testDefaultFormat() {\n ThemeLayer tl = new ThemeLayer();\n assertTrue(tl.getFormat().equals(\"image/png\"));\n }", "public static void removeNonAlpha(String inPath, String outPath) throws IOException\r\n\t{\r\n\t\t// Get data from input file\r\n\t\tbyte[] data = Files.readAllBytes(Paths.get(inPath));\r\n\t\t\r\n\t\tArrayList<Character> newData = new ArrayList<Character>();\r\n\t\t\r\n\t\t// Only take alphabetical characters and spaces\r\n\t\tbyte b;\r\n\t\tfor (int i = 0; i < data.length; i++) {\r\n\t\t\tb = data[i];\r\n\t\t\t\r\n\t\t\tif (b == '\\r') {\r\n\t\t\t\tnewData.add('.');\r\n\t\t\t\tnewData.add('\\r');\r\n\t\t\t\tnewData.add('\\n');\r\n\t\t\t\ti++;\r\n\t\t\t\tcontinue;\r\n\t\t\t} else if (b == '\\n') {\r\n\t\t\t\tnewData.add('.');\r\n\t\t\t\tnewData.add('\\n');\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (isAlpha(b) || b == ' ') {\r\n\t\t\t\tnewData.add((char) b);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// One last dot! Otherwise it skips over the last part of the song\r\n\t\tnewData.add('.');\r\n\t\t\r\n\t\t// Can't use ArrayList.toArray() because FileWriter.write()\r\n\t\t// wants a char (primitive) array\r\n\t\tchar[] chars = new char[newData.size()];\r\n\t\tfor (int i = 0; i < newData.size(); i++) {\r\n\t\t\tchars[i] = newData.get(i);\r\n\t\t}\r\n\t\t\r\n\t\t// Write to output file\r\n\t\tFileWriter fw = new FileWriter(outPath);\r\n\t\tfw.write(chars, 0, newData.size());\r\n\t\tfw.close();\r\n\t}", "public void setBackgroundTranslucence(float alpha) {\n\t\tthis.bgAC = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha);\n\t}", "public void deleteExperimentColors();", "default boolean alwaysFormatEntireFile() {\n return false;\n }", "public boolean isTranslucent() {\n return false;\n }", "public int getTransparency() {\n/* 148 */ return this.bufImg.getColorModel().getTransparency();\n/* */ }", "public static final Color decodeWithAlpha( final String s ) {\n if ( s.startsWith( \"#\" ) ) {\n // I mean, why can you not decode #ffffffff as int -1? Why do I need a long for this 4 byte value?\n return new Color( Long.decode( s ).intValue(), s.length() > 8 );\n }\n return new Color( Integer.decode( \"#\" + s ), s.length() > 7 );\n }", "public boolean isTransparencySupported() {\n return transparencySupported;\n }", "@NoProxy\n public static boolean validTransparency(final String val) {\n if (val == null) {\n /* We could argue that's valid as the default but I think that leads to\n * problems.\n */\n return false;\n }\n\n if (IcalDefs.transparencyOpaque.equals(val)) {\n return true;\n }\n\n return IcalDefs.transparencyTransparent.equals(val);\n }", "void removeLayer(int whichLayer);", "public void removeFeatures(Extent ex) {\n //TODO: remove the features\n }", "private void drawsegment_plain_alpha(float leftadd,\n float rghtadd,\n int ytop,\n int ybottom) {\n ytop *= SCREEN_WIDTH;\n ybottom *= SCREEN_WIDTH;\n \n int pr = m_fill & 0xFF0000;\n int pg = m_fill & 0xFF00;\n int pb = m_fill & 0xFF;\n \n // int p = m_index;\n float iaf = iaadd;\n \n while (ytop < ybottom) {\n int xstart = (int) (xleft + PIXEL_CENTER);\n if (xstart < 0)\n xstart = 0;\n \n int xend = (int) (xrght + PIXEL_CENTER);\n if (xend > SCREEN_WIDTH)\n xend = SCREEN_WIDTH;\n \n float xdiff = (xstart + PIXEL_CENTER) - xleft;\n float iz = izadd * xdiff + zleft;\n int ia = (int) (iaf * xdiff + aleft);\n xstart += ytop;\n xend += ytop;\n \n //int ma0 = 0xFF000000;\n \n for ( ; xstart < xend; xstart++ ) {\n if (noDepthTest || (iz <= m_zbuffer[xstart])) {\n // don't set zbuffer when not fully opaque\n //m_zbuffer[xstart] = iz;\n \n int alpha = ia >> 16;\n int mr0 = m_pixels[xstart];\n /*\n if (argbSurface) {\n ma0 = (((mr0 >>> 24) * alpha) << 16) & 0xFF000000;\n if (ma0 == 0) ma0 = alpha << 24;\n }\n */\n int mg0 = mr0 & 0xFF00;\n int mb0 = mr0 & 0xFF;\n mr0 &= 0xFF0000;\n \n mr0 = mr0 + (((pr - mr0) * alpha) >> 8);\n mg0 = mg0 + (((pg - mg0) * alpha) >> 8);\n mb0 = mb0 + (((pb - mb0) * alpha) >> 8);\n \n m_pixels[xstart] = 0xFF000000 | \n (mr0 & 0xFF0000) | (mg0 & 0xFF00) | (mb0 & 0xFF);\n \n // m_stencil[xstart] = p;\n }\n iz += izadd;\n ia += iaadd;\n }\n ytop += SCREEN_WIDTH;\n xleft += leftadd;\n xrght += rghtadd;\n zleft += zleftadd;\n }\n }", "public void setEncodingAlpha(boolean encodeAlpha);", "public CXformWithAlpha getColorTransform() {\n return colorTransform;\n }", "private void makeTransparent(JButton component)\n {\n component.setOpaque(false);\n component.setContentAreaFilled(false);\n component.setBorderPainted(false);\n }", "public boolean isActiveLayerDrawable() {\n\t\treturn false;\n\t}", "public void removeAllBackgroundArtist() {\r\n\t\tBase.removeAll(this.model, this.getResource(), BACKGROUNDARTIST);\r\n\t}", "private void backupStyle() {\n if(!this.backedup) {\n this.backedup = true;\n this.lastFillColor = this.currentFillColor;\n this.lastFillOpacity = this.fillOpacity.getValue();\n this.lastStrokeColor = this.currentStrokeColor;\n this.lastStrokeOpacity = this.strokeOpacity.getValue();\n this.lastStrokeSize = this.currentStrokeSize.getValue();\n }\n }", "public boolean hasAlpha() {\n return true;\n }", "public void removeDefaultLayerIfUnused() {\n Long defaultRootMarkupId = documentDTO.textGraph.getLayerRootMap().get(DEFAULT_LAYER);\n if (defaultRootMarkupId != null) {\n boolean defaultLayerIsUnused =\n documentDTO.textGraph.getOutgoingEdges(defaultRootMarkupId).stream()\n .noneMatch(this::isInDefaultLayer);\n if (defaultLayerIsUnused) {\n documentDTO.textGraph.getLayerRootMap().remove(DEFAULT_LAYER);\n TAGMarkup markup = store.getMarkup(defaultRootMarkupId);\n markup.getLayers().remove(DEFAULT_LAYER);\n store.persist(markup.getDTO());\n update();\n }\n }\n }", "public void writeNewAlpha(){\n\t\tFileSystemHandler.writeVector(Parameters.pathToAlphas, this.newAlpha);\n\t}", "public static void ocultar_productos()\n {\n for (int i = 0; i < array_productos.size(); i++)\n array_productos.get(i).setAlpha(Constantes.IMAGE_ALPHA);\n }", "double getTransparency();", "private void clearPatch() {\n if (patternCase_ == 6) {\n patternCase_ = 0;\n pattern_ = null;\n }\n }", "public void hide(){\n background.setOpacity(0);\n text.setOpacity(0);\n }", "public int getPaintAlpha(){\n return Math.round((float)paintAlpha/255*100);\n }", "public void setSymbolAlpha(int alpha) {\n symbol.setAlpha(alpha);\n }", "public void removeTransNotInTree(){\n // Get the list of transparents which take part into the tree\n Vector transparents=values.getListTransparents();\n Vector<FiniteStates> varsToRemove = new Vector<FiniteStates>();\n\n // Now remove the transparent in the PotentialTree if they do not\n // appear in the tree\n // Go on the set of variables, one by one\n for(int i=0; i < variables.size(); i++){\n FiniteStates var=(FiniteStates)variables.elementAt(i);\n\n // If transparent, consider if it must be removed\n if (var.getTransparency() == FiniteStates.TRANSPARENT){\n // Check if it is present in transparents\n for(int j=0; j < transparents.size(); j++){\n if (transparents.contains(var) == false)\n varsToRemove.addElement(var);\n \n }\n }\n }\n for(int i=0;i<varsToRemove.size();i++){\n variables.remove(varsToRemove.elementAt(i)); \n }\n }", "void disableAutomaticHeaderImage();", "public void addRemoveImageExportCustomizations(boolean status) {\n\t\tMemberUtil.updateFullOrAbbrvConnectionLabels(getDiagramController(), status);\n\t}", "public native boolean transparentImage(PixelPacket color, int opacity)\n\t\t\tthrows MagickException;", "public void removeAllEncodingSettings() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ENCODINGSETTINGS);\r\n\t}", "public void setAlpha(int newAlpha)\n {\n setColor(getColor().withAlpha(newAlpha));\n }", "public void setAlpha(int alpha)\n {\n \tthis.alpha=alpha; \n }", "@SuppressWarnings(\"unchecked\")\n public AnimatorType alpha(int alpha)\n {\n addTransformer(new AlphaTransformer(getShape(), alpha));\n return (AnimatorType) this;\n }", "public void setImageAlpha(int imageAlpha) {\n\t\tthis.imageAlpha = imageAlpha;\n\t}", "public void removeOverlay() {\n MimsPlus[] openImages = ui.getAllOpenImages();\n for (MimsPlus image : openImages) {\n for (Roi roi : rois) {\n Overlay overlay = image.getGraphOverlay();\n int index = overlay.getIndex(roi.getName() + graphID);\n if (index > -1) {\n overlay.remove(index);\n }\n image.setOverlay(overlay);\n }\n }\n }", "public void disableBlending() {\n if (blendingDisabled)\n return;\n renderMesh();\n blendingDisabled = true;\n }", "public static void makeBackgroundGray(){\r\n\t\tStdDraw.clear(StdDraw.LIGHT_GRAY);\r\n\t}", "public void setForegroundTranslucence(float alpha) {\n\t\tthis.fgAC = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha);\n\t}", "public void reFormatPieceLayer() {\r\n\t\tbody.removeAll();\r\n\t\tfor (int i = 0; i < 8 * 8; i++) {\r\n\t\t\tChessPiece tmpPiece = piece.get(order[i]);\r\n\t\t\tif (tmpPiece == null) {\r\n\t\t\t\tspacePieces[i].position = order[i];\r\n\t\t\t\tpiece.put(order[i], spacePieces[i]);\r\n\t\t\t\tbody.add(spacePieces[i]);\r\n\t\t\t} else {\r\n\t\t\t\tpiece.put(order[i], tmpPiece);\r\n\t\t\t\tbody.add(tmpPiece);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbody.repaint();\r\n\t}", "public static BufferedImage loadTranslucentImage(String url,\n\t\t\tfloat transparency) {\n\t\tBufferedImage loaded;\n\t\ttry {\n\t\t\tloaded = ImageIO.read(new File(url));\n\t\t\tBufferedImage aimg = new BufferedImage(loaded.getWidth(),\n\t\t\t\t\tloaded.getHeight(), BufferedImage.TRANSLUCENT);\n\t\t\tGraphics2D g = aimg.createGraphics();\n\t\t\tg.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER,\n\t\t\t\t\ttransparency));\n\t\t\tg.drawImage(loaded, null, 0, 0);\n\t\t\tg.dispose();\n\t\t\treturn aimg;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "void releaseOldLayers() throws IOException;", "public static String removeNonAlphaNumericCharacters(final String name)\n\t{\n\t\treturn RegExUtils.removePattern(name, NON_ALPHA_NUMERIC_CHARACTER_REGEX);\n\t}", "public boolean hasAlpha (BufferedImage im)\n\t{\n\t\t// does im have an alpha channel?\n\t\tif (im == null)\n\t\t\treturn false;\n\n\t\tint transparency = im.getColorModel ().getTransparency ();\n\n\t\tif ((transparency == Transparency.BITMASK) || (transparency == Transparency.TRANSLUCENT))\n\t\t\treturn true;\n\t\t\n\t\telse\n\t\t\treturn false;\n\t}", "@Test @IdeGuiTest\n public void testColorPickerAlpha() throws IOException {\n myProjectFrame = importSimpleApplication();\n ThemeEditorFixture themeEditor = ThemeEditorTestUtils.openThemeEditor(myProjectFrame);\n ThemeEditorTableFixture themeEditorTable = themeEditor.getPropertiesTable();\n\n TableCell cell = row(1).column(0);\n\n JTableCellFixture colorCell = themeEditorTable.cell(cell);\n ResourceComponentFixture resourceComponent = new ResourceComponentFixture(myRobot, (ResourceComponent)colorCell.editor());\n colorCell.startEditing();\n resourceComponent.getSwatchButton().click();\n\n ChooseResourceDialogFixture dialog = ChooseResourceDialogFixture.find(myRobot);\n ColorPickerFixture colorPicker = dialog.getColorPicker();\n Color color = new Color(200, 0, 0, 200);\n colorPicker.setFormat(\"ARGB\");\n colorPicker.setColorWithIntegers(color);\n JTextComponentFixture alphaLabel = colorPicker.getLabel(\"A:\");\n SlideFixture alphaSlide = colorPicker.getAlphaSlide();\n alphaLabel.requireVisible();\n alphaSlide.requireVisible();\n colorPicker.setFormat(\"RGB\");\n alphaLabel.requireNotVisible();\n alphaSlide.requireNotVisible();\n colorPicker.setFormat(\"HSB\");\n alphaLabel.requireNotVisible();\n alphaSlide.requireNotVisible();\n\n dialog.clickOK();\n colorCell.stopEditing();\n }", "public void setNeedsOffscreenAlphaCompositing(boolean needsOffscreenAlphaCompositing) {\n }", "public static void exportPNGFile(AlignFrame alignFrame, ActionEvent evt) {\n\t JFileChooser chooser = new JFileChooser(lastSelectedFolder);\n\t chooser.setFileFilter(new PngFileFilter());\n\t chooser.setMultiSelectionEnabled(false);\n\t chooser.setDialogTitle(\"Export PNG File Details\");\n\t chooser.requestFocusInWindow();\n\n\t File selectedFile;\n\t chooser.requestFocusInWindow();\n\t int returnVal = chooser.showSaveDialog(alignFrame);\n\n\t if (returnVal == JFileChooser.APPROVE_OPTION) {\n\n\t selectedFile = chooser.getSelectedFile();\n\n\t if (!selectedFile.getName().toLowerCase().endsWith(\".png\")) {\n\t selectedFile = new File(selectedFile.getAbsolutePath() + \".png\");\n\t }\n\n\t while (selectedFile.exists()) {\n\t int option = JOptionPane.showConfirmDialog(alignFrame,\n\t \"The file \" + chooser.getSelectedFile().getName() +\n\t \" already exists. Replace file?\",\n\t \"Replace File?\", JOptionPane.YES_NO_CANCEL_OPTION);\n\n\t if (option == JOptionPane.NO_OPTION) {\n\t chooser = new JFileChooser(lastSelectedFolder);\n\t chooser.setFileFilter(new PngFileFilter());\n\t chooser.setMultiSelectionEnabled(false);\n\t chooser.setDialogTitle(\"Export PNG File Details\");\n\n\t returnVal = chooser.showSaveDialog(alignFrame);\n\n\t if (returnVal == JFileChooser.CANCEL_OPTION) {\n\t return;\n\t } else {\n\t selectedFile = chooser.getSelectedFile();\n\n\t if (!selectedFile.getName().toLowerCase().endsWith(\".png\")) {\n\t selectedFile = new File(selectedFile.getAbsolutePath() + \".png\");\n\t }\n\t }\n\t } else { // YES option\n\t break;\n\t }\n\t }\n\n\t alignFrame.setCursor(new Cursor(Cursor.WAIT_CURSOR));\n\n\t try {\n\t selectedFile = chooser.getSelectedFile();\n\n\t if (!selectedFile.getName().toLowerCase().endsWith(\".png\")) {\n\t selectedFile = new File(selectedFile.getAbsolutePath() + \".png\");\n\t }\n\n\t if (selectedFile.exists()) {\n\t selectedFile.delete();\n\t }\n\n\t selectedFile.createNewFile();\n\t // Here comes the actual PNG file export! \n\t alignFrame.getAlignPanel().exportPNGFile(selectedFile);\n\t lastSelectedFolder = selectedFile.getPath();\n\n\t } catch (IOException ex) {\n\t JOptionPane.showMessageDialog(alignFrame,\n\t \"An error occured when exporting the PNG file.\",\n\t \"Error Exporting PNG File\",\n\t JOptionPane.ERROR_MESSAGE);\n\t ex.printStackTrace();\n\t }\n\n\t alignFrame.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n\t }\n\t }", "public void setAmbientAlpha(float alpha) {\n\t\tambientColor.a = alpha;\n\t\trayHandler.setAmbientLight(ambientColor);\n\t}", "abstract public boolean alphaConversion();", "@Field(1) \n\tpublic D2D1_PIXEL_FORMAT alphaMode(ValuedEnum<D2D1_ALPHA_MODE> alphaMode) {\n\t\tthis.io.setEnumField(this, 1, alphaMode);\n\t\treturn this;\n\t}", "public void removeAllOriginalTextWriter() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ORIGINALTEXTWRITER);\r\n\t}", "protected void addopqueueonBackground() {\n\t\tlv.setClickable(false);\n\t\tlvx.setClickable(false);\n\t\trefresh.setClickable(false);\n\t\tsearch.setClickable(false);\n\t\tsearch.setEnabled(false);\n\t\tlv.setEnabled(false);\n\t\tlvx.setEnabled(false);\n\t\trefresh.setEnabled(false);\n\t\tcancelButton.setClickable(false);\n\t\tcancelButton.setEnabled(false);\n\t\tlistbackground.setAlpha(0.5f);\n\t\tbackground.setAlpha(0.5f);\n\t}" ]
[ "0.62990505", "0.60984623", "0.5694035", "0.56268704", "0.5519385", "0.5457486", "0.5350618", "0.5321541", "0.5320708", "0.5248804", "0.51676625", "0.513858", "0.51114976", "0.5093209", "0.5024683", "0.50208724", "0.50073963", "0.4997482", "0.4990369", "0.49760115", "0.49467385", "0.49085075", "0.48927087", "0.48622715", "0.48613587", "0.48491797", "0.48382318", "0.48374498", "0.48279697", "0.4815247", "0.4794379", "0.47939178", "0.478274", "0.478046", "0.4769348", "0.47615588", "0.4726494", "0.47057617", "0.46909818", "0.4672894", "0.46725017", "0.46550077", "0.4653208", "0.4629412", "0.4629007", "0.46284324", "0.4621299", "0.461611", "0.46020645", "0.45874298", "0.45824474", "0.45822054", "0.45810452", "0.45715064", "0.45630035", "0.45604327", "0.45294926", "0.45271808", "0.45237556", "0.45199713", "0.45188072", "0.45173594", "0.45169464", "0.45050916", "0.4503918", "0.4500615", "0.4499043", "0.4492997", "0.44911218", "0.44771484", "0.44705486", "0.44674146", "0.4467143", "0.44633353", "0.44620985", "0.44504103", "0.44492695", "0.44489214", "0.44428", "0.44348592", "0.44307846", "0.44122338", "0.44086164", "0.4402936", "0.43994907", "0.43934083", "0.43916067", "0.4376107", "0.43721437", "0.43672013", "0.43632016", "0.4356405", "0.43550512", "0.43512845", "0.4337417", "0.43343195", "0.4332304", "0.43297973", "0.4325687", "0.43223718" ]
0.6547118
0
CHECKME AK: what's this for?
public void setCancelDelegate(NextPageDelegate cancelDelegate);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "public void method_4270() {}", "void check() throws YangException;", "private void m50366E() {\n }", "void check();", "void check();", "protected boolean func_70814_o() { return true; }", "public abstract int mo9754s();", "abstract int pregnancy();", "public final void mo51373a() {\n }", "@Override\n public void computeSatisfaction() {\n\n }", "public void mo21792Q() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract String check() throws Exception;", "public void m23075a() {\n }", "void mo57277b();", "public abstract boolean mo9234ar();", "public abstract void mo70713b();", "public abstract Object mo26777y();", "public abstract Integer gethourNeed();", "public void mo21877s() {\n }", "Aweme mo62993e();", "public abstract String mo13682d();", "public abstract String mo9752q();", "public void mo21787L() {\n }", "private final boolean e() {\n /*\n r15 = this;\n r2 = 0\n r1 = 0\n dtd r0 = r15.m // Catch:{ all -> 0x008e }\n if (r0 != 0) goto L_0x000d\n dtd r0 = new dtd // Catch:{ all -> 0x008e }\n r0.<init>() // Catch:{ all -> 0x008e }\n r15.m = r0 // Catch:{ all -> 0x008e }\n L_0x000d:\n int r0 = r15.k // Catch:{ all -> 0x008e }\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x039e\n dvk r3 = r15.g // Catch:{ all -> 0x008e }\n if (r3 == 0) goto L_0x0356\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 == 0) goto L_0x0025\n int r3 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != r4) goto L_0x0032\n L_0x0025:\n r3 = 2097152(0x200000, float:2.938736E-39)\n int r3 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = new byte[r3] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r15.h = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r15.i = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0032:\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r4\n int r6 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r7 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r8 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r9 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n boolean r0 = r7.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x00ac\n r0 = 1\n L_0x0047:\n java.lang.String r3 = \"GzipInflatingBuffer is closed\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r0 = 1\n r5 = r3\n L_0x004f:\n if (r0 == 0) goto L_0x02ef\n int r3 = r6 - r5\n if (r3 <= 0) goto L_0x02ef\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.ordinal() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n switch(r0) {\n case 0: goto L_0x00ae;\n case 1: goto L_0x0148;\n case 2: goto L_0x0171;\n case 3: goto L_0x01d7;\n case 4: goto L_0x01fc;\n case 5: goto L_0x0221;\n case 6: goto L_0x0256;\n case 7: goto L_0x0289;\n case 8: goto L_0x02a2;\n case 9: goto L_0x02e9;\n default: goto L_0x005e;\n } // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x005e:\n java.lang.AssertionError r0 = new java.lang.AssertionError // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4 + 15\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5.<init>(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = \"Invalid state: \"\n java.lang.StringBuilder r4 = r5.append(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.StringBuilder r3 = r4.append(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = r3.toString() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0087:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x008e:\n r0 = move-exception\n if (r2 <= 0) goto L_0x00ab\n dxe r3 = r15.a\n r3.a(r2)\n dxh r3 = r15.j\n dxh r4 = defpackage.dxh.BODY\n if (r3 != r4) goto L_0x00ab\n dvk r3 = r15.g\n if (r3 == 0) goto L_0x03c9\n dzo r2 = r15.d\n long r4 = (long) r1\n r2.d(r4)\n int r2 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n L_0x00ab:\n throw r0\n L_0x00ac:\n r0 = 0\n goto L_0x0047\n L_0x00ae:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x00ba\n r0 = 0\n goto L_0x004f\n L_0x00ba:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 35615(0x8b1f, float:4.9907E-41)\n if (r0 == r3) goto L_0x00d4\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Not in GZIP format\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00cd:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x00d4:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 8\n if (r0 == r3) goto L_0x00e6\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Unsupported compression method\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00e6:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.j = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvl r4 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 6\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r10.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r10\n if (r3 <= 0) goto L_0x03d9\n r0 = 6\n int r0 = java.lang.Math.min(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r10 = r10.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r11 = r11.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r10, r11, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = 6 - r0\n r3 = r0\n L_0x0118:\n if (r3 <= 0) goto L_0x013b\n r0 = 512(0x200, float:7.175E-43)\n byte[] r10 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x011f:\n if (r0 >= r3) goto L_0x013b\n int r11 = r3 - r0\n r12 = 512(0x200, float:7.175E-43)\n int r11 = java.lang.Math.min(r11, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r12 = r12.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.a(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r12 = r12.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.update(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r11\n goto L_0x011f\n L_0x013b:\n dvk r0 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 6\n defpackage.dvk.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA_LEN // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0148:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 4\n r3 = 4\n if (r0 == r3) goto L_0x0156\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0156:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0162\n r0 = 0\n goto L_0x004f\n L_0x0162:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.k = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0171:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 >= r3) goto L_0x017e\n r0 = 0\n goto L_0x004f\n L_0x017e:\n dvl r10 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x03d6\n int r0 = java.lang.Math.min(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r11 = r11.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r12 = r12.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r11, r12, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r4 - r0\n r3 = r0\n L_0x01a8:\n if (r3 <= 0) goto L_0x01cb\n r0 = 512(0x200, float:7.175E-43)\n byte[] r11 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x01af:\n if (r0 >= r3) goto L_0x01cb\n int r12 = r3 - r0\n r13 = 512(0x200, float:7.175E-43)\n int r12 = java.lang.Math.min(r12, r13) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r13 = r13.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.a(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r13 = r13.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.update(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r12\n goto L_0x01af\n L_0x01cb:\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.b(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01d7:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 8\n r3 = 8\n if (r0 != r3) goto L_0x01f5\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x01e1:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x01f3\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x01e1\n r0 = 1\n L_0x01ee:\n if (r0 != 0) goto L_0x01f5\n r0 = 0\n goto L_0x004f\n L_0x01f3:\n r0 = 0\n goto L_0x01ee\n L_0x01f5:\n dvm r0 = defpackage.dvm.HEADER_COMMENT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01fc:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 16\n r3 = 16\n if (r0 != r3) goto L_0x021a\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0206:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x0218\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x0206\n r0 = 1\n L_0x0213:\n if (r0 != 0) goto L_0x021a\n r0 = 0\n goto L_0x004f\n L_0x0218:\n r0 = 0\n goto L_0x0213\n L_0x021a:\n dvm r0 = defpackage.dvm.HEADER_CRC // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0221:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 2\n r3 = 2\n if (r0 != r3) goto L_0x024f\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0234\n r0 = 0\n goto L_0x004f\n L_0x0234:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n long r10 = r0.getValue() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = (int) r10 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 65535(0xffff, float:9.1834E-41)\n r0 = r0 & r3\n dvl r3 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == r3) goto L_0x024f\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Corrupt GZIP header\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x024f:\n dvm r0 = defpackage.dvm.INITIALIZE_INFLATER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0256:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x027e\n java.util.zip.Inflater r0 = new java.util.zip.Inflater // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 1\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.g = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0262:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x0284\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x027b:\n r0 = 1\n goto L_0x004f\n L_0x027e:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x0262\n L_0x0284:\n dvm r0 = defpackage.dvm.INFLATER_NEEDS_INPUT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x027b\n L_0x0289:\n int r0 = r9 + r5\n int r0 = r7.a(r8, r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r5 + r0\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r4 = defpackage.dvm.TRAILER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r4) goto L_0x029e\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5 = r3\n goto L_0x004f\n L_0x029e:\n r0 = 1\n r5 = r3\n goto L_0x004f\n L_0x02a2:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == 0) goto L_0x02c7\n r0 = 1\n L_0x02a7:\n java.lang.String r3 = \"inflater is null\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x02c9\n r0 = 1\n L_0x02b3:\n java.lang.String r3 = \"inflaterInput has unconsumed bytes\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r0 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 512(0x200, float:7.175E-43)\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x02cb\n r0 = 0\n goto L_0x004f\n L_0x02c7:\n r0 = 0\n goto L_0x02a7\n L_0x02c9:\n r0 = 0\n goto L_0x02b3\n L_0x02cb:\n r3 = 0\n r7.e = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.f = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r3 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.a(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x02e9:\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x004f\n L_0x02ef:\n if (r0 == 0) goto L_0x0301\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = defpackage.dvm.HEADER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x0334\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x0334\n L_0x0301:\n r0 = 1\n L_0x0302:\n r7.n = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.l // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.l = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r2 = r2 + r3\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.m = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r1 = r1 + r3\n if (r5 != 0) goto L_0x0342\n if (r2 <= 0) goto L_0x0332\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0332\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x0336\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0332:\n r0 = 0\n L_0x0333:\n return r0\n L_0x0334:\n r0 = 0\n goto L_0x0302\n L_0x0336:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0332\n L_0x0342:\n dtd r0 = r15.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dxv r3 = defpackage.dxw.a(r3, r4, r5) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.a(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r5\n r15.i = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x000d\n L_0x0356:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n if (r3 != 0) goto L_0x0386\n if (r2 <= 0) goto L_0x0378\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0378\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x037a\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0378:\n r0 = 0\n goto L_0x0333\n L_0x037a:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0378\n L_0x0386:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ all -> 0x008e }\n int r2 = r2 + r0\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n dtd r4 = r15.n // Catch:{ all -> 0x008e }\n dxv r0 = r4.a(r0) // Catch:{ all -> 0x008e }\n dtd r0 = (defpackage.dtd) r0 // Catch:{ all -> 0x008e }\n r3.a(r0) // Catch:{ all -> 0x008e }\n goto L_0x000d\n L_0x039e:\n if (r2 <= 0) goto L_0x03ba\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x03ba\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x03bd\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x03ba:\n r0 = 1\n goto L_0x0333\n L_0x03bd:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x03ba\n L_0x03c9:\n dzo r1 = r15.d\n long r4 = (long) r2\n r1.d(r4)\n int r1 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n goto L_0x00ab\n L_0x03d6:\n r3 = r4\n goto L_0x01a8\n L_0x03d9:\n r3 = r0\n goto L_0x0118\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxd.e():boolean\");\n }", "void m1864a() {\r\n }", "public void mo38117a() {\n }", "public abstract void mo27385c();", "default void checkInOk(String name) {\n }", "private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}", "public abstract void mo27386d();", "boolean hasUnknown73();", "void rustAndMahem() {\n //TODO: See rules\n }", "public abstract boolean mo66253b();", "public short getSak() { throw new RuntimeException(\"Stub!\"); }", "@Override\n public void func_104112_b() {\n \n }", "static int type_of_inx(String passed){\n\t\treturn 1;\n\t}", "public abstract void mo42331g();", "java.lang.String getHowToUse();", "java.lang.String getHowToUse();", "public abstract void mo42329d();", "static int type_of_cmc(String passed){\n\t\treturn 1;\n\t}", "public abstract void mo2624j();", "public void think() {\n\t\t\n\t}", "static int type_of_xthl(String passed){\n\t\treturn 1;\n\t}", "boolean hasUnknown2();", "boolean hasUnknown2();", "boolean hasUnknown2();", "static int type_of_stax(String passed){\n\t\treturn 1;\n\t}", "public void mo44053a() {\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "public abstract void mo56925d();", "void mo72113b();", "public abstract String mo41079d();", "public void mo12930a() {\n }", "void m5771e() throws C0841b;", "public abstract String mo118046b();", "public void mo23813b() {\n }", "public abstract void mo6549b();", "Object findOperatorNeedCheck();", "public void mo21786K() {\n }", "long invalidations();", "boolean internal();", "private void m50367F() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "static int size_of_sbb(String passed){\n\t\treturn 1;\n\t}", "final void checkForComodification() {\n\t}", "protected boolean func_70041_e_() { return false; }", "public boolean a()\r\n/* 598: */ {\r\n/* 599:597 */ return this.k;\r\n/* 600: */ }", "public abstract String mo9239aw();", "private static void check(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.check(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.check(java.lang.String):void\");\n }", "boolean hasUnknown1();", "boolean hasUnknown1();", "boolean hasUnknown1();", "boolean hasUnknown1();", "boolean hasUnknown1();", "boolean hasUnknown1();", "private CheckUtil(){ }", "static int type_of_ldax(String passed){\n\t\treturn 1;\n\t}", "private void level7() {\n }", "public void mo21795T() {\n }", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "public void test17_33() throws Exception {\n helperPass(new String[] { \"p.Foo\" }, \"getX\", \"p.Foo\", 14, 17, 14, 21);\n }", "int a(java.lang.String r8, com.google.ho r9, java.lang.StringBuilder r10, boolean r11, com.google.ae r12) {\n /*\n r7 = this;\n r1 = 0;\n r0 = r8.length();\t Catch:{ RuntimeException -> 0x0009 }\n if (r0 != 0) goto L_0x000b;\n L_0x0007:\n r0 = r1;\n L_0x0008:\n return r0;\n L_0x0009:\n r0 = move-exception;\n throw r0;\n L_0x000b:\n r2 = new java.lang.StringBuilder;\n r2.<init>(r8);\n r0 = J;\n r3 = 25;\n r0 = r0[r3];\n if (r9 == 0) goto L_0x001c;\n L_0x0018:\n r0 = r9.a();\n L_0x001c:\n r0 = r7.a(r2, r0);\n if (r11 == 0) goto L_0x0025;\n L_0x0022:\n r12.a(r0);\t Catch:{ RuntimeException -> 0x0040 }\n L_0x0025:\n r3 = com.google.aw.FROM_DEFAULT_COUNTRY;\t Catch:{ RuntimeException -> 0x0042 }\n if (r0 == r3) goto L_0x005e;\n L_0x0029:\n r0 = r2.length();\t Catch:{ RuntimeException -> 0x003e }\n r1 = 2;\n if (r0 > r1) goto L_0x0044;\n L_0x0030:\n r0 = new com.google.ao;\t Catch:{ RuntimeException -> 0x003e }\n r1 = com.google.dk.TOO_SHORT_AFTER_IDD;\t Catch:{ RuntimeException -> 0x003e }\n r2 = J;\t Catch:{ RuntimeException -> 0x003e }\n r3 = 26;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x003e }\n r0.<init>(r1, r2);\t Catch:{ RuntimeException -> 0x003e }\n throw r0;\t Catch:{ RuntimeException -> 0x003e }\n L_0x003e:\n r0 = move-exception;\n throw r0;\n L_0x0040:\n r0 = move-exception;\n throw r0;\n L_0x0042:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x003e }\n L_0x0044:\n r0 = r7.a(r2, r10);\n if (r0 == 0) goto L_0x0050;\n L_0x004a:\n r12.a(r0);\t Catch:{ RuntimeException -> 0x004e }\n goto L_0x0008;\n L_0x004e:\n r0 = move-exception;\n throw r0;\n L_0x0050:\n r0 = new com.google.ao;\n r1 = com.google.dk.INVALID_COUNTRY_CODE;\n r2 = J;\n r3 = 24;\n r2 = r2[r3];\n r0.<init>(r1, r2);\n throw r0;\n L_0x005e:\n if (r9 == 0) goto L_0x00d2;\n L_0x0060:\n r0 = r9.L();\n r3 = java.lang.String.valueOf(r0);\n r4 = r2.toString();\n r5 = r4.startsWith(r3);\n if (r5 == 0) goto L_0x00d2;\n L_0x0072:\n r5 = new java.lang.StringBuilder;\n r3 = r3.length();\n r3 = r4.substring(r3);\n r5.<init>(r3);\n r3 = r9.X();\n r4 = r7.o;\n r6 = r3.g();\n r4 = r4.a(r6);\n r6 = 0;\n r7.a(r5, r9, r6);\n r6 = r7.o;\n r3 = r3.f();\n r3 = r6.a(r3);\n r6 = r4.matcher(r2);\t Catch:{ RuntimeException -> 0x00ca }\n r6 = r6.matches();\t Catch:{ RuntimeException -> 0x00ca }\n if (r6 != 0) goto L_0x00af;\n L_0x00a5:\n r4 = r4.matcher(r5);\t Catch:{ RuntimeException -> 0x00cc }\n r4 = r4.matches();\t Catch:{ RuntimeException -> 0x00cc }\n if (r4 != 0) goto L_0x00bb;\n L_0x00af:\n r2 = r2.toString();\t Catch:{ RuntimeException -> 0x00ce }\n r2 = r7.a(r3, r2);\t Catch:{ RuntimeException -> 0x00ce }\n r3 = com.google.dz.TOO_LONG;\t Catch:{ RuntimeException -> 0x00ce }\n if (r2 != r3) goto L_0x00d2;\n L_0x00bb:\n r10.append(r5);\t Catch:{ RuntimeException -> 0x00d0 }\n if (r11 == 0) goto L_0x00c5;\n L_0x00c0:\n r1 = com.google.aw.FROM_NUMBER_WITHOUT_PLUS_SIGN;\t Catch:{ RuntimeException -> 0x00d0 }\n r12.a(r1);\t Catch:{ RuntimeException -> 0x00d0 }\n L_0x00c5:\n r12.a(r0);\n goto L_0x0008;\n L_0x00ca:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00cc }\n L_0x00cc:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00ce }\n L_0x00ce:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00d0 }\n L_0x00d0:\n r0 = move-exception;\n throw r0;\n L_0x00d2:\n r12.a(r1);\n r0 = r1;\n goto L_0x0008;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, com.google.ho, java.lang.StringBuilder, boolean, com.google.ae):int\");\n }", "static int type_of_jmp(String passed){\n\t\treturn 1;\n\t}", "public void mo21785J() {\n }", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "static int type_of_jpe(String passed){\n\t\treturn 1;\n\t}", "public abstract void mo42330e();", "public void mo38850q() {\n }", "@Override\r\n\tpublic void satisfy() {\n\t\t\r\n\t}", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "public boolean k_()\r\n/* 450: */ {\r\n/* 451:464 */ return false;\r\n/* 452: */ }", "public void mo55254a() {\n }" ]
[ "0.6045142", "0.59867805", "0.59867805", "0.59413254", "0.58739877", "0.57764274", "0.57600695", "0.5687729", "0.5687729", "0.56245726", "0.554257", "0.5508994", "0.5505902", "0.5491975", "0.5487144", "0.54753894", "0.54242885", "0.541892", "0.541249", "0.54086554", "0.53995776", "0.5392579", "0.5355177", "0.53240645", "0.53088623", "0.53049546", "0.5298644", "0.5290372", "0.52901226", "0.52882534", "0.5286048", "0.5282049", "0.52773166", "0.5271453", "0.52663237", "0.5257225", "0.524723", "0.5244722", "0.5239206", "0.5237706", "0.5232546", "0.5230949", "0.5230187", "0.5230187", "0.5227958", "0.52265435", "0.52248925", "0.52245045", "0.5223048", "0.5213185", "0.5213185", "0.5213185", "0.5201706", "0.520071", "0.51926506", "0.5190034", "0.5187706", "0.5185631", "0.51838017", "0.5182722", "0.5181788", "0.51810974", "0.5179603", "0.5175401", "0.5171218", "0.5160297", "0.51591104", "0.5158498", "0.51564425", "0.5155622", "0.515307", "0.5152712", "0.51487744", "0.5144204", "0.51416475", "0.5137986", "0.5137986", "0.5137986", "0.5137986", "0.5137986", "0.5137986", "0.5126429", "0.5126358", "0.512283", "0.5121762", "0.512127", "0.512127", "0.512012", "0.5117681", "0.5115298", "0.51150066", "0.5108709", "0.5108709", "0.5105913", "0.5102679", "0.5102474", "0.51018906", "0.5093308", "0.5093308", "0.5092371", "0.5091406" ]
0.0
-1
Preselect a query match value
public void setQueryMatchForKey(Object value, String selector, String key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void strictMatches(boolean b) { strict_matches_cbmi.setSelected(b); }", "public void resetSearchSelection() {\n this.quantSearchSelection = null;\n SelectionChanged(\"reset_quant_searching\");\n }", "public void select() {}", "public void testKeepSelectionOnFilterChange() {\n JXTable table = new JXTable(ascendingModel);\n int selectedRow = 0;\n table.setRowSelectionInterval(selectedRow, selectedRow);\n // sanity assert\n assertEquals(selectedRow, table.getSelectedRow());\n PatternFilter filter = new PatternFilter(\".*\", 0, 0);\n table.setFilters(new FilterPipeline(new Filter[] {filter}));\n assertEquals(ascendingModel.getRowCount(), table.getRowCount());\n assertEquals(\"table must keep selection after setting filter\", selectedRow, table.getSelectedRow());\n }", "public abstract void select(boolean select);", "public boolean select(String entry);", "private void setCurrentMatch(SingleMatch newMatch) {\n\t\tcurrentMatch = newMatch;\n\t}", "void setFirstResult(int offset);", "@Override\n protected void processSelect() {\n \n }", "@FXML\n void modifyProductSearchOnAction(ActionEvent event) {\n if (modifyProductSearchField.getText().matches(\"[0-9]+\")) {\n modProdAddTable.getSelectionModel().select(Inventory.partIndex(Integer.valueOf(modifyProductSearchField.getText())));\n } else {\n modProdAddTable.getSelectionModel().select(Inventory.partName(modifyProductSearchField.getText()));\n }\n //modProdAddTable.getSelectionModel().select(Inventory.partIndex(Integer.valueOf(modifyProductSearchField.getText())));\n }", "protected abstract Optional<T> getSingleSelection();", "private void setNewSelection(SuggestFieldSuggestionImpl curSuggestion) {\n \t\tassert curSuggestion != null : \"suggestion cannot be null\";\n \t\ttextBox.setText(curSuggestion.getReplacementString());\n \t\thideSuggestions();\n \t\tsearchSuggestionTrigger.cancel();\n \t\tscheduledSearch = false;\t\t\n //\t\tsetValue(curSuggestion, true);\n \t\tfireSuggestionEvent(curSuggestion);\n //\t\tthis.currentSuggestion = curSuggestion;\n \n \t}", "public void select(boolean a)\n {\n selected = a;\n }", "SelectAlternative getSelectAlternative();", "private void setPreSelectedFilters(String currentPlaceToken) {\n\t\tString gradeVal=AppClientFactory.getPlaceManager().getRequestParameter(\"flt.grade\",null);\n\t\tString subjectVal=AppClientFactory.getPlaceManager().getRequestParameter(\"flt.subjectName\",null);\n\t\tif(gradeVal!=null){\n\t\t\tsetSelectedFilter(eleGradePanelUc, gradeVal, \",\");\n\t\t\tsetSelectedFilter(middleGradePanelUc, gradeVal, \",\");\n\t\t\tsetSelectedFilter(highrGradePanelUc, gradeVal, \",\");\n\t\t}\n\t\tif(subjectVal!=null){\n\t\t\tsetSelectedFilter(subjectPanelUc, subjectVal, \" ~~\");\n\t\t}\n\t}", "public void setInitiallySearchByPrefixValue(boolean initiallySearchByPrefixValue) {\n this.initiallySearchByPrefixValue = initiallySearchByPrefixValue;\n }", "protected abstract void select();", "public void select(Object obj, boolean selectionFlag);", "public void select();", "public void prepareSelectOneRow() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareSelectOneRow();\n }", "void defSelect(Variable var){\r\n \t//if (isSelectAll()){\r\n \t\taddSelect(var);\r\n \t//}\r\n }", "IAccessPackageCatalogReferenceRequest select(final String value);", "public void setInitialSelection(final String imageName) {\n\t\tselection = imageName;\n\t\tinitialFloorName = selection;\n\n\t\tdoRefreshTable();\n\t}", "public Builder setSelect(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n select_ = value;\n onChanged();\n return this;\n }", "public void queryRecommended(Query query, float score, String original);", "public void select ();", "public void setSelected(boolean selected) {\r\n this.selected = selected;\r\n // make child matches inherit selection state\r\n// for (SpectrumMatch sm : spectrumMatches) {\r\n// sm.setSelected(selected);\r\n// }\r\n }", "protected NativeSearchQuery createBasicMatchQuery(String fieldName, String value) {\n MatchQueryBuilder queryBuilder = createMatchQueryBuilder(fieldName, value);\n return new NativeSearchQueryBuilder().withQuery(queryBuilder).build();\n }", "void setPartialMatch(Match partialMatch);", "private void searchAndSelect() {\n currIndex = 0;\n Highlighter h = jta.getHighlighter();\n h.removeAllHighlights();\n String text = jtfFind.getText();\n \n String jText = jta.getText();\n if (text.equals(\"\")) {\n jtfFind.setBackground(Color.WHITE);\n }\n else {\n //TestInfo.testWriteLn(\"Plain Text: \" + text);\n text = processEscapeChars(text);\n //TestInfo.testWriteLn(\"Escape Text: \" + text);\n int index = jText.toLowerCase().indexOf(text.toLowerCase());\n if (index == -1) {\n jtfFind.setBackground(Color.RED);\n }\n else {\n try {\n currIndex = index + 1;\n // An instance of the private subclass of the default highlight painter\n Highlighter.HighlightPainter myHighlightPainter = new MyHighlightPainter(Color.YELLOW);\n oldHighlightPainter = myHighlightPainter;\n h.addHighlight(index,index+text.length(),myHighlightPainter);\n jtfFind.setBackground(Color.WHITE);\n jta.setSelectionColor(Color.CYAN);\n //jta.selectAll();\n jta.select(index,index+text.length());\n lastHighlight[0] = index;\n lastHighlight[1] = index + text.length();\n //jta.setSelectionEnd(index + text.length());\n }\n catch (BadLocationException e) {\n //Do nothing\n }\n }\n }\n }", "void setCompleteMatch(Match completeMatch);", "public void setnombreMatch(int nombre_match);", "private void genInitialMatch(){\n for (int i = 0; i < rows; i++)\n for (int j = 0; j < cols; j++)\n if(source[i][j] == 0 && chosenInRow[i] == -1 && chosenInCol[j] == -1) {\n chosenInRow[i] = j;\n chosenInCol[j] = i;\n break;\n }\n }", "Dress selectByPrimaryKey(Integer did);", "@Override\n\tpublic vip selectByphone(String phonum) {\n\t\treturn this.vd.selectByphone(phonum);\n\t}", "public void updateSelection() {\n\t\t\n\t}", "Card selectByPrimaryKey(String card);", "private void selectOperator() {\n String query = \"\";\n System.out.print(\"Issue the Select Query: \");\n query = sc.nextLine();\n query.trim();\n if (query.substring(0, 6).compareToIgnoreCase(\"select\") == 0) {\n sqlMngr.selectOp(query);\n } else {\n System.err.println(\"No select statement provided!\");\n }\n }", "public void testSynchLeadSelection() {\n ListSelectionModel viewSelectionModel = new DefaultListSelectionModel();\n int selected = 0;\n viewSelectionModel.setSelectionInterval(selected, selected);\n FilterPipeline pipeline = null; //new FilterPipeline();\n // pipeline.assign(ascendingModelAdapter);\n SelectionMapper selectionMapper = new SelectionMapper(pipeline, viewSelectionModel);\n int anchor = selected;\n int lead = selected;\n assertAnchorLeadSynched(anchor, lead, viewSelectionModel, selectionMapper);\n anchor = 2;\n viewSelectionModel.setValueIsAdjusting(true);\n viewSelectionModel.setAnchorSelectionIndex(anchor);\n viewSelectionModel.setValueIsAdjusting(false);\n // pipeline.flush();\n assertAnchorLeadSynched(anchor, lead, viewSelectionModel, selectionMapper);\n \n }", "@Override\n public Query forValue(String value) {\n if (value == null) return null;\n for (TermQuery t : this._queries) {\n if (value.equals(t.getTerm().text())) return t;\n }\n // Why null?\n return new TermQuery(new Term(this._name, value));\n }", "private void prevSelect() {\n\t\tif (selectionIndex - 1 < 0) {\n\t\t\tselectionIndex = selections.size() - 1;\n\t\t} else {\n\t\tselectionIndex--;\n\t\t}\n\t\tselected.setVisible(true);\n\t\tselected = selections.get(selectionIndex);\n\t\t\n\t}", "public void select(final String value) {\n\t\tif (value == null) {\n\t\t\treturn;\n\t\t}\n\t\twait(action(c -> {\n\t\t\tfor (int i = 0; i < c.getModel().getSize(); i++) {\n\t\t\t\tif (value.equals(c.getModel().getElementAt(i).toString())) {\n\t\t\t\t\tc.setSelectedIndex(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}).withReportText(\"selecting element \" + value));\n\t\tAssertions.assertTrue(getCachedElement().getSelectedIndex() >= 0,\n\t\t\t\t() -> name + \": element must have been selected: \" + value);\n\t}", "public void selectDefaultValue()\n\t{\n\t\tcbCategorie.setSelectedIndex(1);\n\t\tcbCltOld.setSelectedIndex(0);\n\t\tcbClub.setSelectedIndex(0);\n\t\trbLincencie.setSelected(true);\n\t\trbMasculin.setSelected(true);\n\n\t}", "private void ReiniciarSeleccion()\n {\n if(Estado!=TURNOENEMIGO && Estado!=HUYENDO && Estado!=FINTURNO)\n {\n if(input.isKeyPressed(Input.KEY_ESCAPE))\n {\n estadoAnterior=OPCIONESBASE;\n Estado=OPCIONESBASE;\n sonidoSelect.play(1, 0.2f);\n }/**/\n }/*if(Estado!=TURNOENEMIGO && Estado!=HUYENDO && Estado!=FINTURNO)*/\n }", "TCpySpouse selectOneByExample(TCpySpouseExample example);", "@Override\n\tpublic void select() {\n\t}", "@Cacheable(value=\"netTest.questionCache\", key=\"'WareDao.selectByPK~ware:'+#pk\", unless=\"#result==null\")\n public Ware selectByPK(Long pk){\n \tif(pk==null)\n \t\treturn null;\n\t\tWare record = (Ware) this.queryForObject(\"Ware.selectByPK\", pk);\n\t\t// build assoic for cache\n\t\tif(record!=null){\n \t CacheSynchronizer.getInstance().buildAssoc(\"netTest.questionCache\", \n \t\t\t \"WareDao.selectByPK~\"+Ware.ObjectType+\":\"+pk);\n \t}\n\t\treturn record;\n }", "public void select()\n {\n super.select();\n SwingUtilities.invokeLater(() -> _sqlPanel.getSQLEntryPanel().requestFocus());\n }", "List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);", "public void enterSearchMode(String initialQueryTerm) {\n initSearchViews();\n if (isInSearchMode()) {\n return;\n }\n if (!TextUtils.isEmpty(initialQueryTerm)) {\n mSearchView.setQuery(initialQueryTerm, false);\n } else {\n mSearchView.setQuery(\"\", false);\n }\n mSearchView.setQueryHint(mCallback.getSearchHint());\n\n mSearchMode = MODE_SEARCH;\n\n // Focus on the search input box and throw up the IME if specified.\n // TODO: HACK. this is a workaround IME not popping up.\n mSearchView.setIconified(false);\n\n refresh();\n mCallback.onSearchStarted();\n }", "public void resetSelectPresentation();", "public void selectUsername(String username) {\n selectedUsername = username;\n selectedDomain = null; //if option for filtering by username is selected, discard domain filter\n }", "public T caseQuery(Query object)\n {\n return null;\n }", "Trueorfalse selectByPrimaryKey(Integer tfId);", "public IDeviceManagementScriptDeviceStateRequest select(final String value) {\n getQueryOptions().add(new com.microsoft.graph.options.QueryOption(\"$select\", value));\n return (DeviceManagementScriptDeviceStateRequest)this;\n }", "private synchronized String prepareSelection(DataSource dataSource) {\n String selection = \"\";\n if (dataSource.getId() != null) {\n if (!selection.equals(\"\")) selection += \" AND \";\n selection += C_DATASOURCE_ID + \"=?\";\n }\n if (dataSource.getType() != null) {\n if (!selection.equals(\"\")) selection += \" AND \";\n selection += C_DATASOURCE_TYPE + \"=?\";\n }\n if (dataSource.getPlatform() != null && dataSource.getPlatform().getId() != null) {\n if (!selection.equals(\"\")) selection += \" AND \";\n selection += C_PLATFORM_ID + \"=?\";\n }\n if (dataSource.getPlatform() != null && dataSource.getPlatform().getType() != null) {\n if (!selection.equals(\"\")) selection += \" AND \";\n selection += C_PLATFROM_TYPE + \"=?\";\n }\n if (dataSource.getPlatformApp() != null && dataSource.getPlatformApp().getId() != null) {\n if (!selection.equals(\"\")) selection += \" AND \";\n selection += C_PLATFORMAPP_ID + \"=?\";\n }\n if (dataSource.getPlatformApp() != null && dataSource.getPlatformApp().getType() != null) {\n if (!selection.equals(\"\")) selection += \" AND \";\n selection += C_PLATFROMAPP_TYPE + \"=?\";\n }\n if (dataSource.getApplication() != null && dataSource.getApplication().getId() != null) {\n if (!selection.equals(\"\")) selection += \" AND \";\n selection += C_APPLICATION_ID + \"=?\";\n }\n if (dataSource.getApplication() != null && dataSource.getApplication().getType() != null) {\n if (!selection.equals(\"\")) selection += \" AND \";\n selection += C_APPLICATION_TYPE + \"=?\";\n }\n if (selection.equals(\"\"))\n return null;\n return selection;\n }", "@Override\n\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\tSystem.out.println(\"Nothing selected\");\n\t\tsearchText =\"Restaurants\";\n\t\t\n\t}", "DbQuery setStartAtFilter(int value) {\n return setStartAtFilter((double) value);\n }", "@Nonnull\n public PersonAnnotationRequest select(@Nonnull final String value) {\n addSelectOption(value);\n return this;\n }", "@Override\n protected void onResume() {\n CustomLog.e(\"AA\", \"FDFDSF\");\n intent1 = getIntent();\n if (intent1 != null) {\n if (intent1.getStringExtra(\"key\").equals(\"1\"))\n ;\n // setSelect(pagecount);\n else {\n setSelect(1);\n intent1.putExtra(\"key\", \"1\");\n }\n }\n\n super.onResume();\n }", "public Query startsWith(String key, Object value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.REGEX), key, \"^\" + value);\n return this;\n }", "@Override\n protected void onPreExecute() {\n wordMatches.getMatches().clear();\n stateObservable.setValue(States.searching);\n }", "String searchBoxUserRecordSelected();", "public T caseSelect(Select object) {\n\t\treturn null;\n\t}", "@Override\n public KlantBedrijf select(int id) {\n return null;\n }", "public void setMatched(boolean matched) {\r\n this.matched = matched;\r\n }", "@Override\n public void actionPerformed(ActionEvent e) //\n {\n if(!flag)\n rs.setRowFilter(RowFilter.regexFilter(FilterText.getText(), 0, selectedColumn.getModelIndex()));\n }", "private void select(String tableName, String colName, String value,\n boolean usePar) {\n String query;\n \n if (usePar == true){\n // Parenthesis will surrond the value making it a string\n query = \"SELECT * FROM \" + tableName + \" WHERE \" + colName + \" = \\'\" + value + \"\\'\";\n }\n else{\n // Parenthesis will not surround the value\n query = \"SELECT * FROM \" + tableName + \" WHERE \" + colName + \" = \" + value;\n }\n \n this.executeSelect(query);\n }", "public void setMatched(String matched) {\r\n\t\tthis.matched = matched;\r\n\t}", "private void select() {\n\t\tif (selected.equals(mealSelect) && !eating) {\n\t\t\tmakeMeal();\n\t\t} else if (selected.equals(snackSelect) && !eating) {\n\t\t\tmakeSnack();\n\t\t} else if (selected.equals(medicineSelect) && !eating){\n\t\t\tmakeMedicine();\n\t\t} else if (selected.equals(playSelect) && !eating){\n\t\t\tmakePlay();\n\t\t}\n\t\t\n\t}", "Ad selectOneByExample(AdExample example);", "public void retreat() {\n if( mMatches.hasPrevious() ) {\n setCurrent( mMatches.previous() );\n }\n }", "public void reset(QueryDescriptor queryDescriptor)\n {\n DemoPageDef.SavedSearchDef savedSearchDef = \n ((DemoQueryDescriptor)queryDescriptor).getSavedSearchDef();\n List<DemoPageDef.SearchFieldDef> origSearchFieldList = savedSearchDef.getSearchFields();\n List<DemoPageDef.SearchFieldDef> removableFields = \n new ArrayList<DemoPageDef.SearchFieldDef>();\n for(DemoPageDef.SearchFieldDef searchField : savedSearchDef.getSearchFields())\n {\n if (searchField.isRemovable())\n {\n removableFields.add(searchField);\n }\n else\n {\n searchField.resetValue();\n searchField.setOperator(searchField.getDefaultOperator()); \n }\n }\n origSearchFieldList.removeAll(removableFields);\n \n // Conjunction\n savedSearchDef.setSelectedConjunction(savedSearchDef.getDefaultConjunction());\n DemoQueryDescriptor demoDescriptor = (DemoQueryDescriptor)queryDescriptor;\n demoDescriptor.setConjunctionCriterion(new DemoConjunctionCriterion(savedSearchDef));\n }", "private void setSelector(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n selector_ = value;\n }", "@Nonnull\n public SynchronizationJobCollectionRequest select(@Nonnull final String value) {\n addSelectOption(value);\n return this;\n }", "private void selectFirstAirfield(final Nation nation) {\n view.getAirfields().get(nation).getSelectionModel().selectFirst();\n }", "protected String in(String sql, String key){\n boolean isNeedDynamic = this.isNeedDynamic(key);\n if (isNeedDynamic) {\n LogUtils.debug(\"{} is equals to set default value, be delete\", key);\n return \" ( 1 = 1 or '1' = ?) \";\n }\n return sql;\n }", "public void setQuery(java.lang.CharSequence value) {\n this.query = value;\n }", "public T caseSelectFrom(SelectFrom object)\n {\n return null;\n }", "private void selectLastUsed() {\n // Set the initial selection of the table:\n if (initSelection != null) {\n boolean found = false;\n for (int i = 0; i < table.getRowCount(); i++) {\n if (tableModel.getElementAt(i).getFile().getPath().\n equals(initSelection)) {\n table.setRowSelectionInterval(i, i);\n found = true;\n break;\n }\n }\n if (!found && (table.getRowCount() > 0)) {\n table.setRowSelectionInterval(0, 0);\n }\n }\n else {\n if (table.getRowCount() > 0) {\n table.setRowSelectionInterval(0, 0);\n }\n }\n }", "Kaiwa selectByPrimaryKey(String maht);", "public void select(String regex) {\n inputter.select(regex);\n }", "@Override\n\tpublic int getCurrentCriterion() {\n\t\treturn 0;\n\t}", "public void setFirstResult(int val) throws HibException;", "@Override\r\n\t\tpublic void onIndexSelect(String str) {\n\t\t\tsearch_contact_suoyin.setVisibility(View.VISIBLE);\r\n\t\t\tsearch_contact_suoyin.setText(str);\r\n\t\t\tfor(int i = 0; i < listItems.size(); i++){\r\n\t\t\t\tif(listItems.get(i).getSuoyin().equals(str)){\r\n\t\t\t\t\tsearch_contact_listview.setSelection(i);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public IPersonNameRequest select(final String value) {\n getQueryOptions().add(new com.microsoft.graph.options.QueryOption(\"$select\", value));\n return (PersonNameRequest)this;\n }", "@VisibleForTesting\n protected void applyProvisionalSelection() {\n mSelection.addAll(mProvisionalSelection);\n mProvisionalSelection.clear();\n }", "@FXML\n private void resetFilters() {\n regionFilterComboBox.getSelectionModel().select(regionString);\n organFilterComboBox.getSelectionModel().select(organString);\n }", "public void setHitQueryContext(HitQueryContext context) {\n int before = context.getCaptureRegisterNumber();\n passHitQueryContextToClauses(context);\n if (context.getCaptureRegisterNumber() == before) {\n // Our clauses don't capture any groups; optimize\n childClausesCaptureGroups = false;\n }\n }", "public void assertSelectedValue(final String selectLocator, final String valuePattern);", "void setStartSearch(int startSearch);", "RepStuLearning selectByPrimaryKey(RepStuLearningKey key);", "public void beginSelecting() {\r\n selecting = true;\r\n minX = 0;\r\n maxX = 0;\r\n }", "public K select(int k);", "private void filterRecyvlerView() {\n String query = etSearch.getText().toString();\n String[] querySplited = query.split(\" \");\n\n if(query.equals(\"\")){\n rvPostalCodes.removeAllViews();\n adapter.setRealmResults(Realm.getDefaultInstance().where(Locations.class).findAll());\n }else{rvPostalCodes.removeAllViews();\n if(querySplited.length == 1) {\n adapter = new LocationsAdapter(fragment, Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class)\n .contains(\"postalCode\", querySplited[0], Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[0], Case.INSENSITIVE).findAll());\n rvPostalCodes.setAdapter(adapter);\n\n\n }else if(querySplited.length == 2){\n adapter = new LocationsAdapter(fragment, Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class)\n .contains(\"postalCode\", querySplited[0], Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[0],Case.INSENSITIVE)\n .contains(\"postalCode\", querySplited[1],Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[1],Case.INSENSITIVE).or()\n .findAll());\n rvPostalCodes.setAdapter(adapter);\n }else if(querySplited.length == 3){\n adapter = new LocationsAdapter(getTargetFragment(), Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class)\n .contains(\"postalCode\", querySplited[0], Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[0],Case.INSENSITIVE)\n .contains(\"postalCode\", querySplited[1],Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[1],Case.INSENSITIVE)\n .contains(\"postalCode\", querySplited[2],Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[2],Case.INSENSITIVE).or()\n .findAll());\n rvPostalCodes.setAdapter(adapter);\n }\n }\n\n }", "@FXML\n private void handleFilter(ActionEvent event) {\n if(!inSearch){\n btnFind.setImage(imageC);\n //query here\n String querry = txtInput.getText();\n if(querry !=null){\n obsSongs = FXCollections.observableArrayList(bllfacade.querrySongs(querry));\n lstSongs.setItems(obsSongs);\n }\n inSearch = true;\n }else{\n btnFind.setImage(imageF); \n txtInput.setText(\"\");\n init();\n inSearch = false;\n }\n }", "public ISalesOrderLineRequest select(final String value) {\n getQueryOptions().add(new com.microsoft.graph.options.QueryOption(\"$select\", value));\n return (SalesOrderLineRequest)this;\n }", "CfgSearchRecommend selectByPrimaryKey(Long id);", "public void selectQuery(String query) {\n\t\tQuery q = QueryFactory.create(query);\n\t\tQueryExecution qe = QueryExecutionFactory.create(q, model);\n\t\tResultSet result = qe.execSelect();\n\t\tprintResultSet(result);\n\t\tqe.close();\n\t}", "public Relation select(Condition c) throws RelationException;" ]
[ "0.5247668", "0.5213187", "0.5103376", "0.5002707", "0.49992913", "0.49422088", "0.49018794", "0.4892972", "0.485427", "0.4815259", "0.4813005", "0.480321", "0.4800359", "0.47876012", "0.4770682", "0.47615677", "0.47580987", "0.47493395", "0.47492152", "0.47342592", "0.47256202", "0.467667", "0.46700862", "0.46544853", "0.4649105", "0.46422318", "0.4633738", "0.46331534", "0.46304125", "0.46269795", "0.46180126", "0.46155325", "0.46033126", "0.4599631", "0.45913953", "0.45907915", "0.4590742", "0.458604", "0.45842317", "0.45809945", "0.45805404", "0.45781985", "0.4573584", "0.45715785", "0.45665157", "0.4553576", "0.45496014", "0.45462176", "0.45421416", "0.45408246", "0.4540346", "0.4539803", "0.4534189", "0.45116177", "0.4510652", "0.4502103", "0.45011693", "0.44911972", "0.4487107", "0.4482517", "0.44812936", "0.44801223", "0.44788465", "0.44741777", "0.44737682", "0.44726956", "0.44720846", "0.44720167", "0.4467657", "0.44664562", "0.44559556", "0.44555575", "0.44520608", "0.44436884", "0.44422197", "0.4439759", "0.44390976", "0.44389153", "0.44336507", "0.44225046", "0.44222042", "0.4421048", "0.4416489", "0.44162154", "0.44134307", "0.44129357", "0.4406128", "0.44034055", "0.4399366", "0.4393918", "0.43930236", "0.4381158", "0.43765298", "0.4367456", "0.43667206", "0.43636715", "0.4361554", "0.43592963", "0.43582097", "0.4356789" ]
0.5368048
0
Returns the query datasource. Not having this is annoying...
public EODataSource queryDataSource();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDatasource()\r\n\t{\r\n\t\treturn _dataSource;\r\n\t}", "String getDataSource();", "public DataSource getDatasource() {\n return datasource;\n }", "@Override\n public String getDataSource()\n {\n return dataSource;\n }", "public static DataSource getDataSource() throws SQLException {\n return getDataSource(FxContext.get().getDivisionId(), true);\n }", "public String getDataSource() {\n return dataSource;\n }", "@Override\n\tpublic DataSource getDataSource() {\t\t\n\t\treturn dataSource;\n\t}", "public static MyTownDatasource getDatasource() {\n return datasource;\n }", "protected DataSource getDataSource() {\n\t\treturn dataSource;\n\t}", "public DataSource getDataSource() {\n return datasource;\n }", "public String getDataSource() {\n return dataSource;\n }", "protected abstract String getDatasourceName();", "public DataSource getDataSource() {\n return _dataSource;\n }", "public synchronized String getDataSource(){\n\t\treturn dataSource;\n\t}", "EDataSourceType getDataSource();", "public DataSource getDataSource()\n\t{\n\t\tLOGGER.info(\"Getting DataSource object\");\n\t\treturn this.dataSource;\n\t}", "public static JRDataSource getDataSource() {\n\t\treturn new CustomDataSource(1000);\n\t}", "public DataSource getDataSource() {\n\t\treturn this.dataSource;\n\t}", "public DataSourceListType invokeQueryDatasources() throws TsResponseException {\n checkSignedIn();\n final String url = getUriBuilder().path(QUERY_DATA_SOURCES).build(m_siteId).toString();\n final TsResponse response = get(url);\n return response.getDatasources();\n }", "public DataSource getDataSource() {\r\n return dataSource;\r\n }", "public static DataSource getDs() {\n return ds;\n }", "public DataSource getDataSource() {\n return dataSource;\n }", "public DataSource getDataSource() {\n return dataSource;\n }", "public DataSource getDataSource(final QueriesConfig qryConfig) throws DBMissingValueException {\n validate(qryConfig);\n\n final var connectionString = qryConfig.getConnectionString();\n\n var dataSource = DATA_SOURCES.get(connectionString);\n\n if (dataSource==null) {\n try {\n LOCK.lock();\n dataSource = DATA_SOURCES.get(connectionString);\n if (dataSource==null) {\n LOG.trace(String.format(\"Registering %s to pool.\", connectionString));\n Class.forName(qryConfig.getJdbcDriver());\n\n final var basicDataSource = new BasicDataSource();\n basicDataSource.setUrl(connectionString);\n\n if (qryConfig.getWindowsAuthentication()==null) {\n basicDataSource.setUsername(qryConfig.getUsername());\n basicDataSource.setPassword(qryConfig.getPassword());\n }\n\n basicDataSource.setMinIdle(dbPoolConfig.getMinIdle());\n basicDataSource.setMaxIdle(dbPoolConfig.getMaxIdle());\n basicDataSource.setMaxOpenPreparedStatements(dbPoolConfig.getMaxOpenPreparedStatements());\n dataSource = basicDataSource;\n\n DATA_SOURCES.put(connectionString, dataSource);\n }\n } catch (ClassNotFoundException e) {\n throw new RuntimeException(e);\n } finally {\n LOCK.unlock();\n }\n }\n else {\n LOG.trace(String.format(\"Retrieve %s from pool.\", connectionString));\n }\n\n return dataSource;\n }", "String afficherDataSource();", "public String getDataSourceName()\n {\n return dataSourceName;\n }", "public DataSource getDataSource() {\n return dataSource;\n }", "public DataSource getDataSource() {\n\t\treturn dataSource;\n\t}", "public String getDatasourceName()\n {\n return m_dsName;\n }", "public DataSource getConfigDatasource() {\n return configDatasource;\n }", "public int getDatasource() throws java.rmi.RemoteException;", "@Override\n\tpublic DataSource getDataSource() {\n\t\tif(this.dataSource == null) {\n\t\t\ttry {\n\t\t\t\tInitialContext initialContext = new InitialContext();\n\t\t\t\tthis.dataSource = (DataSource) initialContext.lookup(\"java:comp/env/jdbc/DefaultDB\");\n\t\t\t} catch(NamingException e){\n\t\t\t\tthrow new IllegalStateException(e);\n\t\t\t}\n\t\t}\n\t\treturn this.dataSource;\n\t}", "public String getDatasourceType() {\r\n return IPentahoConnection.XML_DATASOURCE;\r\n }", "DataSources retrieveDataSources() throws RepoxException;", "public SimpleDriverDataSource getDataSource() {\n\t\tString path = context.getRealPath(\"/\");\n\t\tString dbpath = path + Utility.DB_PATH;\n\t\tSimpleDriverDataSource dataSource = new SimpleDriverDataSource();\n\t\tFileInputStream fileInputStreamSystemSettings = null;\n\t\tProperties prop = new Properties();\n\t\ttry {\n\t\t\tfileInputStreamSystemSettings = new FileInputStream(dbpath);\n\t\t\ttry {\n\t\t\t\tprop.load(fileInputStreamSystemSettings);\n\t\t\t\ttry {\n\t\t\t\t\t// set datasource parameters\n\t\t\t\t\t// set driver\n\t\t\t\t\tdataSource.setDriver(new com.mysql.jdbc.Driver());\n\t\t\t\t\t// set username\n\t\t\t\t\tdataSource.setUsername(prop.getProperty(\"jdbc.username\"));\n\t\t\t\t\t// set password\n\t\t\t\t\tdataSource.setPassword(prop.getProperty(\"jdbc.password\"));\n\t\t\t\t\t// set jdbc url\n\t\t\t\t\tdataSource.setUrl(prop.getProperty(\"jdbc.url\"));\n\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tfileInputStreamSystemSettings.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn dataSource;\n\t}", "public DataSource getDataSource(CConnection connection)\n\t{\n\t\t//throw new UnsupportedOperationException(\"Not supported/implemented\");\n\t\tif (m_ds != null)\n\t\t\treturn m_ds;\n\t\t\n\t\t//org.postgresql.ds.PGPoolingDataSource ds = new org.postgresql.ds.PGPoolingDataSource();\n\t\torg.postgresql.jdbc3.Jdbc3PoolingDataSource ds = new org.postgresql.jdbc3.Jdbc3PoolingDataSource();\n\t\tds.setDataSourceName(\"CompiereDS\");\n\t\tds.setServerName(connection.getDbHost());\n\t\tds.setDatabaseName(connection.getDbName());\n\t\tds.setUser(connection.getDbUid());\n\t\tds.setPassword(connection.getDbPwd());\n\t\tds.setPortNumber(connection.getDbPort());\n\t\tds.setMaxConnections(50);\n\t\tds.setInitialConnections(20);\n\t\t\n\t\t//new InitialContext().rebind(\"DataSource\", source);\t\t\n\t\tm_ds = ds;\n\t\t\n\t\treturn m_ds;\n\t}", "public ContactQuery getQuerySource()\n {\n return (ContactQuery) source;\n }", "@Override\n public DataSource getDataSource() {\n\n // PostgreSQL does not provide connection pool (as of version 42.1.3) so make one using Apache Commons DBCP \n ds = new BasicDataSource();\n\n // max number of active connections\n Integer maxTotal = AtsSystemProperties.getPropertyAsNumber(\"dbcp.maxTotal\");\n if (maxTotal == null) {\n maxTotal = 8;\n } else {\n log.info(\"Max number of active connections is \"\n + maxTotal);\n }\n ds.setMaxTotal(maxTotal);\n\n // wait time for new connection\n Integer maxWaitMillis = AtsSystemProperties.getPropertyAsNumber(\"dbcp.maxWaitMillis\");\n if (maxWaitMillis == null) {\n maxWaitMillis = 60 * 1000;\n } else {\n log.info(\"Connection creation wait is \"\n + maxWaitMillis\n + \" msec\");\n }\n ds.setMaxWaitMillis(maxWaitMillis);\n\n String logAbandoned = System.getProperty(\"dbcp.logAbandoned\");\n if (logAbandoned != null && (\"true\".equalsIgnoreCase(logAbandoned))\n || \"1\".equalsIgnoreCase(logAbandoned)) {\n String removeAbandonedTimeoutString = System.getProperty(\"dbcp.removeAbandonedTimeout\");\n int removeAbandonedTimeout = (int) ds.getMaxWaitMillis() / (2 * 1000);\n if (!StringUtils.isNullOrEmpty(removeAbandonedTimeoutString)) {\n removeAbandonedTimeout = Integer.parseInt(removeAbandonedTimeoutString);\n }\n log.info(\n \"Will log and remove abandoned connections if not cleaned in \"\n + removeAbandonedTimeout\n + \" sec\");\n // log not closed connections\n ds.setLogAbandoned(true); // issue stack trace of not closed connection\n ds.setAbandonedUsageTracking(true);\n ds.setLogExpiredConnections(true);\n ds.setRemoveAbandonedTimeout(removeAbandonedTimeout);\n ds.setRemoveAbandonedOnBorrow(true);\n ds.setRemoveAbandonedOnMaintenance(true);\n ds.setAbandonedLogWriter(new PrintWriter(System.err));\n }\n ds.setValidationQuery(\"SELECT 1\");\n ds.setDriverClassName(getDriverClass().getName());\n ds.setUsername(user);\n ds.setPassword(password);\n ds.setUrl(getURL());\n return ds;\n }", "public String getDataSourceType () {\n return dataSourceType;\n }", "public com.microsoft.schemas.sharepoint.dsp.DSQuery getDsQuery() {\r\n return dsQuery;\r\n }", "public DataSourceDT getTheDataSourceDT()\n {\n return theDataSourceDT;\n }", "@Override\n public Set<Datasource> getDatasources() throws ConfigurationException {\n Context context = getContext();\n Set<Datasource> result = new HashSet<>();\n int length = context.getResource().length;\n if (tomcatVersion.isAtLeast(TomcatVersion.TOMCAT_55)) {\n // Tomcat 5.5.x or Tomcat 6.0.x\n for (int i = 0; i < length; i++) {\n String type = context.getResourceType(i);\n if (\"javax.sql.DataSource\".equals(type)) { // NOI18N\n String name = context.getResourceName(i);\n String username = context.getResourceUsername(i);\n String url = context.getResourceUrl(i);\n String password = context.getResourcePassword(i);\n String driverClassName = context.getResourceDriverClassName(i);\n if (name != null && username != null && url != null && driverClassName != null) {\n // return the datasource only if all the needed params are non-null except the password param\n result.add(new TomcatDatasource(username, url, password, name, driverClassName));\n }\n }\n }\n if (tomeeVersion != null) {\n TomeeResources actualResources = getResources(false);\n if (actualResources != null) {\n result.addAll(getTomeeDatasources(actualResources));\n }\n }\n } else {\n // Tomcat 5.0.x\n ResourceParams[] resourceParams = context.getResourceParams();\n for (int i = 0; i < length; i++) {\n String type = context.getResourceType(i);\n if (\"javax.sql.DataSource\".equals(type)) { // NOI18N\n String name = context.getResourceName(i);\n // find the resource params for the selected resource\n for (int j = 0; j < resourceParams.length; j++) {\n if (name.equals(resourceParams[j].getName())) {\n Parameter[] params = resourceParams[j].getParameter();\n HashMap paramNameValueMap = new HashMap(params.length);\n for (Parameter parameter : params) {\n paramNameValueMap.put(parameter.getName(), parameter.getValue());\n }\n String username = (String) paramNameValueMap.get(\"username\"); // NOI18N\n String url = (String) paramNameValueMap.get(\"url\"); // NOI18N\n String password = (String) paramNameValueMap.get(\"password\"); // NOI18N\n String driverClassName = (String) paramNameValueMap.get(\"driverClassName\"); // NOI18N\n if (username != null && url != null && driverClassName != null) {\n // return the datasource only if all the needed params are non-null except the password param\n result.add(new TomcatDatasource(username, url, password, name, driverClassName));\n }\n }\n }\n }\n }\n }\n return result;\n }", "static public DataSource getDataSource(Context appContext) {\n // As per\n // http://goo.gl/clVKsG\n // we can rely on the application context never changing, so appContext is only\n // used once (during initialization).\n if (ds == null) {\n //ds = new InMemoryDataSource();\n //ds = new GeneratedDataSource();\n ds = new CacheDataSource(appContext, 20000);\n }\n \n return ds;\n }", "private DataSource getDataSource() throws PermissionException {\n if (dataSource != null) {\n return dataSource;\n }\n\n if (dataSourceService == null) {\n throw new PermissionException(\"Datasource service is null. Cannot retrieve datasource \" +\n permissionConfig.getDatasourceName());\n }\n\n try {\n dataSource = (DataSource) dataSourceService.getDataSource(permissionConfig.getDatasourceName());\n } catch (DataSourceException e) {\n throw new PermissionException(\"Unable to retrieve the datasource: \" +\n permissionConfig.getDatasourceName(), e);\n }\n return dataSource;\n }", "public Querytool getQuery() {\n return localQuerytool;\n }", "public ArrayList getDataSources() {\n return dataSources;\n }", "public void setDatasource( String ds )\n {\n datasource = ds;\n }", "public DataSourceFactory getDataSourceFactory() {\n return database;\n }", "public List getRequestedDataSources() {\r\n\t\treturn requestedDataSources;\r\n\t}", "public String getDataSourceUri() {\n\t\treturn dataSourceUri;\n\t}", "public RDFCompositeDataSource getDatabase() //readonly\n\t{\n\t\tif(rdfCompositeDataSource == null) {\n\t\t\tString attr = StringUtils.trimToNull(getAttribute(\"datasources\"));\n\t\t\tif(attr != null) {\n\t\t\t\tRDFService rdfService = null; //TODO get the RDFService\n\t\t\t\trdfCompositeDataSource = new RDFCompositeDataSourceImpl(rdfService); //TODO should we ask the RDFService for this?\n\t\t\t\tfor(String uri : attr.split(\"\\\\s+\")) {\n\t\t\t\t\trdfCompositeDataSource.addDataSource(rdfService.getDataSource(uri));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn rdfCompositeDataSource;\n\t}", "public static DataSource getDataSource(){\n try {\n Context context = new InitialContext();\n DataSource ds = (DataSource) context.lookup(\"jdbc/oracle\");\n return ds;\n } catch (NamingException ex) {\n Logger.getLogger(DataSourceBean.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n }", "public DataSourceRegistry getDataSourceRegistry();", "public ArrayList<DataSource> getDatasources() {\n return datasources;\n }", "public String getDataSourceName() {\n\treturn strDSName;\n }", "private DataSource dereference() throws SQLException\n {\n\tObject jndiName = this.getJndiName();\n\tHashtable jndiEnv = this.getJndiEnv();\n\ttry\n\t {\n\t\tInitialContext ctx;\n\t\tif (jndiEnv != null)\n\t\t ctx = new InitialContext( jndiEnv );\n\t\telse\n\t\t ctx = new InitialContext();\n\t\tif (jndiName instanceof String)\n\t\t return (DataSource) ctx.lookup( (String) jndiName );\n\t\telse if (jndiName instanceof Name)\n\t\t return (DataSource) ctx.lookup( (Name) jndiName );\n\t\telse\n\t\t throw new SQLException(\"Could not find ConnectionPoolDataSource with \" +\n\t\t\t\t\t \"JNDI name: \" + jndiName);\n\t }\n\tcatch( NamingException e )\n\t {\n\t\t//e.printStackTrace();\n\t\tif ( logger.isLoggable( MLevel.WARNING ) )\n\t\t logger.log( MLevel.WARNING, \"An Exception occurred while trying to look up a target DataSource via JNDI!\", e );\n\t\tthrow SqlUtils.toSQLException( e ); \n\t }\n }", "public static DataSource getNonTXDataSource() throws SQLException {\n return getDataSource(FxContext.get().getDivisionId(), false);\n }", "@Override\r\n protected boolean isUseDataSource() {\r\n return true;\r\n }", "protected String getDataSourceId() {\n return getDataSourceId(sourceComboBox);\n }", "public int getDatasource() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Integer) __getCache(\"datasource\")).intValue());\n }", "public void setDatasource(DataSource source) {\n datasource = source;\n }", "public abstract Statement queryToRetrieveData();", "public String readDataSourcePreferences(){\n\n String dataSourceURL = \"\";\n\n // Get the preferences\n final SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences( context );\n\n Boolean dataSourceEnabled = sharedPreferences.getBoolean(\"data_source_check\", false);\n String dataSourcePreference = sharedPreferences.getString( \"data_source\", \"\" );\n\n if ( dataSourceEnabled ) {\n Log.d(\"DATA SOURCE\", sharedPreferences.getString(\"data_source\", \"\"));\n if ( dataSourcePreference.equals( \"Ninguna\" ) ) {\n dataSourceURL = \"http://opendata.caceres.es/sparql\"; // default value\n }\n else {\n dataSourceURL = dataSourcePreference;\n }\n }\n else {\n dataSourceURL = \"http://opendata.caceres.es/sparql\"; // default value\n }\n\n return dataSourceURL;\n }", "@Bean(name = \"dataSource\")\n\tpublic DataSource dataSource() {\n\t\tEmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();\n\t\tEmbeddedDatabase db = builder.setType(EmbeddedDatabaseType.HSQL).addScript(\"db/create-db.sql\").addScript(\"db/insert-data.sql\").build();\n\t\treturn db;\n\t}", "@Bean\n\tpublic DataSource getDataSource() {\n\t\tEmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();\n\t\tEmbeddedDatabase db = builder.setType(EmbeddedDatabaseType.HSQL)\n\t\t\t\t.addScript(\"crate-db.sql\")\n\t\t\t\t.addScript(\"insert-db.sql\")\n\t\t\t\t.build();\n\t\treturn db;\n\t}", "public static DataSource MySqlConn() throws SQLException {\n\t\t\n\t\t/**\n\t\t * check if the database object is already defined\n\t\t * if it is, return the connection, \n\t\t * no need to look it up again\n\t\t */\n\t\tif (MySql_DataSource != null){\n\t\t\treturn MySql_DataSource;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t/**\n\t\t\t * This only needs to run one time to get the database object\n\t\t\t * context is used to lookup the database object in MySql\n\t\t\t * MySql_Utils will hold the database object\n\t\t\t */\n\t\t\tif (context == null) {\n\t\t\t\tcontext = new InitialContext();\n\t\t\t}\n\t\t\tContext envContext = (Context)context.lookup(\"java:/comp/env\");\n\t\t\tMySql_DataSource = (DataSource)envContext.lookup(\"jdbc/customers\");\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t return MySql_DataSource;\n\t}", "public void setDatasource(DataSource datasource) {\n this.datasource = datasource;\n }", "@Bean\n public DataSource dataSource() {\n EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();\n return builder.setType(EmbeddedDatabaseType.HSQL).build();\n }", "public DatabaseQuery getQuery() {\n return query;\n }", "public DataSourceType getDataSourceType() {\n return dataSourceType;\n }", "@Bean\r\n public DataSource dataSource() {\r\n String message = messageSource.getMessage(\"begin\", null, \"locale not found\", Locale.getDefault())\r\n + \" \" + messageSource.getMessage(\"config.data.source\", null, \"locale not found\", Locale.getDefault());\r\n logger.info(message);\r\n DriverManagerDataSource dataSource = new DriverManagerDataSource();\r\n dataSource.setDriverClassName(propDatabaseDriver);\r\n dataSource.setUrl(propDatabaseUrl);\r\n dataSource.setUsername(propDatabaseUserName);\r\n dataSource.setPassword(propDatabasePassword);\r\n\r\n message = messageSource.getMessage(\"end\", null, \"locale not found\", Locale.getDefault())\r\n + \" \" + messageSource.getMessage(\"config.data.source\", null, \"locale not found\", Locale.getDefault());\r\n logger.info(message);\r\n return dataSource;\r\n }", "public Queries loadQueries() {\r\n\t\tQueries queries = null;\r\n\t try {\r\n queries = Queries.unmarshalAsQueries();\r\n\t } catch (Exception e) {\r\n\t e.printStackTrace();\r\n\t }\r\n\t return queries;\r\n\t}", "private DataSource getDataSource(DataSourceConfig key) {\n\t\tDataSource dataSource = adminService.getComponent(key.getBeanName(), DataSource.class);\n\t\treturn dataSource;\n\t}", "public String toString() {\n return Helper.getShortClassName(getClass()) + ToStringLocalization.buildMessage(\"datasource_name\", (Object[])null) + \"=>\" + getName();\n }", "public Query getQuery ()\n {\n\n\treturn this.q;\n\n }", "protected Querydsl getQuerydsl() {\n return this.querydsl;\n }", "String getConnectionAlias();", "String getConnectionAlias();", "@Bean\n public DataSource dataSource() {\n PGSimpleDataSource dataSource = new PGSimpleDataSource();\n dataSource.setServerName(hostName);\n dataSource.setDatabaseName(databaseName);\n dataSource.setUser(databaseUser);\n dataSource.setPassword(databasePassword);\n return dataSource;\n }", "public Query getQuery()\n {\n return query;\n }", "public DatabaseConnection getDatabaseConnection() {\n return query.getDatabaseConnection();\n }", "List fetchBySourceDatabase(String sourceDatabaseName) throws AdaptorException ;", "public DataSourcesImpl dataSources() {\n return this.dataSources;\n }", "@Override\n\tprotected void initDataSource() {\n\t}", "public DataSource getDataSource(){\n\n // open/read the applicliation context file\n // belove instruction to ger absolute path of current java apps\n //URL location = NaicsUtility.class.getProtectionDomain().getCodeSource().getLocation();\n //System.out.println(location);\n ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(\"./../db.xml\");\n DataSource dataSource = null;\n try{ \n dataSource = (DataSource) appContext.getBean(\"dataSource\");\n } catch ( Exception ex ) {\n logger.log( Level.SEVERE, \"ERROR: can't create spring context and data source from application context\", ex.getMessage() );\n } finally {\n appContext.close();\n }\n return dataSource;\n }", "private DataSource initializeDataSourceFromSystemProperty() {\n DriverManagerDataSource dataSource = new DriverManagerDataSource();\n dataSource.setDriverClassName(System.getProperty(PropertyName.JDBC_DRIVER, PropertyDefaultValue.JDBC_DRIVER));\n dataSource.setUrl(System.getProperty(PropertyName.JDBC_URL, PropertyDefaultValue.JDBC_URL));\n dataSource.setUsername(System.getProperty(PropertyName.JDBC_USERNAME, PropertyDefaultValue.JDBC_USERNAME));\n dataSource.setPassword(System.getProperty(PropertyName.JDBC_PASSWORD, PropertyDefaultValue.JDBC_PASSWORD));\n\n return dataSource;\n }", "public DataSource mo12629d() {\n return DataSource.LOCAL;\n }", "private DataSource getDataSourceForTable(final String tableName) {\n return DataSourceFactory.createDataSourceForFields(tableName, EventHandlerBase\n .getAllFieldNames(ContextStore.get().getEventHandlerContext(), tableName));\n }", "@Bean(name=\"dataSource\")\n\tpublic DataSource getDataSource() {\n\t\tBasicDataSource dataSource = new BasicDataSource();\n\t\tdataSource.setDriverClassName(\"com.mysql.jdbc.Driver\");\n\t\tdataSource.setUrl(\"jdbc:mysql://localhost:3306/elearningforum\");\n\t\tdataSource.setUsername(\"root\");\n\t\tdataSource.setPassword(\"\");\n\t\tdataSource.addConnectionProperty(\"useUnicode\", \"yes\");\n\t\tdataSource.addConnectionProperty(\"characterEncoding\", \"UTF-8\");\n\t\treturn dataSource;\n\t}", "private DataSource.Factory buildDataSourceFactory() {\n return ((DemoApplication) getApplication()).buildDataSourceFactory();\n }", "@Profile(\"production\")\r\n @Bean(name=\"DataSourceBean\") \r\n public DataSource getDataSource(){\r\n final JndiDataSourceLookup dsLookup = new JndiDataSourceLookup();\r\n dsLookup.setResourceRef(true);\r\n DataSource dataSource = dsLookup.getDataSource(\"jdbc/eshop_db\"); \t \r\n return dataSource;\r\n }", "public Connection getSQLConnection() throws SQLException {\n WorkReportSQLApplication app = adaptersAPI.getJaxRsApplication(WorkReportSQLApplication.class);\n return app.dataSource.getConnection();\n }", "@Bean\r\n\tpublic DataSource getDataSource() {\r\n\t\tfinal HikariDataSource dataSource = new HikariDataSource();\r\n\t\t/*\r\n\t\t * The Following is the Oracle Database Configuration With Hikari Datasource\r\n\t\t */\r\n\t\tdataSource.setMaximumPoolSize(maxPoolSize);\r\n\t\tdataSource.setMinimumIdle(minIdleTime);\r\n\t\tdataSource.setDriverClassName(driver);\r\n\t\tdataSource.setJdbcUrl(url);\r\n\t\tdataSource.addDataSourceProperty(\"user\", userName);\r\n\t\tdataSource.addDataSourceProperty(\"password\", password);\r\n\t\tdataSource.addDataSourceProperty(\"cachePrepStmts\", cachePrepareStmt);\r\n\t\tdataSource.addDataSourceProperty(\"prepStmtCacheSize\", prepareStmtCacheSize);\r\n\t\tdataSource.addDataSourceProperty(\"prepStmtCacheSqlLimit\", prepareStmtCacheSqlLimit);\r\n\t\tdataSource.addDataSourceProperty(\"useServerPrepStmts\", useServerPrepareStmt);\r\n\t\treturn dataSource;\r\n\t}", "protected String getDataSourceScript(DataSource ds, LocalContainer container)\n {\n ConfigurationBuilder builder = this.createConfigurationBuilder(container);\n String configurationEntry = builder.toConfigurationEntry(ds);\n return configurationEntry;\n }", "private EnabledDataSource getEnabledDataSource()\n {\n EnabledDataSource ds = new EnabledDataSource();\n ds.setDriverClassName(\"jdbc.db.TestDriverImpl\");\n ds.setDriverName(TestDriverImpl.TEST_URL_START);\n ds.setPruneFactor(0);\n\n return ds;\n }", "@Override\r\n\tpublic String[] getBindDsName() {\n\t\treturn new String[]{\"supplierSalesPrice_dataSource\"}; \r\n\t}", "protected String buildDataQuery() {\n StringBuilder sql = new StringBuilder(\"select\");\n String delim = \" \";\n for (String vname : getColumnNames()) {\n sql.append(delim).append(vname);\n delim = \", \";\n }\n \n Element ncElement = getNetcdfElement();\n \n String table = ncElement.getAttributeValue(\"dbTable\");\n if (table == null) {\n String msg = \"No database table defined. Must set 'dbTable' attribute.\";\n _logger.error(msg);\n throw new TSSException(msg);\n }\n sql.append(\" from \" + table);\n \n String predicate = ncElement.getAttributeValue(\"predicate\");\n if (predicate != null) sql.append(\" where \" + predicate);\n \n //Order by time.\n String tname = getTimeVarName();\n sql.append(\" order by \"+tname+\" ASC\");\n \n return sql.toString();\n }", "public ConnectorDataSource() {\n super(CONNECTOR_BEAN_NAME, CONNECTOR_TABLE_NAME);\n }", "SelectQuery createSelectQuery();", "@Nonnull\r\n List<DataSource> getDataSources();" ]
[ "0.76726973", "0.76209575", "0.7322812", "0.71591204", "0.7099408", "0.7043845", "0.6977622", "0.6950327", "0.6942205", "0.69276893", "0.69162524", "0.68789923", "0.6846028", "0.68111366", "0.6803701", "0.67638934", "0.6733145", "0.6731323", "0.6726145", "0.6710969", "0.6692353", "0.6686373", "0.6686373", "0.6675753", "0.66431445", "0.66342396", "0.66279894", "0.6607877", "0.6508587", "0.64872956", "0.64421076", "0.6374408", "0.6369388", "0.6352394", "0.62744987", "0.62229186", "0.6218578", "0.61924225", "0.61695063", "0.61570936", "0.615161", "0.61230916", "0.6112898", "0.61098653", "0.6092362", "0.60878724", "0.60768914", "0.6064673", "0.6061032", "0.6056648", "0.6055646", "0.60491407", "0.6047445", "0.60201615", "0.6004281", "0.59812886", "0.59758717", "0.5962869", "0.5953414", "0.59455705", "0.5926507", "0.5925044", "0.5923534", "0.5916817", "0.59165597", "0.5892989", "0.5847013", "0.58466566", "0.58416396", "0.5832499", "0.5817707", "0.58102953", "0.5809038", "0.5776267", "0.57473975", "0.5735019", "0.5728103", "0.5728103", "0.57164085", "0.570746", "0.5699842", "0.5697718", "0.5689827", "0.568493", "0.5680249", "0.5675086", "0.56688476", "0.5652376", "0.5649404", "0.56477946", "0.564727", "0.56450146", "0.56424654", "0.56405437", "0.56246495", "0.5619339", "0.5614276", "0.56085783", "0.55805415", "0.5572717" ]
0.8125535
0
Set the level of the zoom.
private void setZoomLevel() { final float oldMaxScale = photoView.getMaximumScale(); photoView.setMaximumScale(oldMaxScale *2); photoView.setMediumScale(oldMaxScale); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void zoomToLevel(int level) {\n \t\tfloat scale = getScaleFromZoom(level);\n \t\tzoomToScale(scale);\n \t}", "public void setZoom(){\n\t\tactive.setZoom();\n\t}", "@Override\n public void setLevel(int level) {\n if (level > 1) {\n this.level = level;\n scaleUp();\n percentageScaling();\n }\n }", "public void setZoomLevel(int index) {\n if (index >= 0 && index < zoomLevels.length) {\n this.zoomLevel = index;\n this.setZoom(zoomLevels[index]);\n }\n }", "public void updateZoom() {\n camera.zoom = zoomLevel;\n }", "public void setZoom(float zoom){\r\n zoom = zoom * 100;\r\n zoom = Math.round(zoom);\r\n this.zoom = Math.max(zoom / 100, 0.01f);\r\n }", "@Override\n public void setCameraZoom(int zoomLevel) {\n mMap.moveCamera(CameraUpdateFactory.zoomTo(zoomLevel));\n }", "public synchronized void setZoom(float zoom)\r\n {\r\n this.zoom = Utils.clampFloat(zoom, .4f, 1.5f);\r\n }", "protected void setLevel(int level){\r\n this.level = level;\r\n }", "public void setZoom(float zoom) {\n this.zoom = zoom;\n }", "public void setZoom(Integer zoom) {\n this.zoom = zoom;\n }", "public void setZoom(Integer zoom) {\n this.zoom = zoom;\n }", "@Override\n public void setZoom(double zoom)\n {\n super.setZoom(zoom);\n delayedRepainting.requestRepaint(ZOOM_REPAINT);\n }", "@Override\n\tpublic void setZoom(int zoom) {\n\t\t\n\t}", "private void adjustZoomFactor(){\n switch(zoomLevel){\n case 0:zoomFactor = 39; break;\n case 1:zoomFactor = 37; break;\n case 2:zoomFactor = 35; break;\n case 3:zoomFactor = 33; break;\n case 4:zoomFactor = 31; break;\n case 5:zoomFactor = 29; break;\n case 6:zoomFactor = 27; break;\n case 7:zoomFactor = 25; break;\n case 8:zoomFactor = 23; break;\n case 9:zoomFactor = 21; break;\n case 10:zoomFactor = 20; break;\n case 11:zoomFactor = 18; break;\n case 12:zoomFactor = 16; break;\n case 13:zoomFactor = 14; break;\n case 14:zoomFactor = 12; break;\n case 15:zoomFactor = 10; break;\n case 16:zoomFactor = 8; break;\n case 17:zoomFactor = 6; break;\n case 18:zoomFactor = 4; break;\n case 19:zoomFactor = 2; break;\n case 20:zoomFactor = 0; break;\n }\n }", "public void zoom(int levelDelta) {\n \t\tint newLevel = getZoomLevelFromScale(mapDisplay.sc) + levelDelta;\n \t\tzoomToLevel(newLevel);\n \t}", "public void zoomIn() {\n\tsetZoom(getNextZoomLevel());\n}", "@Override\n public void Zoom(double zoomNo, boolean setZoom) {\n\t \n }", "protected void setLevel(int level)\n {\n this.level = level;\n }", "public static void changeCameraZoom(boolean zoomIn){\r\n\t\tif(zoomIn && zoomLevel > 0){\r\n\t\t\tzoomLevel -= 2;\r\n\t\t}else if(!zoomIn){\r\n\t\t\tzoomLevel += 2;\r\n\t\t}\r\n\t}", "public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}", "private void setLevel(int level) {\n setStat(level, currentLevel);\n }", "public void setZoom(double zoom) {\n if (zoom > 0) {\n this.zoom = zoom;\n this.rescale();\n }\n }", "public void setZoom(float zoom) {\r\n\t\tif (zoom < 0.1f)\r\n\t\t\treturn;\r\n\t\tthis.zoomFactor = zoom;\r\n\t}", "public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}", "public void setLevel(int level) {\n \t\tthis.level = level;\n \t}", "public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }", "public void setZoom(double zoom) {\n if(zoom != mZoom) {\n mZoom = zoom;\n setChanged();\n }\n }", "public void setZoom(float zoomValue) {\n pos.zoom = zoomValue;\n invalidate();\n }", "public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}", "public void setLevel(int newlevel)\n {\n level = newlevel; \n }", "public void setZoom( double zoom ) {\n\t\tthis.zoom = zoom;\n\t}", "public void setLevel(int level) {\n if(level > Constant.MAX_LEVEL){\n this.level = Constant.MAX_LEVEL;\n }else {\n this.level = level;\n }\n this.expToLevelUp = this.expValues[this.level];\n }", "public void setleZoom( double valeur) {\n\t\tzoomMonde = valeur;\n\t}", "public void setZoom(float zoom) {\n\t\tthis.zoom = zoom;\n\t\trevalidate();\n\t\trepaint();\n\t}", "public void setLevel(int level){\n\t\tthis.level = level;\n\t}", "public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}", "public void setLevel(int level) {\n filename = evaluate(getLat(), getLon(), level);\n }", "public void setLevel ( int level ) {\n\t\texecute ( handle -> handle.setLevel ( level ) );\n\t}", "public void setLevel(int v)\n {\n m_level = v;\n }", "public void setLevel(int level) {\n this.level = level;\n }", "public void setLevel(int level) {\n this.level = level;\n }", "protected void primSetZoom(double zoom) {\n\tPoint p1 = getViewport().getClientArea().getCenter();\n\tPoint p2 = p1.getCopy();\n\tPoint p = getViewport().getViewLocation();\n\tdouble prevZoom = this.zoom;\n\tthis.zoom = zoom;\n\tpane.setScale(zoom);\n\tfireZoomChanged();\n\tgetViewport().validate();\n\t\n\tp2.scale(zoom / prevZoom);\n\tDimension dif = p2.getDifference(p1);\n\tp.x += dif.width;\n\tp.y += dif.height;\n\tsetViewLocation(p);\t\n}", "public void adjustZoomLvl(double scale){\n zoomLevel = ZoomCalculator.calculateZoom(scale);\n scale = ZoomCalculator.setScale(zoomLevel);\n transform.setToScale(scale, -scale);\n }", "public void setLevel(int value) {\n this.level = value;\n }", "@Override\n public void Zoom(double zoomNo) {\n\t \n }", "@JavascriptInterface\n public void setZoom(final int zoom) {\n getHandler().post(new Runnable() {\n @Override\n public void run() {\n if (mWebViewFragment.getMapSettings()\n .getZoom() != zoom) {\n if (BuildConfig.DEBUG) {\n Log.d(TAG,\n \"setZoom \" + zoom);\n }\n\n final MapSettings mapSettings = mWebViewFragment.getMapSettings();\n mapSettings.setZoom(zoom);\n mWebViewFragment.setMapSettings(mapSettings);\n }\n }\n });\n }", "public void setZoom(double zoom) {\n\tzoom = Math.min(getMaxZoom(), zoom);\n\tzoom = Math.max(getMinZoom(), zoom);\n\tif (this.zoom != zoom)\n\t\tprimSetZoom(zoom);\n}", "public void setLevel(int level) {\n\t\tthis.level = level;\n\t}", "public void setLevel(int level) {\n\t\tthis.level = level;\n\t}", "public void Setlevels(int lvl)\r\n {\r\n level = lvl;\r\n }", "public final void setLevel(final int level) {\n\t\tthis.level = level;\n\t}", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}", "public void setLevel(int level) {\n if (level < 1)\n throw new IllegalArgumentException(\"Cannot be a level less than 0\");\n\n this.level = level;\n }", "public void setCurrentLevel(Level level){\r\n currentLevel = level;\r\n currentLevel.setObserver(this);\r\n }", "public static void setLevel(int level){\n\tlogLevel = level;\n }", "@SuppressWarnings(\"unused\")\n private void setZoom(JSONArray args, CallbackContext callbackContext) throws JSONException {\n Long zoom;\n zoom = args.getLong(1);\n\n this.myMoveCamera(CameraUpdateFactory.zoomTo(zoom), callbackContext);\n }", "public void setLevel(Level level) { this.currentLevel = level; }", "private void setLevel(int level){\r\n\t\tswitch(level){\r\n\t\t\tcase Game.LEVEL_ONE:\r\n\t\t\tcase Game.LEVEL_TWO:\r\n\t\t\tcase Game.LEVEL_THREE:\r\n\t\t\t\tthis.level = level;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.err.println(\"Improper level input, use 'Game.LEVEL_#' to accurately input a level into this method\");\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "public static void setLevel(int level) {\n Game.level = level;\n movingSpeed = level * 5;\n }", "public long getZoomLevel()\r\n {\r\n return myZoomLevel;\r\n }", "public void setLevel(String level);", "public void setScalePosition(int level) throws RemoteException, IllegalParamException {\n io.scaleRMI(number, level);\n }", "private void setLevel(){\n\t\tif(getD(y) <= T)\n\t\t\tlevel = \"lower\";\n\t\telse\n\t\t\tlevel = \"higher\";\n\t}", "public void zoom() {\n\t\tdisp.zoom();\n\t\texactZoom.setText(disp.getScale() + \"\");\n\t\tresize();\n\t\trepaint();\n\t}", "public void zoomIn() {\r\n \t\tgraph.setScale(graph.getScale() * 1.25);\r\n \t}", "public void setZoom(int ps) {\n P_SCALE = ps;\n //EMBOSS = P_SCALE*8;\n }", "public int getZoomLevel() {\n return this.zoomLevel;\n }", "public void setThreshold(Level level) {\n\t\tthis.hierarchy.setThreshold(level);\n\t}", "public void setLevel(int level) {\r\n\t\tthis.level = Math.max(0, level);\r\n\t}", "public void zoom(int s) {\r\n\t\tzoom += s * ZOOM_FACTOR;\r\n\t}", "void multitouchZoom(int new_zoom);", "public void setZoomAnimationStyle(int style) {\n\t//zoomAnimationStyle = style;\n}", "public static void setLevel(Level level) {\r\n\t\tGameplay.getInstance().setLevel(level);\r\n\t}", "public void zoomIn() { zoomIn(1); }", "public void zoomCam(float zoom){\n\t\tthis.camera.setZoom(zoom);\n\t}", "public void setMapLevel(String maptyp, int level) {\n\t\tprefs.putInt(title + \".\" + maptyp, level);\n\t}", "public void setZoomFactor( double inZoomFactor )\r\n {\r\n if( inZoomFactor <= 0 )\r\n throw new RuntimeException( \"Zoom factor \" + inZoomFactor + \" is not > 0\" );\r\n \r\n \r\n // Set zoom factor and update view bounds \r\n zoomFactor = inZoomFactor;\r\n updateViewBounds();\r\n \r\n // Propagate the fact that the size has changed up the container hierarchy\r\n revalidate();\r\n \r\n // Repaint the visualisation now that the size and zoom factor have changed\r\n repaint();\r\n }", "public void set(double lat, double lon, int level) {\n set(getDTEDDir(), lat, lon, level);\n }", "public Builder setLevel(double value) {\n \n level_ = value;\n onChanged();\n return this;\n }", "public Builder setLevel(double value) {\n \n level_ = value;\n onChanged();\n return this;\n }", "public void zoomIn() {\n if (scale < 0.8) {\n double scaleFactor = (scale + 0.03) / scale;\n currentXOffset = scaleFactor * (currentXOffset - viewPortWidth / 2) + viewPortWidth / 2;\n currentYOffset = scaleFactor * (currentYOffset - viewPortHeight / 2) + viewPortHeight / 2;\n scale += 0.03;\n\n selectionChanged = true;\n gameChanged = true;\n }\n\n }", "public void zoomIn() {\n if (zoom > 0) {\n zoom--;\n spielPanel.setZoom(zoom);\n }\n }", "@Override\n public void onMapViewZoomLevelChanged(MapView arg0, int arg1) {\n\n }", "public void setThreshold(String level) {\n\t\tthis.hierarchy.setThreshold(level);\n\t}", "@Test\n public void testSetZoomMultiplier() {\n final DraggingCamera camera = newValueObject();\n testBoundField(camera, DraggingCamera.ZOOM_MULTIPLIER, 1.678f);\n }", "public void zoomIn() {\n \t\tzoom(1);\n \t}", "public synchronized void addZoom(float zoom)\r\n {\r\n this.setZoom(zoom + this.getZoom());\r\n }", "protected void zoomToScale(float scale) {\n \t\tif (tweening) {\n \t\t\tscaleIntegrator.target(scale);\n \t\t} else {\n \t\t\tmapDisplay.sc = scale;\n \t\t\t// Also update Integrator to support correct tweening after switch\n \t\t\tscaleIntegrator.target(scale);\n \t\t\tscaleIntegrator.set(scale);\n \t\t}\n \t}", "public void setLevel(Level mLevel) {\n this.level = mLevel;\n level.increaseChamberCount();\n }", "public void zoomScaleIn() {\n \t\tzoomScale(SCALE_DELTA_IN);\n \t}", "public void setFacteurZoom(double fac)\n\t{\n \tthis.facteurZoom = this.facteurZoom * fac ;\n \tif (this.facteurZoom == 0)\n \t{\n \t\tthis.facteurZoom = 0.01;\n \t}\n }", "public void setLevel(String newLevel) {\n level = newLevel;\n }", "public View zoom(Integer zoom) {\n setZoom(zoom);\n return this;\n }", "public void zoomIn() {\n\t\tif (this.zoom + DELTA_ZOOM <= MAX_ZOOM)\n\t\t\tthis.setZoom(this.zoom + DELTA_ZOOM);\n\t}" ]
[ "0.7693182", "0.75415486", "0.7430071", "0.73562545", "0.72288764", "0.7144337", "0.711562", "0.7098923", "0.70384765", "0.703531", "0.6972437", "0.6972437", "0.6964441", "0.6958604", "0.695142", "0.69486934", "0.6942646", "0.69367725", "0.6921951", "0.6915609", "0.68935245", "0.6887612", "0.686306", "0.6862855", "0.6862607", "0.6840535", "0.68369", "0.6835149", "0.68181574", "0.6813091", "0.6808999", "0.678762", "0.67851436", "0.67705977", "0.6767354", "0.6723116", "0.6702505", "0.668802", "0.66740865", "0.6670865", "0.6670572", "0.6670572", "0.6665826", "0.66477317", "0.6620701", "0.6609313", "0.6602205", "0.6593371", "0.6591213", "0.6591213", "0.6588325", "0.6584863", "0.6572935", "0.6572935", "0.6572935", "0.6572935", "0.6572935", "0.65531045", "0.6533741", "0.6481612", "0.64712113", "0.6456018", "0.643176", "0.64256406", "0.6417402", "0.6407341", "0.63954693", "0.63942385", "0.63857424", "0.63785595", "0.63696676", "0.6369048", "0.6347277", "0.63383466", "0.6315599", "0.63112646", "0.63045263", "0.6301621", "0.62924016", "0.628696", "0.62494826", "0.6224868", "0.62188673", "0.6209455", "0.6201805", "0.6201805", "0.6195448", "0.61831087", "0.6156618", "0.6146122", "0.6141756", "0.6136061", "0.6133927", "0.6133059", "0.6122093", "0.6109498", "0.60965997", "0.6087364", "0.60722303", "0.6071752" ]
0.790801
0
load the photo into the view, show the photo to the user.
private void loadPhotoIntoView(String photoPath) { Glide.with(this) .load(photoPath) .transition(DrawableTransitionOptions.withCrossFade()) .into(photoView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showView() {\n\t\tfinal ImageView image = (ImageView) findViewById(R.id.image); \n\t\t//screen.addView(image);\n\t\t//image.setImageResource(images[0]);\n\n\t\tString fileName = getFilesDir().getPath() + \"/\" + FILE_NAME;\n\t\t//System.out.println(fileName);\n\t\tBitmap bm = BitmapFactory.decodeFile(fileName); \n\t\t\n\t\timage.setImageBitmap(bm); \n\t\t\n\t\t//System.out.println(\"show done!\\n\");\t\t\n\t\t\n\t}", "private void showPhoto(String objectId) {\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"UserPhoto\");\n\t\tquery.whereEqualTo(\"objectId\", objectId);\n\t\tquery.getFirstInBackground(new GetCallback<ParseObject>() {\n\n\t\t\t@Override\n\t\t\tpublic void done(ParseObject object, ParseException e) {\n\t\t\t\tif (object != null) {\n\t\t\t\t\t// Get image file data\n\t\t\t\t\tParseFile file = (ParseFile) object.get(\"imageFile\");\n\t\t\t\t\tfile.getDataInBackground(new GetDataCallback() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(byte[] data, ParseException e) {\n\t\t\t\t\t\t\tif (e == null) {\n\t\t\t\t\t\t\t\t// Show photo in image view\n\t\t\t\t\t\t\t\tfinal ImageView imageView = (ImageView) findViewById(R.id.imageView1);\n\t\t\t\t\t\t\t\tBitmap bmp = BitmapFactory.decodeByteArray(data,0,data.length);\n\t\t\t\t\t\t\t\timageView.setImageBitmap(bmp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tLog.d(\"Image file load error\", e.toString());\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}\n\t\t \n\t\t});\n\t}", "@Override\n\t protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t if(requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && null != data) {\n\t \tprofile_photo.setVisibility(View.VISIBLE);\n\t \tUri selectedImage = data.getData();\n\t String[] filePathColumn = { MediaStore.Images.Media.DATA };\n\n\t Cursor cursor = getContentResolver().query(selectedImage,\n\t filePathColumn, null, null, null);\n\t cursor.moveToFirst();\n\n\t int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n\t String picturePath = cursor.getString(columnIndex);\n\t cursor.close();\n\t \n\t ImageView imageView = (ImageView) findViewById(R.id.profile_photo);\n\t imageView.setImageBitmap(BitmapFactory.decodeFile(picturePath));\n\t }\n\t }", "private void displayImage() {\n if (currentPhotoPath != null) {\n // checkPicture = true; depreciated, try catch to catch if photo exists\n Bitmap temp = fixOrientation(BitmapFactory.decodeFile(currentPhotoPath));\n bitmapForAnalysis = temp;\n imageView.setImageBitmap(temp);\n } else {\n Toast.makeText(this, \"Image Path is null\", Toast.LENGTH_LONG).show();\n }\n }", "public void drawImage() {\n ImageView imageView = (ImageView) findViewById(R.id.photo);\n imageView.setVisibility(View.VISIBLE);\n Glide.with(MainActivity.this).load(iURI).fitCenter().into(imageView);\n }", "@Override\n public void imageLoad(ImageView imageView, Bitmap bitmap) {\n imageView.setImageBitmap(bitmap);\n //item.picture = bitmap;\n }", "@Override\n public void setPhotoDetails() {\n mView.loadPhoto();\n mView.setPhotoDescription();\n }", "private void showBitmap() {\n Bitmap bitmap = BitmapFactory.decodeByteArray(mImgData, 0, mImgData.length);\n mImgView.setImageBitmap(bitmap);\n }", "@Override\n public void run() {\n imageView.setImageBitmap(photo);\n }", "private void setPic() {\n int targetW = imageView.getWidth();\n int targetH = imageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageView.setImageBitmap(bitmap);\n imageView.invalidate();\n }", "private void displayImage(Uri uri)\t{\n\t\tLog.d(TAG, \"displayImage\");\n\t\tint width = getWindow().getWindowManager().getDefaultDisplay().getWidth();\n\t\tint height = getWindow().getWindowManager().getDefaultDisplay().getHeight();\n\t\tString imageWidth = \"\\\" width=\\\"\" + width;\n\t\tString imageHeight = \"\\\" height=\\\"\" + height;\n\t\t\n\t\tif (width < height) //use width but not height, so set height to null\n\t\t\timageHeight = \"\";\n\t\telse //use height not width, so set width to null\n\t\t\timageWidth = \"\";\n\t\t\t\t\n\t\tString imageUrl = \"file://\" + uri.getPath();\n\t\tLog.d(TAG, \"Loading image...\");\n\t\tmCropView.loadData(\"<html><head>\" +\n\t\t\t\t\"<meta name=\\\"viewport\\\" content=\\\"width=device-width\\\"/>\" +\n\t\t\t\t\t\t\"</head><body><center><img src=\\\"\"+uri.toString() + imageWidth + imageHeight +\n\t\t\t\t\t\t\"\\\"></center></body></html>\",\n\t\t\t\t\t\t\"text/html\", \"UTF-8\");\n\t\tmCropView.getSettings().setBuiltInZoomControls(true);\n\t\tmCropView.setBackgroundColor(0);\n\t\tmCropView.getSettings().setUseWideViewPort(true);\n\t\tmCropView.setInitialScale(1);\n\t\tmCropView.getSettings().setLoadWithOverviewMode(true);\n\t\tLog.d(TAG, imageUrl);\n\t\tLog.d(TAG, uri.toString());\n\t}", "public void getImage(View view)\n {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE);\n\n }", "private void previewCapturedImage() {\n try {\n imageProfile.setVisibility(View.VISIBLE);\n Log.d(\"preview\", currentPhotoPath);\n final Bitmap bitmap = CameraUtils.scaleDownAndRotatePic(currentPhotoPath);\n imageProfile.setImageBitmap(bitmap);\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void loadImage(@Nullable String url) {\n if (view != null) {\n if (url == null) {\n view.exit();\n return;\n }\n view.showImage(url);\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n\n if (requestCode == CAPTURE_IMAGE_REQUEST && resultCode == RESULT_OK) {\n Bitmap myBitmap = BitmapFactory.decodeFile(photoFile.getAbsolutePath());\n imgDisplay.setImageBitmap(myBitmap);\n textPath.setText(photoFile.getName());\n } else {\n displayMessage(getBaseContext(), \"Request cancelled or something went wrong.\");\n }\n\n }", "@Override\n public void loadImage(String url, ImageView imageView) {\n ImageLoader.getInstance().displayImage(url, imageView);\n }", "public void loadPhoto(String photopath) {\n if (photopath != null)\r\n {\r\n Bitmap bitmap = BitmapFactory.decodeFile(photopath);\r\n Bitmap bitmapReduced = Bitmap.createScaledBitmap(bitmap, 300, 300, true);\r\n photoField.setImageBitmap(bitmapReduced);\r\n photoField.setScaleType(ImageView.ScaleType.FIT_XY);\r\n photoField.setTag(photopath);\r\n\r\n }\r\n }", "private void displayReceiptPhoto() {\n\t\tif (mForm == null)\n\t\t\treturn;\n\t\tif (mReceipt == null)\n\t\t\treturn;\n\t\timageWidget().displayPhoto(getRBuddyActivity().photoStore(),\n\t\t\t\tmReceipt.getId(),\n\t\t\t\tmReceipt.getPhotoId());\n\t}", "private void showPreview() {\n Glide.with(this)\n .load(imageUri)\n .into(imagePreview);\n imagePreviewLayout.setVisibility(View.VISIBLE);\n imageOriginOptionsLayout.setVisibility(View.GONE);\n }", "@FXML\n void changeToDetailsView(PhotoUnit photoUnit) throws IOException {\n\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/Views/photoView.fxml\"));\n Parent root = loader.load();\n\n Scene scene = new Scene(root);\n\n scene.getStylesheets().add(\"Views/styles.css\");\n Stage primaryStage = (Stage) listView.getScene().getWindow();\n primaryStage.setScene(scene);\n\n //access the controller\n PhotoViewController controller = loader.getController();\n controller.initData(photoUnit);\n\n Image icon = new Image(\"/img/mars.png\");\n primaryStage.getIcons().add(icon);\n primaryStage.setTitle(\" MARS \");\n primaryStage.show();\n\n\n }", "@Override\n public void onResume() {\n super.onResume();\n photoFile = ((NewTripCardActivity) getActivity())\n .getCurrentTripCard().getPhotoFile();\n if (photoFile != null) {\n cardPhotoPreview.setParseFile(photoFile);\n cardPhotoPreview.loadInBackground(new GetDataCallback() {\n @Override\n public void done(byte[] data, ParseException e) {\n cardPhotoPreview.setVisibility(View.VISIBLE);\n }\n });\n }\n }", "@Override\n public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from) {\n SharePhoto photo = new SharePhoto.Builder()\n .setBitmap(bitmap)\n .build();\n if(ShareDialog.canShow(SharePhotoContent.class)){\n SharePhotoContent content = new SharePhotoContent.Builder()\n .addPhoto(photo)\n .build();\n shareDialog.show(content);\n }\n\n }", "private void setGalleryDisplay() {\n // ArrayList<model.Photo> photos = model.DirectoryManager.getTree().getDir().getPhotos();\n ArrayList<Photo> photos = User.getGalleryPhotos();\n if (photos != null) {\n for (model.Photo photo : photos) {\n Image imageOrigin = new Image(\"File:\" + photo.getPath());\n ImageView displayImage = new ImageView(imageOrigin);\n displayImage.setId(photo.getPath());\n\n double imageHeight = imageOrigin.getHeight();\n double imageWidth = imageOrigin.getWidth();\n displayImage.setPreserveRatio(true);\n if (imageHeight <= imageWidth) {\n displayImage.setFitWidth(190);\n } else if (imageHeight > imageWidth) {\n displayImage.setFitHeight(120);\n }\n\n displayImage.setFitWidth(190);\n displayImage.getStyleClass().add(\"photoElement\");\n displayImage.setOnMouseClicked(\n (MouseEvent e) -> {\n model.User.setPhoto(model.PhotoManager.getPhoto(displayImage.getId()));\n try {\n loadNextScene(rootPane, \"/views/focusPhotoPane.fxml\");\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n });\n galleryDisplay.getChildren().add(displayImage);\n }\n }\n }", "public void changePhoto(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 234 && data != null && data.getData() != null) {\n filePath = data.getData();\n Uri uri = data.getData();\n try {\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), uri);\n ImageView imageView = findViewById(R.id.displayPicture);\n imageView.setImageBitmap(bitmap);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }", "@Override\n public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from) {\n SharePhoto photo = new SharePhoto.Builder()\n .setBitmap(bitmap)\n .build();\n if (ShareDialog.canShow(SharePhotoContent.class))\n {\n SharePhotoContent content = new SharePhotoContent.Builder()\n .addPhoto(photo)\n .build();\n shareDialog.show(content);\n\n }\n\n\n }", "private void dispatchLoadPhotoIntent() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Choose Picture\"), REQUEST_LOAD_PHOTO);\n }", "private void setPicToView(Intent picdata) {\n Bundle extras = picdata.getExtras();\n if (extras != null) {\n Bitmap photo = extras.getParcelable(\"data\");\n Drawable drawable = new BitmapDrawable(getResources(), photo);\n groupSetAvatar.setImageDrawable(drawable);\n // uploadUserAvatar(Bitmap2Bytes(photo));\n saveBitmapFile(picdata);\n\n }\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == PICK_IMAGE_REQUEST && resultCode == RESULT_OK && data != null && data.getData() != null) {\n filePath = data.getData();\n try {\n bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), filePath);\n imageView.setImageBitmap(bitmap);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == PICK_IMAGE_REQUEST && resultCode == RESULT_OK && data != null && data.getData() != null) {\n filePath = data.getData();\n\n Picasso.get().load(filePath).into(imageView);\n\n }\n }", "@Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n Log.d(TAG, \"#onLoadingComplete imageUri = \"+imageUri + \" loadedImage = \"+loadedImage + \" width = \"+loadedImage.getWidth() + \" height = \"+loadedImage.getHeight());\n if (mPhotoView != null)\n mPhotoView.setImageBitmap(loadedImage);\n }", "public void loadImagefromGallery(View view) {\n Intent galleryIntent = new Intent(Intent.ACTION_PICK,\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n // Start the Intent\n startActivityForResult(galleryIntent, RESULT_LOAD_IMG);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if(resultCode == RESULT_OK) {\n imgView.setImageURI(image_uri);\n// image_uri = data.getData();\n// try {\n// InputStream inputStream = getContentResolver().openInputStream(image_uri);\n// bitmap = BitmapFactory.decodeStream(inputStream);\n// imgView.setImageBitmap(bitmap);\n//// imgView.setVisibility(View.VISIBLE);\n//// btnUpload.setVisibility(View.VISIBLE);\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n// Toast.makeText(GambarActivity.this, \"o\", Toast.LENGTH_SHORT).show();\n }\n// super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n public void loadImage(String path, ImageView imageView) {\n mInteractor.loadImage(path, imageView);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(coverPhotoName!=null){\n\t\t\t\t\tDisplayImageOptions options = new DisplayImageOptions.Builder()\n\t\t\t\t\t.showImageOnLoading(R.drawable.ic_stub)\n\t\t\t\t\t.showImageForEmptyUri(R.drawable.ic_empty)\n\t\t\t\t\t.showImageOnFail(R.drawable.ic_error)\n\t\t\t\t\t.cacheInMemory(true)\n\t\t\t\t\t.cacheOnDisk(true)\n\t\t\t\t\t.considerExifParams(true)\n\t\t\t\t\t.displayer(new FadeInBitmapDisplayer(1000))\n\t\t\t\t\t.build();\n\t\t\t\t\tString url = \"http://www1.kitchengardens.in/sites/default/files/\"+coverPhotoName;\n\t\t\t\t\tgetScreenMetrics();\n\t\t\t\t\tImageAlertFragment imageFragment=new ImageAlertFragment(url,options,animateFirstListener,gardenName.split(\" Profile\")[0]+\" Cover Photo\",\"\",screenWidth,screenHeight);\n\t\t\t\t\timageFragment.setCancelable(true);\n\t\t\t\t\timageFragment.show(getFragmentManager(), \"\");\n\t\t\t\t}\n\t\t\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n switch (requestCode) {\n case SELECT_PHOTO:\n if (resultCode == RESULT_OK) {\n // imABoolean=true;\n try {\n filePath = data.getData();\n bitmap = MediaStore.Images.Media.getBitmap(getActivity().getContentResolver(), filePath);\n\n logo.setImageBitmap(bitmap);\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n break;\n }\n }\n\n\n }", "@FXML\r\n public void imageButtonClicked() {\r\n File file = fileChooser.showOpenDialog(viewHandler.getPrimaryStage());\r\n if (file != null) {\r\n try {\r\n viewModel.setImageurl(ImageConverter.ImageToByte(file));\r\n Image img = new Image(new ByteArrayInputStream(viewModel.getImageurl()));\r\n dogPicture.setFill(new ImagePattern(img));\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "private void setPic() {\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n\t\t/* Get the size of the image */\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 1;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n\t\t/* Associate the Bitmap to the ImageView */\n mImageView.setImageBitmap(bitmap);\n mTextView.setText(mCurrentPhotoPath);\n\n // SendImage(mCurrentPhotoPath);\n\n // AsyncCallWS task = new AsyncCallWS();\n // Call execute\n // task.execute();\n }", "public void loadImage1(View view) {\n Intent intent = new Intent(this, SelectImageActivity.class);\n startActivityForResult(intent, REQUEST_SELECT_IMAGE_1);\n }", "public void loadImagefromGallery(View view) {\n Intent intent = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n intent.putExtra(\"crop\", \"true\");\n intent.putExtra(\"aspectX\", 50);\n intent.putExtra(\"aspectY\", 50);\n intent.putExtra(\"outputX\", 100);\n intent.putExtra(\"outputY\", 100);\n\n try {\n // Start the Intent\n startActivityForResult(intent, PICK_FROM_GALLERY);\n } catch (ActivityNotFoundException ae) {\n\n } catch (Exception e) {\n\n }\n }", "@Nullable\r\n @Override\r\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fullscreendialogfragment, container, false);\r\n img = view.findViewById(R.id.img);\r\n //set the imageview\r\n Picasso.get().load(getArguments().getString(\"url\")).into(img);\r\n return view;\r\n }", "private void displaySelectedImage(Intent data) {\n if (data == null) {\n return;\n }\n\n // checkPicture = true; depreciated, try catch to catch if photo exists\n Uri selectedImage = data.getData();\n String[] filePathColumn = {MediaStore.Images.Media.DATA};\n Cursor cursor = getContentResolver().query(selectedImage,\n filePathColumn, null, null, null);\n cursor.moveToFirst();\n int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n currentPhotoPath = cursor.getString(columnIndex);\n cursor.close();\n Bitmap temp = fixOrientation(BitmapFactory.decodeFile(currentPhotoPath));\n bitmapForAnalysis = temp;\n imageView.setImageBitmap(temp);\n }", "public void loadImagefromGallery(View view) {\n Intent galleryIntent = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n // Start the Intent\n startActivityForResult(galleryIntent, RESULT_LOAD_IMG);\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n // Pick photo\n if (requestCode == PICK_PHOTO_GALLERY && resultCode == Activity.RESULT_OK) {\n if (data == null) {\n Toast.makeText(this, R.string.error_selecting_photo, Toast.LENGTH_SHORT).show();\n return;\n }\n\n try {\n InputStream inputStream = getContentResolver().openInputStream(data.getData());\n mViewModel.studentPicBitmap = BitmapFactory.decodeStream(inputStream);\n mAddPhotoView.setImageBitmap(mViewModel.studentPicBitmap);\n studentHasPhoto = true;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n // Take new photo\n } else if (requestCode == CAPTURE_PHOTO && resultCode == Activity.RESULT_OK) {\n mViewModel.studentPicBitmap = BitmapFactory.decodeFile(mTempPhotoPath);\n mAddPhotoView.setImageBitmap(mViewModel.studentPicBitmap);\n studentHasPhoto = true;\n }\n checkIfThereIsStudentPhoto();\n }", "private void setPic() {\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n// Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_receta_detalle_imagen, container, false);\n\n try {\n PhotoView photoView = (PhotoView) view.findViewById(R.id.photo_view);\n url = getArguments().getString(\"url\");\n Glide.with(getActivity()).load(url).into(photoView);\n }catch (Exception e){\n }\n\n return view;\n }", "@FXML\n public void pickOwnPicture(ActionEvent event) {\n FileChooser fc = new FileChooser();\n fc.getExtensionFilters().addAll(new FileChooser.ExtensionFilter(\"Image Files\", \"*.jpg\", \"*.png\"));\n File selectedFile = fc.showOpenDialog(null);\n\n\n if (selectedFile != null) {\n pathToFile = selectedFile.getAbsolutePath();\n ;\n Image img = new Image(selectedFile.toURI().toString());\n\n ImageView mainImageView = new ImageView(img);\n mainImageView.setPreserveRatio(true);\n mainImageView.setFitWidth(imageStackPane.getWidth());\n mainImageView.setFitHeight(imageStackPane.getHeight());\n imageStackPane.getChildren().clear();\n imageStackPane.getChildren().add(mainImageView);\n\n\n }\n }", "private void setPic() {\n int targetW = mainImageView.getWidth();\n int targetH = mainImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n// bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mainImageView.setImageBitmap(bitmap);\n\n// bmOptions.inBitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n// mainImageView.setImageBitmap(bmOptions.inBitmap);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && null != data) {\n Uri selectedImage = data.getData();\n String[] filePathColumn = {MediaStore.Images.Media.DATA};\n Cursor cursor = getContentResolver().query(selectedImage,\n filePathColumn, null, null, null);\n cursor.moveToFirst();\n int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n picturePath = cursor.getString(columnIndex);\n cursor.close();\n Bitmap bitmap = BitmapFactory.decodeFile(picturePath);\n mItemImageView.setImageBitmap(bitmap);\n }\n }", "private void setPic() {\n int targetW = imageIV.getWidth();\n int targetH = imageIV.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageIV.setImageBitmap(bitmap);\n }", "private void showImageDetail() {\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == PICK_IMAGE_REQUEST && resultCode == RESULT_OK && data != null && data.getData() != null) {\n FilePathUri = data.getData();\n try {\n bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), FilePathUri);\n cowImage.setImageBitmap(bitmap);\n galleryChoose.setText(\"Image Selected\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }else if (requestCode == 123) {\n File imgFile = new File(pictureImagePath);\n if(imgFile.exists()){\n FilePathUri = Uri.parse(pictureImagePath);\n FilePathUri = photoURI;\n Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());\n //ImageView myImage = (ImageView) findViewById(R.id.imageviewTest);\n cowImage.setImageBitmap(myBitmap);\n\n }\n }\n else{\n System.out.println(\"error\" );\n }\n }", "private void setPic() {\n\t\tint targetW = Constant.sRealWidth;\n\t\tint targetH = Constant.sRealHeight;\n\n\t\t/* Get the size of the image */\n\t\tBitmapFactory.Options bmOptions = new BitmapFactory.Options();\n\t\tbmOptions.inJustDecodeBounds = true;\n\t\tBitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\t\tint photoW = bmOptions.outWidth;\n\t\tint photoH = bmOptions.outHeight;\n\t\t\n\t\t/* Figure out which way needs to be reduced less */\n\t\tint scaleFactor = 1;\n\t\tif ((targetW > 0) || (targetH > 0)) {\n\t\t\tscaleFactor = Math.min(photoW/targetW, photoH/targetH);\t\n\t\t}\n\n\t\t/* Set bitmap options to scale the image decode target */\n\t\tbmOptions.inJustDecodeBounds = false;\n\t\tbmOptions.inSampleSize = scaleFactor;\n\t\tbmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n\t\tBitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\t\t\n\t\tint rotate = ViewUtils.handleRotateBitmap(mCurrentPhotoPath);\n\t\tif (rotate != 0) {\n\t\t\tbitmap = ViewUtils.rotaingBitmap(\n\t\t\t\t\trotate, bitmap);\n\t\t}\n\t\t/* Associate the Bitmap to the ImageView */\n\t\tmPictureView.setImageBitmap(bitmap);\n\t}", "public static Bitmap loadPicture(View v, String photoPath) {\n int targetW,targetH;\n if (v != null) {\n targetW = v.getWidth();\n targetH = v.getHeight();\n } else {\n WindowManager wm = (WindowManager) SketchesApp.globalContext.getSystemService(Context.WINDOW_SERVICE);\n Display display = wm.getDefaultDisplay();\n DisplayMetrics metrics=new DisplayMetrics();\n display.getMetrics(metrics);\n targetW = metrics.widthPixels;\n targetH = metrics.heightPixels;\n }\n if (targetH==0 || targetW==0)\n return null;\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(photoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n //bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(photoPath, bmOptions);\n if (v!=null) {\n if (v instanceof ImageView) {\n ImageView iv = (ImageView) v;\n iv.setImageBitmap(bitmap);\n } else {\n BitmapDrawable bd = new BitmapDrawable(v.getResources(), bitmap);\n v.setBackground(bd);\n }\n }\n return bitmap;\n }", "public void OnPhotos (View View)\n {\n \tIntent intent = new Intent(this, EditPhotos.class);\n \tintent.putExtra(EXTRA_URI, uri);\n \t\tstartActivity(intent);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n if(requestCode == REQUEST_IMAGE_CAPTURE && resultCode == RESULT_OK){\n // Get the photo\n Bundle extras = data.getExtras();\n Bitmap photo = (Bitmap) extras.get(\"data\");\n myImageView.setImageBitmap(photo);\n }\n }", "public void onImageClick(View view) {\n Intent photo_picker = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n photo_picker.setType(\"image/jpeg\");\n startActivityForResult(photo_picker,PHOTO_PICK);\n }", "@Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n imageViewUIL.setImageBitmap(loadedImage);\n imageViewUIL.setAnimation(anim);\n }", "@Override\n public void onSuccess(Uri uri) {\n Picasso.with(getActivity()).load(uri).into(image);\n }", "private void loadAndDisplay(String url, ImageView imageView) {\n LoadDataHolder loadDataHolder = new LoadDataHolder(url, imageView);\n\n // Add placeholder while load image\n imageView.setImageResource(R.color.placeholder);\n\n // Execute loading runnable\n executorService.submit(new ImageLoadRunnable(loadDataHolder));\n }", "private void setPic() {\n int targetW = img_clip.getWidth();\n int targetH = img_clip.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n img_clip.setImageBitmap(bitmap);\n }", "@Override\n public void onSuccess(Uri uri){\n Glide.with(getActivity()).load(uri.toString()).placeholder(R.drawable.round_account_circle_24).dontAnimate().into(profilepic);\n }", "@Override\r\n\t\t\t\tpublic void onLoadCompleted(PhotoView arg0,\r\n\t\t\t\t\t\tString arg1, Bitmap arg2,\r\n\t\t\t\t\t\tBitmapDisplayConfig arg3, BitmapLoadFrom arg4) {\n\t\t\t\t\tspinner.setVisibility(View.GONE);\r\n\t\t\t\t\targ0.setImageBitmap(arg2);\r\n\t\t\t\t}", "public void addImage(View view) {\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(intent, RESULT_LOAD_IMAGE);\n }", "private void previewCapturedImage(){\n \ttry{\n \t\timgPreview.setVisibility(View.VISIBLE);\n \t\t\n \t\t//Bitmap Factory\n \t\tBitmapFactory.Options options = new BitmapFactory.Options();\n \t\t\n \t\t//Downsizing image as it throws OutOfMemory Exception for large images\n \t\toptions.inSampleSize = 4;\n \t\t\n \t\tfinal Bitmap bitmap = BitmapFactory.decodeFile(fileUri.getPath(), options);\n \t\t\n \t\timgPreview.setImageBitmap(bitmap);\n \t}catch(NullPointerException e){\n \t\te.printStackTrace();\n \t}catch(OutOfMemoryError e){\n \t\te.printStackTrace();\n \t}\n }", "public void displayImage() {\n RealImage real = new RealImage(url);\n real.displayImage();\n }", "@Override\r\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n \tLog.v(\"catch\",view+\"\");\r\n \ttry{\r\n if (loadedImage != null && view!=null) { \r\n ImageView imageView = (ImageView) view; \r\n // imageView.setImageBitmap(loadedImage);\r\n // 是否第一次显示 \r\n boolean firstDisplay = !displayedImages.contains(imageUri); \r\n if (firstDisplay) { \r\n // 图片淡入效果 \r\n FadeInBitmapDisplayer.animate(imageView, 800); \r\n displayedImages.add(imageUri); \r\n \r\n/* \t ViewGroup.LayoutParams params = imageView.getLayoutParams(); \r\n \t params.height =loadedImage.getHeight(); \r\n \t ((MarginLayoutParams)params).setMargins(10, 10, 10, 10);\r\n \t imageView.setLayoutParams(params);*/ \r\n } \r\n } \r\n \t}catch(Exception e){\r\n \t\tLog.v(\"catch1\",e.getMessage());\r\n \t}\r\n }", "public void loadBitmap(Picture picture, ImageView imageView) {\n BitmapWorkerTask task = new BitmapWorkerTask(picture, imageView);\n task.execute();\n }", "public void getImage(View view){\n if(Build.VERSION.SDK_INT > 19) {\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n intent.setType(\"image/*\");\n intent.setFlags(Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION);\n intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n startActivityForResult(intent, 100);\n } else {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"image/*\");\n intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n startActivityForResult(intent, 100);\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n // Check if the gallery was called and if an image was selected properly\n if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && data != null) {\n // Get address of selected image and display it in the imageView\n selectedImageUri = data.getData();\n imageToUpload.setImageURI(selectedImageUri);\n }\n }", "public void onClick(View view) {\n Picasso.get().load(\"http://image.tmdb.org/t/p/w185/\").into(imageView);\n }", "public void loadTo(String url, ImageView imageView) {\n relationsMap.put(imageView, url);\n\n // If image already cached just show it\n Bitmap bitmap = memoryCache.getData(url);\n if (bitmap != null) {\n Log.d(\"HIHO\", \"bitmap from memory\");\n imageView.setImageBitmap(bitmap);\n } else {\n loadAndDisplay(url, imageView);\n }\n }", "private void infalteImageOnCoverPhoto(String fileName) {\n\t\tif(fileName!=null){\n\t\t\tDisplayImageOptions options = new DisplayImageOptions.Builder()\n\t\t\t.showImageOnLoading(R.drawable.ic_stub)\n\t\t\t.showImageForEmptyUri(R.drawable.ic_empty)\n\t\t\t.showImageOnFail(R.drawable.ic_error)\n\t\t\t.cacheInMemory(true)\n\t\t\t.cacheOnDisk(true)\n\t\t\t.considerExifParams(true)\n\t\t\t.displayer(new com.nostra13.universalimageloader.core.display.RoundedVignetteBitmapDisplayer(2, 2))\n\t\t\t.build();\n\t\t\tcoverPhotoName=fileName;\n\t\t\tString url=\"http://www1.kitchengardens.in/sites/default/files/\"+fileName;\n\t\t\tImageLoader.getInstance().displayImage(url, coverPhoto, options, animateFirstListener);\n\t\t}\n\t}", "@Override\r\n\tpublic void onBeforeCreate(Bundle savedInstanceState) {\n\t\tsuper.onBeforeCreate(savedInstanceState);\r\n\r\n\t\tmProfile = DetectorInspectorApplication.getInstance();\r\n\t\t// mProfile = UserProfile.getInstance();\r\n\t\tmPhoto = mProfile.getReportPhoto();\r\n\t\tsetContentView(R.layout.activity_photo_view);\r\n\r\n\t}", "public void showImageChooser() {\n Intent intent2 = new Intent();\n intent2.setType(\"image/*\");\n intent2.setAction(\"android.intent.action.GET_CONTENT\");\n startActivityForResult(Intent.createChooser(intent2, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }", "public void activityCallback(int requestCode, int resultCode, Intent data) {\n\n Log.d(TAG,\"callback called. request code: \" + requestCode + \" result code: \" + resultCode);\n if (requestCode == REQUEST_TAKE_PHOTO && resultCode == Activity.RESULT_OK) {\n Bitmap imageBitmap = null;\n try {\n imageBitmap = MediaStore.Images.Media.getBitmap(context.getContentResolver(), Uri.fromFile(photoFile));\n } catch (IOException e) {\n e.printStackTrace();\n }\n ImageView mImageView = new ImageView(context);\n mImageView.setImageBitmap(imageBitmap);\n photoLayout.addView(mImageView);\n photoLayout.invalidate();\n photoLayout.refreshDrawableState();\n }\n\n\n\n }", "public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage);", "private void showImageChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Profile Image\"), CHOOSE_IMAGE);\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif(requestCode==IMAGE_REQUEST_CODE){\n\t\t\tif(resultCode==RESULT_OK){\n\t\t\t\tBundle bundle = data.getExtras();\n\t\t\t\tbitmap = (Bitmap) bundle.get(\"data\");\n\t\t\t\timgView.setImageBitmap(bitmap);\n\t\t\t}\n\t\t}\n\t}", "private void loadUserImage() {\n Target target = new Target() {\n @Override\n public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from) {\n ImageView imageView = new ImageView(getApplicationContext());\n imageView.setImageBitmap(bitmap);\n Drawable image = imageView.getDrawable();\n mToolbar.setLogo(image);\n }\n\n @Override\n public void onBitmapFailed(Drawable errorDrawable) {\n\n }\n\n @Override\n public void onPrepareLoad(Drawable placeHolderDrawable) {\n\n }\n };\n\n Picasso.with(this).load(mUser.getPictureUrl()).into(target);\n }", "public void uploadPhoto(View view) {\n Intent i = new Intent(\n Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n startActivityForResult(i, GET_FROM_GALLERY);\n\n }", "@FXML\r\n\tprotected void handleSetPhotoButtonAction(final ActionEvent event) {\r\n\t\tFileChooser fileChooser = new FileChooser();\r\n\t\tFile file = fileChooser.showOpenDialog(layout.getScene().getWindow());\r\n\t\ttry {\r\n\t\t\tInputStream stream = new BufferedInputStream(new FileInputStream(file));\r\n\t\t\tphoto.setImage(new Image(stream));\r\n\t\t\tstream.close();\r\n\t\t\tcontact.setPhoto(file);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tlog.error(\"Couldn't find the file: \" + file);\r\n\t\t} catch (IOException e) {\r\n\t\t\tlog.error(\"Error accessing the file: \" + file);\r\n\t\t}\r\n\t}", "private void setPic() {\n int targetW = imageView.getMaxWidth();\n int targetH = imageView.getMaxHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(currentPhotoPath, bmOptions);\n bitmap = Bitmap.createScaledBitmap(bitmap, 1280, 960,false);\n Log.d(\"demo\", \"setPic: \"+ bitmap.getWidth()+\" \"+bitmap.getHeight());\n Log.d(\"demo\", \"setPic: \"+ bitmap.getByteCount()/1000);\n imageView.setImageBitmap(bitmap);\n }", "@Override\n public void imageLoadSuccess(String path) {\n Intent mainIntent = new Intent(MainActivity.this, PresenterActivity.class);\n mainIntent.putExtra(\"path\", path);\n startActivity(mainIntent);\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tif(!IrishreloAccess.imagePath.equals(\"\"))\n\t\t\tshowImage(IrishreloAccess.imagePath);\n\t\telse if(!IrishreloAccess.captbyCam.equals(\"\"))\n\t\t\tshowImage(IrishreloAccess.captbyCam);\n\t}", "public static void loadFileIntoImageView(ImageView pictureImageView, String path){\n int targetW = pictureImageView.getWidth();\n int targetH = pictureImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(path, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n\n Bitmap bitmap = BitmapFactory.decodeFile(path, bmOptions);\n pictureImageView.setImageBitmap(bitmap);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == TAKE_IMAGE && resultCode == RESULT_OK) {\n Bundle extra = data.getExtras();\n bitmap = (Bitmap) extra.get(\"data\");\n saveImage(bitmap);\n imageView.setImageBitmap(bitmap);\n } else if (requestCode == SELECT_IMAGE && resultCode == RESULT_OK) {\n Uri targetUri = data.getData();\n Toast.makeText(getApplicationContext(), targetUri.toString(), Toast.LENGTH_LONG).show();\n Bitmap bitmap;\n try {\n\n bitmap = BitmapFactory.decodeStream(getContentResolver().openInputStream(targetUri));\n\n imageView.setImageBitmap(bitmap);\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }", "@Subscribe\n public void handlePhotoGalleryPageSelected(OnPhotoGalleryPhotoSelect event) {\n displayPhoto(event.getPhotoDisplayInfo());\n }", "public void takePhoto(View view) {\n Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n if (takePictureIntent.resolveActivity(getPackageManager()) != null) {\n startActivityForResult(takePictureIntent, REQUEST_IMAGE_CAPTURE);\n } else {\n Toast.makeText(this, \"Uh oh something went wrong with taking a photo\",\n Toast.LENGTH_SHORT).show();\n }\n }", "public void openCamera(View view) {\n Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n\n mImagePath = getFile();\n takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, mImagePath);\n startActivityForResult(takePictureIntent, TAKE_PIC_CODE);\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(resultCode == RESULT_OK && requestCode ==200){\n Uri uri_img=data.getData();\n try{\n assert uri_img != null;\n InputStream input_img = updateView.getContext().getContentResolver().openInputStream(uri_img);\n DecodeImage_stream = BitmapFactory.decodeStream(input_img);\n chooseImage.setImageBitmap(DecodeImage_stream);\n }catch (FileNotFoundException f){\n Log.d(\"add new file not found:\",f.getMessage());\n }\n }\n }", "private void showProfilePicture() {\n File pic = sender.getProfilePic();\n if (pic == null || !pic.exists()) {\n profilePic.setText(Wrapers.htmlWraper(\"No Profile Picture Found.\"));\n } else {\n profilePic.setIcon(Images.profilePic(pic));\n profilePic.setText(null);\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) { /// automatski se zove kada krene startActivityResult\n //super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == RESULT_OK){\n // get the photo\n Bundle extras = data.getExtras();\n Bitmap photo = (Bitmap)extras.get(\"data\"); // spremanje u bitmap\n mojImageView.setImageBitmap(photo); // stavljanje na zaslon\n\n }\n }", "private void onLoad() {\n\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n startActivityForResult(intent, RESULT_LOAD_ARTIST_IMAGE);\n }", "private void setPic() {\n int targetW = 210;\n int targetH = 320;\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(previewPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(previewPhotoPath, bmOptions);\n bitmap = RotateBitmap(bitmap,270);\n preview.setImageBitmap(bitmap);\n }", "public void openCustomPictureCreator() {\n\n\t\tFXMLLoader fxmlL = new FXMLLoader(getClass().getResource(\"AvatarDrawingTool.fxml\"));\n\t\ttry {\n\t\t\tBorderPane login = (BorderPane) fxmlL.load();\n\n\t\t\tScene scene = new Scene(login, 600, 400);\n\n\t\t\tStage stage = new Stage();\n\t\t\tstage.setScene(scene);\n\t\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\n\t\t\tstage.showAndWait();\n\t\t\t\n\t\t\tif(custom) {\n\t\t\t\tsetImg();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == PICK_IMAGE && resultCode == RESULT_OK && data != null && data.getData() != null) {\n filePath = data.getData();\n try {\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), filePath);\n Image_brand.setImageBitmap(bitmap);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "private void setPic() {\n int targetW =200;\n int targetH = 300;\n\n\n\t\t/* Get the size of the image */\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 1;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n bitmap1 = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n Log.e(\"bitmap\", \"\" + bitmap1);\n mAdapter = new MyAdapter(Goonlineactivity2.this,TITLES,ICONS,NAME,EMAIL,PROFILE); // Creating the Adapter of MyAdapter class(which we are going to see in a bit)\n // And passing the titles,icons,header view name, header view email,\n // and header view profile picture\n\n mRecyclerView.setAdapter(mAdapter);\n //profile11.setImageBitmap(bitmap1);\n\n \t\t/* Associate the Bitmap to the ImageView */\n\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.template_three_detail, container, false);\n ImageView imageView = (ImageView) view.findViewById(R.id.pagerDetailImage);\n\n Bundle bundle = getArguments();\n String imageString = bundle.getString(\"IMAGE\");\n\n Picasso.with(getActivity()).load(imageString).into(imageView);\n\n return imageView;\n\n }", "@Override\n public void onSuccess(Uri uri) {\n Picasso.with(getApplicationContext()).load(uri.toString()).into(profilePhoto);\n }", "private View insertPhoto(final Venue venue) {\n\t\t// TODO Auto-generated method stub\n\n\t\tLayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\tViewGroup vg = (ViewGroup) inflater.inflate(R.layout.gallery_items,\n\t\t\t\tnull);\n\n\t\tImageView imageView = (ImageView) vg.findViewById(R.id.venueImage);\n\n\t\tif (UtilValidate.isNotNull(venue.getVenue_image())) {\n\t\t\tPicasso.with(this).load(venue.getVenue_image())\n\t\t\t\t\t.placeholder(R.drawable.empty_photo) //\n\t\t\t\t\t.error(R.drawable.empty_photo).fit().into(imageView);\n\t\t}\n\n\t\timageView.setOnClickListener(new GalleryImageClick(venue));\n\n\t\tinfoImageView.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tanimationSoundBite();\n\n\t\t\t\tshowVenueDetails(venue);\n\n\t\t\t\tAnimationFactory.flipTransition(viewAnimator,\n\t\t\t\t\t\tFlipDirection.LEFT_RIGHT);\n\n\t\t\t}\n\t\t});\n\n\n\t\tcloseBtn.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tanimationSoundBite();\n\n\t\t\t\tAnimationFactory.flipTransition(viewAnimator,\n\t\t\t\t\t\tFlipDirection.LEFT_RIGHT);\n\n\t\t\t}\n\t\t});\n\n\t\treturn vg;\n\t}" ]
[ "0.70911384", "0.70596135", "0.69729584", "0.68110925", "0.6649921", "0.6552507", "0.64896554", "0.6474001", "0.64563113", "0.6443536", "0.640251", "0.64012426", "0.6389919", "0.6388241", "0.63701016", "0.6365049", "0.63206524", "0.6307779", "0.63002497", "0.63002163", "0.6269234", "0.626574", "0.62563896", "0.62474954", "0.6243667", "0.6242412", "0.6228562", "0.62273836", "0.6215793", "0.620489", "0.6203706", "0.62034696", "0.6198922", "0.6191757", "0.6189507", "0.61706746", "0.61647755", "0.61600685", "0.6155017", "0.6151353", "0.6139157", "0.61204624", "0.6120331", "0.61179954", "0.61046743", "0.6096827", "0.6079177", "0.60708314", "0.60521424", "0.60491663", "0.6044608", "0.6025499", "0.6018259", "0.6014651", "0.599815", "0.59879506", "0.5983064", "0.59770244", "0.59668726", "0.59612435", "0.5960954", "0.59597653", "0.59486026", "0.59409523", "0.5939154", "0.5937337", "0.5934927", "0.59331447", "0.59297985", "0.5924382", "0.5915285", "0.591177", "0.5910469", "0.5908903", "0.5904096", "0.5899563", "0.58935714", "0.5889265", "0.5878526", "0.58759755", "0.58758795", "0.5858818", "0.5857173", "0.5851705", "0.58475715", "0.5846432", "0.58460045", "0.5843908", "0.5840709", "0.5832064", "0.58200395", "0.58181983", "0.5816703", "0.58165413", "0.5816285", "0.58160293", "0.58148366", "0.58145905", "0.58110386", "0.5806468", "0.5802041" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(final LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_wardrobe, container, false); ImageItemUtil imageItemUtil = new ImageItemUtil(getActivity()); imageItems.addAll(imageItemUtil.getData("Top")); gridView = (GridView) view.findViewById(R.id.gridViewFragment); gridAdapter = new GridViewAdapter(getActivity(), R.layout.wardrobe_item, imageItems); gridView.setAdapter(gridAdapter); gridView.setOnItemClickListener(new AdapterView.OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View v, int position, long id) { ImageItem item = (ImageItem) parent.getItemAtPosition(position); //Create intent Intent intent = new Intent(getActivity(), ItemDetailActivity.class); intent.putExtra("title", item.getDescription()); intent.putExtra("image", item.getImage()); String tags = ""; for (int i = 0; i < item.getTags().size(); i++) { tags += item.getTags().get(i) + ", "; } String tag = tags.substring(0, tags.length() - 2); intent.putExtra("tags", tag); intent.putExtra("category", item.getCategory()); intent.putExtra("id",item.getId()); intent.putExtra("path", item.getFilepath()); //Start details activity startActivity(intent); //getActivity().finish(); } }); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6740675", "0.6725193", "0.67224836", "0.6699259", "0.6691596", "0.668896", "0.6687658", "0.66861755", "0.667755", "0.66756433", "0.6667425", "0.66667783", "0.6665166", "0.66614723", "0.66549766", "0.665031", "0.6643759", "0.6639389", "0.66378653", "0.66345453", "0.6626348", "0.66202056", "0.66176945", "0.66094035", "0.65976113", "0.65937936", "0.6585841", "0.6585124", "0.65741223", "0.65721804", "0.65698904", "0.65695107", "0.6569451", "0.6568099", "0.6565633", "0.6554688", "0.65533894", "0.65447044", "0.65432465", "0.6542017", "0.65385425", "0.6537571", "0.65369105", "0.6535379", "0.6533447", "0.6533258", "0.65316767", "0.6529574", "0.6528449", "0.65262675", "0.6525467", "0.6525181", "0.6524235", "0.6523963", "0.65187466", "0.65138274", "0.65137535", "0.6513218", "0.6513202", "0.65115535", "0.651113", "0.6510943", "0.6510124", "0.65094703", "0.65082514", "0.65038425", "0.65023196", "0.6501983", "0.65014684", "0.64982104", "0.64945936", "0.6492533", "0.6491023", "0.6488248", "0.64879525", "0.6487852", "0.6487744", "0.64873713", "0.6487171", "0.64851", "0.6485003", "0.6483167", "0.6482433", "0.64824027", "0.6481711", "0.6480902", "0.64779234", "0.64767206", "0.6476515", "0.6475657", "0.64747864", "0.64715266", "0.64714354", "0.64711314", "0.6470619", "0.6468112", "0.6466466", "0.64631015", "0.646268", "0.6462456", "0.64620507" ]
0.0
-1